identity-admin-ui 1.5.0 → 1.5.1
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/BulkActions/BulkActionDialogs.d.ts +3 -3
- package/lib/cjs/types/components/BulkActions/IBulkActionComponent.d.ts +5 -0
- package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +2 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/components/BulkActions/BulkActionDialogs.d.ts +3 -3
- package/lib/esm/types/components/BulkActions/IBulkActionComponent.d.ts +5 -0
- package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +2 -0
- package/lib/index.d.ts +15 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ListParams } from '../dataGrid/GridTypes';
|
|
3
|
-
import { SizeType } from '../../helpers/Types';
|
|
4
3
|
import { GridRowSelectionModel } from '@mui/x-data-grid';
|
|
4
|
+
import { IBulkActionComponent } from './IBulkActionComponent';
|
|
5
5
|
export interface IBulkActionsDialogState {
|
|
6
6
|
state: boolean;
|
|
7
7
|
modelName: string;
|
|
@@ -14,11 +14,11 @@ interface BulkActionDialogProps {
|
|
|
14
14
|
bulkActionsDialogState: {
|
|
15
15
|
[key: string]: IBulkActionsDialogState;
|
|
16
16
|
} | undefined;
|
|
17
|
-
size: SizeType;
|
|
18
17
|
setBulkActionsDialogState: React.Dispatch<React.SetStateAction<{
|
|
19
18
|
[key: string]: IBulkActionsDialogState;
|
|
20
19
|
} | undefined>>;
|
|
21
20
|
setParams: (value: React.SetStateAction<ListParams>) => void;
|
|
21
|
+
bulkActionsComponents?: IBulkActionComponent;
|
|
22
22
|
}
|
|
23
|
-
export default function BulkActionDialogs({ bulkActionsDialogState,
|
|
23
|
+
export default function BulkActionDialogs({ bulkActionsDialogState, bulkActionsComponents, setParams, setBulkActionsDialogState, }: BulkActionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBulkActionsDialogState } from './BulkActionDialogs';
|
|
3
|
+
export type IBulkActionComponent = (bulkActionsDialogState: {
|
|
4
|
+
[key: string]: IBulkActionsDialogState;
|
|
5
|
+
} | undefined, onClose: (key: string) => void, onSubmit: (data: any, actionKey: string) => void) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IBulkActionComponent } from '../../../components/BulkActions/IBulkActionComponent';
|
|
2
3
|
import { ListParams } from '../../../components/dataGrid/GridTypes';
|
|
3
4
|
export interface IListProps {
|
|
4
5
|
apiRoute: string;
|
|
@@ -12,4 +13,5 @@ export interface IActionsProps {
|
|
|
12
13
|
}
|
|
13
14
|
export interface IListRecordsProps extends IListProps {
|
|
14
15
|
Actions?: (props: IActionsProps) => JSX.Element;
|
|
16
|
+
bulkActionsComponents?: IBulkActionComponent;
|
|
15
17
|
}
|
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 } from '@mui/x-data-grid';
|
|
5
|
+
import { GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
|
|
6
6
|
import * as axios from 'axios';
|
|
7
7
|
import { AxiosRequestConfig } from 'axios';
|
|
8
8
|
import * as notistack from 'notistack';
|
|
@@ -51,6 +51,19 @@ interface ListParams {
|
|
|
51
51
|
filters?: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
interface IBulkActionsDialogState {
|
|
55
|
+
state: boolean;
|
|
56
|
+
modelName: string;
|
|
57
|
+
saveLoadingState: boolean;
|
|
58
|
+
fullScreen: boolean;
|
|
59
|
+
setSelected: (value: React.SetStateAction<GridRowSelectionModel>) => void;
|
|
60
|
+
documentIds: string[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type IBulkActionComponent = (bulkActionsDialogState: {
|
|
64
|
+
[key: string]: IBulkActionsDialogState;
|
|
65
|
+
} | undefined, onClose: (key: string) => void, onSubmit: (data: any, actionKey: string) => void) => JSX.Element;
|
|
66
|
+
|
|
54
67
|
interface IListProps {
|
|
55
68
|
apiRoute: string;
|
|
56
69
|
key?: string;
|
|
@@ -63,6 +76,7 @@ interface IActionsProps {
|
|
|
63
76
|
}
|
|
64
77
|
interface IListRecordsProps extends IListProps {
|
|
65
78
|
Actions?: (props: IActionsProps) => JSX.Element;
|
|
79
|
+
bulkActionsComponents?: IBulkActionComponent;
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
declare function ListRecords(props: IListRecordsProps): react_jsx_runtime.JSX.Element;
|