@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +676 -9
- package/README.md +216 -47
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
- package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
- package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
- package/dist/AccountUtils-T5_Odvos.mjs +27 -0
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Analytics-CkYXKvco.mjs +53 -0
- package/dist/Analytics-CzGzz_sE.mjs +136 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
- package/dist/Connect-Dk6GZEsA.mjs +39 -0
- package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
- package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
- package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
- package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
- package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/Dialog-CwWc0AbH.mjs +63 -0
- package/dist/Donut-SzzfZDHF.mjs +88 -0
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
- package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
- package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
- package/dist/LineChart-CejWS_rh.mjs +612 -0
- package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Loader-CxeBwuPG.mjs +21 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/ManageIncome-B1JfqslT.mjs +595 -0
- package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
- package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/SelectionBox-B4xELRgp.mjs +48 -0
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-PKlh8caU.mjs} +6 -6
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
- package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
- package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -2
- package/dist/accounts/index.es.js +628 -527
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.d.ts +2 -1
- package/dist/budgets/index.es.js +989 -813
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -2
- package/dist/cashflow/index.es.js +461 -490
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/components/CurrencyDialog.d.ts +19 -0
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/EmptyState.d.ts +0 -1
- package/dist/common/components/Error.d.ts +13 -0
- package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/TinyBarChart.d.ts +10 -0
- package/dist/common/components/WidgetContainer.d.ts +4 -3
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +2 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +12 -0
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -6
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +24 -24
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.es.js +254 -1348
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +2 -2
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/PostMessage.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +7 -6
- package/dist/common/utils/index.d.ts +1 -6
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +4 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.es.js +108 -0
- package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
- package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
- package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +8 -2
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Client.d.ts +1 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/{common → core}/types/Widgets.d.ts +1 -0
- package/dist/{common → core}/types/index.d.ts +4 -3
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
- package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
- package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/{common → core}/utils/Localization.d.ts +9 -1
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/dashboard/index.es.js +39 -38
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +715 -775
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +2 -2
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.d.ts +0 -2
- package/dist/finstrong/index.es.js +1587 -1349
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
- package/dist/goals/GoalsWidget.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -2
- package/dist/goals/index.es.js +707 -787
- package/dist/help/HelpWidget.d.ts +2 -2
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +19 -10
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +53 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
- package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
- package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights/components/insights/index.d.ts +25 -0
- package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
- package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights/components/shared/Confetti.d.ts +5 -0
- package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
- package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
- package/dist/insights/components/shared/Coupon.d.ts +8 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
- package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
- package/dist/insights/components/shared/TabContainer.d.ts +8 -0
- package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights/components/shared/index.d.ts +2 -0
- package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.es.js +4843 -2
- package/dist/insights/themes/Typography.d.ts +1 -0
- package/dist/insights/themes/index.d.ts +1 -0
- package/dist/insights/types/Charts/BarChart.d.ts +96 -0
- package/dist/insights/types/CommonBeat.d.ts +367 -0
- package/dist/insights/types/DirectDeposit.d.ts +16 -0
- package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/InvestmentsWidget.d.ts +2 -2
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +574 -574
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +18 -20
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +3 -3
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
- package/dist/microinsights/carousel/BeatList.d.ts +3 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +23 -40
- package/dist/microinsights/stores/CopyStore.d.ts +2 -2
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +302 -314
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +101 -93
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +489 -462
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +2 -2
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -2
- package/dist/settings/index.es.js +419 -430
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +229 -222
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -5
- package/dist/transactions/index.es.js +344 -351
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +17 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +987 -874
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +5 -3
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +2 -2
- package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
- package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +65 -43
- package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
- package/dist/AccountFields-BRRH37K1.mjs +0 -140
- package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
- package/dist/AccountStore-BFKvXJSD.mjs +0 -244
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BeatApi-De2IaqH2.mjs +0 -21
- package/dist/BeatStore-D_NYuBSz.mjs +0 -81
- package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
- package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
- package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
- package/dist/DateUtil-CVsMhbZU.mjs +0 -48
- package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
- package/dist/Dialog-CWymUiuO.mjs +0 -120
- package/dist/Donut-Dmy3JTWd.mjs +0 -86
- package/dist/Fetch-DecPFeGU.mjs +0 -119
- package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
- package/dist/GoalStore-Dbjgft2i.mjs +0 -422
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-DHj-Bufi.mjs +0 -580
- package/dist/Loader-BSWSYqvn.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
- package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
- package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
- package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
- package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
- package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
- package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
- package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
- package/dist/TransactionApi-CjBoLleL.mjs +0 -86
- package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
- package/dist/TransactionStore-D2aMUClq.mjs +0 -688
- package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
- package/dist/User-CulNdZUr.mjs +0 -314
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
- package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/stores/index.d.ts +0 -3
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/debts/store/DebtsStore.d.ts +0 -9
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -14
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
- package/dist/{common → core}/constants/Category.d.ts +0 -0
- package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- package/dist/{help → core}/constants/Help.d.ts +0 -0
- package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- package/dist/{common → core}/constants/Table.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
- package/dist/{common → core}/stores/UserStore.d.ts +1 -1
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
- /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as y } from "mobx";
|
|
2
|
-
import { getUnixTime as n } from "date-fns/getUnixTime";
|
|
3
|
-
import { subMonths as c } from "date-fns/subMonths";
|
|
4
|
-
import { startOfMonth as C } from "date-fns/startOfMonth";
|
|
5
|
-
import { endOfMonth as h } from "date-fns/endOfMonth";
|
|
6
|
-
import { a as T, g as m } from "./CategoryUtil-CFHBvaV4.mjs";
|
|
7
|
-
import { F as f, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
8
|
-
import { b as l, c as p } from "./Category-Ccoew_sA.mjs";
|
|
9
|
-
class d {
|
|
10
|
-
fetchInstance;
|
|
11
|
-
constructor(t, e, o) {
|
|
12
|
-
this.fetchInstance = new f(t, e, void 0, o);
|
|
13
|
-
}
|
|
14
|
-
addCategory = async (t) => this.fetchInstance.post(i.CATEGORIES, t).then((e) => e.category);
|
|
15
|
-
getCategories = async () => this.fetchInstance.get(i.CATEGORIES).then((t) => t.categories);
|
|
16
|
-
getDateRangeCategoryTotals = async (t, e, o) => o.length === 0 ? [] : this.fetchInstance.post(`${i.DATE_RANGE_CATEGORY_TOTALS}/from/${t}/to/${e}`, {
|
|
17
|
-
account_guid: o.map((a) => a.guid)
|
|
18
|
-
}).then((a) => a.date_range_category_totals);
|
|
19
|
-
getMonthlyCategoryTotals = async (t, e, o) => {
|
|
20
|
-
try {
|
|
21
|
-
const a = `${i.MONTHLY_CATEGORY_TOTALS}/from/${t}/to/${e}`;
|
|
22
|
-
if (o) {
|
|
23
|
-
const r = o.length === 0 ? [""] : o.map((u) => u.guid);
|
|
24
|
-
return (await this.fetchInstance.post(a, { account_guid: r })).monthly_category_totals;
|
|
25
|
-
} else
|
|
26
|
-
return (await this.fetchInstance.get(a)).monthly_category_totals;
|
|
27
|
-
} catch (a) {
|
|
28
|
-
throw console.error("Error fetching monthly category totals:", a), a;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
removeCategory = async (t) => this.fetchInstance.delete(`${i.CATEGORIES}/${t}`);
|
|
32
|
-
updateCategory = async (t) => this.fetchInstance.put(`${i.CATEGORIES}/${t.guid}`, t).then((e) => e.category);
|
|
33
|
-
}
|
|
34
|
-
class S {
|
|
35
|
-
expandedGuid = null;
|
|
36
|
-
selectedGuid = null;
|
|
37
|
-
searchValue = "";
|
|
38
|
-
showSelected = !0;
|
|
39
|
-
shouldDisableDrawerScroll = !1;
|
|
40
|
-
unselectable = [];
|
|
41
|
-
unselectableText = "";
|
|
42
|
-
savedOnSelect;
|
|
43
|
-
// todo
|
|
44
|
-
constructor() {
|
|
45
|
-
y(this);
|
|
46
|
-
}
|
|
47
|
-
setExpandedGuid = (t) => this.expandedGuid = t;
|
|
48
|
-
setSelectedGuid = (t) => this.selectedGuid = t;
|
|
49
|
-
setSearchValue = (t) => this.searchValue = t;
|
|
50
|
-
setShouldDisableDrawerScroll = (t) => this.shouldDisableDrawerScroll = t;
|
|
51
|
-
setShowSelected = (t) => this.showSelected = t;
|
|
52
|
-
setUnselectable = (t) => this.unselectable = t;
|
|
53
|
-
setUnselectableText = (t) => this.unselectableText = t;
|
|
54
|
-
onSelect = (t) => this.savedOnSelect(t);
|
|
55
|
-
setOnSelect = (t) => this.savedOnSelect = t;
|
|
56
|
-
}
|
|
57
|
-
class $ {
|
|
58
|
-
globalStore;
|
|
59
|
-
uiStore;
|
|
60
|
-
api = new d("/", "");
|
|
61
|
-
categories = [];
|
|
62
|
-
categoriesLoaded = !1;
|
|
63
|
-
categoriesLoading = !1;
|
|
64
|
-
dateRangeCategoryTotals = [];
|
|
65
|
-
monthlyCategoryTotals = [];
|
|
66
|
-
dateRangeTotalsLoaded = !1;
|
|
67
|
-
dateRangeTotalsLoading = !1;
|
|
68
|
-
monthlyTotalsLoaded = !1;
|
|
69
|
-
monthlyTotalsLoading = !1;
|
|
70
|
-
constructor(t) {
|
|
71
|
-
this.globalStore = t, this.uiStore = new S(), this.api = new d(t.endpoint, t.sessionToken, t.onError), y(this);
|
|
72
|
-
}
|
|
73
|
-
get detailedCategories() {
|
|
74
|
-
return this.globalStore.isInitialized ? T(
|
|
75
|
-
this.categories,
|
|
76
|
-
this.globalStore.copyStore.copy.categories,
|
|
77
|
-
this.dateRangeCategoryTotals,
|
|
78
|
-
this.monthlyCategoryTotals
|
|
79
|
-
) : [];
|
|
80
|
-
}
|
|
81
|
-
get detailedCategoriesWithTransactions() {
|
|
82
|
-
return m(
|
|
83
|
-
this.detailedCategories,
|
|
84
|
-
this.globalStore.transactionStore.sortedTransactions
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
get incomeCategories() {
|
|
88
|
-
return this.detailedCategories.filter((t) => t.is_income);
|
|
89
|
-
}
|
|
90
|
-
get spendCategories() {
|
|
91
|
-
return this.detailedCategories.filter(
|
|
92
|
-
(t) => !t.is_income && !t.isTransfer && t.guid !== l.INVESTMENTS
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
get transferCategories() {
|
|
96
|
-
return this.detailedCategories.filter((t) => t.isTransfer);
|
|
97
|
-
}
|
|
98
|
-
setCategories = (t) => {
|
|
99
|
-
this.categories = t, this.categoriesLoading = !1, this.categoriesLoaded = !0;
|
|
100
|
-
};
|
|
101
|
-
setMonthlyCategoryTotals = (t) => {
|
|
102
|
-
this.monthlyCategoryTotals = t, this.monthlyTotalsLoading = !1, this.monthlyTotalsLoaded = !0;
|
|
103
|
-
};
|
|
104
|
-
setDateRangeCategoryTotals = (t) => {
|
|
105
|
-
this.dateRangeCategoryTotals = t, this.dateRangeTotalsLoading = !1, this.dateRangeTotalsLoaded = !0;
|
|
106
|
-
};
|
|
107
|
-
get trendsCategories() {
|
|
108
|
-
return this.detailedCategories.filter((t) => t.totalAmount !== 0).filter((t) => t.guid !== l.INVESTMENTS && t.guid !== l.TRANSFER);
|
|
109
|
-
}
|
|
110
|
-
addCategory = async (t, e) => {
|
|
111
|
-
const o = { name: t, parent_guid: e };
|
|
112
|
-
try {
|
|
113
|
-
await this.api.addCategory(o), await this.loadCategories();
|
|
114
|
-
} catch (a) {
|
|
115
|
-
console.error(`Error occurred while adding category: ${a}`);
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
loadCategories = async () => {
|
|
119
|
-
if (!this.categoriesLoading) {
|
|
120
|
-
this.categoriesLoading = !0;
|
|
121
|
-
try {
|
|
122
|
-
const t = await this.api.getCategories();
|
|
123
|
-
this.setCategories(t);
|
|
124
|
-
} catch (t) {
|
|
125
|
-
console.error(`Error occurred while getting categories: ${t}`);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
loadDateRangeCategoryTotals = async (t, e, o) => {
|
|
130
|
-
if (!this.dateRangeTotalsLoading) {
|
|
131
|
-
this.dateRangeTotalsLoading = !0;
|
|
132
|
-
try {
|
|
133
|
-
const a = await this.api.getDateRangeCategoryTotals(
|
|
134
|
-
n(e),
|
|
135
|
-
n(o),
|
|
136
|
-
t
|
|
137
|
-
);
|
|
138
|
-
this.setDateRangeCategoryTotals(a);
|
|
139
|
-
} catch (a) {
|
|
140
|
-
console.error(`Error occurred while getting date range category totals: ${a}`);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
loadMonthlyCategoryTotals = async (t = this.globalStore.globalUiStore.selectedAccounts, e, o) => {
|
|
145
|
-
if (this.monthlyTotalsLoading) return;
|
|
146
|
-
this.monthlyTotalsLoading = !0;
|
|
147
|
-
const a = n(C(e ?? c(/* @__PURE__ */ new Date(), 11))), r = n(h(o ?? /* @__PURE__ */ new Date()));
|
|
148
|
-
try {
|
|
149
|
-
const s = await this.api.getMonthlyCategoryTotals(a, r, t);
|
|
150
|
-
this.setMonthlyCategoryTotals(s);
|
|
151
|
-
} catch (s) {
|
|
152
|
-
console.error(`Error occurred while getting monthly category totals: ${s}`);
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
reloadCategoryTotals = async (t, e, o) => {
|
|
156
|
-
const a = e ?? c(/* @__PURE__ */ new Date(), 11), r = o ?? h(/* @__PURE__ */ new Date());
|
|
157
|
-
try {
|
|
158
|
-
await Promise.all([
|
|
159
|
-
this.loadMonthlyCategoryTotals(t, a, r),
|
|
160
|
-
this.loadDateRangeCategoryTotals(t, a, r)
|
|
161
|
-
]);
|
|
162
|
-
} catch (s) {
|
|
163
|
-
console.error(`Error occurred while getting category totals: ${s}`);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
removeCategory = async (t) => {
|
|
167
|
-
try {
|
|
168
|
-
await this.api.removeCategory(t), await this.loadCategories();
|
|
169
|
-
} catch (e) {
|
|
170
|
-
console.error(`Error occurred while removing category: ${e}`);
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
updateCategory = async (t) => {
|
|
174
|
-
try {
|
|
175
|
-
await this.api.updateCategory(t), await this.loadCategories();
|
|
176
|
-
} catch (e) {
|
|
177
|
-
console.error(`Error occurred while updating category: ${e}`);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
|
181
|
-
getCategoryName = (t) => this.categories.find((o) => o.guid === t)?.name ?? p[t];
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
$ as C,
|
|
185
|
-
d as a
|
|
186
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { format as d } from "date-fns/format";
|
|
2
|
-
import { startOfMonth as T } from "date-fns/startOfMonth";
|
|
3
|
-
import { startOfToday as C } from "date-fns/startOfToday";
|
|
4
|
-
import { subMonths as N } from "date-fns/subMonths";
|
|
5
|
-
import { CategoryIconList as O } from "@mxenabled/mxui";
|
|
6
|
-
import { C as b, a as D, b as E } from "./Category-Ccoew_sA.mjs";
|
|
7
|
-
import { f as R, D as v } from "./Dialog-CWymUiuO.mjs";
|
|
8
|
-
const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
|
|
9
|
-
(n) => p(
|
|
10
|
-
n,
|
|
11
|
-
o,
|
|
12
|
-
e,
|
|
13
|
-
r,
|
|
14
|
-
t.filter((s) => s.parent_guid === n.guid)
|
|
15
|
-
)
|
|
16
|
-
), z = (t, o) => {
|
|
17
|
-
const e = O.find((r) => r.guid === t);
|
|
18
|
-
return e ? o.palette.categories[e.colorName] || "" : o.palette.categories.uncategorized || "";
|
|
19
|
-
}, p = (t, o, e, r, n = []) => {
|
|
20
|
-
const s = t.guid, i = t.parent_guid || s, u = s === i, c = e.find((a) => a.category_guid === s)?.total || 0, m = y(
|
|
21
|
-
r.filter((a) => a.category_guid === s)
|
|
22
|
-
), g = y(
|
|
23
|
-
r.filter(
|
|
24
|
-
(a) => a.category_guid === s || a.top_level_category_guid === s
|
|
25
|
-
)
|
|
26
|
-
), l = n.map(
|
|
27
|
-
(a) => p(a, o, e, r)
|
|
28
|
-
), A = l.reduce(
|
|
29
|
-
(a, M) => a + M.currentAmount,
|
|
30
|
-
c
|
|
31
|
-
), h = o.default_categories[t.guid] ? o.default_categories[t.guid].replace(/&/g, "&") : t.name;
|
|
32
|
-
return {
|
|
33
|
-
...t,
|
|
34
|
-
currentAmount: c,
|
|
35
|
-
averageAmount: _(m),
|
|
36
|
-
color: D[i],
|
|
37
|
-
icon: b[i],
|
|
38
|
-
isTransfer: i === E.TRANSFER,
|
|
39
|
-
monthlyAmounts: m,
|
|
40
|
-
name: h,
|
|
41
|
-
subCategories: l,
|
|
42
|
-
totalAmount: u ? A : 0,
|
|
43
|
-
totalAverageAmount: _(g),
|
|
44
|
-
totalMonthlyAmounts: u ? g : []
|
|
45
|
-
};
|
|
46
|
-
}, B = (t, o) => t.map((e) => {
|
|
47
|
-
const r = o.filter(
|
|
48
|
-
(n) => n.category_guid === e.guid || n.top_level_category_guid === e.guid
|
|
49
|
-
);
|
|
50
|
-
return {
|
|
51
|
-
...e,
|
|
52
|
-
transactions: r
|
|
53
|
-
};
|
|
54
|
-
}), _ = (t, o = H) => {
|
|
55
|
-
const e = o > history.length ? history.length : o;
|
|
56
|
-
return Math.ceil(
|
|
57
|
-
Math.max(
|
|
58
|
-
0,
|
|
59
|
-
t.slice(-e).reduce((r, n) => r + n.amount, 0) / e
|
|
60
|
-
)
|
|
61
|
-
);
|
|
62
|
-
}, y = (t) => {
|
|
63
|
-
const o = [], e = C();
|
|
64
|
-
for (let r = 0; r <= f; r++) {
|
|
65
|
-
const n = T(N(e, f - r)), i = t.filter(
|
|
66
|
-
(u) => u.year_month === Number(d(n, "yyyyMM"))
|
|
67
|
-
).reduce((u, c) => u + c.total, 0);
|
|
68
|
-
o.push({
|
|
69
|
-
amount: i,
|
|
70
|
-
isoDate: d(n, "yyyy-MM-dd"),
|
|
71
|
-
label: R(n, v.MONTH_YEAR)
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return o;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
k as a,
|
|
78
|
-
z as b,
|
|
79
|
-
B as g
|
|
80
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { css as q } from "@mxenabled/cssinjs";
|
|
4
|
-
import { v4 as B } from "uuid";
|
|
5
|
-
import { useTokens as L, TextField as O, P as _ } from "@mxenabled/mxui";
|
|
6
|
-
import { b as y, g as C } from "./Localization-2MODESHW.mjs";
|
|
7
|
-
import { g as W, C as j, f as g, M as b } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
8
|
-
import { u as D } from "./hooks-fY_n74f7.mjs";
|
|
9
|
-
const Q = ({
|
|
10
|
-
allowDecimals: o = !0,
|
|
11
|
-
ariaLabel: h,
|
|
12
|
-
amount: c,
|
|
13
|
-
amountIsRequired: M = !0,
|
|
14
|
-
copy: a,
|
|
15
|
-
customValidate: $ = () => !0,
|
|
16
|
-
errorText: S = "",
|
|
17
|
-
label: u,
|
|
18
|
-
minAmount: f = 1,
|
|
19
|
-
setAmount: x,
|
|
20
|
-
setHasValidInput: r,
|
|
21
|
-
...N
|
|
22
|
-
}) => {
|
|
23
|
-
const [l, t] = m.useState(""), { common: T } = D(), n = a || T.currency_input, k = L(), P = F(k), R = /^[0-9]*$/, A = /^(\d)*(\,)?([0-9]{1,2})?$/, E = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
24
|
-
let s;
|
|
25
|
-
const p = m.useRef(B());
|
|
26
|
-
if (o)
|
|
27
|
-
switch (W()) {
|
|
28
|
-
case j.CAD:
|
|
29
|
-
s = A;
|
|
30
|
-
break;
|
|
31
|
-
default:
|
|
32
|
-
s = E;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
else
|
|
36
|
-
s = R;
|
|
37
|
-
m.useEffect(() => {
|
|
38
|
-
d(c);
|
|
39
|
-
}, [c]);
|
|
40
|
-
const d = (e) => {
|
|
41
|
-
!M && (e === "" || e === "." || e === ",") ? (t(""), r?.(!1)) : Number(e) < f ? (t(
|
|
42
|
-
y(
|
|
43
|
-
n.error_amount_must_be_equal_to,
|
|
44
|
-
g(f, "0")
|
|
45
|
-
)
|
|
46
|
-
), r?.(!1)) : Number(e) > b ? (t(
|
|
47
|
-
y(
|
|
48
|
-
n.error_amount_must_be_less_than_or_equal_to,
|
|
49
|
-
g(b, o ? "0,0.00" : "0,0", Math.floor)
|
|
50
|
-
)
|
|
51
|
-
), r?.(!1)) : e.toString().match(s) ? $() ? (t(""), r?.(!0)) : (t(S), r?.(!1)) : (t(n.error_amount_is_invalid), r?.(!1)), x(e.toString());
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ i(
|
|
54
|
-
O,
|
|
55
|
-
{
|
|
56
|
-
InputProps: {
|
|
57
|
-
endAdornment: C().includes("fr-ca") ? /* @__PURE__ */ i(_, { children: "$" }) : void 0,
|
|
58
|
-
startAdornment: C().includes("fr-ca") ? void 0 : /* @__PURE__ */ i(_, { children: "$" })
|
|
59
|
-
},
|
|
60
|
-
className: `mx-cmn-currency-input ${P}`,
|
|
61
|
-
error: !!l,
|
|
62
|
-
helperText: l,
|
|
63
|
-
hiddenLabel: !u,
|
|
64
|
-
id: `currency-input-${p.current}`,
|
|
65
|
-
inputMode: o ? "decimal" : "numeric",
|
|
66
|
-
inputProps: {
|
|
67
|
-
"aria-label": h || n.enter_amount,
|
|
68
|
-
noValidate: !0,
|
|
69
|
-
pattern: "[0-9]*"
|
|
70
|
-
},
|
|
71
|
-
label: u,
|
|
72
|
-
name: `currency-input-${p.current}`,
|
|
73
|
-
onChange: (e) => d(e.target.value),
|
|
74
|
-
value: c,
|
|
75
|
-
...N
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}, F = (o) => q({
|
|
79
|
-
"& .MuiInputBase-adornedStart > .p": {
|
|
80
|
-
marginRight: o.Spacing.Tiny
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
Q as C
|
|
85
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { addMonths as s } from "date-fns/addMonths";
|
|
2
|
-
import { addQuarters as a } from "date-fns/addQuarters";
|
|
3
|
-
import { addWeeks as m } from "date-fns/addWeeks";
|
|
4
|
-
import { addYears as l } from "date-fns/addYears";
|
|
5
|
-
import { getDay as y } from "date-fns/getDay";
|
|
6
|
-
import { isBefore as n } from "date-fns/isBefore";
|
|
7
|
-
import { nextDay as c } from "date-fns/nextDay";
|
|
8
|
-
import { setDate as d } from "date-fns/setDate";
|
|
9
|
-
import { startOfToday as o } from "date-fns/startOfToday";
|
|
10
|
-
import { fromUnixTime as D } from "date-fns/fromUnixTime";
|
|
11
|
-
import { f as i, D as f } from "./Dialog-CWymUiuO.mjs";
|
|
12
|
-
const x = (t) => {
|
|
13
|
-
const e = y(t);
|
|
14
|
-
let r = c(t, e);
|
|
15
|
-
for (; n(r, o()); )
|
|
16
|
-
r = m(r, 1);
|
|
17
|
-
return r;
|
|
18
|
-
}, Y = (t) => {
|
|
19
|
-
const e = x(t);
|
|
20
|
-
return m(e, 1);
|
|
21
|
-
}, B = (t) => {
|
|
22
|
-
let e = d(o(), t.getDate());
|
|
23
|
-
for (; n(e, o()); )
|
|
24
|
-
e = s(e, 1);
|
|
25
|
-
return e;
|
|
26
|
-
}, E = (t) => {
|
|
27
|
-
const e = x(t);
|
|
28
|
-
return s(e, 1);
|
|
29
|
-
}, p = (t) => {
|
|
30
|
-
let e = a(t, 1);
|
|
31
|
-
for (; n(e, o()); )
|
|
32
|
-
e = a(e, 1);
|
|
33
|
-
return e;
|
|
34
|
-
}, Q = (t) => {
|
|
35
|
-
const e = p(t);
|
|
36
|
-
return a(e, 1);
|
|
37
|
-
}, w = (t) => l(t, 1), F = (t) => i(D(t), f.DAY_OF_WEEK_MONTH_DAY), H = (t) => t ? i(D(t), f.MONTH_YEAR) : "";
|
|
38
|
-
export {
|
|
39
|
-
Q as a,
|
|
40
|
-
p as b,
|
|
41
|
-
E as c,
|
|
42
|
-
B as d,
|
|
43
|
-
Y as e,
|
|
44
|
-
x as f,
|
|
45
|
-
w as g,
|
|
46
|
-
F as h,
|
|
47
|
-
H as i
|
|
48
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as d } from "mobx";
|
|
2
|
-
import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
|
|
3
|
-
import { A as b } from "./Account-CMjOp7S2.mjs";
|
|
4
|
-
const E = 12, T = 100;
|
|
5
|
-
var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
|
|
6
|
-
const p = {
|
|
7
|
-
unnamed_label: "Unnamed Debt"
|
|
8
|
-
};
|
|
9
|
-
function y(a, e) {
|
|
10
|
-
const t = a.filter((n) => n.account_type === b.CHECKING_LINE_OF_CREDIT ? Number(n.balance) <= 0 : n.is_excluded_from_debts !== !0), s = e.filter((n) => t.some((i) => i.guid === n.account_guid)).map(
|
|
11
|
-
(n) => l(t.find((i) => i.guid === n.account_guid), n)
|
|
12
|
-
), o = t.filter((n) => !s.some((i) => i.account.guid === n.guid)).map((n) => l(n));
|
|
13
|
-
return [...s, ...o];
|
|
14
|
-
}
|
|
15
|
-
function l(a, e) {
|
|
16
|
-
const t = { account: a, goal: e, guid: a.guid };
|
|
17
|
-
if (e) {
|
|
18
|
-
const s = e.payment_due_at ? r(_(e.payment_due_at)) : 1, o = m(/* @__PURE__ */ new Date()).setDate(s);
|
|
19
|
-
t.balance = Math.abs(e.amount - e.current_amount), t.interest_rate = e.interest_rate, t.is_paid_off = e.is_complete, t.monthly_payment = e.monthly_payment, t.name = e.name, t.original_balance = e.initial_amount, t.payment_due_date = o;
|
|
20
|
-
} else {
|
|
21
|
-
const s = a.payment_due_at ? r(_(a.payment_due_at)) : 1, o = m(/* @__PURE__ */ new Date()).setDate(s), n = a.balance ?? 0, i = a.minimum_payment ?? void 0, u = a.interest_rate ?? a.apr ?? a.apy;
|
|
22
|
-
t.balance = Math.max(n, 0), t.interest_rate = u, t.is_paid_off = n === 0, t.monthly_payment = i, t.name = a?.name ?? p.unnamed_label, t.original_balance = a.original_balance, t.payment_due_date = o;
|
|
23
|
-
}
|
|
24
|
-
return t.is_impossible = !1, t.priority = void 0, t.projected_payoff_date = void 0, t;
|
|
25
|
-
}
|
|
26
|
-
class h {
|
|
27
|
-
isLoading = !1;
|
|
28
|
-
selectedDebtChartData = {};
|
|
29
|
-
selectedDebtPriority = c.LOWEST_BALANCE;
|
|
30
|
-
constructor() {
|
|
31
|
-
d(this);
|
|
32
|
-
}
|
|
33
|
-
get showError() {
|
|
34
|
-
const { interest_rate: e, monthly_payment: t } = this.selectedDebtChartData;
|
|
35
|
-
return e === void 0 || t === void 0;
|
|
36
|
-
}
|
|
37
|
-
get showCompleted() {
|
|
38
|
-
return this.selectedDebtChartData.is_paid_off;
|
|
39
|
-
}
|
|
40
|
-
setIsLoading = (e) => this.isLoading = e;
|
|
41
|
-
setSelectedDebtChartData = (e) => this.selectedDebtChartData = e;
|
|
42
|
-
setSelectedDebtPriority = (e) => this.selectedDebtPriority = e;
|
|
43
|
-
}
|
|
44
|
-
class A {
|
|
45
|
-
globalStore;
|
|
46
|
-
uiStore;
|
|
47
|
-
constructor(e) {
|
|
48
|
-
this.globalStore = e, this.uiStore = new h(), d(this);
|
|
49
|
-
}
|
|
50
|
-
get debts() {
|
|
51
|
-
const { visibleDebtAccounts: e } = this.globalStore.accountStore, { selectedAccountGuids: t } = this.globalStore.globalUiStore, { debtGoals: s } = this.globalStore.goalStore, o = t.length ? e.filter((n) => t.includes(n.guid)) : e;
|
|
52
|
-
return y(o, s);
|
|
53
|
-
}
|
|
54
|
-
get totalMonthlyPayments() {
|
|
55
|
-
return this.debts.map((t) => Number(t.monthly_payment)).filter((t) => !isNaN(t)).reduce((t, s) => t + s, 0);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
c as D,
|
|
60
|
-
T as I,
|
|
61
|
-
E as M,
|
|
62
|
-
A as a
|
|
63
|
-
};
|
package/dist/Dialog-CWymUiuO.mjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { intlFormat as M } from "date-fns/intlFormat";
|
|
2
|
-
import { g as T } from "./Localization-2MODESHW.mjs";
|
|
3
|
-
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
import u from "@mui/material/Dialog";
|
|
5
|
-
import H from "@mui/material/DialogContent";
|
|
6
|
-
import { DialogHeader as N, DialogFooter as Y } from "@mxenabled/mxui";
|
|
7
|
-
const S = "do", x = "MMM do, yyyy", b = {
|
|
8
|
-
TIME_STAMP_HOUR_MINUTE: {
|
|
9
|
-
hour: "numeric",
|
|
10
|
-
minute: "numeric"
|
|
11
|
-
},
|
|
12
|
-
DAY: {
|
|
13
|
-
day: "numeric"
|
|
14
|
-
},
|
|
15
|
-
DAY_OF_WEEK: {
|
|
16
|
-
weekday: "long"
|
|
17
|
-
},
|
|
18
|
-
DAY_OF_WEEK_MONTH_DAY: {
|
|
19
|
-
day: "numeric",
|
|
20
|
-
month: "long",
|
|
21
|
-
weekday: "long"
|
|
22
|
-
},
|
|
23
|
-
FULL_MONTH_DAY: {
|
|
24
|
-
day: "numeric",
|
|
25
|
-
month: "long"
|
|
26
|
-
},
|
|
27
|
-
MONTH: {
|
|
28
|
-
month: "short"
|
|
29
|
-
},
|
|
30
|
-
MONTH_DAY: {
|
|
31
|
-
day: "numeric",
|
|
32
|
-
month: "short"
|
|
33
|
-
},
|
|
34
|
-
MONTH_LONG: {
|
|
35
|
-
month: "long"
|
|
36
|
-
},
|
|
37
|
-
MONTH_SHORT: {
|
|
38
|
-
month: "short"
|
|
39
|
-
},
|
|
40
|
-
MONTH_SHORT_YEAR: {
|
|
41
|
-
month: "short",
|
|
42
|
-
year: "numeric"
|
|
43
|
-
},
|
|
44
|
-
MONTH_YEAR: {
|
|
45
|
-
month: "long",
|
|
46
|
-
year: "numeric"
|
|
47
|
-
},
|
|
48
|
-
YEAR_MONTH_DAY: {
|
|
49
|
-
day: "2-digit",
|
|
50
|
-
month: "2-digit",
|
|
51
|
-
year: "numeric"
|
|
52
|
-
},
|
|
53
|
-
MONTH_DAY_YEAR: {
|
|
54
|
-
month: "short",
|
|
55
|
-
day: "2-digit",
|
|
56
|
-
year: "numeric"
|
|
57
|
-
},
|
|
58
|
-
MED_MONTH_SHORT_DAY_FULL_YEAR: {
|
|
59
|
-
month: "short",
|
|
60
|
-
day: "numeric",
|
|
61
|
-
year: "numeric"
|
|
62
|
-
}
|
|
63
|
-
}, I = (i, o) => M(new Date(i), Object.assign(o), { locale: T() }), P = ({
|
|
64
|
-
className: i,
|
|
65
|
-
copy: o,
|
|
66
|
-
disablePrimaryButton: t = !1,
|
|
67
|
-
isOpen: e = !1,
|
|
68
|
-
onClose: r,
|
|
69
|
-
onPrimaryAction: m,
|
|
70
|
-
primaryColor: c = "primary",
|
|
71
|
-
primaryText: _ = "Confirm",
|
|
72
|
-
onSecondaryAction: n,
|
|
73
|
-
secondaryColor: s = "primary",
|
|
74
|
-
secondaryText: l = "Cancel",
|
|
75
|
-
children: A,
|
|
76
|
-
...d
|
|
77
|
-
}) => {
|
|
78
|
-
const O = o?.title ?? "", h = o?.close_aria ?? "Close", D = () => {
|
|
79
|
-
m?.(), r();
|
|
80
|
-
}, y = () => {
|
|
81
|
-
n && n(), r();
|
|
82
|
-
};
|
|
83
|
-
return /* @__PURE__ */ a("div", { className: `mx-cmn-dialog ${i}`, children: /* @__PURE__ */ g(
|
|
84
|
-
u,
|
|
85
|
-
{
|
|
86
|
-
onClose: r,
|
|
87
|
-
open: e,
|
|
88
|
-
sx: {
|
|
89
|
-
"& .MuiDialog-paperScrollPaper": {
|
|
90
|
-
backgroundColor: "background.default"
|
|
91
|
-
},
|
|
92
|
-
height: "100%"
|
|
93
|
-
},
|
|
94
|
-
...d,
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ a(N, { copy: { title: O, close_aria: h }, onClose: r }),
|
|
97
|
-
/* @__PURE__ */ a(H, { sx: { lineHeight: 1.5 }, children: A }),
|
|
98
|
-
/* @__PURE__ */ a(
|
|
99
|
-
Y,
|
|
100
|
-
{
|
|
101
|
-
isPrimaryDisabled: t,
|
|
102
|
-
onPrimaryAction: D,
|
|
103
|
-
onSecondaryAction: y,
|
|
104
|
-
primaryColor: c,
|
|
105
|
-
primaryText: _,
|
|
106
|
-
secondaryColor: s,
|
|
107
|
-
secondaryText: l
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
) });
|
|
113
|
-
};
|
|
114
|
-
export {
|
|
115
|
-
b as D,
|
|
116
|
-
S as O,
|
|
117
|
-
P as a,
|
|
118
|
-
x as b,
|
|
119
|
-
I as f
|
|
120
|
-
};
|
package/dist/Donut-Dmy3JTWd.mjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import b from "react";
|
|
3
|
-
import { selectAll as m, interpolateString as x, arc as I } from "d3";
|
|
4
|
-
import d from "@mui/material/Box";
|
|
5
|
-
import { useTheme as S } from "@mui/material/styles";
|
|
6
|
-
const k = 100, E = 140, v = 10, j = ({
|
|
7
|
-
data: u,
|
|
8
|
-
hoveredId: h,
|
|
9
|
-
onClick: a,
|
|
10
|
-
onMouseEnter: s,
|
|
11
|
-
onMouseLeave: l,
|
|
12
|
-
selectedId: i,
|
|
13
|
-
size: t = 300,
|
|
14
|
-
children: p
|
|
15
|
-
}) => {
|
|
16
|
-
const f = S();
|
|
17
|
-
let r = 0;
|
|
18
|
-
const g = (o, n) => {
|
|
19
|
-
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
|
|
20
|
-
}, y = (o) => {
|
|
21
|
-
s?.(o);
|
|
22
|
-
}, w = (o) => {
|
|
23
|
-
l?.(o);
|
|
24
|
-
};
|
|
25
|
-
return b.useEffect(() => {
|
|
26
|
-
m(".arc-outer").transition("roll").duration(500).attrTween("transform", () => x("rotate(0)", "rotate(360)"));
|
|
27
|
-
}, []), /* @__PURE__ */ c(d, { height: t, position: "relative", width: t, children: [
|
|
28
|
-
/* @__PURE__ */ e(d, { height: "100%", width: "100%", children: p }),
|
|
29
|
-
/* @__PURE__ */ c(
|
|
30
|
-
"svg",
|
|
31
|
-
{
|
|
32
|
-
height: t,
|
|
33
|
-
style: { position: "absolute", top: 0, left: 0 },
|
|
34
|
-
viewBox: "-150 -150 300 300",
|
|
35
|
-
width: t,
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ e("style", { children: `
|
|
38
|
-
.arc-outer:focus,
|
|
39
|
-
.arc-outer:focus-visible {
|
|
40
|
-
stroke: ${f.palette.primary.main};
|
|
41
|
-
stroke-width: 3;
|
|
42
|
-
stroke-opacity: 0.8;
|
|
43
|
-
}
|
|
44
|
-
` }),
|
|
45
|
-
/* @__PURE__ */ e("g", { children: u.map((o) => {
|
|
46
|
-
const n = r;
|
|
47
|
-
r = r + 2 * Math.PI * (o.value / 100);
|
|
48
|
-
const D = r, R = I().cornerRadius(4)({
|
|
49
|
-
innerRadius: k,
|
|
50
|
-
outerRadius: E + (o.id === i || o.id === h ? v : 0),
|
|
51
|
-
startAngle: n,
|
|
52
|
-
endAngle: D,
|
|
53
|
-
padAngle: 0.025
|
|
54
|
-
});
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
"path",
|
|
57
|
-
{
|
|
58
|
-
"aria-label": o.label || `Segment ${o.id}`,
|
|
59
|
-
"aria-pressed": o.id === i,
|
|
60
|
-
className: "arc-outer",
|
|
61
|
-
d: R,
|
|
62
|
-
fill: o.color,
|
|
63
|
-
onBlur: () => w(o.id),
|
|
64
|
-
onClick: () => a?.(o.id),
|
|
65
|
-
onFocus: () => y(o.id),
|
|
66
|
-
onKeyDown: (A) => g(A, o.id),
|
|
67
|
-
onMouseEnter: () => s?.(o.id),
|
|
68
|
-
onMouseLeave: () => l?.(o.id),
|
|
69
|
-
role: "button",
|
|
70
|
-
style: {
|
|
71
|
-
cursor: "pointer",
|
|
72
|
-
outline: "none"
|
|
73
|
-
},
|
|
74
|
-
tabIndex: 0
|
|
75
|
-
},
|
|
76
|
-
o.id
|
|
77
|
-
);
|
|
78
|
-
}) })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] });
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
j as D
|
|
86
|
-
};
|