@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,56 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as r, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import g from "@mui/material/Box";
|
|
3
|
-
import u from "@mui/material/Button";
|
|
4
|
-
import C from "@mui/material/Card";
|
|
5
|
-
import v from "@mui/material/CardHeader";
|
|
6
|
-
import b from "@mui/material/CardContent";
|
|
7
|
-
import z from "@mui/material/IconButton";
|
|
8
|
-
import { Icon as H, ChevronRight as I } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as W, Text as B, P as S } from "@mxenabled/mxui";
|
|
10
|
-
import { u as j } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
|
-
import { W as w } from "./hooks-CBl85iRr.mjs";
|
|
12
|
-
const G = ({
|
|
13
|
-
children: m,
|
|
14
|
-
className: a = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel: l,
|
|
16
|
-
contentStyles: d,
|
|
17
|
-
onClose: e,
|
|
18
|
-
onPrimaryCtaClick: o,
|
|
19
|
-
primaryCtaLabel: s = "",
|
|
20
|
-
subTitle: t = "",
|
|
21
|
-
sx: c = {},
|
|
22
|
-
title: n = ""
|
|
23
|
-
}) => {
|
|
24
|
-
const [p, { height: h, width: f }] = j();
|
|
25
|
-
return /* @__PURE__ */ i(C, { className: a, sx: { ...c }, children: [
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
v,
|
|
28
|
-
{
|
|
29
|
-
sx: { pb: 8 },
|
|
30
|
-
title: /* @__PURE__ */ i(x, { children: [
|
|
31
|
-
/* @__PURE__ */ i(
|
|
32
|
-
g,
|
|
33
|
-
{
|
|
34
|
-
sx: {
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
display: "grid",
|
|
37
|
-
gap: 2,
|
|
38
|
-
gridTemplateColumns: "1fr auto",
|
|
39
|
-
pb: 4
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
n && /* @__PURE__ */ r(W, { children: n }),
|
|
43
|
-
e ? /* @__PURE__ */ r(z, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ r(H, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ r(u, { endIcon: /* @__PURE__ */ r(I, {}), onClick: o, size: "small", children: /* @__PURE__ */ r(B, { bold: !0, variant: "Small", children: s }) })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
t && /* @__PURE__ */ r(S, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: t })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ r(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ r(w, { availableHeight: h, availableWidth: f, children: m }) })
|
|
52
|
-
] });
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
G as M
|
|
56
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import o from "@mui/material/ListItem";
|
|
3
|
-
import c from "@mui/material/ListItemButton";
|
|
4
|
-
import p from "@mui/material/ListItemIcon";
|
|
5
|
-
import u from "@mui/material/ListItemText";
|
|
6
|
-
import x from "@mui/material/Stack";
|
|
7
|
-
import D from "@mui/material/Switch";
|
|
8
|
-
import { Text as L } from "@mxenabled/mxui";
|
|
9
|
-
import w from "@mui/material/ListItemAvatar";
|
|
10
|
-
const z = ({
|
|
11
|
-
avatar: r,
|
|
12
|
-
endIcon: a,
|
|
13
|
-
isChecked: l,
|
|
14
|
-
isDisabled: d = !1,
|
|
15
|
-
isPrimaryTextBold: n = !1,
|
|
16
|
-
onClick: m,
|
|
17
|
-
onToggle: C,
|
|
18
|
-
primaryText: v,
|
|
19
|
-
secondaryText: M
|
|
20
|
-
}) => (
|
|
21
|
-
//TODO: implement common/components/ListItemRow.tsx
|
|
22
|
-
/* @__PURE__ */ e(
|
|
23
|
-
o,
|
|
24
|
-
{
|
|
25
|
-
secondaryAction: /* @__PURE__ */ e(D, { checked: l, onChange: C }),
|
|
26
|
-
sx: {
|
|
27
|
-
"& .MuiListItemSecondaryAction-root": { right: a ? 64 : 24 },
|
|
28
|
-
"& .MuiListItemButton-root": { pr: 24 }
|
|
29
|
-
},
|
|
30
|
-
children: /* @__PURE__ */ S(c, { onClick: d ? void 0 : () => m(), children: [
|
|
31
|
-
r && /* @__PURE__ */ e(w, { children: r }),
|
|
32
|
-
/* @__PURE__ */ e(u, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(x, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ S(x, { sx: { width: "100%" }, children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
L,
|
|
35
|
-
{
|
|
36
|
-
bold: n,
|
|
37
|
-
color: "text.primary",
|
|
38
|
-
sx: {
|
|
39
|
-
mr: 80
|
|
40
|
-
},
|
|
41
|
-
variant: "body1",
|
|
42
|
-
children: v
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ e(L, { color: "text.secondary", variant: "caption", children: M })
|
|
46
|
-
] }) }) }),
|
|
47
|
-
!d && a && /* @__PURE__ */ e(p, { children: a })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
), F = ({
|
|
52
|
-
isChecked: r,
|
|
53
|
-
isDisabled: a = !1,
|
|
54
|
-
onToggle: l,
|
|
55
|
-
primaryText: d,
|
|
56
|
-
secondaryText: n = void 0,
|
|
57
|
-
useExtraPadding: m = !0
|
|
58
|
-
}) => /* @__PURE__ */ e(
|
|
59
|
-
o,
|
|
60
|
-
{
|
|
61
|
-
secondaryAction: /* @__PURE__ */ e(D, { checked: r, disabled: a, onChange: l }),
|
|
62
|
-
sx: {
|
|
63
|
-
pl: m ? 48 : 0,
|
|
64
|
-
"& .MuiListItemSecondaryAction-root": { right: m ? 64 : 24 }
|
|
65
|
-
},
|
|
66
|
-
children: /* @__PURE__ */ e(
|
|
67
|
-
u,
|
|
68
|
-
{
|
|
69
|
-
primary: d,
|
|
70
|
-
primaryTypographyProps: {
|
|
71
|
-
fontWeight: 400,
|
|
72
|
-
variant: "body1",
|
|
73
|
-
maxWidth: "calc(100% - 60px)",
|
|
74
|
-
color: "text.primary"
|
|
75
|
-
},
|
|
76
|
-
secondary: n,
|
|
77
|
-
secondaryTypographyProps: {
|
|
78
|
-
color: "text.secondary",
|
|
79
|
-
maxWidth: "calc(100% - 60px)",
|
|
80
|
-
variant: "caption",
|
|
81
|
-
whiteSpace: "wrap"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
var B = /* @__PURE__ */ ((r) => (r.Accounts = "accounts", r.Budgets = "budgets", r.Insights = "insights", r.Personal = "personal", r))(B || {}), P = /* @__PURE__ */ ((r) => (r[r.DebtPaymentReminder = 3] = "DebtPaymentReminder", r[r.AccountBalanceLow = 6] = "AccountBalanceLow", r[r.AccountDepositLarge = 7] = "AccountDepositLarge", r[r.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", r[r.TransactionFeeCharge = 9] = "TransactionFeeCharge", r[r.InternationalTransaction = 23] = "InternationalTransaction", r[r.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", r))(P || {}), b = /* @__PURE__ */ ((r) => (r[r.BudgetExceeded = 1] = "BudgetExceeded", r[r.BudgetOffTarget = 2] = "BudgetOffTarget", r))(b || {}), A = /* @__PURE__ */ ((r) => (r[r.AccountBalanceLow = 33] = "AccountBalanceLow", r[r.BillAmountNotStandard = 49] = "BillAmountNotStandard", r[r.CategorySpending = 50] = "CategorySpending", r[r.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", r[r.DebtPaymentReminder = 37] = "DebtPaymentReminder", r[r.DuplicatePayment = 42] = "DuplicatePayment", r[r.MonthlySpendComparison = 53] = "MonthlySpendComparison", r[r.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", r[r.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", r[r.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", r[r.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", r[r.SavingsOpportunity = 58] = "SavingsOpportunity", r[r.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", r[r.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", r[r.UncategorizedTransactions = 61] = "UncategorizedTransactions", r[r.UnifiedDeposit = 62] = "UnifiedDeposit", r[r.UpcomingBill = 63] = "UpcomingBill", r[r.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", r[r.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", r[r.DiscoveredAccounts = 52] = "DiscoveredAccounts", r[r.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", r[r.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", r[r.TransparentOverdraft = 68] = "TransparentOverdraft", r))(A || {});
|
|
88
|
-
export {
|
|
89
|
-
P as A,
|
|
90
|
-
b as B,
|
|
91
|
-
A as I,
|
|
92
|
-
B as N,
|
|
93
|
-
z as T,
|
|
94
|
-
F as a
|
|
95
|
-
};
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { jsxs as M, Fragment as P, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import L from "@mui/material/Avatar";
|
|
3
|
-
import w from "@mui/material/ListItem";
|
|
4
|
-
import U from "@mui/material/ListItemAvatar";
|
|
5
|
-
import G from "@mui/material/ListItemButton";
|
|
6
|
-
import S from "@mui/material/ListItemText";
|
|
7
|
-
import { Icon as I, IconWeight as C } from "@mxenabled/mxui";
|
|
8
|
-
import $ from "@mui/material/ListItemIcon";
|
|
9
|
-
import j from "@mui/material/MenuItem";
|
|
10
|
-
import z from "@mui/material/TextField";
|
|
11
|
-
import { ExpandMore as K } from "@mxenabled/mx-icons";
|
|
12
|
-
import { addDays as Q } from "date-fns/addDays";
|
|
13
|
-
import { addMonths as f } from "date-fns/addMonths";
|
|
14
|
-
import { addQuarters as A } from "date-fns/addQuarters";
|
|
15
|
-
import { addYears as H } from "date-fns/addYears";
|
|
16
|
-
import { formatISO as V } from "date-fns/formatISO";
|
|
17
|
-
import { fromUnixTime as X } from "date-fns/fromUnixTime";
|
|
18
|
-
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
19
|
-
import { isAfter as h } from "date-fns/isAfter";
|
|
20
|
-
import { isBefore as u } from "date-fns/isBefore";
|
|
21
|
-
import { isSameDay as J } from "date-fns/isSameDay";
|
|
22
|
-
import { lastDayOfMonth as Z } from "date-fns/lastDayOfMonth";
|
|
23
|
-
import { nextDay as g } from "date-fns/nextDay";
|
|
24
|
-
import { parseISO as T } from "date-fns/parseISO";
|
|
25
|
-
import { setDate as D } from "date-fns/setDate";
|
|
26
|
-
import { setDay as F } from "date-fns/setDay";
|
|
27
|
-
import { setDayOfYear as Y } from "date-fns/setDayOfYear";
|
|
28
|
-
import { startOfToday as b } from "date-fns/startOfToday";
|
|
29
|
-
import { subDays as _ } from "date-fns/subDays";
|
|
30
|
-
import { subMonths as q } from "date-fns/subMonths";
|
|
31
|
-
import { subQuarters as N } from "date-fns/subQuarters";
|
|
32
|
-
import { subYears as R } from "date-fns/subYears";
|
|
33
|
-
import { g as ee, a as te, b as re, c as oe, d as ae, e as se, f as ne } from "./DateUtil-CVXVMbjf.mjs";
|
|
34
|
-
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
35
|
-
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
|
-
import { f as k, D as E } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
37
|
-
const Re = ({ iconName: e, label: s, onClick: r, value: a }) => {
|
|
38
|
-
const t = /* @__PURE__ */ M(P, { children: [
|
|
39
|
-
/* @__PURE__ */ d(U, { children: /* @__PURE__ */ d(L, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" }, weight: C.Dark }) }) }),
|
|
40
|
-
/* @__PURE__ */ d(
|
|
41
|
-
S,
|
|
42
|
-
{
|
|
43
|
-
primary: s,
|
|
44
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
45
|
-
secondary: a,
|
|
46
|
-
secondaryTypographyProps: { color: "text.default", variant: "Body", fontWeight: 600 }
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
] });
|
|
50
|
-
return r ? /* @__PURE__ */ d(w, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ M(G, { onClick: r, children: [
|
|
51
|
-
t,
|
|
52
|
-
/* @__PURE__ */ d($, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
|
|
53
|
-
] }) }) : /* @__PURE__ */ d(w, { disableGutters: !1, disablePadding: !1, children: t });
|
|
54
|
-
}, et = ({ label: e, onChange: s, options: r, value: a, ...t }) => /* @__PURE__ */ d(
|
|
55
|
-
z,
|
|
56
|
-
{
|
|
57
|
-
InputLabelProps: { shrink: !0 },
|
|
58
|
-
SelectProps: {
|
|
59
|
-
IconComponent: (c) => /* @__PURE__ */ d(K, { size: 20, sx: { mr: 4 }, ...c })
|
|
60
|
-
},
|
|
61
|
-
defaultValue: 0,
|
|
62
|
-
label: e,
|
|
63
|
-
onChange: (c) => {
|
|
64
|
-
s(Number(c.target.value));
|
|
65
|
-
},
|
|
66
|
-
select: !0,
|
|
67
|
-
value: a,
|
|
68
|
-
variant: "outlined",
|
|
69
|
-
...t,
|
|
70
|
-
children: r.map((c) => /* @__PURE__ */ d(j, { value: c.id, children: c.label }, c.id))
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
var n = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(n || {}), p = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(p || {}), O = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(O || {}), B = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(B || {});
|
|
74
|
-
const ce = (e) => {
|
|
75
|
-
if (!e) return "";
|
|
76
|
-
let s = e.user_name || e.feed_name || "";
|
|
77
|
-
return e.account_number && (s = `${s} *${e.account_number}`), s;
|
|
78
|
-
}, ie = (e, s) => {
|
|
79
|
-
const r = [], a = e.transactions.find(
|
|
80
|
-
(m) => m.repeating_transaction_guid === e.guid
|
|
81
|
-
);
|
|
82
|
-
if (!a) return [];
|
|
83
|
-
const t = T(e.predicted_occurs_on), o = {
|
|
84
|
-
accountGuid: e.account?.guid || "",
|
|
85
|
-
amount: e.amount,
|
|
86
|
-
categoryGuid: a.category_guid || "",
|
|
87
|
-
expectedDate: t,
|
|
88
|
-
frequency: e.recurrence_type,
|
|
89
|
-
institutionGuid: e.account?.institution_guid || "",
|
|
90
|
-
institutionName: ce(e.account),
|
|
91
|
-
merchantGuid: e.merchant_guid,
|
|
92
|
-
name: e.description,
|
|
93
|
-
recurrenceDay: e.recurrence_day,
|
|
94
|
-
repeatingTransactionGuid: e.guid,
|
|
95
|
-
secondRecurrenceDay: e.second_recurrence_day,
|
|
96
|
-
status: p.Upcoming,
|
|
97
|
-
type: e.repeating_transaction_type === B.Income ? O.Income : O.Expense,
|
|
98
|
-
transaction: void 0
|
|
99
|
-
}, c = s.start, i = s.end;
|
|
100
|
-
switch (e.recurrence_type) {
|
|
101
|
-
case n.EveryWeek:
|
|
102
|
-
r.push(...ue(o, c, i));
|
|
103
|
-
break;
|
|
104
|
-
case n.EveryOtherWeek:
|
|
105
|
-
r.push(...de(o, c, i));
|
|
106
|
-
break;
|
|
107
|
-
case n.TwiceAMonth:
|
|
108
|
-
r.push(...me(o, c, i));
|
|
109
|
-
break;
|
|
110
|
-
case n.EveryMonth:
|
|
111
|
-
r.push(...le(o, c, i));
|
|
112
|
-
break;
|
|
113
|
-
case n.EveryOtherMonth:
|
|
114
|
-
r.push(...he(o, c, i));
|
|
115
|
-
break;
|
|
116
|
-
case n.EveryQuarter:
|
|
117
|
-
r.push(...fe(o, c, i));
|
|
118
|
-
break;
|
|
119
|
-
case n.EveryOtherQuarter:
|
|
120
|
-
r.push(...pe(o, c, i));
|
|
121
|
-
break;
|
|
122
|
-
case n.EveryYear:
|
|
123
|
-
r.push(...ye(o, c, i));
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
for (const m of r) {
|
|
127
|
-
const v = e.transactions.find(
|
|
128
|
-
(x) => x.repeating_transaction_guid === e.guid && x.date > y(_(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
|
|
129
|
-
);
|
|
130
|
-
v ? (m.transaction = v, m.status = p.Paid, m.occurredOnDate = X(v.date)) : u(m.expectedDate, _(b(), 3)) && (m.status = p.Missed);
|
|
131
|
-
}
|
|
132
|
-
return r;
|
|
133
|
-
}, ue = (e, s, r) => {
|
|
134
|
-
const a = [];
|
|
135
|
-
let t = g(s, e.recurrenceDay);
|
|
136
|
-
for (; u(t, r); )
|
|
137
|
-
a.push({ ...e, expectedDate: t }), t = g(t, e.recurrenceDay);
|
|
138
|
-
return a;
|
|
139
|
-
}, de = (e, s, r) => {
|
|
140
|
-
const a = [], t = e.expectedDate;
|
|
141
|
-
if (u(t, r)) {
|
|
142
|
-
let o = _(t, 14);
|
|
143
|
-
for (; h(o, s) || J(o, s); )
|
|
144
|
-
a.push({ ...e, expectedDate: o }), o = _(o, 14);
|
|
145
|
-
for (o = t; h(o, s) && u(o, r); )
|
|
146
|
-
a.push({ ...e, expectedDate: o }), o = Q(o, 14);
|
|
147
|
-
}
|
|
148
|
-
return a;
|
|
149
|
-
}, me = (e, s, r) => {
|
|
150
|
-
const a = [];
|
|
151
|
-
let t = D(s, e.recurrenceDay);
|
|
152
|
-
for (; u(t, r); )
|
|
153
|
-
a.push({ ...e, expectedDate: t }), t = f(t, 1);
|
|
154
|
-
let o = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? D(s, e.secondRecurrenceDay) : Z(s);
|
|
155
|
-
for (; u(o, r); )
|
|
156
|
-
a.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
157
|
-
return a;
|
|
158
|
-
}, le = (e, s, r) => {
|
|
159
|
-
const a = [];
|
|
160
|
-
let t = D(s, e.recurrenceDay);
|
|
161
|
-
for (a.push({ ...e, expectedDate: t }), t = f(t, 1); u(t, r); )
|
|
162
|
-
a.push({ ...e, expectedDate: t }), t = f(t, 1);
|
|
163
|
-
return a;
|
|
164
|
-
}, he = (e, s, r) => {
|
|
165
|
-
const a = [], t = e.expectedDate;
|
|
166
|
-
let o = u(t, r) ? t : q(t, 2);
|
|
167
|
-
for (; u(o, r); )
|
|
168
|
-
h(o, s) && a.push({ ...e, expectedDate: o }), o = f(o, 2);
|
|
169
|
-
return a;
|
|
170
|
-
}, fe = (e, s, r) => {
|
|
171
|
-
const a = [], t = e.expectedDate;
|
|
172
|
-
let o = u(t, r) ? t : N(t, 1);
|
|
173
|
-
for (; u(o, r); )
|
|
174
|
-
h(o, s) && a.push({ ...e, expectedDate: o }), o = A(o, 1);
|
|
175
|
-
return a;
|
|
176
|
-
}, pe = (e, s, r) => {
|
|
177
|
-
const a = [], t = e.expectedDate;
|
|
178
|
-
let o = u(t, r) ? t : N(t, 2);
|
|
179
|
-
for (; u(o, r); )
|
|
180
|
-
h(o, s) && a.push({ ...e, expectedDate: o }), o = A(o, 2);
|
|
181
|
-
return a;
|
|
182
|
-
}, ye = (e, s, r) => {
|
|
183
|
-
const a = [], t = e.expectedDate;
|
|
184
|
-
let o = u(t, r) ? t : R(t, 1);
|
|
185
|
-
for (; u(o, r); )
|
|
186
|
-
h(o, s) && a.push({ ...e, expectedDate: o }), o = H(o, 1);
|
|
187
|
-
return a;
|
|
188
|
-
}, tt = (e, s) => {
|
|
189
|
-
const r = [];
|
|
190
|
-
for (const a of e) {
|
|
191
|
-
const t = ie(a, s);
|
|
192
|
-
r.push(...t);
|
|
193
|
-
}
|
|
194
|
-
return r.sort(
|
|
195
|
-
(a, t) => y(a.occurredOnDate || a.expectedDate) - y(t.occurredOnDate || t.expectedDate)
|
|
196
|
-
);
|
|
197
|
-
}, rt = (e, s, r) => {
|
|
198
|
-
const a = [];
|
|
199
|
-
for (const t of s) {
|
|
200
|
-
const o = r.filter(
|
|
201
|
-
(c) => c.repeating_transaction_guid === t.guid
|
|
202
|
-
);
|
|
203
|
-
r.length > 0 && a.push({
|
|
204
|
-
...t,
|
|
205
|
-
account: e.find((c) => c.guid === t.account_guid),
|
|
206
|
-
transactions: o
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
return a;
|
|
210
|
-
}, ot = (e) => e.reduce((s, r) => {
|
|
211
|
-
const a = V(r.expectedDate, { representation: "date" }), t = s.find(
|
|
212
|
-
(o) => o.date.toString() === r.expectedDate.toString()
|
|
213
|
-
);
|
|
214
|
-
return t ? t.recurrences.push(r) : s.push({
|
|
215
|
-
date: r.expectedDate,
|
|
216
|
-
id: `date-${a}`,
|
|
217
|
-
recurrences: [r]
|
|
218
|
-
}), s;
|
|
219
|
-
}, []), at = (e, s, r) => {
|
|
220
|
-
const a = g(b(), s.recurrence_day), t = Y(b(), s.recurrence_day), o = W(s.recurrence_day), c = s.second_recurrence_day ? W(s.second_recurrence_day) : "";
|
|
221
|
-
let i = r ? l(e.monthly_ordinal, o) : e.monthly;
|
|
222
|
-
switch (s.recurrence_type) {
|
|
223
|
-
case n.EveryQuarter:
|
|
224
|
-
i = r ? l(e.quarterly_ordinal, o) : e.quarterly;
|
|
225
|
-
break;
|
|
226
|
-
case n.EveryWeek:
|
|
227
|
-
i = r ? l(
|
|
228
|
-
e.weekly_ordinal,
|
|
229
|
-
k(a, E.DAY_OF_WEEK)
|
|
230
|
-
) : e.weekly;
|
|
231
|
-
break;
|
|
232
|
-
case n.EveryYear:
|
|
233
|
-
i = r ? l(
|
|
234
|
-
e.anually_ordinal,
|
|
235
|
-
k(t, E.MONTH_DAY)
|
|
236
|
-
) : e.anually;
|
|
237
|
-
break;
|
|
238
|
-
case n.EveryOtherWeek:
|
|
239
|
-
i = r ? l(
|
|
240
|
-
e.every_other_week_ordinal,
|
|
241
|
-
k(a, E.DAY_OF_WEEK)
|
|
242
|
-
) : e.every_other_week;
|
|
243
|
-
break;
|
|
244
|
-
case n.EveryOtherMonth:
|
|
245
|
-
i = r ? l(e.every_other_month_ordinal, o) : e.every_other_month;
|
|
246
|
-
break;
|
|
247
|
-
case n.EveryOtherQuarter:
|
|
248
|
-
i = r ? l(e.every_other_quarter_ordinal, o) : e.every_other_quarter;
|
|
249
|
-
break;
|
|
250
|
-
case n.TwiceAMonth:
|
|
251
|
-
i = r ? l(e.twice_a_month_ordinal, o, c) : e.twice_a_month;
|
|
252
|
-
break;
|
|
253
|
-
}
|
|
254
|
-
return i;
|
|
255
|
-
}, st = (e, s, r) => {
|
|
256
|
-
let a = s;
|
|
257
|
-
r !== void 0 && (e === n.EveryWeek || e === n.EveryOtherWeek ? a = F(s, r) : e === n.EveryYear ? a = Y(s, r) : a = D(s, r));
|
|
258
|
-
let t = a;
|
|
259
|
-
switch (e) {
|
|
260
|
-
case n.EveryWeek:
|
|
261
|
-
t = ne(a);
|
|
262
|
-
break;
|
|
263
|
-
case n.EveryOtherWeek:
|
|
264
|
-
t = se(a);
|
|
265
|
-
break;
|
|
266
|
-
case n.EveryMonth:
|
|
267
|
-
t = ae(a);
|
|
268
|
-
break;
|
|
269
|
-
case n.EveryOtherMonth:
|
|
270
|
-
t = oe(a);
|
|
271
|
-
break;
|
|
272
|
-
case n.EveryQuarter:
|
|
273
|
-
t = re(a);
|
|
274
|
-
break;
|
|
275
|
-
case n.EveryOtherQuarter:
|
|
276
|
-
t = te(a);
|
|
277
|
-
break;
|
|
278
|
-
case n.EveryYear:
|
|
279
|
-
t = ee(a);
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
return t;
|
|
283
|
-
};
|
|
284
|
-
export {
|
|
285
|
-
Re as D,
|
|
286
|
-
n as F,
|
|
287
|
-
B as R,
|
|
288
|
-
et as S,
|
|
289
|
-
rt as a,
|
|
290
|
-
tt as b,
|
|
291
|
-
p as c,
|
|
292
|
-
O as d,
|
|
293
|
-
st as e,
|
|
294
|
-
ot as f,
|
|
295
|
-
at as g
|
|
296
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { observer as p } from "mobx-react-lite";
|
|
3
|
-
import d from "@mui/material/Box";
|
|
4
|
-
import h from "@mui/material/IconButton";
|
|
5
|
-
import a from "@mui/material/InputAdornment";
|
|
6
|
-
import { useTokens as x, TextField as u, Icon as c } from "@mxenabled/mxui";
|
|
7
|
-
const b = ({
|
|
8
|
-
ariaLabel: t = "Search",
|
|
9
|
-
cancelAriaLabel: s = "Cancel Search",
|
|
10
|
-
onChange: e,
|
|
11
|
-
placeholder: i = "Search",
|
|
12
|
-
searchValue: o
|
|
13
|
-
}) => {
|
|
14
|
-
const n = x(), m = /* @__PURE__ */ r(
|
|
15
|
-
h,
|
|
16
|
-
{
|
|
17
|
-
"aria-label": s,
|
|
18
|
-
className: "mx-cat-cancel-search-button",
|
|
19
|
-
color: "primary",
|
|
20
|
-
onClick: () => e(""),
|
|
21
|
-
children: /* @__PURE__ */ r(c, { name: "cancel", size: 24 })
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
return /* @__PURE__ */ r(d, { className: "mx-cmn-search-box", px: n.Spacing.Large, py: n.Spacing.Medium, children: /* @__PURE__ */ r(
|
|
25
|
-
u,
|
|
26
|
-
{
|
|
27
|
-
InputProps: {
|
|
28
|
-
startAdornment: /* @__PURE__ */ r(a, { position: "start", children: /* @__PURE__ */ r(c, { color: "disabled", name: "search", size: 26 }) }),
|
|
29
|
-
endAdornment: /* @__PURE__ */ r(a, { position: "end", sx: { p: 0 }, children: o ? m : null })
|
|
30
|
-
},
|
|
31
|
-
"aria-label": t,
|
|
32
|
-
name: "search",
|
|
33
|
-
onChange: (l) => e(l.target.value),
|
|
34
|
-
placeholder: i,
|
|
35
|
-
sx: { bgcolor: "background.paper", width: "100%" },
|
|
36
|
-
value: o
|
|
37
|
-
}
|
|
38
|
-
) });
|
|
39
|
-
}, v = p(b);
|
|
40
|
-
export {
|
|
41
|
-
v as S
|
|
42
|
-
};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { b as T } from "./CategoryUtil-DB-9JMbi.mjs";
|
|
2
|
-
import { b as p } from "./Category-Ccoew_sA.mjs";
|
|
3
|
-
import { jsxs as f, Fragment as w, jsx as m } from "react/jsx-runtime";
|
|
4
|
-
import _ from "react";
|
|
5
|
-
import { observer as N } from "mobx-react-lite";
|
|
6
|
-
import k from "@mui/material/Button";
|
|
7
|
-
import h from "@mui/material/Stack";
|
|
8
|
-
import { useTheme as M } from "@mui/material/styles";
|
|
9
|
-
import { CategoryIcon as A, CategoryIconVariants as G, Text as y, P as O } from "@mxenabled/mxui";
|
|
10
|
-
import { D as $ } from "./Donut-DKY8mL3P.mjs";
|
|
11
|
-
import { u as j } from "./useAriaLive-MkYebyUR.mjs";
|
|
12
|
-
import { u as R } from "./hooks-CBl85iRr.mjs";
|
|
13
|
-
import { u as v } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
-
import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
|
-
import B from "@mui/material/Box";
|
|
16
|
-
const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
17
|
-
const a = i.find((s) => s.guid === n.category_guid);
|
|
18
|
-
if (!a) return t;
|
|
19
|
-
const o = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === o);
|
|
20
|
-
if (!r) return t;
|
|
21
|
-
const c = {
|
|
22
|
-
guid: a.guid,
|
|
23
|
-
name: a.guid === o ? `${l.parent_category_totals_label_general} ${a.name}` : a.name,
|
|
24
|
-
color: T(r.guid, g),
|
|
25
|
-
amount: n.total
|
|
26
|
-
}, e = t.find((s) => s.guid === o);
|
|
27
|
-
return e ? (e.amount += n.total, e.categoryTotals?.push(c)) : t.push({
|
|
28
|
-
guid: o,
|
|
29
|
-
name: r.name,
|
|
30
|
-
color: T(r.guid, g),
|
|
31
|
-
categoryTotals: [c],
|
|
32
|
-
amount: n.total
|
|
33
|
-
}), t;
|
|
34
|
-
}, []), no = (i, l, g, d) => {
|
|
35
|
-
const t = H(i, l, g, d), n = t.filter(
|
|
36
|
-
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
|
|
37
|
-
).sort((e, s) => s.amount - e.amount), a = n.reduce(
|
|
38
|
-
(e, s) => e + s.amount,
|
|
39
|
-
0
|
|
40
|
-
), o = n.length > D ? D : n.length, r = n.slice(0, o), c = r.map((e) => ({
|
|
41
|
-
id: e.guid,
|
|
42
|
-
color: T(e.guid, g),
|
|
43
|
-
label: e.name,
|
|
44
|
-
value: e.amount / a * 100
|
|
45
|
-
}));
|
|
46
|
-
if (n.length > 5) {
|
|
47
|
-
const e = n.slice(D, t.length), s = e.reduce(
|
|
48
|
-
(C, u) => C + u.amount,
|
|
49
|
-
0
|
|
50
|
-
);
|
|
51
|
-
r.push({
|
|
52
|
-
guid: "other",
|
|
53
|
-
color: g.palette.categories.others || "",
|
|
54
|
-
name: l.saving_goal_other,
|
|
55
|
-
categoryTotals: e,
|
|
56
|
-
amount: s
|
|
57
|
-
}), c.push({
|
|
58
|
-
id: "other",
|
|
59
|
-
color: g.palette.categories.others || "",
|
|
60
|
-
label: l.saving_goal_other,
|
|
61
|
-
value: s / a * 100
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
categoryData: r,
|
|
66
|
-
donutData: c,
|
|
67
|
-
totalAmount: a
|
|
68
|
-
};
|
|
69
|
-
}, eo = (i, l, g) => {
|
|
70
|
-
const d = i.filter(
|
|
71
|
-
(o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
|
|
72
|
-
), t = l.filter((o) => d.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
|
|
73
|
-
guid: o.category_guid,
|
|
74
|
-
name: i.find((c) => c.guid === o.category_guid)?.name,
|
|
75
|
-
color: g[r],
|
|
76
|
-
categoryTotals: [],
|
|
77
|
-
amount: Math.abs(o.total)
|
|
78
|
-
})), n = t.reduce(
|
|
79
|
-
(o, r) => o + r.amount,
|
|
80
|
-
0
|
|
81
|
-
), a = t.map((o) => ({
|
|
82
|
-
id: o.guid,
|
|
83
|
-
color: o.color,
|
|
84
|
-
label: o.name,
|
|
85
|
-
value: o.amount / n * 100
|
|
86
|
-
}));
|
|
87
|
-
return {
|
|
88
|
-
categoryData: t,
|
|
89
|
-
donutData: a,
|
|
90
|
-
totalAmount: n
|
|
91
|
-
};
|
|
92
|
-
}, V = ({
|
|
93
|
-
data: i,
|
|
94
|
-
isIncome: l = !1,
|
|
95
|
-
onSelected: g,
|
|
96
|
-
onViewTransactions: d,
|
|
97
|
-
selectedId: t,
|
|
98
|
-
size: n = 150,
|
|
99
|
-
totalLabel: a,
|
|
100
|
-
variant: o = "mini"
|
|
101
|
-
}) => {
|
|
102
|
-
const { spending: r } = R(), c = M(), { isTablet: e } = v(), { announce: s, ariaLive: C } = j(), u = _.useMemo(
|
|
103
|
-
() => t ? i.categoryData.find((b) => b.guid === t) : void 0,
|
|
104
|
-
[t]
|
|
105
|
-
);
|
|
106
|
-
_.useEffect(() => {
|
|
107
|
-
if (u) {
|
|
108
|
-
const b = x(u.amount, o === "mini" ? "0,0" : "0,0.00");
|
|
109
|
-
s(`${u.name}: ${b}`);
|
|
110
|
-
}
|
|
111
|
-
}, [u, s, o]);
|
|
112
|
-
const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], E = () => {
|
|
113
|
-
d?.(t);
|
|
114
|
-
}, I = e ? 32 : 48;
|
|
115
|
-
return /* @__PURE__ */ f(w, { children: [
|
|
116
|
-
C,
|
|
117
|
-
/* @__PURE__ */ m($, { data: S, onClick: g, selectedId: t, size: n, children: /* @__PURE__ */ m(h, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ f(h, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
|
|
118
|
-
u && /* @__PURE__ */ f(
|
|
119
|
-
h,
|
|
120
|
-
{
|
|
121
|
-
alignItems: "center",
|
|
122
|
-
gap: o === "mini" ? 0 : 8,
|
|
123
|
-
mb: o === "mini" ? 0 : 8,
|
|
124
|
-
mt: o === "mini" ? 0 : -16,
|
|
125
|
-
sx: o === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
126
|
-
children: [
|
|
127
|
-
/* @__PURE__ */ m(
|
|
128
|
-
A,
|
|
129
|
-
{
|
|
130
|
-
categoryGuid: l ? p.INCOME : u.guid,
|
|
131
|
-
size: o === "mini" ? 24 : I,
|
|
132
|
-
variant: G.Transparent
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ m(
|
|
136
|
-
y,
|
|
137
|
-
{
|
|
138
|
-
color: "secondary",
|
|
139
|
-
noWrap: !0,
|
|
140
|
-
variant: o === "mini" ? "Tiny" : "Body",
|
|
141
|
-
children: u ? u.name : a
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
!u && o === "full" && /* @__PURE__ */ m(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
-
/* @__PURE__ */ m(O, { variant: o === "mini" ? "H2" : "H1", children: u ? x(u.amount, o === "mini" ? "0,0" : "0,0.00") : x(i.totalAmount, o === "mini" ? "0,0" : "0,0.00") }),
|
|
149
|
-
!u && o === "mini" && /* @__PURE__ */ m(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
|
|
150
|
-
o === "full" && /* @__PURE__ */ m(
|
|
151
|
-
k,
|
|
152
|
-
{
|
|
153
|
-
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
|
-
disabled: i.categoryData.length === 0,
|
|
155
|
-
onClick: E,
|
|
156
|
-
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
157
|
-
variant: "text",
|
|
158
|
-
children: r.view_transactions
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
] }) }) })
|
|
162
|
-
] });
|
|
163
|
-
}, ro = N(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
|
-
const d = (t, n) => {
|
|
165
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
166
|
-
};
|
|
167
|
-
return /* @__PURE__ */ m(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
|
|
168
|
-
h,
|
|
169
|
-
{
|
|
170
|
-
alignItems: "center",
|
|
171
|
-
"aria-label": t.name,
|
|
172
|
-
"aria-pressed": t.guid === g,
|
|
173
|
-
direction: "row",
|
|
174
|
-
gap: 8,
|
|
175
|
-
onClick: () => l(t.guid),
|
|
176
|
-
onKeyDown: (n) => d(n, t.guid),
|
|
177
|
-
role: "button",
|
|
178
|
-
sx: { cursor: "pointer" },
|
|
179
|
-
tabIndex: 0,
|
|
180
|
-
children: [
|
|
181
|
-
/* @__PURE__ */ m(B, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
|
|
182
|
-
/* @__PURE__ */ m(y, { bold: t.guid === g, variant: "XSmall", children: t.name })
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
t.guid
|
|
186
|
-
)) });
|
|
187
|
-
};
|
|
188
|
-
export {
|
|
189
|
-
ro as S,
|
|
190
|
-
eo as a,
|
|
191
|
-
ao as b,
|
|
192
|
-
no as g
|
|
193
|
-
};
|