@gen-epix/ui-client-common 4.3.1 → 4.4.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/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 +406 -117
- 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/containers/UiClientCommonContainer/UiClientCommonContainer.d.ts +5 -0
- package/dist/classes/containers/UiClientCommonContainer/index.d.ts +1 -0
- package/dist/classes/containers/UiClientCommonContainer/index.js +17 -0
- package/dist/classes/containers/UiClientCommonContainer/index.js.map +1 -0
- 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/AppRouterProvider/AppRouterProvider.d.ts +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/AuthenticationWrapper.d.ts +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/RouterRoot.d.ts +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/BooleanFilterField.d.ts +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/DateFilterField.d.ts +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/GeoFilterField.d.ts +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/MultiSelectFilterField.d.ts +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/NumberRangeFilterField.d.ts +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/TextFilterField.d.ts +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/ApplicationBar.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +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/ApplicationFooter.d.ts +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +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/Breadcrumbs.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/GenericErrorMessage.d.ts +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/NavLink.d.ts +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 +2 -2
- package/dist/components/ui/Notifications/NotificationsDrawer.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/OutageItem.d.ts +1 -1
- package/dist/components/ui/OutageList/OutageList.d.ts +1 -1
- package/dist/components/ui/OutageList/OutageSection.d.ts +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 +2 -2
- package/dist/components/ui/Sidebar/SidebarMenu.d.ts +1 -1
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +2 -2
- package/dist/components/ui/Sidebar/index.js +45 -45
- package/dist/components/ui/Sidebar/index.js.map +1 -1
- package/dist/components/ui/SortableList/SortableList.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableListItem.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableOverlay.d.ts +1 -1
- package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +1 -1
- package/dist/components/ui/Table/Table.d.ts +2 -2
- package/dist/components/ui/Table/TableActionsCell.d.ts +2 -2
- package/dist/components/ui/Table/TableCaption.d.ts +1 -1
- package/dist/components/ui/Table/TableCell.d.ts +2 -2
- package/dist/components/ui/Table/TableCellAsyncContent.d.ts +1 -1
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +2 -2
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +2 -2
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +1 -1
- package/dist/components/ui/Table/TableFilter.d.ts +3 -3
- package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +2 -2
- package/dist/components/ui/Table/TableHeader.d.ts +1 -1
- package/dist/components/ui/Table/TableHeaderCell.d.ts +2 -2
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +3 -3
- package/dist/components/ui/Table/TableMenu.d.ts +1 -1
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +2 -2
- package/dist/components/ui/Table/TableSidebarMenu.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/UserInactivityConfirmation.d.ts +1 -1
- package/dist/components/ui/UserInactivityConfirmation/index.js +26 -25
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
- 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 +3 -3
- 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/hoc/withPermissions/withPermissions.d.ts +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/api.models.d.ts +16 -0
- package/dist/models/api.models.js +6 -0
- package/dist/models/api.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/AcceptInvitationPage.d.ts +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +40 -39
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
- package/dist/pages/AdminPage/AdminPage.d.ts +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 +2 -2
- package/dist/pages/ChooseIdentityProviderPage/index.js +38 -37
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
- package/dist/pages/CrudPage/CrudPage.d.ts +7 -7
- 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/ErrorPage.d.ts +1 -1
- package/dist/pages/ErrorPage/index.js.map +1 -1
- package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -1
- package/dist/pages/IdentifierIssuersAdminPage/index.js +41 -40
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +58 -57
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationContactsAdminPage/index.js +49 -48
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +44 -43
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationsAdminPage/index.js +57 -56
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -1
- package/dist/pages/OutagesAdminPage/index.js +63 -62
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -1
- package/dist/pages/PostLoginPage/index.js +14 -13
- package/dist/pages/PostLoginPage/index.js.map +1 -1
- package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -1
- package/dist/pages/PostLogoutPage/index.js +19 -18
- package/dist/pages/PostLogoutPage/index.js.map +1 -1
- package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -1
- package/dist/pages/RouterErrorPage/index.js.map +1 -1
- package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -1
- package/dist/pages/UserInvitationsAdminPage/index.js +1 -2
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +2 -2
- 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/TableStoreContextProvider.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/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 +93 -87
- 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/api.d.ts +0 -9
- package/dist/models/table.js.map +0 -1
- package/dist/models/theme.js +0 -0
- /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/{auth.d.ts → auth.models.d.ts} +0 -0
- /package/dist/models/{api.js → auth.models.js} +0 -0
- /package/dist/models/{config.d.ts → config.models.d.ts} +0 -0
- /package/dist/models/{auth.js → config.models.js} +0 -0
- /package/dist/models/{config.js → data-hooks.models.js} +0 -0
- /package/dist/models/{data.d.ts → data.models.d.ts} +0 -0
- /package/dist/models/{data.js → data.models.js} +0 -0
- /package/dist/models/{filter.d.ts → filter.models.d.ts} +0 -0
- /package/dist/models/{dataHooks.js → filter.models.js} +0 -0
- /package/dist/models/{notification.d.ts → notification.models.d.ts} +0 -0
- /package/dist/models/{filter.js → notification.models.js} +0 -0
- /package/dist/models/{outage.d.ts → outage.models.d.ts} +0 -0
- /package/dist/models/{notification.js → outage.models.js} +0 -0
- /package/dist/models/{reactRouter.d.ts → react-router.models.d.ts} +0 -0
- /package/dist/models/{outage.js → react-router.models.js} +0 -0
- /package/dist/models/{theme.d.ts → theme.models.d.ts} +0 -0
- /package/dist/models/{reactRouter.js → theme.models.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/app/AppRouterProvider/AppRouterProvider.tsx","../../../../src/components/app/App/App.tsx"],"sourcesContent":["import { RouterProvider } from 'react-router-dom';\n\nimport { RouterService } from '../../../classes/services/RouterService';\n\nexport const AppRouterProvider = () => <RouterProvider router={
|
|
1
|
+
{"version":3,"file":"index.js","names":["rootContainer","container","rootContainer","QueryClientService","AppRouterProvider","RouterProvider","container","RouterService","App","container$1","config","resolveConfig","authenticationService","AuthenticationService","logService","LogService","touchIconUrl","api","API_BASE_TOKEN","BackendVersionService","queryClientService","emotionCache","EmotionCacheService","UiClientCommonConfigContextProvider","QueryClientProvider","CacheProvider","ThemeProvider","CssBaseline","ErrorBoundary","ErrorPage","ApplicationBootstrapWithoutAuthorization"],"sources":["../../../../src/components/app/AppRouterProvider/AppRouterProvider.tsx","../../../../src/components/app/App/App.tsx"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport { RouterProvider } from 'react-router-dom';\n\nimport { RouterService } from '../../../classes/services/RouterService';\n\nexport const AppRouterProvider = () => <RouterProvider router={rootContainer.resolve(RouterService).router} />;\n","import { container as rootContainer } from 'tsyringe';\nimport { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport { ErrorBoundary } from 'react-error-boundary';\n\nimport { API_BASE_TOKEN } from '../../../models/api.models';\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport { AuthenticationService } from '../../../classes/services/AuthenticationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { ApplicationBootstrapWithoutAuthorization } from '../ApplicationBootstrapWithoutAuthorization';\nimport { AppRouterProvider } from '../AppRouterProvider/AppRouterProvider';\nimport { UiClientCommonConfigContextProvider } from '../../../context/uiClientCommonConfigContext';\nimport type { UiClientCommonContainer } from '../../../classes/containers/UiClientCommonContainer';\nimport { resolveConfig } from '../../../classes/containers/UiClientCommonContainer';\nimport type { ConfigBase } from '../../../models/config.models';\n\nexport type AppProps = {\n readonly container: UiClientCommonContainer;\n};\n\nexport const App = ({ container }: AppProps) => {\n const config = resolveConfig<ConfigBase>(container);\n\n const authenticationService = rootContainer.resolve(AuthenticationService);\n const logService = rootContainer.resolve(LogService);\n const touchIconUrl = config.getTouchIconUrl();\n if (touchIconUrl) {\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n const api = rootContainer.resolve(API_BASE_TOKEN);\n api.baseUrl = config.getAPIBaseUrl();\n api.defaultRequestTimeout = config.defaultRequestTimeout;\n api.onRequest = [\n authenticationService.onRequest.bind(authenticationService),\n logService.onRequest.bind(logService),\n ];\n api.onResponseFulfilled = [\n logService.onResponseFulfilled.bind(logService),\n rootContainer.resolve(BackendVersionService).onResponseFulfilled.bind(rootContainer.resolve(BackendVersionService)),\n ];\n api.onResponseRejected = [\n logService.onResponseRejected.bind(logService),\n authenticationService.onResponseRejected.bind(authenticationService),\n ];\n\n const queryClientService = container.resolve(QueryClientService);\n const emotionCache = container.resolve(EmotionCacheService).emotionCache;\n\n return (\n <UiClientCommonConfigContextProvider container={container}>\n <QueryClientProvider client={queryClientService.queryClient}>\n <CacheProvider value={emotionCache}>\n <ThemeProvider theme={config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <ApplicationBootstrapWithoutAuthorization>\n <AppRouterProvider />\n </ApplicationBootstrapWithoutAuthorization>\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n </QueryClientProvider>\n </UiClientCommonConfigContextProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,IAAaI,UAA0B,kBAACC,GAAD,EAAgB,QAAQL,EAAc,QAAQO,CAAa,CAAC,CAAC,OAAS,CAAA,GCsBhGC,KAAO,EAAE,WAAAC,QAA0B;CAC9C,IAAMC,IAASC,EAA0BV,CAAS,GAE5CW,IAAwBV,EAAc,QAAQW,CAAqB,GACnEC,IAAaZ,EAAc,QAAQa,CAAU,GAC7CC,IAAeN,EAAO,gBAAgB;CAC5C,AAAIM,KACF,SAAS,cAAc,oBAAkB,CAAC,EAAE,aAAa,QAAQA,CAAY;CAE/E,IAAMC,IAAMf,EAAc,QAAQgB,CAAc;CAWhD,AAVA,EAAI,UAAUR,EAAO,cAAc,GACnC,EAAI,wBAAwBA,EAAO,uBACnC,EAAI,YAAY,CACdE,EAAsB,UAAU,KAAKA,CAAqB,GAC1DE,EAAW,UAAU,KAAKA,CAAU,CACtC,GACA,EAAI,sBAAsB,CACxBA,EAAW,oBAAoB,KAAKA,CAAU,GAC9CZ,EAAc,QAAQiB,CAAqB,CAAC,CAAC,oBAAoB,KAAKjB,EAAc,QAAQiB,CAAqB,CAAC,CACpH,GACA,EAAI,qBAAqB,CACvBL,EAAW,mBAAmB,KAAKA,CAAU,GAC7CF,EAAsB,mBAAmB,KAAKA,CAAqB,CACrE;CAEA,IAAMQ,IAAqBnB,EAAU,QAAQE,CAAkB,GACzDkB,IAAepB,EAAU,QAAQqB,CAAmB,CAAC,CAAC;CAE5D,OACE,kBAACC,GAAD;EAAgD,WAAAd;EAC9C,UAAA,kBAACe,GAAD;GAAqB,QAAQJ,EAAmB;GAC9C,UAAA,kBAACK,GAAD;IAAe,OAAOJ;IACpB,UAAA,kBAACK,GAAD;KAAe,OAAOhB,EAAO;KAA7B,UAAA,CACE,kBAACiB,GAAD,CAAc,CAAA,GACd,kBAACC,GAAD;MAAe,mBAAmBC;MAChC,UAAA,kBAACC,GAAD,EAAA,UACE,kBAAC1B,GAAD,CAAoB,CAAA,EACoB,CAAA;KAC7B,CAAA,CACF;;GACF,CAAA;EACI,CAAA;CACc,CAAA;AAEzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppRouterProvider: () => import(
|
|
1
|
+
export declare const AppRouterProvider: () => import('react').JSX.Element;
|
|
@@ -1,81 +1,82 @@
|
|
|
1
1
|
import { t as e } from "../../../_chunks/OutageUtil.js";
|
|
2
|
-
import { t } from "../../../_chunks/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { COMMON_QUERY_KEY as c } from "../../../constants/query.js";
|
|
2
|
+
import { t } from "../../../_chunks/QueryClientService.js";
|
|
3
|
+
import { t as n } from "../../../_chunks/useQueryMemo.js";
|
|
4
|
+
import { t as r } from "../../../_chunks/react.js";
|
|
5
|
+
import { outagesStore as i } from "../../../stores/outagesStore/index.js";
|
|
6
|
+
import { API_SYSTEM_TOKEN as a } from "../../../models/api.models.js";
|
|
7
|
+
import { PageContainer as o } from "../../ui/PageContainer/index.js";
|
|
8
|
+
import { ResponseHandler as s } from "../../ui/ResponseHandler/index.js";
|
|
9
|
+
import { COMMON_QUERY_KEY as c } from "../../../constants/query.constants.js";
|
|
10
10
|
import { t as l } from "../../../_chunks/OutageList.js";
|
|
11
11
|
import "../../ui/OutageList/index.js";
|
|
12
12
|
import { WindowService as u } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
13
|
-
import {
|
|
14
|
-
import { useCallback as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
13
|
+
import { container as d } from "tsyringe";
|
|
14
|
+
import { useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
|
|
15
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
16
|
+
import { Box as v, Button as y } from "@mui/material";
|
|
17
|
+
import { useTranslation as b } from "react-i18next";
|
|
18
|
+
import { TestIdUtil as x } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
19
|
+
import { useArray as S } from "@gen-epix/ui-core/hooks/useArray";
|
|
19
20
|
//#region src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx
|
|
20
|
-
var
|
|
21
|
-
let { t:
|
|
21
|
+
var C = ({ children: C }) => {
|
|
22
|
+
let { t: w } = b(), T = r(i, (e) => e.setCategorizedOutages), [E, D] = h(!1), [O, k] = h(!1), A = n({
|
|
22
23
|
gcTime: Infinity,
|
|
23
|
-
queryFn: async ({ signal: e }) => (await
|
|
24
|
-
queryKey:
|
|
24
|
+
queryFn: async ({ signal: e }) => (await d.resolve(a).retrieveOutages({ signal: e })).data,
|
|
25
|
+
queryKey: d.resolve(t).getGenericKey(c.OUTAGES),
|
|
25
26
|
refetchInterval: 3e5,
|
|
26
27
|
staleTime: Infinity
|
|
27
|
-
}),
|
|
28
|
+
}), j = S([A]), M = m(() => e.getCategorizedOutages(A.data ?? []), [A.data]), N = f(() => {
|
|
28
29
|
u.getInstance().window.location.reload();
|
|
29
|
-
}, []),
|
|
30
|
-
|
|
30
|
+
}, []), P = f(() => {
|
|
31
|
+
D(!0);
|
|
31
32
|
}, []);
|
|
32
|
-
return
|
|
33
|
-
|
|
33
|
+
return p(() => {
|
|
34
|
+
M && T(M);
|
|
34
35
|
let e = u.getInstance().window.setTimeout(() => {
|
|
35
|
-
|
|
36
|
+
k(!0);
|
|
36
37
|
}, 5e3);
|
|
37
38
|
return () => {
|
|
38
39
|
u.getInstance().window.clearTimeout(e);
|
|
39
40
|
};
|
|
40
|
-
}, [
|
|
41
|
+
}, [M, T]), !E && !A.isLoading && !A.error && M.activeOutages?.length > 0 ? /* @__PURE__ */ _(o, {
|
|
41
42
|
singleAction: !0,
|
|
42
|
-
testIdAttributes:
|
|
43
|
-
title:
|
|
44
|
-
children: [/* @__PURE__ */
|
|
45
|
-
activeOutages:
|
|
46
|
-
soonActiveOutages:
|
|
47
|
-
visibleOutages:
|
|
48
|
-
}), /* @__PURE__ */ v
|
|
43
|
+
testIdAttributes: x.createAttributes("OutagePage"),
|
|
44
|
+
title: w`Outages`,
|
|
45
|
+
children: [/* @__PURE__ */ g(l, {
|
|
46
|
+
activeOutages: M.activeOutages,
|
|
47
|
+
soonActiveOutages: M.soonActiveOutages,
|
|
48
|
+
visibleOutages: M.visibleOutages
|
|
49
|
+
}), /* @__PURE__ */ _(v, {
|
|
49
50
|
sx: {
|
|
50
51
|
display: "flex",
|
|
51
52
|
gap: 1,
|
|
52
53
|
justifyContent: "flex-end"
|
|
53
54
|
},
|
|
54
|
-
children: [/* @__PURE__ */
|
|
55
|
-
disabled: !
|
|
56
|
-
onClick:
|
|
55
|
+
children: [/* @__PURE__ */ g(y, {
|
|
56
|
+
disabled: !O,
|
|
57
|
+
onClick: P,
|
|
57
58
|
variant: "outlined",
|
|
58
|
-
children:
|
|
59
|
-
}), /* @__PURE__ */
|
|
60
|
-
disabled: !
|
|
61
|
-
onClick:
|
|
59
|
+
children: w`Continue anyway`
|
|
60
|
+
}), /* @__PURE__ */ g(y, {
|
|
61
|
+
disabled: !O,
|
|
62
|
+
onClick: N,
|
|
62
63
|
variant: "contained",
|
|
63
|
-
children:
|
|
64
|
+
children: w`Retry`
|
|
64
65
|
})]
|
|
65
66
|
})]
|
|
66
|
-
}) :
|
|
67
|
+
}) : A.error || A.isLoading ? /* @__PURE__ */ g(o, {
|
|
67
68
|
ignorePageEvent: !0,
|
|
68
69
|
singleAction: !0,
|
|
69
|
-
testIdAttributes:
|
|
70
|
-
title:
|
|
71
|
-
children: /* @__PURE__ */
|
|
72
|
-
loadables:
|
|
73
|
-
loadingMessage:
|
|
74
|
-
children:
|
|
70
|
+
testIdAttributes: x.createAttributes("OutagesLoadingPage"),
|
|
71
|
+
title: w`Outages`,
|
|
72
|
+
children: /* @__PURE__ */ g(s, {
|
|
73
|
+
loadables: j,
|
|
74
|
+
loadingMessage: w`Loading`,
|
|
75
|
+
children: C
|
|
75
76
|
})
|
|
76
|
-
}) :
|
|
77
|
+
}) : C;
|
|
77
78
|
};
|
|
78
79
|
//#endregion
|
|
79
|
-
export {
|
|
80
|
+
export { C as ApplicationBootstrapWithAuthentication };
|
|
80
81
|
|
|
81
82
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx"],"sourcesContent":["import {\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\nimport {\n Box,\n Button,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\n\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { outagesStore } from '../../../stores/outagesStore';\nimport { OutageUtil } from '../../../utils/OutageUtil';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { OutageList } from '../../ui/OutageList';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query';\
|
|
1
|
+
{"version":3,"file":"index.js","names":["rootContainer","OutageUtil","useQueryMemo","useStore","OutageList","ApplicationBootstrapWithAuthentication","useTranslation","setCategorizedOutages","outagesStore","state","shouldContinue","setShouldContinue","useState","buttonsEnabled","setButtonsEnabled","outagesQuery","container","API_SYSTEM_TOKEN","QueryClientService","COMMON_QUERY_KEY","outagesLoadables","useArray","categorizedOutages","useMemo","onRetryButtonClick","useCallback","onContinuButtonClick","useEffect","timeout","WindowService","PageContainer","TestIdUtil","Box","Button","ResponseHandler","children"],"sources":["../../../../src/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.tsx"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport {\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\nimport {\n Box,\n Button,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\n\nimport { API_SYSTEM_TOKEN } from '../../../models/api.models';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { outagesStore } from '../../../stores/outagesStore';\nimport { OutageUtil } from '../../../utils/OutageUtil';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { OutageList } from '../../ui/OutageList';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\n\nexport const ApplicationBootstrapWithAuthentication = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n\n const setCategorizedOutages = useStore(outagesStore, (state) => state.setCategorizedOutages);\n const [shouldContinue, setShouldContinue] = useState(false);\n const [buttonsEnabled, setButtonsEnabled] = useState(false);\n\n const outagesQuery = useQueryMemo({\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await rootContainer.resolve(API_SYSTEM_TOKEN).retrieveOutages({ signal })).data,\n queryKey: rootContainer.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.OUTAGES),\n refetchInterval: 5 * 60 * 1000,\n staleTime: Infinity,\n });\n\n const outagesLoadables = useArray([outagesQuery]);\n\n const categorizedOutages = useMemo(() => {\n return OutageUtil.getCategorizedOutages(outagesQuery.data ?? []);\n }, [outagesQuery.data]);\n\n const onRetryButtonClick = useCallback(() => {\n WindowService.getInstance().window.location.reload();\n }, []);\n\n const onContinuButtonClick = useCallback(() => {\n setShouldContinue(true);\n }, []);\n\n useEffect(() => {\n if (categorizedOutages) {\n setCategorizedOutages(categorizedOutages);\n }\n\n const timeout = WindowService.getInstance().window.setTimeout(() => {\n setButtonsEnabled(true);\n }, 5000);\n\n return () => {\n WindowService.getInstance().window.clearTimeout(timeout);\n };\n }, [categorizedOutages, setCategorizedOutages]);\n\n const shouldShowOutagePage = !shouldContinue && !outagesQuery.isLoading && !outagesQuery.error && categorizedOutages.activeOutages?.length > 0;\n\n if (shouldShowOutagePage) {\n return (\n <PageContainer\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagePage')}\n title={t`Outages`}\n >\n <OutageList\n activeOutages={categorizedOutages.activeOutages}\n soonActiveOutages={categorizedOutages.soonActiveOutages}\n visibleOutages={categorizedOutages.visibleOutages}\n />\n <Box\n sx={{\n display: 'flex',\n gap: 1,\n justifyContent: 'flex-end',\n }}\n >\n <Button\n disabled={!buttonsEnabled}\n onClick={onContinuButtonClick}\n variant={'outlined'}\n >\n {t`Continue anyway`}\n </Button>\n <Button\n disabled={!buttonsEnabled}\n onClick={onRetryButtonClick}\n variant={'contained'}\n >\n {t`Retry`}\n </Button>\n </Box>\n </PageContainer>\n );\n }\n if (outagesQuery.error || outagesQuery.isLoading) {\n return (\n <PageContainer\n ignorePageEvent\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('OutagesLoadingPage')}\n title={t`Outages`}\n >\n <ResponseHandler\n loadables={outagesLoadables}\n loadingMessage={t`Loading`}\n >\n {children}\n </ResponseHandler>\n </PageContainer>\n );\n\n }\n\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgCA,IAAaK,KAA0C,EAAE,kBAA6C;CACpG,IAAM,EAAE,SAAMC,EAAe,GAEvBC,IAAwBJ,EAASK,IAAe,MAAUC,EAAM,qBAAqB,GACrF,CAACC,GAAgBC,KAAqBC,EAAS,EAAK,GACpD,CAACC,GAAgBC,KAAqBF,EAAS,EAAK,GAEpDG,IAAeb,EAAa;EAChC,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMF,EAAc,QAAQiB,CAAgB,CAAC,CAAC,gBAAgB,EAAE,UAAO,CAAC,EAAA,CAAG;EAC3G,UAAUjB,EAAc,QAAQkB,CAAkB,CAAC,CAAC,cAAcC,EAAiB,OAAO;EAC1F,iBAAiB;EACjB,WAAW;CACb,CAAC,GAEKC,IAAmBC,EAAS,CAACN,CAAY,CAAC,GAE1CO,IAAqBC,QAClBtB,EAAW,sBAAsBc,EAAa,QAAQ,CAAC,CAAC,GAC9D,CAACA,EAAa,IAAI,CAAC,GAEhBS,IAAqBC,QAAkB;EAC3C,EAAc,YAAY,CAAC,CAAC,OAAO,SAAS,OAAO;CACrD,GAAG,CAAC,CAAC,GAECC,IAAuBD,QAAkB;EAC7C,EAAkB,EAAI;CACxB,GAAG,CAAC,CAAC;CA0EL,OAxEAE,QAAgB;EACd,AAAIL,KACFf,EAAsBe,CAAkB;EAG1C,IAAMM,IAAUC,EAAc,YAAY,CAAC,CAAC,OAAO,iBAAiB;GAClE,EAAkB,EAAI;EACxB,GAAG,GAAI;EAEP,aAAa;GACX,EAAc,YAAY,CAAC,CAAC,OAAO,aAAaD,CAAO;EACzD;CACF,GAAG,CAACN,GAAoBf,CAAqB,CAAC,GAEjB,CAACG,KAAkB,CAACK,EAAa,aAAa,CAACA,EAAa,SAASO,EAAmB,eAAe,SAAS,IAIzI,kBAACQ,GAAD;EACE,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,YAAY;EAC1D,OAAO,CAAC;EAHV,UAAA,CAKE,kBAAC3B,GAAD;GACE,eAAekB,EAAmB;GAClC,mBAAmBA,EAAmB;GACtC,gBAAgBA,EAAmB;EACpC,CAAA,GACD,kBAACU,GAAD;GACE,IAAI;IACF,SAAS;IACT,KAAK;IACL,gBAAgB;GAClB;GALF,UAAA,CAOE,kBAACC,GAAD;IACE,UAAU,CAACpB;IACX,SAASa;IACT,SAAS;IAER,UAAA,CAAC;GACI,CAAA,GACR,kBAACO,GAAD;IACE,UAAU,CAACpB;IACX,SAASW;IACT,SAAS;IAER,UAAA,CAAC;GACI,CAAA,CACL;EACQ,CAAA,CAAA;MAGfT,EAAa,SAASA,EAAa,YAEnC,kBAACe,GAAD;EACE,iBAAA;EACA,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,oBAAoB;EAClE,OAAO,CAAC;EAER,UAAA,kBAACG,GAAD;GACE,WAAWd;GACX,gBAAgB,CAAC;GAEhB;EACc,CAAA;CACJ,CAAA,IAKZe;AACT"}
|
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { COMMON_QUERY_KEY as a } from "../../../constants/query.js";
|
|
1
|
+
import { t as e } from "../../../_chunks/QueryClientService.js";
|
|
2
|
+
import { t } from "../../../_chunks/useQueryMemo.js";
|
|
3
|
+
import { API_SYSTEM_TOKEN as n } from "../../../models/api.models.js";
|
|
4
|
+
import { PageContainer as r } from "../../ui/PageContainer/index.js";
|
|
5
|
+
import { ResponseHandler as i } from "../../ui/ResponseHandler/index.js";
|
|
6
|
+
import { COMMON_QUERY_KEY as a } from "../../../constants/query.constants.js";
|
|
7
7
|
import { FeatureFlagsService as o } from "../../../classes/services/FeatureFlagsService/index.js";
|
|
8
8
|
import { I18nService as s } from "../../../classes/services/I18nService/index.js";
|
|
9
9
|
import { WindowService as c } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
10
|
+
import { container as l } from "tsyringe";
|
|
11
|
+
import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
|
|
12
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { useTranslation as g } from "react-i18next";
|
|
14
|
+
import { TestIdUtil as _ } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
15
|
+
import { Spinner as v } from "@gen-epix/ui-core-components/components/Spinner";
|
|
16
|
+
import { useArray as y } from "@gen-epix/ui-core/hooks/useArray";
|
|
17
|
+
import { Confirmation as b } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
17
18
|
//#region src/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.tsx
|
|
18
|
-
var
|
|
19
|
-
let { t:
|
|
20
|
-
|
|
21
|
-
let e =
|
|
22
|
-
|
|
19
|
+
var x = ({ children: x }) => {
|
|
20
|
+
let { t: S } = g(), C = f(null), w = f(null), [T, E] = p(!1);
|
|
21
|
+
d(() => {
|
|
22
|
+
let e = l.resolve(s), t = (e) => {
|
|
23
|
+
w.current = e, C.current?.open();
|
|
23
24
|
};
|
|
24
25
|
return e.addEventListener("onUserLanguageChange", t), () => {
|
|
25
26
|
e.removeEventListener("onUserLanguageChange", t);
|
|
26
27
|
};
|
|
27
28
|
}, []);
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
}, []),
|
|
29
|
+
let D = u(async () => {
|
|
30
|
+
w.current && (E(!0), await l.resolve(s).switchLanguageConfig(w.current), c.getInstance().window.location.reload());
|
|
31
|
+
}, []), O = t({
|
|
31
32
|
gcTime: Infinity,
|
|
32
|
-
queryFn: async ({ signal: e }) => (await
|
|
33
|
-
queryKey:
|
|
33
|
+
queryFn: async ({ signal: e }) => (await l.resolve(n).retrieveFeatureFlags({ signal: e })).data,
|
|
34
|
+
queryKey: l.resolve(e).getGenericKey(a.FEATURE_FLAGS),
|
|
34
35
|
staleTime: Infinity
|
|
35
36
|
});
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
return
|
|
37
|
+
O.data && (l.resolve(o).featureFlags = O.data.feature_flags);
|
|
38
|
+
let k = y([O]);
|
|
39
|
+
return T ? /* @__PURE__ */ m(r, {
|
|
39
40
|
singleAction: !0,
|
|
40
|
-
testIdAttributes:
|
|
41
|
-
title:
|
|
42
|
-
children: /* @__PURE__ */
|
|
41
|
+
testIdAttributes: _.createAttributes("LanguageChangingPage"),
|
|
42
|
+
title: S`Changing language`,
|
|
43
|
+
children: /* @__PURE__ */ m(v, {
|
|
43
44
|
inline: !0,
|
|
44
|
-
label:
|
|
45
|
+
label: S`Changing language...`
|
|
45
46
|
})
|
|
46
|
-
}) : /* @__PURE__ */
|
|
47
|
-
loadables:
|
|
48
|
-
loadingMessage:
|
|
49
|
-
children: [
|
|
50
|
-
body:
|
|
51
|
-
cancelLabel:
|
|
52
|
-
confirmLabel:
|
|
47
|
+
}) : /* @__PURE__ */ h(i, {
|
|
48
|
+
loadables: k,
|
|
49
|
+
loadingMessage: S`Loading`,
|
|
50
|
+
children: [x, /* @__PURE__ */ m(b, {
|
|
51
|
+
body: S`Changing language will reload the application. Do you want to continue?`,
|
|
52
|
+
cancelLabel: S`Cancel`,
|
|
53
|
+
confirmLabel: S`Change language`,
|
|
53
54
|
maxWidth: "xs",
|
|
54
|
-
onConfirm:
|
|
55
|
-
ref:
|
|
56
|
-
title:
|
|
55
|
+
onConfirm: D,
|
|
56
|
+
ref: C,
|
|
57
|
+
title: S`Are you sure?`
|
|
57
58
|
})]
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
61
|
//#endregion
|
|
61
|
-
export {
|
|
62
|
+
export { x as ApplicationBootstrapWithoutAuthorization };
|
|
62
63
|
|
|
63
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.tsx"],"sourcesContent":["import {\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\nimport type { ConfirmationRefMethods } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Confirmation } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Spinner } from '@gen-epix/ui-core-components/components/Spinner';\n\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { FeatureFlagsService } from '../../../classes/services/FeatureFlagsService';\nimport { I18nService } from '../../../classes/services/I18nService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query';\
|
|
1
|
+
{"version":3,"file":"index.js","names":["rootContainer","QueryClientService","ApplicationBootstrapWithoutAuthorization","useTranslation","confirmationRef","useRef","newLanguageCodeRef","isLanguageChanging","setIsLanguageChanging","useState","i18nService","container","I18nService","callback","code","onLanguageChangeConfirm","useCallback","WindowService","featureFlagsQuery","useQueryMemo","API_SYSTEM_TOKEN","COMMON_QUERY_KEY","FeatureFlagsService","loadables","useArray","PageContainer","TestIdUtil","Spinner","ResponseHandler","children","Confirmation"],"sources":["../../../../src/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.tsx"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport {\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport { useArray } from '@gen-epix/ui-core/hooks/useArray';\nimport type { ConfirmationRefMethods } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Confirmation } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Spinner } from '@gen-epix/ui-core-components/components/Spinner';\n\nimport { API_SYSTEM_TOKEN } from '../../../models/api.models';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { FeatureFlagsService } from '../../../classes/services/FeatureFlagsService';\nimport { I18nService } from '../../../classes/services/I18nService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { PageContainer } from '../../ui/PageContainer';\nimport { ResponseHandler } from '../../ui/ResponseHandler';\nimport { COMMON_QUERY_KEY } from '../../../constants/query.constants';\n\n\nexport const ApplicationBootstrapWithoutAuthorization = ({ children }: PropsWithChildren): ReactNode => {\n const { t } = useTranslation();\n\n const confirmationRef = useRef<ConfirmationRefMethods>(null);\n const newLanguageCodeRef = useRef<string>(null);\n const [isLanguageChanging, setIsLanguageChanging] = useState(false);\n\n useEffect(() => {\n const i18nService = rootContainer.resolve(I18nService);\n const callback = (code: string) => {\n newLanguageCodeRef.current = code;\n confirmationRef.current?.open();\n };\n i18nService.addEventListener('onUserLanguageChange', callback);\n return () => {\n i18nService.removeEventListener('onUserLanguageChange', callback);\n };\n }, []);\n\n const onLanguageChangeConfirm = useCallback(async () => {\n if (newLanguageCodeRef.current) {\n setIsLanguageChanging(true);\n await rootContainer.resolve(I18nService).switchLanguageConfig(newLanguageCodeRef.current);\n WindowService.getInstance().window.location.reload();\n }\n }, []);\n\n const featureFlagsQuery = useQueryMemo({\n gcTime: Infinity,\n queryFn: async ({ signal }) => (await rootContainer.resolve(API_SYSTEM_TOKEN).retrieveFeatureFlags({ signal })).data,\n queryKey: rootContainer.resolve(QueryClientService).getGenericKey(COMMON_QUERY_KEY.FEATURE_FLAGS),\n staleTime: Infinity,\n });\n\n if (featureFlagsQuery.data) {\n rootContainer.resolve(FeatureFlagsService).featureFlags = featureFlagsQuery.data.feature_flags;\n }\n\n const loadables = useArray([featureFlagsQuery]);\n\n if (isLanguageChanging) {\n return (\n <PageContainer\n singleAction\n testIdAttributes={TestIdUtil.createAttributes('LanguageChangingPage')}\n title={t`Changing language`}\n >\n <Spinner\n inline\n label={t`Changing language...`}\n />\n </PageContainer>\n );\n }\n\n\n return (\n <ResponseHandler\n loadables={loadables}\n loadingMessage={t`Loading`}\n >\n {children}\n <Confirmation\n body={t`Changing language will reload the application. Do you want to continue?`}\n cancelLabel={t`Cancel`}\n confirmLabel={t`Change language`}\n maxWidth={'xs'}\n onConfirm={onLanguageChangeConfirm}\n ref={confirmationRef}\n title={t`Are you sure?`}\n />\n </ResponseHandler>\n );\n\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,IAAaE,KAA4C,EAAE,kBAA6C;CACtG,IAAM,EAAE,SAAMC,EAAe,GAEvBC,IAAkBC,EAA+B,IAAI,GACrDC,IAAqBD,EAAe,IAAI,GACxC,CAACE,GAAoBC,KAAyBC,EAAS,EAAK;CAElE,QAAgB;EACd,IAAMC,IAAcV,EAAc,QAAQY,CAAW,GAC/CC,KAAY,MAAiB;GAEjC,AADA,EAAmB,UAAUC,GAC7BV,EAAgB,SAAS,KAAK;EAChC;EAEA,OADAM,EAAY,iBAAiB,wBAAwBG,CAAQ,SAChD;GACX,EAAY,oBAAoB,wBAAwBA,CAAQ;EAClE;CACF,GAAG,CAAC,CAAC;CAEL,IAAME,IAA0BC,EAAY,YAAY;EACtD,AAAIV,EAAmB,YACrBE,EAAsB,EAAI,GAC1B,MAAMR,EAAc,QAAQY,CAAW,CAAC,CAAC,qBAAqBN,EAAmB,OAAO,GACxFW,EAAc,YAAY,CAAC,CAAC,OAAO,SAAS,OAAO;CAEvD,GAAG,CAAC,CAAC,GAECC,IAAoBC,EAAa;EACrC,QAAQ;EACR,SAAS,OAAO,EAAE,iBAAc,MAAMnB,EAAc,QAAQoB,CAAgB,CAAC,CAAC,qBAAqB,EAAE,UAAO,CAAC,EAAA,CAAG;EAChH,UAAUpB,EAAc,QAAQC,CAAkB,CAAC,CAAC,cAAcoB,EAAiB,aAAa;EAChG,WAAW;CACb,CAAC;CAED,AAAIH,EAAkB,SACpB,EAAc,QAAQI,CAAmB,CAAC,CAAC,eAAeJ,EAAkB,KAAK;CAGnF,IAAMK,IAAYC,EAAS,CAACN,CAAiB,CAAC;CAkB9C,OAhBIX,IAEA,kBAACkB,GAAD;EACE,cAAA;EACA,kBAAkBC,EAAW,iBAAiB,sBAAsB;EACpE,OAAO,CAAC;EAER,UAAA,kBAACC,GAAD;GACE,QAAA;GACA,OAAO,CAAC;EACT,CAAA;CACY,CAAA,IAMjB,kBAACC,GAAD;EACa;EACX,gBAAgB,CAAC;EAFnB,UAAA,CAIGC,GACD,kBAACC,GAAD;GACE,MAAM,CAAC;GACP,aAAa,CAAC;GACd,cAAc,CAAC;GACf,UAAU;GACV,WAAWf;GACX,KAAKX;GACL,OAAO,CAAC;EACT,CAAA,CACc;;AAGrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const AuthenticationWrapper: ({ children }: PropsWithChildren) => import(
|
|
2
|
+
export declare const AuthenticationWrapper: ({ children }: PropsWithChildren) => import('react').JSX.Element;
|
|
@@ -1,126 +1,127 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useConfig as e } from "../../../hooks/useConfig/index.js";
|
|
2
2
|
import { PageContainer as t } from "../../ui/PageContainer/index.js";
|
|
3
3
|
import { AuthenticationService as n } from "../../../classes/services/AuthenticationService/index.js";
|
|
4
4
|
import { LogService as r } from "../../../classes/services/LogService/index.js";
|
|
5
5
|
import { ConsentDialog as i } from "../../ui/ConsentDialog/index.js";
|
|
6
6
|
import { WindowService as a } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
7
7
|
import { CommonDbLogLevel as o } from "@gen-epix/api-commondb";
|
|
8
|
-
import {
|
|
9
|
-
import { useCallback as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { container as s } from "tsyringe";
|
|
9
|
+
import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
10
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
11
|
+
import { Box as g, Button as _, Typography as v } from "@mui/material";
|
|
12
|
+
import { useTranslation as y } from "react-i18next";
|
|
13
|
+
import { TestIdUtil as b } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
14
|
+
import { useSubscribable as x } from "@gen-epix/ui-core/hooks/useSubscribable";
|
|
15
|
+
import { Spinner as S } from "@gen-epix/ui-core-components/components/Spinner";
|
|
16
|
+
import { useAuth as C } from "react-oidc-context";
|
|
16
17
|
//#region src/components/app/AuthenticationWrapper/AuthenticationWrapper.tsx
|
|
17
|
-
var
|
|
18
|
-
let { t:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, [
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
25
|
-
|
|
18
|
+
var w = ({ children: w }) => {
|
|
19
|
+
let { t: T } = y(), E = C(), D = e(), O = d(null), [k, A] = f(!D.consentDialog?.getShouldShow()), j = x(s.resolve(n)), M = D.login?.AfterLoginElement;
|
|
20
|
+
l(() => {
|
|
21
|
+
s.resolve(n).authContextProps = E;
|
|
22
|
+
}, [E]), l(() => {
|
|
23
|
+
E.isAuthenticated && !k && O.current.open();
|
|
24
|
+
}, [E.isAuthenticated, k]);
|
|
25
|
+
let N = c(() => {
|
|
26
|
+
s.resolve(r).log([{
|
|
26
27
|
level: o.INFO,
|
|
27
28
|
topic: "CONSENT"
|
|
28
|
-
}]),
|
|
29
|
-
}, []),
|
|
29
|
+
}]), A(!0), O.current.close();
|
|
30
|
+
}, []), P = c(() => {
|
|
30
31
|
(async () => {
|
|
31
32
|
let { hash: e, pathname: t, search: n } = a.getInstance().window.location, r = { preLoginLocation: {
|
|
32
33
|
hash: e,
|
|
33
34
|
pathname: t,
|
|
34
35
|
search: n
|
|
35
36
|
} };
|
|
36
|
-
await
|
|
37
|
+
await E.signinRedirect({ state: r });
|
|
37
38
|
})();
|
|
38
|
-
}, [
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
n.clearStaleState(),
|
|
42
|
-
}, []),
|
|
43
|
-
/* @__PURE__ */ g
|
|
39
|
+
}, [E]), F = c(() => {
|
|
40
|
+
P();
|
|
41
|
+
}, [P]), I = c(() => {
|
|
42
|
+
n.clearStaleState(), s.resolve(n).next(void 0);
|
|
43
|
+
}, []), L = u(() => (/* @__PURE__ */ new Date()).getTime(), []), R = u(() => /* @__PURE__ */ h(p, { children: [
|
|
44
|
+
/* @__PURE__ */ m(g, {
|
|
44
45
|
sx: {
|
|
45
46
|
marginY: 2,
|
|
46
47
|
textAlign: "center"
|
|
47
48
|
},
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ m(_, {
|
|
49
50
|
color: "primary",
|
|
50
|
-
"data-name":
|
|
51
|
-
onClick:
|
|
51
|
+
"data-name": j.name,
|
|
52
|
+
onClick: F,
|
|
52
53
|
variant: "contained",
|
|
53
|
-
children:
|
|
54
|
+
children: j.label
|
|
54
55
|
})
|
|
55
56
|
}),
|
|
56
|
-
/* @__PURE__ */ g
|
|
57
|
+
/* @__PURE__ */ m(g, {
|
|
57
58
|
sx: {
|
|
58
59
|
marginY: 2,
|
|
59
60
|
textAlign: "center"
|
|
60
61
|
},
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ m(_, {
|
|
62
63
|
color: "primary",
|
|
63
|
-
onClick:
|
|
64
|
+
onClick: I,
|
|
64
65
|
variant: "outlined",
|
|
65
|
-
children:
|
|
66
|
+
children: T`Choose a different identity provider`
|
|
66
67
|
})
|
|
67
68
|
}),
|
|
68
|
-
|
|
69
|
+
M && /* @__PURE__ */ m(M, {})
|
|
69
70
|
] }), [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
j,
|
|
72
|
+
I,
|
|
73
|
+
F,
|
|
74
|
+
T,
|
|
75
|
+
M
|
|
75
76
|
]);
|
|
76
|
-
if (
|
|
77
|
+
if (E.activeNavigator || E.isLoading) return /* @__PURE__ */ m(t, {
|
|
77
78
|
ignorePageEvent: !0,
|
|
78
79
|
singleAction: !0,
|
|
79
|
-
testIdAttributes:
|
|
80
|
-
title:
|
|
81
|
-
children: /* @__PURE__ */
|
|
80
|
+
testIdAttributes: b.createAttributes("RedirectingPage"),
|
|
81
|
+
title: T`Redirecting`,
|
|
82
|
+
children: /* @__PURE__ */ m(S, { label: T`Redirecting` })
|
|
82
83
|
});
|
|
83
|
-
if (
|
|
84
|
-
detail: { error:
|
|
84
|
+
if (E.error) return n.clearStaleState(), s.resolve(r).log([{
|
|
85
|
+
detail: { error: E.error },
|
|
85
86
|
level: o.ERROR,
|
|
86
87
|
topic: "Authentication Error"
|
|
87
|
-
}]), /* @__PURE__ */
|
|
88
|
+
}]), /* @__PURE__ */ h(t, {
|
|
88
89
|
singleAction: !0,
|
|
89
|
-
testIdAttributes:
|
|
90
|
-
title:
|
|
91
|
-
children: [/* @__PURE__ */
|
|
90
|
+
testIdAttributes: b.createAttributes("LoginPageSessionExpired"),
|
|
91
|
+
title: T`Login`,
|
|
92
|
+
children: [/* @__PURE__ */ m(v, {
|
|
92
93
|
component: "p",
|
|
93
94
|
sx: { textAlign: "center" },
|
|
94
|
-
children:
|
|
95
|
-
}),
|
|
95
|
+
children: T`We could not log you in, or your session has expired.`
|
|
96
|
+
}), R]
|
|
96
97
|
});
|
|
97
|
-
if (!
|
|
98
|
-
if (
|
|
99
|
-
|
|
98
|
+
if (!E.isAuthenticated) {
|
|
99
|
+
if (s.resolve(n).getUserManagerSettingsCreatedAt() && L - s.resolve(n).getUserManagerSettingsCreatedAt() < n.autoLoginSkew) {
|
|
100
|
+
P();
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ h(t, {
|
|
103
104
|
singleAction: !0,
|
|
104
|
-
testIdAttributes:
|
|
105
|
-
title:
|
|
106
|
-
children: [/* @__PURE__ */ g
|
|
105
|
+
testIdAttributes: b.createAttributes("LoginPage"),
|
|
106
|
+
title: T`Login`,
|
|
107
|
+
children: [/* @__PURE__ */ m(g, {
|
|
107
108
|
sx: {
|
|
108
109
|
marginY: 2,
|
|
109
110
|
textAlign: "center"
|
|
110
111
|
},
|
|
111
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ m(v, {
|
|
112
113
|
component: "p",
|
|
113
|
-
children:
|
|
114
|
+
children: T`You need to login to access this application.`
|
|
114
115
|
})
|
|
115
|
-
}),
|
|
116
|
+
}), R]
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
onConsent:
|
|
120
|
-
ref:
|
|
119
|
+
return /* @__PURE__ */ h(p, { children: [w, D.consentDialog?.getShouldShow() && /* @__PURE__ */ m(i, {
|
|
120
|
+
onConsent: N,
|
|
121
|
+
ref: O
|
|
121
122
|
})] });
|
|
122
123
|
};
|
|
123
124
|
//#endregion
|
|
124
|
-
export {
|
|
125
|
+
export { w as AuthenticationWrapper };
|
|
125
126
|
|
|
126
127
|
//# sourceMappingURL=index.js.map
|