identity-admin-ui 1.9.0 → 1.9.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/lib/cjs/index.js +23 -1
- package/lib/cjs/types/components/Arrow.d.ts +14 -0
- package/lib/cjs/types/context/Resource.d.ts +1 -0
- package/lib/cjs/types/helpers/FilterValues.d.ts +4 -1
- package/lib/cjs/types/pages/index.d.ts +1 -0
- package/lib/cjs/types/pages/permissions/CheckBoxForm.d.ts +6 -0
- package/lib/cjs/types/pages/permissions/DropDownIcon.d.ts +5 -0
- package/lib/cjs/types/pages/permissions/Form.d.ts +9 -0
- package/lib/cjs/types/pages/permissions/IPermissionGroup.d.ts +4 -0
- package/lib/cjs/types/pages/permissions/PermissionGroupForm.d.ts +12 -0
- package/lib/cjs/types/pages/permissions/PermissionsList.d.ts +11 -0
- package/lib/cjs/types/pages/permissions/dataMapper.d.ts +2 -0
- package/lib/cjs/types/pages/permissions/index.d.ts +3 -0
- package/lib/cjs/types/pages/permissions/loading/CheckBoxLoading.d.ts +1 -0
- package/lib/cjs/types/pages/permissions/loading/DropDownLoading.d.ts +1 -0
- package/lib/cjs/types/pages/permissions/loading/index.d.ts +1 -0
- package/lib/cjs/types/pages/permissions/types.d.ts +20 -0
- package/lib/esm/index.js +31 -10
- package/lib/esm/types/components/Arrow.d.ts +14 -0
- package/lib/esm/types/context/Resource.d.ts +1 -0
- package/lib/esm/types/helpers/FilterValues.d.ts +4 -1
- package/lib/esm/types/pages/index.d.ts +1 -0
- package/lib/esm/types/pages/permissions/CheckBoxForm.d.ts +6 -0
- package/lib/esm/types/pages/permissions/DropDownIcon.d.ts +5 -0
- package/lib/esm/types/pages/permissions/Form.d.ts +9 -0
- package/lib/esm/types/pages/permissions/IPermissionGroup.d.ts +4 -0
- package/lib/esm/types/pages/permissions/PermissionGroupForm.d.ts +12 -0
- package/lib/esm/types/pages/permissions/PermissionsList.d.ts +11 -0
- package/lib/esm/types/pages/permissions/dataMapper.d.ts +2 -0
- package/lib/esm/types/pages/permissions/index.d.ts +3 -0
- package/lib/esm/types/pages/permissions/loading/CheckBoxLoading.d.ts +1 -0
- package/lib/esm/types/pages/permissions/loading/DropDownLoading.d.ts +1 -0
- package/lib/esm/types/pages/permissions/loading/index.d.ts +1 -0
- package/lib/esm/types/pages/permissions/types.d.ts +20 -0
- package/lib/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
export declare enum ArrowDirections {
|
|
3
|
+
LEFT = 0,
|
|
4
|
+
RIGHT = 1,
|
|
5
|
+
UP = 2,
|
|
6
|
+
DOWN = 3
|
|
7
|
+
}
|
|
8
|
+
export interface IArrowProps {
|
|
9
|
+
direction: ArrowDirections;
|
|
10
|
+
onClick?: any;
|
|
11
|
+
sxProps?: SxProps;
|
|
12
|
+
color?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function Arrow({ direction, sxProps, onClick, color }: IArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ISchemaObject } from '../context';
|
|
1
2
|
export declare function getFilterValues(fieldObject: any, field: string, defaultValuesObject: {
|
|
2
3
|
[key: string]: any;
|
|
3
|
-
}, searchParams: any
|
|
4
|
+
}, searchParams: any, schema: {
|
|
5
|
+
[key: string]: ISchemaObject;
|
|
6
|
+
}): void;
|
|
@@ -4,3 +4,4 @@ export { default as IdentityList } from './IdentityListPage';
|
|
|
4
4
|
export { default as IdentityShow } from './IdentityShowPage';
|
|
5
5
|
export { default as IdentityEdit } from './IdentityEditPage';
|
|
6
6
|
export { default as IdenityModelConfiguration } from './IdentityModelConfigurationPage';
|
|
7
|
+
export { default as IdentityPermissionPage } from './permissions';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPermissionComponent } from './types';
|
|
2
|
+
export interface IDropDownIcon extends IPermissionComponent {
|
|
3
|
+
onClickOpen: (modelName: string) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function DropDownIcon({ onClickOpen, modelName, checked }: IDropDownIcon): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPermissions } from './types';
|
|
2
|
+
import { IPermissionGroup } from './IPermissionGroup';
|
|
3
|
+
export interface IForm {
|
|
4
|
+
modelPermissions: IPermissions[];
|
|
5
|
+
fetchLoading: boolean;
|
|
6
|
+
isEdit: boolean;
|
|
7
|
+
permissionGroup: IPermissionGroup | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function Form({ modelPermissions, fetchLoading, isEdit, permissionGroup }: IForm): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPermissions, IChecked } from './types';
|
|
2
|
+
interface IPermissionsGroupForm {
|
|
3
|
+
modelPermissions: IPermissions[];
|
|
4
|
+
checked?: IChecked;
|
|
5
|
+
handleChange: (modelName: string, key: string, value: boolean) => void;
|
|
6
|
+
onClickOpen: (modelName: string) => void;
|
|
7
|
+
getValues: any;
|
|
8
|
+
fetchLoading: boolean;
|
|
9
|
+
onCheckAll: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function PermissionGroupForm(props: IPermissionsGroupForm): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IChecked, IPermissions } from './types';
|
|
2
|
+
interface IPermissionsList {
|
|
3
|
+
modelPermissions: IPermissions[];
|
|
4
|
+
checked?: IChecked;
|
|
5
|
+
handleChange: (modelName: string, key: string, value: boolean) => void;
|
|
6
|
+
onClickOpen: (modelName: string) => void;
|
|
7
|
+
fetchLoading: boolean;
|
|
8
|
+
onCheckAll: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PermissionsList({ modelPermissions, checked, fetchLoading, onCheckAll, handleChange, onClickOpen, }: IPermissionsList): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LoadingCheckBox(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LoadingDropDownIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PermissionLoading(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IChecked {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: boolean;
|
|
4
|
+
};
|
|
5
|
+
}
|
|
6
|
+
export interface IPermission {
|
|
7
|
+
id: string;
|
|
8
|
+
modelName: string;
|
|
9
|
+
label: string;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IPermissions {
|
|
13
|
+
modelName: string;
|
|
14
|
+
label: string;
|
|
15
|
+
permissions: IPermission[];
|
|
16
|
+
}
|
|
17
|
+
export interface IPermissionComponent {
|
|
18
|
+
checked: IChecked | undefined;
|
|
19
|
+
modelName: string;
|
|
20
|
+
}
|