@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,769 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
2
|
+
var e = {
|
|
3
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
4
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
5
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
6
|
+
clearInterval: (e) => clearInterval(e)
|
|
7
|
+
}, t = new class {
|
|
8
|
+
#e = e;
|
|
9
|
+
#t = !1;
|
|
10
|
+
setTimeoutProvider(e) {
|
|
11
|
+
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
12
|
+
previous: this.#e,
|
|
13
|
+
provider: e
|
|
14
|
+
}), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
|
|
15
|
+
}
|
|
16
|
+
setTimeout(e, t) {
|
|
17
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
|
|
18
|
+
}
|
|
19
|
+
clearTimeout(e) {
|
|
20
|
+
this.#e.clearTimeout(e);
|
|
21
|
+
}
|
|
22
|
+
setInterval(e, t) {
|
|
23
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
|
|
24
|
+
}
|
|
25
|
+
clearInterval(e) {
|
|
26
|
+
this.#e.clearInterval(e);
|
|
27
|
+
}
|
|
28
|
+
}();
|
|
29
|
+
function n(e) {
|
|
30
|
+
setTimeout(e, 0);
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
34
|
+
var r = typeof window > "u" || "Deno" in globalThis;
|
|
35
|
+
function i() {}
|
|
36
|
+
function a(e, t) {
|
|
37
|
+
return typeof e == "function" ? e(t) : e;
|
|
38
|
+
}
|
|
39
|
+
function o(e) {
|
|
40
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
41
|
+
}
|
|
42
|
+
function s(e, t) {
|
|
43
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
44
|
+
}
|
|
45
|
+
function c(e, t) {
|
|
46
|
+
return typeof e == "function" ? e(t) : e;
|
|
47
|
+
}
|
|
48
|
+
function l(e, t) {
|
|
49
|
+
return typeof e == "function" ? e(t) : e;
|
|
50
|
+
}
|
|
51
|
+
function u(e, t) {
|
|
52
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
53
|
+
if (o) {
|
|
54
|
+
if (r) {
|
|
55
|
+
if (t.queryHash !== f(o, t.options)) return !1;
|
|
56
|
+
} else if (!m(t.queryKey, o)) return !1;
|
|
57
|
+
}
|
|
58
|
+
if (n !== "all") {
|
|
59
|
+
let e = t.isActive();
|
|
60
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
61
|
+
}
|
|
62
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
63
|
+
}
|
|
64
|
+
function d(e, t) {
|
|
65
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
66
|
+
if (a) {
|
|
67
|
+
if (!t.options.mutationKey) return !1;
|
|
68
|
+
if (n) {
|
|
69
|
+
if (p(t.options.mutationKey) !== p(a)) return !1;
|
|
70
|
+
} else if (!m(t.options.mutationKey, a)) return !1;
|
|
71
|
+
}
|
|
72
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
73
|
+
}
|
|
74
|
+
function f(e, t) {
|
|
75
|
+
return (t?.queryKeyHashFn || p)(e);
|
|
76
|
+
}
|
|
77
|
+
function p(e) {
|
|
78
|
+
return JSON.stringify(e, (e, t) => y(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
79
|
+
}
|
|
80
|
+
function m(e, t) {
|
|
81
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => m(e[n], t[n])) : !1;
|
|
82
|
+
}
|
|
83
|
+
var h = Object.prototype.hasOwnProperty;
|
|
84
|
+
function g(e, t, n = 0) {
|
|
85
|
+
if (e === t) return e;
|
|
86
|
+
if (n > 500) return t;
|
|
87
|
+
let r = v(e) && v(t);
|
|
88
|
+
if (!r && !(y(e) && y(t))) return t;
|
|
89
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
90
|
+
for (let l = 0; l < o; l++) {
|
|
91
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
92
|
+
if (u === d) {
|
|
93
|
+
s[o] = u, (r ? l < i : h.call(e, o)) && c++;
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
97
|
+
s[o] = d;
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
let f = g(u, d, n + 1);
|
|
101
|
+
s[o] = f, f === u && c++;
|
|
102
|
+
}
|
|
103
|
+
return i === o && c === i ? e : s;
|
|
104
|
+
}
|
|
105
|
+
function _(e, t) {
|
|
106
|
+
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
107
|
+
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
108
|
+
return !0;
|
|
109
|
+
}
|
|
110
|
+
function v(e) {
|
|
111
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
112
|
+
}
|
|
113
|
+
function y(e) {
|
|
114
|
+
if (!b(e)) return !1;
|
|
115
|
+
let t = e.constructor;
|
|
116
|
+
if (t === void 0) return !0;
|
|
117
|
+
let n = t.prototype;
|
|
118
|
+
return !(!b(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
119
|
+
}
|
|
120
|
+
function b(e) {
|
|
121
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
122
|
+
}
|
|
123
|
+
function x(e) {
|
|
124
|
+
return new Promise((n) => {
|
|
125
|
+
t.setTimeout(n, e);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function S(e, t, n) {
|
|
129
|
+
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
130
|
+
if (n.structuralSharing !== !1) {
|
|
131
|
+
if (process.env.NODE_ENV !== "production") try {
|
|
132
|
+
return g(e, t);
|
|
133
|
+
} catch (e) {
|
|
134
|
+
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
135
|
+
}
|
|
136
|
+
return g(e, t);
|
|
137
|
+
}
|
|
138
|
+
return t;
|
|
139
|
+
}
|
|
140
|
+
function C(e, t, n = 0) {
|
|
141
|
+
let r = [...e, t];
|
|
142
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
143
|
+
}
|
|
144
|
+
function w(e, t, n = 0) {
|
|
145
|
+
let r = [t, ...e];
|
|
146
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
147
|
+
}
|
|
148
|
+
var T = /* @__PURE__ */ Symbol();
|
|
149
|
+
function E(e, t) {
|
|
150
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === T && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === T ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
151
|
+
}
|
|
152
|
+
function D(e, t) {
|
|
153
|
+
return typeof e == "function" ? e(...t) : !!e;
|
|
154
|
+
}
|
|
155
|
+
function O(e, t, n) {
|
|
156
|
+
let r = !1, i;
|
|
157
|
+
return Object.defineProperty(e, "signal", {
|
|
158
|
+
enumerable: !0,
|
|
159
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
160
|
+
}), e;
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
164
|
+
var k = /* @__PURE__ */ (() => {
|
|
165
|
+
let e = () => r;
|
|
166
|
+
return {
|
|
167
|
+
isServer() {
|
|
168
|
+
return e();
|
|
169
|
+
},
|
|
170
|
+
setIsServer(t) {
|
|
171
|
+
e = t;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
})(), A = n;
|
|
175
|
+
function j() {
|
|
176
|
+
let e = [], t = 0, n = (e) => {
|
|
177
|
+
e();
|
|
178
|
+
}, r = (e) => {
|
|
179
|
+
e();
|
|
180
|
+
}, i = A, a = (r) => {
|
|
181
|
+
t ? e.push(r) : i(() => {
|
|
182
|
+
n(r);
|
|
183
|
+
});
|
|
184
|
+
}, o = () => {
|
|
185
|
+
let t = e;
|
|
186
|
+
e = [], t.length && i(() => {
|
|
187
|
+
r(() => {
|
|
188
|
+
t.forEach((e) => {
|
|
189
|
+
n(e);
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
return {
|
|
195
|
+
batch: (e) => {
|
|
196
|
+
let n;
|
|
197
|
+
t++;
|
|
198
|
+
try {
|
|
199
|
+
n = e();
|
|
200
|
+
} finally {
|
|
201
|
+
t--, t || o();
|
|
202
|
+
}
|
|
203
|
+
return n;
|
|
204
|
+
},
|
|
205
|
+
batchCalls: (e) => (...t) => {
|
|
206
|
+
a(() => {
|
|
207
|
+
e(...t);
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
schedule: a,
|
|
211
|
+
setNotifyFunction: (e) => {
|
|
212
|
+
n = e;
|
|
213
|
+
},
|
|
214
|
+
setBatchNotifyFunction: (e) => {
|
|
215
|
+
r = e;
|
|
216
|
+
},
|
|
217
|
+
setScheduler: (e) => {
|
|
218
|
+
i = e;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
var M = j(), N = class {
|
|
223
|
+
#e;
|
|
224
|
+
destroy() {
|
|
225
|
+
this.clearGcTimeout();
|
|
226
|
+
}
|
|
227
|
+
scheduleGc() {
|
|
228
|
+
this.clearGcTimeout(), o(this.gcTime) && (this.#e = t.setTimeout(() => {
|
|
229
|
+
this.optionalRemove();
|
|
230
|
+
}, this.gcTime));
|
|
231
|
+
}
|
|
232
|
+
updateGcTime(e) {
|
|
233
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (k.isServer() ? Infinity : 300 * 1e3));
|
|
234
|
+
}
|
|
235
|
+
clearGcTimeout() {
|
|
236
|
+
this.#e !== void 0 && (t.clearTimeout(this.#e), this.#e = void 0);
|
|
237
|
+
}
|
|
238
|
+
}, P = class {
|
|
239
|
+
constructor() {
|
|
240
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
241
|
+
}
|
|
242
|
+
subscribe(e) {
|
|
243
|
+
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
244
|
+
this.listeners.delete(e), this.onUnsubscribe();
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
hasListeners() {
|
|
248
|
+
return this.listeners.size > 0;
|
|
249
|
+
}
|
|
250
|
+
onSubscribe() {}
|
|
251
|
+
onUnsubscribe() {}
|
|
252
|
+
}, F = new class extends P {
|
|
253
|
+
#e;
|
|
254
|
+
#t;
|
|
255
|
+
#n;
|
|
256
|
+
constructor() {
|
|
257
|
+
super(), this.#n = (e) => {
|
|
258
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
259
|
+
let t = () => e();
|
|
260
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
261
|
+
window.removeEventListener("visibilitychange", t);
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
onSubscribe() {
|
|
267
|
+
this.#t || this.setEventListener(this.#n);
|
|
268
|
+
}
|
|
269
|
+
onUnsubscribe() {
|
|
270
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
271
|
+
}
|
|
272
|
+
setEventListener(e) {
|
|
273
|
+
this.#n = e, this.#t?.(), this.#t = e((e) => {
|
|
274
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
setFocused(e) {
|
|
278
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
279
|
+
}
|
|
280
|
+
onFocus() {
|
|
281
|
+
let e = this.isFocused();
|
|
282
|
+
this.listeners.forEach((t) => {
|
|
283
|
+
t(e);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
isFocused() {
|
|
287
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
288
|
+
}
|
|
289
|
+
}(), I = new class extends P {
|
|
290
|
+
#e = !0;
|
|
291
|
+
#t;
|
|
292
|
+
#n;
|
|
293
|
+
constructor() {
|
|
294
|
+
super(), this.#n = (e) => {
|
|
295
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
296
|
+
let t = () => e(!0), n = () => e(!1);
|
|
297
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
298
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
onSubscribe() {
|
|
304
|
+
this.#t || this.setEventListener(this.#n);
|
|
305
|
+
}
|
|
306
|
+
onUnsubscribe() {
|
|
307
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
308
|
+
}
|
|
309
|
+
setEventListener(e) {
|
|
310
|
+
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
|
|
311
|
+
}
|
|
312
|
+
setOnline(e) {
|
|
313
|
+
this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
|
|
314
|
+
t(e);
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
isOnline() {
|
|
318
|
+
return this.#e;
|
|
319
|
+
}
|
|
320
|
+
}();
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
323
|
+
function L() {
|
|
324
|
+
let e, t, n = new Promise((n, r) => {
|
|
325
|
+
e = n, t = r;
|
|
326
|
+
});
|
|
327
|
+
n.status = "pending", n.catch(() => {});
|
|
328
|
+
function r(e) {
|
|
329
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
330
|
+
}
|
|
331
|
+
return n.resolve = (t) => {
|
|
332
|
+
r({
|
|
333
|
+
status: "fulfilled",
|
|
334
|
+
value: t
|
|
335
|
+
}), e(t);
|
|
336
|
+
}, n.reject = (e) => {
|
|
337
|
+
r({
|
|
338
|
+
status: "rejected",
|
|
339
|
+
reason: e
|
|
340
|
+
}), t(e);
|
|
341
|
+
}, n;
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
345
|
+
function R(e) {
|
|
346
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
347
|
+
}
|
|
348
|
+
function z(e) {
|
|
349
|
+
return (e ?? "online") === "online" ? I.isOnline() : !0;
|
|
350
|
+
}
|
|
351
|
+
var B = class extends Error {
|
|
352
|
+
constructor(e) {
|
|
353
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
function V(e) {
|
|
357
|
+
let t = !1, n = 0, r, i = L(), a = () => i.status !== "pending", o = (t) => {
|
|
358
|
+
if (!a()) {
|
|
359
|
+
let n = new B(t);
|
|
360
|
+
f(n), e.onCancel?.(n);
|
|
361
|
+
}
|
|
362
|
+
}, s = () => {
|
|
363
|
+
t = !0;
|
|
364
|
+
}, c = () => {
|
|
365
|
+
t = !1;
|
|
366
|
+
}, l = () => F.isFocused() && (e.networkMode === "always" || I.isOnline()) && e.canRun(), u = () => z(e.networkMode) && e.canRun(), d = (e) => {
|
|
367
|
+
a() || (r?.(), i.resolve(e));
|
|
368
|
+
}, f = (e) => {
|
|
369
|
+
a() || (r?.(), i.reject(e));
|
|
370
|
+
}, p = () => new Promise((t) => {
|
|
371
|
+
r = (e) => {
|
|
372
|
+
(a() || l()) && t(e);
|
|
373
|
+
}, e.onPause?.();
|
|
374
|
+
}).then(() => {
|
|
375
|
+
r = void 0, a() || e.onContinue?.();
|
|
376
|
+
}), m = () => {
|
|
377
|
+
if (a()) return;
|
|
378
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
379
|
+
try {
|
|
380
|
+
r = i ?? e.fn();
|
|
381
|
+
} catch (e) {
|
|
382
|
+
r = Promise.reject(e);
|
|
383
|
+
}
|
|
384
|
+
Promise.resolve(r).then(d).catch((r) => {
|
|
385
|
+
if (a()) return;
|
|
386
|
+
let i = e.retry ?? (k.isServer() ? 0 : 3), o = e.retryDelay ?? R, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
387
|
+
if (t || !c) {
|
|
388
|
+
f(r);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
n++, e.onFail?.(n, r), x(s).then(() => l() ? void 0 : p()).then(() => {
|
|
392
|
+
t ? f(r) : m();
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
return {
|
|
397
|
+
promise: i,
|
|
398
|
+
status: () => i.status,
|
|
399
|
+
cancel: o,
|
|
400
|
+
continue: () => (r?.(), i),
|
|
401
|
+
cancelRetry: s,
|
|
402
|
+
continueRetry: c,
|
|
403
|
+
canStart: u,
|
|
404
|
+
start: () => (u() ? m() : p().then(m), i)
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
409
|
+
function H(e) {
|
|
410
|
+
return { onFetch: (t, n) => {
|
|
411
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
412
|
+
pages: [],
|
|
413
|
+
pageParams: []
|
|
414
|
+
}, c = 0, l = async () => {
|
|
415
|
+
let n = !1, l = (e) => {
|
|
416
|
+
O(e, () => t.signal, () => n = !0);
|
|
417
|
+
}, u = E(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
418
|
+
if (n) return Promise.reject(t.signal.reason);
|
|
419
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
420
|
+
let a = await u((() => {
|
|
421
|
+
let e = {
|
|
422
|
+
client: t.client,
|
|
423
|
+
queryKey: t.queryKey,
|
|
424
|
+
pageParam: r,
|
|
425
|
+
direction: i ? "backward" : "forward",
|
|
426
|
+
meta: t.options.meta
|
|
427
|
+
};
|
|
428
|
+
return l(e), e;
|
|
429
|
+
})()), { maxPages: o } = t.options, s = i ? w : C;
|
|
430
|
+
return {
|
|
431
|
+
pages: s(e.pages, a, o),
|
|
432
|
+
pageParams: s(e.pageParams, r, o)
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
if (i && a.length) {
|
|
436
|
+
let e = i === "backward", t = e ? W : U, n = {
|
|
437
|
+
pages: a,
|
|
438
|
+
pageParams: o
|
|
439
|
+
};
|
|
440
|
+
s = await d(n, t(r, n), e);
|
|
441
|
+
} else {
|
|
442
|
+
let t = e ?? a.length;
|
|
443
|
+
do {
|
|
444
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : U(r, s);
|
|
445
|
+
if (c > 0 && e == null) break;
|
|
446
|
+
s = await d(s, e), c++;
|
|
447
|
+
} while (c < t);
|
|
448
|
+
}
|
|
449
|
+
return s;
|
|
450
|
+
};
|
|
451
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
452
|
+
client: t.client,
|
|
453
|
+
queryKey: t.queryKey,
|
|
454
|
+
meta: t.options.meta,
|
|
455
|
+
signal: t.signal
|
|
456
|
+
}, n) : t.fetchFn = l;
|
|
457
|
+
} };
|
|
458
|
+
}
|
|
459
|
+
function U(e, { pages: t, pageParams: n }) {
|
|
460
|
+
let r = t.length - 1;
|
|
461
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
462
|
+
}
|
|
463
|
+
function W(e, { pages: t, pageParams: n }) {
|
|
464
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
465
|
+
}
|
|
466
|
+
//#endregion
|
|
467
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/query.js
|
|
468
|
+
var G = class extends N {
|
|
469
|
+
#e;
|
|
470
|
+
#t;
|
|
471
|
+
#n;
|
|
472
|
+
#r;
|
|
473
|
+
#i;
|
|
474
|
+
#a;
|
|
475
|
+
#o;
|
|
476
|
+
#s;
|
|
477
|
+
constructor(e) {
|
|
478
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = J(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
479
|
+
}
|
|
480
|
+
get meta() {
|
|
481
|
+
return this.options.meta;
|
|
482
|
+
}
|
|
483
|
+
get queryType() {
|
|
484
|
+
return this.#e;
|
|
485
|
+
}
|
|
486
|
+
get promise() {
|
|
487
|
+
return this.#a?.promise;
|
|
488
|
+
}
|
|
489
|
+
setOptions(e) {
|
|
490
|
+
if (this.options = {
|
|
491
|
+
...this.#o,
|
|
492
|
+
...e
|
|
493
|
+
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
494
|
+
let e = J(this.options);
|
|
495
|
+
e.data !== void 0 && (this.setState(q(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
optionalRemove() {
|
|
499
|
+
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
500
|
+
}
|
|
501
|
+
setData(e, t) {
|
|
502
|
+
let n = S(this.state.data, e, this.options);
|
|
503
|
+
return this.#l({
|
|
504
|
+
data: n,
|
|
505
|
+
type: "success",
|
|
506
|
+
dataUpdatedAt: t?.updatedAt,
|
|
507
|
+
manual: t?.manual
|
|
508
|
+
}), n;
|
|
509
|
+
}
|
|
510
|
+
setState(e) {
|
|
511
|
+
this.#l({
|
|
512
|
+
type: "setState",
|
|
513
|
+
state: e
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
cancel(e) {
|
|
517
|
+
let t = this.#a?.promise;
|
|
518
|
+
return this.#a?.cancel(e), t ? t.then(i).catch(i) : Promise.resolve();
|
|
519
|
+
}
|
|
520
|
+
destroy() {
|
|
521
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
522
|
+
}
|
|
523
|
+
get resetState() {
|
|
524
|
+
return this.#t;
|
|
525
|
+
}
|
|
526
|
+
reset() {
|
|
527
|
+
this.destroy(), this.setState(this.resetState);
|
|
528
|
+
}
|
|
529
|
+
isActive() {
|
|
530
|
+
return this.observers.some((e) => l(e.options.enabled, this) !== !1);
|
|
531
|
+
}
|
|
532
|
+
isDisabled() {
|
|
533
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === T || !this.isFetched();
|
|
534
|
+
}
|
|
535
|
+
isFetched() {
|
|
536
|
+
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
537
|
+
}
|
|
538
|
+
isStatic() {
|
|
539
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => c(e.options.staleTime, this) === "static") : !1;
|
|
540
|
+
}
|
|
541
|
+
isStale() {
|
|
542
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
543
|
+
}
|
|
544
|
+
isStaleByTime(e = 0) {
|
|
545
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !s(this.state.dataUpdatedAt, e);
|
|
546
|
+
}
|
|
547
|
+
onFocus() {
|
|
548
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
549
|
+
}
|
|
550
|
+
onOnline() {
|
|
551
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
552
|
+
}
|
|
553
|
+
addObserver(e) {
|
|
554
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
|
|
555
|
+
type: "observerAdded",
|
|
556
|
+
query: this,
|
|
557
|
+
observer: e
|
|
558
|
+
}));
|
|
559
|
+
}
|
|
560
|
+
removeObserver(e) {
|
|
561
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
|
|
562
|
+
type: "observerRemoved",
|
|
563
|
+
query: this,
|
|
564
|
+
observer: e
|
|
565
|
+
}));
|
|
566
|
+
}
|
|
567
|
+
getObserversCount() {
|
|
568
|
+
return this.observers.length;
|
|
569
|
+
}
|
|
570
|
+
#c() {
|
|
571
|
+
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
572
|
+
}
|
|
573
|
+
invalidate() {
|
|
574
|
+
this.state.isInvalidated || this.#l({ type: "invalidate" });
|
|
575
|
+
}
|
|
576
|
+
async fetch(e, t) {
|
|
577
|
+
if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
|
|
578
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
579
|
+
else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
|
|
580
|
+
}
|
|
581
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
582
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
583
|
+
e && this.setOptions(e.options);
|
|
584
|
+
}
|
|
585
|
+
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
|
|
586
|
+
let n = new AbortController(), r = (e) => {
|
|
587
|
+
Object.defineProperty(e, "signal", {
|
|
588
|
+
enumerable: !0,
|
|
589
|
+
get: () => (this.#s = !0, n.signal)
|
|
590
|
+
});
|
|
591
|
+
}, i = () => {
|
|
592
|
+
let e = E(this.options, t), n = (() => {
|
|
593
|
+
let e = {
|
|
594
|
+
client: this.#i,
|
|
595
|
+
queryKey: this.queryKey,
|
|
596
|
+
meta: this.meta
|
|
597
|
+
};
|
|
598
|
+
return r(e), e;
|
|
599
|
+
})();
|
|
600
|
+
return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
601
|
+
}, a = (() => {
|
|
602
|
+
let e = {
|
|
603
|
+
fetchOptions: t,
|
|
604
|
+
options: this.options,
|
|
605
|
+
queryKey: this.queryKey,
|
|
606
|
+
client: this.#i,
|
|
607
|
+
state: this.state,
|
|
608
|
+
fetchFn: i
|
|
609
|
+
};
|
|
610
|
+
return r(e), e;
|
|
611
|
+
})();
|
|
612
|
+
(this.#e === "infinite" ? H(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
613
|
+
type: "fetch",
|
|
614
|
+
meta: a.fetchOptions?.meta
|
|
615
|
+
}), this.#a = V({
|
|
616
|
+
initialPromise: t?.initialPromise,
|
|
617
|
+
fn: a.fetchFn,
|
|
618
|
+
onCancel: (e) => {
|
|
619
|
+
e instanceof B && e.revert && this.setState({
|
|
620
|
+
...this.#n,
|
|
621
|
+
fetchStatus: "idle"
|
|
622
|
+
}), n.abort();
|
|
623
|
+
},
|
|
624
|
+
onFail: (e, t) => {
|
|
625
|
+
this.#l({
|
|
626
|
+
type: "failed",
|
|
627
|
+
failureCount: e,
|
|
628
|
+
error: t
|
|
629
|
+
});
|
|
630
|
+
},
|
|
631
|
+
onPause: () => {
|
|
632
|
+
this.#l({ type: "pause" });
|
|
633
|
+
},
|
|
634
|
+
onContinue: () => {
|
|
635
|
+
this.#l({ type: "continue" });
|
|
636
|
+
},
|
|
637
|
+
retry: a.options.retry,
|
|
638
|
+
retryDelay: a.options.retryDelay,
|
|
639
|
+
networkMode: a.options.networkMode,
|
|
640
|
+
canRun: () => !0
|
|
641
|
+
});
|
|
642
|
+
try {
|
|
643
|
+
let e = await this.#a.start();
|
|
644
|
+
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
645
|
+
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
646
|
+
} catch (e) {
|
|
647
|
+
if (e instanceof B) {
|
|
648
|
+
if (e.silent) return this.#a.promise;
|
|
649
|
+
if (e.revert) {
|
|
650
|
+
if (this.state.data === void 0) throw e;
|
|
651
|
+
return this.state.data;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
throw this.#l({
|
|
655
|
+
type: "error",
|
|
656
|
+
error: e
|
|
657
|
+
}), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
|
|
658
|
+
} finally {
|
|
659
|
+
this.scheduleGc();
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
#l(e) {
|
|
663
|
+
let t = (t) => {
|
|
664
|
+
switch (e.type) {
|
|
665
|
+
case "failed": return {
|
|
666
|
+
...t,
|
|
667
|
+
fetchFailureCount: e.failureCount,
|
|
668
|
+
fetchFailureReason: e.error
|
|
669
|
+
};
|
|
670
|
+
case "pause": return {
|
|
671
|
+
...t,
|
|
672
|
+
fetchStatus: "paused"
|
|
673
|
+
};
|
|
674
|
+
case "continue": return {
|
|
675
|
+
...t,
|
|
676
|
+
fetchStatus: "fetching"
|
|
677
|
+
};
|
|
678
|
+
case "fetch": return {
|
|
679
|
+
...t,
|
|
680
|
+
...K(t.data, this.options),
|
|
681
|
+
fetchMeta: e.meta ?? null
|
|
682
|
+
};
|
|
683
|
+
case "success":
|
|
684
|
+
let n = {
|
|
685
|
+
...t,
|
|
686
|
+
...q(e.data, e.dataUpdatedAt),
|
|
687
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
688
|
+
...!e.manual && {
|
|
689
|
+
fetchStatus: "idle",
|
|
690
|
+
fetchFailureCount: 0,
|
|
691
|
+
fetchFailureReason: null
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
return this.#n = e.manual ? n : void 0, n;
|
|
695
|
+
case "error":
|
|
696
|
+
let r = e.error;
|
|
697
|
+
return {
|
|
698
|
+
...t,
|
|
699
|
+
error: r,
|
|
700
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
701
|
+
errorUpdatedAt: Date.now(),
|
|
702
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
703
|
+
fetchFailureReason: r,
|
|
704
|
+
fetchStatus: "idle",
|
|
705
|
+
status: "error",
|
|
706
|
+
isInvalidated: !0
|
|
707
|
+
};
|
|
708
|
+
case "invalidate": return {
|
|
709
|
+
...t,
|
|
710
|
+
isInvalidated: !0
|
|
711
|
+
};
|
|
712
|
+
case "setState": return {
|
|
713
|
+
...t,
|
|
714
|
+
...e.state
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
this.state = t(this.state), M.batch(() => {
|
|
719
|
+
this.observers.forEach((e) => {
|
|
720
|
+
e.onQueryUpdate();
|
|
721
|
+
}), this.#r.notify({
|
|
722
|
+
query: this,
|
|
723
|
+
type: "updated",
|
|
724
|
+
action: e
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
function K(e, t) {
|
|
730
|
+
return {
|
|
731
|
+
fetchFailureCount: 0,
|
|
732
|
+
fetchFailureReason: null,
|
|
733
|
+
fetchStatus: z(t.networkMode) ? "fetching" : "paused",
|
|
734
|
+
...e === void 0 && {
|
|
735
|
+
error: null,
|
|
736
|
+
status: "pending"
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
function q(e, t) {
|
|
741
|
+
return {
|
|
742
|
+
data: e,
|
|
743
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
744
|
+
error: null,
|
|
745
|
+
isInvalidated: !1,
|
|
746
|
+
status: "success"
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
function J(e) {
|
|
750
|
+
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
751
|
+
return {
|
|
752
|
+
data: t,
|
|
753
|
+
dataUpdateCount: 0,
|
|
754
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
755
|
+
error: null,
|
|
756
|
+
errorUpdateCount: 0,
|
|
757
|
+
errorUpdatedAt: 0,
|
|
758
|
+
fetchFailureCount: 0,
|
|
759
|
+
fetchFailureReason: null,
|
|
760
|
+
fetchMeta: null,
|
|
761
|
+
isInvalidated: !1,
|
|
762
|
+
status: n ? "success" : "pending",
|
|
763
|
+
fetchStatus: "idle"
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
//#endregion
|
|
767
|
+
export { D as C, t as E, _ as S, s as T, i as _, I as a, l as b, N as c, a as d, p as f, u as g, d as h, L as i, M as l, o as m, K as n, F as o, f as p, V as r, P as s, G as t, k as u, m as v, T as w, c as x, S as y };
|
|
768
|
+
|
|
769
|
+
//# sourceMappingURL=query.js.map
|