@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,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./format.js";
|
|
2
|
-
import { DATE_FORMAT as t } from "@gen-epix/ui-core/constants/date";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { DATE_FORMAT as t } from "@gen-epix/ui-core/constants/date.constants";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Alert as i, AlertTitle as a, Box as o, Typography as s } from "@mui/material";
|
|
5
5
|
import { useTranslation as c } from "react-i18next";
|
|
6
6
|
//#region src/components/ui/OutageList/OutageItem.tsx
|
|
7
7
|
var l = ({ outage: l, severity: u, title: d }) => {
|
|
8
8
|
let { t: f } = c();
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ r(i, {
|
|
10
10
|
severity: u,
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ o
|
|
14
|
-
/* @__PURE__ */ o
|
|
12
|
+
/* @__PURE__ */ n(a, { children: d }),
|
|
13
|
+
/* @__PURE__ */ n(o, { children: l.description }),
|
|
14
|
+
/* @__PURE__ */ n(o, { children: /* @__PURE__ */ r(s, {
|
|
15
15
|
component: "p",
|
|
16
16
|
children: [
|
|
17
17
|
f`Expected start: `,
|
|
@@ -19,7 +19,7 @@ var l = ({ outage: l, severity: u, title: d }) => {
|
|
|
19
19
|
l.active_from ? e(new Date(l.active_from), t.DATE_TIME) : f`Unknown`
|
|
20
20
|
]
|
|
21
21
|
}) }),
|
|
22
|
-
/* @__PURE__ */ o
|
|
22
|
+
/* @__PURE__ */ n(o, { children: /* @__PURE__ */ r(s, {
|
|
23
23
|
component: "p",
|
|
24
24
|
children: [
|
|
25
25
|
f`Expected end: `,
|
|
@@ -29,46 +29,46 @@ var l = ({ outage: l, severity: u, title: d }) => {
|
|
|
29
29
|
}) })
|
|
30
30
|
]
|
|
31
31
|
});
|
|
32
|
-
}, u = ({ itemTitle: e, outages: t, severity:
|
|
32
|
+
}, u = ({ itemTitle: e, outages: t, severity: i, title: a }) => /* @__PURE__ */ r(o, {
|
|
33
33
|
sx: { marginBottom: 2 },
|
|
34
|
-
children: [/* @__PURE__ */ o
|
|
34
|
+
children: [/* @__PURE__ */ n(o, {
|
|
35
35
|
sx: { marginBottom: 1 },
|
|
36
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ n(s, {
|
|
37
37
|
component: "p",
|
|
38
|
-
children:
|
|
38
|
+
children: a
|
|
39
39
|
})
|
|
40
|
-
}), t.map((t) => /* @__PURE__ */ o
|
|
40
|
+
}), t.map((t) => /* @__PURE__ */ n(o, {
|
|
41
41
|
sx: { marginBottom: 1 },
|
|
42
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ n(l, {
|
|
43
43
|
outage: t,
|
|
44
|
-
severity:
|
|
44
|
+
severity: i,
|
|
45
45
|
title: e
|
|
46
46
|
})
|
|
47
47
|
}, t.id))]
|
|
48
|
-
}), d = ({ activeOutages: e, soonActiveOutages: t, visibleOutages:
|
|
49
|
-
let { t:
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
48
|
+
}), d = ({ activeOutages: e, soonActiveOutages: t, visibleOutages: i }) => {
|
|
49
|
+
let { t: a } = c();
|
|
50
|
+
return /* @__PURE__ */ r(o, { children: [
|
|
51
|
+
i.length === 0 && e.length === 0 && t.length === 0 && /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(s, {
|
|
52
52
|
component: "p",
|
|
53
|
-
children:
|
|
53
|
+
children: a`There no current or scheduled outages.`
|
|
54
54
|
}) }),
|
|
55
|
-
e.length > 0 && /* @__PURE__ */
|
|
56
|
-
itemTitle:
|
|
55
|
+
e.length > 0 && /* @__PURE__ */ n(u, {
|
|
56
|
+
itemTitle: a`Active outage`,
|
|
57
57
|
outages: e,
|
|
58
58
|
severity: "error",
|
|
59
|
-
title:
|
|
59
|
+
title: a`Our platform is experiencing an active outing.`
|
|
60
60
|
}),
|
|
61
|
-
t.length > 0 && /* @__PURE__ */
|
|
62
|
-
itemTitle:
|
|
61
|
+
t.length > 0 && /* @__PURE__ */ n(u, {
|
|
62
|
+
itemTitle: a`Upcoming outage`,
|
|
63
63
|
outages: t,
|
|
64
64
|
severity: "warning",
|
|
65
|
-
title:
|
|
65
|
+
title: a`Our platform will soon go down for a planned outage.`
|
|
66
66
|
}),
|
|
67
|
-
|
|
68
|
-
itemTitle:
|
|
69
|
-
outages:
|
|
67
|
+
i.length > 0 && /* @__PURE__ */ n(u, {
|
|
68
|
+
itemTitle: a`Planned outage`,
|
|
69
|
+
outages: i,
|
|
70
70
|
severity: "info",
|
|
71
|
-
title:
|
|
71
|
+
title: a`There are scheduled outages. Our platform will be disrupted during these times.`
|
|
72
72
|
})
|
|
73
73
|
] });
|
|
74
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutageList.js","names":[],"sources":["../../src/components/ui/OutageList/OutageItem.tsx","../../src/components/ui/OutageList/OutageSection.tsx","../../src/components/ui/OutageList/OutageList.tsx"],"sourcesContent":["import type { AlertProps } from '@mui/material';\nimport {\n Alert,\n AlertTitle,\n Box,\n Typography,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { format } from 'date-fns';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\nimport { DATE_FORMAT } from '@gen-epix/ui-core/constants/date';\n\ntype OutageItemProps = {\n readonly outage: CommonDbOutage;\n readonly severity: AlertProps['severity'];\n readonly title: string;\n};\nexport const OutageItem = ({ outage, severity, title }: OutageItemProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n severity={severity}\n >\n <AlertTitle>\n {title}\n </AlertTitle>\n <Box>\n {outage.description}\n </Box>\n <Box>\n <Typography component={'p'}>\n {t`Expected start: `}\n {' '}\n {outage.active_from ? format(new Date(outage.active_from), DATE_FORMAT.DATE_TIME) : t`Unknown`}\n </Typography>\n </Box>\n <Box>\n <Typography component={'p'}>\n {t`Expected end: `}\n {' '}\n {outage.active_to ? format(new Date(outage.active_to), DATE_FORMAT.DATE_TIME) : t`Unknown`}\n </Typography>\n </Box>\n </Alert>\n );\n};\n","import type { AlertProps } from '@mui/material';\nimport {\n Box,\n Typography,\n} from '@mui/material';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport { OutageItem } from './OutageItem';\n\ntype OutageSectionProps = {\n readonly itemTitle: string;\n readonly outages: CommonDbOutage[];\n readonly severity: AlertProps['severity'];\n readonly title: string;\n};\nexport const OutageSection = ({ itemTitle, outages, severity, title }: OutageSectionProps) => {\n return (\n <Box\n sx={{\n marginBottom: 2,\n }}\n >\n <Box\n sx={{\n marginBottom: 1,\n }}\n >\n <Typography component={'p'}>\n {title}\n </Typography>\n </Box>\n {outages.map((outage) => (\n <Box\n key={outage.id}\n sx={{\n marginBottom: 1,\n }}\n >\n <OutageItem\n outage={outage}\n severity={severity}\n title={itemTitle}\n />\n </Box>\n ))}\n </Box>\n );\n};\n","import {\n Box,\n Typography,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport { OutageSection } from './OutageSection';\n\nexport type OutageListProps = {\n readonly activeOutages: CommonDbOutage[];\n readonly soonActiveOutages: CommonDbOutage[];\n readonly visibleOutages: CommonDbOutage[];\n};\nexport const OutageList = ({ activeOutages, soonActiveOutages, visibleOutages }: OutageListProps) => {\n const { t } = useTranslation();\n\n return (\n <Box>\n {visibleOutages.length === 0 && activeOutages.length === 0 && soonActiveOutages.length === 0 && (\n <Box>\n <Typography component={'p'}>\n {t`There no current or scheduled outages.`}\n </Typography>\n </Box>\n )}\n {activeOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Active outage`}\n outages={activeOutages}\n severity={'error'}\n title={t`Our platform is experiencing an active outing.`}\n />\n )}\n {soonActiveOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Upcoming outage`}\n outages={soonActiveOutages}\n severity={'warning'}\n title={t`Our platform will soon go down for a planned outage.`}\n />\n )}\n {visibleOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Planned outage`}\n outages={visibleOutages}\n severity={'info'}\n title={t`There are scheduled outages. Our platform will be disrupted during these times.`}\n />\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"OutageList.js","names":["format","OutageItem","useTranslation","Alert","AlertTitle","title","Box","outage","Typography","DATE_FORMAT","OutageSection","outages","itemTitle","OutageList","visibleOutages","activeOutages","soonActiveOutages"],"sources":["../../src/components/ui/OutageList/OutageItem.tsx","../../src/components/ui/OutageList/OutageSection.tsx","../../src/components/ui/OutageList/OutageList.tsx"],"sourcesContent":["import type { AlertProps } from '@mui/material';\nimport {\n Alert,\n AlertTitle,\n Box,\n Typography,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { format } from 'date-fns';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\nimport { DATE_FORMAT } from '@gen-epix/ui-core/constants/date.constants';\n\ntype OutageItemProps = {\n readonly outage: CommonDbOutage;\n readonly severity: AlertProps['severity'];\n readonly title: string;\n};\nexport const OutageItem = ({ outage, severity, title }: OutageItemProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n severity={severity}\n >\n <AlertTitle>\n {title}\n </AlertTitle>\n <Box>\n {outage.description}\n </Box>\n <Box>\n <Typography component={'p'}>\n {t`Expected start: `}\n {' '}\n {outage.active_from ? format(new Date(outage.active_from), DATE_FORMAT.DATE_TIME) : t`Unknown`}\n </Typography>\n </Box>\n <Box>\n <Typography component={'p'}>\n {t`Expected end: `}\n {' '}\n {outage.active_to ? format(new Date(outage.active_to), DATE_FORMAT.DATE_TIME) : t`Unknown`}\n </Typography>\n </Box>\n </Alert>\n );\n};\n","import type { AlertProps } from '@mui/material';\nimport {\n Box,\n Typography,\n} from '@mui/material';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport { OutageItem } from './OutageItem';\n\ntype OutageSectionProps = {\n readonly itemTitle: string;\n readonly outages: CommonDbOutage[];\n readonly severity: AlertProps['severity'];\n readonly title: string;\n};\nexport const OutageSection = ({ itemTitle, outages, severity, title }: OutageSectionProps) => {\n return (\n <Box\n sx={{\n marginBottom: 2,\n }}\n >\n <Box\n sx={{\n marginBottom: 1,\n }}\n >\n <Typography component={'p'}>\n {title}\n </Typography>\n </Box>\n {outages.map((outage) => (\n <Box\n key={outage.id}\n sx={{\n marginBottom: 1,\n }}\n >\n <OutageItem\n outage={outage}\n severity={severity}\n title={itemTitle}\n />\n </Box>\n ))}\n </Box>\n );\n};\n","import {\n Box,\n Typography,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport { OutageSection } from './OutageSection';\n\nexport type OutageListProps = {\n readonly activeOutages: CommonDbOutage[];\n readonly soonActiveOutages: CommonDbOutage[];\n readonly visibleOutages: CommonDbOutage[];\n};\nexport const OutageList = ({ activeOutages, soonActiveOutages, visibleOutages }: OutageListProps) => {\n const { t } = useTranslation();\n\n return (\n <Box>\n {visibleOutages.length === 0 && activeOutages.length === 0 && soonActiveOutages.length === 0 && (\n <Box>\n <Typography component={'p'}>\n {t`There no current or scheduled outages.`}\n </Typography>\n </Box>\n )}\n {activeOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Active outage`}\n outages={activeOutages}\n severity={'error'}\n title={t`Our platform is experiencing an active outing.`}\n />\n )}\n {soonActiveOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Upcoming outage`}\n outages={soonActiveOutages}\n severity={'warning'}\n title={t`Our platform will soon go down for a planned outage.`}\n />\n )}\n {visibleOutages.length > 0 && (\n <OutageSection\n itemTitle={t`Planned outage`}\n outages={visibleOutages}\n severity={'info'}\n title={t`There are scheduled outages. Our platform will be disrupted during these times.`}\n />\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;AAiBA,IAAaC,KAAc,EAAE,WAAQ,aAAU,eAA6B;CAC1E,IAAM,EAAE,SAAMC,EAAe;CAE7B,OACE,kBAACC,GAAD;EACY;EADZ,UAAA;GAGE,kBAACC,GAAD,EAAA,UACGC,EACS,CAAA;GACZ,kBAACC,GAAD,EAAA,UACGC,EAAO,YACL,CAAA;GACL,kBAACD,GAAD,EAAA,UACE,kBAACE,GAAD;IAAY,WAAW;IAAvB,UAAA;KACG,CAAC;KACD;KACAD,EAAO,cAAcP,EAAO,IAAI,KAAKO,EAAO,WAAW,GAAGE,EAAY,SAAS,IAAI,CAAC;IAC3E;GACT,CAAA,EAAA,CAAA;GACL,kBAACH,GAAD,EAAA,UACE,kBAACE,GAAD;IAAY,WAAW;IAAvB,UAAA;KACG,CAAC;KACD;KACAD,EAAO,YAAYP,EAAO,IAAI,KAAKO,EAAO,SAAS,GAAGE,EAAY,SAAS,IAAI,CAAC;IACvE;GACT,CAAA,EAAA,CAAA;EACA;;AAEX,GC/BaC,KAAiB,EAAE,cAAW,YAAS,aAAU,eAE1D,kBAACJ,GAAD;CACE,IAAI,EACF,cAAc,EAChB;CAHF,UAAA,CAKE,kBAACA,GAAD;EACE,IAAI,EACF,cAAc,EAChB;EAEA,UAAA,kBAACE,GAAD;GAAY,WAAW;GACpB,UAAAH;EACS,CAAA;CACT,CAAA,GACJM,EAAQ,KAAK,MACZ,kBAACL,GAAD;EAEE,IAAI,EACF,cAAc,EAChB;EAEA,UAAA,kBAACL,GAAD;GACU;GACE;GACV,OAAOW;EACR,CAAA;CACE,GAVEL,EAAO,EAUT,CACN,CACE;IC/BIM,KAAc,EAAE,kBAAe,sBAAmB,wBAAsC;CACnG,IAAM,EAAE,SAAMX,EAAe;CAE7B,OACE,kBAACI,GAAD,EAAA,UAAA;EACGQ,EAAe,WAAW,KAAKC,EAAc,WAAW,KAAKC,EAAkB,WAAW,KACzF,kBAACV,GAAD,EAAA,UACE,kBAACE,GAAD;GAAY,WAAW;GACpB,UAAA,CAAC;EACQ,CAAA,EACT,CAAA;EAENO,EAAc,SAAS,KACtB,kBAACL,GAAD;GACE,WAAW,CAAC;GACZ,SAASK;GACT,UAAU;GACV,OAAO,CAAC;EACT,CAAA;EAEFC,EAAkB,SAAS,KAC1B,kBAACN,GAAD;GACE,WAAW,CAAC;GACZ,SAASM;GACT,UAAU;GACV,OAAO,CAAC;EACT,CAAA;EAEFF,EAAe,SAAS,KACvB,kBAACJ,GAAD;GACE,WAAW,CAAC;GACZ,SAASI;GACT,UAAU;GACV,OAAO,CAAC;EACT,CAAA;CAEA,EAAA,CAAA;AAET"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e, n as t, t as n } from "./toDate.js";
|
|
2
|
-
import {
|
|
2
|
+
import { resolveConfig as r } from "../classes/containers/UiClientCommonContainer/index.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMilliseconds.js
|
|
4
4
|
function i(e, r, i) {
|
|
5
5
|
return t(i?.in || e, +n(e) + r);
|
|
@@ -33,7 +33,7 @@ var o = class {
|
|
|
33
33
|
if (n.includes(e.id)) return !1;
|
|
34
34
|
if (e.is_active) return !0;
|
|
35
35
|
if (e.active_from || e.active_to) {
|
|
36
|
-
let t = /* @__PURE__ */ new Date(), n = a(t, r
|
|
36
|
+
let t = /* @__PURE__ */ new Date(), n = a(t, r().outages.NUM_HOURS_TO_SHOW_SOON_ACTIVE_OUTAGES);
|
|
37
37
|
return e.active_from && e.active_to ? n >= new Date(e.active_from) && t < new Date(e.active_to) : !!(e.active_from && n >= new Date(e.active_from) || e.active_to && t < new Date(e.active_to));
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutageUtil.js","names":[],"sources":["../../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addHours.js","../../src/utils/OutageUtil/OutageUtil.ts"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMilliseconds} function options.\n */\n\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of milliseconds to be added.\n * @param options - The options object\n *\n * @returns The new date with the milliseconds added\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport function addMilliseconds(date, amount, options) {\n return constructFrom(options?.in || date, +toDate(date) + amount);\n}\n\n// Fallback for modularized imports:\nexport default addMilliseconds;\n","import { addMilliseconds } from \"./addMilliseconds.js\";\nimport { millisecondsInHour } from \"./constants.js\";\n\n/**\n * The {@link addHours} function options.\n */\n\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of hours to be added\n * @param options - An object with options\n *\n * @returns The new date with the hours added\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * const result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\nexport function addHours(date, amount, options) {\n return addMilliseconds(date, amount * millisecondsInHour, options);\n}\n\n// Fallback for modularized imports:\nexport default addHours;\n","import { addHours } from 'date-fns';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport {
|
|
1
|
+
{"version":3,"file":"OutageUtil.js","names":["millisecondsInHour","constructFrom","toDate","addMilliseconds","options","date","amount","addHours","OutageUtil","activeOutages","outages","outage","now","activeOutageIds","visibleOutages","soon","resolveConfig"],"sources":["../../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addHours.js","../../src/utils/OutageUtil/OutageUtil.ts"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMilliseconds} function options.\n */\n\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of milliseconds to be added.\n * @param options - The options object\n *\n * @returns The new date with the milliseconds added\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport function addMilliseconds(date, amount, options) {\n return constructFrom(options?.in || date, +toDate(date) + amount);\n}\n\n// Fallback for modularized imports:\nexport default addMilliseconds;\n","import { addMilliseconds } from \"./addMilliseconds.js\";\nimport { millisecondsInHour } from \"./constants.js\";\n\n/**\n * The {@link addHours} function options.\n */\n\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of hours to be added\n * @param options - An object with options\n *\n * @returns The new date with the hours added\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * const result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\nexport function addHours(date, amount, options) {\n return addMilliseconds(date, amount * millisecondsInHour, options);\n}\n\n// Fallback for modularized imports:\nexport default addHours;\n","import { addHours } from 'date-fns';\nimport type { CommonDbOutage } from '@gen-epix/api-commondb';\n\nimport { resolveConfig } from '../../classes/containers/UiClientCommonContainer';\nimport type { CategorizedOutages } from '../../models/outage.models';\n\nexport class OutageUtil {\n public static getCategorizedOutages(outages: CommonDbOutage[]): CategorizedOutages {\n\n const activeOutages = outages.filter((outage) => {\n if (outage.is_active) {\n return true;\n }\n if (outage.active_from || outage.active_to) {\n const now = new Date();\n if (outage.active_from && outage.active_to) {\n return now >= new Date(outage.active_from) && now < new Date(outage.active_to);\n }\n if (outage.active_from && now >= new Date(outage.active_from)) {\n return true;\n }\n if (outage.active_to && now < new Date(outage.active_to)) {\n return true;\n }\n return false;\n }\n });\n const activeOutageIds = activeOutages.map((outage) => outage.id);\n\n const visibleOutages = outages.filter((outage) => {\n if (activeOutageIds.includes(outage.id)) {\n return false;\n }\n if (outage.is_visible) {\n return true;\n }\n if (outage.visible_from || outage.visible_to) {\n const now = new Date();\n if (outage.visible_from && outage.visible_to) {\n return now >= new Date(outage.visible_from) && now < new Date(outage.visible_to);\n }\n if (outage.visible_from && now >= new Date(outage.visible_from)) {\n return true;\n }\n if (outage.visible_to && now < new Date(outage.visible_to)) {\n return true;\n }\n return false;\n }\n });\n\n const soonActiveOutages = outages.filter((outage) => {\n if (activeOutageIds.includes(outage.id)) {\n return false;\n }\n if (outage.is_active) {\n return true;\n }\n if (outage.active_from || outage.active_to) {\n const now = new Date();\n const soon = addHours(now, resolveConfig().outages.NUM_HOURS_TO_SHOW_SOON_ACTIVE_OUTAGES);\n if (outage.active_from && outage.active_to) {\n return soon >= new Date(outage.active_from) && now < new Date(outage.active_to);\n }\n if (outage.active_from && soon >= new Date(outage.active_from)) {\n return true;\n }\n if (outage.active_to && now < new Date(outage.active_to)) {\n return true;\n }\n return false;\n }\n });\n\n return {\n activeOutages,\n soonActiveOutages,\n visibleOutages,\n };\n }\n}\n"],"ignoreList":[0,1],"mappings":";;;AA6BA,SAAgBG,EAAgB,GAAM,GAAQ,GAAS;CACrD,OAAOF,EAAcG,GAAS,MAAMC,GAAM,CAACH,EAAOG,CAAI,IAAIC,CAAM;AAClE;;;ACFA,SAAgBC,EAAS,GAAM,GAAQ,GAAS;CAC9C,OAAOJ,EAAgBE,GAAMC,IAASN,GAAoBI,CAAO;AACnE;;;ACzBA,IAAaI,IAAb,MAAwB;CACtB,OAAc,sBAAsB,GAA+C;EAEjF,IAAMC,IAAgBC,EAAQ,QAAQ,MAAW;GAC/C,IAAIC,EAAO,WACT,OAAO;GAET,IAAIA,EAAO,eAAeA,EAAO,WAAW;IAC1C,IAAMC,oBAAM,IAAI,KAAK;IAUrB,OATID,EAAO,eAAeA,EAAO,YACxBC,KAAO,IAAI,KAAKD,EAAO,WAAW,KAAKC,IAAM,IAAI,KAAKD,EAAO,SAAS,IAK/E,GAHIA,EAAO,eAAeC,KAAO,IAAI,KAAKD,EAAO,WAAW,KAGxDA,EAAO,aAAaC,IAAM,IAAI,KAAKD,EAAO,SAAS;GAIzD;EACF,CAAC,GACKE,IAAkBJ,EAAc,KAAK,MAAWE,EAAO,EAAE,GAEzDG,IAAiBJ,EAAQ,QAAQ,MAAW;GAChD,IAAIG,EAAgB,SAASF,EAAO,EAAE,GACpC,OAAO;GAET,IAAIA,EAAO,YACT,OAAO;GAET,IAAIA,EAAO,gBAAgBA,EAAO,YAAY;IAC5C,IAAMC,oBAAM,IAAI,KAAK;IAUrB,OATID,EAAO,gBAAgBA,EAAO,aACzBC,KAAO,IAAI,KAAKD,EAAO,YAAY,KAAKC,IAAM,IAAI,KAAKD,EAAO,UAAU,IAKjF,GAHIA,EAAO,gBAAgBC,KAAO,IAAI,KAAKD,EAAO,YAAY,KAG1DA,EAAO,cAAcC,IAAM,IAAI,KAAKD,EAAO,UAAU;GAI3D;EACF,CAAC;EAyBD,OAAO;GACL;GACA,mBAzBwBD,EAAQ,QAAQ,MAAW;IACnD,IAAIG,EAAgB,SAASF,EAAO,EAAE,GACpC,OAAO;IAET,IAAIA,EAAO,WACT,OAAO;IAET,IAAIA,EAAO,eAAeA,EAAO,WAAW;KAC1C,IAAMC,oBAAM,IAAI,KAAK,GACfG,IAAOR,EAASK,GAAKI,EAAc,CAAC,CAAC,QAAQ,qCAAqC;KAUxF,OATIL,EAAO,eAAeA,EAAO,YACxBI,KAAQ,IAAI,KAAKJ,EAAO,WAAW,KAAKC,IAAM,IAAI,KAAKD,EAAO,SAAS,IAKhF,GAHIA,EAAO,eAAeI,KAAQ,IAAI,KAAKJ,EAAO,WAAW,KAGzDA,EAAO,aAAaC,IAAM,IAAI,KAAKD,EAAO,SAAS;IAIzD;GACF,CAIE;GACA;EACF;CACF;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
4
4
|
var n = e.createContext(void 0), r = (t) => {
|
|
5
5
|
let r = e.useContext(n);
|
|
6
6
|
if (t) return t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryClientProvider.js","names":["React"],"sources":["../../../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
1
|
+
{"version":3,"file":"QueryClientProvider.js","names":["React","React$1","QueryClientContext","useQueryClient","client","queryClient","QueryClientProvider"],"sources":["../../../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/QueryClientProvider.tsx\n/**\n* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.\n*/\nconst QueryClientContext = React.createContext(void 0);\n/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n};\n/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }) => {\n\tReact.useEffect(() => {\n\t\tclient.mount();\n\t\treturn () => {\n\t\t\tclient.unmount();\n\t\t};\n\t}, [client]);\n\treturn /* @__PURE__ */ jsx(QueryClientContext.Provider, {\n\t\tvalue: client,\n\t\tchildren\n\t});\n};\n//#endregion\nexport { QueryClientContext, QueryClientProvider, useQueryClient };\n\n//# sourceMappingURL=QueryClientProvider.js.map"],"ignoreList":[0],"mappings":";;;AAOA,IAAME,IAAqBF,EAAM,cAAc,KAAK,CAAC,GAS/CG,KAAkB,MAAgB;CACvC,IAAMC,IAASJ,EAAM,WAAWE,CAAkB;CAClD,IAAIG,GAAa,OAAOA;CACxB,IAAI,CAACD,GAAQ,MAAU,MAAM,wDAAwD;CACrF,OAAOA;AACR,GAmBME,KAAuB,EAAE,WAAQ,mBACtCL,EAAM,iBACLG,EAAO,MAAM,SACA;CACZ,EAAO,QAAQ;AAChB,IACE,CAACA,CAAM,CAAC,GACY,kBAAIF,EAAmB,UAAU;CACvD,OAAOE;CACP;AACD,CAAC"}
|