identity-admin-ui 1.6.16 → 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 {};
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;
@@ -369,6 +377,7 @@ interface ISchemaObject {
369
377
  schema?: {
370
378
  [key: string]: ISchemaObject;
371
379
  };
380
+ isClickable?: boolean;
372
381
  }
373
382
 
374
383
  type ResourceResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.6.16",
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",