identity-admin-ui 1.4.9 → 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.
Files changed (50) hide show
  1. package/lib/cjs/index.js +12 -12
  2. package/lib/cjs/types/components/BulkActions/BulkActionDialogs.d.ts +3 -3
  3. package/lib/cjs/types/components/BulkActions/IBulkActionComponent.d.ts +5 -0
  4. package/lib/cjs/types/components/DashboardFormFields/ArrayField/ArrayComponent.d.ts +15 -0
  5. package/lib/cjs/types/components/DashboardFormFields/ArrayField/ArrayItemCard.d.ts +9 -0
  6. package/lib/cjs/types/components/DashboardFormFields/ArrayField/IdentityArray.d.ts +14 -0
  7. package/lib/cjs/types/components/DashboardFormFields/BooleanField.d.ts +6 -0
  8. package/lib/cjs/types/components/DashboardFormFields/EnumField.d.ts +5 -0
  9. package/lib/cjs/types/components/DashboardFormFields/IFieldProps.d.ts +6 -0
  10. package/lib/cjs/types/components/DashboardFormFields/IdentityField.d.ts +67 -0
  11. package/lib/cjs/types/components/DashboardFormFields/PasswordField.d.ts +6 -0
  12. package/lib/cjs/types/components/DashboardFormFields/SingleImageField.d.ts +6 -0
  13. package/lib/cjs/types/components/DashboardFormFields/SwitchField.d.ts +8 -0
  14. package/lib/cjs/types/components/DragImages.d.ts +3 -1
  15. package/lib/cjs/types/components/Draggable/DraggableComponent.d.ts +16 -0
  16. package/lib/cjs/types/components/hook-form/RHFGooglePlaces.d.ts +19 -1
  17. package/lib/cjs/types/components/mediaUploader/MediaUploaderDialog.d.ts +4 -3
  18. package/lib/cjs/types/components/upload/MultiFileShow.d.ts +1 -1
  19. package/lib/cjs/types/components/upload/type.d.ts +4 -1
  20. package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +2 -0
  21. package/lib/cjs/types/helpers/FileManager/FileData.d.ts +8 -0
  22. package/lib/cjs/types/helpers/FileManager/FileShow.d.ts +13 -0
  23. package/lib/cjs/types/helpers/FileManager/MuliFileView.d.ts +18 -0
  24. package/lib/cjs/types/sections/dashboard/ImageCard.d.ts +8 -7
  25. package/lib/esm/index.js +12 -12
  26. package/lib/esm/types/components/BulkActions/BulkActionDialogs.d.ts +3 -3
  27. package/lib/esm/types/components/BulkActions/IBulkActionComponent.d.ts +5 -0
  28. package/lib/esm/types/components/DashboardFormFields/ArrayField/ArrayComponent.d.ts +15 -0
  29. package/lib/esm/types/components/DashboardFormFields/ArrayField/ArrayItemCard.d.ts +9 -0
  30. package/lib/esm/types/components/DashboardFormFields/ArrayField/IdentityArray.d.ts +14 -0
  31. package/lib/esm/types/components/DashboardFormFields/BooleanField.d.ts +6 -0
  32. package/lib/esm/types/components/DashboardFormFields/EnumField.d.ts +5 -0
  33. package/lib/esm/types/components/DashboardFormFields/IFieldProps.d.ts +6 -0
  34. package/lib/esm/types/components/DashboardFormFields/IdentityField.d.ts +67 -0
  35. package/lib/esm/types/components/DashboardFormFields/PasswordField.d.ts +6 -0
  36. package/lib/esm/types/components/DashboardFormFields/SingleImageField.d.ts +6 -0
  37. package/lib/esm/types/components/DashboardFormFields/SwitchField.d.ts +8 -0
  38. package/lib/esm/types/components/DragImages.d.ts +3 -1
  39. package/lib/esm/types/components/Draggable/DraggableComponent.d.ts +16 -0
  40. package/lib/esm/types/components/hook-form/RHFGooglePlaces.d.ts +19 -1
  41. package/lib/esm/types/components/mediaUploader/MediaUploaderDialog.d.ts +4 -3
  42. package/lib/esm/types/components/upload/MultiFileShow.d.ts +1 -1
  43. package/lib/esm/types/components/upload/type.d.ts +4 -1
  44. package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +2 -0
  45. package/lib/esm/types/helpers/FileManager/FileData.d.ts +8 -0
  46. package/lib/esm/types/helpers/FileManager/FileShow.d.ts +13 -0
  47. package/lib/esm/types/helpers/FileManager/MuliFileView.d.ts +18 -0
  48. package/lib/esm/types/sections/dashboard/ImageCard.d.ts +8 -7
  49. package/lib/index.d.ts +15 -1
  50. 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, size, setParams, setBulkActionsDialogState }: BulkActionDialogProps): import("react/jsx-runtime").JSX.Element;
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;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare enum ArrayDirection {
3
+ HORIZONTAL = "HORIZONTAL",
4
+ VERTICAL = "VERTICAL"
5
+ }
6
+ export interface IArrayComponent {
7
+ draggable: boolean;
8
+ handleRemove: (index: number) => void;
9
+ itemComponent: (index: number, item: any) => JSX.Element;
10
+ handleDrop?: (droppedItem: any) => void;
11
+ list: any;
12
+ direction?: ArrayDirection;
13
+ numberOfColumns?: number;
14
+ }
15
+ export declare function ArrayComponent({ draggable, handleDrop, itemComponent, list, handleRemove, direction, numberOfColumns, }: IArrayComponent): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface IArrayItemCard {
3
+ handleRemove: (index: number) => void;
4
+ itemComponent: (index: number, item: any) => JSX.Element;
5
+ index: number;
6
+ item: any;
7
+ draggable: boolean;
8
+ }
9
+ export declare function ArrayItemCard({ index, draggable, item, itemComponent, handleRemove }: IArrayItemCard): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ArrayDirection } from './ArrayComponent';
3
+ export interface IIdentiyArray {
4
+ draggable: boolean;
5
+ handleRemove: (index: number) => void;
6
+ itemComponent: (index: number, item: any) => JSX.Element;
7
+ handleDrop?: (droppedItem: any) => void;
8
+ handleAdd: () => void;
9
+ addButtonText?: string;
10
+ list: any;
11
+ direction?: ArrayDirection;
12
+ numberOfColumns?: number;
13
+ }
14
+ export declare function IdentityArray({ draggable, addButtonText, handleRemove, itemComponent, handleDrop, handleAdd, list, direction, numberOfColumns }: IIdentiyArray): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { IInputFieldProps } from './IFieldProps';
2
+ export interface IBooleanField extends IInputFieldProps {
3
+ getValues: any;
4
+ handleChange: (event: any) => void;
5
+ }
6
+ export declare function BooleanField({ name, disabled, label, getValues, handleChange }: IBooleanField): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { IInputFieldProps } from './IFieldProps';
2
+ export interface IEnumField extends IInputFieldProps {
3
+ values: any;
4
+ }
5
+ export declare function EnumField({ values, name, label, size, disabled }: IEnumField): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface IInputFieldProps {
2
+ name: string;
3
+ size: any;
4
+ label: string;
5
+ disabled: boolean;
6
+ }
@@ -0,0 +1,67 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ImageItem } from '../mediaUploader/ImageSelector';
3
+ export interface IIdentityField {
4
+ fieldKey: string;
5
+ schema: any;
6
+ fullKey: string;
7
+ size: any;
8
+ isEdit: boolean;
9
+ baseApiRoute: string;
10
+ setValue: any;
11
+ getValues: any;
12
+ showPassword: boolean;
13
+ tabValue: string;
14
+ addInArrayButtonText?: string;
15
+ loading: any;
16
+ referencedValues: any;
17
+ arrayTypeObjects: {
18
+ [key: string]: any;
19
+ };
20
+ arrayFields: {
21
+ [key: string]: any;
22
+ };
23
+ image: {
24
+ [key: string]: ImageItem | undefined;
25
+ };
26
+ multiImages: {
27
+ [key: string]: ImageItem[] | undefined;
28
+ };
29
+ imageDialogState: {
30
+ [key: string]: boolean;
31
+ };
32
+ setShowPassword: (showPassword: boolean) => void;
33
+ handleNumberChange: (value: any, key: string) => void;
34
+ handleTabChange: (event: React.SyntheticEvent, newValue: string) => void;
35
+ handleDrop: (acceptedFiles: any, key: any) => void;
36
+ handleChange: (event: any) => void;
37
+ CreateArrayField(key: string): void;
38
+ createArrayTypeObject(key: string): void;
39
+ handleRemove: (key: string, index: number) => void;
40
+ handleDropArrayItem: (key: string, droppedItem: any) => void;
41
+ handleAdd: (key: string) => void;
42
+ onRefrenceChanged: (value: any, key: string) => void;
43
+ handleOpenChangedState: (apiRoute: string, pathRoute: string, value: any, key: string, fullKey: string) => Promise<void>;
44
+ setImage: Dispatch<SetStateAction<{
45
+ [key: string]: ImageItem | undefined;
46
+ }>>;
47
+ setMultiImages: Dispatch<SetStateAction<{
48
+ [key: string]: ImageItem[] | undefined;
49
+ }>>;
50
+ handleRemoveImage: (key: string) => void;
51
+ handleEditImage: (key: string) => void;
52
+ setImageDialogState: React.Dispatch<React.SetStateAction<{
53
+ [key: string]: boolean;
54
+ }>>;
55
+ dismissDialogState(keyValue: string, imageDialogState: {
56
+ [key: string]: boolean;
57
+ }, setImageDialogState: Dispatch<SetStateAction<{
58
+ [key: string]: boolean;
59
+ }>>): void;
60
+ setImages(keyValue: string, image: {
61
+ [key: string]: ImageItem | ImageItem[] | undefined;
62
+ }, setImage: Dispatch<SetStateAction<{
63
+ [key: string]: ImageItem | ImageItem[] | undefined;
64
+ }>>, data: ImageItem | ImageItem[]): void;
65
+ }
66
+ export interface ImageCardProps {
67
+ }
@@ -0,0 +1,6 @@
1
+ import { IInputFieldProps } from './IFieldProps';
2
+ export interface IPasswordField extends IInputFieldProps {
3
+ showPassword: boolean;
4
+ setShowPassword: (showPassword: boolean) => void;
5
+ }
6
+ export declare function PasswordField({ name, disabled, label, size, showPassword, setShowPassword }: IPasswordField): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface ISingleImageField {
2
+ handleDrop: (file: any, fullKey: string) => void;
3
+ key: string;
4
+ name: string;
5
+ }
6
+ export declare function SingleImageField({ key, name, handleDrop }: ISingleImageField): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IInputFieldProps } from './IFieldProps';
2
+ export interface ISwitchField extends IInputFieldProps {
3
+ getValues: any;
4
+ checked: boolean;
5
+ fieldKey: string;
6
+ handleChange: (event: any, key: string) => void;
7
+ }
8
+ export declare function SwitchField({ name, checked, disabled, fieldKey, label, handleChange }: ISwitchField): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
1
  import { ImageItem } from "./mediaUploader/ImageSelector";
