identity-admin-ui 1.5.15 → 1.5.17

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.
@@ -2,6 +2,7 @@
2
2
  import { ListParams } from '../dataGrid/GridTypes';
3
3
  import { GridRowSelectionModel } from '@mui/x-data-grid';
4
4
  import { IBulkActionComponent } from './IBulkActionComponent';
5
+ import { AlertColor } from '../../pages/IdentityListPage';
5
6
  export interface IBulkActionsDialogState {
6
7
  state: boolean;
7
8
  modelName: string;
@@ -9,6 +10,8 @@ export interface IBulkActionsDialogState {
9
10
  fullScreen: boolean;
10
11
  setSelected: (value: React.SetStateAction<GridRowSelectionModel>) => void;
11
12
  documentIds: string[];
13
+ afterExecuteMessage: string;
14
+ severity: AlertColor;
12
15
  }
13
16
  interface BulkActionDialogProps {
14
17
  bulkActionsDialogState: {
@@ -1,7 +1,4 @@
1
- export interface INextPrevious {
2
- recordId: string;
3
- modelPath: string;
4
- path?: any;
1
+ export interface INextpreviousExtras {
5
2
  onNoNextText?: string;
6
3
  onNoPreviousText?: string;
7
4
  previousButtonTitle?: string;
@@ -9,4 +6,9 @@ export interface INextPrevious {
9
6
  onClickNext?: (currentRecordId?: string) => void;
10
7
  onClickPrevious?: (currentRecordId?: string) => void;
11
8
  }
9
+ export interface INextPrevious extends INextpreviousExtras {
10
+ recordId: string;
11
+ modelPath: string;
12
+ path?: any;
13
+ }
12
14
  export declare function NextPreviousButtons({ path, modelPath, onNoNextText, onNoPreviousText, recordId, nextButtonTitle, previousButtonTitle, onClickNext, onClickPrevious, }: INextPrevious): import("react/jsx-runtime").JSX.Element;
@@ -27,6 +27,9 @@ export interface IMainProperty {
27
27
  model: {
28
28
  [key: string]: ISchemaObject;
29
29
  };
30
+ disableNextPreviousButtonsInShowPage?: boolean;
31
+ disableNextPreviousButtonsInEditPage?: boolean;
32
+ displayEditPageInShowPage?: boolean;
30
33
  }
31
34
  export interface IParent {
32
35
  icon: string;
@@ -53,22 +56,8 @@ export interface IFilter {
53
56
  };
54
57
  }
55
58
  export interface IAction {
56
- bulkDelete: {
57
- cancelDeleteOption: string;
58
- confirmDeleteOption: string;
59
- confirmationMessageBody: string;
60
- confirmationMessageTitle: string;
61
- isAccessible: boolean;
62
- value: string;
63
- };
64
- delete: {
65
- cancelDeleteOption: string;
66
- confirmDeleteOption: string;
67
- confirmationMessageBody: string;
68
- confirmationMessageTitle: string;
69
- isAccessible: boolean;
70
- value: string;
71
- };
59
+ bulkDelete: IDeleteActionMin;
60
+ delete: IDeleteActionMin;
72
61
  edit: IActionMin;
73
62
  new: IActionMin;
74
63
  show: IActionMin;
@@ -91,11 +80,18 @@ export interface IExtarAction {
91
80
  name: string;
92
81
  severity?: Severity;
93
82
  message?: string;
83
+ guardTitle?: string;
94
84
  }
95
85
  export interface IActionMin {
96
86
  isAccessible: boolean;
97
87
  value: string;
98
88
  }
89
+ interface IDeleteActionMin extends IActionMin {
90
+ cancelDeleteOption: string;
91
+ confirmDeleteOption: string;
92
+ confirmationMessageBody: string;
93
+ confirmationMessageTitle: string;
94
+ }
99
95
  export type orderTypes = 'asc' | 'desc';
100
96
  export type Severity = 'success' | 'info' | 'warning' | 'error';
101
97
  export interface ISchemaObject {
@@ -119,3 +115,4 @@ export interface ISchemaObject {
119
115
  [key: string]: ISchemaObject;
120
116
  };
121
117
  }
118
+ export {};
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { RequestState } from '../hooks/RequetState';
2
3
  import IResource from './Resource';
3
4
  export type ResourceResponse = {
4
5
  [key: string]: IResource | {
@@ -10,6 +11,7 @@ export type ResourceResponse = {
10
11
  declare const ResourcesContext: import("react").Context<{
11
12
  resources: ResourceResponse;
12
13
  getResources: () => void;
14
+ state: RequestState;
13
15
  }>;
14
16
  export interface ResourcesContextConfig {
15
17
  resourcesUrl: string;
@@ -1,15 +1,9 @@
1
1
  /// <reference types="react" />
2
- export interface ShowRecordProps {
2
+ import { INextpreviousExtras } from '../../../components/Buttons/NextPreviousButtons';
3
+ export interface ShowRecordProps extends INextpreviousExtras {
3
4
  key?: string;
4
5
  path: string;
5
6
  modelRoute: string;
6
- enableNextPreviousButtons?: boolean;
7
- previousButtonTitle?: string;
8
- nextButtonTitle?: string;
9
- onNoNextText?: string;
10
- onNoPreviousText?: string;
11
- onClickNext?: (currentRecordId?: string) => void;
12
- onClickPrevious?: (currentRecordId?: string) => void;
13
7
  Component?: (props: any) => JSX.Element;
14
8
  HeadingView?: (props: any) => JSX.Element;
15
9
  Actions?: (props: any) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  export declare const useResources: () => {
2
2
  resources: import("../context").ResourceResponse;
3
3
  getResources: () => void;
4
+ state: import("./RequetState").RequestState;
4
5
  };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- export interface ICreateEdit {
2
+ import { INextpreviousExtras } from '../components/Buttons/NextPreviousButtons';
3
+ export interface ICreateEdit extends INextpreviousExtras {
3
4
  isEdit: boolean;
4
5
  modelRoute: string;
5
6
  key?: string;