identity-admin-ui 1.1.0 → 1.3.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/lib/cjs/index.js +130 -130
- package/lib/cjs/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/cjs/types/context/AppConfigurationsContext.d.ts +15 -15
- package/lib/cjs/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +15 -14
- package/lib/cjs/types/helpers/FilterValues.d.ts +3 -0
- package/lib/cjs/types/helpers/SubmitUrlFilter.d.ts +1 -0
- package/lib/cjs/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/cjs/types/hooks/useCredentials.d.ts +2 -0
- package/lib/cjs/types/hooks/usePaths.d.ts +8 -0
- package/lib/cjs/types/hooks/useResources.d.ts +5 -0
- package/lib/cjs/types/hooks/useSnackAlert.d.ts +6 -0
- package/lib/cjs/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/cjs/types/routes/AdminRouter.d.ts +10 -10
- package/lib/cjs/types/routes/paths.d.ts +5 -5
- package/lib/esm/index.js +130 -130
- package/lib/esm/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/esm/types/context/AppConfigurationsContext.d.ts +15 -15
- package/lib/esm/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +15 -14
- package/lib/esm/types/helpers/FilterValues.d.ts +3 -0
- package/lib/esm/types/helpers/SubmitUrlFilter.d.ts +1 -0
- package/lib/esm/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/esm/types/hooks/useCredentials.d.ts +2 -0
- package/lib/esm/types/hooks/usePaths.d.ts +8 -0
- package/lib/esm/types/hooks/useResources.d.ts +5 -0
- package/lib/esm/types/hooks/useSnackAlert.d.ts +6 -0
- package/lib/esm/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/esm/types/routes/AdminRouter.d.ts +10 -10
- package/lib/esm/types/routes/paths.d.ts +5 -5
- package/lib/index.d.ts +422 -411
- package/package.json +78 -77
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AlertColor } from '@mui/material';
|
|
2
|
+
export interface ISnackAlert {
|
|
3
|
+
message?: string;
|
|
4
|
+
open: boolean;
|
|
5
|
+
severity?: AlertColor;
|
|
6
|
+
horizontalPosition?: 'left' | 'center' | 'right';
|
|
7
|
+
verticalPosition?: 'top' | 'bottom';
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function IdentitySnackAlert({ open, message, severity, horizontalPosition, verticalPosition, onClose }: ISnackAlert): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SizeType } from '../helpers/Types';
|
|
3
|
-
|
|
4
|
-
textFieldSize: SizeType;
|
|
5
|
-
themeLayout?: 'vertical' | 'horizontal' | 'mini';
|
|
6
|
-
defaultRowsPerPage: number;
|
|
7
|
-
themeStretch: boolean;
|
|
8
|
-
setThemeLayout?: React.Dispatch<React.SetStateAction<'horizontal' | 'vertical' | 'mini'>>;
|
|
9
|
-
loadingLoago?: string;
|
|
10
|
-
navBarLogo?: string;
|
|
11
|
-
miniNavBarLogo?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const AppConfigurationsContext: import("react").Context<AppConfigurations>;
|
|
14
|
-
declare const AppConfigurationsContextProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { AppConfigurationsContext, AppConfigurationsContextProvider };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SizeType } from '../helpers/Types';
|
|
3
|
+
type AppConfigurations = {
|
|
4
|
+
textFieldSize: SizeType;
|
|
5
|
+
themeLayout?: 'vertical' | 'horizontal' | 'mini';
|
|
6
|
+
defaultRowsPerPage: number;
|
|
7
|
+
themeStretch: boolean;
|
|
8
|
+
setThemeLayout?: React.Dispatch<React.SetStateAction<'horizontal' | 'vertical' | 'mini'>>;
|
|
9
|
+
loadingLoago?: string;
|
|
10
|
+
navBarLogo?: string;
|
|
11
|
+
miniNavBarLogo?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const AppConfigurationsContext: import("react").Context<AppConfigurations>;
|
|
14
|
+
declare const AppConfigurationsContextProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { AppConfigurationsContext, AppConfigurationsContextProvider };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlertColor } from '@mui/material';
|
|
3
|
+
import { SnackbarOrigin } from 'notistack';
|
|
4
|
+
export interface ISnackMessageProps {
|
|
5
|
+
state: boolean;
|
|
6
|
+
message?: string | undefined;
|
|
7
|
+
severity?: AlertColor | undefined;
|
|
8
|
+
position?: SnackbarOrigin;
|
|
9
|
+
}
|
|
10
|
+
declare const SnackAlertContext: import("react").Context<{
|
|
11
|
+
setAlert: (message: string, severity: AlertColor, position?: SnackbarOrigin) => void;
|
|
12
|
+
setErrorAlert: (message: string, position?: SnackbarOrigin) => void;
|
|
13
|
+
setSuccessAlert: (message: string, position?: SnackbarOrigin) => void;
|
|
14
|
+
}>;
|
|
15
|
+
type SnackAlertProviderProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare function SnackAlertProvider({ children }: SnackAlertProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { SnackAlertContext, SnackAlertProvider };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListParams } from '../../../components/dataGrid/GridTypes';
|
|
3
|
+
export interface IListProps {
|
|
4
|
+
apiRoute: string;
|
|
5
|
+
key?: string;
|
|
6
|
+
path: string;
|
|
7
|
+
modelName: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IActionsProps {
|
|
10
|
+
initialQueryParams: ListParams;
|
|
11
|
+
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
12
|
+
}
|
|
13
|
+
export interface IListRecordsProps extends IListProps {
|
|
14
|
+
Actions?: (props: IActionsProps) => JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getUrlFilters(data: any, schema: any, scopeKey: string | undefined): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useAppConfigurations: () => {
|
|
3
|
+
textFieldSize: import("../helpers/Types").SizeType;
|
|
4
|
+
themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
|
|
5
|
+
defaultRowsPerPage: number;
|
|
6
|
+
themeStretch: boolean;
|
|
7
|
+
setThemeLayout?: import("react").Dispatch<import("react").SetStateAction<"horizontal" | "vertical" | "mini">> | undefined;
|
|
8
|
+
loadingLoago?: string | undefined;
|
|
9
|
+
navBarLogo?: string | undefined;
|
|
10
|
+
miniNavBarLogo?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export default useAppConfigurations;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const useSnackAlert: () => {
|
|
2
|
+
setAlert: (message: string, severity: import("@mui/material").AlertColor, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
3
|
+
setErrorAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
4
|
+
setSuccessAlert: (message: string, position?: import("notistack").SnackbarOrigin | undefined) => void;
|
|
5
|
+
};
|
|
6
|
+
export default useSnackAlert;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useNavData(): {
|
|
2
|
-
subheader: string;
|
|
3
|
-
items: any;
|
|
4
|
-
}[];
|
|
1
|
+
export declare function useNavData(): {
|
|
2
|
+
subheader: string;
|
|
3
|
+
items: any;
|
|
4
|
+
}[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SizeType } from '../helpers/Types';
|
|
2
|
-
export declare var SIZE: SizeType;
|
|
3
|
-
export default function AdminRouter(): {
|
|
4
|
-
path: any;
|
|
5
|
-
children: {
|
|
6
|
-
path: string;
|
|
7
|
-
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
children: any[];
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
1
|
+
import { SizeType } from '../helpers/Types';
|
|
2
|
+
export declare var SIZE: SizeType;
|
|
3
|
+
export default function AdminRouter(): {
|
|
4
|
+
path: any;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
children: any[];
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function path(root: string, sublink: string): string;
|
|
2
|
-
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
-
export declare var ADMIN_PATH: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
1
|
+
export declare function path(root: string, sublink: string): string;
|
|
2
|
+
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
+
export declare var ADMIN_PATH: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|