@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +335 -0
- package/README.md +5 -3
- package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
- package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
- package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
- package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
- package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
- package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
- package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
- package/dist/CashflowStore-CeAzChyD.mjs +91 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
- package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
- package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
- package/dist/Connect-eYIWqCEr.mjs +39 -0
- package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
- package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
- package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
- package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
- package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
- package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
- package/dist/Dialog-Ck34yr-d.mjs +63 -0
- package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
- package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
- package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
- package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
- package/dist/Goal-0loDagc5.mjs +6 -0
- package/dist/GoalStore-fgXt--2Y.mjs +418 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
- package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-EAr5ox5U.mjs +612 -0
- package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
- package/dist/Loader-D3rjKx72.mjs +21 -0
- package/dist/Localization-CPkpIwIx.mjs +37 -0
- package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
- package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
- package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
- package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
- package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
- package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
- package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
- package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
- package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
- package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
- package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
- package/dist/SpendingLegend-BgjazduU.mjs +193 -0
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
- package/dist/Transaction-Cn5_iFm0.mjs +5 -0
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
- package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
- package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
- package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
- package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
- package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/api/AccountApi.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/index.es.js +459 -368
- package/dist/accounts/stores/AccountStore.d.ts +2 -1
- package/dist/accounts/stores/UiStore.d.ts +1 -1
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +1 -1
- package/dist/accounts/utils/Accounts.d.ts +2 -2
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/api/BudgetsApi.d.ts +5 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.es.js +851 -865
- package/dist/budgets/store/BudgetsStore.d.ts +15 -1
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/api/CashflowApi.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/index.es.js +290 -288
- package/dist/cashflow/stores/UiStore.d.ts +1 -1
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +1 -1
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/api/AppDataApi.d.ts +1 -1
- package/dist/common/api/BeatApi.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/api/GlobalCopyApi.d.ts +1 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
- package/dist/common/api/NotificationApi.d.ts +1 -1
- package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
- package/dist/common/api/UserApi.d.ts +1 -1
- package/dist/common/components/CurrencyDialog.d.ts +1 -1
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +10 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/constants/DefaultConfig.d.ts +1 -1
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +4 -4
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +625 -860
- package/dist/common/stores/AppDataStore.d.ts +3 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +4 -2
- package/dist/common/stores/GlobalUiStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/Categories.d.ts +1 -1
- package/dist/common/utils/Fetch.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +9 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/common/utils/User.d.ts +1 -1
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +41 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +1 -0
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/{common → core}/types/index.d.ts +1 -2
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +46 -45
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +705 -646
- package/dist/debts/store/DebtsStore.d.ts +2 -1
- package/dist/debts/utils/DebtStore.d.ts +1 -1
- package/dist/debts/utils/DebtsWidget.d.ts +7 -1
- package/dist/debts/utils/shared.d.ts +1 -1
- package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.es.js +161 -159
- package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/api/GoalApi.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.es.js +445 -419
- package/dist/goals/stores/GoalStore.d.ts +2 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/api/HelpApi.d.ts +1 -1
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +8 -8
- package/dist/help/store/HelpStore.d.ts +5 -4
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
- package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +4 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/index.es.js +1361 -1081
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +258 -258
- package/dist/investments/stores/HoldingStore.d.ts +2 -1
- package/dist/investments/util/InvestmentUtil.d.ts +1 -1
- package/dist/merchants/api/MerchantApi.d.ts +1 -1
- package/dist/merchants/index.es.js +16 -16
- package/dist/merchants/stores/MerchantStore.d.ts +2 -1
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +1 -1
- package/dist/microinsights/carousel/BeatList.d.ts +1 -1
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.es.js +181 -174
- package/dist/networth/stores/NetWorthStore.d.ts +2 -1
- package/dist/networth/types/NetWorth.d.ts +1 -1
- package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.es.js +104 -92
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +477 -451
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
- package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/api/SettingsApi.d.ts +1 -2
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.es.js +314 -323
- package/dist/settings/stores/SettingsStore.d.ts +3 -2
- package/dist/settings/util/Notifications.d.ts +1 -1
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +167 -166
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/constants/Transaction.d.ts +1 -1
- package/dist/transactions/index.es.js +195 -187
- package/dist/transactions/stores/TransactionStore.d.ts +2 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -1
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +1 -1
- package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
- package/dist/trends/index.es.js +817 -764
- package/dist/trends/stores/TrendsStore.d.ts +2 -1
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +1 -1
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
- package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +17 -10
- package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
- package/dist/AccountListItem-k63LpVBs.mjs +0 -90
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
- package/dist/Dialog-jmgGw5WA.mjs +0 -58
- package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
- package/dist/GoalStore-BjHKNAVm.mjs +0 -421
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-CnscUFUG.mjs +0 -580
- package/dist/Loader-icSc5MlE.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
- package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
- package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
- package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
- package/dist/TransactionList-BDffKJMO.mjs +0 -204
- package/dist/User-DS18cMaz.mjs +0 -237
- package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Client.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/Widgets.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import c from "@mui/material/IconButton";
|
|
3
|
-
import m from "@mui/material/Stack";
|
|
4
|
-
import l from "@mui/material/Tooltip";
|
|
5
|
-
import { Icon as p, IconWeight as h, Text as n } from "@mxenabled/mxui";
|
|
6
|
-
import { makeAutoObservable as i } from "mobx";
|
|
7
|
-
import { addDays as d } from "date-fns/addDays";
|
|
8
|
-
import { differenceInDays as f } from "date-fns/differenceInDays";
|
|
9
|
-
import { endOfMonth as x } from "date-fns/endOfMonth";
|
|
10
|
-
import { isBefore as u } from "date-fns/isBefore";
|
|
11
|
-
import { startOfToday as r } from "date-fns/startOfToday";
|
|
12
|
-
const A = ({
|
|
13
|
-
body: o,
|
|
14
|
-
iconName: e = "info",
|
|
15
|
-
title: s
|
|
16
|
-
}) => /* @__PURE__ */ t(
|
|
17
|
-
l,
|
|
18
|
-
{
|
|
19
|
-
enterTouchDelay: 500,
|
|
20
|
-
title: /* @__PURE__ */ a(m, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
|
21
|
-
/* @__PURE__ */ t(n, { bold: !0, variant: "Body", children: s }),
|
|
22
|
-
/* @__PURE__ */ t(n, { sx: { whiteSpace: "unset" }, variant: "Small", children: o })
|
|
23
|
-
] }),
|
|
24
|
-
children: /* @__PURE__ */ t(
|
|
25
|
-
c,
|
|
26
|
-
{
|
|
27
|
-
"aria-label": s,
|
|
28
|
-
sx: {
|
|
29
|
-
minHeight: 0,
|
|
30
|
-
minWidth: 0,
|
|
31
|
-
p: 0
|
|
32
|
-
},
|
|
33
|
-
children: /* @__PURE__ */ t(
|
|
34
|
-
p,
|
|
35
|
-
{
|
|
36
|
-
name: e,
|
|
37
|
-
sx: { color: "primary.main", fontSize: 16 },
|
|
38
|
-
weight: h.Dark
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
class g {
|
|
46
|
-
// Cashflow is hard-coded to display 30 days starting from today
|
|
47
|
-
dateRange = { start: r(), end: d(r(), 30) };
|
|
48
|
-
isDirty = !1;
|
|
49
|
-
nextIncome = void 0;
|
|
50
|
-
upcomingExpenses = [];
|
|
51
|
-
selectedCashAccounts = [];
|
|
52
|
-
constructor() {
|
|
53
|
-
i(this);
|
|
54
|
-
}
|
|
55
|
-
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
56
|
-
get daysUntilNextIncome() {
|
|
57
|
-
return this.nextIncome ? Math.abs(f(r(), this.nextIncome.expectedDate)) : 0;
|
|
58
|
-
}
|
|
59
|
-
// Returns the expenses (Activities) until the next income activity or the end of the month
|
|
60
|
-
// if there is no income activity
|
|
61
|
-
get expensesTilNextIncome() {
|
|
62
|
-
return this.upcomingExpenses.filter(
|
|
63
|
-
(e) => u(e.expectedDate, this.nextIncome?.expectedDate || x(/* @__PURE__ */ new Date()))
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
setNextIncome = (e) => {
|
|
67
|
-
this.nextIncome = e;
|
|
68
|
-
};
|
|
69
|
-
setUpcomingExpenses = (e) => {
|
|
70
|
-
this.upcomingExpenses = e;
|
|
71
|
-
};
|
|
72
|
-
setSelectedCashAccounts = (e) => this.selectedCashAccounts = e;
|
|
73
|
-
}
|
|
74
|
-
class E {
|
|
75
|
-
globalStore;
|
|
76
|
-
uiStore;
|
|
77
|
-
constructor(e) {
|
|
78
|
-
this.globalStore = e, this.uiStore = new g(), i(this);
|
|
79
|
-
}
|
|
80
|
-
completeOnboarding = async () => {
|
|
81
|
-
const e = {
|
|
82
|
-
...this.globalStore.userStore.userProfile,
|
|
83
|
-
has_completed_cash_flow_onboarding: !0
|
|
84
|
-
};
|
|
85
|
-
await this.globalStore.userStore.updateUserProfile(e);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
E as C,
|
|
90
|
-
A as I
|
|
91
|
-
};
|
|
@@ -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 F } from "./hooks-CBl85iRr.mjs";
|
|
9
|
-
const Q = ({
|
|
10
|
-
allowDecimals: r = !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: t,
|
|
21
|
-
...N
|
|
22
|
-
}) => {
|
|
23
|
-
const [d, o] = m.useState(""), { common: T } = F(), n = a || T.currency_input, k = L(), P = G(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 (r)
|
|
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
|
-
l(c);
|
|
39
|
-
}, [c]);
|
|
40
|
-
const l = (e) => {
|
|
41
|
-
!M && (e === "" || e === "." || e === ",") ? (o(""), t?.(!1)) : Number(e) < f ? (o(
|
|
42
|
-
y(
|
|
43
|
-
n.error_amount_must_be_equal_to,
|
|
44
|
-
g(f, "0")
|
|
45
|
-
)
|
|
46
|
-
), t?.(!1)) : Number(e) > b ? (o(
|
|
47
|
-
y(
|
|
48
|
-
n.error_amount_must_be_less_than_or_equal_to,
|
|
49
|
-
g(b, r ? "0,0.00" : "0,0", Math.floor)
|
|
50
|
-
)
|
|
51
|
-
), t?.(!1)) : e.toString().match(s) ? $() ? (o(""), t?.(!0)) : (o(S), t?.(!1)) : (o(n.error_amount_is_invalid), t?.(!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: !!d,
|
|
62
|
-
helperText: d,
|
|
63
|
-
hiddenLabel: !u,
|
|
64
|
-
id: `currency-input-${p.current}`,
|
|
65
|
-
inputMode: r ? "decimal" : "numeric",
|
|
66
|
-
inputProps: {
|
|
67
|
-
"aria-label": h || n.enter_amount,
|
|
68
|
-
noValidate: !0,
|
|
69
|
-
pattern: r ? "[0-9]*\\.?[0-9]*" : "[0-9]*"
|
|
70
|
-
},
|
|
71
|
-
label: u,
|
|
72
|
-
name: `currency-input-${p.current}`,
|
|
73
|
-
onChange: (e) => l(e.target.value),
|
|
74
|
-
value: c,
|
|
75
|
-
...N
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}, G = (r) => q({
|
|
79
|
-
"& .MuiInputBase-adornedStart > .p": {
|
|
80
|
-
marginRight: r.Spacing.Tiny
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
Q as C
|
|
85
|
-
};
|
package/dist/Dialog-jmgGw5WA.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import u from "@mui/material/Dialog";
|
|
3
|
-
import A from "@mui/material/DialogContent";
|
|
4
|
-
import { DialogHeader as P, DialogFooter as b } from "@mxenabled/mxui";
|
|
5
|
-
const S = ({
|
|
6
|
-
className: e,
|
|
7
|
-
copy: o,
|
|
8
|
-
disablePrimaryButton: l = !1,
|
|
9
|
-
isOpen: t = !1,
|
|
10
|
-
onClose: r,
|
|
11
|
-
onPrimaryAction: n,
|
|
12
|
-
primaryColor: c = "primary",
|
|
13
|
-
primaryText: s = "Confirm",
|
|
14
|
-
onSecondaryAction: a,
|
|
15
|
-
secondaryColor: m = "primary",
|
|
16
|
-
secondaryText: d = "Cancel",
|
|
17
|
-
children: g,
|
|
18
|
-
...p
|
|
19
|
-
}) => {
|
|
20
|
-
const f = o?.title ?? "", D = o?.close_aria ?? "Close", h = () => {
|
|
21
|
-
n?.(), r();
|
|
22
|
-
}, x = () => {
|
|
23
|
-
a && a(), r();
|
|
24
|
-
};
|
|
25
|
-
return /* @__PURE__ */ i("div", { className: `mx-cmn-dialog ${e}`, children: /* @__PURE__ */ y(
|
|
26
|
-
u,
|
|
27
|
-
{
|
|
28
|
-
onClose: r,
|
|
29
|
-
open: t,
|
|
30
|
-
sx: {
|
|
31
|
-
"& .MuiDialog-paperScrollPaper": {
|
|
32
|
-
backgroundColor: "background.default"
|
|
33
|
-
},
|
|
34
|
-
height: "100%"
|
|
35
|
-
},
|
|
36
|
-
...p,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ i(P, { copy: { title: f, close_aria: D }, onClose: r }),
|
|
39
|
-
/* @__PURE__ */ i(A, { sx: { lineHeight: 1.5 }, children: g }),
|
|
40
|
-
/* @__PURE__ */ i(
|
|
41
|
-
b,
|
|
42
|
-
{
|
|
43
|
-
isPrimaryDisabled: l,
|
|
44
|
-
onPrimaryAction: h,
|
|
45
|
-
onSecondaryAction: x,
|
|
46
|
-
primaryColor: c,
|
|
47
|
-
primaryText: s,
|
|
48
|
-
secondaryColor: m,
|
|
49
|
-
secondaryText: d
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
S as D
|
|
58
|
-
};
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import b from "react";
|
|
3
|
-
import { observer as w } from "mobx-react-lite";
|
|
4
|
-
import M from "@mui/material/Box";
|
|
5
|
-
import I from "@mui/material/Button";
|
|
6
|
-
import N from "@mui/material/Divider";
|
|
7
|
-
import R from "@mui/material/IconButton";
|
|
8
|
-
import T from "@mui/material/Popover";
|
|
9
|
-
import k from "@mui/material/Stack";
|
|
10
|
-
import U from "@mui/material/Tooltip";
|
|
11
|
-
import { FilterAlt as G, AccountBalance as Y } from "@mxenabled/mx-icons";
|
|
12
|
-
import { Text as Z, P as D } from "@mxenabled/mxui";
|
|
13
|
-
import W from "@mui/material/Checkbox";
|
|
14
|
-
import B from "@mui/material/List";
|
|
15
|
-
import v from "@mui/material/ListItem";
|
|
16
|
-
import L from "@mui/material/ListItemButton";
|
|
17
|
-
import q from "@mui/material/ListItemIcon";
|
|
18
|
-
import E from "@mui/material/ListItemText";
|
|
19
|
-
import { b as O, u as A, d as z, e as J, a as K } from "./hooks-CBl85iRr.mjs";
|
|
20
|
-
import Q from "@mui/material/styles/useTheme";
|
|
21
|
-
import { ConnectWidget as V } from "@mxenabled/web-widget-sdk";
|
|
22
|
-
import X from "@mui/material/CircularProgress";
|
|
23
|
-
import { D as tt } from "./Drawer-Bet2ZPJo.mjs";
|
|
24
|
-
import { u as et } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
25
|
-
const ot = w(
|
|
26
|
-
({ allowedAccountTypes: o }) => {
|
|
27
|
-
const { accountFilterMap: i, updateAccountFilterMap: d } = O(), { accounts: C, common: f } = A(), { account_filter: _ } = f, { accountsByTypeMap: r } = z(), x = b.useMemo(
|
|
28
|
-
() => Array.from(r.keys()).reduce((e, n) => {
|
|
29
|
-
if (!o || o && o.includes(n)) {
|
|
30
|
-
const c = r.get(n);
|
|
31
|
-
c && e.push(...c);
|
|
32
|
-
}
|
|
33
|
-
return e;
|
|
34
|
-
}, []),
|
|
35
|
-
[r, o]
|
|
36
|
-
), m = new Map(
|
|
37
|
-
Array.from(i.entries()).filter(([e]) => x.some((n) => n.guid === e))
|
|
38
|
-
), s = Array.from(m.values()).every((e) => e), S = Array.from(m.values()).some((e) => e), p = () => {
|
|
39
|
-
for (const e of m.keys())
|
|
40
|
-
d(e, !s);
|
|
41
|
-
}, g = (e) => {
|
|
42
|
-
const n = r.get(e);
|
|
43
|
-
if (!n) return;
|
|
44
|
-
const c = n.some((u) => i.get(u.guid));
|
|
45
|
-
for (const u of n)
|
|
46
|
-
d(u.guid, !c);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ l(
|
|
49
|
-
B,
|
|
50
|
-
{
|
|
51
|
-
dense: !0,
|
|
52
|
-
id: "filter_accounts",
|
|
53
|
-
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ t(v, { disableGutters: !0, disablePadding: !0, sx: { py: 16 }, children: /* @__PURE__ */ l(L, { disableGutters: !0, onClick: p, sx: { p: 0, px: 8 }, children: [
|
|
56
|
-
/* @__PURE__ */ t(
|
|
57
|
-
W,
|
|
58
|
-
{
|
|
59
|
-
checked: s,
|
|
60
|
-
disableRipple: !0,
|
|
61
|
-
indeterminate: !s && S,
|
|
62
|
-
inputProps: { "aria-labelledby": "label-select-all" },
|
|
63
|
-
size: "small",
|
|
64
|
-
tabIndex: -1
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ t(
|
|
68
|
-
E,
|
|
69
|
-
{
|
|
70
|
-
id: "label-select-all",
|
|
71
|
-
primary: _.select_all_accounts,
|
|
72
|
-
primaryTypographyProps: { variant: "body1" }
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }) }),
|
|
76
|
-
Array.from(r.keys()).map((e) => {
|
|
77
|
-
const n = r.get(e), c = o ? !o.includes(e) : !1, u = C.account_type_accounts[e];
|
|
78
|
-
return (
|
|
79
|
-
// Account Type Header
|
|
80
|
-
/* @__PURE__ */ t(v, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(k, { sx: { pb: 8, width: "100%" }, children: [
|
|
81
|
-
/* @__PURE__ */ t(N, {}),
|
|
82
|
-
/* @__PURE__ */ t(
|
|
83
|
-
B,
|
|
84
|
-
{
|
|
85
|
-
dense: !0,
|
|
86
|
-
subheader: /* @__PURE__ */ t(v, { children: /* @__PURE__ */ t(
|
|
87
|
-
L,
|
|
88
|
-
{
|
|
89
|
-
disableGutters: !0,
|
|
90
|
-
disabled: c,
|
|
91
|
-
onClick: () => g(e),
|
|
92
|
-
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
93
|
-
children: /* @__PURE__ */ t(
|
|
94
|
-
E,
|
|
95
|
-
{
|
|
96
|
-
primary: u,
|
|
97
|
-
primaryTypographyProps: { variant: "body1", fontWeight: "bold" }
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
) }),
|
|
102
|
-
children: n?.map((a) => (
|
|
103
|
-
// Account Checkbox
|
|
104
|
-
/* @__PURE__ */ t(v, { children: /* @__PURE__ */ l(
|
|
105
|
-
L,
|
|
106
|
-
{
|
|
107
|
-
disableGutters: !0,
|
|
108
|
-
disabled: c,
|
|
109
|
-
onClick: () => d(a.guid, !i.get(a.guid)),
|
|
110
|
-
sx: { p: 0, minHeight: 40 },
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
|
113
|
-
W,
|
|
114
|
-
{
|
|
115
|
-
checked: i.get(a.guid),
|
|
116
|
-
disableRipple: !0,
|
|
117
|
-
inputProps: { "aria-labelledby": `label-${a.guid}` },
|
|
118
|
-
size: "small",
|
|
119
|
-
tabIndex: -1
|
|
120
|
-
}
|
|
121
|
-
) }),
|
|
122
|
-
/* @__PURE__ */ t(
|
|
123
|
-
E,
|
|
124
|
-
{
|
|
125
|
-
id: `label-${a.guid}`,
|
|
126
|
-
primary: a.displayName,
|
|
127
|
-
primaryTypographyProps: { variant: "body1" }
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
) }, a.guid)
|
|
133
|
-
))
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
] }) }, e)
|
|
137
|
-
);
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
), rt = ({ status: o = y.Loading }) => {
|
|
144
|
-
const { connect: i } = A();
|
|
145
|
-
return /* @__PURE__ */ t(
|
|
146
|
-
M,
|
|
147
|
-
{
|
|
148
|
-
sx: {
|
|
149
|
-
height: "calc(100% - 62px)",
|
|
150
|
-
position: "absolute",
|
|
151
|
-
width: "100%"
|
|
152
|
-
},
|
|
153
|
-
children: /* @__PURE__ */ l(k, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
154
|
-
o === y.Loading && /* @__PURE__ */ t(X, { color: "primary", size: 48 }),
|
|
155
|
-
/* @__PURE__ */ t(
|
|
156
|
-
Z,
|
|
157
|
-
{
|
|
158
|
-
sx: {
|
|
159
|
-
color: "grey.600",
|
|
160
|
-
marginTop: "16px"
|
|
161
|
-
},
|
|
162
|
-
children: o === y.Error ? i.oops : i.loading
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] })
|
|
166
|
-
}
|
|
167
|
-
);
|
|
168
|
-
}, P = w(rt);
|
|
169
|
-
var y = /* @__PURE__ */ ((o) => (o.Loading = "loading", o.Error = "error", o))(y || {}), nt = /* @__PURE__ */ ((o) => (o.Currency = "currency", o.Date = "date", o.Input = "input", o.Select = "select", o))(nt || {});
|
|
170
|
-
const F = "connect_widget", Gt = "connections_widget", it = ({
|
|
171
|
-
loadWidgetProps: o,
|
|
172
|
-
onClose: i,
|
|
173
|
-
showConnectWidget: d,
|
|
174
|
-
title: C
|
|
175
|
-
}) => {
|
|
176
|
-
let f;
|
|
177
|
-
const { refreshAccounts: _ } = z(), { loadWidget: r } = J(), { connect: x } = A(), [m, s] = b.useState(!1), [S, p] = b.useState(!1), {
|
|
178
|
-
palette: { mode: g }
|
|
179
|
-
} = Q();
|
|
180
|
-
return b.useEffect(() => (d ? (s(!0), r({ mode: g, ...o }).then((e) => {
|
|
181
|
-
f = new V({
|
|
182
|
-
container: `#${F}`,
|
|
183
|
-
style: {
|
|
184
|
-
border: "none",
|
|
185
|
-
height: "calc(100% - 62px)",
|
|
186
|
-
maxWidth: "450px",
|
|
187
|
-
position: "absolute",
|
|
188
|
-
width: "100%"
|
|
189
|
-
},
|
|
190
|
-
url: e.url,
|
|
191
|
-
onSsoUrlLoadError: () => {
|
|
192
|
-
s(!1), p(!0);
|
|
193
|
-
},
|
|
194
|
-
onLoad: () => {
|
|
195
|
-
s(!1), p(!1);
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
})) : (s(!1), p(!1)), () => {
|
|
199
|
-
f?.unmount();
|
|
200
|
-
}), [d]), /* @__PURE__ */ t(
|
|
201
|
-
tt,
|
|
202
|
-
{
|
|
203
|
-
ariaLabelClose: x.close_manage_connection_aria,
|
|
204
|
-
isOpen: d,
|
|
205
|
-
onClose: () => {
|
|
206
|
-
i(), _();
|
|
207
|
-
},
|
|
208
|
-
title: C,
|
|
209
|
-
children: /* @__PURE__ */ l("div", { id: F, children: [
|
|
210
|
-
S && /* @__PURE__ */ t(P, { status: y.Error }),
|
|
211
|
-
m && /* @__PURE__ */ t(P, { status: y.Loading })
|
|
212
|
-
] })
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
}, st = w(it), Dt = w(
|
|
216
|
-
({
|
|
217
|
-
allowedAccountTypes: o,
|
|
218
|
-
onAccountFilterClick: i,
|
|
219
|
-
sx: d = {},
|
|
220
|
-
variant: C = "text"
|
|
221
|
-
}) => {
|
|
222
|
-
const { isDesktop: f } = et(), {
|
|
223
|
-
config: { show_connections_widget_in_master: _ }
|
|
224
|
-
} = K(), { common: r, connect: x } = A(), { accountFilterMap: m, resetAccountFilterMap: s } = O(), { detailedAccounts: S, updateAccountFilter: p } = z(), [g, e] = b.useState(null), [n, c] = b.useState(!1), u = (H) => {
|
|
225
|
-
s(), e(H.currentTarget), i?.();
|
|
226
|
-
}, a = () => {
|
|
227
|
-
e(null);
|
|
228
|
-
}, j = async () => {
|
|
229
|
-
await p(m), e(null);
|
|
230
|
-
}, h = r.account_filter, $ = S.length === 0;
|
|
231
|
-
return /* @__PURE__ */ l(M, { m: 4, sx: { ...d }, children: [
|
|
232
|
-
f ? /* @__PURE__ */ t(
|
|
233
|
-
I,
|
|
234
|
-
{
|
|
235
|
-
"aria-controls": "filter_accounts",
|
|
236
|
-
"aria-haspopup": !0,
|
|
237
|
-
"aria-label": h.title,
|
|
238
|
-
onClick: u,
|
|
239
|
-
startIcon: /* @__PURE__ */ t(G, { size: 24 }),
|
|
240
|
-
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
241
|
-
variant: C,
|
|
242
|
-
children: r.filter_button
|
|
243
|
-
}
|
|
244
|
-
) : /* @__PURE__ */ t(U, { id: "filter-accounts", placement: "bottom", title: h.title, children: /* @__PURE__ */ t(
|
|
245
|
-
R,
|
|
246
|
-
{
|
|
247
|
-
"aria-controls": "filter_accounts",
|
|
248
|
-
"aria-describedby": "filter-accounts",
|
|
249
|
-
"aria-haspopup": !0,
|
|
250
|
-
"aria-label": h.title,
|
|
251
|
-
color: "primary",
|
|
252
|
-
onClick: u,
|
|
253
|
-
sx: { p: 8 },
|
|
254
|
-
children: /* @__PURE__ */ t(G, { size: 24 })
|
|
255
|
-
}
|
|
256
|
-
) }),
|
|
257
|
-
/* @__PURE__ */ t(
|
|
258
|
-
T,
|
|
259
|
-
{
|
|
260
|
-
anchorEl: g,
|
|
261
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
262
|
-
onClose: a,
|
|
263
|
-
open: !!g,
|
|
264
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
265
|
-
children: $ ? /* @__PURE__ */ l(
|
|
266
|
-
k,
|
|
267
|
-
{
|
|
268
|
-
alignItems: "center",
|
|
269
|
-
direction: "column",
|
|
270
|
-
sx: { p: 16, width: 320, maxWidth: "100%" },
|
|
271
|
-
children: [
|
|
272
|
-
/* @__PURE__ */ t(Y, { size: 32 }),
|
|
273
|
-
/* @__PURE__ */ t(D, { bold: !0, mt: 12, children: h.zero_state_title }),
|
|
274
|
-
/* @__PURE__ */ t(D, { mt: 12, children: h.zero_state_description }),
|
|
275
|
-
_ && /* @__PURE__ */ t(I, { onClick: () => c(!0), children: h.zero_state_button })
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
) : /* @__PURE__ */ l(k, { children: [
|
|
279
|
-
/* @__PURE__ */ t(ot, { allowedAccountTypes: o }),
|
|
280
|
-
/* @__PURE__ */ t(N, {}),
|
|
281
|
-
/* @__PURE__ */ l(k, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
282
|
-
/* @__PURE__ */ t(I, { fullWidth: !0, onClick: a, variant: "text", children: r.cancel_button }),
|
|
283
|
-
/* @__PURE__ */ t(
|
|
284
|
-
I,
|
|
285
|
-
{
|
|
286
|
-
"aria-label": h.filter_button_aria,
|
|
287
|
-
color: "primary",
|
|
288
|
-
fullWidth: !0,
|
|
289
|
-
onClick: j,
|
|
290
|
-
variant: "contained",
|
|
291
|
-
children: r.filter_button
|
|
292
|
-
}
|
|
293
|
-
)
|
|
294
|
-
] })
|
|
295
|
-
] })
|
|
296
|
-
}
|
|
297
|
-
),
|
|
298
|
-
n && /* @__PURE__ */ t(
|
|
299
|
-
st,
|
|
300
|
-
{
|
|
301
|
-
onClose: () => c(!1),
|
|
302
|
-
showConnectWidget: n,
|
|
303
|
-
title: x.mini_title
|
|
304
|
-
}
|
|
305
|
-
)
|
|
306
|
-
] });
|
|
307
|
-
}
|
|
308
|
-
);
|
|
309
|
-
export {
|
|
310
|
-
Gt as C,
|
|
311
|
-
nt as F,
|
|
312
|
-
Dt as G,
|
|
313
|
-
y as M,
|
|
314
|
-
P as a,
|
|
315
|
-
st as b
|
|
316
|
-
};
|