2
+ import { FileData } from "../helpers/FileManager/FileData";
2
3
  declare function SortDrag(props: {
3
4
  items: ImageItem[];
4
- onRemove: any;
5
+ onRemove: (file: FileData) => void;
5
6
  setImages: any;
7
+ disabled: boolean | undefined;
6
8
  }): import("react/jsx-runtime").JSX.Element;
7
9
  export default SortDrag;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ interface IDroppedItem {
3
+ source?: {
4
+ index: number;
5
+ } | null;
6
+ destination?: {
7
+ index: number;
8
+ } | null;
9
+ }
10
+ export interface IDraggableComponent {
11
+ handleDrop: (droppedItem: IDroppedItem) => void;
12
+ list: any;
13
+ itemComponent: (item: any, index: number) => JSX.Element;
14
+ }
15
+ export declare function DraggableComponent({ handleDrop, list, itemComponent }: IDraggableComponent): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,7 +1,25 @@
1
+ import * as React from 'react';
1
2
  import { TextFieldProps } from '@mui/material/TextField';
3
+ export interface LocationOption {
4
+ placeId?: string;
5
+ description?: string;
6
+ location: {
7
+ type: "Point";
8
+ coordinates: [longitude: number, latitude: number];
9
+ };
10
+ }
11
+ type PlaceState = React.Dispatch<React.SetStateAction<LocationOption | null>>;
2
12
  type IProps = {
3
13
  name: string;
14
+ placeholder?: string;
15
+ address?: string;
16
+ setLocation?: PlaceState;
17
+ selectLocation?: (name: any, value: LocationOption | null, options?: Partial<{
18
+ shouldValidate: boolean;
19
+ shouldDirty: boolean;
20
+ shouldTouch: boolean;
21
+ }> | undefined) => void;
4
22
  };
