identity-admin-ui 1.7.8 → 1.7.10

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.
@@ -2,6 +2,8 @@ import * as React from 'react';
2
2
  import { GridRenderCellParams } from '@mui/x-data-grid';
3
3
  import { ParamsState, ListProps } from './GridTypes';
4
4
  import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
5
+ import { IOptionalResource } from '../../context';
6
+ import IResource from '../../context/Resource';
5
7
  export interface IGridExtras {
6
8
  noRowsText?: string;
7
9
  bulkDeleteText?: string;
@@ -16,6 +18,7 @@ export interface IGridExtras {
16
18
  hideBulkActions?: boolean;
17
19
  hideActions?: boolean;
18
20
  hideToolbar?: boolean;
21
+ overridenResource?: (resource: IResource) => IOptionalResource;
19
22
  }
20
23
  export interface GridProps {
21
24
  resources: any;
@@ -8,6 +8,14 @@ export default interface IResource {
8
8
  showProperties: IProperty[];
9
9
  properties: IMainProperty;
10
10
  }
11
+ export interface IOptionalResource {
12
+ filterProperties?: string[];
13
+ quickFilterProperties?: string[];
14
+ formProperties?: string[];
15
+ listProperties?: IProperty[];
16
+ showProperties?: IProperty[];
17
+ properties?: IMainProperty;
18
+ }
11
19
  export interface IProperty {
12
20
  key: string;
13
21
  value: string;
@@ -0,0 +1,4 @@
1
+ export declare class EnumUtils {
2
+ static enhance(value?: string): string;
3
+ private static enhanceEnum;
4
+ }
@@ -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
+ };