@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,277 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as R, runInAction as c } from "mobx";
|
|
2
|
-
import { endOfMonth as f } from "date-fns/endOfMonth";
|
|
3
|
-
import { isAfter as g } from "date-fns/isAfter";
|
|
4
|
-
import { isBefore as S } from "date-fns/isBefore";
|
|
5
|
-
import { isSameDay as p } from "date-fns/isSameDay";
|
|
6
|
-
import { isWithinInterval as T } from "date-fns/isWithinInterval";
|
|
7
|
-
import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
8
|
-
import { startOfToday as i } from "date-fns/startOfToday";
|
|
9
|
-
import { subDays as I } from "date-fns/subDays";
|
|
10
|
-
import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
-
import { a as u, b as A, c as r, d } from "./RepeatingTransaction-C2txVA9O.mjs";
|
|
12
|
-
var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
|
|
13
|
-
const G = 44;
|
|
14
|
-
class h {
|
|
15
|
-
fetchInstance;
|
|
16
|
-
constructor(t, e, n) {
|
|
17
|
-
this.fetchInstance = new x(t, e, void 0, n);
|
|
18
|
-
}
|
|
19
|
-
addRepeatingTransaction = async (t) => this.fetchInstance.post(o.REPEATING_TRANSACTIONS, t).then((e) => e.repeating_transaction);
|
|
20
|
-
getRepeatingTransactions = async () => this.fetchInstance.get(o.REPEATING_TRANSACTIONS).then((t) => t.repeating_transactions);
|
|
21
|
-
updateRepeatingTransaction = async (t) => this.fetchInstance.put(
|
|
22
|
-
`${o.REPEATING_TRANSACTIONS}/${t.guid}`,
|
|
23
|
-
t
|
|
24
|
-
).then((e) => e.repeating_transaction);
|
|
25
|
-
deleteRepeatingTransaction = async (t) => this.fetchInstance.delete(`${o.REPEATING_TRANSACTIONS}/${t}`).then((e) => e);
|
|
26
|
-
}
|
|
27
|
-
const l = (a, t) => T(t.expectedDate, a), s = (a, t) => a + t.amount;
|
|
28
|
-
class U {
|
|
29
|
-
globalStore;
|
|
30
|
-
api = new h("/", "");
|
|
31
|
-
repeatingTransactions = [];
|
|
32
|
-
isDataLoaded = !1;
|
|
33
|
-
selectedDay;
|
|
34
|
-
dateRange = { start: y(i()), end: f(i()) };
|
|
35
|
-
constructor(t) {
|
|
36
|
-
this.globalStore = t, this.api = new h(
|
|
37
|
-
t.endpoint,
|
|
38
|
-
t.sessionToken,
|
|
39
|
-
t.onError
|
|
40
|
-
), R(this);
|
|
41
|
-
}
|
|
42
|
-
get detailedRepeatingTransactions() {
|
|
43
|
-
return u(
|
|
44
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
45
|
-
this.repeatingTransactions,
|
|
46
|
-
this.globalStore.transactionStore.transactions
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
51
|
-
*/
|
|
52
|
-
get recurrences() {
|
|
53
|
-
const t = this.globalStore.accountStore.visibleAccounts;
|
|
54
|
-
return A(this.detailedRepeatingTransactions, this.dateRange).filter((e) => t.some((n) => n.guid === e.accountGuid && !n.is_excluded_from_accounts)).filter((e) => T(e.expectedDate, this.dateRange));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
58
|
-
*/
|
|
59
|
-
get pastRecurrences() {
|
|
60
|
-
return this.recurrences.filter(
|
|
61
|
-
(t) => t.status === r.Paid || t.status === r.Missed
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Returns all recurrences that are expected to occur through the end of the month
|
|
66
|
-
* or should have occurred in the last 3 days.
|
|
67
|
-
*/
|
|
68
|
-
get upcomingRecurrences() {
|
|
69
|
-
return this.recurrences.filter(
|
|
70
|
-
(t) => g(t.expectedDate, I(i(), 3)) && S(t.expectedDate, this.dateRange.end) && t.status === r.Upcoming
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Returns all expense recurrences.
|
|
75
|
-
*/
|
|
76
|
-
get expenses() {
|
|
77
|
-
return this.recurrences.filter(
|
|
78
|
-
(t) => t.type === d.Expense
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Returns the upcoming expense recurrences.
|
|
83
|
-
*/
|
|
84
|
-
get upcomingExpenses() {
|
|
85
|
-
return this.expenses.filter(
|
|
86
|
-
(t) => t.status === r.Upcoming
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Returns all income recurrences.
|
|
91
|
-
*/
|
|
92
|
-
get income() {
|
|
93
|
-
return this.recurrences.filter(
|
|
94
|
-
(t) => t.type === d.Income
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Returns the upcoming income recurrences.
|
|
99
|
-
*/
|
|
100
|
-
get upcomingIncome() {
|
|
101
|
-
return this.income.filter(
|
|
102
|
-
(t) => t.status === r.Upcoming
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
get nextIncomeRecurrence() {
|
|
106
|
-
return this.upcomingIncome.find((t) => g(t.expectedDate, i()));
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns the expense recurrences for the current month.
|
|
110
|
-
*/
|
|
111
|
-
get currentMonthExpenses() {
|
|
112
|
-
return this.expenses.filter(
|
|
113
|
-
(t) => l(this.dateRange, t)
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Returns the income recurrences for the current month.
|
|
118
|
-
*/
|
|
119
|
-
get currentMonthIncome() {
|
|
120
|
-
return this.income.filter(
|
|
121
|
-
(t) => l(this.dateRange, t)
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Calculates the total amount of all expenses for the current month.
|
|
126
|
-
*/
|
|
127
|
-
get expenseTotal() {
|
|
128
|
-
return this.currentMonthExpenses.reduce(s, 0);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Calculates the total amount of all paid expenses for the current month.
|
|
132
|
-
*/
|
|
133
|
-
get paidExpenseTotal() {
|
|
134
|
-
return this.currentMonthExpenses.filter((t) => t.status === r.Paid).reduce(s, 0);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Calculates the total amount of all missed expenses for the current month.
|
|
138
|
-
*/
|
|
139
|
-
get missedExpenseTotal() {
|
|
140
|
-
return this.currentMonthExpenses.filter((t) => t.status === r.Missed).reduce(s, 0);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Calculates the total amount of all upcoming expenses for the current month.
|
|
144
|
-
*/
|
|
145
|
-
get upcomingExpenseTotal() {
|
|
146
|
-
return this.currentMonthExpenses.filter((t) => t.status === r.Upcoming).reduce(s, 0);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Calculates the total amount of all income for the current month.
|
|
150
|
-
*/
|
|
151
|
-
get incomeTotal() {
|
|
152
|
-
return this.currentMonthIncome.reduce(s, 0);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Calculates the total amount of all paid income for the current month.
|
|
156
|
-
*/
|
|
157
|
-
get paidIncomeTotal() {
|
|
158
|
-
return this.currentMonthIncome.filter((t) => t.status === r.Paid).reduce(s, 0);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Calculates the total amount of all upcoming income for the current month.
|
|
162
|
-
*/
|
|
163
|
-
get upcomingIncomeTotal() {
|
|
164
|
-
return this.currentMonthIncome.filter((t) => t.status === r.Upcoming).reduce(s, 0);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Get the recurrences for the currently selected day.
|
|
168
|
-
*/
|
|
169
|
-
get selectedDayRecurrences() {
|
|
170
|
-
return this.selectedDay && this.recurrences.filter(
|
|
171
|
-
(t) => this.selectedDay && p(t.occurredOnDate || t.expectedDate, this.selectedDay)
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
setRepeatingTransactions = (t) => {
|
|
175
|
-
this.repeatingTransactions = t, this.isDataLoaded = !0;
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Set the date range for filtering recurrences.
|
|
179
|
-
* @param dateRange - The date range to set.
|
|
180
|
-
*/
|
|
181
|
-
setDateRange = (t) => this.dateRange = t;
|
|
182
|
-
/**
|
|
183
|
-
* Set the currently selected day.
|
|
184
|
-
* @param day - The day to select.
|
|
185
|
-
*/
|
|
186
|
-
setSelectedDay = (t) => {
|
|
187
|
-
this.selectedDay = this.selectedDay && p(t, this.selectedDay) ? void 0 : t;
|
|
188
|
-
};
|
|
189
|
-
loadRepeatingTransactionData = async () => {
|
|
190
|
-
await Promise.all([
|
|
191
|
-
this.globalStore.accountStore.loadAccountData(),
|
|
192
|
-
this.globalStore.categoryStore.loadCategories(),
|
|
193
|
-
this.globalStore.transactionStore.loadTransactionData()
|
|
194
|
-
]), await this.loadRepeatingTransactions();
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* Load repeating transactions and augment them with additional data.
|
|
198
|
-
*/
|
|
199
|
-
loadRepeatingTransactions = async () => {
|
|
200
|
-
try {
|
|
201
|
-
const t = await this.api.getRepeatingTransactions();
|
|
202
|
-
this.setRepeatingTransactions(t);
|
|
203
|
-
} catch (t) {
|
|
204
|
-
console.error(`Error occurred while getting repeating transactions: ${t}`);
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Add a new repeating transaction and link it to the associated transaction.
|
|
209
|
-
* @param repeatingTransaction - The repeating transaction to add.
|
|
210
|
-
* @param transaction - The transaction associated with the repeating transaction.
|
|
211
|
-
*/
|
|
212
|
-
addRepeatingTransaction = async (t, e) => {
|
|
213
|
-
try {
|
|
214
|
-
const n = await this.api.addRepeatingTransaction(t);
|
|
215
|
-
await this.globalStore.transactionStore.updateTransaction({
|
|
216
|
-
...e,
|
|
217
|
-
repeating_transaction_guid: n.guid
|
|
218
|
-
}), c(() => {
|
|
219
|
-
this.repeatingTransactions = [
|
|
220
|
-
...this.repeatingTransactions,
|
|
221
|
-
...u(
|
|
222
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
223
|
-
[n],
|
|
224
|
-
this.globalStore.transactionStore.transactions
|
|
225
|
-
)
|
|
226
|
-
];
|
|
227
|
-
});
|
|
228
|
-
} catch (n) {
|
|
229
|
-
console.error(`Error occurred while adding repeating transaction: ${n}`);
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
/**
|
|
233
|
-
* Delete a repeating transaction by its GUID.
|
|
234
|
-
* @param guid - The GUID of the repeating transaction to delete.
|
|
235
|
-
*/
|
|
236
|
-
deleteRepeatingTransaction = async (t) => {
|
|
237
|
-
try {
|
|
238
|
-
await this.api.deleteRepeatingTransaction(t), c(() => {
|
|
239
|
-
this.repeatingTransactions = [
|
|
240
|
-
...this.repeatingTransactions.filter((e) => e.guid !== t)
|
|
241
|
-
];
|
|
242
|
-
});
|
|
243
|
-
} catch (e) {
|
|
244
|
-
console.error(`Error occurred while deleting repeating transaction: ${e}`);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* Update an existing repeating transaction.
|
|
249
|
-
* @param transaction - The repeating transaction to update.
|
|
250
|
-
*/
|
|
251
|
-
updateRepeatingTransaction = async (t) => {
|
|
252
|
-
try {
|
|
253
|
-
const e = await this.api.updateRepeatingTransaction(t), n = this.repeatingTransactions.findIndex(
|
|
254
|
-
(m) => m.guid === e.guid
|
|
255
|
-
);
|
|
256
|
-
if (n < 0) return;
|
|
257
|
-
c(() => {
|
|
258
|
-
this.repeatingTransactions = [
|
|
259
|
-
...this.repeatingTransactions.slice(0, n),
|
|
260
|
-
...u(
|
|
261
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
262
|
-
[e],
|
|
263
|
-
this.globalStore.transactionStore.transactions
|
|
264
|
-
),
|
|
265
|
-
...this.repeatingTransactions.slice(n + 1)
|
|
266
|
-
];
|
|
267
|
-
});
|
|
268
|
-
} catch (e) {
|
|
269
|
-
console.error(`Error occurred while updating repeating transaction: ${e}`);
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
export {
|
|
274
|
-
U as R,
|
|
275
|
-
E as S,
|
|
276
|
-
G as T
|
|
277
|
-
};
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { jsxs as M, Fragment as B, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import P from "@mui/material/Avatar";
|
|
3
|
-
import w from "@mui/material/ListItem";
|
|
4
|
-
import L from "@mui/material/ListItemAvatar";
|
|
5
|
-
import U from "@mui/material/ListItemButton";
|
|
6
|
-
import G from "@mui/material/ListItemText";
|
|
7
|
-
import { Icon as I, IconWeight as S } from "@mxenabled/mxui";
|
|
8
|
-
import C from "@mui/material/ListItemIcon";
|
|
9
|
-
import $ from "@mui/material/MenuItem";
|
|
10
|
-
import j from "@mui/material/TextField";
|
|
11
|
-
import { ExpandMore as z } 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 K } from "date-fns/addYears";
|
|
16
|
-
import { formatISO as H } from "date-fns/formatISO";
|
|
17
|
-
import { fromUnixTime as V } 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 X } from "date-fns/isSameDay";
|
|
22
|
-
import { nextDay as E } from "date-fns/nextDay";
|
|
23
|
-
import { parseISO as J } from "date-fns/parseISO";
|
|
24
|
-
import { setDate as g } from "date-fns/setDate";
|
|
25
|
-
import { startOfToday as b } from "date-fns/startOfToday";
|
|
26
|
-
import { subDays as D } from "date-fns/subDays";
|
|
27
|
-
import { subMonths as Z } from "date-fns/subMonths";
|
|
28
|
-
import { subQuarters as N } from "date-fns/subQuarters";
|
|
29
|
-
import { subYears as T } from "date-fns/subYears";
|
|
30
|
-
import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
|
|
31
|
-
import { setDayOfYear as F } from "date-fns/setDayOfYear";
|
|
32
|
-
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-CVsMhbZU.mjs";
|
|
33
|
-
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
34
|
-
import { f as v, D as k } from "./Dialog-CWymUiuO.mjs";
|
|
35
|
-
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
|
-
const qe = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
37
|
-
const o = /* @__PURE__ */ M(B, { children: [
|
|
38
|
-
/* @__PURE__ */ d(L, { children: /* @__PURE__ */ d(P, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" }, weight: S.Dark }) }) }),
|
|
39
|
-
/* @__PURE__ */ d(
|
|
40
|
-
G,
|
|
41
|
-
{
|
|
42
|
-
primary: a,
|
|
43
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
44
|
-
secondary: n,
|
|
45
|
-
secondaryTypographyProps: { color: "text.default", variant: "Body", fontWeight: 600 }
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] });
|
|
49
|
-
return t ? /* @__PURE__ */ d(w, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ M(U, { onClick: t, children: [
|
|
50
|
-
o,
|
|
51
|
-
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
|
|
52
|
-
] }) }) : /* @__PURE__ */ d(w, { disableGutters: !1, disablePadding: !1, children: o });
|
|
53
|
-
}, Fe = ({ label: e, onChange: a, options: t, value: n, ...o }) => /* @__PURE__ */ d(
|
|
54
|
-
j,
|
|
55
|
-
{
|
|
56
|
-
InputLabelProps: { shrink: !0 },
|
|
57
|
-
SelectProps: {
|
|
58
|
-
IconComponent: (c) => /* @__PURE__ */ d(z, { size: 20, sx: { mr: 4 }, ...c })
|
|
59
|
-
},
|
|
60
|
-
defaultValue: 0,
|
|
61
|
-
label: e,
|
|
62
|
-
onChange: (c) => {
|
|
63
|
-
a(Number(c.target.value));
|
|
64
|
-
},
|
|
65
|
-
select: !0,
|
|
66
|
-
value: n,
|
|
67
|
-
variant: "outlined",
|
|
68
|
-
...o,
|
|
69
|
-
children: t.map((c) => /* @__PURE__ */ d($, { value: c.id, children: c.label }, c.id))
|
|
70
|
-
}
|
|
71
|
-
), se = (e) => {
|
|
72
|
-
if (!e) return "";
|
|
73
|
-
let a = e.user_name || e.feed_name || "";
|
|
74
|
-
return e.account_number && (a = `${a} *${e.account_number}`), a;
|
|
75
|
-
}, ce = (e, a) => {
|
|
76
|
-
const t = [], n = e.transactions.find(
|
|
77
|
-
(m) => m.repeating_transaction_guid === e.guid
|
|
78
|
-
);
|
|
79
|
-
if (!n) return [];
|
|
80
|
-
const o = J(e.predicted_occurs_on), r = {
|
|
81
|
-
accountGuid: e.account?.guid || "",
|
|
82
|
-
amount: e.amount,
|
|
83
|
-
categoryGuid: n.category_guid || "",
|
|
84
|
-
expectedDate: o,
|
|
85
|
-
frequency: e.recurrence_type,
|
|
86
|
-
institutionGuid: e.account?.institution_guid || "",
|
|
87
|
-
institutionName: se(e.account),
|
|
88
|
-
merchantGuid: e.merchant_guid,
|
|
89
|
-
name: e.description,
|
|
90
|
-
recurrenceDay: e.recurrence_day,
|
|
91
|
-
repeatingTransactionGuid: e.guid,
|
|
92
|
-
secondRecurrenceDay: e.second_recurrence_day,
|
|
93
|
-
status: p.Upcoming,
|
|
94
|
-
type: e.repeating_transaction_type === Y.Income ? O.Income : O.Expense,
|
|
95
|
-
transaction: void 0
|
|
96
|
-
}, c = a.start, i = a.end;
|
|
97
|
-
switch (e.recurrence_type) {
|
|
98
|
-
case s.EveryWeek:
|
|
99
|
-
t.push(...ie(r, c, i));
|
|
100
|
-
break;
|
|
101
|
-
case s.EveryOtherWeek:
|
|
102
|
-
t.push(...ue(r, c, i));
|
|
103
|
-
break;
|
|
104
|
-
case s.TwiceAMonth:
|
|
105
|
-
t.push(...de(r, c, i));
|
|
106
|
-
break;
|
|
107
|
-
case s.EveryMonth:
|
|
108
|
-
t.push(...me(r, c, i));
|
|
109
|
-
break;
|
|
110
|
-
case s.EveryOtherMonth:
|
|
111
|
-
t.push(...le(r, c, i));
|
|
112
|
-
break;
|
|
113
|
-
case s.EveryQuarter:
|
|
114
|
-
t.push(...he(r, c, i));
|
|
115
|
-
break;
|
|
116
|
-
case s.EveryOtherQuarter:
|
|
117
|
-
t.push(...fe(r, c, i));
|
|
118
|
-
break;
|
|
119
|
-
case s.EveryYear:
|
|
120
|
-
t.push(...pe(r, c, i));
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
for (const m of t) {
|
|
124
|
-
const _ = e.transactions.find(
|
|
125
|
-
(x) => x.repeating_transaction_guid === e.guid && x.date > y(D(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
|
|
126
|
-
);
|
|
127
|
-
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) : u(m.expectedDate, D(b(), 3)) && (m.status = p.Missed);
|
|
128
|
-
}
|
|
129
|
-
return t;
|
|
130
|
-
}, ie = (e, a, t) => {
|
|
131
|
-
const n = [];
|
|
132
|
-
let o = E(a, e.recurrenceDay);
|
|
133
|
-
for (; u(o, t); )
|
|
134
|
-
n.push({ ...e, expectedDate: o }), o = E(o, e.recurrenceDay);
|
|
135
|
-
return n;
|
|
136
|
-
}, ue = (e, a, t) => {
|
|
137
|
-
const n = [], o = e.expectedDate;
|
|
138
|
-
if (u(o, t)) {
|
|
139
|
-
let r = D(o, 14);
|
|
140
|
-
for (; h(r, a) || X(r, a); )
|
|
141
|
-
n.push({ ...e, expectedDate: r }), r = D(r, 14);
|
|
142
|
-
for (r = o; h(r, a) && u(r, t); )
|
|
143
|
-
n.push({ ...e, expectedDate: r }), r = Q(r, 14);
|
|
144
|
-
}
|
|
145
|
-
return n;
|
|
146
|
-
}, de = (e, a, t) => {
|
|
147
|
-
const n = [];
|
|
148
|
-
let o = g(a, e.recurrenceDay);
|
|
149
|
-
for (; u(o, t); )
|
|
150
|
-
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
151
|
-
let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : q(a);
|
|
152
|
-
for (; u(r, t); )
|
|
153
|
-
n.push({ ...e, expectedDate: r }), r = f(r, 1);
|
|
154
|
-
return n;
|
|
155
|
-
}, me = (e, a, t) => {
|
|
156
|
-
const n = [];
|
|
157
|
-
let o = g(a, e.recurrenceDay);
|
|
158
|
-
for (n.push({ ...e, expectedDate: o }), o = f(o, 1); u(o, t); )
|
|
159
|
-
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
160
|
-
return n;
|
|
161
|
-
}, le = (e, a, t) => {
|
|
162
|
-
const n = [], o = e.expectedDate;
|
|
163
|
-
let r = u(o, t) ? o : Z(o, 2);
|
|
164
|
-
for (; u(r, t); )
|
|
165
|
-
h(r, a) && n.push({ ...e, expectedDate: r }), r = f(r, 2);
|
|
166
|
-
return n;
|
|
167
|
-
}, he = (e, a, t) => {
|
|
168
|
-
const n = [], o = e.expectedDate;
|
|
169
|
-
let r = u(o, t) ? o : N(o, 1);
|
|
170
|
-
for (; u(r, t); )
|
|
171
|
-
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 1);
|
|
172
|
-
return n;
|
|
173
|
-
}, fe = (e, a, t) => {
|
|
174
|
-
const n = [], o = e.expectedDate;
|
|
175
|
-
let r = u(o, t) ? o : N(o, 2);
|
|
176
|
-
for (; u(r, t); )
|
|
177
|
-
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 2);
|
|
178
|
-
return n;
|
|
179
|
-
}, pe = (e, a, t) => {
|
|
180
|
-
const n = [], o = e.expectedDate;
|
|
181
|
-
let r = u(o, t) ? o : T(o, 1);
|
|
182
|
-
for (; u(r, t); )
|
|
183
|
-
h(r, a) && n.push({ ...e, expectedDate: r }), r = K(r, 1);
|
|
184
|
-
return n;
|
|
185
|
-
}, Re = (e, a) => {
|
|
186
|
-
const t = [];
|
|
187
|
-
for (const n of e) {
|
|
188
|
-
const o = ce(n, a);
|
|
189
|
-
t.push(...o);
|
|
190
|
-
}
|
|
191
|
-
return t.sort(
|
|
192
|
-
(n, o) => y(n.occurredOnDate || n.expectedDate) - y(o.occurredOnDate || o.expectedDate)
|
|
193
|
-
);
|
|
194
|
-
}, et = (e, a, t) => {
|
|
195
|
-
const n = [];
|
|
196
|
-
for (const o of a) {
|
|
197
|
-
const r = t.filter(
|
|
198
|
-
(c) => c.repeating_transaction_guid === o.guid
|
|
199
|
-
);
|
|
200
|
-
t.length > 0 && n.push({
|
|
201
|
-
...o,
|
|
202
|
-
account: e.find((c) => c.guid === o.account_guid),
|
|
203
|
-
transactions: r
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
return n;
|
|
207
|
-
}, tt = (e) => e.reduce((a, t) => {
|
|
208
|
-
const n = H(t.expectedDate, { representation: "date" }), o = a.find(
|
|
209
|
-
(r) => r.date.toString() === t.expectedDate.toString()
|
|
210
|
-
);
|
|
211
|
-
return o ? o.recurrences.push(t) : a.push({
|
|
212
|
-
date: t.expectedDate,
|
|
213
|
-
id: `date-${n}`,
|
|
214
|
-
recurrences: [t]
|
|
215
|
-
}), a;
|
|
216
|
-
}, []), rt = (e, a, t) => {
|
|
217
|
-
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day), c = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
|
|
218
|
-
let i = t ? l(e.monthly_ordinal, r) : e.monthly;
|
|
219
|
-
switch (a.recurrence_type) {
|
|
220
|
-
case s.EveryQuarter:
|
|
221
|
-
i = t ? l(e.quarterly_ordinal, r) : e.quarterly;
|
|
222
|
-
break;
|
|
223
|
-
case s.EveryWeek:
|
|
224
|
-
i = t ? l(
|
|
225
|
-
e.weekly_ordinal,
|
|
226
|
-
v(n, k.DAY_OF_WEEK)
|
|
227
|
-
) : e.weekly;
|
|
228
|
-
break;
|
|
229
|
-
case s.EveryYear:
|
|
230
|
-
i = t ? l(
|
|
231
|
-
e.anually_ordinal,
|
|
232
|
-
v(o, k.MONTH_DAY)
|
|
233
|
-
) : e.anually;
|
|
234
|
-
break;
|
|
235
|
-
case s.EveryOtherWeek:
|
|
236
|
-
i = t ? l(
|
|
237
|
-
e.every_other_week_ordinal,
|
|
238
|
-
v(n, k.DAY_OF_WEEK)
|
|
239
|
-
) : e.every_other_week;
|
|
240
|
-
break;
|
|
241
|
-
case s.EveryOtherMonth:
|
|
242
|
-
i = t ? l(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
243
|
-
break;
|
|
244
|
-
case s.EveryOtherQuarter:
|
|
245
|
-
i = t ? l(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
246
|
-
break;
|
|
247
|
-
case s.TwiceAMonth:
|
|
248
|
-
i = t ? l(e.twice_a_month_ordinal, r, c) : e.twice_a_month;
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
return i;
|
|
252
|
-
}, ot = (e, a) => {
|
|
253
|
-
let t = a;
|
|
254
|
-
switch (e) {
|
|
255
|
-
case s.EveryWeek:
|
|
256
|
-
t = ne(a);
|
|
257
|
-
break;
|
|
258
|
-
case s.EveryOtherWeek:
|
|
259
|
-
t = ae(a);
|
|
260
|
-
break;
|
|
261
|
-
case s.EveryMonth:
|
|
262
|
-
t = oe(a);
|
|
263
|
-
break;
|
|
264
|
-
case s.EveryOtherMonth:
|
|
265
|
-
t = re(a);
|
|
266
|
-
break;
|
|
267
|
-
case s.EveryQuarter:
|
|
268
|
-
t = te(a);
|
|
269
|
-
break;
|
|
270
|
-
case s.EveryOtherQuarter:
|
|
271
|
-
t = ee(a);
|
|
272
|
-
break;
|
|
273
|
-
case s.EveryYear:
|
|
274
|
-
t = R(a);
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
return t;
|
|
278
|
-
};
|
|
279
|
-
var s = /* @__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))(s || {}), 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 || {}), Y = /* @__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))(Y || {});
|
|
280
|
-
export {
|
|
281
|
-
qe as D,
|
|
282
|
-
s as F,
|
|
283
|
-
Y as R,
|
|
284
|
-
Fe as S,
|
|
285
|
-
et as a,
|
|
286
|
-
Re as b,
|
|
287
|
-
p as c,
|
|
288
|
-
O as d,
|
|
289
|
-
ot as e,
|
|
290
|
-
tt as f,
|
|
291
|
-
rt as g
|
|
292
|
-
};
|
|
@@ -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
|
-
};
|