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
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ interface ISchemaObject {
|
|
|
249
249
|
[key: string]: ISchemaObject;
|
|
250
250
|
};
|
|
251
251
|
isClickable?: boolean;
|
|
252
|
+
multipleInFilter?: boolean;
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
type ResourceResponse = {
|
|
@@ -492,6 +493,10 @@ type IdentityModelConfigurationPageProps = {
|
|
|
492
493
|
};
|
|
493
494
|
declare function IdentityModelConfigurationPage({ path, modelRoute }: IdentityModelConfigurationPageProps): react_jsx_runtime.JSX.Element;
|
|
494
495
|
|
|
496
|
+
declare function Permissions({ isEdit }: {
|
|
497
|
+
isEdit: boolean;
|
|
498
|
+
}): react_jsx_runtime.JSX.Element;
|
|
499
|
+
|
|
495
500
|
interface RequestConfig {
|
|
496
501
|
url: string;
|
|
497
502
|
body?: any;
|
|
@@ -611,4 +616,4 @@ interface IdentityShowProps {
|
|
|
611
616
|
|
|
612
617
|
declare function IdentityShow({ record, path, userPath }: IdentityShowProps): react_jsx_runtime.JSX.Element;
|
|
613
618
|
|
|
614
|
-
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, IAction, IActionMin, IDialogProps, IExtarAction, IExtras, IFilter, IMainProperty, IOptionalResource, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, IdentityShow as ShowRecord, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useDialogs, useNavData, usePaths, useResources, useSnackAlert };
|
|
619
|
+
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, IAction, IActionMin, IDialogProps, IExtarAction, IExtras, IFilter, IMainProperty, IOptionalResource, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, IdentityPage, IdentityPageProps, Permissions as IdentityPermissionPage, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, IdentityShow as ShowRecord, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useDialogs, useNavData, usePaths, useResources, useSnackAlert };
|