@gen-epix/ui-client-common 4.3.2 → 4.4.1
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/README.md +9 -10
- package/dist/@types/mui.d.ts +1 -1
- package/dist/_chunks/ApplicationFooter.js +49 -49
- package/dist/_chunks/ApplicationFooter.js.map +1 -1
- package/dist/_chunks/Breadcrumbs.js +23 -22
- package/dist/_chunks/Breadcrumbs.js.map +1 -1
- package/dist/_chunks/CrudPage.js +211 -210
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js +67 -66
- package/dist/_chunks/Notifications.js.map +1 -1
- package/dist/_chunks/OutageList.js +30 -30
- package/dist/_chunks/OutageList.js.map +1 -1
- package/dist/_chunks/OutageUtil.js +2 -2
- package/dist/_chunks/OutageUtil.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +405 -115
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Reflect.js +642 -0
- package/dist/_chunks/Reflect.js.map +1 -0
- package/dist/_chunks/Table.js +572 -574
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +5 -5
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +1 -1
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +109 -107
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/UserManagerUtil.js +7 -15
- package/dist/_chunks/UserManagerUtil.js.map +1 -1
- package/dist/_chunks/_baseAssignValue.js.map +1 -1
- package/dist/_chunks/_baseFlatten.js +8 -8
- package/dist/_chunks/_baseFlatten.js.map +1 -1
- package/dist/_chunks/_baseUnset.js +299 -22
- package/dist/_chunks/_baseUnset.js.map +1 -1
- package/dist/_chunks/_cacheHas.js.map +1 -1
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/decorate.js +9 -0
- package/dist/_chunks/decorateParam.js +8 -0
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/isArrayLike.js.map +1 -1
- package/dist/_chunks/isObject.js.map +1 -1
- package/dist/_chunks/isSymbol.js.map +1 -1
- package/dist/_chunks/middleware.js +1 -1
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +39 -40
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +13 -17
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/tableStore.js +40 -54
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/useColumnsMenu.js +2 -2
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +31 -30
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +5 -5
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/TableEventBus/TableEventBus.d.ts +1 -1
- package/dist/classes/TableEventBus/index.js.map +1 -1
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/BooleanFilter.d.ts +1 -1
- package/dist/classes/filters/DateFilter.d.ts +2 -2
- package/dist/classes/filters/GeoFilter.d.ts +2 -2
- package/dist/classes/filters/MultiSelectFilter.d.ts +2 -2
- package/dist/classes/filters/NumberRangeFilter.d.ts +1 -1
- package/dist/classes/filters/TextFilter.d.ts +1 -1
- package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +5 -3
- package/dist/classes/services/AuthenticationService/index.js +34 -661
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/AuthorizationService.d.ts +4 -4
- package/dist/classes/services/AuthorizationService/index.js +12 -10
- package/dist/classes/services/AuthorizationService/index.js.map +1 -1
- package/dist/classes/services/BackendVersionService/BackendVersionService.d.ts +0 -3
- package/dist/classes/services/BackendVersionService/index.js +5 -8
- package/dist/classes/services/BackendVersionService/index.js.map +1 -1
- package/dist/classes/services/BreadcrumbService/BreadcrumbService.d.ts +1 -3
- package/dist/classes/services/BreadcrumbService/index.js +19 -21
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/EmotionCacheService.d.ts +4 -4
- package/dist/classes/services/EmotionCacheService/index.js +17 -14
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
- package/dist/classes/services/FeatureFlagsService/FeatureFlagsService.d.ts +0 -3
- package/dist/classes/services/FeatureFlagsService/index.js +5 -8
- package/dist/classes/services/FeatureFlagsService/index.js.map +1 -1
- package/dist/classes/services/I18nService/I18nService.d.ts +3 -3
- package/dist/classes/services/I18nService/index.js +25 -29
- package/dist/classes/services/I18nService/index.js.map +1 -1
- package/dist/classes/services/InactivityService/InactivityService.d.ts +6 -3
- package/dist/classes/services/InactivityService/index.js +42 -36
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/LogService.d.ts +7 -4
- package/dist/classes/services/LogService/index.js +39 -32
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/NavigationHistoryService/NavigationHistoryService.d.ts +0 -3
- package/dist/classes/services/NavigationHistoryService/index.js +5 -8
- package/dist/classes/services/NavigationHistoryService/index.js.map +1 -1
- package/dist/classes/services/NotificationService/NotificationService.d.ts +4 -4
- package/dist/classes/services/NotificationService/index.js +21 -21
- package/dist/classes/services/NotificationService/index.js.map +1 -1
- package/dist/classes/services/PageEventBusService/PageEventBusService.d.ts +4 -3
- package/dist/classes/services/PageEventBusService/index.js +18 -15
- package/dist/classes/services/PageEventBusService/index.js.map +1 -1
- package/dist/classes/services/QueryClientService/QueryClientService.d.ts +6 -7
- package/dist/classes/services/QueryClientService/index.js +1 -2
- package/dist/classes/services/RouterService/RouterService.d.ts +6 -9
- package/dist/classes/services/RouterService/index.js +8 -12
- package/dist/classes/services/RouterService/index.js.map +1 -1
- package/dist/classes/services/UserSettingsService/UserSettingsService.d.ts +0 -3
- package/dist/classes/services/UserSettingsService/index.js +5 -8
- package/dist/classes/services/UserSettingsService/index.js.map +1 -1
- package/dist/components/app/App/App.d.ts +5 -1
- package/dist/components/app/App/index.js +31 -37
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +50 -49
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +42 -41
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +68 -67
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
- package/dist/components/app/AuthorizationWrapper/index.js +33 -32
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +62 -61
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/epi/EpiContactDetailsDialog/index.js +38 -37
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
- package/dist/components/filters/BooleanFilterField/index.js +5 -5
- package/dist/components/filters/BooleanFilterField/index.js.map +1 -1
- package/dist/components/filters/DateFilterField/index.js +3 -3
- package/dist/components/filters/DateFilterField/index.js.map +1 -1
- package/dist/components/filters/GeoFilterField/index.js +4 -4
- package/dist/components/filters/GeoFilterField/index.js.map +1 -1
- package/dist/components/filters/MultiSelectFilterField/index.js +4 -4
- package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -1
- package/dist/components/filters/NumberRangeFilterField/index.js +3 -3
- package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -1
- package/dist/components/filters/TextFilterField/index.js +3 -3
- package/dist/components/filters/TextFilterField/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +242 -241
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/ApplicationFooter/index.js +1 -2
- package/dist/components/ui/Breadcrumbs/Breadcrumb.d.ts +1 -1
- package/dist/components/ui/Breadcrumbs/index.js +1 -2
- package/dist/components/ui/ConsentDialog/index.js +11 -6
- package/dist/components/ui/ConsentDialog/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +51 -50
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
- package/dist/components/ui/LicensesDialog/index.js +66 -69
- package/dist/components/ui/LicensesDialog/index.js.map +1 -1
- package/dist/components/ui/MyPermissionsDialog/index.js +26 -25
- package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -1
- package/dist/components/ui/NavLink/index.js +6 -6
- package/dist/components/ui/NavLink/index.js.map +1 -1
- package/dist/components/ui/Notifications/NotificationItem.d.ts +1 -1
- package/dist/components/ui/Notifications/index.js +1 -2
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +69 -76
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
- package/dist/components/ui/OutageList/index.js +1 -2
- package/dist/components/ui/OutagesDialog/index.js.map +1 -1
- package/dist/components/ui/PageContainer/PageContainer.d.ts +1 -1
- package/dist/components/ui/PageContainer/index.js +57 -52
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/ResponseHandler/ResponseHandler.d.ts +1 -1
- package/dist/components/ui/ResponseHandler/index.js.map +1 -1
- package/dist/components/ui/Sidebar/SidebarItem.d.ts +1 -1
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +1 -1
- package/dist/components/ui/Sidebar/index.js +45 -45
- package/dist/components/ui/Sidebar/index.js.map +1 -1
- package/dist/components/ui/Table/Table.d.ts +1 -1
- package/dist/components/ui/Table/TableActionsCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +1 -1
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +1 -1
- package/dist/components/ui/Table/TableFilter.d.ts +2 -2
- package/dist/components/ui/Table/TableHeaderCell.d.ts +1 -1
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +2 -2
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +1 -1
- package/dist/components/ui/Table/index.js +1 -2
- package/dist/components/ui/UserFeedbackDialog/index.js +65 -64
- package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -1
- package/dist/components/ui/UserInactivityConfirmation/index.js +26 -25
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
- package/dist/constants/api.constants.d.ts +8 -0
- package/dist/constants/api.constants.js +6 -0
- package/dist/constants/api.constants.js.map +1 -0
- package/dist/constants/config.constants.d.ts +5 -0
- package/dist/constants/config.constants.js +6 -0
- package/dist/constants/config.constants.js.map +1 -0
- package/dist/constants/{query.js → query.constants.js} +2 -2
- package/dist/constants/query.constants.js.map +1 -0
- package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContext.d.ts +6 -2
- package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +2 -2
- package/dist/context/uiClientCommonConfigContext/index.js +28 -12
- package/dist/context/uiClientCommonConfigContext/index.js.map +1 -1
- package/dist/context/uiClientCommonConfigContext/useUiClientCommonConfigContext.d.ts +2 -1
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +17 -16
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -1
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/useIdentifierIssuerOwnOrganizationQuery.d.ts +1 -1
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +18 -17
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -1
- package/dist/dataHooks/useIdentifierIssuerQuery/useIdentifierIssuerQuery.d.ts +1 -1
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +11 -10
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +22 -21
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/useOrganizationAdminPoliciesQuery.d.ts +1 -1
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +8 -7
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationsQuery/index.js +17 -16
- package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationsQuery/useOrganizationsQuery.d.ts +1 -1
- package/dist/dataHooks/useUsersQuery/index.js +18 -17
- package/dist/dataHooks/useUsersQuery/index.js.map +1 -1
- package/dist/dataHooks/useUsersQuery/useUsersQuery.d.ts +1 -1
- package/dist/hoc/withPermissions/index.js +12 -11
- package/dist/hoc/withPermissions/index.js.map +1 -1
- package/dist/hooks/useColumnsMenu/index.js +1 -2
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +2 -2
- package/dist/hooks/useConfig/index.d.ts +1 -0
- package/dist/hooks/useConfig/index.js +7 -0
- package/dist/hooks/useConfig/index.js.map +1 -0
- package/dist/hooks/useConfig/useConfig.d.ts +2 -0
- package/dist/hooks/useCreateMutation/index.js +25 -24
- package/dist/hooks/useCreateMutation/index.js.map +1 -1
- package/dist/hooks/useCreateMutation/useCreateMutation.d.ts +1 -1
- package/dist/hooks/useDeleteMutation/index.js +24 -23
- package/dist/hooks/useDeleteMutation/index.js.map +1 -1
- package/dist/hooks/useDeleteMutation/useDeleteMutation.d.ts +1 -1
- package/dist/hooks/useEditMutation/index.js +33 -32
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +1 -1
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -1
- package/dist/hooks/useInitializeTableStore/useInitializeTableStore.d.ts +1 -1
- package/dist/hooks/useItemQuery/index.js +36 -35
- package/dist/hooks/useItemQuery/index.js.map +1 -1
- package/dist/hooks/useItemQuery/useItemQuery.d.ts +1 -1
- package/dist/hooks/useQueryMemo/index.js +1 -2
- package/dist/hooks/useUpdateBreadcrumb/index.js +10 -9
- package/dist/hooks/useUpdateBreadcrumb/index.js.map +1 -1
- package/dist/hooks/useUpdateDocumentTitle/index.js +4 -3
- package/dist/hooks/useUpdateDocumentTitle/index.js.map +1 -1
- package/dist/models/{admin.js → admin.models.js} +2 -2
- package/dist/models/admin.models.js.map +1 -0
- package/dist/models/{dataHooks.d.ts → data-hooks.models.d.ts} +1 -1
- package/dist/models/{table.d.ts → table.models.d.ts} +2 -2
- package/dist/models/{table.js → table.models.js} +2 -2
- package/dist/models/table.models.js.map +1 -0
- package/dist/pages/AcceptInvitationPage/index.js +40 -39
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
- package/dist/pages/AdminPage/index.js +39 -38
- package/dist/pages/AdminPage/index.js.map +1 -1
- package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +1 -1
- package/dist/pages/ChooseIdentityProviderPage/index.js +38 -37
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
- package/dist/pages/CrudPage/CrudPage.d.ts +6 -6
- package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +1 -1
- package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +2 -2
- package/dist/pages/CrudPage/index.js +1 -2
- package/dist/pages/ErrorPage/index.js.map +1 -1
- package/dist/pages/IdentifierIssuersAdminPage/index.js +41 -40
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +58 -57
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationContactsAdminPage/index.js +49 -48
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +44 -43
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationsAdminPage/index.js +57 -56
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +63 -62
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/PostLoginPage/index.js +14 -13
- package/dist/pages/PostLoginPage/index.js.map +1 -1
- package/dist/pages/PostLogoutPage/index.js +19 -18
- package/dist/pages/PostLogoutPage/index.js.map +1 -1
- package/dist/pages/RouterErrorPage/index.js.map +1 -1
- package/dist/pages/UserInvitationsAdminPage/index.js +1 -2
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +1 -1
- package/dist/pages/UsersAdminPage/index.js +110 -109
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/routes/adminRoutes.d.ts +1 -1
- package/dist/routes/index.js +1 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/oidcStore/index.js.map +1 -1
- package/dist/stores/outagesStore/index.js.map +1 -1
- package/dist/stores/outagesStore/outagesStore.d.ts +1 -1
- package/dist/stores/tableStore/index.js +1 -2
- package/dist/stores/tableStore/tableStore.d.ts +2 -2
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/AxiosUtil/index.js.map +1 -1
- package/dist/utils/DataHookUtil/DataHookUtil.d.ts +1 -1
- package/dist/utils/DataHookUtil/index.js.map +1 -1
- package/dist/utils/DependencyContainerUtil/DependencyContainerUtil.d.ts +6 -0
- package/dist/utils/DependencyContainerUtil/index.d.ts +1 -0
- package/dist/utils/DependencyContainerUtil/index.js +22 -0
- package/dist/utils/DependencyContainerUtil/index.js.map +1 -0
- package/dist/utils/LoadableUtil/LoadableUtil.d.ts +1 -1
- package/dist/utils/LoadableUtil/index.js.map +1 -1
- package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +1 -1
- package/dist/utils/MenuDataUtil/index.js.map +1 -1
- package/dist/utils/NotificationUtil/index.js.map +1 -1
- package/dist/utils/OutageUtil/OutageUtil.d.ts +1 -1
- package/dist/utils/OutageUtil/index.js +1 -2
- package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +1 -1
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +4 -4
- package/dist/utils/TableUtil/index.js +1 -2
- package/dist/utils/TimeUtil/index.js.map +1 -1
- package/dist/utils/UserManagerUtil/index.js +1 -2
- package/dist/utils/UserUtil/index.js.map +1 -1
- package/package.json +96 -86
- package/dist/_chunks/_baseGet.js +0 -280
- package/dist/_chunks/_baseGet.js.map +0 -1
- package/dist/_chunks/_baseIteratee.js +0 -274
- package/dist/_chunks/_baseIteratee.js.map +0 -1
- package/dist/_chunks/last.js +0 -13
- package/dist/_chunks/last.js.map +0 -1
- package/dist/_chunks/uniq.js +0 -44
- package/dist/_chunks/uniq.js.map +0 -1
- package/dist/classes/services/ApiService/ApiService.d.ts +0 -19
- package/dist/classes/services/ApiService/index.d.ts +0 -1
- package/dist/classes/services/ApiService/index.js +0 -21
- package/dist/classes/services/ApiService/index.js.map +0 -1
- package/dist/classes/services/ConfigService/ConfigService.d.ts +0 -9
- package/dist/classes/services/ConfigService/index.d.ts +0 -1
- package/dist/classes/services/ConfigService/index.js +0 -21
- package/dist/classes/services/ConfigService/index.js.map +0 -1
- package/dist/constants/query.js.map +0 -1
- package/dist/models/admin.js.map +0 -1
- package/dist/models/table.js.map +0 -1
- /package/dist/constants/{query.d.ts → query.constants.d.ts} +0 -0
- /package/dist/models/{admin.d.ts → admin.models.d.ts} +0 -0
- /package/dist/models/{api.d.ts → api.models.d.ts} +0 -0
- /package/dist/models/{api.js → api.models.js} +0 -0
- /package/dist/models/{auth.d.ts → auth.models.d.ts} +0 -0
- /package/dist/models/{auth.js → auth.models.js} +0 -0
- /package/dist/models/{config.d.ts → config.models.d.ts} +0 -0
- /package/dist/models/{config.js → config.models.js} +0 -0
- /package/dist/models/{data.js → data-hooks.models.js} +0 -0
- /package/dist/models/{data.d.ts → data.models.d.ts} +0 -0
- /package/dist/models/{dataHooks.js → data.models.js} +0 -0
- /package/dist/models/{filter.d.ts → filter.models.d.ts} +0 -0
- /package/dist/models/{filter.js → filter.models.js} +0 -0
- /package/dist/models/{notification.d.ts → notification.models.d.ts} +0 -0
- /package/dist/models/{notification.js → notification.models.js} +0 -0
- /package/dist/models/{outage.d.ts → outage.models.d.ts} +0 -0
- /package/dist/models/{outage.js → outage.models.js} +0 -0
- /package/dist/models/{reactRouter.d.ts → react-router.models.d.ts} +0 -0
- /package/dist/models/{reactRouter.js → react-router.models.js} +0 -0
- /package/dist/models/{theme.d.ts → theme.models.d.ts} +0 -0
- /package/dist/models/{theme.js → theme.models.js} +0 -0
|
@@ -1,19 +1,282 @@
|
|
|
1
1
|
import { n as e, t } from "./rolldown-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
//#region ../../node_modules/.pnpm
|
|
10
|
-
var
|
|
2
|
+
import { i as n, n as r, t as i } from "./isObject.js";
|
|
3
|
+
import { f as a, l as o, n as s, r as c } from "./isArrayLike.js";
|
|
4
|
+
import { i as l, n as u, r as d, t as f } from "./_cacheHas.js";
|
|
5
|
+
import { C as p, S as m, _ as h, a as g, c as _, g as v, i as y, l as b, m as x, o as S, r as C, s as w, t as T, u as E, x as D } from "./_baseUnset.js";
|
|
6
|
+
import { S as O, _ as k, a as A, c as j, d as M, f as N, g as P, h as F, i as ee, m as I, o as L, r as te, s as ne, t as re, u as ie, y as R } from "./query.js";
|
|
7
|
+
import { t as ae } from "./decorate.js";
|
|
8
|
+
import { singleton as oe } from "tsyringe";
|
|
9
|
+
//#region ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arraySome.js
|
|
10
|
+
var se = /* @__PURE__ */ t(((e, t) => {
|
|
11
|
+
function n(e, t) {
|
|
12
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
|
|
13
|
+
return !1;
|
|
14
|
+
}
|
|
15
|
+
t.exports = n;
|
|
16
|
+
})), z = /* @__PURE__ */ t(((e, t) => {
|
|
17
|
+
var n = l(), r = se(), i = f(), a = 1, o = 2;
|
|
18
|
+
function s(e, t, s, c, l, u) {
|
|
19
|
+
var d = s & a, f = e.length, p = t.length;
|
|
20
|
+
if (f != p && !(d && p > f)) return !1;
|
|
21
|
+
var m = u.get(e), h = u.get(t);
|
|
22
|
+
if (m && h) return m == t && h == e;
|
|
23
|
+
var g = -1, _ = !0, v = s & o ? new n() : void 0;
|
|
24
|
+
for (u.set(e, t), u.set(t, e); ++g < f;) {
|
|
25
|
+
var y = e[g], b = t[g];
|
|
26
|
+
if (c) var x = d ? c(b, y, g, t, e, u) : c(y, b, g, e, t, u);
|
|
27
|
+
if (x !== void 0) {
|
|
28
|
+
if (x) continue;
|
|
29
|
+
_ = !1;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
if (v) {
|
|
33
|
+
if (!r(t, function(e, t) {
|
|
34
|
+
if (!i(v, t) && (y === e || l(y, e, s, c, u))) return v.push(t);
|
|
35
|
+
})) {
|
|
36
|
+
_ = !1;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
} else if (!(y === b || l(y, b, s, c, u))) {
|
|
40
|
+
_ = !1;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return u.delete(e), u.delete(t), _;
|
|
45
|
+
}
|
|
46
|
+
t.exports = s;
|
|
47
|
+
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
48
|
+
function n(e) {
|
|
49
|
+
var t = -1, n = Array(e.size);
|
|
50
|
+
return e.forEach(function(e, r) {
|
|
51
|
+
n[++t] = [r, e];
|
|
52
|
+
}), n;
|
|
53
|
+
}
|
|
54
|
+
t.exports = n;
|
|
55
|
+
})), B = /* @__PURE__ */ t(((e, t) => {
|
|
56
|
+
function n(e) {
|
|
57
|
+
var t = -1, n = Array(e.size);
|
|
58
|
+
return e.forEach(function(e) {
|
|
59
|
+
n[++t] = e;
|
|
60
|
+
}), n;
|
|
61
|
+
}
|
|
62
|
+
t.exports = n;
|
|
63
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
64
|
+
var r = n(), i = D(), a = o(), s = z(), c = ce(), l = B(), u = 1, d = 2, f = "[object Boolean]", p = "[object Date]", m = "[object Error]", h = "[object Map]", g = "[object Number]", _ = "[object RegExp]", v = "[object Set]", y = "[object String]", b = "[object Symbol]", x = "[object ArrayBuffer]", S = "[object DataView]", C = r ? r.prototype : void 0, w = C ? C.valueOf : void 0;
|
|
65
|
+
function T(e, t, n, r, o, C, T) {
|
|
66
|
+
switch (n) {
|
|
67
|
+
case S:
|
|
68
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
69
|
+
e = e.buffer, t = t.buffer;
|
|
70
|
+
case x: return !(e.byteLength != t.byteLength || !C(new i(e), new i(t)));
|
|
71
|
+
case f:
|
|
72
|
+
case p:
|
|
73
|
+
case g: return a(+e, +t);
|
|
74
|
+
case m: return e.name == t.name && e.message == t.message;
|
|
75
|
+
case _:
|
|
76
|
+
case y: return e == t + "";
|
|
77
|
+
case h: var E = c;
|
|
78
|
+
case v:
|
|
79
|
+
var D = r & u;
|
|
80
|
+
if (E ||= l, e.size != t.size && !D) return !1;
|
|
81
|
+
var O = T.get(e);
|
|
82
|
+
if (O) return O == t;
|
|
83
|
+
r |= d, T.set(e, t);
|
|
84
|
+
var k = s(E(e), E(t), r, o, C, T);
|
|
85
|
+
return T.delete(e), k;
|
|
86
|
+
case b: if (w) return w.call(e) == w.call(t);
|
|
87
|
+
}
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
t.exports = T;
|
|
91
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
92
|
+
var n = b(), r = 1, i = Object.prototype.hasOwnProperty;
|
|
93
|
+
function a(e, t, a, o, s, c) {
|
|
94
|
+
var l = a & r, u = n(e), d = u.length;
|
|
95
|
+
if (d != n(t).length && !l) return !1;
|
|
96
|
+
for (var f = d; f--;) {
|
|
97
|
+
var p = u[f];
|
|
98
|
+
if (!(l ? p in t : i.call(t, p))) return !1;
|
|
99
|
+
}
|
|
100
|
+
var m = c.get(e), h = c.get(t);
|
|
101
|
+
if (m && h) return m == t && h == e;
|
|
102
|
+
var g = !0;
|
|
103
|
+
c.set(e, t), c.set(t, e);
|
|
104
|
+
for (var _ = l; ++f < d;) {
|
|
105
|
+
p = u[f];
|
|
106
|
+
var v = e[p], y = t[p];
|
|
107
|
+
if (o) var b = l ? o(y, v, p, t, e, c) : o(v, y, p, e, t, c);
|
|
108
|
+
if (!(b === void 0 ? v === y || s(v, y, a, o, c) : b)) {
|
|
109
|
+
g = !1;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
_ ||= p == "constructor";
|
|
113
|
+
}
|
|
114
|
+
if (g && !_) {
|
|
115
|
+
var x = e.constructor, S = t.constructor;
|
|
116
|
+
x != S && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof S == "function" && S instanceof S) && (g = !1);
|
|
117
|
+
}
|
|
118
|
+
return c.delete(e), c.delete(t), g;
|
|
119
|
+
}
|
|
120
|
+
t.exports = a;
|
|
121
|
+
})), de = /* @__PURE__ */ t(((e, t) => {
|
|
122
|
+
var n = m(), r = z(), i = le(), a = ue(), o = w(), s = c(), l = h(), u = x(), d = 1, f = "[object Arguments]", p = "[object Array]", g = "[object Object]", _ = Object.prototype.hasOwnProperty;
|
|
123
|
+
function v(e, t, c, m, h, v) {
|
|
124
|
+
var y = s(e), b = s(t), x = y ? p : o(e), S = b ? p : o(t);
|
|
125
|
+
x = x == f ? g : x, S = S == f ? g : S;
|
|
126
|
+
var C = x == g, w = S == g, T = x == S;
|
|
127
|
+
if (T && l(e)) {
|
|
128
|
+
if (!l(t)) return !1;
|
|
129
|
+
y = !0, C = !1;
|
|
130
|
+
}
|
|
131
|
+
if (T && !C) return v ||= new n(), y || u(e) ? r(e, t, c, m, h, v) : i(e, t, x, c, m, h, v);
|
|
132
|
+
if (!(c & d)) {
|
|
133
|
+
var E = C && _.call(e, "__wrapped__"), D = w && _.call(t, "__wrapped__");
|
|
134
|
+
if (E || D) {
|
|
135
|
+
var O = E ? e.value() : e, k = D ? t.value() : t;
|
|
136
|
+
return v ||= new n(), h(O, k, c, m, v);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return T ? (v ||= new n(), a(e, t, c, m, h, v)) : !1;
|
|
140
|
+
}
|
|
141
|
+
t.exports = v;
|
|
142
|
+
})), V = /* @__PURE__ */ t(((e, t) => {
|
|
143
|
+
var n = de(), i = r();
|
|
144
|
+
function a(e, t, r, o, s) {
|
|
145
|
+
return e === t ? !0 : e == null || t == null || !i(e) && !i(t) ? e !== e && t !== t : n(e, t, r, o, a, s);
|
|
146
|
+
}
|
|
147
|
+
t.exports = a;
|
|
148
|
+
})), fe = /* @__PURE__ */ t(((e, t) => {
|
|
149
|
+
var n = m(), r = V(), i = 1, a = 2;
|
|
150
|
+
function o(e, t, o, s) {
|
|
151
|
+
var c = o.length, l = c, u = !s;
|
|
152
|
+
if (e == null) return !l;
|
|
153
|
+
for (e = Object(e); c--;) {
|
|
154
|
+
var d = o[c];
|
|
155
|
+
if (u && d[2] ? d[1] !== e[d[0]] : !(d[0] in e)) return !1;
|
|
156
|
+
}
|
|
157
|
+
for (; ++c < l;) {
|
|
158
|
+
d = o[c];
|
|
159
|
+
var f = d[0], p = e[f], m = d[1];
|
|
160
|
+
if (u && d[2]) {
|
|
161
|
+
if (p === void 0 && !(f in e)) return !1;
|
|
162
|
+
} else {
|
|
163
|
+
var h = new n();
|
|
164
|
+
if (s) var g = s(p, m, f, e, t, h);
|
|
165
|
+
if (!(g === void 0 ? r(m, p, i | a, s, h) : g)) return !1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return !0;
|
|
169
|
+
}
|
|
170
|
+
t.exports = o;
|
|
171
|
+
})), H = /* @__PURE__ */ t(((e, t) => {
|
|
172
|
+
var n = i();
|
|
173
|
+
function r(e) {
|
|
174
|
+
return e === e && !n(e);
|
|
175
|
+
}
|
|
176
|
+
t.exports = r;
|
|
177
|
+
})), pe = /* @__PURE__ */ t(((e, t) => {
|
|
178
|
+
var n = H(), r = E();
|
|
179
|
+
function i(e) {
|
|
180
|
+
for (var t = r(e), i = t.length; i--;) {
|
|
181
|
+
var a = t[i], o = e[a];
|
|
182
|
+
t[i] = [
|
|
183
|
+
a,
|
|
184
|
+
o,
|
|
185
|
+
n(o)
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
return t;
|
|
189
|
+
}
|
|
190
|
+
t.exports = i;
|
|
191
|
+
})), U = /* @__PURE__ */ t(((e, t) => {
|
|
192
|
+
function n(e, t) {
|
|
193
|
+
return function(n) {
|
|
194
|
+
return n != null && n[e] === t && (t !== void 0 || e in Object(n));
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
t.exports = n;
|
|
198
|
+
})), me = /* @__PURE__ */ t(((e, t) => {
|
|
199
|
+
var n = fe(), r = pe(), i = U();
|
|
200
|
+
function a(e) {
|
|
201
|
+
var t = r(e);
|
|
202
|
+
return t.length == 1 && t[0][2] ? i(t[0][0], t[0][1]) : function(r) {
|
|
203
|
+
return r === e || n(r, e, t);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
t.exports = a;
|
|
207
|
+
})), he = /* @__PURE__ */ t(((e, t) => {
|
|
208
|
+
var n = C();
|
|
209
|
+
function r(e, t, r) {
|
|
210
|
+
var i = e == null ? void 0 : n(e, t);
|
|
211
|
+
return i === void 0 ? r : i;
|
|
212
|
+
}
|
|
213
|
+
t.exports = r;
|
|
214
|
+
})), ge = /* @__PURE__ */ t(((e, t) => {
|
|
215
|
+
function n(e, t) {
|
|
216
|
+
return e != null && t in Object(e);
|
|
217
|
+
}
|
|
218
|
+
t.exports = n;
|
|
219
|
+
})), _e = /* @__PURE__ */ t(((e, t) => {
|
|
220
|
+
var n = g(), r = p(), i = c(), a = v(), o = s(), l = y();
|
|
221
|
+
function u(e, t, s) {
|
|
222
|
+
t = n(t, e);
|
|
223
|
+
for (var c = -1, u = t.length, d = !1; ++c < u;) {
|
|
224
|
+
var f = l(t[c]);
|
|
225
|
+
if (!(d = e != null && s(e, f))) break;
|
|
226
|
+
e = e[f];
|
|
227
|
+
}
|
|
228
|
+
return d || ++c != u ? d : (u = e == null ? 0 : e.length, !!u && o(u) && a(f, u) && (i(e) || r(e)));
|
|
229
|
+
}
|
|
230
|
+
t.exports = u;
|
|
231
|
+
})), ve = /* @__PURE__ */ t(((e, t) => {
|
|
232
|
+
var n = ge(), r = _e();
|
|
233
|
+
function i(e, t) {
|
|
234
|
+
return e != null && r(e, t, n);
|
|
235
|
+
}
|
|
236
|
+
t.exports = i;
|
|
237
|
+
})), ye = /* @__PURE__ */ t(((e, t) => {
|
|
238
|
+
var n = V(), r = he(), i = ve(), a = S(), o = H(), s = U(), c = y(), l = 1, u = 2;
|
|
239
|
+
function d(e, t) {
|
|
240
|
+
return a(e) && o(t) ? s(c(e), t) : function(a) {
|
|
241
|
+
var o = r(a, e);
|
|
242
|
+
return o === void 0 && o === t ? i(a, e) : n(t, o, l | u);
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
t.exports = d;
|
|
246
|
+
})), be = /* @__PURE__ */ t(((e, t) => {
|
|
247
|
+
function n(e) {
|
|
248
|
+
return function(t) {
|
|
249
|
+
return t?.[e];
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
t.exports = n;
|
|
253
|
+
})), xe = /* @__PURE__ */ t(((e, t) => {
|
|
254
|
+
var n = C();
|
|
255
|
+
function r(e) {
|
|
256
|
+
return function(t) {
|
|
257
|
+
return n(t, e);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
t.exports = r;
|
|
261
|
+
})), Se = /* @__PURE__ */ t(((e, t) => {
|
|
262
|
+
var n = be(), r = xe(), i = S(), a = y();
|
|
263
|
+
function o(e) {
|
|
264
|
+
return i(e) ? n(a(e)) : r(e);
|
|
265
|
+
}
|
|
266
|
+
t.exports = o;
|
|
267
|
+
})), W = /* @__PURE__ */ t(((e, t) => {
|
|
268
|
+
var n = me(), r = ye(), i = a(), o = c(), s = Se();
|
|
269
|
+
function l(e) {
|
|
270
|
+
return typeof e == "function" ? e : e == null ? i : typeof e == "object" ? o(e) ? r(e[0], e[1]) : n(e) : s(e);
|
|
271
|
+
}
|
|
272
|
+
t.exports = l;
|
|
273
|
+
})), Ce = class extends te {
|
|
11
274
|
#e;
|
|
12
275
|
#t;
|
|
13
276
|
#n;
|
|
14
277
|
#r;
|
|
15
278
|
constructor(e) {
|
|
16
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
279
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || G(), this.setOptions(e.options), this.scheduleGc();
|
|
17
280
|
}
|
|
18
281
|
setOptions(e) {
|
|
19
282
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -48,7 +311,7 @@ var T = class extends y {
|
|
|
48
311
|
client: this.#e,
|
|
49
312
|
meta: this.options.meta,
|
|
50
313
|
mutationKey: this.options.mutationKey
|
|
51
|
-
}, r = this.#r =
|
|
314
|
+
}, r = this.#r = ee({
|
|
52
315
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
53
316
|
onFail: (e, t) => {
|
|
54
317
|
this.#i({
|
|
@@ -164,7 +427,7 @@ var T = class extends y {
|
|
|
164
427
|
};
|
|
165
428
|
}
|
|
166
429
|
};
|
|
167
|
-
this.state = t(this.state),
|
|
430
|
+
this.state = t(this.state), L.batch(() => {
|
|
168
431
|
this.#t.forEach((t) => {
|
|
169
432
|
t.onMutationUpdate(e);
|
|
170
433
|
}), this.#n.notify({
|
|
@@ -175,7 +438,7 @@ var T = class extends y {
|
|
|
175
438
|
});
|
|
176
439
|
}
|
|
177
440
|
};
|
|
178
|
-
function
|
|
441
|
+
function G() {
|
|
179
442
|
return {
|
|
180
443
|
context: void 0,
|
|
181
444
|
data: void 0,
|
|
@@ -189,8 +452,8 @@ function E() {
|
|
|
189
452
|
};
|
|
190
453
|
}
|
|
191
454
|
//#endregion
|
|
192
|
-
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.
|
|
193
|
-
var
|
|
455
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.104.2/node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
456
|
+
var K = class extends j {
|
|
194
457
|
#e;
|
|
195
458
|
#t;
|
|
196
459
|
#n;
|
|
@@ -198,7 +461,7 @@ var D = class extends d {
|
|
|
198
461
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
199
462
|
}
|
|
200
463
|
build(e, t, n) {
|
|
201
|
-
let r = new
|
|
464
|
+
let r = new Ce({
|
|
202
465
|
client: e,
|
|
203
466
|
mutationCache: this,
|
|
204
467
|
mutationId: ++this.#n,
|
|
@@ -209,7 +472,7 @@ var D = class extends d {
|
|
|
209
472
|
}
|
|
210
473
|
add(e) {
|
|
211
474
|
this.#e.add(e);
|
|
212
|
-
let t =
|
|
475
|
+
let t = q(e);
|
|
213
476
|
if (typeof t == "string") {
|
|
214
477
|
let n = this.#t.get(t);
|
|
215
478
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -221,7 +484,7 @@ var D = class extends d {
|
|
|
221
484
|
}
|
|
222
485
|
remove(e) {
|
|
223
486
|
if (this.#e.delete(e)) {
|
|
224
|
-
let t =
|
|
487
|
+
let t = q(e);
|
|
225
488
|
if (typeof t == "string") {
|
|
226
489
|
let n = this.#t.get(t);
|
|
227
490
|
if (n) {
|
|
@@ -238,7 +501,7 @@ var D = class extends d {
|
|
|
238
501
|
});
|
|
239
502
|
}
|
|
240
503
|
canRun(e) {
|
|
241
|
-
let t =
|
|
504
|
+
let t = q(e);
|
|
242
505
|
if (typeof t == "string") {
|
|
243
506
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
244
507
|
return !n || n === e;
|
|
@@ -246,11 +509,11 @@ var D = class extends d {
|
|
|
246
509
|
return !0;
|
|
247
510
|
}
|
|
248
511
|
runNext(e) {
|
|
249
|
-
let t =
|
|
512
|
+
let t = q(e);
|
|
250
513
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
251
514
|
}
|
|
252
515
|
clear() {
|
|
253
|
-
|
|
516
|
+
L.batch(() => {
|
|
254
517
|
this.#e.forEach((e) => {
|
|
255
518
|
this.notify({
|
|
256
519
|
type: "removed",
|
|
@@ -267,13 +530,13 @@ var D = class extends d {
|
|
|
267
530
|
exact: !0,
|
|
268
531
|
...e
|
|
269
532
|
};
|
|
270
|
-
return this.getAll().find((e) =>
|
|
533
|
+
return this.getAll().find((e) => I(t, e));
|
|
271
534
|
}
|
|
272
535
|
findAll(e = {}) {
|
|
273
|
-
return this.getAll().filter((t) =>
|
|
536
|
+
return this.getAll().filter((t) => I(e, t));
|
|
274
537
|
}
|
|
275
538
|
notify(e) {
|
|
276
|
-
|
|
539
|
+
L.batch(() => {
|
|
277
540
|
this.listeners.forEach((t) => {
|
|
278
541
|
t(e);
|
|
279
542
|
});
|
|
@@ -281,22 +544,22 @@ var D = class extends d {
|
|
|
281
544
|
}
|
|
282
545
|
resumePausedMutations() {
|
|
283
546
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
284
|
-
return
|
|
547
|
+
return L.batch(() => Promise.all(e.map((e) => e.continue().catch(P))));
|
|
285
548
|
}
|
|
286
549
|
};
|
|
287
|
-
function
|
|
550
|
+
function q(e) {
|
|
288
551
|
return e.options.scope?.id;
|
|
289
552
|
}
|
|
290
553
|
//#endregion
|
|
291
|
-
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.
|
|
292
|
-
var
|
|
554
|
+
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.104.2/node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
555
|
+
var J = class extends j {
|
|
293
556
|
#e;
|
|
294
557
|
constructor(e = {}) {
|
|
295
558
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
296
559
|
}
|
|
297
560
|
build(e, t, n) {
|
|
298
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
299
|
-
return a || (a = new
|
|
561
|
+
let r = t.queryKey, i = t.queryHash ?? N(r, t), a = this.get(i);
|
|
562
|
+
return a || (a = new re({
|
|
300
563
|
client: e,
|
|
301
564
|
queryKey: r,
|
|
302
565
|
queryHash: i,
|
|
@@ -318,7 +581,7 @@ var k = class extends d {
|
|
|
318
581
|
}));
|
|
319
582
|
}
|
|
320
583
|
clear() {
|
|
321
|
-
|
|
584
|
+
L.batch(() => {
|
|
322
585
|
this.getAll().forEach((e) => {
|
|
323
586
|
this.remove(e);
|
|
324
587
|
});
|
|
@@ -335,34 +598,34 @@ var k = class extends d {
|
|
|
335
598
|
exact: !0,
|
|
336
599
|
...e
|
|
337
600
|
};
|
|
338
|
-
return this.getAll().find((e) =>
|
|
601
|
+
return this.getAll().find((e) => F(t, e));
|
|
339
602
|
}
|
|
340
603
|
findAll(e = {}) {
|
|
341
604
|
let t = this.getAll();
|
|
342
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
605
|
+
return Object.keys(e).length > 0 ? t.filter((t) => F(e, t)) : t;
|
|
343
606
|
}
|
|
344
607
|
notify(e) {
|
|
345
|
-
|
|
608
|
+
L.batch(() => {
|
|
346
609
|
this.listeners.forEach((t) => {
|
|
347
610
|
t(e);
|
|
348
611
|
});
|
|
349
612
|
});
|
|
350
613
|
}
|
|
351
614
|
onFocus() {
|
|
352
|
-
|
|
615
|
+
L.batch(() => {
|
|
353
616
|
this.getAll().forEach((e) => {
|
|
354
617
|
e.onFocus();
|
|
355
618
|
});
|
|
356
619
|
});
|
|
357
620
|
}
|
|
358
621
|
onOnline() {
|
|
359
|
-
|
|
622
|
+
L.batch(() => {
|
|
360
623
|
this.getAll().forEach((e) => {
|
|
361
624
|
e.onOnline();
|
|
362
625
|
});
|
|
363
626
|
});
|
|
364
627
|
}
|
|
365
|
-
},
|
|
628
|
+
}, we = class {
|
|
366
629
|
#e;
|
|
367
630
|
#t;
|
|
368
631
|
#n;
|
|
@@ -372,12 +635,12 @@ var k = class extends d {
|
|
|
372
635
|
#o;
|
|
373
636
|
#s;
|
|
374
637
|
constructor(e = {}) {
|
|
375
|
-
this.#e = e.queryCache || new
|
|
638
|
+
this.#e = e.queryCache || new J(), this.#t = e.mutationCache || new K(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
376
639
|
}
|
|
377
640
|
mount() {
|
|
378
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
641
|
+
this.#a++, this.#a === 1 && (this.#o = ne.subscribe(async (e) => {
|
|
379
642
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
380
|
-
}), this.#s =
|
|
643
|
+
}), this.#s = A.subscribe(async (e) => {
|
|
381
644
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
382
645
|
}));
|
|
383
646
|
}
|
|
@@ -402,20 +665,20 @@ var k = class extends d {
|
|
|
402
665
|
}
|
|
403
666
|
ensureQueryData(e) {
|
|
404
667
|
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(
|
|
668
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(R(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
406
669
|
}
|
|
407
670
|
getQueriesData(e) {
|
|
408
671
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
409
672
|
}
|
|
410
673
|
setQueryData(e, t, n) {
|
|
411
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
674
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ie(t, i);
|
|
412
675
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
413
676
|
...n,
|
|
414
677
|
manual: !0
|
|
415
678
|
});
|
|
416
679
|
}
|
|
417
680
|
setQueriesData(e, t, n) {
|
|
418
|
-
return
|
|
681
|
+
return L.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
419
682
|
}
|
|
420
683
|
getQueryState(e) {
|
|
421
684
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -423,7 +686,7 @@ var k = class extends d {
|
|
|
423
686
|
}
|
|
424
687
|
removeQueries(e) {
|
|
425
688
|
let t = this.#e;
|
|
426
|
-
|
|
689
|
+
L.batch(() => {
|
|
427
690
|
t.findAll(e).forEach((e) => {
|
|
428
691
|
t.remove(e);
|
|
429
692
|
});
|
|
@@ -431,7 +694,7 @@ var k = class extends d {
|
|
|
431
694
|
}
|
|
432
695
|
resetQueries(e, t) {
|
|
433
696
|
let n = this.#e;
|
|
434
|
-
return
|
|
697
|
+
return L.batch(() => {
|
|
435
698
|
let r = n.findAll(e), i = new Set(r);
|
|
436
699
|
return r.forEach((e) => {
|
|
437
700
|
e.reset();
|
|
@@ -445,11 +708,11 @@ var k = class extends d {
|
|
|
445
708
|
let n = {
|
|
446
709
|
revert: !0,
|
|
447
710
|
...t
|
|
448
|
-
}, r =
|
|
449
|
-
return Promise.all(r).then(
|
|
711
|
+
}, r = L.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
712
|
+
return Promise.all(r).then(P).catch(P);
|
|
450
713
|
}
|
|
451
714
|
invalidateQueries(e, t = {}) {
|
|
452
|
-
return
|
|
715
|
+
return L.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
453
716
|
e.invalidate();
|
|
454
717
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
455
718
|
...e,
|
|
@@ -460,26 +723,26 @@ var k = class extends d {
|
|
|
460
723
|
let n = {
|
|
461
724
|
...t,
|
|
462
725
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
463
|
-
}, r =
|
|
726
|
+
}, r = L.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
464
727
|
let t = e.fetch(void 0, n);
|
|
465
|
-
return n.throwOnError || (t = t.catch(
|
|
728
|
+
return n.throwOnError || (t = t.catch(P)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
466
729
|
}));
|
|
467
|
-
return Promise.all(r).then(
|
|
730
|
+
return Promise.all(r).then(P);
|
|
468
731
|
}
|
|
469
732
|
async query(e) {
|
|
470
733
|
let t = this.defaultQueryOptions(e);
|
|
471
734
|
t.retry === void 0 && (t.retry = !1);
|
|
472
|
-
let n = this.#e.build(this, t), r = n.isStaleByTime(
|
|
735
|
+
let n = this.#e.build(this, t), r = n.isStaleByTime(R(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
|
|
473
736
|
return i ? i(r) : r;
|
|
474
737
|
}
|
|
475
738
|
fetchQuery(e) {
|
|
476
739
|
let t = this.defaultQueryOptions(e);
|
|
477
740
|
t.retry === void 0 && (t.retry = !1);
|
|
478
741
|
let n = this.#e.build(this, t);
|
|
479
|
-
return n.isStaleByTime(
|
|
742
|
+
return n.isStaleByTime(R(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
480
743
|
}
|
|
481
744
|
prefetchQuery(e) {
|
|
482
|
-
return this.fetchQuery(e).then(
|
|
745
|
+
return this.fetchQuery(e).then(P).catch(P);
|
|
483
746
|
}
|
|
484
747
|
infiniteQuery(e) {
|
|
485
748
|
return e._type = "infinite", this.query(e);
|
|
@@ -488,13 +751,13 @@ var k = class extends d {
|
|
|
488
751
|
return e._type = "infinite", this.fetchQuery(e);
|
|
489
752
|
}
|
|
490
753
|
prefetchInfiniteQuery(e) {
|
|
491
|
-
return this.fetchInfiniteQuery(e).then(
|
|
754
|
+
return this.fetchInfiniteQuery(e).then(P).catch(P);
|
|
492
755
|
}
|
|
493
756
|
ensureInfiniteQueryData(e) {
|
|
494
757
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
495
758
|
}
|
|
496
759
|
resumePausedMutations() {
|
|
497
|
-
return
|
|
760
|
+
return A.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
498
761
|
}
|
|
499
762
|
getQueryCache() {
|
|
500
763
|
return this.#e;
|
|
@@ -509,7 +772,7 @@ var k = class extends d {
|
|
|
509
772
|
this.#n = e;
|
|
510
773
|
}
|
|
511
774
|
setQueryDefaults(e, t) {
|
|
512
|
-
this.#r.set(
|
|
775
|
+
this.#r.set(M(e), {
|
|
513
776
|
queryKey: e,
|
|
514
777
|
defaultOptions: t
|
|
515
778
|
});
|
|
@@ -517,11 +780,11 @@ var k = class extends d {
|
|
|
517
780
|
getQueryDefaults(e) {
|
|
518
781
|
let t = [...this.#r.values()], n = {};
|
|
519
782
|
return t.forEach((t) => {
|
|
520
|
-
|
|
783
|
+
k(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
521
784
|
}), n;
|
|
522
785
|
}
|
|
523
786
|
setMutationDefaults(e, t) {
|
|
524
|
-
this.#i.set(
|
|
787
|
+
this.#i.set(M(e), {
|
|
525
788
|
mutationKey: e,
|
|
526
789
|
defaultOptions: t
|
|
527
790
|
});
|
|
@@ -529,7 +792,7 @@ var k = class extends d {
|
|
|
529
792
|
getMutationDefaults(e) {
|
|
530
793
|
let t = [...this.#i.values()], n = {};
|
|
531
794
|
return t.forEach((t) => {
|
|
532
|
-
|
|
795
|
+
k(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
533
796
|
}), n;
|
|
534
797
|
}
|
|
535
798
|
defaultQueryOptions(e) {
|
|
@@ -540,7 +803,7 @@ var k = class extends d {
|
|
|
540
803
|
...e,
|
|
541
804
|
_defaulted: !0
|
|
542
805
|
};
|
|
543
|
-
return t.queryHash ||=
|
|
806
|
+
return t.queryHash ||= N(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 === O && (t.enabled = !1), t;
|
|
544
807
|
}
|
|
545
808
|
defaultMutationOptions(e) {
|
|
546
809
|
return e?._defaulted ? e : {
|
|
@@ -553,48 +816,90 @@ var k = class extends d {
|
|
|
553
816
|
clear() {
|
|
554
817
|
this.#e.clear(), this.#t.clear();
|
|
555
818
|
}
|
|
556
|
-
},
|
|
557
|
-
var
|
|
558
|
-
function
|
|
559
|
-
for (var
|
|
560
|
-
var s = t[
|
|
561
|
-
if (
|
|
819
|
+
}, Te = /* @__PURE__ */ t(((e, t) => {
|
|
820
|
+
var n = T(), r = v(), i = Array.prototype.splice;
|
|
821
|
+
function a(e, t) {
|
|
822
|
+
for (var a = e ? t.length : 0, o = a - 1; a--;) {
|
|
823
|
+
var s = t[a];
|
|
824
|
+
if (a == o || s !== c) {
|
|
562
825
|
var c = s;
|
|
563
|
-
|
|
826
|
+
r(s) ? i.call(e, s, 1) : n(e, s);
|
|
564
827
|
}
|
|
565
828
|
}
|
|
566
829
|
return e;
|
|
567
830
|
}
|
|
568
|
-
t.exports =
|
|
569
|
-
})),
|
|
570
|
-
var n =
|
|
571
|
-
function
|
|
572
|
-
var
|
|
573
|
-
if (!(e && e.length)) return
|
|
831
|
+
t.exports = a;
|
|
832
|
+
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
833
|
+
var n = W(), r = Te();
|
|
834
|
+
function i(e, t) {
|
|
835
|
+
var i = [];
|
|
836
|
+
if (!(e && e.length)) return i;
|
|
574
837
|
var a = -1, o = [], s = e.length;
|
|
575
838
|
for (t = n(t, 3); ++a < s;) {
|
|
576
839
|
var c = e[a];
|
|
577
|
-
t(c, a, e) && (
|
|
840
|
+
t(c, a, e) && (i.push(c), o.push(a));
|
|
578
841
|
}
|
|
579
|
-
return
|
|
580
|
-
}
|
|
581
|
-
t.exports =
|
|
582
|
-
})),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
t.exports =
|
|
588
|
-
|
|
589
|
-
|
|
842
|
+
return r(e, o), i;
|
|
843
|
+
}
|
|
844
|
+
t.exports = i;
|
|
845
|
+
})), Y = /* @__PURE__ */ t(((e, t) => {
|
|
846
|
+
function n() {}
|
|
847
|
+
t.exports = n;
|
|
848
|
+
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
849
|
+
var n = _(), r = Y(), i = B();
|
|
850
|
+
t.exports = n && 1 / i(new n([, -0]))[1] == 1 / 0 ? function(e) {
|
|
851
|
+
return new n(e);
|
|
852
|
+
} : r;
|
|
853
|
+
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
854
|
+
var n = l(), r = d(), i = u(), a = f(), o = De(), s = B(), c = 200;
|
|
855
|
+
function p(e, t, l) {
|
|
856
|
+
var u = -1, d = r, f = e.length, p = !0, m = [], h = m;
|
|
857
|
+
if (l) p = !1, d = i;
|
|
858
|
+
else if (f >= c) {
|
|
859
|
+
var g = t ? null : o(e);
|
|
860
|
+
if (g) return s(g);
|
|
861
|
+
p = !1, d = a, h = new n();
|
|
862
|
+
} else h = t ? [] : m;
|
|
863
|
+
outer: for (; ++u < f;) {
|
|
864
|
+
var _ = e[u], v = t ? t(_) : _;
|
|
865
|
+
if (_ = l || _ !== 0 ? _ : 0, p && v === v) {
|
|
866
|
+
for (var y = h.length; y--;) if (h[y] === v) continue outer;
|
|
867
|
+
t && h.push(v), m.push(_);
|
|
868
|
+
} else d(h, v, l) || (h !== m && h.push(v), m.push(_));
|
|
869
|
+
}
|
|
870
|
+
return m;
|
|
871
|
+
}
|
|
872
|
+
t.exports = p;
|
|
873
|
+
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
874
|
+
var n = X();
|
|
875
|
+
function r(e) {
|
|
876
|
+
return e && e.length ? n(e) : [];
|
|
877
|
+
}
|
|
878
|
+
t.exports = r;
|
|
879
|
+
})), Oe = /* @__PURE__ */ t(((e, t) => {
|
|
880
|
+
var n = W(), r = X();
|
|
881
|
+
function i(e, t) {
|
|
882
|
+
return e && e.length ? r(e, n(t, 2)) : [];
|
|
883
|
+
}
|
|
884
|
+
t.exports = i;
|
|
885
|
+
})), ke = /* @__PURE__ */ e(Ee(), 1), Ae = /* @__PURE__ */ e(Z(), 1), je = /* @__PURE__ */ e(Oe(), 1), Q, $ = Q = class {
|
|
590
886
|
mutationCache;
|
|
591
887
|
queryCache;
|
|
592
888
|
queryClient;
|
|
593
889
|
queryKeyDependencies;
|
|
594
|
-
constructor() {
|
|
595
|
-
|
|
596
|
-
let t =
|
|
597
|
-
|
|
890
|
+
constructor(e) {
|
|
891
|
+
this.queryKeyDependencies = Q.mergeQueryKeyDependencies(e.queryKeyDependencies);
|
|
892
|
+
let t = new J({}), n = new K({}), r = new we({
|
|
893
|
+
defaultOptions: { queries: {
|
|
894
|
+
gcTime: Infinity,
|
|
895
|
+
retry: e.config.queryClient.retry,
|
|
896
|
+
retryDelay: e.config.queryClient.retryDelay,
|
|
897
|
+
staleTime: Infinity
|
|
898
|
+
} },
|
|
899
|
+
mutationCache: n,
|
|
900
|
+
queryCache: t
|
|
901
|
+
});
|
|
902
|
+
this.queryCache = t, this.mutationCache = n, this.queryClient = r;
|
|
598
903
|
}
|
|
599
904
|
static mergeQueryKeyDependencies(e) {
|
|
600
905
|
let t = {};
|
|
@@ -603,12 +908,12 @@ var k = class extends d {
|
|
|
603
908
|
t[e] || (t[e] = []), t[e].push(...n);
|
|
604
909
|
});
|
|
605
910
|
}), Object.keys(t).forEach((e) => {
|
|
606
|
-
t[e] = (0,
|
|
911
|
+
t[e] = (0, Ae.default)(t[e]);
|
|
607
912
|
}), t;
|
|
608
913
|
}
|
|
609
|
-
async cancelQueries(
|
|
610
|
-
let
|
|
611
|
-
for (let
|
|
914
|
+
async cancelQueries(e) {
|
|
915
|
+
let t = this.queryClient;
|
|
916
|
+
for (let n of this.getUniqueQueryKeys(e ?? [])) await t.cancelQueries({ queryKey: n });
|
|
612
917
|
}
|
|
613
918
|
getGenericKey(e, t) {
|
|
614
919
|
let n = [e];
|
|
@@ -624,26 +929,10 @@ var k = class extends d {
|
|
|
624
929
|
}), this.getUniqueQueryKeys(n);
|
|
625
930
|
}
|
|
626
931
|
getUniqueQueryKeys(e) {
|
|
627
|
-
return (0,
|
|
932
|
+
return (0, je.default)(e, (e) => e.join("-"));
|
|
628
933
|
}
|
|
629
|
-
getValidQueryData(
|
|
630
|
-
|
|
631
|
-
if (!n.find({ queryKey: t })?.state?.isInvalidated) return r.getQueryData(t);
|
|
632
|
-
}
|
|
633
|
-
initialize(t) {
|
|
634
|
-
if (this.queryKeyDependencies) throw Error("QueryClientService already initialized");
|
|
635
|
-
this.queryKeyDependencies = e.mergeQueryKeyDependencies(t.queryKeyDependencies);
|
|
636
|
-
let n = new k({}), r = new D({}), a = new A({
|
|
637
|
-
defaultOptions: { queries: {
|
|
638
|
-
gcTime: Infinity,
|
|
639
|
-
retry: i.getInstance().config.queryClient.retry,
|
|
640
|
-
retryDelay: i.getInstance().config.queryClient.retryDelay,
|
|
641
|
-
staleTime: Infinity
|
|
642
|
-
} },
|
|
643
|
-
mutationCache: r,
|
|
644
|
-
queryCache: n
|
|
645
|
-
});
|
|
646
|
-
this.queryCache = n, this.mutationCache = r, this.queryClient = a;
|
|
934
|
+
getValidQueryData(e) {
|
|
935
|
+
if (!this.queryCache.find({ queryKey: e })?.state?.isInvalidated) return this.queryClient.getQueryData(e);
|
|
647
936
|
}
|
|
648
937
|
async invalidateQueryKeys(e) {
|
|
649
938
|
for (let t of this.getUniqueQueryKeys(e ?? [])) await this.queryClient.cancelQueries({ queryKey: t }), await this.queryClient.invalidateQueries({ queryKey: t });
|
|
@@ -658,10 +947,11 @@ var k = class extends d {
|
|
|
658
947
|
let r = [...t];
|
|
659
948
|
return this.getDirectQueryKeyDependents(e).forEach((t) => {
|
|
660
949
|
r.includes(t) || (r.push(t), r.push(...this.getQueryKeyDependenciesInternal(t, [...r], n ?? e)));
|
|
661
|
-
}), (0,
|
|
950
|
+
}), (0, ke.default)((0, Ae.default)(r), (e) => e !== n);
|
|
662
951
|
}
|
|
663
952
|
};
|
|
953
|
+
$ = Q = ae([oe()], $);
|
|
664
954
|
//#endregion
|
|
665
|
-
export {
|
|
955
|
+
export { W as a, G as i, Z as n, Y as r, $ as t };
|
|
666
956
|
|
|
667
957
|
//# sourceMappingURL=QueryClientService.js.map
|