@gen-epix/ui-client-common 4.3.0 → 4.3.2
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/dist/_chunks/Breadcrumbs.js +22 -22
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +4 -5
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +559 -3173
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/{oidc-client-ts.js → UserManagerUtil.js} +222 -198
- package/dist/_chunks/UserManagerUtil.js.map +1 -0
- package/dist/_chunks/middleware.js +1 -1
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +1 -1
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +7 -7
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/useColumnsMenu.js +2 -2
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -2
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +6 -6
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/services/LogService/index.js +1 -1
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/RouterService/index.js +4 -4
- package/dist/components/app/App/App.d.ts +1 -1
- package/dist/components/app/App/index.js +35 -100
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/AppRouterProvider/AppRouterProvider.d.ts +1 -1
- package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +38 -38
- package/dist/components/app/AuthorizationWrapper/index.js +20 -20
- package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -1
- package/dist/components/app/RouterRoot/index.js +58 -59
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +1 -1
- package/dist/components/filters/DateFilterField/DateFilterField.d.ts +1 -1
- package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +1 -1
- package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +1 -1
- package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +1 -1
- package/dist/components/filters/TextFilterField/TextFilterField.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +1 -1
- package/dist/components/ui/ApplicationBar/index.js +146 -146
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +1 -1
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +34 -34
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
- package/dist/components/ui/NavLink/NavLink.d.ts +1 -1
- package/dist/components/ui/NavLink/index.js +8 -8
- package/dist/components/ui/Notifications/NotificationItem.d.ts +1 -1
- package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +1 -1
- package/dist/components/ui/OutageList/OutageItem.d.ts +1 -1
- package/dist/components/ui/OutageList/OutageList.d.ts +1 -1
- package/dist/components/ui/OutageList/OutageSection.d.ts +1 -1
- package/dist/components/ui/PageContainer/index.js +1 -1
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/Sidebar/SidebarItem.d.ts +1 -1
- package/dist/components/ui/Sidebar/SidebarMenu.d.ts +1 -1
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableList.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableListItem.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +1 -1
- package/dist/components/ui/SortableList/SortableOverlay.d.ts +1 -1
- package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +1 -1
- package/dist/components/ui/Table/Table.d.ts +1 -1
- package/dist/components/ui/Table/TableActionsCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCaption.d.ts +1 -1
- package/dist/components/ui/Table/TableCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCellAsyncContent.d.ts +1 -1
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +1 -1
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +1 -1
- package/dist/components/ui/Table/TableFilter.d.ts +1 -1
- package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +2 -2
- package/dist/components/ui/Table/TableHeader.d.ts +1 -1
- package/dist/components/ui/Table/TableHeaderCell.d.ts +1 -1
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +1 -1
- package/dist/components/ui/Table/TableMenu.d.ts +1 -1
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +1 -1
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +1 -1
- package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -1
- package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +1 -1
- package/dist/hoc/withPermissions/withPermissions.d.ts +1 -1
- package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +28 -28
- package/dist/pages/AdminPage/AdminPage.d.ts +1 -1
- package/dist/pages/AdminPage/index.js +23 -23
- package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +1 -1
- package/dist/pages/CrudPage/CrudPage.d.ts +1 -1
- package/dist/pages/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationContactsAdminPage/index.js +29 -29
- package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +25 -25
- package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -1
- package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -1
- package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -1
- package/dist/pages/PostLoginPage/index.js +11 -11
- package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -1
- package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -1
- package/dist/pages/RouterErrorPage/index.js +10 -10
- package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -1
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +1 -1
- package/dist/stores/tableStore/TableStoreContextProvider.d.ts +1 -1
- package/dist/utils/UserManagerUtil/index.js +2 -31
- package/package.json +27 -22
- package/dist/_chunks/chunk-OB3PAWPO.js +0 -3742
- package/dist/_chunks/chunk-OB3PAWPO.js.map +0 -1
- package/dist/_chunks/oidc-client-ts.js.map +0 -1
- package/dist/_chunks/react-oidc-context.js +0 -201
- package/dist/_chunks/react-oidc-context.js.map +0 -1
- package/dist/utils/UserManagerUtil/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/PageContainer/PageContainer.tsx"],"sourcesContent":["import {\n Box,\n Container,\n Link,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { useEffect } from 'react';\nimport type {\n ReactElement,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/testId';\n\nimport { Breadcrumbs } from '../Breadcrumbs';\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport { PageEventBusService } from '../../../classes/services/PageEventBusService';\nimport { useUpdateDocumentTitle } from '../../../hooks/useUpdateDocumentTitle';\nimport { ApplicationFooter } from '../ApplicationFooter/ApplicationFooter';\n\nexport type PageContainerProps = PropsWithTestIdAttributes<{\n readonly children: ReactNode;\n readonly contentActions?: ReactElement;\n readonly contentHeader?: ReactElement | string;\n readonly fullHeight?: boolean;\n readonly fullWidth?: boolean;\n readonly ignorePageEvent?: boolean;\n readonly showBreadcrumbs?: boolean;\n readonly singleAction?: boolean;\n readonly title: string;\n}>;\n\nexport const PageContainer = ({\n children,\n contentActions,\n contentHeader,\n fullHeight,\n fullWidth,\n ignorePageEvent,\n showBreadcrumbs,\n singleAction,\n testIdAttributes,\n title,\n}: PageContainerProps): ReactElement => {\n useUpdateDocumentTitle(title);\n const theme = useTheme();\n const { t } = useTranslation();\n\n const hasContentHeaderArea = contentHeader || contentActions;\n const hasFooterArea = !fullHeight && !singleAction;\n const { ApplicationHeader } = ConfigService.getInstance().config;\n\n useEffect(() => {\n const pageName = testIdAttributes['data-testid'];\n if (ignorePageEvent || !pageName) {\n return;\n }\n\n if (ConfigService.getInstance().config.enablePageEvents) {\n PageEventBusService.getInstance().emit('changePage', {\n location: WindowService.getInstance().window.location,\n pageName: testIdAttributes['data-testid'],\n });\n }\n }, [ignorePageEvent, testIdAttributes]);\n\n return (\n <>\n <Box\n component={'nav'}\n sx={{\n background: theme.palette.background.default,\n marginTop: '-1px',\n position: 'absolute',\n top: 0,\n zIndex: theme.zIndex.appBar + 10,\n }}\n >\n <Link\n component={'a'}\n href={'#main-content'}\n sx={{\n '&:focus, &:active': {\n clip: 'auto',\n height: 'auto',\n overflow: 'visible',\n position: 'static',\n whiteSpace: 'normal',\n width: 'auto',\n },\n border: 0,\n height: '1px',\n left: 0,\n overflow: 'hidden',\n position: 'absolute',\n top: 0,\n whiteSpace: 'nowrap',\n\n width: '1px',\n }}\n >\n {t`Skip to main content`}\n </Link>\n </Box>\n <Box\n data-page-container\n {...testIdAttributes}\n sx={{\n display: 'grid',\n gridTemplateRows: `max-content auto ${hasFooterArea ? 'max-content' : ''}`,\n height: '100%',\n }}\n >\n <ApplicationHeader\n fullHeight={fullHeight}\n fullWidth={fullWidth}\n singleAction={singleAction}\n />\n <Box\n id={ConfigService.getInstance().config.layout.MAIN_CONTENT_ID}\n sx={{\n display: 'grid',\n gridTemplateRows: `${showBreadcrumbs ? 'max-content' : ''} auto`,\n height: '100%',\n }}\n >\n {showBreadcrumbs && (\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n paddingLeft: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n paddingRight: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n }}\n >\n <Breadcrumbs />\n </Container>\n )}\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n display: 'grid',\n gridTemplateRows: `${hasContentHeaderArea ? 'max-content' : ''} auto`,\n height: '100%',\n paddingLeft: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n paddingRight: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n position: 'relative',\n }}\n >\n {hasContentHeaderArea && (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginBottom: theme.spacing(1),\n }}\n >\n {contentHeader && typeof contentHeader === 'string' && (\n <Box>\n <Typography variant={'h2'}>\n {contentHeader}\n </Typography>\n </Box>\n )}\n {contentHeader && typeof contentHeader !== 'string' && contentHeader}\n {contentActions && (\n <Box>\n {contentActions}\n </Box>\n )}\n </Box>\n )}\n {singleAction && (\n <Box\n sx={{\n marginY: 1,\n }}\n >\n <Box\n component={'a'}\n href={'#main-content'}\n id={'main-content'}\n style={{ display: 'none' }}\n tabIndex={-1}\n />\n {children}\n </Box>\n )}\n {!singleAction && (\n <>\n <Box\n component={'a'}\n href={'#main-content'}\n id={'main-content'}\n style={{ display: 'none' }}\n tabIndex={-1}\n />\n {children}\n </>\n )}\n </Container>\n </Box>\n {hasFooterArea && (\n <ApplicationFooter fullWidth={fullWidth} />\n )}\n </Box>\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;AAkCA,IAAa,KAAiB,EAC5B,aACA,mBACA,kBACA,eACA,cACA,oBACA,oBACA,iBACA,qBACA,eACsC;CACtC,EAAuB,CAAK;CAC5B,IAAM,IAAQ,EAAS,GACjB,EAAE,SAAM,EAAe,GAEvB,IAAuB,KAAiB,GACxC,IAAgB,CAAC,KAAc,CAAC,GAChC,EAAE,yBAAsB,EAAc,YAAY,CAAC,CAAC;CAgB1D,OAdA,QAAgB;EACd,IAAM,IAAW,EAAiB;EAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/PageContainer/PageContainer.tsx"],"sourcesContent":["import {\n Box,\n Container,\n Link,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { useEffect } from 'react';\nimport type {\n ReactElement,\n ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/testId';\n\nimport { Breadcrumbs } from '../Breadcrumbs';\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport { PageEventBusService } from '../../../classes/services/PageEventBusService';\nimport { useUpdateDocumentTitle } from '../../../hooks/useUpdateDocumentTitle';\nimport { ApplicationFooter } from '../ApplicationFooter/ApplicationFooter';\n\nexport type PageContainerProps = PropsWithTestIdAttributes<{\n readonly children: ReactNode;\n readonly contentActions?: ReactElement;\n readonly contentHeader?: ReactElement | string;\n readonly fullHeight?: boolean;\n readonly fullWidth?: boolean;\n readonly ignorePageEvent?: boolean;\n readonly showBreadcrumbs?: boolean;\n readonly singleAction?: boolean;\n readonly title: string;\n}>;\n\nexport const PageContainer = ({\n children,\n contentActions,\n contentHeader,\n fullHeight,\n fullWidth,\n ignorePageEvent,\n showBreadcrumbs,\n singleAction,\n testIdAttributes,\n title,\n}: PageContainerProps): ReactElement => {\n useUpdateDocumentTitle(title);\n const theme = useTheme();\n const { t } = useTranslation();\n\n const hasContentHeaderArea = contentHeader || contentActions;\n const hasFooterArea = !fullHeight && !singleAction;\n const { ApplicationHeader } = ConfigService.getInstance().config;\n\n useEffect(() => {\n const pageName = testIdAttributes['data-testid'];\n if (ignorePageEvent || !pageName) {\n return;\n }\n\n if (ConfigService.getInstance().config.enablePageEvents) {\n PageEventBusService.getInstance().emit('changePage', {\n location: WindowService.getInstance().window.location,\n pageName: testIdAttributes['data-testid'],\n });\n }\n }, [ignorePageEvent, testIdAttributes]);\n\n return (\n <>\n <Box\n component={'nav'}\n sx={{\n background: theme.palette.background.default,\n marginTop: '-1px',\n position: 'absolute',\n top: 0,\n zIndex: theme.zIndex.appBar + 10,\n }}\n >\n <Link\n component={'a'}\n href={'#main-content'}\n sx={{\n '&:focus, &:active': {\n clip: 'auto',\n height: 'auto',\n overflow: 'visible',\n position: 'static',\n whiteSpace: 'normal',\n width: 'auto',\n },\n border: 0,\n height: '1px',\n left: 0,\n overflow: 'hidden',\n position: 'absolute',\n top: 0,\n whiteSpace: 'nowrap',\n\n width: '1px',\n }}\n >\n {t`Skip to main content`}\n </Link>\n </Box>\n <Box\n data-page-container\n {...testIdAttributes}\n sx={{\n display: 'grid',\n gridTemplateRows: `max-content auto ${hasFooterArea ? 'max-content' : ''}`,\n height: '100%',\n }}\n >\n <ApplicationHeader\n fullHeight={fullHeight}\n fullWidth={fullWidth}\n singleAction={singleAction}\n />\n <Box\n id={ConfigService.getInstance().config.layout.MAIN_CONTENT_ID}\n sx={{\n display: 'grid',\n gridTemplateRows: `${showBreadcrumbs ? 'max-content' : ''} auto`,\n height: '100%',\n }}\n >\n {showBreadcrumbs && (\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n paddingLeft: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n paddingRight: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n }}\n >\n <Breadcrumbs />\n </Container>\n )}\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n display: 'grid',\n gridTemplateRows: `${hasContentHeaderArea ? 'max-content' : ''} auto`,\n height: '100%',\n paddingLeft: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n paddingRight: `${theme.spacing(fullWidth ? 1 : 2)} !important`,\n position: 'relative',\n }}\n >\n {hasContentHeaderArea && (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginBottom: theme.spacing(1),\n }}\n >\n {contentHeader && typeof contentHeader === 'string' && (\n <Box>\n <Typography variant={'h2'}>\n {contentHeader}\n </Typography>\n </Box>\n )}\n {contentHeader && typeof contentHeader !== 'string' && contentHeader}\n {contentActions && (\n <Box>\n {contentActions}\n </Box>\n )}\n </Box>\n )}\n {singleAction && (\n <Box\n sx={{\n marginY: 1,\n }}\n >\n <Box\n component={'a'}\n href={'#main-content'}\n id={'main-content'}\n style={{ display: 'none' }}\n tabIndex={-1}\n />\n {children}\n </Box>\n )}\n {!singleAction && (\n <>\n <Box\n component={'a'}\n href={'#main-content'}\n id={'main-content'}\n style={{ display: 'none' }}\n tabIndex={-1}\n />\n {children}\n </>\n )}\n </Container>\n </Box>\n {hasFooterArea && (\n <ApplicationFooter fullWidth={fullWidth} />\n )}\n </Box>\n </>\n );\n};\n"],"mappings":"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"}
|
|
@@ -10,4 +10,4 @@ export type SidebarItemSharedProps = {
|
|
|
10
10
|
readonly onClose: () => void;
|
|
11
11
|
readonly open: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare const SidebarItem: ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => import(
|
|
13
|
+
export declare const SidebarItem: ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => import('react').JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
export type SidebarMenuProps = PropsWithChildren;
|
|
3
|
-
export declare const SidebarMenu: ({ children }: SidebarMenuProps) => import(
|
|
3
|
+
export declare const SidebarMenu: ({ children }: SidebarMenuProps) => import('react').JSX.Element;
|
|
@@ -9,4 +9,4 @@ export type SidebarMenuItemProps = PropsWithTestIdAttributes<{
|
|
|
9
9
|
readonly onClick: () => void;
|
|
10
10
|
readonly title: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const SidebarMenuItem: ({ badgeColor, badgeContent, first, icon, onClick, testIdAttributes, title, }: SidebarMenuItemProps) => import(
|
|
12
|
+
export declare const SidebarMenuItem: ({ badgeColor, badgeContent, first, icon, onClick, testIdAttributes, title, }: SidebarMenuItemProps) => import('react').JSX.Element;
|
|
@@ -10,5 +10,5 @@ interface Props<T extends BaseItem> {
|
|
|
10
10
|
onChange(items: T[]): void;
|
|
11
11
|
renderItemContent(item: T): ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import(
|
|
13
|
+
export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -5,4 +5,4 @@ export type SortableListItemProps = PropsWithChildren<{
|
|
|
5
5
|
readonly id: UniqueIdentifier;
|
|
6
6
|
readonly sx?: SxProps;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import(
|
|
8
|
+
export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import('react').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type SortableListItemDragHandleProps = {
|
|
2
2
|
readonly name: string;
|
|
3
3
|
};
|
|
4
|
-
export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import(
|
|
4
|
+
export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import('react').JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import(
|
|
2
|
+
export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import('react').JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { SortableListItemContextValue } from './SortableListItemContext';
|
|
|
3
3
|
export type SortableListItemContextProviderProps = PropsWithChildren<{
|
|
4
4
|
readonly value: SortableListItemContextValue;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import(
|
|
6
|
+
export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import('react').JSX.Element;
|
|
@@ -27,4 +27,4 @@ export interface TableRef {
|
|
|
27
27
|
scrollToIndex: (index: number, onScrolledToIndex?: () => void) => void;
|
|
28
28
|
setVerticalScrollPosition: (position: number) => void;
|
|
29
29
|
}
|
|
30
|
-
export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import(
|
|
30
|
+
export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { TableCellProps } from './TableCell';
|
|
|
3
3
|
export interface TableActionsCellProps<TRowData, TDataContext = null> extends TableCellProps<TRowData, TDataContext> {
|
|
4
4
|
readonly column: TableColumnActions<TRowData, TDataContext>;
|
|
5
5
|
}
|
|
6
|
-
export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import(
|
|
6
|
+
export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -4,4 +4,4 @@ export type TableCaptionProps = {
|
|
|
4
4
|
readonly component?: TypographyProps['component'];
|
|
5
5
|
readonly variant: TypographyProps['variant'];
|
|
6
6
|
};
|
|
7
|
-
export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import(
|
|
7
|
+
export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import('react').JSX.Element;
|
|
@@ -24,4 +24,4 @@ export type TableCellProps<TRowData, TDataContext = null> = PropsWithChildren<{
|
|
|
24
24
|
readonly xOffset?: number;
|
|
25
25
|
}>;
|
|
26
26
|
export type TableCellRef = HTMLDivElement;
|
|
27
|
-
export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import(
|
|
27
|
+
export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type TableCellAsyncContentProps = {
|
|
2
2
|
readonly content: Promise<string> | string;
|
|
3
3
|
};
|
|
4
|
-
export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import(
|
|
4
|
+
export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type TableCheckboxCellProps<TRowData, TDataContext = null> = {
|
|
|
5
5
|
readonly onCheckBoxClick: (event: ReactMouseEvent, id: string) => void;
|
|
6
6
|
readonly tableColumn: TableColumnSelectable<TRowData, TDataContext>;
|
|
7
7
|
};
|
|
8
|
-
export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import(
|
|
8
|
+
export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { TableColumnParams } from '../../../models/table';
|
|
|
2
2
|
export type TableCheckboxHeaderProps<TRowData, TDataContext = null> = {
|
|
3
3
|
readonly tableColumnParams: TableColumnParams<TRowData, TDataContext>;
|
|
4
4
|
};
|
|
5
|
-
export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import(
|
|
5
|
+
export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { Filters } from '../../../models/filter';
|
|
|
3
3
|
export type TableFilterProps = {
|
|
4
4
|
readonly filter: UnwrapArray<Filters>;
|
|
5
5
|
};
|
|
6
|
-
export declare const TableFilter: ({ filter }: TableFilterProps) => import(
|
|
6
|
+
export declare const TableFilter: ({ filter }: TableFilterProps) => import('react').JSX.Element;
|
|
@@ -4,6 +4,6 @@ type TableFiltersSidebarItemContentProps = Pick<TableFiltersSidebarItemProps, 'o
|
|
|
4
4
|
export declare const TableFiltersSidebarItemIcon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
|
|
5
5
|
muiName: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import(
|
|
8
|
-
export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import(
|
|
7
|
+
export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import('react').JSX.Element;
|
|
8
|
+
export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import('react').JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -5,4 +5,4 @@ export type TableHeaderProps = {
|
|
|
5
5
|
readonly headerVariant?: TypographyProps['variant'];
|
|
6
6
|
readonly showTableMenu?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import(
|
|
8
|
+
export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import('react').JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface TableHeaderCellProps<TRowData, TDataContext = null> extends Tab
|
|
|
6
6
|
readonly onColumnDividerKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
|
|
7
7
|
readonly onColumnDividerMouseDown: (event: ReactMouseEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import(
|
|
9
|
+
export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
|
|
@@ -4,4 +4,4 @@ export type TableHeaderFilterProps = {
|
|
|
4
4
|
readonly filter: UnwrapArray<Filters>;
|
|
5
5
|
readonly onFilterChange: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import(
|
|
7
|
+
export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import('react').JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { BoxProps } from '@mui/material';
|
|
|
2
2
|
export type TableMenuProps = {
|
|
3
3
|
readonly ContainerProps?: Partial<BoxProps>;
|
|
4
4
|
};
|
|
5
|
-
export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import(
|
|
5
|
+
export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type TableReadableIndexCellProps<TRowData, TDataContext> = {
|
|
|
5
5
|
readonly onReadableIndexClick: (row: TRowData) => void;
|
|
6
6
|
readonly tableColumn: TableColumnReadableIndex<TRowData, TDataContext>;
|
|
7
7
|
};
|
|
8
|
-
export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import(
|
|
8
|
+
export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import('react').JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export type TableSidebarMenuProps = {
|
|
3
3
|
readonly extraSidebarMenuItems?: ReactNode;
|
|
4
4
|
};
|
|
5
|
-
export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ extraSidebarMenuItems }: TableSidebarMenuProps) => import(
|
|
5
|
+
export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ extraSidebarMenuItems }: TableSidebarMenuProps) => import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const UserInactivityConfirmation: () => import(
|
|
1
|
+
export declare const UserInactivityConfirmation: () => import('react').JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { UiClientCommonConfig } from './UiClientCommonConfigContext';
|
|
|
3
3
|
export type UiClientCommonConfigContextProviderProps = PropsWithChildren<{
|
|
4
4
|
readonly config: UiClientCommonConfig;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const UiClientCommonConfigContextProvider: (props: UiClientCommonConfigContextProviderProps) => import(
|
|
6
|
+
export declare const UiClientCommonConfigContextProvider: (props: UiClientCommonConfigContextProviderProps) => import('react').JSX.Element;
|
|
@@ -5,6 +5,6 @@ export interface WithPermissionsOptions<TApiPermission = CommonDbApiPermission>
|
|
|
5
5
|
readonly requiredPermissions: TApiPermission[];
|
|
6
6
|
}
|
|
7
7
|
export declare const withPermissions: <TApiPermission = CommonDbApiPermission, TProps extends object = Record<string, never>>(Component: ComponentType<TProps>, options: WithPermissionsOptions<TApiPermission>) => {
|
|
8
|
-
(props: TProps): import(
|
|
8
|
+
(props: TProps): import('react').JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AcceptInvitationPage: () => import(
|
|
1
|
+
export declare const AcceptInvitationPage: () => import('react').JSX.Element;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { ConfigService as e } from "../../classes/services/ConfigService/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "../../_chunks/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
2
|
+
import { PageContainer as t } from "../../components/ui/PageContainer/index.js";
|
|
3
|
+
import { ApiService as n } from "../../classes/services/ApiService/index.js";
|
|
4
|
+
import { ResponseHandler as r } from "../../components/ui/ResponseHandler/index.js";
|
|
5
|
+
import { t as i } from "../../_chunks/useQueryMemo.js";
|
|
6
|
+
import { t as a } from "../../_chunks/QueryClientService.js";
|
|
7
|
+
import { COMMON_QUERY_KEY as o } from "../../constants/query.js";
|
|
8
|
+
import { WindowService as s } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
9
|
+
import { Box as c, Button as l, Typography as u } from "@mui/material";
|
|
10
|
+
import { useCallback as d, useState as f } from "react";
|
|
11
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
|
+
import { useTranslation as g } from "react-i18next";
|
|
13
|
+
import { TestIdUtil as _ } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
14
|
+
import { useParams as v } from "react-router-dom";
|
|
15
15
|
//#region src/pages/AcceptInvitationPage/AcceptInvitationPage.tsx
|
|
16
16
|
var y = () => {
|
|
17
|
-
let { token: y } =
|
|
17
|
+
let { token: y } = v(), [b, x] = f(!1), { data: S, error: C, isLoading: w } = i({
|
|
18
18
|
enabled: b,
|
|
19
19
|
gcTime: 0,
|
|
20
|
-
queryFn: async ({ signal: e }) => (await
|
|
21
|
-
queryKey:
|
|
20
|
+
queryFn: async ({ signal: e }) => (await n.getInstance().organizationApi.userRegistrationsPostOne(y, { signal: e })).data,
|
|
21
|
+
queryKey: a.getInstance().getGenericKey(o.USER_INVITATIONS, y),
|
|
22
22
|
staleTime: 0
|
|
23
|
-
}), { t: T } =
|
|
24
|
-
|
|
25
|
-
}, []), D =
|
|
23
|
+
}), { t: T } = g(), E = d(() => {
|
|
24
|
+
s.getInstance().window.location.href = "/";
|
|
25
|
+
}, []), D = d(() => {
|
|
26
26
|
x(!0);
|
|
27
27
|
}, []);
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ m(t, {
|
|
29
29
|
singleAction: !0,
|
|
30
|
-
testIdAttributes:
|
|
30
|
+
testIdAttributes: _.createAttributes("AcceptInvitationPage"),
|
|
31
31
|
title: T`Invitation`,
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ h(r, {
|
|
33
33
|
enabled: b,
|
|
34
34
|
error: C,
|
|
35
35
|
isLoading: w,
|
|
36
|
-
children: [!S && /* @__PURE__ */
|
|
36
|
+
children: [!S && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(c, {
|
|
37
37
|
sx: { marginY: 2 },
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
}), /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ m(u, { children: T("You have been invited to join {{applicationName}}.", { applicationName: e.getInstance().config.applicationName }) })
|
|
39
|
+
}), /* @__PURE__ */ m(c, {
|
|
40
40
|
sx: { marginY: 2 },
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ m(l, {
|
|
42
42
|
color: "primary",
|
|
43
43
|
onClick: D,
|
|
44
44
|
type: "submit",
|
|
45
45
|
children: T`Complete registration`
|
|
46
46
|
})
|
|
47
|
-
})] }), S && /* @__PURE__ */
|
|
47
|
+
})] }), S && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(c, { children: /* @__PURE__ */ m(u, { children: T("You have been successfully registered to {{applicationName}}.", { applicationName: e.getInstance().config.applicationName }) }) }), /* @__PURE__ */ m(c, {
|
|
48
48
|
sx: { marginY: 2 },
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ m(l, {
|
|
50
50
|
color: "primary",
|
|
51
51
|
onClick: E,
|
|
52
52
|
children: T`Click here to visit the home page`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AdminPage: () => import(
|
|
1
|
+
export declare const AdminPage: () => import('react').JSX.Element;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ADMIN_PAGE_CATEGORY as e } from "../../models/admin.js";
|
|
2
2
|
import { AuthorizationService as t } from "../../classes/services/AuthorizationService/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { RouterService as n } from "../../classes/services/RouterService/index.js";
|
|
4
|
+
import { PageContainer as r } from "../../components/ui/PageContainer/index.js";
|
|
5
|
+
import { Box as i, Card as a, CardActionArea as o, CardContent as s, CardHeader as c, Divider as l, Typography as u, useTheme as d } from "@mui/material";
|
|
6
|
+
import { useCallback as f, useMemo as p } from "react";
|
|
7
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
import { useTranslation as g } from "react-i18next";
|
|
9
|
+
import { TestIdUtil as _ } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
10
|
+
import { Outlet as v, useLocation as y } from "react-router-dom";
|
|
11
11
|
//#region src/pages/AdminPage/AdminPage.tsx
|
|
12
12
|
var b = () => {
|
|
13
|
-
let { t: b } =
|
|
13
|
+
let { t: b } = g(), x = y(), S = d(), C = p(() => n.getInstance().adminRoutes.map((e) => e.children?.length ? e.children.find((e) => e.index) : e).filter((e) => {
|
|
14
14
|
let n = t.getInstance().doesUserHavePermission(e.handle.requiredPermissions);
|
|
15
15
|
return !e.handle?.hidden && n;
|
|
16
|
-
}), []), w =
|
|
16
|
+
}), []), w = p(() => ({
|
|
17
17
|
[e.ACCESS_RIGHTS]: b`Access rights`,
|
|
18
18
|
[e.HELPERS]: b`Helpers`,
|
|
19
19
|
[e.REFERENCE_DATA]: b`Reference data`,
|
|
20
20
|
[e.SYSTEM]: b`System`,
|
|
21
21
|
[e.USERS_AND_ORGANIZATIONS]: b`Users and organizations`
|
|
22
|
-
}), [b]), T =
|
|
22
|
+
}), [b]), T = p(() => [
|
|
23
23
|
e.USERS_AND_ORGANIZATIONS,
|
|
24
24
|
e.ACCESS_RIGHTS,
|
|
25
25
|
e.SYSTEM,
|
|
@@ -29,26 +29,26 @@ var b = () => {
|
|
|
29
29
|
items: C.filter((t) => t.handle.category === e),
|
|
30
30
|
label: w[e],
|
|
31
31
|
name: e
|
|
32
|
-
})).filter((e) => e.items.length), [w, C]), E =
|
|
33
|
-
await
|
|
32
|
+
})).filter((e) => e.items.length), [w, C]), E = f(async (e) => {
|
|
33
|
+
await n.getInstance().router.navigate(e);
|
|
34
34
|
}, []);
|
|
35
|
-
return x?.pathname === "/management" ? /* @__PURE__ */
|
|
35
|
+
return x?.pathname === "/management" ? /* @__PURE__ */ m(r, {
|
|
36
36
|
showBreadcrumbs: !0,
|
|
37
|
-
testIdAttributes:
|
|
37
|
+
testIdAttributes: _.createAttributes("AdminPage"),
|
|
38
38
|
title: b`Management`,
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ m(i, { children: T.map((e) => /* @__PURE__ */ h(i, {
|
|
40
40
|
sx: {
|
|
41
41
|
marginBottom: 3,
|
|
42
42
|
marginTop: 1
|
|
43
43
|
},
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ m(u, {
|
|
46
46
|
component: "h2",
|
|
47
47
|
sx: { marginBottom: 1 },
|
|
48
48
|
variant: "h3",
|
|
49
49
|
children: e.label
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ m(i, {
|
|
52
52
|
sx: {
|
|
53
53
|
display: "grid",
|
|
54
54
|
gap: S.spacing(1),
|
|
@@ -57,25 +57,25 @@ var b = () => {
|
|
|
57
57
|
[S.breakpoints.up("md")]: { gridTemplateColumns: "repeat(2, 1fr)" },
|
|
58
58
|
[S.breakpoints.up("xl")]: { gridTemplateColumns: "repeat(4, 1fr)" }
|
|
59
59
|
},
|
|
60
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
60
|
+
children: e.items.map((e) => /* @__PURE__ */ m(a, {
|
|
61
61
|
square: !0,
|
|
62
62
|
sx: {
|
|
63
63
|
flexDirection: "column",
|
|
64
64
|
justifyContent: "space-between"
|
|
65
65
|
},
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ h(o, {
|
|
67
67
|
onClick: async () => E(e.path),
|
|
68
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ m(c, { title: e.handle.title }), /* @__PURE__ */ m(s, { children: e.handle.subTitle })]
|
|
69
69
|
})
|
|
70
70
|
}, e.path))
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ m(l, { sx: {
|
|
73
73
|
marginBottom: 2,
|
|
74
74
|
marginTop: 2
|
|
75
75
|
} })
|
|
76
76
|
]
|
|
77
77
|
}, e.name)) })
|
|
78
|
-
}) : /* @__PURE__ */
|
|
78
|
+
}) : /* @__PURE__ */ m(v, {});
|
|
79
79
|
};
|
|
80
80
|
//#endregion
|
|
81
81
|
export { b as AdminPage };
|
|
@@ -2,4 +2,4 @@ import { IdentityProviderWithAvailability } from '../../models/auth';
|
|
|
2
2
|
export type ChooseIdentityProviderPageProps = {
|
|
3
3
|
readonly identityProvidersWithAvailability: IdentityProviderWithAvailability[];
|
|
4
4
|
};
|
|
5
|
-
export declare const ChooseIdentityProviderPage: ({ identityProvidersWithAvailability, }: ChooseIdentityProviderPageProps) => import(
|
|
5
|
+
export declare const ChooseIdentityProviderPage: ({ identityProvidersWithAvailability, }: ChooseIdentityProviderPageProps) => import('react').JSX.Element;
|
|
@@ -72,4 +72,4 @@ export type CrudPageSubPage<TData extends GenericData> = {
|
|
|
72
72
|
export declare const CrudPage: <TFormFields extends FieldValues, TData extends GenericData, TTableData extends TData = TData, TQueryKey extends string = COMMON_QUERY_KEY, TApiPermission extends {
|
|
73
73
|
command_name: string;
|
|
74
74
|
permission_type: string;
|
|
75
|
-
} = CommonDbApiPermission, TCommandName extends TApiPermission["command_name"] = TApiPermission["command_name"]>({ associationQueryKeys, canEditItem, contentActions, contentHeader, convertToTableData, createItemButtonText, createItemDialogTitle, createOne, crudCommandType, customOnRowClick, defaultNewItem, defaultSortByField, defaultSortDirection, deleteOne, editDialogExtraActionsFactory, extraActionsFactory, extraCreateOnePermissions, extraDeleteOnePermissions, extraUpdateOnePermissions, fetchAll, fetchAllSelect, formFieldDefinitions, getFormValuesFromItem, getName, getOptimisticUpdateIntermediateItem, itemName, loadables, onCreateError, onCreateSuccess, onDeleteError, onDeleteSuccess, onEditError, onEditSuccess, onFormChange, onRowsChange, onShowItem, resourceQueryKeyBase, schema, showIdColumn, subPages, tableColumns, tableStoreStorageNamePostFix, tableStoreStorageVersion, testIdAttributes, title, updateOne, }: CrudPageProps<TFormFields, TData, TTableData, TQueryKey, TApiPermission, TCommandName>) => import(
|
|
75
|
+
} = CommonDbApiPermission, TCommandName extends TApiPermission["command_name"] = TApiPermission["command_name"]>({ associationQueryKeys, canEditItem, contentActions, contentHeader, convertToTableData, createItemButtonText, createItemDialogTitle, createOne, crudCommandType, customOnRowClick, defaultNewItem, defaultSortByField, defaultSortDirection, deleteOne, editDialogExtraActionsFactory, extraActionsFactory, extraCreateOnePermissions, extraDeleteOnePermissions, extraUpdateOnePermissions, fetchAll, fetchAllSelect, formFieldDefinitions, getFormValuesFromItem, getName, getOptimisticUpdateIntermediateItem, itemName, loadables, onCreateError, onCreateSuccess, onDeleteError, onDeleteSuccess, onEditError, onEditSuccess, onFormChange, onRowsChange, onShowItem, resourceQueryKeyBase, schema, showIdColumn, subPages, tableColumns, tableStoreStorageNamePostFix, tableStoreStorageVersion, testIdAttributes, title, updateOne, }: CrudPageProps<TFormFields, TData, TTableData, TQueryKey, TApiPermission, TCommandName>) => import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const IdentifierIssuersAdminPage: () => import(
|
|
1
|
+
export declare const IdentifierIssuersAdminPage: () => import('react').JSX.Element;
|
package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OrganizationAdminPoliciesAdminPage: () => import(
|
|
1
|
+
export declare const OrganizationAdminPoliciesAdminPage: () => import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OrganizationContactsAdminPage: () => import(
|
|
1
|
+
export declare const OrganizationContactsAdminPage: () => import('react').JSX.Element;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { t as e } from "../../_chunks/TableUtil.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
2
|
+
import { ApiService as t } from "../../classes/services/ApiService/index.js";
|
|
3
|
+
import { t as n } from "../../_chunks/CrudPage.js";
|
|
4
|
+
import { COMMON_QUERY_KEY as r } from "../../constants/query.js";
|
|
5
|
+
import { CommonDbCommandName as i } from "@gen-epix/api-commondb";
|
|
6
|
+
import { useCallback as a, useMemo as o } from "react";
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
+
import { useTranslation as c } from "react-i18next";
|
|
9
|
+
import { object as l, string as u } from "yup";
|
|
10
|
+
import { TestIdUtil as d } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
11
|
+
import { FORM_FIELD_DEFINITION_TYPE as f } from "@gen-epix/ui-core-form/models/form";
|
|
12
|
+
import { SchemaUtil as p } from "@gen-epix/ui-core-form/utils/SchemaUtil";
|
|
13
|
+
import { useParams as m } from "react-router-dom";
|
|
14
14
|
//#region src/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.tsx
|
|
15
15
|
var h = () => {
|
|
16
|
-
let { siteId: h } =
|
|
17
|
-
id:
|
|
16
|
+
let { siteId: h } = m(), { t: g } = c(), _ = a(async (e) => (await t.getInstance().organizationApi.contactsGetAll(null, null, { signal: e })).data, []), v = a((e) => e.filter((e) => e.site_id === h), [h]), y = a(async (e, n) => (await t.getInstance().organizationApi.contactsPutOne(n.id, {
|
|
17
|
+
id: n.id,
|
|
18
18
|
site_id: h,
|
|
19
19
|
...e
|
|
20
|
-
})).data, [h]), b =
|
|
20
|
+
})).data, [h]), b = a(async (e) => (await t.getInstance().organizationApi.contactsPostOne({
|
|
21
21
|
site_id: h,
|
|
22
22
|
...e
|
|
23
|
-
})).data, [h]), x =
|
|
24
|
-
email:
|
|
25
|
-
name:
|
|
26
|
-
phone:
|
|
27
|
-
}), []), w =
|
|
23
|
+
})).data, [h]), x = a(async (e) => await t.getInstance().organizationApi.contactsDeleteOne(e.id), []), S = a((e) => e.name, []), C = o(() => l().shape({
|
|
24
|
+
email: u().email().max(256),
|
|
25
|
+
name: p.name,
|
|
26
|
+
phone: u().extendedAlphaNumeric().max(100)
|
|
27
|
+
}), []), w = a((e, t) => ({
|
|
28
28
|
id: t.id,
|
|
29
29
|
site_id: t.site_id,
|
|
30
30
|
...e
|
|
31
|
-
}), []), T =
|
|
31
|
+
}), []), T = o(() => [
|
|
32
32
|
{
|
|
33
|
-
definition:
|
|
33
|
+
definition: f.TEXTFIELD,
|
|
34
34
|
label: g`Name`,
|
|
35
35
|
name: "name"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
definition:
|
|
38
|
+
definition: f.TEXTFIELD,
|
|
39
39
|
label: g`Email`,
|
|
40
40
|
name: "email"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
definition:
|
|
43
|
+
definition: f.TEXTFIELD,
|
|
44
44
|
label: g`Phone`,
|
|
45
45
|
name: "phone"
|
|
46
46
|
}
|
|
47
|
-
], [g]), E =
|
|
47
|
+
], [g]), E = o(() => [
|
|
48
48
|
e.createTextColumn({
|
|
49
49
|
advancedSort: !0,
|
|
50
50
|
id: "name",
|
|
@@ -59,10 +59,10 @@ var h = () => {
|
|
|
59
59
|
name: g`Phone`
|
|
60
60
|
})
|
|
61
61
|
], [g]);
|
|
62
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ s(n, {
|
|
63
63
|
createItemDialogTitle: g`Create new contact`,
|
|
64
64
|
createOne: b,
|
|
65
|
-
crudCommandType:
|
|
65
|
+
crudCommandType: i.ContactCrudCommand,
|
|
66
66
|
defaultSortByField: "name",
|
|
67
67
|
defaultSortDirection: "asc",
|
|
68
68
|
deleteOne: x,
|
|
@@ -72,10 +72,10 @@ var h = () => {
|
|
|
72
72
|
getName: S,
|
|
73
73
|
getOptimisticUpdateIntermediateItem: w,
|
|
74
74
|
itemName: g`Site contact`,
|
|
75
|
-
resourceQueryKeyBase:
|
|
75
|
+
resourceQueryKeyBase: r.CONTACTS,
|
|
76
76
|
schema: C,
|
|
77
77
|
tableColumns: E,
|
|
78
|
-
testIdAttributes:
|
|
78
|
+
testIdAttributes: d.createAttributes("OrganizationContactsAdminPage"),
|
|
79
79
|
title: g`Site Contacts`,
|
|
80
80
|
updateOne: y
|
|
81
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OrganizationSitesAdminPage: () => import(
|
|
1
|
+
export declare const OrganizationSitesAdminPage: () => import('react').JSX.Element;
|