@gen-epix/ui-client-common 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +287 -0
- package/README.md +93 -0
- package/dist/@types/environment.d.ts +7 -0
- package/dist/@types/mui.d.ts +9 -0
- package/dist/@types/ui.d.ts +4 -0
- package/dist/@types/vite-env.d.ts +3 -0
- package/dist/_chunks/ApplicationFooter.js +119 -0
- package/dist/_chunks/ApplicationFooter.js.map +1 -0
- package/dist/_chunks/Breadcrumbs.js +40 -0
- package/dist/_chunks/Breadcrumbs.js.map +1 -0
- package/dist/_chunks/CrudPage.js +535 -0
- package/dist/_chunks/CrudPage.js.map +1 -0
- package/dist/_chunks/GeoFilter.js +38 -0
- package/dist/_chunks/GeoFilter.js.map +1 -0
- package/dist/_chunks/Notifications.js +152 -0
- package/dist/_chunks/Notifications.js.map +1 -0
- package/dist/_chunks/OutageList.js +78 -0
- package/dist/_chunks/OutageList.js.map +1 -0
- package/dist/_chunks/OutageUtil.js +47 -0
- package/dist/_chunks/OutageUtil.js.map +1 -0
- package/dist/_chunks/QueryClientProvider.js +18 -0
- package/dist/_chunks/QueryClientProvider.js.map +1 -0
- package/dist/_chunks/QueryClientService.js +655 -0
- package/dist/_chunks/QueryClientService.js.map +1 -0
- package/dist/_chunks/Table.js +4565 -0
- package/dist/_chunks/Table.js.map +1 -0
- package/dist/_chunks/TableUtil.js +626 -0
- package/dist/_chunks/TableUtil.js.map +1 -0
- package/dist/_chunks/TextFilter.js +249 -0
- package/dist/_chunks/TextFilter.js.map +1 -0
- package/dist/_chunks/UserInvitationsAdminPage.js +273 -0
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -0
- package/dist/_chunks/_baseAssignValue.js +19 -0
- package/dist/_chunks/_baseAssignValue.js.map +1 -0
- package/dist/_chunks/_baseFlatten.js +27 -0
- package/dist/_chunks/_baseFlatten.js.map +1 -0
- package/dist/_chunks/_baseGet.js +280 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +275 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_baseUnset.js +37 -0
- package/dist/_chunks/_baseUnset.js.map +1 -0
- package/dist/_chunks/_cacheHas.js +65 -0
- package/dist/_chunks/_cacheHas.js.map +1 -0
- package/dist/_chunks/_setToString.js +71 -0
- package/dist/_chunks/_setToString.js.map +1 -0
- package/dist/_chunks/chunk-KS7C4IRE.js +3829 -0
- package/dist/_chunks/chunk-KS7C4IRE.js.map +1 -0
- package/dist/_chunks/format.js +1135 -0
- package/dist/_chunks/format.js.map +1 -0
- package/dist/_chunks/index.esm.js +1179 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/isArrayLike.js +255 -0
- package/dist/_chunks/isArrayLike.js.map +1 -0
- package/dist/_chunks/isObject.js +13 -0
- package/dist/_chunks/isObject.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +43 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isSymbol.js +14 -0
- package/dist/_chunks/isSymbol.js.map +1 -0
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/middleware.js +111 -0
- package/dist/_chunks/middleware.js.map +1 -0
- package/dist/_chunks/oidc-client-ts.js +1843 -0
- package/dist/_chunks/oidc-client-ts.js.map +1 -0
- package/dist/_chunks/omit.js +293 -0
- package/dist/_chunks/omit.js.map +1 -0
- package/dist/_chunks/query.js +769 -0
- package/dist/_chunks/query.js.map +1 -0
- package/dist/_chunks/react-oidc-context.js +201 -0
- package/dist/_chunks/react-oidc-context.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +13 -0
- package/dist/_chunks/tableStore.js +822 -0
- package/dist/_chunks/tableStore.js.map +1 -0
- package/dist/_chunks/toDate.js +18 -0
- package/dist/_chunks/toDate.js.map +1 -0
- package/dist/_chunks/uniq.js +44 -0
- package/dist/_chunks/uniq.js.map +1 -0
- package/dist/_chunks/useColumnsMenu.js +159 -0
- package/dist/_chunks/useColumnsMenu.js.map +1 -0
- package/dist/_chunks/useMutation.js +110 -0
- package/dist/_chunks/useMutation.js.map +1 -0
- package/dist/_chunks/useQueryMemo.js +325 -0
- package/dist/_chunks/useQueryMemo.js.map +1 -0
- package/dist/_chunks/vanilla.js +20 -0
- package/dist/_chunks/vanilla.js.map +1 -0
- package/dist/_chunks/yup.js +73 -0
- package/dist/_chunks/yup.js.map +1 -0
- package/dist/classes/TableEventBus/TableEventBus.d.ts +12 -0
- package/dist/classes/TableEventBus/index.d.ts +1 -0
- package/dist/classes/TableEventBus/index.js +7 -0
- package/dist/classes/TableEventBus/index.js.map +1 -0
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +27 -0
- package/dist/classes/abstracts/FilterAbstract/index.d.ts +1 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +37 -0
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -0
- package/dist/classes/filters/BooleanFilter.d.ts +11 -0
- package/dist/classes/filters/DateFilter.d.ts +26 -0
- package/dist/classes/filters/GeoFilter.d.ts +17 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +19 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +17 -0
- package/dist/classes/filters/TextFilter.d.ts +10 -0
- package/dist/classes/filters/index.d.ts +6 -0
- package/dist/classes/filters/index.js +3 -0
- package/dist/classes/services/ApiService/ApiService.d.ts +19 -0
- package/dist/classes/services/ApiService/index.d.ts +1 -0
- package/dist/classes/services/ApiService/index.js +21 -0
- package/dist/classes/services/ApiService/index.js.map +1 -0
- package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +18 -0
- package/dist/classes/services/AuthenticationService/index.d.ts +1 -0
- package/dist/classes/services/AuthenticationService/index.js +694 -0
- package/dist/classes/services/AuthenticationService/index.js.map +1 -0
- package/dist/classes/services/AuthorizationService/AuthorizationService.d.ts +15 -0
- package/dist/classes/services/AuthorizationService/index.d.ts +1 -0
- package/dist/classes/services/AuthorizationService/index.js +36 -0
- package/dist/classes/services/AuthorizationService/index.js.map +1 -0
- package/dist/classes/services/BackendVersionService/BackendVersionService.d.ts +8 -0
- package/dist/classes/services/BackendVersionService/index.d.ts +1 -0
- package/dist/classes/services/BackendVersionService/index.js +17 -0
- package/dist/classes/services/BackendVersionService/index.js.map +1 -0
- package/dist/classes/services/BreadcrumbService/BreadcrumbService.d.ts +10 -0
- package/dist/classes/services/BreadcrumbService/index.d.ts +1 -0
- package/dist/classes/services/BreadcrumbService/index.js +50 -0
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -0
- package/dist/classes/services/ConfigService/ConfigService.d.ts +9 -0
- package/dist/classes/services/ConfigService/index.d.ts +1 -0
- package/dist/classes/services/ConfigService/index.js +21 -0
- package/dist/classes/services/ConfigService/index.js.map +1 -0
- package/dist/classes/services/EmotionCacheService/EmotionCacheService.d.ts +7 -0
- package/dist/classes/services/EmotionCacheService/index.d.ts +1 -0
- package/dist/classes/services/EmotionCacheService/index.js +24 -0
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -0
- package/dist/classes/services/FeatureFlagsService/FeatureFlagsService.d.ts +9 -0
- package/dist/classes/services/FeatureFlagsService/index.d.ts +1 -0
- package/dist/classes/services/FeatureFlagsService/index.js +21 -0
- package/dist/classes/services/FeatureFlagsService/index.js.map +1 -0
- package/dist/classes/services/I18nService/I18nService.d.ts +28 -0
- package/dist/classes/services/I18nService/index.d.ts +1 -0
- package/dist/classes/services/I18nService/index.js +67 -0
- package/dist/classes/services/I18nService/index.js.map +1 -0
- package/dist/classes/services/InactivityService/InactivityService.d.ts +25 -0
- package/dist/classes/services/InactivityService/index.d.ts +1 -0
- package/dist/classes/services/InactivityService/index.js +172 -0
- package/dist/classes/services/InactivityService/index.js.map +1 -0
- package/dist/classes/services/LogService/LogService.d.ts +22 -0
- package/dist/classes/services/LogService/index.d.ts +1 -0
- package/dist/classes/services/LogService/index.js +92 -0
- package/dist/classes/services/LogService/index.js.map +1 -0
- package/dist/classes/services/NavigationHistoryService/NavigationHistoryService.d.ts +6 -0
- package/dist/classes/services/NavigationHistoryService/index.d.ts +1 -0
- package/dist/classes/services/NavigationHistoryService/index.js +14 -0
- package/dist/classes/services/NavigationHistoryService/index.js.map +1 -0
- package/dist/classes/services/NotificationService/NotificationService.d.ts +14 -0
- package/dist/classes/services/NotificationService/index.d.ts +1 -0
- package/dist/classes/services/NotificationService/index.js +63 -0
- package/dist/classes/services/NotificationService/index.js.map +1 -0
- package/dist/classes/services/PageEventBusService/PageEventBusService.d.ts +28 -0
- package/dist/classes/services/PageEventBusService/index.d.ts +1 -0
- package/dist/classes/services/PageEventBusService/index.js +66 -0
- package/dist/classes/services/PageEventBusService/index.js.map +1 -0
- package/dist/classes/services/QueryClientService/QueryClientService.d.ts +25 -0
- package/dist/classes/services/QueryClientService/index.d.ts +1 -0
- package/dist/classes/services/QueryClientService/index.js +2 -0
- package/dist/classes/services/RouterService/RouterService.d.ts +19 -0
- package/dist/classes/services/RouterService/index.d.ts +1 -0
- package/dist/classes/services/RouterService/index.js +22 -0
- package/dist/classes/services/RouterService/index.js.map +1 -0
- package/dist/classes/services/UserSettingsService/UserSettingsService.d.ts +6 -0
- package/dist/classes/services/UserSettingsService/index.d.ts +1 -0
- package/dist/classes/services/UserSettingsService/index.js +14 -0
- package/dist/classes/services/UserSettingsService/index.js.map +1 -0
- package/dist/components/app/App/App.d.ts +1 -0
- package/dist/components/app/App/index.d.ts +1 -0
- package/dist/components/app/App/index.js +106 -0
- package/dist/components/app/App/index.js.map +1 -0
- package/dist/components/app/ApplicationBootstrap/ApplicationBootstrap.d.ts +2 -0
- package/dist/components/app/ApplicationBootstrap/index.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrap/index.js +135 -0
- package/dist/components/app/ApplicationBootstrap/index.js.map +1 -0
- package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +2 -0
- package/dist/components/app/AuthenticationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthenticationWrapper/index.js +126 -0
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -0
- package/dist/components/app/AuthorizationWrapper/AuthorizationWrapper.d.ts +2 -0
- package/dist/components/app/AuthorizationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthorizationWrapper/index.js +46 -0
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -0
- package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.js +118 -0
- package/dist/components/app/RouterRoot/index.js.map +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +9 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.d.ts +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js +81 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -0
- package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +5 -0
- package/dist/components/filters/BooleanFilterField/index.d.ts +1 -0
- package/dist/components/filters/BooleanFilterField/index.js +23 -0
- package/dist/components/filters/BooleanFilterField/index.js.map +1 -0
- package/dist/components/filters/DateFilterField/DateFilterField.d.ts +5 -0
- package/dist/components/filters/DateFilterField/index.d.ts +1 -0
- package/dist/components/filters/DateFilterField/index.js +15 -0
- package/dist/components/filters/DateFilterField/index.js.map +1 -0
- package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +5 -0
- package/dist/components/filters/GeoFilterField/index.d.ts +1 -0
- package/dist/components/filters/GeoFilterField/index.js +20 -0
- package/dist/components/filters/GeoFilterField/index.js.map +1 -0
- package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +5 -0
- package/dist/components/filters/MultiSelectFilterField/index.d.ts +1 -0
- package/dist/components/filters/MultiSelectFilterField/index.js +19 -0
- package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -0
- package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +5 -0
- package/dist/components/filters/NumberRangeFilterField/index.d.ts +1 -0
- package/dist/components/filters/NumberRangeFilterField/index.js +14 -0
- package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -0
- package/dist/components/filters/TextFilterField/TextFilterField.d.ts +5 -0
- package/dist/components/filters/TextFilterField/index.d.ts +1 -0
- package/dist/components/filters/TextFilterField/index.js +12 -0
- package/dist/components/filters/TextFilterField/index.js.map +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +6 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/InfoMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/index.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/index.js +661 -0
- package/dist/components/ui/ApplicationBar/index.js.map +1 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +4 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +7 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +5 -0
- package/dist/components/ui/ApplicationFooter/index.d.ts +1 -0
- package/dist/components/ui/ApplicationFooter/index.js +2 -0
- package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +5 -0
- package/dist/components/ui/BackdropSpinner/index.d.ts +1 -0
- package/dist/components/ui/BackdropSpinner/index.js +19 -0
- package/dist/components/ui/BackdropSpinner/index.js.map +1 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumb.d.ts +9 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.js +2 -0
- package/dist/components/ui/Confirmation/Confirmation.d.ts +2 -0
- package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +11 -0
- package/dist/components/ui/Confirmation/index.d.ts +2 -0
- package/dist/components/ui/Confirmation/index.js +58 -0
- package/dist/components/ui/Confirmation/index.js.map +1 -0
- package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +8 -0
- package/dist/components/ui/ConsentDialog/index.d.ts +1 -0
- package/dist/components/ui/ConsentDialog/index.js +36 -0
- package/dist/components/ui/ConsentDialog/index.js.map +1 -0
- package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +13 -0
- package/dist/components/ui/CopyToClipboardButton/index.d.ts +1 -0
- package/dist/components/ui/CopyToClipboardButton/index.js +101 -0
- package/dist/components/ui/CopyToClipboardButton/index.js.map +1 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +27 -0
- package/dist/components/ui/Dialog/index.d.ts +1 -0
- package/dist/components/ui/Dialog/index.js +83 -0
- package/dist/components/ui/Dialog/index.js.map +1 -0
- package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +5 -0
- package/dist/components/ui/GenericErrorMessage/index.d.ts +1 -0
- package/dist/components/ui/GenericErrorMessage/index.js +91 -0
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -0
- package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +7 -0
- package/dist/components/ui/LicensesDialog/index.d.ts +1 -0
- package/dist/components/ui/LicensesDialog/index.js +117 -0
- package/dist/components/ui/LicensesDialog/index.js.map +1 -0
- package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +5 -0
- package/dist/components/ui/LinearProgressWithLabel/index.d.ts +1 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js +31 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js.map +1 -0
- package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +2 -0
- package/dist/components/ui/LoadingIndicator/index.d.ts +1 -0
- package/dist/components/ui/LoadingIndicator/index.js +12 -0
- package/dist/components/ui/LoadingIndicator/index.js.map +1 -0
- package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +7 -0
- package/dist/components/ui/MyPermissionsDialog/index.d.ts +1 -0
- package/dist/components/ui/MyPermissionsDialog/index.js +41 -0
- package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -0
- package/dist/components/ui/NavLink/NavLink.d.ts +7 -0
- package/dist/components/ui/NavLink/index.d.ts +1 -0
- package/dist/components/ui/NavLink/index.js +23 -0
- package/dist/components/ui/NavLink/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +18 -0
- package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +17 -0
- package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +22 -0
- package/dist/components/ui/NestedMenu/index.d.ts +4 -0
- package/dist/components/ui/NestedMenu/index.js +240 -0
- package/dist/components/ui/NestedMenu/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +11 -0
- package/dist/components/ui/Notifications/NotificationItem.d.ts +8 -0
- package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +5 -0
- package/dist/components/ui/Notifications/NotificationsStack.d.ts +2 -0
- package/dist/components/ui/Notifications/index.d.ts +2 -0
- package/dist/components/ui/Notifications/index.js +2 -0
- package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +7 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.d.ts +1 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +123 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -0
- package/dist/components/ui/OutageList/OutageItem.d.ts +9 -0
- package/dist/components/ui/OutageList/OutageList.d.ts +7 -0
- package/dist/components/ui/OutageList/OutageSection.d.ts +10 -0
- package/dist/components/ui/OutageList/index.d.ts +1 -0
- package/dist/components/ui/OutageList/index.js +2 -0
- package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +7 -0
- package/dist/components/ui/OutagesDialog/index.d.ts +1 -0
- package/dist/components/ui/OutagesDialog/index.js +43 -0
- package/dist/components/ui/OutagesDialog/index.js.map +1 -0
- package/dist/components/ui/PageContainer/PageContainer.d.ts +14 -0
- package/dist/components/ui/PageContainer/index.d.ts +1 -0
- package/dist/components/ui/PageContainer/index.js +135 -0
- package/dist/components/ui/PageContainer/index.js.map +1 -0
- package/dist/components/ui/ResponseHandler/ResponseHandler.d.ts +16 -0
- package/dist/components/ui/ResponseHandler/index.d.ts +1 -0
- package/dist/components/ui/ResponseHandler/index.js +28 -0
- package/dist/components/ui/ResponseHandler/index.js.map +1 -0
- package/dist/components/ui/Sidebar/SidebarItem.d.ts +13 -0
- package/dist/components/ui/Sidebar/SidebarMenu.d.ts +3 -0
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +12 -0
- package/dist/components/ui/Sidebar/index.d.ts +3 -0
- package/dist/components/ui/Sidebar/index.js +128 -0
- package/dist/components/ui/Sidebar/index.js.map +1 -0
- package/dist/components/ui/SortableList/SortableList.d.ts +14 -0
- package/dist/components/ui/SortableList/SortableListItem.d.ts +8 -0
- package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +4 -0
- package/dist/components/ui/SortableList/SortableOverlay.d.ts +2 -0
- package/dist/components/ui/SortableList/context/SortableListItemContext.d.ts +7 -0
- package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +6 -0
- package/dist/components/ui/SortableList/context/useSortableListItemContext.d.ts +1 -0
- package/dist/components/ui/Spinner/Spinner.d.ts +11 -0
- package/dist/components/ui/Spinner/index.d.ts +1 -0
- package/dist/components/ui/Spinner/index.js +63 -0
- package/dist/components/ui/Spinner/index.js.map +1 -0
- package/dist/components/ui/Stepper/Stepper.d.ts +17 -0
- package/dist/components/ui/Stepper/index.d.ts +2 -0
- package/dist/components/ui/Stepper/index.js +126 -0
- package/dist/components/ui/Stepper/index.js.map +1 -0
- package/dist/components/ui/Stepper/stepperModel.d.ts +4 -0
- package/dist/components/ui/Table/Table.d.ts +30 -0
- package/dist/components/ui/Table/TableActionsCell.d.ts +6 -0
- package/dist/components/ui/Table/TableCaption.d.ts +7 -0
- package/dist/components/ui/Table/TableCell.d.ts +27 -0
- package/dist/components/ui/Table/TableCellAsyncContent.d.ts +4 -0
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +8 -0
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +5 -0
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +9 -0
- package/dist/components/ui/Table/TableFilter.d.ts +6 -0
- package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +9 -0
- package/dist/components/ui/Table/TableHeader.d.ts +8 -0
- package/dist/components/ui/Table/TableHeaderCell.d.ts +9 -0
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +7 -0
- package/dist/components/ui/Table/TableMenu.d.ts +5 -0
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +8 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +5 -0
- package/dist/components/ui/Table/classNames.d.ts +8 -0
- package/dist/components/ui/Table/index.d.ts +12 -0
- package/dist/components/ui/Table/index.js +2 -0
- package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +7 -0
- package/dist/components/ui/UserFeedbackDialog/index.d.ts +1 -0
- package/dist/components/ui/UserFeedbackDialog/index.js +117 -0
- package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -0
- package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js +40 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -0
- package/dist/constants/query.d.ts +21 -0
- package/dist/constants/query.js +46 -0
- package/dist/constants/query.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +26 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/useIdentifierIssuerOwnOrganizationQuery.d.ts +5 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +22 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/useIdentifierIssuerQuery.d.ts +8 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +21 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/useInviteUserConstraintsQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +32 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/useOrganizationAdminPoliciesQuery.d.ts +7 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +13 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/useOrganizationIdentifierIssuerLinksQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js +22 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationsQuery/useOrganizationsQuery.d.ts +6 -0
- package/dist/dataHooks/useUsersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUsersQuery/index.js +23 -0
- package/dist/dataHooks/useUsersQuery/index.js.map +1 -0
- package/dist/dataHooks/useUsersQuery/useUsersQuery.d.ts +6 -0
- package/dist/hoc/withDialog/index.d.ts +1 -0
- package/dist/hoc/withDialog/index.js +69 -0
- package/dist/hoc/withDialog/index.js.map +1 -0
- package/dist/hoc/withDialog/withDialog.d.ts +33 -0
- package/dist/hoc/withPermissions/index.d.ts +1 -0
- package/dist/hoc/withPermissions/index.js +21 -0
- package/dist/hoc/withPermissions/index.js.map +1 -0
- package/dist/hoc/withPermissions/withPermissions.d.ts +10 -0
- package/dist/hooks/useColumnsMenu/index.d.ts +1 -0
- package/dist/hooks/useColumnsMenu/index.js +2 -0
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +6 -0
- package/dist/hooks/useCreateMutation/index.d.ts +1 -0
- package/dist/hooks/useCreateMutation/index.js +50 -0
- package/dist/hooks/useCreateMutation/index.js.map +1 -0
- package/dist/hooks/useCreateMutation/useCreateMutation.d.ts +21 -0
- package/dist/hooks/useDeleteMutation/index.d.ts +1 -0
- package/dist/hooks/useDeleteMutation/index.js +41 -0
- package/dist/hooks/useDeleteMutation/index.js.map +1 -0
- package/dist/hooks/useDeleteMutation/useDeleteMutation.d.ts +20 -0
- package/dist/hooks/useEditMutation/index.d.ts +1 -0
- package/dist/hooks/useEditMutation/index.js +57 -0
- package/dist/hooks/useEditMutation/index.js.map +1 -0
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +23 -0
- package/dist/hooks/useInitializeTableStore/index.d.ts +1 -0
- package/dist/hooks/useInitializeTableStore/index.js +28 -0
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -0
- package/dist/hooks/useInitializeTableStore/useInitializeTableStore.d.ts +11 -0
- package/dist/hooks/useItemQuery/index.d.ts +1 -0
- package/dist/hooks/useItemQuery/index.js +61 -0
- package/dist/hooks/useItemQuery/index.js.map +1 -0
- package/dist/hooks/useItemQuery/useItemQuery.d.ts +15 -0
- package/dist/hooks/useQueryMemo/index.d.ts +1 -0
- package/dist/hooks/useQueryMemo/index.js +2 -0
- package/dist/hooks/useQueryMemo/useQueryMemo.d.ts +2 -0
- package/dist/hooks/useUpdateBreadcrumb/index.d.ts +1 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js +15 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js.map +1 -0
- package/dist/hooks/useUpdateBreadcrumb/useUpdateBreadcrumb.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js +12 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js.map +1 -0
- package/dist/hooks/useUpdateDocumentTitle/useUpdateDocumentTitle.d.ts +1 -0
- package/dist/locale/en.json +294 -0
- package/dist/locale/nl.json +294 -0
- package/dist/models/admin.d.ts +7 -0
- package/dist/models/admin.js +8 -0
- package/dist/models/admin.js.map +1 -0
- package/dist/models/api.d.ts +9 -0
- package/dist/models/api.js +0 -0
- package/dist/models/auth.d.ts +11 -0
- package/dist/models/auth.js +0 -0
- package/dist/models/config.d.ts +77 -0
- package/dist/models/config.js +0 -0
- package/dist/models/data.d.ts +10 -0
- package/dist/models/data.js +0 -0
- package/dist/models/dataHooks.d.ts +17 -0
- package/dist/models/dataHooks.js +0 -0
- package/dist/models/filter.d.ts +34 -0
- package/dist/models/filter.js +0 -0
- package/dist/models/nestedMenu.d.ts +17 -0
- package/dist/models/nestedMenu.js +0 -0
- package/dist/models/notification.d.ts +11 -0
- package/dist/models/notification.js +0 -0
- package/dist/models/outage.d.ts +6 -0
- package/dist/models/outage.js +0 -0
- package/dist/models/reactRouter.d.ts +25 -0
- package/dist/models/reactRouter.js +0 -0
- package/dist/models/table.d.ts +149 -0
- package/dist/models/table.js +10 -0
- package/dist/models/table.js.map +1 -0
- package/dist/models/theme.d.ts +17 -0
- package/dist/models/theme.js +0 -0
- package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.js +61 -0
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -0
- package/dist/pages/AdminPage/AdminPage.d.ts +1 -0
- package/dist/pages/AdminPage/index.d.ts +1 -0
- package/dist/pages/AdminPage/index.js +83 -0
- package/dist/pages/AdminPage/index.js.map +1 -0
- package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +5 -0
- package/dist/pages/ChooseIdentityProviderPage/index.d.ts +1 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js +85 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -0
- package/dist/pages/CrudPage/CrudPage.d.ts +75 -0
- package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +12 -0
- package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +23 -0
- package/dist/pages/CrudPage/index.d.ts +1 -0
- package/dist/pages/CrudPage/index.js +2 -0
- package/dist/pages/ErrorPage/ErrorPage.d.ts +4 -0
- package/dist/pages/ErrorPage/index.d.ts +1 -0
- package/dist/pages/ErrorPage/index.js +19 -0
- package/dist/pages/ErrorPage/index.js.map +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js +69 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +98 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js +86 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js +68 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.js +132 -0
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -0
- package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.js +133 -0
- package/dist/pages/OutagesAdminPage/index.js.map +1 -0
- package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.js +26 -0
- package/dist/pages/PostLoginPage/index.js.map +1 -0
- package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.js +32 -0
- package/dist/pages/PostLogoutPage/index.js.map +1 -0
- package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.js +20 -0
- package/dist/pages/RouterErrorPage/index.js.map +1 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.js +2 -0
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +7 -0
- package/dist/pages/UsersAdminPage/index.d.ts +1 -0
- package/dist/pages/UsersAdminPage/index.js +206 -0
- package/dist/pages/UsersAdminPage/index.js.map +1 -0
- package/dist/routes/adminRoutes.d.ts +9 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +258 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/routes.d.ts +8 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +9 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/stores/oidcStore/index.d.ts +1 -0
- package/dist/stores/oidcStore/index.js +18 -0
- package/dist/stores/oidcStore/index.js.map +1 -0
- package/dist/stores/oidcStore/oidcStore.d.ts +22 -0
- package/dist/stores/outagesStore/index.d.ts +1 -0
- package/dist/stores/outagesStore/index.js +16 -0
- package/dist/stores/outagesStore/index.js.map +1 -0
- package/dist/stores/outagesStore/outagesStore.d.ts +12 -0
- package/dist/stores/tableStore/TableStoreContext.d.ts +3 -0
- package/dist/stores/tableStore/TableStoreContextProvider.d.ts +7 -0
- package/dist/stores/tableStore/index.d.ts +4 -0
- package/dist/stores/tableStore/index.js +2 -0
- package/dist/stores/tableStore/tableStore.d.ts +102 -0
- package/dist/stores/tableStore/useTableStoreContext.d.ts +3 -0
- package/dist/test/lib/index.d.ts +1 -0
- package/dist/test/lib/render.d.ts +2 -0
- package/dist/theme/demoTheme/demoTheme.d.ts +3 -0
- package/dist/theme/demoTheme/index.d.ts +1 -0
- package/dist/theme/demoTheme/index.js +337 -0
- package/dist/theme/demoTheme/index.js.map +1 -0
- package/dist/utils/AxiosUtil/AxiosUtil.d.ts +13 -0
- package/dist/utils/AxiosUtil/index.d.ts +1 -0
- package/dist/utils/AxiosUtil/index.js +38 -0
- package/dist/utils/AxiosUtil/index.js.map +1 -0
- package/dist/utils/DataHookUtil/DataHookUtil.d.ts +8 -0
- package/dist/utils/DataHookUtil/index.d.ts +1 -0
- package/dist/utils/DataHookUtil/index.js +77 -0
- package/dist/utils/DataHookUtil/index.js.map +1 -0
- package/dist/utils/LoadableUtil/LoadableUtil.d.ts +9 -0
- package/dist/utils/LoadableUtil/index.d.ts +1 -0
- package/dist/utils/LoadableUtil/index.js +25 -0
- package/dist/utils/LoadableUtil/index.js.map +1 -0
- package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +5 -0
- package/dist/utils/MenuDataUtil/index.d.ts +1 -0
- package/dist/utils/MenuDataUtil/index.js +19 -0
- package/dist/utils/MenuDataUtil/index.js.map +1 -0
- package/dist/utils/NotificationUtil/NotificationUtil.d.ts +4 -0
- package/dist/utils/NotificationUtil/index.d.ts +1 -0
- package/dist/utils/NotificationUtil/index.js +12 -0
- package/dist/utils/NotificationUtil/index.js.map +1 -0
- package/dist/utils/OutageUtil/OutageUtil.d.ts +5 -0
- package/dist/utils/OutageUtil/index.d.ts +1 -0
- package/dist/utils/OutageUtil/index.js +2 -0
- package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +4 -0
- package/dist/utils/StandardConfigUtil/index.d.ts +1 -0
- package/dist/utils/StandardConfigUtil/index.js +76 -0
- package/dist/utils/StandardConfigUtil/index.js.map +1 -0
- package/dist/utils/TableUtil/TableUtil.d.ts +90 -0
- package/dist/utils/TableUtil/index.d.ts +1 -0
- package/dist/utils/TableUtil/index.js +2 -0
- package/dist/utils/TimeUtil/TimeUtil.d.ts +3 -0
- package/dist/utils/TimeUtil/index.d.ts +1 -0
- package/dist/utils/TimeUtil/index.js +19 -0
- package/dist/utils/TimeUtil/index.js.map +1 -0
- package/dist/utils/UserManagerUtil/UserManagerUtil.d.ts +6 -0
- package/dist/utils/UserManagerUtil/index.d.ts +1 -0
- package/dist/utils/UserManagerUtil/index.js +31 -0
- package/dist/utils/UserManagerUtil/index.js.map +1 -0
- package/dist/utils/UserUtil/UserUtil.d.ts +5 -0
- package/dist/utils/UserUtil/index.d.ts +1 -0
- package/dist/utils/UserUtil/index.js +10 -0
- package/dist/utils/UserUtil/index.js.map +1 -0
- package/package.json +585 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.tsx","../../../../src/components/ui/ApplicationBar/InfoMenu.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsInfotem.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.tsx","../../../../src/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.tsx","../../../../src/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.tsx","../../../../src/components/ui/ApplicationBar/UserMenu.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsUserItem.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBarActions.tsx","../../../../src/components/ui/ApplicationBar/ApplicationBar.tsx"],"sourcesContent":["import {\n Box,\n IconButton,\n styled,\n useTheme,\n} from '@mui/material';\nimport MenuIcon from '@mui/icons-material/Menu';\nimport { useTranslation } from 'react-i18next';\nimport { NavLink as BaseNavLink } from 'react-router-dom';\nimport {\n useCallback,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react';\n\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport type { MyNonIndexRouteObject } from '../../../models/reactRouter';\nimport { RouterService } from '../../../classes/services/RouterService';\n\nconst NavLink = styled(BaseNavLink)(({ theme }) => ({\n '&:hover': {\n textDecoration: 'underline',\n },\n color: theme.palette.secondary.contrastText,\n display: 'inline-block',\n fontSize: '1.3rem',\n textDecoration: 'none',\n}));\n\nexport type ApplicationBarNavigationMenuProps = {\n readonly fullWidth?: boolean;\n};\n\nexport const ApplicationBarNavigationMenu = ({ fullWidth }: ApplicationBarNavigationMenuProps) => {\n const { t } = useTranslation();\n const theme = useTheme();\n const authorizationService = useMemo(() => AuthorizationService.getInstance(), []);\n const navId = useId();\n\n const menuItems = useMemo(() => {\n const rootItem = RouterService.getInstance().routes.find(r => r.handle.root);\n return [rootItem, ...rootItem.children.filter(r => !r.handle.hidden)] as MyNonIndexRouteObject[];\n }, []);\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n\n useEffect(() => {\n if (isMenuOpen) {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setIsMenuOpen(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [isMenuOpen]);\n\n const onMenuButtonClick = useCallback(() => {\n setIsMenuOpen(x => !x);\n }, []);\n\n return (\n <Box\n sx={{\n flexGrow: 1,\n }}\n >\n <IconButton\n aria-controls={navId}\n aria-label={t`Toggle navigation menu`}\n onClick={onMenuButtonClick}\n sx={{\n color: theme['gen-epix-ui'].navbar.primaryColor,\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n }}\n >\n <MenuIcon />\n </IconButton>\n <Box\n component={'nav'}\n id={navId}\n sx={{\n flexGrow: 1,\n [theme.breakpoints.down('md')]: {\n background: theme['gen-epix-ui'].navbar.background,\n display: isMenuOpen ? 'block' : 'none',\n left: 0,\n paddingBottom: 4,\n position: 'absolute',\n top: 48,\n width: '100%',\n },\n }}\n >\n <Box\n component={'ul'}\n sx={{\n display: 'flex',\n margin: 0,\n marginLeft: fullWidth ? 0 : 2,\n padding: 0,\n [theme.breakpoints.down('md')]: {\n display: 'block',\n margin: 0,\n },\n }}\n >\n {menuItems.filter(menuItem => !menuItem.handle.disabled && authorizationService.doesUserHavePermissionForRoute(menuItem)).map(menuItem => {\n return (\n <Box\n component={'li'}\n key={menuItem.path}\n sx={{\n '&:has(.active)': {\n '& svg': {\n color: theme['gen-epix-ui'].navbar.activeColor,\n },\n a: {\n color: theme['gen-epix-ui'].navbar.activeColor,\n },\n background: theme['gen-epix-ui'].navbar.activeBackground,\n },\n '& svg': {\n marginTop: '6px',\n },\n alignItems: 'center',\n color: theme['gen-epix-ui'].navbar.primaryColor,\n display: 'flex',\n fontWeight: 800,\n height: 48,\n listStyle: 'none',\n padding: `0 ${theme.spacing(1)}`,\n }}\n >\n <NavLink\n aria-label={menuItem.handle.title}\n sx={{\n padding: `0 ${theme.spacing(1)}`,\n }}\n to={menuItem.path}\n >\n {!!menuItem.handle.icon && menuItem.handle.icon}\n {!menuItem.handle.icon && menuItem.handle.title}\n </NavLink>\n </Box>\n );\n })}\n </Box>\n </Box>\n </Box>\n );\n};\n","import {\n Box,\n IconButton,\n Tooltip,\n useTheme,\n} from '@mui/material';\nimport {\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ChatIcon from '@mui/icons-material/Chat';\n\nimport { UserSettingsService } from '../../../classes/services/UserSettingsService';\nimport { UserFeedbackDialog } from '../UserFeedbackDialog';\nimport type { UserFeedbackDialogRefMethods } from '../UserFeedbackDialog';\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\nconst NOW = new Date().getTime();\n\nexport const ApplicationBarActionsFeedbackItem = () => {\n const { t } = useTranslation();\n const theme = useTheme();\n const userFeedbackDialogRef = useRef<UserFeedbackDialogRefMethods>(null);\n const [isFeedbackTooltipOpen, setIsFeedbackTooltipOpen] = useState(false);\n useEffect(() => {\n if (!UserSettingsService.getInstance().showShowUserFeedbackTooltip) {\n return;\n }\n const timeoutMs = Math.max(0, ConfigService.getInstance().config.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS - (new Date().getTime() - NOW));\n const handle = setTimeout(() => {\n setIsFeedbackTooltipOpen(true);\n }, timeoutMs);\n return () => {\n clearTimeout(handle);\n };\n }, []);\n\n const onUserFeedbackMenuIconClick = useCallback(() => {\n userFeedbackDialogRef.current.open();\n }, []);\n\n const onTooltipMouseEnter = useCallback(() => {\n setIsFeedbackTooltipOpen(false);\n UserSettingsService.getInstance().showShowUserFeedbackTooltip = false;\n }, []);\n\n return (\n <>\n <Tooltip\n arrow\n color={'secondary'}\n onMouseEnter={onTooltipMouseEnter}\n open={isFeedbackTooltipOpen}\n placement={'left'}\n slotProps={{\n arrow: {\n sx: {\n color: theme.palette.secondary.main,\n },\n },\n popper: {\n disablePortal: true,\n },\n tooltip: {\n sx: {\n backgroundColor: theme.palette.secondary.main,\n marginRight: `${theme.spacing(0.5)} !important`,\n },\n },\n }}\n title={t`Would you like to share your feedback?`}\n >\n <IconButton\n aria-label={t`Feedback`}\n color={'inherit'}\n onClick={onUserFeedbackMenuIconClick}\n >\n <ChatIcon color={'inherit'} />\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Feedback`}\n </Box>\n </IconButton>\n </Tooltip>\n <UserFeedbackDialog ref={userFeedbackDialogRef} />\n </>\n );\n};\n","import type { ReactElement } from 'react';\nimport {\n useCallback,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport {\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Popover,\n} from '@mui/material';\nimport CopyrightIcon from '@mui/icons-material/Copyright';\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy';\nimport DoneIcon from '@mui/icons-material/Done';\nimport { useTranslation } from 'react-i18next';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { StringUtil } from '@gen-epix/ui-core/utils/StringUtil';\n\nimport type { LicensesDialogRefMethods } from '../LicensesDialog';\nimport { LicensesDialog } from '../LicensesDialog';\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\ntype InfoMenuProps = {\n readonly anchorElement: HTMLElement;\n readonly onClose: () => void;\n};\n\nexport const InfoMenu = ({ anchorElement, onClose }: InfoMenuProps): ReactElement => {\n const popoverId = useMemo(() => StringUtil.createUuid(), []);\n const licensesDialogRef = useRef<LicensesDialogRefMethods>(null);\n const isInfoMenuOpen = !!anchorElement;\n const { t } = useTranslation();\n const [isCopied, setIsCopied] = useState(false);\n const onShowLicenseInformationButtonClick = useCallback(() => {\n licensesDialogRef.current.open();\n }, []);\n\n const onCopyVersionInformationButtonClick = useCallback(async () => {\n const versionInformation = `Frontend version: ${ConfigService.getInstance().config.getSoftwareVersion()}\\nBackend version: ${BackendVersionService.getInstance().version}\\nURL: ${window.location.href}\\nDate/time: ${new Date().toISOString()}`;\n await navigator.clipboard.writeText(versionInformation);\n setIsCopied(true);\n setTimeout(() => setIsCopied(false), 2000);\n }, []);\n\n return (\n <Popover\n {...TestIdUtil.createAttributes('InfoMenu')}\n anchorEl={anchorElement}\n anchorOrigin={{\n horizontal: 'right',\n vertical: 'bottom',\n }}\n id={isInfoMenuOpen ? popoverId : undefined}\n onClose={onClose}\n open={isInfoMenuOpen}\n transformOrigin={{\n horizontal: 'right',\n vertical: 'top',\n }}\n >\n <List\n sx={{\n maxWidth: 300,\n minWidth: 200,\n width: '100%',\n }}\n >\n <ListItem\n divider\n >\n <ListItemText\n primary={t('Frontend version')}\n secondary={ConfigService.getInstance().config.getSoftwareVersion()}\n slotProps={{\n primary: {\n sx: {\n color: 'primary.main',\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n <ListItem\n divider\n >\n <ListItemText\n primary={t('Backend version')}\n secondary={BackendVersionService.getInstance().version}\n slotProps={{\n primary: {\n sx: {\n color: 'primary.main',\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n <ListItem\n divider\n >\n <ListItemButton\n onClick={onCopyVersionInformationButtonClick}\n >\n <ListItemIcon>\n {isCopied ? <DoneIcon color={'success'} /> : <ContentCopyIcon color={'secondary'} />}\n </ListItemIcon>\n <ListItemText\n primary={t`Copy version information to clipboard`}\n slotProps={{\n primary: {\n sx: {\n color: 'secondary.main',\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItemButton>\n </ListItem>\n <ListItem>\n <ListItemButton\n onClick={onShowLicenseInformationButtonClick}\n >\n <ListItemIcon>\n <CopyrightIcon color={'secondary'} />\n </ListItemIcon>\n <ListItemText\n primary={t`Show license information`}\n slotProps={{\n primary: {\n sx: {\n color: 'secondary.main',\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItemButton>\n <LicensesDialog\n ref={licensesDialogRef}\n />\n </ListItem>\n\n </List>\n </Popover>\n );\n};\n","import {\n Box,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport CodeIcon from '@mui/icons-material/Code';\nimport {\n useCallback,\n useState,\n} from 'react';\nimport type { MouseEvent } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { InfoMenu } from './InfoMenu';\n\nexport const ApplicationBarActionsInfoItem = () => {\n const [infoMenuAnchorElement, setInfoMenuAnchorElement] = useState<HTMLElement | null>(null);\n const { t } = useTranslation();\n const theme = useTheme();\n\n const onInfoMenuIconClick = useCallback((event: MouseEvent<HTMLElement>): void => {\n setInfoMenuAnchorElement(event.currentTarget);\n }, []);\n\n const onInfoMenuClose = useCallback(() => {\n setInfoMenuAnchorElement(null);\n }, []);\n\n return (\n <>\n <IconButton\n color={'inherit'}\n onClick={onInfoMenuIconClick}\n title={'Code information'}\n >\n <CodeIcon color={'inherit'} />\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Code information`}\n </Box>\n </IconButton>\n {infoMenuAnchorElement && (\n <InfoMenu\n anchorElement={infoMenuAnchorElement}\n onClose={onInfoMenuClose}\n />\n )}\n\n </>\n );\n};\n","import {\n Badge,\n Box,\n CircularProgress,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport {\n useCallback,\n useMemo,\n useState,\n} from 'react';\nimport NotificationsIcon from '@mui/icons-material/Notifications';\nimport { useTranslation } from 'react-i18next';\nimport { useSubscribable } from '@gen-epix/ui-core/hooks/useSubscribable';\n\nimport { NotificationsDrawer } from '../Notifications';\nimport { NotificationService } from '../../../classes/services/NotificationService';\n\n\nexport const ApplicationBarActionsNotificationsItem = () => {\n const { t } = useTranslation();\n const theme = useTheme();\n const notifications = useSubscribable(NotificationService.getInstance());\n const isLoading = useMemo(() => notifications.some(x => x.isLoading), [notifications]);\n const [open, setOpen] = useState(false);\n\n\n const onMenuIconClick = useCallback(() => {\n NotificationService.getInstance().hideAllNotifications();\n setOpen(true);\n }, []);\n\n const onDrawerClose = useCallback(() => {\n setOpen(false);\n }, []);\n\n return (\n <>\n <IconButton\n aria-label={t`Notifications`}\n color={'inherit'}\n onClick={onMenuIconClick}\n title={t`Notifications`}\n >\n <Badge\n badgeContent={notifications.length}\n color={'secondary'}\n sx={{ '& .MuiBadge-badge': { border: '1px solid white', fontSize: 9, height: 15, minWidth: 15 } }}\n >\n <NotificationsIcon color={'inherit'} />\n </Badge>\n {isLoading && (\n <CircularProgress\n color={'inherit'}\n size={theme.spacing(3.5)}\n sx={{\n position: 'absolute',\n }}\n />\n )}\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Notifications`}\n </Box>\n </IconButton>\n <NotificationsDrawer\n onDrawerClose={onDrawerClose}\n open={open}\n />\n </>\n );\n};\n","import {\n Badge,\n Box,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport {\n useCallback,\n useMemo,\n useRef,\n} from 'react';\nimport ConstructionIcon from '@mui/icons-material/Construction';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\n\nimport { OutagesDialog } from '../OutagesDialog';\nimport type { OutagesDialogRefMethods } from '../OutagesDialog';\nimport { outagesStore } from '../../../stores/outagesStore';\n\nexport const ApplicationBarActionsOutagesItem = () => {\n const { t } = useTranslation();\n const theme = useTheme();\n const outagesDialogRef = useRef<OutagesDialogRefMethods>(null);\n const visibleOutages = useStore(outagesStore, (state) => state.visibleOutages);\n const activeOutages = useStore(outagesStore, (state) => state.activeOutages);\n const soonActiveOutages = useStore(outagesStore, (state) => state.soonActiveOutages);\n\n\n const badgeContent = useMemo<string>(() => {\n if (activeOutages.length > 0 || visibleOutages.length > 0 || soonActiveOutages.length > 0) {\n return '!';\n }\n return null;\n }, [activeOutages.length, soonActiveOutages.length, visibleOutages.length]);\n\n const onMenuIconClick = useCallback(() => {\n outagesDialogRef.current.open();\n }, []);\n\n\n return (\n <>\n <IconButton\n aria-label={t`Outages`}\n color={'inherit'}\n onClick={onMenuIconClick}\n title={t`Outages`}\n >\n <Badge\n badgeContent={badgeContent}\n color={'secondary'}\n sx={{ '& .MuiBadge-badge': { border: '1px solid white', fontSize: 9, height: 15, minWidth: 15 } }}\n >\n <ConstructionIcon color={'inherit'} />\n </Badge>\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Outages`}\n </Box>\n </IconButton>\n <OutagesDialog ref={outagesDialogRef} />\n </>\n );\n};\n","import {\n Link,\n ListItem,\n ListItemText,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport {\n CommonDbCommandName,\n CommonDbPermissionType,\n} from '@gen-epix/api-commondb';\n\nimport { withPermissions } from '../../../hoc/withPermissions';\nimport { useQueryMemo } from '../../../hooks/useQueryMemo';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { COMMON_QUERY_KEY } from '../../../constants/query';\nimport { ApiService } from '../../../classes/services/ApiService';\n\nexport const UserOrganizationAdminMenuItem = withPermissions(() => {\n const { t } = useTranslation();\n\n const { data: organizationAdminNameEmails, error: organizationAdminNameEmailsError, isLoading: isOrganizationAdminNameEmailsLoading } = useQueryMemo({\n gcTime: 0,\n queryFn: async ({ signal }) => (await ApiService.getInstance().abacApi.retrieveOrganizationAdminNameEmails({ signal })).data,\n queryKey: QueryClientService.getInstance().getGenericKey(COMMON_QUERY_KEY.ORGANIZATION_ADMIN_NAME_EMAILS),\n staleTime: 0,\n });\n\n return (\n <ListItem\n alignItems={'center'}\n sx={{\n justifyContent: 'center',\n paddingTop: 0,\n }}\n >\n <ListItemText\n primary={t`My organizations admins`}\n secondary={(\n <>\n {isOrganizationAdminNameEmailsLoading && t`Loading...`}\n {organizationAdminNameEmailsError && t`Error`}\n {organizationAdminNameEmails?.map(admin => (\n <Link\n href={`mailto:${admin.email}`}\n key={admin.id}\n sx={{\n display: 'table',\n }}\n >\n {admin.name ?? admin.email}\n </Link>\n ))}\n </>\n )}\n slotProps={{\n primary: {\n sx: {\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n );\n}, {\n requiredPermissions: [\n { command_name: CommonDbCommandName.RetrieveOrganizationAdminNameEmailsCommand, permission_type: CommonDbPermissionType.EXECUTE },\n ],\n});\n","import {\n ListItem,\n ListItemText,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { useMemo } from 'react';\nimport {\n CommonDbCommandName,\n CommonDbPermissionType,\n} from '@gen-epix/api-commondb';\n\nimport { withPermissions } from '../../../hoc/withPermissions';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport { useOrganizationMapQuery } from '../../../dataHooks/useOrganizationsQuery';\n\nexport const UserOwnOrganizationMenuItem = withPermissions(() => {\n const { t } = useTranslation();\n\n const organizationMapQuery = useOrganizationMapQuery();\n\n const userOrganization = useMemo(() => {\n if (organizationMapQuery.isLoading) {\n return t`Loading...`;\n }\n if (organizationMapQuery.error) {\n return t`Error`;\n }\n return organizationMapQuery.map.get(AuthorizationService.getInstance().user?.organization_id ?? '')?.name ?? t`Unknown`;\n }, [organizationMapQuery, t]);\n\n return (\n <ListItem\n sx={{\n paddingBottom: 0,\n }}\n >\n <ListItemText\n primary={t`My organization`}\n secondary={userOrganization ?? t`Unknown`}\n slotProps={{\n primary: {\n sx: {\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n );\n}, {\n requiredPermissions: [\n { command_name: CommonDbCommandName.RetrieveOrganizationAdminNameEmailsCommand, permission_type: CommonDbPermissionType.EXECUTE },\n ],\n});\n","import type { ReactElement } from 'react';\nimport {\n useCallback,\n useMemo,\n useRef,\n} from 'react';\nimport {\n Box,\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Popover,\n} from '@mui/material';\nimport LogoutIcon from '@mui/icons-material/Logout';\nimport KeyIcon from '@mui/icons-material/Key';\nimport { useTranslation } from 'react-i18next';\nimport { useAuth } from 'react-oidc-context';\nimport { CommonDbLogLevel } from '@gen-epix/api-commondb';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { StringUtil } from '@gen-epix/ui-core/utils/StringUtil';\n\nimport { Confirmation } from '../Confirmation';\nimport type { ConfirmationRefMethods } from '../Confirmation';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport type { MyPermissionsDialogRefMethods } from '../MyPermissionsDialog';\nimport { MyPermissionsDialog } from '../MyPermissionsDialog';\nimport { UserUtil } from '../../../utils/UserUtil';\n\nimport { UserOrganizationAdminMenuItem } from './UserOrganizationAdminMenuItem';\nimport { UserOwnOrganizationMenuItem } from './UserOwnOrganizationMenuItem';\n\ntype UserMenuProps = {\n readonly anchorElement: HTMLElement;\n readonly onClose: () => void;\n};\n\nexport const UserMenu = ({ anchorElement, onClose }: UserMenuProps): ReactElement => {\n const auth = useAuth();\n const logoutConfirmationRef = useRef<ConfirmationRefMethods>(null);\n const popoverId = useMemo(() => StringUtil.createUuid(), []);\n const isUserMenuOpen = !!anchorElement;\n const { t } = useTranslation();\n\n const myPermissionsDialogRef = useRef<MyPermissionsDialogRefMethods>(null);\n\n const onViewMyPermissionsButtonClick = useCallback(() => {\n myPermissionsDialogRef.current.open();\n }, []);\n\n const onLogoutButtonClick = useCallback(() => {\n logoutConfirmationRef.current.open();\n }, []);\n\n const onLogoutConfirmationConfirm = useCallback(() => {\n LogService.getInstance().log([{\n detail: auth.user,\n level: CommonDbLogLevel.TRACE,\n topic: 'USER_LOGOUT',\n }]);\n LogService.getInstance().flushLog();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n auth.signoutRedirect();\n }, [auth]);\n\n const userName = useMemo(() => {\n return UserUtil.getUserDisplayValue(AuthorizationService.getInstance().user, t);\n }, [t]);\n\n const userRoles = useMemo(() => {\n return AuthorizationService.getInstance().user?.roles;\n }, []);\n\n return (\n <Popover\n {...TestIdUtil.createAttributes('UserMenu')}\n anchorEl={anchorElement}\n anchorOrigin={{\n horizontal: 'right',\n vertical: 'bottom',\n }}\n id={isUserMenuOpen ? popoverId : undefined}\n onClose={onClose}\n open={isUserMenuOpen}\n transformOrigin={{\n horizontal: 'right',\n vertical: 'top',\n }}\n >\n <List\n sx={{\n maxWidth: 300,\n minWidth: 200,\n width: '100%',\n }}\n >\n <ListItem\n divider\n >\n <ListItemText\n primary={userName ?? t`Unknown`}\n slotProps={{\n primary: {\n sx: {\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n <UserOwnOrganizationMenuItem />\n <UserOrganizationAdminMenuItem />\n <ListItem\n divider\n sx={{\n paddingTop: 0,\n }}\n >\n <ListItemText\n primary={t`My roles`}\n secondary={(\n <>\n {userRoles?.map((role) => (\n <Box\n component={'span'}\n key={role}\n sx={{\n display: 'inline-block',\n marginRight: 1,\n }}\n >\n {role}\n </Box>\n ))}\n </>\n )}\n slotProps={{\n primary: {\n sx: {\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItem>\n <ListItem\n alignItems={'center'}\n divider\n sx={{ justifyContent: 'center' }}\n >\n <ListItemButton\n onClick={onViewMyPermissionsButtonClick}\n >\n <ListItemIcon>\n <KeyIcon color={'primary'} />\n </ListItemIcon>\n <ListItemText\n primary={t`My API permissions`}\n slotProps={{\n primary: {\n sx: {\n color: 'primary.main',\n },\n },\n }}\n />\n </ListItemButton>\n <MyPermissionsDialog\n ref={myPermissionsDialogRef}\n />\n </ListItem>\n <ListItem\n alignItems={'center'}\n sx={{ justifyContent: 'center' }}\n >\n <ListItemButton\n onClick={onLogoutButtonClick}\n >\n <ListItemIcon>\n <LogoutIcon color={'secondary'} />\n </ListItemIcon>\n <ListItemText\n primary={t`Logout`}\n slotProps={{\n primary: {\n sx: {\n color: 'secondary.main',\n fontWeight: 'bold',\n },\n },\n }}\n />\n </ListItemButton>\n <Confirmation\n body={t`Click the logout button to logout`}\n cancelLabel={t`Cancel`}\n confirmLabel={t`Logout`}\n onConfirm={onLogoutConfirmationConfirm}\n ref={logoutConfirmationRef}\n title={t`Are you sure you want to logout?`}\n />\n </ListItem>\n </List>\n </Popover>\n );\n};\n","import {\n Box,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport AccountCircleIcon from '@mui/icons-material/AccountCircle';\nimport {\n useCallback,\n useState,\n} from 'react';\nimport type { MouseEvent } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { UserMenu } from './UserMenu';\n\nexport const ApplicationBarActionsUserItem = () => {\n const { t } = useTranslation();\n const theme = useTheme();\n const [accountMenuAnchorElement, setAccountMenuAnchorElement] = useState<HTMLElement | null>(null);\n\n const onAccountMenuIconClick = useCallback((event: MouseEvent<HTMLElement>): void => {\n setAccountMenuAnchorElement(event.currentTarget);\n }, []);\n\n const onAccountMenuClose = useCallback(() => {\n setAccountMenuAnchorElement(null);\n }, []);\n\n return (\n <>\n <IconButton\n color={'inherit'}\n onClick={onAccountMenuIconClick}\n title={'Account'}\n >\n <AccountCircleIcon color={'inherit'} />\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Account`}\n </Box>\n </IconButton>\n {accountMenuAnchorElement && (\n <UserMenu\n anchorElement={accountMenuAnchorElement}\n onClose={onAccountMenuClose}\n />\n )}\n\n </>\n );\n};\n","import {\n Box,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport {\n useCallback,\n useRef,\n} from 'react';\nimport ChangeCircleIcon from '@mui/icons-material/ChangeCircle';\nimport { useTranslation } from 'react-i18next';\n\nimport { OrganizationSwitcherDialog } from '../OrganizationSwitcherDialog';\nimport type { OrganizationSwitcherDialogRefMethods } from '../OrganizationSwitcherDialog';\nimport { FeatureFlagsService } from '../../../classes/services/FeatureFlagsService';\n\n\nexport const ApplicationBarActionsOrganizationSwitcherItem = () => {\n const { t } = useTranslation();\n const theme = useTheme();\n const organizationSwitcherDialogRef = useRef<OrganizationSwitcherDialogRefMethods>(null);\n\n\n const onMenuIconClick = useCallback(() => {\n organizationSwitcherDialogRef.current.open();\n }, []);\n\n if (!FeatureFlagsService.getInstance().featureFlags.update_own_organization) {\n return null;\n }\n\n return (\n <>\n <IconButton\n aria-label={t`Change organization`}\n color={'inherit'}\n onClick={onMenuIconClick}\n title={t`Change organization`}\n >\n <ChangeCircleIcon color={'inherit'} />\n <Box\n sx={{\n fontSize: '1.3rem',\n marginLeft: theme.spacing(1),\n [theme.breakpoints.up('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t`Change organization`}\n </Box>\n </IconButton>\n <OrganizationSwitcherDialog ref={organizationSwitcherDialogRef} />\n </>\n );\n};\n","import {\n Box,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport MoreVertIcon from '@mui/icons-material/MoreVert';\nimport { useTranslation } from 'react-i18next';\nimport {\n useCallback,\n useEffect,\n useId,\n useState,\n} from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\nimport { ApplicationBarActionsFeedbackItem } from './ApplicationBarActionsFeedbackItem';\nimport { ApplicationBarActionsInfoItem } from './ApplicationBarActionsInfotem';\nimport { ApplicationBarActionsNotificationsItem } from './ApplicationBarActionsNotificationsItem';\nimport { ApplicationBarActionsOutagesItem } from './ApplicationBarActionsOutagesItem';\nimport { ApplicationBarActionsUserItem } from './ApplicationBarActionsUserItem';\nimport { ApplicationBarActionsOrganizationSwitcherItem } from './ApplicationBarActionsOrganizationSwitcherItem';\n\nexport type ApplicationBarActionsProps = {\n readonly fullWidth?: boolean;\n};\n\nexport const ApplicationBarActions = ({ fullWidth }: ApplicationBarActionsProps) => {\n const theme = useTheme();\n const { t } = useTranslation();\n const environmentMessage = ConfigService.getInstance().config.getEnvironmentMessage();\n const navId = useId();\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n\n const onMenuButtonClick = useCallback(() => {\n setIsMenuOpen(x => !x);\n }, []);\n\n useEffect(() => {\n if (isMenuOpen) {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setIsMenuOpen(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [isMenuOpen]);\n\n return (\n <Box\n {...TestIdUtil.createAttributes('ApplicationBarActions')}\n sx={{\n alignItems: 'center',\n display: 'flex',\n paddingRight: 1,\n }}\n >\n <IconButton\n aria-controls={navId}\n aria-label={t`Toggle menu`}\n onClick={onMenuButtonClick}\n sx={{\n color: theme['gen-epix-ui'].navbar.primaryColor,\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n }}\n >\n <MoreVertIcon />\n </IconButton>\n <Box\n id={navId}\n sx={{\n display: 'flex',\n [theme.breakpoints.down('md')]: {\n alignItems: 'start',\n background: theme['gen-epix-ui'].navbar.background,\n display: isMenuOpen ? 'flex' : 'none',\n flexDirection: 'column',\n left: 0,\n position: 'absolute',\n right: 0,\n top: theme.spacing(6),\n zIndex: theme.zIndex.appBar - 1,\n },\n }}\n >\n <ApplicationBarActionsFeedbackItem />\n <ApplicationBarActionsOutagesItem />\n <ApplicationBarActionsNotificationsItem />\n <ApplicationBarActionsInfoItem />\n <ApplicationBarActionsOrganizationSwitcherItem />\n <ApplicationBarActionsUserItem />\n {environmentMessage && (\n <Box\n {...TestIdUtil.createAttributes('ApplicationBarActions-EnvironmentMessage')}\n aria-hidden={'true'}\n sx={{\n alignItems: 'center',\n color: theme['gen-epix-ui'].navbar.environmentMessageColor,\n display: 'flex',\n fontWeight: 700,\n marginRight: fullWidth ? 0 : 1,\n padding: `0 ${theme.spacing(1)} !important`,\n textTransform: 'uppercase',\n [theme.breakpoints.down('md')]: {\n position: 'absolute',\n visibility: 'hidden',\n },\n }}\n >\n {t('{{environmentMessage}}', { environmentMessage })}\n </Box>\n )}\n </Box>\n </Box>\n );\n};\n","import {\n AppBar,\n Box,\n Container,\n Toolbar,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\nimport { ApplicationBarNavigationMenu } from './ApplicationBarNavigationMenu';\nimport { ApplicationBarActions } from './ApplicationBarActions';\n\nexport type ApplicationBarProps = {\n readonly fullHeight?: boolean;\n readonly fullWidth?: boolean;\n readonly singleAction?: boolean;\n};\n\nexport const ApplicationBar = ({\n fullWidth,\n singleAction,\n}: ApplicationBarProps) => {\n const theme = useTheme();\n\n return (\n <AppBar\n {...TestIdUtil.createAttributes('ApplicationBar')}\n position={'static'}\n square\n sx={{\n background: theme['gen-epix-ui'].navbar.background,\n boxShadow: 'none',\n }}\n >\n <Container\n disableGutters\n maxWidth={fullWidth ? false : 'xl'}\n >\n <Toolbar\n disableGutters\n sx={{\n height: 48,\n justifyContent: singleAction ? 'center' : 'space-between',\n minHeight: '48px !important',\n }}\n >\n {singleAction && (\n <Box\n sx={{\n marginX: 2,\n }}\n >\n <Typography\n component={'h1'}\n sx={{\n color: theme['gen-epix-ui'].navbar.primaryColor,\n fontSize: '1.3rem',\n }}\n variant={'body2'}\n >\n {ConfigService.getInstance().config.applicationName}\n </Typography>\n </Box>\n )}\n {!singleAction && (\n <>\n <ApplicationBarNavigationMenu fullWidth={fullWidth} />\n <ApplicationBarActions fullWidth={fullWidth} />\n </>\n )}\n </Toolbar>\n </Container>\n </AppBar>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAM,KAAU,EAAO,CAAW,CAAC,EAAE,EAAE,gBAAa;CAClD,WAAW,EACT,gBAAgB,YAClB;CACA,OAAO,EAAM,QAAQ,UAAU;CAC/B,SAAS;CACT,UAAU;CACV,gBAAgB;AAClB,EAAE,GAMW,MAAgC,EAAE,mBAAmD;CAChG,IAAM,EAAE,MAAM,EAAe,GACvB,IAAQ,EAAS,GACjB,IAAuB,QAAc,EAAqB,YAAY,GAAG,CAAC,CAAC,GAC3E,IAAQ,EAAM,GAEd,IAAY,QAAc;EAC9B,IAAM,IAAW,EAAc,YAAY,CAAC,CAAC,OAAO,MAAK,MAAK,EAAE,OAAO,IAAI;EAC3E,OAAO,CAAC,GAAU,GAAG,EAAS,SAAS,QAAO,MAAK,CAAC,EAAE,OAAO,MAAM,CAAC;CACtE,GAAG,CAAC,CAAC,GAEC,CAAC,GAAY,KAAiB,EAAS,EAAK;CAElD,QAAgB;EACd,IAAI,GAAY;GACd,IAAM,KAAiB,MAAyB;IAC9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,OAAO;KAC1B,CAAA;IACT,CAAA,GAEN,CAAC,KACA,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,IAAD,EAAyC,aAAY,CAAA,GACrD,kBAAC,IAAD,EAAkC,aAAY,CAAA,CAC9C,EAAA,CAAA,CAEG;;EACA,CAAA;CACL,CAAA;AAEZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type ApplicationFooterLinkProps = BoxProps<'li'> & PropsWithChildren<{
|
|
4
|
+
readonly href?: string;
|
|
5
|
+
readonly onClick?: () => void;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const ApplicationFooterLink: ({ children, href, onClick, ...boxProps }: ApplicationFooterLinkProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type ApplicationFooterLinkSectionProps = PropsWithChildren<{
|
|
3
|
+
readonly header: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const ApplicationFooterLinkSection: ({ children, header }: ApplicationFooterLinkSectionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ApplicationFooter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BackdropSpinner';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Spinner as e } from "../Spinner/index.js";
|
|
2
|
+
import { Backdrop as t, useTheme as n } from "@mui/material";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/BackdropSpinner/BackdropSpinner.tsx
|
|
5
|
+
var i = ({ open: i, ...a }) => {
|
|
6
|
+
let o = n();
|
|
7
|
+
return /* @__PURE__ */ r(t, {
|
|
8
|
+
open: i,
|
|
9
|
+
sx: {
|
|
10
|
+
backgroundColor: o.palette.mode === "light" ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.5)",
|
|
11
|
+
zIndex: o.zIndex.drawer + 1
|
|
12
|
+
},
|
|
13
|
+
children: i && /* @__PURE__ */ r(e, { ...a })
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as BackdropSpinner };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/BackdropSpinner/BackdropSpinner.tsx"],"sourcesContent":["import {\n Backdrop,\n useTheme,\n} from '@mui/material';\n\nimport type { SpinnerProps } from '../Spinner';\nimport { Spinner } from '../Spinner';\n\nexport type BackdropSpinnerProps = {\n readonly open: boolean;\n} & Omit<SpinnerProps, 'inline'>;\n\nexport const BackdropSpinner = ({ open, ...spinnerProps }: BackdropSpinnerProps) => {\n const theme = useTheme();\n return (\n <Backdrop\n open={open}\n sx={{\n backgroundColor: theme.palette.mode === 'light' ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.5)',\n zIndex: theme.zIndex.drawer + 1,\n }}\n >\n {open && (\n <Spinner\n {...spinnerProps}\n />\n )}\n </Backdrop>\n );\n};\n"],"mappings":";;;;AAYA,IAAa,KAAmB,EAAE,SAAM,GAAG,QAAyC;CAClF,IAAM,IAAQ,EAAS;CACvB,OACE,kBAAC,GAAD;EACQ;EACN,IAAI;GACF,iBAAiB,EAAM,QAAQ,SAAS,UAAU,6BAA6B;GAC/E,QAAQ,EAAM,OAAO,SAAS;EAChC;YAEC,KACC,kBAAC,GAAD,EACE,GAAI,EACL,CAAA;CAEK,CAAA;AAEd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { UIMatch } from 'react-router';
|
|
3
|
+
import { MyNonIndexRouteObject } from '../../../models/reactRouter';
|
|
4
|
+
type BreadcrumbProps = {
|
|
5
|
+
readonly isLast: boolean;
|
|
6
|
+
readonly item: UIMatch<unknown, MyNonIndexRouteObject['handle']>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Breadcrumb: ({ isLast, item }: BreadcrumbProps) => ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Breadcrumbs: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Breadcrumbs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { WithDialogRefMethods, WithDialogRenderProps } from '../../../hoc/withDialog';
|
|
3
|
+
export interface ConfirmationProps<TOpenProps = never> extends WithDialogRenderProps<TOpenProps> {
|
|
4
|
+
readonly body?: string;
|
|
5
|
+
readonly cancelLabel?: string;
|
|
6
|
+
readonly confirmLabel: string;
|
|
7
|
+
readonly onCancel?: (openProps: TOpenProps) => void;
|
|
8
|
+
readonly onConfirm: (openProps: TOpenProps) => void;
|
|
9
|
+
}
|
|
10
|
+
export type ConfirmationRefMethods<TOpenProps = never> = WithDialogRefMethods<ConfirmationProps, TOpenProps>;
|
|
11
|
+
export declare const ConfirmationRender: <TOpenProps>({ body, cancelLabel, confirmLabel, onActionsChange, onCancel, onClose, onConfirm, openProps, }: ConfirmationProps<TOpenProps>) => ReactElement;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { withDialog as e } from "../../../hoc/withDialog/index.js";
|
|
2
|
+
import { DialogContentText as t } from "@mui/material";
|
|
3
|
+
import { useCallback as n, useEffect as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { useTranslation as a } from "react-i18next";
|
|
6
|
+
import { TestIdUtil as o } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
7
|
+
//#region src/components/ui/Confirmation/ConfirmationRender.tsx
|
|
8
|
+
var s = ({ body: e, cancelLabel: s, confirmLabel: c, onActionsChange: l, onCancel: u, onClose: d, onConfirm: f, openProps: p }) => {
|
|
9
|
+
let { t: m } = a(), h = n(() => {
|
|
10
|
+
u && u(p), d();
|
|
11
|
+
}, [
|
|
12
|
+
u,
|
|
13
|
+
d,
|
|
14
|
+
p
|
|
15
|
+
]), g = n(() => {
|
|
16
|
+
f(p), d();
|
|
17
|
+
}, [
|
|
18
|
+
f,
|
|
19
|
+
p,
|
|
20
|
+
d
|
|
21
|
+
]);
|
|
22
|
+
return r(() => {
|
|
23
|
+
let e = [];
|
|
24
|
+
s && e.push({
|
|
25
|
+
...o.createAttributes("Confirmation-cancelButton"),
|
|
26
|
+
color: "primary",
|
|
27
|
+
label: s ?? m`Cancel`,
|
|
28
|
+
onClick: h,
|
|
29
|
+
variant: "outlined"
|
|
30
|
+
}), e.push({
|
|
31
|
+
...o.createAttributes("Confirmation-confirmButton"),
|
|
32
|
+
autoFocus: !0,
|
|
33
|
+
color: "secondary",
|
|
34
|
+
label: c ?? m`OK`,
|
|
35
|
+
onClick: g,
|
|
36
|
+
variant: "contained"
|
|
37
|
+
}), l(e);
|
|
38
|
+
}, [
|
|
39
|
+
s,
|
|
40
|
+
h,
|
|
41
|
+
c,
|
|
42
|
+
g,
|
|
43
|
+
l,
|
|
44
|
+
u,
|
|
45
|
+
m
|
|
46
|
+
]), e ? /* @__PURE__ */ i(t, {
|
|
47
|
+
...o.createAttributes("Confirmation-textContent"),
|
|
48
|
+
children: e
|
|
49
|
+
}) : null;
|
|
50
|
+
}, c = e(s, {
|
|
51
|
+
fullWidth: !0,
|
|
52
|
+
maxWidth: "sm",
|
|
53
|
+
testId: "Confirmation"
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { c as Confirmation, s as ConfirmationRender };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/Confirmation/ConfirmationRender.tsx","../../../../src/components/ui/Confirmation/Confirmation.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport {\n useCallback,\n useEffect,\n} from 'react';\nimport { DialogContentText } from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport type { DialogAction } from '../Dialog/Dialog';\nimport type {\n WithDialogRefMethods,\n WithDialogRenderProps,\n} from '../../../hoc/withDialog';\n\nexport interface ConfirmationProps<TOpenProps = never> extends WithDialogRenderProps<TOpenProps> {\n readonly body?: string;\n readonly cancelLabel?: string;\n readonly confirmLabel: string;\n readonly onCancel?: (openProps: TOpenProps) => void;\n readonly onConfirm: (openProps: TOpenProps) => void;\n}\n\nexport type ConfirmationRefMethods<TOpenProps = never> = WithDialogRefMethods<ConfirmationProps, TOpenProps>;\n\nexport const ConfirmationRender = <TOpenProps,>(\n {\n body,\n cancelLabel,\n confirmLabel,\n onActionsChange,\n onCancel,\n onClose,\n onConfirm,\n openProps,\n }: ConfirmationProps<TOpenProps>,\n): ReactElement => {\n const { t } = useTranslation();\n const onCancelButtonClick = useCallback((): void => {\n if (onCancel) {\n onCancel(openProps);\n }\n onClose();\n }, [onCancel, onClose, openProps]);\n\n const onConfirmButtonClick = useCallback((): void => {\n onConfirm(openProps);\n onClose();\n }, [onConfirm, openProps, onClose]);\n\n useEffect(() => {\n const actions: DialogAction[] = [];\n if (cancelLabel) {\n actions.push({\n ...TestIdUtil.createAttributes('Confirmation-cancelButton'),\n color: 'primary',\n label: cancelLabel ?? t`Cancel`,\n onClick: onCancelButtonClick,\n variant: 'outlined',\n });\n }\n actions.push({\n ...TestIdUtil.createAttributes('Confirmation-confirmButton'),\n autoFocus: true,\n color: 'secondary',\n label: confirmLabel ?? t`OK`,\n onClick: onConfirmButtonClick,\n variant: 'contained',\n });\n onActionsChange(actions);\n }, [cancelLabel, onCancelButtonClick, confirmLabel, onConfirmButtonClick, onActionsChange, onCancel, t]);\n\n if (!body) {\n return null;\n }\n return (\n <DialogContentText {...TestIdUtil.createAttributes('Confirmation-textContent')}>\n {body}\n </DialogContentText>\n );\n};\n","import { withDialog } from '../../../hoc/withDialog';\n\nimport type { ConfirmationProps } from './ConfirmationRender';\nimport { ConfirmationRender } from './ConfirmationRender';\n\nexport const Confirmation = withDialog<ConfirmationProps, unknown>(ConfirmationRender, {\n fullWidth: true,\n maxWidth: 'sm',\n testId: 'Confirmation',\n});\n"],"mappings":";;;;;;;AAyBA,IAAa,KACX,EACE,SACA,gBACA,iBACA,oBACA,aACA,YACA,cACA,mBAEe;CACjB,IAAM,EAAE,SAAM,EAAe,GACvB,IAAsB,QAAwB;EAIlD,AAHI,KACF,EAAS,CAAS,GAEpB,EAAQ;CACV,GAAG;EAAC;EAAU;EAAS;CAAS,CAAC,GAE3B,IAAuB,QAAwB;EAEnD,AADA,EAAU,CAAS,GACnB,EAAQ;CACV,GAAG;EAAC;EAAW;EAAW;CAAO,CAAC;CA2BlC,OAzBA,QAAgB;EACd,IAAM,IAA0B,CAAC;EAkBjC,AAjBI,KACF,EAAQ,KAAK;GACX,GAAG,EAAW,iBAAiB,2BAA2B;GAC1D,OAAO;GACP,OAAO,KAAe,CAAC;GACvB,SAAS;GACT,SAAS;EACX,CAAC,GAEH,EAAQ,KAAK;GACX,GAAG,EAAW,iBAAiB,4BAA4B;GAC3D,WAAW;GACX,OAAO;GACP,OAAO,KAAgB,CAAC;GACxB,SAAS;GACT,SAAS;EACX,CAAC,GACD,EAAgB,CAAO;CACzB,GAAG;EAAC;EAAa;EAAqB;EAAc;EAAsB;EAAiB;EAAU;CAAC,CAAC,GAElG,IAIH,kBAAC,GAAD;EAAmB,GAAI,EAAW,iBAAiB,0BAA0B;YAC1E;CACgB,CAAA,IALZ;AAOX,GC3Ea,IAAe,EAAuC,GAAoB;CACrF,WAAW;CACX,UAAU;CACV,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WithDialogRefMethods, WithDialogRenderProps } from '../../../hoc/withDialog';
|
|
2
|
+
export interface ConsentDialogOpenProps {
|
|
3
|
+
}
|
|
4
|
+
export interface ConsentDialogProps extends WithDialogRenderProps<ConsentDialogOpenProps> {
|
|
5
|
+
readonly onConsent: () => void;
|
|
6
|
+
}
|
|
7
|
+
export type ConsentDialogRefMethods = WithDialogRefMethods<ConsentDialogProps, ConsentDialogOpenProps>;
|
|
8
|
+
export declare const ConsentDialog: import('react').ComponentClass<ConsentDialogProps, import('../../../hoc/withDialog').WithDialogState<ConsentDialogOpenProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConsentDialog';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ConfigService as e } from "../../../classes/services/ConfigService/index.js";
|
|
2
|
+
import { withDialog as t } from "../../../hoc/withDialog/index.js";
|
|
3
|
+
import { useEffect as n } from "react";
|
|
4
|
+
import { useTranslation as r } from "react-i18next";
|
|
5
|
+
import { TestIdUtil as i } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
6
|
+
//#region src/components/ui/ConsentDialog/ConsentDialog.tsx
|
|
7
|
+
var a = t(({ onActionsChange: t, onConsent: a, onTitleChange: o }) => {
|
|
8
|
+
let { t: s } = r();
|
|
9
|
+
return n(() => {
|
|
10
|
+
o(e.getInstance().config.consentDialog.getTitle());
|
|
11
|
+
}, [o, s]), n(() => {
|
|
12
|
+
t([{
|
|
13
|
+
...i.createAttributes("ConsentDialog-agree"),
|
|
14
|
+
autoFocus: !0,
|
|
15
|
+
color: "secondary",
|
|
16
|
+
label: e.getInstance().config.consentDialog.getButtonLabel(),
|
|
17
|
+
onClick: a,
|
|
18
|
+
variant: "contained"
|
|
19
|
+
}]);
|
|
20
|
+
}, [
|
|
21
|
+
t,
|
|
22
|
+
a,
|
|
23
|
+
s
|
|
24
|
+
]), e.getInstance().config.consentDialog.Content();
|
|
25
|
+
}, {
|
|
26
|
+
defaultTitle: "",
|
|
27
|
+
disableBackdropClick: !0,
|
|
28
|
+
fullWidth: !0,
|
|
29
|
+
maxWidth: "md",
|
|
30
|
+
noCloseButton: !0,
|
|
31
|
+
testId: "ConsentDialog"
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as ConsentDialog };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/ConsentDialog/ConsentDialog.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next';\nimport type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport type {\n WithDialogRefMethods,\n WithDialogRenderProps,\n} from '../../../hoc/withDialog';\nimport { withDialog } from '../../../hoc/withDialog';\n\nexport interface ConsentDialogOpenProps {\n //\n}\n\nexport interface ConsentDialogProps extends WithDialogRenderProps<ConsentDialogOpenProps> {\n readonly onConsent: () => void;\n}\n\nexport type ConsentDialogRefMethods = WithDialogRefMethods<ConsentDialogProps, ConsentDialogOpenProps>;\n\nexport const ConsentDialog = withDialog<ConsentDialogProps, ConsentDialogOpenProps>((\n {\n onActionsChange,\n onConsent,\n onTitleChange,\n }: ConsentDialogProps,\n): ReactElement => {\n const { t } = useTranslation();\n\n useEffect(() => {\n onTitleChange(ConfigService.getInstance().config.consentDialog.getTitle());\n }, [onTitleChange, t]);\n\n useEffect(() => {\n onActionsChange([\n {\n ...TestIdUtil.createAttributes('ConsentDialog-agree'),\n autoFocus: true,\n color: 'secondary',\n label: ConfigService.getInstance().config.consentDialog.getButtonLabel(),\n onClick: onConsent,\n variant: 'contained',\n },\n ]);\n }, [onActionsChange, onConsent, t]);\n\n return ConfigService.getInstance().config.consentDialog.Content();\n}, {\n defaultTitle: '',\n disableBackdropClick: true,\n fullWidth: true,\n maxWidth: 'md',\n noCloseButton: true,\n testId: 'ConsentDialog',\n});\n"],"mappings":";;;;;;AAsBA,IAAa,IAAgB,GAC3B,EACE,oBACA,cACA,uBAEe;CACjB,IAAM,EAAE,SAAM,EAAe;CAmB7B,OAjBA,QAAgB;EACd,EAAc,EAAc,YAAY,CAAC,CAAC,OAAO,cAAc,SAAS,CAAC;CAC3E,GAAG,CAAC,GAAe,CAAC,CAAC,GAErB,QAAgB;EACd,EAAgB,CACd;GACE,GAAG,EAAW,iBAAiB,qBAAqB;GACpD,WAAW;GACX,OAAO;GACP,OAAO,EAAc,YAAY,CAAC,CAAC,OAAO,cAAc,eAAe;GACvE,SAAS;GACT,SAAS;EACX,CACF,CAAC;CACH,GAAG;EAAC;EAAiB;EAAW;CAAC,CAAC,GAE3B,EAAc,YAAY,CAAC,CAAC,OAAO,cAAc,QAAQ;AAClE,GAAG;CACD,cAAc;CACd,sBAAsB;CACtB,WAAW;CACX,UAAU;CACV,eAAe;CACf,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonOwnProps } from '@mui/material';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export type CopyToClipboardButtonProps = {
|
|
4
|
+
readonly baseIcon?: ReactElement;
|
|
5
|
+
readonly buttonProps?: ButtonOwnProps;
|
|
6
|
+
readonly buttonText?: string;
|
|
7
|
+
readonly buttonVariant?: ButtonOwnProps['variant'];
|
|
8
|
+
readonly clipboardValue?: string;
|
|
9
|
+
readonly iconOnly?: boolean;
|
|
10
|
+
readonly onGetClipboardValue?: () => string;
|
|
11
|
+
readonly tooltipSuccessText?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const CopyToClipboardButton: ({ baseIcon, buttonProps, buttonText, buttonVariant, clipboardValue, iconOnly, onGetClipboardValue, tooltipSuccessText }: CopyToClipboardButtonProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CopyToClipboardButton';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { n as e, t } from "../../../_chunks/rolldown-runtime.js";
|
|
2
|
+
import { Button as n, IconButton as r, Tooltip as i } from "@mui/material";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { useState as o } from "react";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { useTranslation as c } from "react-i18next";
|
|
7
|
+
import l from "@mui/icons-material/ContentCopy";
|
|
8
|
+
import u from "@mui/icons-material/Done";
|
|
9
|
+
import d from "@mui/icons-material/Error";
|
|
10
|
+
//#region builtin:esm-external-require-react
|
|
11
|
+
var f = /* @__PURE__ */ t(((e, t) => {
|
|
12
|
+
t.exports = { ...a };
|
|
13
|
+
})), p = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
14
|
+
var n = f();
|
|
15
|
+
function r(e) {
|
|
16
|
+
var t = e.cleanup;
|
|
17
|
+
e.isCalled || typeof t != "function" || (e.isCalled = !0, t());
|
|
18
|
+
}
|
|
19
|
+
t.exports = function(e, t, i) {
|
|
20
|
+
var a = i === void 0 ? {} : i, o = a.cleanUpOnCall, s = o === void 0 || o, c = a.cleanUpOnDepsChange, l = c !== void 0 && c, u = a.cleanUpOnUnmount, d = u === void 0 || u, f = n.useRef({
|
|
21
|
+
cleanup: null,
|
|
22
|
+
isCalled: !1
|
|
23
|
+
}), p = {
|
|
24
|
+
cleanUpOnCall: s,
|
|
25
|
+
cleanUpOnDepsChange: l,
|
|
26
|
+
cleanUpOnUnmount: d
|
|
27
|
+
}, m = n.useRef(p);
|
|
28
|
+
return n.useEffect(function() {
|
|
29
|
+
m.current = p;
|
|
30
|
+
}), n.useEffect(function() {
|
|
31
|
+
return function() {
|
|
32
|
+
m.current.cleanUpOnDepsChange && r(f.current);
|
|
33
|
+
};
|
|
34
|
+
}, [t]), n.useEffect(function() {
|
|
35
|
+
return function() {
|
|
36
|
+
m.current.cleanUpOnUnmount && r(f.current);
|
|
37
|
+
};
|
|
38
|
+
}, []), n.useCallback(function() {
|
|
39
|
+
m.current.cleanUpOnCall && r(f.current);
|
|
40
|
+
var t = e.apply(void 0, [].slice.call(arguments));
|
|
41
|
+
if (typeof t == "object") {
|
|
42
|
+
var n = t.value;
|
|
43
|
+
return f.current = {
|
|
44
|
+
cleanup: t.cleanup,
|
|
45
|
+
isCalled: !1
|
|
46
|
+
}, n;
|
|
47
|
+
}
|
|
48
|
+
return typeof t == "function" && (f.current = {
|
|
49
|
+
cleanup: t,
|
|
50
|
+
isCalled: !1
|
|
51
|
+
}), t;
|
|
52
|
+
}, t);
|
|
53
|
+
};
|
|
54
|
+
})))(), 1), m = ({ baseIcon: e, buttonProps: t, buttonText: a, buttonVariant: f, clipboardValue: m, iconOnly: h, onGetClipboardValue: g, tooltipSuccessText: _ }) => {
|
|
55
|
+
let { t: v } = c(), [y, b] = o("primary"), [x, S] = o(e ?? /* @__PURE__ */ s(l, {})), [C, w] = o(a ?? v`Copy to clipboard`), T = (0, p.default)(() => {
|
|
56
|
+
let t;
|
|
57
|
+
return (async () => {
|
|
58
|
+
try {
|
|
59
|
+
await navigator.clipboard.writeText(m ?? g()), b("success"), S(/* @__PURE__ */ s(u, {})), w(_ ?? v`Copied to clipboard`);
|
|
60
|
+
} catch {
|
|
61
|
+
b("error"), S(/* @__PURE__ */ s(d, {})), w(v`Error`);
|
|
62
|
+
} finally {
|
|
63
|
+
t = window.setTimeout(() => {
|
|
64
|
+
b("primary"), S(e ?? /* @__PURE__ */ s(l, {})), w(a ?? v`Copy to clipboard`);
|
|
65
|
+
}, 2e3);
|
|
66
|
+
}
|
|
67
|
+
})(), () => {
|
|
68
|
+
clearTimeout(t);
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
e,
|
|
72
|
+
a,
|
|
73
|
+
m,
|
|
74
|
+
g,
|
|
75
|
+
v,
|
|
76
|
+
_
|
|
77
|
+
]);
|
|
78
|
+
return h ? /* @__PURE__ */ s(i, {
|
|
79
|
+
arrow: !0,
|
|
80
|
+
placement: "top",
|
|
81
|
+
title: C,
|
|
82
|
+
children: /* @__PURE__ */ s(r, {
|
|
83
|
+
...t,
|
|
84
|
+
color: y,
|
|
85
|
+
onClick: T,
|
|
86
|
+
size: "small",
|
|
87
|
+
children: x
|
|
88
|
+
})
|
|
89
|
+
}) : /* @__PURE__ */ s(n, {
|
|
90
|
+
...t,
|
|
91
|
+
color: y,
|
|
92
|
+
onClick: T,
|
|
93
|
+
startIcon: x,
|
|
94
|
+
variant: f ?? "contained",
|
|
95
|
+
children: a ?? v`Copy to clipboard`
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { m as CopyToClipboardButton, f as t };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../builtin:esm-external-require-react","../../../../../../node_modules/.pnpm/use-cleanup-callback@1.3.0_react@19.2.7/node_modules/use-cleanup-callback/dist/index.js","../../../../src/components/ui/CopyToClipboardButton/CopyToClipboardButton.tsx"],"sourcesContent":["import * as m from 'react';module.exports = { ...m };","var n=require(\"react\");function e(n){var e=n.cleanup;n.isCalled||\"function\"!=typeof e||(n.isCalled=!0,e())}module.exports=function(u,c,l){var r=void 0===l?{}:l,a=r.cleanUpOnCall,t=void 0===a||a,o=r.cleanUpOnDepsChange,i=void 0!==o&&o,p=r.cleanUpOnUnmount,f=void 0===p||p,s=n.useRef({cleanup:null,isCalled:!1}),C={cleanUpOnCall:t,cleanUpOnDepsChange:i,cleanUpOnUnmount:f},U=n.useRef(C);return n.useEffect(function(){U.current=C}),n.useEffect(function(){return function(){U.current.cleanUpOnDepsChange&&e(s.current)}},[c]),n.useEffect(function(){return function(){U.current.cleanUpOnUnmount&&e(s.current)}},[]),n.useCallback(function(){U.current.cleanUpOnCall&&e(s.current);var n=u.apply(void 0,[].slice.call(arguments));if(\"object\"==typeof n){var c=n.value,l=n.cleanup;return s.current={cleanup:l,isCalled:!1},c}return\"function\"==typeof n&&(s.current={cleanup:n,isCalled:!1}),n},c)};\n//# sourceMappingURL=index.js.map\n","import type { ButtonOwnProps } from '@mui/material';\nimport {\n Button,\n IconButton,\n Tooltip,\n} from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport useCleanupCallback from 'use-cleanup-callback';\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy';\nimport DoneIcon from '@mui/icons-material/Done';\nimport ErrorIcon from '@mui/icons-material/Error';\nimport type { ReactElement } from 'react';\nimport { useState } from 'react';\n\nexport type CopyToClipboardButtonProps = {\n readonly baseIcon?: ReactElement;\n readonly buttonProps?: ButtonOwnProps;\n readonly buttonText?: string;\n readonly buttonVariant?: ButtonOwnProps['variant'];\n readonly clipboardValue?: string;\n readonly iconOnly?: boolean;\n readonly onGetClipboardValue?: () => string;\n readonly tooltipSuccessText?: string;\n};\n\nexport const CopyToClipboardButton = ({ baseIcon, buttonProps, buttonText, buttonVariant, clipboardValue, iconOnly, onGetClipboardValue, tooltipSuccessText }: CopyToClipboardButtonProps) => {\n const { t } = useTranslation();\n const [copyToClipBoardButtonColor, setCopyToClipBoardButtonColor] = useState<ButtonOwnProps['color']>('primary');\n const [copyToClipBoardIcon, setCopyToClipBoardIcon] = useState<ReactElement>(baseIcon ?? <ContentCopyIcon />);\n const [tooltipText, setTooltipText] = useState<string>(buttonText ?? t`Copy to clipboard`);\n\n\n const onCopyToClipboardButtonClick = useCleanupCallback(() => {\n let timeoutId: number;\n const perform = async () => {\n try {\n await navigator.clipboard.writeText(clipboardValue ?? onGetClipboardValue());\n setCopyToClipBoardButtonColor('success');\n setCopyToClipBoardIcon(\n <DoneIcon />,\n );\n setTooltipText(tooltipSuccessText ?? t`Copied to clipboard`);\n } catch (_error: unknown) {\n setCopyToClipBoardButtonColor('error');\n setCopyToClipBoardIcon(\n <ErrorIcon />,\n );\n setTooltipText(t`Error`);\n } finally {\n timeoutId = window.setTimeout(() => {\n setCopyToClipBoardButtonColor('primary');\n setCopyToClipBoardIcon(baseIcon ?? <ContentCopyIcon />);\n setTooltipText(buttonText ?? t`Copy to clipboard`);\n }, 2000);\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n perform();\n return () => {\n clearTimeout(timeoutId);\n };\n }, [baseIcon, buttonText, clipboardValue, onGetClipboardValue, t, tooltipSuccessText]);\n\n if (iconOnly) {\n return (\n <Tooltip\n arrow\n placement={'top'}\n title={tooltipText}\n >\n <IconButton\n {...buttonProps}\n color={copyToClipBoardButtonColor}\n onClick={onCopyToClipboardButtonClick}\n size={'small'}\n >\n {copyToClipBoardIcon}\n </IconButton>\n </Tooltip>\n );\n }\n\n return (\n <Button\n {...buttonProps}\n color={copyToClipBoardButtonColor}\n onClick={onCopyToClipboardButtonClick}\n startIcon={copyToClipBoardIcon}\n variant={buttonVariant ?? 'contained'}\n >\n {buttonText ?? t`Copy to clipboard`}\n </Button>\n );\n};\n"],"x_google_ignoreList":[1],"mappings":";;;;;;;;;;;CAA2B,EAAO,UAAU,EAAE,GAAG,EAAE;;CCAnD,IAAI,IAAA,EAAA;CAAmB,SAAS,EAAE,GAAE;EAAC,IAAI,IAAE,EAAE;EAAQ,EAAE,YAAsB,OAAO,KAAnB,eAAuB,EAAE,WAAS,CAAC,GAAE,EAAE;CAAE;CAAC,EAAO,UAAQ,SAAS,GAAE,GAAE,GAAE;EAAC,IAAI,IAAW,MAAT,KAAK,IAAM,CAAC,IAAE,GAAE,IAAE,EAAE,eAAc,IAAW,MAAT,KAAK,KAAO,GAAE,IAAE,EAAE,qBAAoB,IAAW,MAAT,KAAK,KAAO,GAAE,IAAE,EAAE,kBAAiB,IAAW,MAAT,KAAK,KAAO,GAAE,IAAE,EAAE,OAAO;GAAC,SAAQ;GAAK,UAAS,CAAC;EAAC,CAAC,GAAE,IAAE;GAAC,eAAc;GAAE,qBAAoB;GAAE,kBAAiB;EAAC,GAAE,IAAE,EAAE,OAAO,CAAC;EAAE,OAAO,EAAE,UAAU,WAAU;GAAC,EAAE,UAAQ;EAAC,CAAC,GAAE,EAAE,UAAU,WAAU;GAAC,OAAO,WAAU;IAAC,EAAE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AY,OAAO,iBAAiB;KAGlC,AAFA,EAA8B,SAAS,GACvC,EAAuB,KAAY,kBAAC,GAAD,CAAkB,CAAA,CAAC,GACtD,EAAe,KAAc,CAAC,mBAAmB;IACnD,GAAG,GAAI;GACT;EACF,EAEA,CAAQ,SACK;GACX,aAAa,CAAS;EACxB;CACF,GAAG;EAAC;EAAU;EAAY;EAAgB;EAAqB;EAAG;CAAkB,CAAC;CAqBrF,OAnBI,IAEA,kBAAC,GAAD;EACE,OAAA;EACA,WAAW;EACX,OAAO;YAEP,kBAAC,GAAD;GACE,GAAI;GACJ,OAAO;GACP,SAAS;GACT,MAAM;aAEL;EACS,CAAA;CACL,CAAA,IAKX,kBAAC,GAAD;EACE,GAAI;EACJ,OAAO;EACP,SAAS;EACT,WAAW;EACX,SAAS,KAAiB;YAEzB,KAAc,CAAC;CACV,CAAA;AAEZ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DialogProps as MuiDialogProps, TypographyVariant, Button } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren, ReactElement, RefObject } from 'react';
|
|
3
|
+
export type DialogAction = DialogActionButton | ReactElement;
|
|
4
|
+
export type DialogActionButton = {
|
|
5
|
+
label: string;
|
|
6
|
+
} & Omit<Parameters<typeof Button>[0], 'children'>;
|
|
7
|
+
export type DialogProps = {
|
|
8
|
+
readonly actionButtons?: () => ReactElement;
|
|
9
|
+
readonly actions?: DialogAction[];
|
|
10
|
+
readonly component?: (props: {
|
|
11
|
+
onDialogTitleChange?: (title: string) => void;
|
|
12
|
+
}) => ReactElement;
|
|
13
|
+
readonly dialogContentRef?: RefObject<HTMLDivElement>;
|
|
14
|
+
readonly disableBackdropClick?: boolean;
|
|
15
|
+
readonly fullScreen?: boolean;
|
|
16
|
+
readonly fullWidth?: boolean;
|
|
17
|
+
readonly maxWidth?: MuiDialogProps['maxWidth'];
|
|
18
|
+
readonly noCloseButton?: boolean;
|
|
19
|
+
readonly noPadding?: boolean;
|
|
20
|
+
readonly noTitle?: boolean;
|
|
21
|
+
readonly onClose?: () => void;
|
|
22
|
+
readonly permalink?: string;
|
|
23
|
+
readonly testId: string;
|
|
24
|
+
readonly title?: string;
|
|
25
|
+
readonly titleVariant?: TypographyVariant;
|
|
26
|
+
};
|
|
27
|
+
export declare const Dialog: ({ actionButtons: ActionButtons, actions, children, dialogContentRef, disableBackdropClick, fullScreen, fullWidth, maxWidth, noCloseButton, noPadding, noTitle, onClose, permalink, testId, title, titleVariant, }: PropsWithChildren<DialogProps>) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { n as e } from "../../../_chunks/rolldown-runtime.js";
|
|
2
|
+
import { t } from "../../../_chunks/isObject.js";
|
|
3
|
+
import { CopyToClipboardButton as n } from "../CopyToClipboardButton/index.js";
|
|
4
|
+
import { Box as r, Button as i, Dialog as a, DialogActions as o, DialogContent as s, DialogTitle as c, IconButton as l } from "@mui/material";
|
|
5
|
+
import { useCallback as u } from "react";
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
|
+
import { useTranslation as p } from "react-i18next";
|
|
8
|
+
import { TestIdUtil as m } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
9
|
+
import h from "@mui/icons-material/Close";
|
|
10
|
+
import g from "@mui/icons-material/Link";
|
|
11
|
+
//#region src/components/ui/Dialog/Dialog.tsx
|
|
12
|
+
var _ = /* @__PURE__ */ e(t(), 1), v = (e) => (0, _.default)(e) && "label" in e, y = ({ actionButtons: e, actions: t, children: _, dialogContentRef: y, disableBackdropClick: b = !1, fullScreen: x = !1, fullWidth: S = !1, maxWidth: C = !1, noCloseButton: w = !1, noPadding: T = !1, noTitle: E = !1, onClose: D, permalink: O, testId: k, title: A, titleVariant: j = "h5" }) => {
|
|
13
|
+
let { t: M } = p(), N = u((e, t) => {
|
|
14
|
+
b && (t === "backdropClick" || t === "escapeKeyDown") || D?.();
|
|
15
|
+
}, [b, D]), P = u(() => O, [O]);
|
|
16
|
+
return /* @__PURE__ */ f(a, {
|
|
17
|
+
...m.createAttributes(k, { title: A }),
|
|
18
|
+
fullScreen: x,
|
|
19
|
+
fullWidth: S,
|
|
20
|
+
maxWidth: C,
|
|
21
|
+
onClose: N,
|
|
22
|
+
open: !0,
|
|
23
|
+
sx: { "& .MuiDialogContent-root, & .MuiCardContent-root:last-child": { padding: T ? "0" : void 0 } },
|
|
24
|
+
children: [
|
|
25
|
+
!E && /* @__PURE__ */ f(r, {
|
|
26
|
+
sx: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
justifyContent: "space-between"
|
|
29
|
+
},
|
|
30
|
+
children: [/* @__PURE__ */ f(c, {
|
|
31
|
+
...m.createAttributes(`${k}-title`),
|
|
32
|
+
sx: { pr: 3 },
|
|
33
|
+
variant: j,
|
|
34
|
+
children: [A, O && /* @__PURE__ */ d(r, {
|
|
35
|
+
className: "genepix-permalink",
|
|
36
|
+
sx: {
|
|
37
|
+
display: "inline-block",
|
|
38
|
+
marginLeft: 1
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ d(n, {
|
|
41
|
+
baseIcon: /* @__PURE__ */ d(g, {}),
|
|
42
|
+
buttonProps: { sx: {
|
|
43
|
+
"& svg": { fontSize: 20 },
|
|
44
|
+
height: 20,
|
|
45
|
+
width: 20
|
|
46
|
+
} },
|
|
47
|
+
iconOnly: !0,
|
|
48
|
+
onGetClipboardValue: P
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
}), !w && /* @__PURE__ */ d(l, {
|
|
52
|
+
...m.createAttributes(`${k}-closeButton`),
|
|
53
|
+
"aria-label": A ? M("Close dialog with title: {{title}}", { title: A }) : M`Close dialog`,
|
|
54
|
+
onClick: D,
|
|
55
|
+
sx: { color: "grey.500" },
|
|
56
|
+
title: M`Close`,
|
|
57
|
+
children: /* @__PURE__ */ d(h, {})
|
|
58
|
+
})]
|
|
59
|
+
}),
|
|
60
|
+
!!_ && /* @__PURE__ */ d(s, {
|
|
61
|
+
...m.createAttributes(`${k}-content`),
|
|
62
|
+
dividers: !!e,
|
|
63
|
+
ref: y,
|
|
64
|
+
sx: { paddingTop: x ? 0 : void 0 },
|
|
65
|
+
children: _
|
|
66
|
+
}),
|
|
67
|
+
t?.length > 0 && /* @__PURE__ */ d(o, {
|
|
68
|
+
...m.createAttributes(`${k}-actions`),
|
|
69
|
+
children: /* @__PURE__ */ d(r, {
|
|
70
|
+
sx: { "& > button": { margin: 1 } },
|
|
71
|
+
children: t.map((e) => v(e) ? /* @__PURE__ */ d(i, {
|
|
72
|
+
...e,
|
|
73
|
+
children: e.label
|
|
74
|
+
}, e.label) : e)
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { y as Dialog };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=index.js.map
|