5
23
  type Props = IProps & TextFieldProps;
6
- export default function RHFGooglePlaces({ name, ...other }: Props): import("react/jsx-runtime").JSX.Element;
24
+ export default function RHFGooglePlaces({ name, address, placeholder, setLocation, selectLocation, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
25
  export {};
@@ -1,7 +1,7 @@
1
1
  import { DialogProps } from '@mui/material';
2
2
  import { SetStateAction } from 'react';
3
3
  import { ImageItem } from './ImageSelector';
4
- import { FileTypes } from '../../helpers/Types';
4
+ import { FileTypes } from '../../helpers';
5
5
  interface DialogContainerProps extends DialogProps {
6
6
  open: boolean;
7
7
  multiple: boolean;
@@ -12,14 +12,15 @@ interface DialogContainerProps extends DialogProps {
12
12
  mediaLibraryString?: string;
13
13
  setParams?: any;
14
14
  fileType: FileTypes;
15
+ basePath: string;
15
16
  onDismiss: () => void;
16
17
  onConfirm: (selectedImages: ImageItem[]) => void;
17
18
  setFiles?: (value: SetStateAction<ImageItem[]>) => void;
18
19
  uploadImages: (images: File[], type: FileTypes) => Promise<any>;
19
20
  filterImagesByTitle: (query: string, callBack: (images: ImageItem[]) => void, type: FileTypes) => void;
20
21
  updateImages: (images: ImageItem[], callBack: (images: ImageItem[]) => void) => void;
21
- loadImagesList: (callback: (images: ImageItem[]) => void, type: FileTypes) => void;
22
+ loadImagesList: (callback: (images: ImageItem[]) => void, type: FileTypes, basePath: string) => void;
22
23
  Content?: () => JSX.Element;
23
24
  }
24
- export default function MediaUploaderDialog({ onDismiss, onConfirm, uploadImages, filterImagesByTitle, updateImages, loadImagesList, Content, setFiles, fileType, setParams, icon, mediaLibraryString, uploadFileString, message, imagesSelected, multiple, ...others }: DialogContainerProps): import("react/jsx-runtime").JSX.Element;
25
+ export default function MediaUploaderDialog({ onDismiss, onConfirm, uploadImages, filterImagesByTitle, updateImages, loadImagesList, Content, setFiles, fileType, basePath, setParams, icon, mediaLibraryString, uploadFileString, message, imagesSelected, multiple, ...others }: DialogContainerProps): import("react/jsx-runtime").JSX.Element;
25
26
  export {};
@@ -1,2 +1,2 @@
1
1
  import { UploadMultiImages } from './type';
2
- export default function MultiImagePreview({ showPreview, files, onRemove, setImages, }: UploadMultiImages): import("react/jsx-runtime").JSX.Element;
2
+ export default function MultiImagePreview({ showPreview, files, type, disabled, onRemove, setImages, }: UploadMultiImages): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,8 @@ import { DropzoneOptions } from 'react-dropzone';
3
3
  import { SxProps } from '@mui/material';
4
4
  import { Theme } from '@mui/material/styles';
5
5
  import { ImageItem } from '../mediaUploader/ImageSelector';
6
+ import { FileTypes } from '../../helpers';
7
+ import { FileData } from '../../helpers/FileManager/FileData';
6
8
  export interface CustomFile extends File {
7
9
  path?: string;
8
10
  preview?: string;
@@ -27,11 +29,12 @@ export interface UploadMultiFileProps extends DropzoneOptions {
27
29
  export interface UploadMultiImages extends DropzoneOptions {
28
30
  files: ImageItem[];
29
31
  error?: boolean;
32
+ type: FileTypes;
30
33
  showPreview?: boolean;
31
34
  sx?: SxProps<Theme>;
32
35
  helperText?: ReactNode;
33
36
  setImages?: (images: ImageItem[]) => void;
34
37
  onUpload?: VoidFunction;
35
- onRemove?: (file: string) => void;
38
+ onRemove: (file: FileData) => void;
36
39
  onRemoveAll?: VoidFunction;
37
40
  }
@@ -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
  }
@@ -0,0 +1,8 @@
1
+ export interface FileData {
2
+ id: string;
3
+ name: string;
4
+ }
5
+ export declare function getFileData(file: FileData): {
6
+ key: string;
7
+ name: string;
8
+ };
@@ -0,0 +1,13 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import { SxProps } from '@mui/material';
3
+ import { FileData } from './FileData';
4
+ type FileIconProps = {
5
+ file: FileData;
6
+ tooltip?: boolean;
7
+ imageView?: boolean;
8
+ onDownload?: VoidFunction;
9
+ sx?: SxProps<Theme>;
10
+ imgSx?: SxProps<Theme>;
11
+ };
12
+ export default function FileShow({ file, tooltip, imageView, onDownload, sx, imgSx, }: FileIconProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ import { FileData } from './FileData';
4
+ export interface UploadProps {
5
+ error?: boolean;
6
+ thumbnail?: boolean;
7
+ disabled?: boolean;
8
+ placeholder?: React.ReactNode;
9
+ helperText?: React.ReactNode;
10
+ disableMultiple?: boolean;
11
+ sx?: SxProps<Theme>;
12
+ file?: FileData;
13
+ onDelete?: VoidFunction;
14
+ files?: FileData[];
15
+ onUpload?: VoidFunction;
16
+ onRemove?: (file: FileData) => void;
17
+ }
18
+ export default function MultiFileShow({ thumbnail, files, disabled, onRemove, sx }: UploadProps): import("react/jsx-runtime").JSX.Element | null;
@@ -3,10 +3,11 @@ import { ImageItem } from '../../components/mediaUploader/ImageSelector';
3
3
  import { FileTypes } from '../../helpers/Types';
4
4
  export interface IImageProps {
5
5
  image: {
6
- [key: string]: ImageItem | undefined;
6
+ [key: string]: ImageItem | ImageItem[] | undefined;
7
7
  };
8
8
  isEnglish: boolean;
9
9
  keyValue: string;
10
+ multiple?: boolean;
10
11
  imageDialogState: {
11
12
  [key: string]: boolean;
12
13
  };
@@ -23,12 +24,12 @@ export interface IImageProps {
23
24
  [key: string]: boolean;
24
25
  }>>): void;
25
26
  setImages(keyValue: string, image: {
26
- [key: string]: ImageItem | undefined;
27
- }, setImage: Dispatch<SetStateAction<{
28
- [key: string]: ImageItem | undefined;
29
- }>>, data: ImageItem): void;
27
+ [key: string]: ImageItem | ImageItem[] | undefined;
28
+ }, setImage: React.Dispatch<React.SetStateAction<{
29
+ [key: string]: ImageItem | ImageItem[] | undefined;
30
+ }>>, data: ImageItem | ImageItem[]): void;
30
31
  setImage: React.Dispatch<React.SetStateAction<{
31
- [key: string]: ImageItem | undefined;
32
+ [key: string]: ImageItem | ImageItem[] | undefined;
32
33
  }>>;
33
34
  setValue: (name: string, value: any, options?: Partial<{
34
35
  shouldValidate: boolean;
@@ -36,4 +37,4 @@ export interface IImageProps {
36
37
  shouldTouch: boolean;
37
38
  }> | undefined) => void;
38
39
  }
39
- export default function ImageCard({ image, keyValue, isEnglish, imageDialogState, label, fileType, dismissDialogState, setImages, handleEditImage, handleRemoveImage, setImageDialogState, setImage, setValue, }: IImageProps): import("react/jsx-runtime").JSX.Element;
40
+ export default function ImageCard({ image, keyValue, isEnglish, imageDialogState, label, multiple, fileType, dismissDialogState, setImages, handleEditImage, handleRemoveImage, setImageDialogState, setImage, setValue, }: IImageProps): import("react/jsx-runtime").JSX.Element;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.4.9",
3
+ "version": "1.5.1",
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",