identity-admin-ui 1.6.15 → 1.7.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.
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ParamsState } from './GridTypes';
2
+ import { GridRenderCellParams } from '@mui/x-data-grid';
3
+ import { ParamsState, ListProps } from './GridTypes';
3
4
  import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
4
5
  export interface IGridExtras {
5
6
  noRowsText?: string;
@@ -9,6 +10,9 @@ export interface IGridExtras {
9
10
  itemsSelectedText?: string;
10
11
  cancelText?: string;
11
12
  confirmText?: string;
13
+ onClickProperty?: {
14
+ [key: string]: (prop: ListProps, resourceName: string, params: GridRenderCellParams) => void;
15
+ };
12
16
  }
13
17
  export interface GridProps {
14
18
  resources: any;
@@ -0,0 +1,10 @@
1
+ import { GridRenderCellParams } from '@mui/x-data-grid';
2
+ import { ListProps } from './GridTypes';
3
+ import { IGridExtras } from './DataGridd';
4
+ export interface IGridField {
5
+ params: GridRenderCellParams;
6
+ props: ListProps;
7
+ resourceName: string;
8
+ extras?: IGridExtras;
9
+ }
10
+ export declare function GridField({ params, props, resourceName, extras }: IGridField): import("react/jsx-runtime").JSX.Element;
@@ -12,6 +12,4 @@ export declare function setGridMode(mode: GridMode): {
12
12
  sortingMode: GridMode;
13
13
  filterMode: GridMode;
14
14
  };
15
- export declare function createColumns(listProperties: ListProps[], resources: any, resourceName: string, dialogState: DialogState, gridState: ParamsState, userPath: {
16
- [key: string]: any;
17
- }, baseApiRoute: string, isDesktop?: boolean, extras?: IGridExtras): GridColDef[];
15
+ export declare function createColumns(listProperties: ListProps[], resources: any, resourceName: string, dialogState: DialogState, gridState: ParamsState, isDesktop?: boolean, extras?: IGridExtras): GridColDef[];
@@ -114,5 +114,6 @@ export interface ISchemaObject {
114
114
  schema?: {
115
115
  [key: string]: ISchemaObject;
116
116
  };
117
+ isClickable?: boolean;
117
118
  }
118
119
  export {};
@@ -16,4 +16,5 @@ export interface IListRecordsProps extends IListProps {
16
16
  extras?: IGridExtras;
17
17
  Actions?: (props: IActionsProps) => JSX.Element;
18
18
  bulkActionsComponents?: IBulkActionComponent;
19
+ HeadingView?: JSX.Element;
19
20
  }
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as react from 'react';
4
4
  import { ReactElement, ReactNode } from 'react';
5
- import { GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
5
+ import { GridRenderCellParams, GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
6
6
  import * as axios from 'axios';
7
7
  import { AxiosRequestConfig } from 'axios';
8
8
  import * as _mui_material from '@mui/material';
@@ -49,8 +49,16 @@ interface IGridExtras {
49
49
  itemsSelectedText?: string;
50
50
  cancelText?: string;
51
51
  confirmText?: string;
52
+ onClickProperty?: {
53
+ [key: string]: (prop: ListProps, resourceName: string, params: GridRenderCellParams) => void;
54
+ };
52
55
  }
53
56
 
57
+ interface ListProps {
58
+ value: string;
59
+ key: string;
60
+ path: string;
61
+ }
54
62
  interface ListParams {
55
63
  page: number;
56
64
  perPage: number;
@@ -90,6 +98,7 @@ interface IListRecordsProps extends IListProps {
90
98
  extras?: IGridExtras;
91
99
  Actions?: (props: IActionsProps) => JSX.Element;
92
100
  bulkActionsComponents?: IBulkActionComponent;
101
+ HeadingView?: JSX.Element;
93
102
  }
94
103
 
95
104
  type AlertColor = 'success' | 'info' | 'warning' | 'error';
@@ -368,6 +377,7 @@ interface ISchemaObject {
368
377
  schema?: {
369
378
  [key: string]: ISchemaObject;
370
379
  };
380
+ isClickable?: boolean;
371
381
  }
372
382
 
373
383
  type ResourceResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.6.15",
3
+ "version": "1.7.0",
4
4
  "description": "Identity solutions UI package using for identity-admin dashboard",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",