@gen-epix/ui-client-common 4.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/LICENSE +287 -0
- package/README.md +93 -0
- package/dist/@types/environment.d.ts +7 -0
- package/dist/@types/mui.d.ts +9 -0
- package/dist/@types/ui.d.ts +4 -0
- package/dist/@types/vite-env.d.ts +3 -0
- package/dist/_chunks/ApplicationFooter.js +119 -0
- package/dist/_chunks/ApplicationFooter.js.map +1 -0
- package/dist/_chunks/Breadcrumbs.js +40 -0
- package/dist/_chunks/Breadcrumbs.js.map +1 -0
- package/dist/_chunks/CrudPage.js +535 -0
- package/dist/_chunks/CrudPage.js.map +1 -0
- package/dist/_chunks/GeoFilter.js +38 -0
- package/dist/_chunks/GeoFilter.js.map +1 -0
- package/dist/_chunks/Notifications.js +152 -0
- package/dist/_chunks/Notifications.js.map +1 -0
- package/dist/_chunks/OutageList.js +78 -0
- package/dist/_chunks/OutageList.js.map +1 -0
- package/dist/_chunks/OutageUtil.js +47 -0
- package/dist/_chunks/OutageUtil.js.map +1 -0
- package/dist/_chunks/QueryClientProvider.js +18 -0
- package/dist/_chunks/QueryClientProvider.js.map +1 -0
- package/dist/_chunks/QueryClientService.js +655 -0
- package/dist/_chunks/QueryClientService.js.map +1 -0
- package/dist/_chunks/Table.js +4565 -0
- package/dist/_chunks/Table.js.map +1 -0
- package/dist/_chunks/TableUtil.js +626 -0
- package/dist/_chunks/TableUtil.js.map +1 -0
- package/dist/_chunks/TextFilter.js +249 -0
- package/dist/_chunks/TextFilter.js.map +1 -0
- package/dist/_chunks/UserInvitationsAdminPage.js +273 -0
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -0
- package/dist/_chunks/_baseAssignValue.js +19 -0
- package/dist/_chunks/_baseAssignValue.js.map +1 -0
- package/dist/_chunks/_baseFlatten.js +27 -0
- package/dist/_chunks/_baseFlatten.js.map +1 -0
- package/dist/_chunks/_baseGet.js +280 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +275 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_baseUnset.js +37 -0
- package/dist/_chunks/_baseUnset.js.map +1 -0
- package/dist/_chunks/_cacheHas.js +65 -0
- package/dist/_chunks/_cacheHas.js.map +1 -0
- package/dist/_chunks/_setToString.js +71 -0
- package/dist/_chunks/_setToString.js.map +1 -0
- package/dist/_chunks/chunk-KS7C4IRE.js +3829 -0
- package/dist/_chunks/chunk-KS7C4IRE.js.map +1 -0
- package/dist/_chunks/format.js +1135 -0
- package/dist/_chunks/format.js.map +1 -0
- package/dist/_chunks/index.esm.js +1179 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/isArrayLike.js +255 -0
- package/dist/_chunks/isArrayLike.js.map +1 -0
- package/dist/_chunks/isObject.js +13 -0
- package/dist/_chunks/isObject.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +43 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isSymbol.js +14 -0
- package/dist/_chunks/isSymbol.js.map +1 -0
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/middleware.js +111 -0
- package/dist/_chunks/middleware.js.map +1 -0
- package/dist/_chunks/oidc-client-ts.js +1843 -0
- package/dist/_chunks/oidc-client-ts.js.map +1 -0
- package/dist/_chunks/omit.js +293 -0
- package/dist/_chunks/omit.js.map +1 -0
- package/dist/_chunks/query.js +769 -0
- package/dist/_chunks/query.js.map +1 -0
- package/dist/_chunks/react-oidc-context.js +201 -0
- package/dist/_chunks/react-oidc-context.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +13 -0
- package/dist/_chunks/tableStore.js +822 -0
- package/dist/_chunks/tableStore.js.map +1 -0
- package/dist/_chunks/toDate.js +18 -0
- package/dist/_chunks/toDate.js.map +1 -0
- package/dist/_chunks/uniq.js +44 -0
- package/dist/_chunks/uniq.js.map +1 -0
- package/dist/_chunks/useColumnsMenu.js +159 -0
- package/dist/_chunks/useColumnsMenu.js.map +1 -0
- package/dist/_chunks/useMutation.js +110 -0
- package/dist/_chunks/useMutation.js.map +1 -0
- package/dist/_chunks/useQueryMemo.js +325 -0
- package/dist/_chunks/useQueryMemo.js.map +1 -0
- package/dist/_chunks/vanilla.js +20 -0
- package/dist/_chunks/vanilla.js.map +1 -0
- package/dist/_chunks/yup.js +73 -0
- package/dist/_chunks/yup.js.map +1 -0
- package/dist/classes/TableEventBus/TableEventBus.d.ts +12 -0
- package/dist/classes/TableEventBus/index.d.ts +1 -0
- package/dist/classes/TableEventBus/index.js +7 -0
- package/dist/classes/TableEventBus/index.js.map +1 -0
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +27 -0
- package/dist/classes/abstracts/FilterAbstract/index.d.ts +1 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +37 -0
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -0
- package/dist/classes/filters/BooleanFilter.d.ts +11 -0
- package/dist/classes/filters/DateFilter.d.ts +26 -0
- package/dist/classes/filters/GeoFilter.d.ts +17 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +19 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +17 -0
- package/dist/classes/filters/TextFilter.d.ts +10 -0
- package/dist/classes/filters/index.d.ts +6 -0
- package/dist/classes/filters/index.js +3 -0
- package/dist/classes/services/ApiService/ApiService.d.ts +19 -0
- package/dist/classes/services/ApiService/index.d.ts +1 -0
- package/dist/classes/services/ApiService/index.js +21 -0
- package/dist/classes/services/ApiService/index.js.map +1 -0
- package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +18 -0
- package/dist/classes/services/AuthenticationService/index.d.ts +1 -0
- package/dist/classes/services/AuthenticationService/index.js +694 -0
- package/dist/classes/services/AuthenticationService/index.js.map +1 -0
- package/dist/classes/services/AuthorizationService/AuthorizationService.d.ts +15 -0
- package/dist/classes/services/AuthorizationService/index.d.ts +1 -0
- package/dist/classes/services/AuthorizationService/index.js +36 -0
- package/dist/classes/services/AuthorizationService/index.js.map +1 -0
- package/dist/classes/services/BackendVersionService/BackendVersionService.d.ts +8 -0
- package/dist/classes/services/BackendVersionService/index.d.ts +1 -0
- package/dist/classes/services/BackendVersionService/index.js +17 -0
- package/dist/classes/services/BackendVersionService/index.js.map +1 -0
- package/dist/classes/services/BreadcrumbService/BreadcrumbService.d.ts +10 -0
- package/dist/classes/services/BreadcrumbService/index.d.ts +1 -0
- package/dist/classes/services/BreadcrumbService/index.js +50 -0
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -0
- package/dist/classes/services/ConfigService/ConfigService.d.ts +9 -0
- package/dist/classes/services/ConfigService/index.d.ts +1 -0
- package/dist/classes/services/ConfigService/index.js +21 -0
- package/dist/classes/services/ConfigService/index.js.map +1 -0
- package/dist/classes/services/EmotionCacheService/EmotionCacheService.d.ts +7 -0
- package/dist/classes/services/EmotionCacheService/index.d.ts +1 -0
- package/dist/classes/services/EmotionCacheService/index.js +24 -0
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -0
- package/dist/classes/services/FeatureFlagsService/FeatureFlagsService.d.ts +9 -0
- package/dist/classes/services/FeatureFlagsService/index.d.ts +1 -0
- package/dist/classes/services/FeatureFlagsService/index.js +21 -0
- package/dist/classes/services/FeatureFlagsService/index.js.map +1 -0
- package/dist/classes/services/I18nService/I18nService.d.ts +28 -0
- package/dist/classes/services/I18nService/index.d.ts +1 -0
- package/dist/classes/services/I18nService/index.js +67 -0
- package/dist/classes/services/I18nService/index.js.map +1 -0
- package/dist/classes/services/InactivityService/InactivityService.d.ts +25 -0
- package/dist/classes/services/InactivityService/index.d.ts +1 -0
- package/dist/classes/services/InactivityService/index.js +172 -0
- package/dist/classes/services/InactivityService/index.js.map +1 -0
- package/dist/classes/services/LogService/LogService.d.ts +22 -0
- package/dist/classes/services/LogService/index.d.ts +1 -0
- package/dist/classes/services/LogService/index.js +92 -0
- package/dist/classes/services/LogService/index.js.map +1 -0
- package/dist/classes/services/NavigationHistoryService/NavigationHistoryService.d.ts +6 -0
- package/dist/classes/services/NavigationHistoryService/index.d.ts +1 -0
- package/dist/classes/services/NavigationHistoryService/index.js +14 -0
- package/dist/classes/services/NavigationHistoryService/index.js.map +1 -0
- package/dist/classes/services/NotificationService/NotificationService.d.ts +14 -0
- package/dist/classes/services/NotificationService/index.d.ts +1 -0
- package/dist/classes/services/NotificationService/index.js +63 -0
- package/dist/classes/services/NotificationService/index.js.map +1 -0
- package/dist/classes/services/PageEventBusService/PageEventBusService.d.ts +28 -0
- package/dist/classes/services/PageEventBusService/index.d.ts +1 -0
- package/dist/classes/services/PageEventBusService/index.js +66 -0
- package/dist/classes/services/PageEventBusService/index.js.map +1 -0
- package/dist/classes/services/QueryClientService/QueryClientService.d.ts +25 -0
- package/dist/classes/services/QueryClientService/index.d.ts +1 -0
- package/dist/classes/services/QueryClientService/index.js +2 -0
- package/dist/classes/services/RouterService/RouterService.d.ts +19 -0
- package/dist/classes/services/RouterService/index.d.ts +1 -0
- package/dist/classes/services/RouterService/index.js +22 -0
- package/dist/classes/services/RouterService/index.js.map +1 -0
- package/dist/classes/services/UserSettingsService/UserSettingsService.d.ts +6 -0
- package/dist/classes/services/UserSettingsService/index.d.ts +1 -0
- package/dist/classes/services/UserSettingsService/index.js +14 -0
- package/dist/classes/services/UserSettingsService/index.js.map +1 -0
- package/dist/components/app/App/App.d.ts +1 -0
- package/dist/components/app/App/index.d.ts +1 -0
- package/dist/components/app/App/index.js +106 -0
- package/dist/components/app/App/index.js.map +1 -0
- package/dist/components/app/ApplicationBootstrap/ApplicationBootstrap.d.ts +2 -0
- package/dist/components/app/ApplicationBootstrap/index.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrap/index.js +135 -0
- package/dist/components/app/ApplicationBootstrap/index.js.map +1 -0
- package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +2 -0
- package/dist/components/app/AuthenticationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthenticationWrapper/index.js +126 -0
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -0
- package/dist/components/app/AuthorizationWrapper/AuthorizationWrapper.d.ts +2 -0
- package/dist/components/app/AuthorizationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthorizationWrapper/index.js +46 -0
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -0
- package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.js +118 -0
- package/dist/components/app/RouterRoot/index.js.map +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +9 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.d.ts +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js +81 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -0
- package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +5 -0
- package/dist/components/filters/BooleanFilterField/index.d.ts +1 -0
- package/dist/components/filters/BooleanFilterField/index.js +23 -0
- package/dist/components/filters/BooleanFilterField/index.js.map +1 -0
- package/dist/components/filters/DateFilterField/DateFilterField.d.ts +5 -0
- package/dist/components/filters/DateFilterField/index.d.ts +1 -0
- package/dist/components/filters/DateFilterField/index.js +15 -0
- package/dist/components/filters/DateFilterField/index.js.map +1 -0
- package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +5 -0
- package/dist/components/filters/GeoFilterField/index.d.ts +1 -0
- package/dist/components/filters/GeoFilterField/index.js +20 -0
- package/dist/components/filters/GeoFilterField/index.js.map +1 -0
- package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +5 -0
- package/dist/components/filters/MultiSelectFilterField/index.d.ts +1 -0
- package/dist/components/filters/MultiSelectFilterField/index.js +19 -0
- package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -0
- package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +5 -0
- package/dist/components/filters/NumberRangeFilterField/index.d.ts +1 -0
- package/dist/components/filters/NumberRangeFilterField/index.js +14 -0
- package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -0
- package/dist/components/filters/TextFilterField/TextFilterField.d.ts +5 -0
- package/dist/components/filters/TextFilterField/index.d.ts +1 -0
- package/dist/components/filters/TextFilterField/index.js +12 -0
- package/dist/components/filters/TextFilterField/index.js.map +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +6 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/InfoMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/index.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/index.js +661 -0
- package/dist/components/ui/ApplicationBar/index.js.map +1 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +4 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +7 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +5 -0
- package/dist/components/ui/ApplicationFooter/index.d.ts +1 -0
- package/dist/components/ui/ApplicationFooter/index.js +2 -0
- package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +5 -0
- package/dist/components/ui/BackdropSpinner/index.d.ts +1 -0
- package/dist/components/ui/BackdropSpinner/index.js +19 -0
- package/dist/components/ui/BackdropSpinner/index.js.map +1 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumb.d.ts +9 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.js +2 -0
- package/dist/components/ui/Confirmation/Confirmation.d.ts +2 -0
- package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +11 -0
- package/dist/components/ui/Confirmation/index.d.ts +2 -0
- package/dist/components/ui/Confirmation/index.js +58 -0
- package/dist/components/ui/Confirmation/index.js.map +1 -0
- package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +8 -0
- package/dist/components/ui/ConsentDialog/index.d.ts +1 -0
- package/dist/components/ui/ConsentDialog/index.js +36 -0
- package/dist/components/ui/ConsentDialog/index.js.map +1 -0
- package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +13 -0
- package/dist/components/ui/CopyToClipboardButton/index.d.ts +1 -0
- package/dist/components/ui/CopyToClipboardButton/index.js +101 -0
- package/dist/components/ui/CopyToClipboardButton/index.js.map +1 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +27 -0
- package/dist/components/ui/Dialog/index.d.ts +1 -0
- package/dist/components/ui/Dialog/index.js +83 -0
- package/dist/components/ui/Dialog/index.js.map +1 -0
- package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +5 -0
- package/dist/components/ui/GenericErrorMessage/index.d.ts +1 -0
- package/dist/components/ui/GenericErrorMessage/index.js +91 -0
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -0
- package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +7 -0
- package/dist/components/ui/LicensesDialog/index.d.ts +1 -0
- package/dist/components/ui/LicensesDialog/index.js +117 -0
- package/dist/components/ui/LicensesDialog/index.js.map +1 -0
- package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +5 -0
- package/dist/components/ui/LinearProgressWithLabel/index.d.ts +1 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js +31 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js.map +1 -0
- package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +2 -0
- package/dist/components/ui/LoadingIndicator/index.d.ts +1 -0
- package/dist/components/ui/LoadingIndicator/index.js +12 -0
- package/dist/components/ui/LoadingIndicator/index.js.map +1 -0
- package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +7 -0
- package/dist/components/ui/MyPermissionsDialog/index.d.ts +1 -0
- package/dist/components/ui/MyPermissionsDialog/index.js +41 -0
- package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -0
- package/dist/components/ui/NavLink/NavLink.d.ts +7 -0
- package/dist/components/ui/NavLink/index.d.ts +1 -0
- package/dist/components/ui/NavLink/index.js +23 -0
- package/dist/components/ui/NavLink/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +18 -0
- package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +17 -0
- package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +22 -0
- package/dist/components/ui/NestedMenu/index.d.ts +4 -0
- package/dist/components/ui/NestedMenu/index.js +240 -0
- package/dist/components/ui/NestedMenu/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +11 -0
- package/dist/components/ui/Notifications/NotificationItem.d.ts +8 -0
- package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +5 -0
- package/dist/components/ui/Notifications/NotificationsStack.d.ts +2 -0
- package/dist/components/ui/Notifications/index.d.ts +2 -0
- package/dist/components/ui/Notifications/index.js +2 -0
- package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +7 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.d.ts +1 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +123 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -0
- package/dist/components/ui/OutageList/OutageItem.d.ts +9 -0
- package/dist/components/ui/OutageList/OutageList.d.ts +7 -0
- package/dist/components/ui/OutageList/OutageSection.d.ts +10 -0
- package/dist/components/ui/OutageList/index.d.ts +1 -0
- package/dist/components/ui/OutageList/index.js +2 -0
- package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +7 -0
- package/dist/components/ui/OutagesDialog/index.d.ts +1 -0
- package/dist/components/ui/OutagesDialog/index.js +43 -0
- package/dist/components/ui/OutagesDialog/index.js.map +1 -0
- package/dist/components/ui/PageContainer/PageContainer.d.ts +14 -0
- package/dist/components/ui/PageContainer/index.d.ts +1 -0
- package/dist/components/ui/PageContainer/index.js +135 -0
- package/dist/components/ui/PageContainer/index.js.map +1 -0
- package/dist/components/ui/ResponseHandler/ResponseHandler.d.ts +16 -0
- package/dist/components/ui/ResponseHandler/index.d.ts +1 -0
- package/dist/components/ui/ResponseHandler/index.js +28 -0
- package/dist/components/ui/ResponseHandler/index.js.map +1 -0
- package/dist/components/ui/Sidebar/SidebarItem.d.ts +13 -0
- package/dist/components/ui/Sidebar/SidebarMenu.d.ts +3 -0
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +12 -0
- package/dist/components/ui/Sidebar/index.d.ts +3 -0
- package/dist/components/ui/Sidebar/index.js +128 -0
- package/dist/components/ui/Sidebar/index.js.map +1 -0
- package/dist/components/ui/SortableList/SortableList.d.ts +14 -0
- package/dist/components/ui/SortableList/SortableListItem.d.ts +8 -0
- package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +4 -0
- package/dist/components/ui/SortableList/SortableOverlay.d.ts +2 -0
- package/dist/components/ui/SortableList/context/SortableListItemContext.d.ts +7 -0
- package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +6 -0
- package/dist/components/ui/SortableList/context/useSortableListItemContext.d.ts +1 -0
- package/dist/components/ui/Spinner/Spinner.d.ts +11 -0
- package/dist/components/ui/Spinner/index.d.ts +1 -0
- package/dist/components/ui/Spinner/index.js +63 -0
- package/dist/components/ui/Spinner/index.js.map +1 -0
- package/dist/components/ui/Stepper/Stepper.d.ts +17 -0
- package/dist/components/ui/Stepper/index.d.ts +2 -0
- package/dist/components/ui/Stepper/index.js +126 -0
- package/dist/components/ui/Stepper/index.js.map +1 -0
- package/dist/components/ui/Stepper/stepperModel.d.ts +4 -0
- package/dist/components/ui/Table/Table.d.ts +30 -0
- package/dist/components/ui/Table/TableActionsCell.d.ts +6 -0
- package/dist/components/ui/Table/TableCaption.d.ts +7 -0
- package/dist/components/ui/Table/TableCell.d.ts +27 -0
- package/dist/components/ui/Table/TableCellAsyncContent.d.ts +4 -0
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +8 -0
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +5 -0
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +9 -0
- package/dist/components/ui/Table/TableFilter.d.ts +6 -0
- package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +9 -0
- package/dist/components/ui/Table/TableHeader.d.ts +8 -0
- package/dist/components/ui/Table/TableHeaderCell.d.ts +9 -0
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +7 -0
- package/dist/components/ui/Table/TableMenu.d.ts +5 -0
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +8 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +5 -0
- package/dist/components/ui/Table/classNames.d.ts +8 -0
- package/dist/components/ui/Table/index.d.ts +12 -0
- package/dist/components/ui/Table/index.js +2 -0
- package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +7 -0
- package/dist/components/ui/UserFeedbackDialog/index.d.ts +1 -0
- package/dist/components/ui/UserFeedbackDialog/index.js +117 -0
- package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -0
- package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js +40 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -0
- package/dist/constants/query.d.ts +21 -0
- package/dist/constants/query.js +46 -0
- package/dist/constants/query.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +26 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/useIdentifierIssuerOwnOrganizationQuery.d.ts +5 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +22 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/useIdentifierIssuerQuery.d.ts +8 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +21 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/useInviteUserConstraintsQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +32 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/useOrganizationAdminPoliciesQuery.d.ts +7 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +13 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/useOrganizationIdentifierIssuerLinksQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js +22 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationsQuery/useOrganizationsQuery.d.ts +6 -0
- package/dist/dataHooks/useUsersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUsersQuery/index.js +23 -0
- package/dist/dataHooks/useUsersQuery/index.js.map +1 -0
- package/dist/dataHooks/useUsersQuery/useUsersQuery.d.ts +6 -0
- package/dist/hoc/withDialog/index.d.ts +1 -0
- package/dist/hoc/withDialog/index.js +69 -0
- package/dist/hoc/withDialog/index.js.map +1 -0
- package/dist/hoc/withDialog/withDialog.d.ts +33 -0
- package/dist/hoc/withPermissions/index.d.ts +1 -0
- package/dist/hoc/withPermissions/index.js +21 -0
- package/dist/hoc/withPermissions/index.js.map +1 -0
- package/dist/hoc/withPermissions/withPermissions.d.ts +10 -0
- package/dist/hooks/useColumnsMenu/index.d.ts +1 -0
- package/dist/hooks/useColumnsMenu/index.js +2 -0
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +6 -0
- package/dist/hooks/useCreateMutation/index.d.ts +1 -0
- package/dist/hooks/useCreateMutation/index.js +50 -0
- package/dist/hooks/useCreateMutation/index.js.map +1 -0
- package/dist/hooks/useCreateMutation/useCreateMutation.d.ts +21 -0
- package/dist/hooks/useDeleteMutation/index.d.ts +1 -0
- package/dist/hooks/useDeleteMutation/index.js +41 -0
- package/dist/hooks/useDeleteMutation/index.js.map +1 -0
- package/dist/hooks/useDeleteMutation/useDeleteMutation.d.ts +20 -0
- package/dist/hooks/useEditMutation/index.d.ts +1 -0
- package/dist/hooks/useEditMutation/index.js +57 -0
- package/dist/hooks/useEditMutation/index.js.map +1 -0
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +23 -0
- package/dist/hooks/useInitializeTableStore/index.d.ts +1 -0
- package/dist/hooks/useInitializeTableStore/index.js +28 -0
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -0
- package/dist/hooks/useInitializeTableStore/useInitializeTableStore.d.ts +11 -0
- package/dist/hooks/useItemQuery/index.d.ts +1 -0
- package/dist/hooks/useItemQuery/index.js +61 -0
- package/dist/hooks/useItemQuery/index.js.map +1 -0
- package/dist/hooks/useItemQuery/useItemQuery.d.ts +15 -0
- package/dist/hooks/useQueryMemo/index.d.ts +1 -0
- package/dist/hooks/useQueryMemo/index.js +2 -0
- package/dist/hooks/useQueryMemo/useQueryMemo.d.ts +2 -0
- package/dist/hooks/useUpdateBreadcrumb/index.d.ts +1 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js +15 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js.map +1 -0
- package/dist/hooks/useUpdateBreadcrumb/useUpdateBreadcrumb.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js +12 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js.map +1 -0
- package/dist/hooks/useUpdateDocumentTitle/useUpdateDocumentTitle.d.ts +1 -0
- package/dist/locale/en.json +294 -0
- package/dist/locale/nl.json +294 -0
- package/dist/models/admin.d.ts +7 -0
- package/dist/models/admin.js +8 -0
- package/dist/models/admin.js.map +1 -0
- package/dist/models/api.d.ts +9 -0
- package/dist/models/api.js +0 -0
- package/dist/models/auth.d.ts +11 -0
- package/dist/models/auth.js +0 -0
- package/dist/models/config.d.ts +77 -0
- package/dist/models/config.js +0 -0
- package/dist/models/data.d.ts +10 -0
- package/dist/models/data.js +0 -0
- package/dist/models/dataHooks.d.ts +17 -0
- package/dist/models/dataHooks.js +0 -0
- package/dist/models/filter.d.ts +34 -0
- package/dist/models/filter.js +0 -0
- package/dist/models/nestedMenu.d.ts +17 -0
- package/dist/models/nestedMenu.js +0 -0
- package/dist/models/notification.d.ts +11 -0
- package/dist/models/notification.js +0 -0
- package/dist/models/outage.d.ts +6 -0
- package/dist/models/outage.js +0 -0
- package/dist/models/reactRouter.d.ts +25 -0
- package/dist/models/reactRouter.js +0 -0
- package/dist/models/table.d.ts +149 -0
- package/dist/models/table.js +10 -0
- package/dist/models/table.js.map +1 -0
- package/dist/models/theme.d.ts +17 -0
- package/dist/models/theme.js +0 -0
- package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.js +61 -0
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -0
- package/dist/pages/AdminPage/AdminPage.d.ts +1 -0
- package/dist/pages/AdminPage/index.d.ts +1 -0
- package/dist/pages/AdminPage/index.js +83 -0
- package/dist/pages/AdminPage/index.js.map +1 -0
- package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +5 -0
- package/dist/pages/ChooseIdentityProviderPage/index.d.ts +1 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js +85 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -0
- package/dist/pages/CrudPage/CrudPage.d.ts +75 -0
- package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +12 -0
- package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +23 -0
- package/dist/pages/CrudPage/index.d.ts +1 -0
- package/dist/pages/CrudPage/index.js +2 -0
- package/dist/pages/ErrorPage/ErrorPage.d.ts +4 -0
- package/dist/pages/ErrorPage/index.d.ts +1 -0
- package/dist/pages/ErrorPage/index.js +19 -0
- package/dist/pages/ErrorPage/index.js.map +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js +69 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +98 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js +86 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js +68 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.js +132 -0
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -0
- package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.js +133 -0
- package/dist/pages/OutagesAdminPage/index.js.map +1 -0
- package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.js +26 -0
- package/dist/pages/PostLoginPage/index.js.map +1 -0
- package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.js +32 -0
- package/dist/pages/PostLogoutPage/index.js.map +1 -0
- package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.js +20 -0
- package/dist/pages/RouterErrorPage/index.js.map +1 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.js +2 -0
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +7 -0
- package/dist/pages/UsersAdminPage/index.d.ts +1 -0
- package/dist/pages/UsersAdminPage/index.js +206 -0
- package/dist/pages/UsersAdminPage/index.js.map +1 -0
- package/dist/routes/adminRoutes.d.ts +9 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +258 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/routes.d.ts +8 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +9 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/stores/oidcStore/index.d.ts +1 -0
- package/dist/stores/oidcStore/index.js +18 -0
- package/dist/stores/oidcStore/index.js.map +1 -0
- package/dist/stores/oidcStore/oidcStore.d.ts +22 -0
- package/dist/stores/outagesStore/index.d.ts +1 -0
- package/dist/stores/outagesStore/index.js +16 -0
- package/dist/stores/outagesStore/index.js.map +1 -0
- package/dist/stores/outagesStore/outagesStore.d.ts +12 -0
- package/dist/stores/tableStore/TableStoreContext.d.ts +3 -0
- package/dist/stores/tableStore/TableStoreContextProvider.d.ts +7 -0
- package/dist/stores/tableStore/index.d.ts +4 -0
- package/dist/stores/tableStore/index.js +2 -0
- package/dist/stores/tableStore/tableStore.d.ts +102 -0
- package/dist/stores/tableStore/useTableStoreContext.d.ts +3 -0
- package/dist/test/lib/index.d.ts +1 -0
- package/dist/test/lib/render.d.ts +2 -0
- package/dist/theme/demoTheme/demoTheme.d.ts +3 -0
- package/dist/theme/demoTheme/index.d.ts +1 -0
- package/dist/theme/demoTheme/index.js +337 -0
- package/dist/theme/demoTheme/index.js.map +1 -0
- package/dist/utils/AxiosUtil/AxiosUtil.d.ts +13 -0
- package/dist/utils/AxiosUtil/index.d.ts +1 -0
- package/dist/utils/AxiosUtil/index.js +38 -0
- package/dist/utils/AxiosUtil/index.js.map +1 -0
- package/dist/utils/DataHookUtil/DataHookUtil.d.ts +8 -0
- package/dist/utils/DataHookUtil/index.d.ts +1 -0
- package/dist/utils/DataHookUtil/index.js +77 -0
- package/dist/utils/DataHookUtil/index.js.map +1 -0
- package/dist/utils/LoadableUtil/LoadableUtil.d.ts +9 -0
- package/dist/utils/LoadableUtil/index.d.ts +1 -0
- package/dist/utils/LoadableUtil/index.js +25 -0
- package/dist/utils/LoadableUtil/index.js.map +1 -0
- package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +5 -0
- package/dist/utils/MenuDataUtil/index.d.ts +1 -0
- package/dist/utils/MenuDataUtil/index.js +19 -0
- package/dist/utils/MenuDataUtil/index.js.map +1 -0
- package/dist/utils/NotificationUtil/NotificationUtil.d.ts +4 -0
- package/dist/utils/NotificationUtil/index.d.ts +1 -0
- package/dist/utils/NotificationUtil/index.js +12 -0
- package/dist/utils/NotificationUtil/index.js.map +1 -0
- package/dist/utils/OutageUtil/OutageUtil.d.ts +5 -0
- package/dist/utils/OutageUtil/index.d.ts +1 -0
- package/dist/utils/OutageUtil/index.js +2 -0
- package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +4 -0
- package/dist/utils/StandardConfigUtil/index.d.ts +1 -0
- package/dist/utils/StandardConfigUtil/index.js +76 -0
- package/dist/utils/StandardConfigUtil/index.js.map +1 -0
- package/dist/utils/TableUtil/TableUtil.d.ts +90 -0
- package/dist/utils/TableUtil/index.d.ts +1 -0
- package/dist/utils/TableUtil/index.js +2 -0
- package/dist/utils/TimeUtil/TimeUtil.d.ts +3 -0
- package/dist/utils/TimeUtil/index.d.ts +1 -0
- package/dist/utils/TimeUtil/index.js +19 -0
- package/dist/utils/TimeUtil/index.js.map +1 -0
- package/dist/utils/UserManagerUtil/UserManagerUtil.d.ts +6 -0
- package/dist/utils/UserManagerUtil/index.d.ts +1 -0
- package/dist/utils/UserManagerUtil/index.js +31 -0
- package/dist/utils/UserManagerUtil/index.js.map +1 -0
- package/dist/utils/UserUtil/UserUtil.d.ts +5 -0
- package/dist/utils/UserUtil/index.d.ts +1 -0
- package/dist/utils/UserUtil/index.js +10 -0
- package/dist/utils/UserUtil/index.js.map +1 -0
- package/package.json +585 -0
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
import { n as e, t } from "./rolldown-runtime.js";
|
|
2
|
+
import { m as n } from "./_baseGet.js";
|
|
3
|
+
import { t as r } from "./_baseIteratee.js";
|
|
4
|
+
import { ConfigService as i } from "../classes/services/ConfigService/index.js";
|
|
5
|
+
import { t as a } from "./_baseUnset.js";
|
|
6
|
+
import { n as o, t as s } from "./uniq.js";
|
|
7
|
+
import { _ as c, a as l, c as u, d, f, g as p, h as m, l as h, o as g, p as _, r as v, s as y, t as b, v as x, w as S, x as C } from "./query.js";
|
|
8
|
+
import { HmrUtil as w } from "@gen-epix/ui-core/utils/HmrUtil";
|
|
9
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
10
|
+
var T = class extends u {
|
|
11
|
+
#e;
|
|
12
|
+
#t;
|
|
13
|
+
#n;
|
|
14
|
+
#r;
|
|
15
|
+
constructor(e) {
|
|
16
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || E(), this.setOptions(e.options), this.scheduleGc();
|
|
17
|
+
}
|
|
18
|
+
setOptions(e) {
|
|
19
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
20
|
+
}
|
|
21
|
+
get meta() {
|
|
22
|
+
return this.options.meta;
|
|
23
|
+
}
|
|
24
|
+
addObserver(e) {
|
|
25
|
+
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
26
|
+
type: "observerAdded",
|
|
27
|
+
mutation: this,
|
|
28
|
+
observer: e
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
removeObserver(e) {
|
|
32
|
+
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
33
|
+
type: "observerRemoved",
|
|
34
|
+
mutation: this,
|
|
35
|
+
observer: e
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
optionalRemove() {
|
|
39
|
+
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
40
|
+
}
|
|
41
|
+
continue() {
|
|
42
|
+
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
43
|
+
}
|
|
44
|
+
async execute(e) {
|
|
45
|
+
let t = () => {
|
|
46
|
+
this.#i({ type: "continue" });
|
|
47
|
+
}, n = {
|
|
48
|
+
client: this.#e,
|
|
49
|
+
meta: this.options.meta,
|
|
50
|
+
mutationKey: this.options.mutationKey
|
|
51
|
+
};
|
|
52
|
+
this.#r = v({
|
|
53
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
54
|
+
onFail: (e, t) => {
|
|
55
|
+
this.#i({
|
|
56
|
+
type: "failed",
|
|
57
|
+
failureCount: e,
|
|
58
|
+
error: t
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
onPause: () => {
|
|
62
|
+
this.#i({ type: "pause" });
|
|
63
|
+
},
|
|
64
|
+
onContinue: t,
|
|
65
|
+
retry: this.options.retry ?? 0,
|
|
66
|
+
retryDelay: this.options.retryDelay,
|
|
67
|
+
networkMode: this.options.networkMode,
|
|
68
|
+
canRun: () => this.#n.canRun(this)
|
|
69
|
+
});
|
|
70
|
+
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
71
|
+
try {
|
|
72
|
+
if (r) t();
|
|
73
|
+
else {
|
|
74
|
+
this.#i({
|
|
75
|
+
type: "pending",
|
|
76
|
+
variables: e,
|
|
77
|
+
isPaused: i
|
|
78
|
+
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
79
|
+
let t = await this.options.onMutate?.(e, n);
|
|
80
|
+
t !== this.state.context && this.#i({
|
|
81
|
+
type: "pending",
|
|
82
|
+
context: t,
|
|
83
|
+
variables: e,
|
|
84
|
+
isPaused: i
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
let a = await this.#r.start();
|
|
88
|
+
return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
|
|
89
|
+
type: "success",
|
|
90
|
+
data: a
|
|
91
|
+
}), a;
|
|
92
|
+
} catch (t) {
|
|
93
|
+
try {
|
|
94
|
+
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
Promise.reject(e);
|
|
97
|
+
}
|
|
98
|
+
try {
|
|
99
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
100
|
+
} catch (e) {
|
|
101
|
+
Promise.reject(e);
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
105
|
+
} catch (e) {
|
|
106
|
+
Promise.reject(e);
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
110
|
+
} catch (e) {
|
|
111
|
+
Promise.reject(e);
|
|
112
|
+
}
|
|
113
|
+
throw this.#i({
|
|
114
|
+
type: "error",
|
|
115
|
+
error: t
|
|
116
|
+
}), t;
|
|
117
|
+
} finally {
|
|
118
|
+
this.#n.runNext(this);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
#i(e) {
|
|
122
|
+
let t = (t) => {
|
|
123
|
+
switch (e.type) {
|
|
124
|
+
case "failed": return {
|
|
125
|
+
...t,
|
|
126
|
+
failureCount: e.failureCount,
|
|
127
|
+
failureReason: e.error
|
|
128
|
+
};
|
|
129
|
+
case "pause": return {
|
|
130
|
+
...t,
|
|
131
|
+
isPaused: !0
|
|
132
|
+
};
|
|
133
|
+
case "continue": return {
|
|
134
|
+
...t,
|
|
135
|
+
isPaused: !1
|
|
136
|
+
};
|
|
137
|
+
case "pending": return {
|
|
138
|
+
...t,
|
|
139
|
+
context: e.context,
|
|
140
|
+
data: void 0,
|
|
141
|
+
failureCount: 0,
|
|
142
|
+
failureReason: null,
|
|
143
|
+
error: null,
|
|
144
|
+
isPaused: e.isPaused,
|
|
145
|
+
status: "pending",
|
|
146
|
+
variables: e.variables,
|
|
147
|
+
submittedAt: Date.now()
|
|
148
|
+
};
|
|
149
|
+
case "success": return {
|
|
150
|
+
...t,
|
|
151
|
+
data: e.data,
|
|
152
|
+
failureCount: 0,
|
|
153
|
+
failureReason: null,
|
|
154
|
+
error: null,
|
|
155
|
+
status: "success",
|
|
156
|
+
isPaused: !1
|
|
157
|
+
};
|
|
158
|
+
case "error": return {
|
|
159
|
+
...t,
|
|
160
|
+
data: void 0,
|
|
161
|
+
error: e.error,
|
|
162
|
+
failureCount: t.failureCount + 1,
|
|
163
|
+
failureReason: e.error,
|
|
164
|
+
isPaused: !1,
|
|
165
|
+
status: "error"
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
this.state = t(this.state), h.batch(() => {
|
|
170
|
+
this.#t.forEach((t) => {
|
|
171
|
+
t.onMutationUpdate(e);
|
|
172
|
+
}), this.#n.notify({
|
|
173
|
+
mutation: this,
|
|
174
|
+
type: "updated",
|
|
175
|
+
action: e
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
function E() {
|
|
181
|
+
return {
|
|
182
|
+
context: void 0,
|
|
183
|
+
data: void 0,
|
|
184
|
+
error: null,
|
|
185
|
+
failureCount: 0,
|
|
186
|
+
failureReason: null,
|
|
187
|
+
isPaused: !1,
|
|
188
|
+
status: "idle",
|
|
189
|
+
variables: void 0,
|
|
190
|
+
submittedAt: 0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
195
|
+
var D = class extends y {
|
|
196
|
+
constructor(e = {}) {
|
|
197
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
198
|
+
}
|
|
199
|
+
#e;
|
|
200
|
+
#t;
|
|
201
|
+
#n;
|
|
202
|
+
build(e, t, n) {
|
|
203
|
+
let r = new T({
|
|
204
|
+
client: e,
|
|
205
|
+
mutationCache: this,
|
|
206
|
+
mutationId: ++this.#n,
|
|
207
|
+
options: e.defaultMutationOptions(t),
|
|
208
|
+
state: n
|
|
209
|
+
});
|
|
210
|
+
return this.add(r), r;
|
|
211
|
+
}
|
|
212
|
+
add(e) {
|
|
213
|
+
this.#e.add(e);
|
|
214
|
+
let t = O(e);
|
|
215
|
+
if (typeof t == "string") {
|
|
216
|
+
let n = this.#t.get(t);
|
|
217
|
+
n ? n.push(e) : this.#t.set(t, [e]);
|
|
218
|
+
}
|
|
219
|
+
this.notify({
|
|
220
|
+
type: "added",
|
|
221
|
+
mutation: e
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
remove(e) {
|
|
225
|
+
if (this.#e.delete(e)) {
|
|
226
|
+
let t = O(e);
|
|
227
|
+
if (typeof t == "string") {
|
|
228
|
+
let n = this.#t.get(t);
|
|
229
|
+
if (n) if (n.length > 1) {
|
|
230
|
+
let t = n.indexOf(e);
|
|
231
|
+
t !== -1 && n.splice(t, 1);
|
|
232
|
+
} else n[0] === e && this.#t.delete(t);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
this.notify({
|
|
236
|
+
type: "removed",
|
|
237
|
+
mutation: e
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
canRun(e) {
|
|
241
|
+
let t = O(e);
|
|
242
|
+
if (typeof t == "string") {
|
|
243
|
+
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
244
|
+
return !n || n === e;
|
|
245
|
+
} else return !0;
|
|
246
|
+
}
|
|
247
|
+
runNext(e) {
|
|
248
|
+
let t = O(e);
|
|
249
|
+
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
250
|
+
}
|
|
251
|
+
clear() {
|
|
252
|
+
h.batch(() => {
|
|
253
|
+
this.#e.forEach((e) => {
|
|
254
|
+
this.notify({
|
|
255
|
+
type: "removed",
|
|
256
|
+
mutation: e
|
|
257
|
+
});
|
|
258
|
+
}), this.#e.clear(), this.#t.clear();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
getAll() {
|
|
262
|
+
return Array.from(this.#e);
|
|
263
|
+
}
|
|
264
|
+
find(e) {
|
|
265
|
+
let t = {
|
|
266
|
+
exact: !0,
|
|
267
|
+
...e
|
|
268
|
+
};
|
|
269
|
+
return this.getAll().find((e) => m(t, e));
|
|
270
|
+
}
|
|
271
|
+
findAll(e = {}) {
|
|
272
|
+
return this.getAll().filter((t) => m(e, t));
|
|
273
|
+
}
|
|
274
|
+
notify(e) {
|
|
275
|
+
h.batch(() => {
|
|
276
|
+
this.listeners.forEach((t) => {
|
|
277
|
+
t(e);
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
resumePausedMutations() {
|
|
282
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
283
|
+
return h.batch(() => Promise.all(e.map((e) => e.continue().catch(c))));
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
function O(e) {
|
|
287
|
+
return e.options.scope?.id;
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
291
|
+
var k = class extends y {
|
|
292
|
+
constructor(e = {}) {
|
|
293
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
294
|
+
}
|
|
295
|
+
#e;
|
|
296
|
+
build(e, t, n) {
|
|
297
|
+
let r = t.queryKey, i = t.queryHash ?? _(r, t), a = this.get(i);
|
|
298
|
+
return a || (a = new b({
|
|
299
|
+
client: e,
|
|
300
|
+
queryKey: r,
|
|
301
|
+
queryHash: i,
|
|
302
|
+
options: e.defaultQueryOptions(t),
|
|
303
|
+
state: n,
|
|
304
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
305
|
+
}), this.add(a)), a;
|
|
306
|
+
}
|
|
307
|
+
add(e) {
|
|
308
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
309
|
+
type: "added",
|
|
310
|
+
query: e
|
|
311
|
+
}));
|
|
312
|
+
}
|
|
313
|
+
remove(e) {
|
|
314
|
+
let t = this.#e.get(e.queryHash);
|
|
315
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
316
|
+
type: "removed",
|
|
317
|
+
query: e
|
|
318
|
+
}));
|
|
319
|
+
}
|
|
320
|
+
clear() {
|
|
321
|
+
h.batch(() => {
|
|
322
|
+
this.getAll().forEach((e) => {
|
|
323
|
+
this.remove(e);
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
get(e) {
|
|
328
|
+
return this.#e.get(e);
|
|
329
|
+
}
|
|
330
|
+
getAll() {
|
|
331
|
+
return [...this.#e.values()];
|
|
332
|
+
}
|
|
333
|
+
find(e) {
|
|
334
|
+
let t = {
|
|
335
|
+
exact: !0,
|
|
336
|
+
...e
|
|
337
|
+
};
|
|
338
|
+
return this.getAll().find((e) => p(t, e));
|
|
339
|
+
}
|
|
340
|
+
findAll(e = {}) {
|
|
341
|
+
let t = this.getAll();
|
|
342
|
+
return Object.keys(e).length > 0 ? t.filter((t) => p(e, t)) : t;
|
|
343
|
+
}
|
|
344
|
+
notify(e) {
|
|
345
|
+
h.batch(() => {
|
|
346
|
+
this.listeners.forEach((t) => {
|
|
347
|
+
t(e);
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
onFocus() {
|
|
352
|
+
h.batch(() => {
|
|
353
|
+
this.getAll().forEach((e) => {
|
|
354
|
+
e.onFocus();
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
onOnline() {
|
|
359
|
+
h.batch(() => {
|
|
360
|
+
this.getAll().forEach((e) => {
|
|
361
|
+
e.onOnline();
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
}, A = class {
|
|
366
|
+
#e;
|
|
367
|
+
#t;
|
|
368
|
+
#n;
|
|
369
|
+
#r;
|
|
370
|
+
#i;
|
|
371
|
+
#a;
|
|
372
|
+
#o;
|
|
373
|
+
#s;
|
|
374
|
+
constructor(e = {}) {
|
|
375
|
+
this.#e = e.queryCache || new k(), this.#t = e.mutationCache || new D(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
376
|
+
}
|
|
377
|
+
mount() {
|
|
378
|
+
this.#a++, this.#a === 1 && (this.#o = g.subscribe(async (e) => {
|
|
379
|
+
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
380
|
+
}), this.#s = l.subscribe(async (e) => {
|
|
381
|
+
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
382
|
+
}));
|
|
383
|
+
}
|
|
384
|
+
unmount() {
|
|
385
|
+
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
386
|
+
}
|
|
387
|
+
isFetching(e) {
|
|
388
|
+
return this.#e.findAll({
|
|
389
|
+
...e,
|
|
390
|
+
fetchStatus: "fetching"
|
|
391
|
+
}).length;
|
|
392
|
+
}
|
|
393
|
+
isMutating(e) {
|
|
394
|
+
return this.#t.findAll({
|
|
395
|
+
...e,
|
|
396
|
+
status: "pending"
|
|
397
|
+
}).length;
|
|
398
|
+
}
|
|
399
|
+
getQueryData(e) {
|
|
400
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
401
|
+
return this.#e.get(t.queryHash)?.state.data;
|
|
402
|
+
}
|
|
403
|
+
ensureQueryData(e) {
|
|
404
|
+
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
405
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(C(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
406
|
+
}
|
|
407
|
+
getQueriesData(e) {
|
|
408
|
+
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
409
|
+
}
|
|
410
|
+
setQueryData(e, t, n) {
|
|
411
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = d(t, i);
|
|
412
|
+
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
413
|
+
...n,
|
|
414
|
+
manual: !0
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
setQueriesData(e, t, n) {
|
|
418
|
+
return h.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
419
|
+
}
|
|
420
|
+
getQueryState(e) {
|
|
421
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
422
|
+
return this.#e.get(t.queryHash)?.state;
|
|
423
|
+
}
|
|
424
|
+
removeQueries(e) {
|
|
425
|
+
let t = this.#e;
|
|
426
|
+
h.batch(() => {
|
|
427
|
+
t.findAll(e).forEach((e) => {
|
|
428
|
+
t.remove(e);
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
resetQueries(e, t) {
|
|
433
|
+
let n = this.#e;
|
|
434
|
+
return h.batch(() => (n.findAll(e).forEach((e) => {
|
|
435
|
+
e.reset();
|
|
436
|
+
}), this.refetchQueries({
|
|
437
|
+
type: "active",
|
|
438
|
+
...e
|
|
439
|
+
}, t)));
|
|
440
|
+
}
|
|
441
|
+
cancelQueries(e, t = {}) {
|
|
442
|
+
let n = {
|
|
443
|
+
revert: !0,
|
|
444
|
+
...t
|
|
445
|
+
}, r = h.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
446
|
+
return Promise.all(r).then(c).catch(c);
|
|
447
|
+
}
|
|
448
|
+
invalidateQueries(e, t = {}) {
|
|
449
|
+
return h.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
450
|
+
e.invalidate();
|
|
451
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
452
|
+
...e,
|
|
453
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
454
|
+
}, t)));
|
|
455
|
+
}
|
|
456
|
+
refetchQueries(e, t = {}) {
|
|
457
|
+
let n = {
|
|
458
|
+
...t,
|
|
459
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
460
|
+
}, r = h.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
461
|
+
let t = e.fetch(void 0, n);
|
|
462
|
+
return n.throwOnError || (t = t.catch(c)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
463
|
+
}));
|
|
464
|
+
return Promise.all(r).then(c);
|
|
465
|
+
}
|
|
466
|
+
fetchQuery(e) {
|
|
467
|
+
let t = this.defaultQueryOptions(e);
|
|
468
|
+
t.retry === void 0 && (t.retry = !1);
|
|
469
|
+
let n = this.#e.build(this, t);
|
|
470
|
+
return n.isStaleByTime(C(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
471
|
+
}
|
|
472
|
+
prefetchQuery(e) {
|
|
473
|
+
return this.fetchQuery(e).then(c).catch(c);
|
|
474
|
+
}
|
|
475
|
+
fetchInfiniteQuery(e) {
|
|
476
|
+
return e._type = "infinite", this.fetchQuery(e);
|
|
477
|
+
}
|
|
478
|
+
prefetchInfiniteQuery(e) {
|
|
479
|
+
return this.fetchInfiniteQuery(e).then(c).catch(c);
|
|
480
|
+
}
|
|
481
|
+
ensureInfiniteQueryData(e) {
|
|
482
|
+
return e._type = "infinite", this.ensureQueryData(e);
|
|
483
|
+
}
|
|
484
|
+
resumePausedMutations() {
|
|
485
|
+
return l.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
486
|
+
}
|
|
487
|
+
getQueryCache() {
|
|
488
|
+
return this.#e;
|
|
489
|
+
}
|
|
490
|
+
getMutationCache() {
|
|
491
|
+
return this.#t;
|
|
492
|
+
}
|
|
493
|
+
getDefaultOptions() {
|
|
494
|
+
return this.#n;
|
|
495
|
+
}
|
|
496
|
+
setDefaultOptions(e) {
|
|
497
|
+
this.#n = e;
|
|
498
|
+
}
|
|
499
|
+
setQueryDefaults(e, t) {
|
|
500
|
+
this.#r.set(f(e), {
|
|
501
|
+
queryKey: e,
|
|
502
|
+
defaultOptions: t
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
getQueryDefaults(e) {
|
|
506
|
+
let t = [...this.#r.values()], n = {};
|
|
507
|
+
return t.forEach((t) => {
|
|
508
|
+
x(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
509
|
+
}), n;
|
|
510
|
+
}
|
|
511
|
+
setMutationDefaults(e, t) {
|
|
512
|
+
this.#i.set(f(e), {
|
|
513
|
+
mutationKey: e,
|
|
514
|
+
defaultOptions: t
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
getMutationDefaults(e) {
|
|
518
|
+
let t = [...this.#i.values()], n = {};
|
|
519
|
+
return t.forEach((t) => {
|
|
520
|
+
x(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
521
|
+
}), n;
|
|
522
|
+
}
|
|
523
|
+
defaultQueryOptions(e) {
|
|
524
|
+
if (e._defaulted) return e;
|
|
525
|
+
let t = {
|
|
526
|
+
...this.#n.queries,
|
|
527
|
+
...this.getQueryDefaults(e.queryKey),
|
|
528
|
+
...e,
|
|
529
|
+
_defaulted: !0
|
|
530
|
+
};
|
|
531
|
+
return t.queryHash ||= _(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === S && (t.enabled = !1), t;
|
|
532
|
+
}
|
|
533
|
+
defaultMutationOptions(e) {
|
|
534
|
+
return e?._defaulted ? e : {
|
|
535
|
+
...this.#n.mutations,
|
|
536
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
537
|
+
...e,
|
|
538
|
+
_defaulted: !0
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
clear() {
|
|
542
|
+
this.#e.clear(), this.#t.clear();
|
|
543
|
+
}
|
|
544
|
+
}, j = /* @__PURE__ */ t(((e, t) => {
|
|
545
|
+
var r = a(), i = n(), o = Array.prototype.splice;
|
|
546
|
+
function s(e, t) {
|
|
547
|
+
for (var n = e ? t.length : 0, a = n - 1; n--;) {
|
|
548
|
+
var s = t[n];
|
|
549
|
+
if (n == a || s !== c) {
|
|
550
|
+
var c = s;
|
|
551
|
+
i(s) ? o.call(e, s, 1) : r(e, s);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return e;
|
|
555
|
+
}
|
|
556
|
+
t.exports = s;
|
|
557
|
+
})), M = /* @__PURE__ */ t(((e, t) => {
|
|
558
|
+
var n = r(), i = j();
|
|
559
|
+
function a(e, t) {
|
|
560
|
+
var r = [];
|
|
561
|
+
if (!(e && e.length)) return r;
|
|
562
|
+
var a = -1, o = [], s = e.length;
|
|
563
|
+
for (t = n(t, 3); ++a < s;) {
|
|
564
|
+
var c = e[a];
|
|
565
|
+
t(c, a, e) && (r.push(c), o.push(a));
|
|
566
|
+
}
|
|
567
|
+
return i(e, o), r;
|
|
568
|
+
}
|
|
569
|
+
t.exports = a;
|
|
570
|
+
})), N = /* @__PURE__ */ t(((e, t) => {
|
|
571
|
+
var n = r(), i = o();
|
|
572
|
+
function a(e, t) {
|
|
573
|
+
return e && e.length ? i(e, n(t, 2)) : [];
|
|
574
|
+
}
|
|
575
|
+
t.exports = a;
|
|
576
|
+
})), P = /* @__PURE__ */ e(M(), 1), F = /* @__PURE__ */ e(s(), 1), I = /* @__PURE__ */ e(N(), 1), L = class e {
|
|
577
|
+
static __instance;
|
|
578
|
+
mutationCache;
|
|
579
|
+
queryCache;
|
|
580
|
+
queryClient;
|
|
581
|
+
queryKeyDependencies;
|
|
582
|
+
constructor() {}
|
|
583
|
+
static getInstance() {
|
|
584
|
+
let t = w.getHmrSingleton("queryManager", e.__instance, () => new e());
|
|
585
|
+
return e.__instance = t, t;
|
|
586
|
+
}
|
|
587
|
+
static mergeQueryKeyDependencies(e) {
|
|
588
|
+
let t = {};
|
|
589
|
+
return e.forEach((e) => {
|
|
590
|
+
Object.entries(e).forEach(([e, n]) => {
|
|
591
|
+
t[e] || (t[e] = []), t[e].push(...n);
|
|
592
|
+
});
|
|
593
|
+
}), Object.keys(t).forEach((e) => {
|
|
594
|
+
t[e] = (0, F.default)(t[e]);
|
|
595
|
+
}), t;
|
|
596
|
+
}
|
|
597
|
+
async cancelQueries(t) {
|
|
598
|
+
let n = e.getInstance().queryClient;
|
|
599
|
+
for (let e of this.getUniqueQueryKeys(t ?? [])) await n.cancelQueries({ queryKey: e });
|
|
600
|
+
}
|
|
601
|
+
getGenericKey(e, t) {
|
|
602
|
+
let n = [e];
|
|
603
|
+
return t && (typeof t == "string" ? n.push(t) : n.push(JSON.stringify(t))), n;
|
|
604
|
+
}
|
|
605
|
+
getItemFromCache(e, t) {
|
|
606
|
+
return this.getValidQueryData([e])?.find((e) => e.id === t);
|
|
607
|
+
}
|
|
608
|
+
getQueryKeyDependencies(e, t = !1) {
|
|
609
|
+
let n = [];
|
|
610
|
+
return e.forEach((e) => {
|
|
611
|
+
n.push(...this.getQueryKeyDependenciesInternal(e).map((e) => [e])), t && n.unshift([e]);
|
|
612
|
+
}), this.getUniqueQueryKeys(n);
|
|
613
|
+
}
|
|
614
|
+
getUniqueQueryKeys(e) {
|
|
615
|
+
return (0, I.default)(e, (e) => e.join("-"));
|
|
616
|
+
}
|
|
617
|
+
getValidQueryData(t) {
|
|
618
|
+
let { queryCache: n, queryClient: r } = e.getInstance();
|
|
619
|
+
if (!n.find({ queryKey: t })?.state?.isInvalidated) return r.getQueryData(t);
|
|
620
|
+
}
|
|
621
|
+
initialize(t) {
|
|
622
|
+
if (this.queryKeyDependencies) throw Error("QueryClientService already initialized");
|
|
623
|
+
this.queryKeyDependencies = e.mergeQueryKeyDependencies(t.queryKeyDependencies);
|
|
624
|
+
let n = new k({}), r = new D({}), a = new A({
|
|
625
|
+
defaultOptions: { queries: {
|
|
626
|
+
gcTime: Infinity,
|
|
627
|
+
retry: i.getInstance().config.queryClient.retry,
|
|
628
|
+
retryDelay: i.getInstance().config.queryClient.retryDelay,
|
|
629
|
+
staleTime: Infinity
|
|
630
|
+
} },
|
|
631
|
+
mutationCache: r,
|
|
632
|
+
queryCache: n
|
|
633
|
+
});
|
|
634
|
+
this.queryCache = n, this.mutationCache = r, this.queryClient = a;
|
|
635
|
+
}
|
|
636
|
+
async invalidateQueryKeys(e) {
|
|
637
|
+
for (let t of this.getUniqueQueryKeys(e ?? [])) await this.queryClient.cancelQueries({ queryKey: t }), await this.queryClient.invalidateQueries({ queryKey: t });
|
|
638
|
+
}
|
|
639
|
+
removeQueries(e) {
|
|
640
|
+
for (let t of this.getUniqueQueryKeys(e ?? [])) this.queryClient.removeQueries({ queryKey: t });
|
|
641
|
+
}
|
|
642
|
+
getDirectQueryKeyDependents(e) {
|
|
643
|
+
return Object.entries(this.queryKeyDependencies).filter(([, t]) => t.includes(e)).map(([e]) => e);
|
|
644
|
+
}
|
|
645
|
+
getQueryKeyDependenciesInternal(e, t = [], n) {
|
|
646
|
+
let r = [...t];
|
|
647
|
+
return this.getDirectQueryKeyDependents(e).forEach((t) => {
|
|
648
|
+
r.includes(t) || (r.push(t), r.push(...this.getQueryKeyDependenciesInternal(t, [...r], n ?? e)));
|
|
649
|
+
}), (0, P.default)((0, F.default)(r), (e) => e !== n);
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
//#endregion
|
|
653
|
+
export { E as n, L as t };
|
|
654
|
+
|
|
655
|
+
//# sourceMappingURL=QueryClientService.js.map
|