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.
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/types/components/dataGrid/DataGridd.d.ts +5 -1
- package/lib/cjs/types/components/dataGrid/GridField.d.ts +10 -0
- package/lib/cjs/types/components/dataGrid/GridUtils.d.ts +1 -3
- package/lib/cjs/types/context/Resource.d.ts +1 -0
- package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +1 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/components/dataGrid/DataGridd.d.ts +5 -1
- package/lib/esm/types/components/dataGrid/GridField.d.ts +10 -0
- package/lib/esm/types/components/dataGrid/GridUtils.d.ts +1 -3
- package/lib/esm/types/context/Resource.d.ts +1 -0
- package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +1 -0
- package/lib/index.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
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,
|
|
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[];
|
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 = {
|