identity-admin-ui 1.7.9 → 1.7.11
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 +3 -0
- package/lib/cjs/types/context/Resource.d.ts +8 -0
- package/lib/cjs/types/helpers/EnumUtils.d.ts +4 -0
- package/lib/cjs/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/cjs/types/routes/AdminRouter.d.ts +10 -10
- package/lib/cjs/types/routes/paths.d.ts +5 -5
- package/lib/esm/index.js +9 -9
- package/lib/esm/types/components/dataGrid/DataGridd.d.ts +3 -0
- package/lib/esm/types/context/Resource.d.ts +8 -0
- package/lib/esm/types/helpers/EnumUtils.d.ts +4 -0
- package/lib/esm/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/esm/types/routes/AdminRouter.d.ts +10 -10
- package/lib/esm/types/routes/paths.d.ts +5 -5
- package/lib/index.d.ts +186 -177
- package/package.json +78 -78
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { GridRenderCellParams } from '@mui/x-data-grid';
|
|
3
3
|
import { ParamsState, ListProps } from './GridTypes';
|
|
4
4
|
import { IBulkActionsDialogState } from '../BulkActions/BulkActionDialogs';
|
|
5
|
+
import { IOptionalResource } from '../../context';
|
|
6
|
+
import IResource from '../../context/Resource';
|
|
5
7
|
export interface IGridExtras {
|
|
6
8
|
noRowsText?: string;
|
|
7
9
|
bulkDeleteText?: string;
|
|
@@ -16,6 +18,7 @@ export interface IGridExtras {
|
|
|
16
18
|
hideBulkActions?: boolean;
|
|
17
19
|
hideActions?: boolean;
|
|
18
20
|
hideToolbar?: boolean;
|
|
21
|
+
overridenResource?: (resource: IResource) => IOptionalResource;
|
|
19
22
|
}
|
|
20
23
|
export interface GridProps {
|
|
21
24
|
resources: any;
|
|
@@ -8,6 +8,14 @@ export default interface IResource {
|
|
|
8
8
|
showProperties: IProperty[];
|
|
9
9
|
properties: IMainProperty;
|
|
10
10
|
}
|
|
11
|
+
export interface IOptionalResource {
|
|
12
|
+
filterProperties?: string[];
|
|
13
|
+
quickFilterProperties?: string[];
|
|
14
|
+
formProperties?: string[];
|
|
15
|
+
listProperties?: IProperty[];
|
|
16
|
+
showProperties?: IProperty[];
|
|
17
|
+
properties?: IMainProperty;
|
|
18
|
+
}
|
|
11
19
|
export interface IProperty {
|
|
12
20
|
key: string;
|
|
13
21
|
value: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useNavData(): {
|
|
2
|
-
subheader: string;
|
|
3
|
-
items: any;
|
|
4
|
-
}[];
|
|
1
|
+
export declare function useNavData(): {
|
|
2
|
+
subheader: string;
|
|
3
|
+
items: any;
|
|
4
|
+
}[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SizeType } from '../helpers/Types';
|
|
2
|
-
export declare var SIZE: SizeType;
|
|
3
|
-
export default function AdminRouter(): {
|
|
4
|
-
path: any;
|
|
5
|
-
children: {
|
|
6
|
-
path: string;
|
|
7
|
-
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
children: any[];
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
1
|
+
import { SizeType } from '../helpers/Types';
|
|
2
|
+
export declare var SIZE: SizeType;
|
|
3
|
+
export default function AdminRouter(): {
|
|
4
|
+
path: any;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
children: any[];
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function path(root: string, sublink: string): string;
|
|
2
|
-
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
-
export declare var ADMIN_PATH: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
1
|
+
export declare function path(root: string, sublink: string): string;
|
|
2
|
+
export declare const ADMIN_ROOT = "/admin";
|
|
3
|
+
export declare var ADMIN_PATH: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import { ReactElement, Dispatch, SetStateAction
|
|
4
|
+
import { ReactElement, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import { GridRenderCellParams, GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
|
|
6
6
|
import * as axios from 'axios';
|
|
7
7
|
import { AxiosRequestConfig } from 'axios';
|
|
@@ -41,138 +41,20 @@ declare enum PageVariant {
|
|
|
41
41
|
|
|
42
42
|
declare const IdentityPage: (props: IdentityPageProps) => react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
afterBulkDeleteSnackBarText?: (numberOfSelectedRows: number) => string;
|
|
49
|
-
itemsSelectedText?: string;
|
|
50
|
-
cancelText?: string;
|
|
51
|
-
confirmText?: string;
|
|
52
|
-
onClickProperty?: {
|
|
53
|
-
[key: string]: (prop: ListProps, resourceName: string, params: GridRenderCellParams) => void;
|
|
54
|
-
};
|
|
55
|
-
hideBulkActions?: boolean;
|
|
56
|
-
hideActions?: boolean;
|
|
57
|
-
hideToolbar?: boolean;
|
|
58
|
-
}
|
|
59
|
-
interface GridProps {
|
|
60
|
-
resources: any;
|
|
61
|
-
resourceName: string;
|
|
62
|
-
paramsState: ParamsState;
|
|
63
|
-
bulkActionsDialogState: {
|
|
64
|
-
[key: string]: IBulkActionsDialogState;
|
|
65
|
-
} | undefined;
|
|
66
|
-
setBulkActionsDialogState: react.Dispatch<react.SetStateAction<{
|
|
67
|
-
[key: string]: IBulkActionsDialogState;
|
|
68
|
-
} | undefined>>;
|
|
69
|
-
extras?: IGridExtras;
|
|
70
|
-
}
|
|
71
|
-
declare function DataGridd({ resources, resourceName, paramsState, bulkActionsDialogState, extras, setBulkActionsDialogState }: GridProps): react_jsx_runtime.JSX.Element;
|
|
72
|
-
|
|
73
|
-
interface ListProps {
|
|
74
|
-
value: string;
|
|
75
|
-
key: string;
|
|
76
|
-
path: string;
|
|
77
|
-
}
|
|
78
|
-
interface ListParams {
|
|
79
|
-
page: number;
|
|
80
|
-
perPage: number;
|
|
81
|
-
order?: GridSortDirection;
|
|
82
|
-
orderBy?: string;
|
|
83
|
-
filter?: string;
|
|
84
|
-
scope?: string;
|
|
85
|
-
filters?: string;
|
|
86
|
-
}
|
|
87
|
-
type ParamsState = [ListParams, Dispatch<SetStateAction<ListParams>>];
|
|
88
|
-
|
|
89
|
-
interface IBulkActionsDialogState {
|
|
90
|
-
state: boolean;
|
|
91
|
-
modelName: string;
|
|
92
|
-
saveLoadingState: boolean;
|
|
93
|
-
fullScreen: boolean;
|
|
94
|
-
setSelected: (value: React.SetStateAction<GridRowSelectionModel>) => void;
|
|
95
|
-
documentIds: string[];
|
|
96
|
-
afterExecuteMessage: string;
|
|
97
|
-
severity: AlertColor;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type IBulkActionComponent = (bulkActionsDialogState: {
|
|
101
|
-
[key: string]: IBulkActionsDialogState;
|
|
102
|
-
} | undefined, onClose: (key: string) => void, onSubmit: (data: any, actionKey: string) => Promise<void>) => JSX.Element;
|
|
103
|
-
|
|
104
|
-
interface IListProps {
|
|
105
|
-
apiRoute: string;
|
|
106
|
-
key?: string;
|
|
107
|
-
path: string;
|
|
108
|
-
modelName: string;
|
|
109
|
-
}
|
|
110
|
-
interface IActionsProps {
|
|
111
|
-
initialQueryParams: ListParams;
|
|
112
|
-
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
113
|
-
}
|
|
114
|
-
interface IListRecordsProps extends IListProps {
|
|
115
|
-
extras?: IGridExtras;
|
|
116
|
-
Actions?: (props: IActionsProps) => JSX.Element;
|
|
117
|
-
bulkActionsComponents?: IBulkActionComponent;
|
|
118
|
-
HeadingView?: JSX.Element;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
type AlertColor = 'success' | 'info' | 'warning' | 'error';
|
|
122
|
-
declare function ListRecords(props: IListRecordsProps): react_jsx_runtime.JSX.Element;
|
|
123
|
-
|
|
124
|
-
interface INextpreviousExtras {
|
|
125
|
-
onNoNextText?: string;
|
|
126
|
-
onNoPreviousText?: string;
|
|
127
|
-
previousButtonTitle?: string;
|
|
128
|
-
nextButtonTitle?: string;
|
|
129
|
-
onClickNext?: (currentRecordId?: string) => void;
|
|
130
|
-
onClickPrevious?: (currentRecordId?: string) => void;
|
|
131
|
-
}
|
|
132
|
-
interface INextPrevious extends INextpreviousExtras {
|
|
133
|
-
recordId: string;
|
|
134
|
-
modelPath: string;
|
|
135
|
-
navigateTo: (recordId: string) => void;
|
|
136
|
-
}
|
|
137
|
-
declare function NextPreviousButtons({ modelPath, onNoNextText, onNoPreviousText, recordId, nextButtonTitle, previousButtonTitle, navigateTo, onClickNext, onClickPrevious, }: INextPrevious): react_jsx_runtime.JSX.Element;
|
|
138
|
-
|
|
139
|
-
interface ShowRecordProps extends INextpreviousExtras {
|
|
140
|
-
key?: string;
|
|
141
|
-
path: string;
|
|
142
|
-
modelRoute: string;
|
|
143
|
-
Component?: (props: any) => JSX.Element;
|
|
144
|
-
HeadingView?: (props: any) => JSX.Element;
|
|
145
|
-
Actions?: (props: any) => JSX.Element;
|
|
146
|
-
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
147
|
-
BreadCrumbLinks?: (props: any) => TLink[];
|
|
148
|
-
disableDefaultActions?: boolean;
|
|
44
|
+
declare const ApiContext: react.Context<ApiContextProps>;
|
|
45
|
+
interface ApiContextProps {
|
|
46
|
+
statusCode: number | null;
|
|
47
|
+
dashbaordUrlPrefix?: string;
|
|
149
48
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
path: string;
|
|
158
|
-
removeHeaderBreadcrumbs?: boolean;
|
|
159
|
-
afterEditSnackText?: (recordName: string) => string;
|
|
160
|
-
afterCreateSnackText?: (recordName: string) => string;
|
|
161
|
-
onSubmitForm?: () => void;
|
|
162
|
-
Component?: (props: any) => JSX.Element;
|
|
163
|
-
Actions?: (props: any) => JSX.Element;
|
|
164
|
-
HeadingView?: (props: any) => JSX.Element;
|
|
165
|
-
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
166
|
-
redirectPath?: (record: any) => string;
|
|
167
|
-
BreadCrumbLinks?: (props: any) => TLink[];
|
|
49
|
+
interface ApiContextConfig {
|
|
50
|
+
language: string;
|
|
51
|
+
baseUrl: string;
|
|
52
|
+
onLogout: () => void;
|
|
53
|
+
sleepTime?: number;
|
|
54
|
+
children: any;
|
|
55
|
+
dashbaordUrlPrefix?: string;
|
|
168
56
|
}
|
|
169
|
-
declare
|
|
170
|
-
|
|
171
|
-
type IdentityModelConfigurationPageProps = {
|
|
172
|
-
path: string;
|
|
173
|
-
modelRoute: string;
|
|
174
|
-
};
|
|
175
|
-
declare function IdentityModelConfigurationPage({ path, modelRoute }: IdentityModelConfigurationPageProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare const ApiContextProvider: (props: ApiContextConfig) => react_jsx_runtime.JSX.Element;
|
|
176
58
|
|
|
177
59
|
declare enum RequestState {
|
|
178
60
|
IDLE = "idle",
|
|
@@ -196,25 +78,6 @@ declare class State<T> {
|
|
|
196
78
|
static error<T>(error: any, data?: T): IState<T>;
|
|
197
79
|
}
|
|
198
80
|
|
|
199
|
-
interface RequestConfig {
|
|
200
|
-
url: string;
|
|
201
|
-
body?: any;
|
|
202
|
-
axiosRequestConfig?: AxiosRequestConfig;
|
|
203
|
-
query?: any;
|
|
204
|
-
}
|
|
205
|
-
declare function useApi<T>(): {
|
|
206
|
-
requestState: IState<T>;
|
|
207
|
-
get: (requstConfig: RequestConfig) => void;
|
|
208
|
-
post: (requstConfig: RequestConfig) => void;
|
|
209
|
-
patch: (requstConfig: RequestConfig) => void;
|
|
210
|
-
remove: (requstConfig: RequestConfig) => void;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
declare function useNavData(): {
|
|
214
|
-
subheader: string;
|
|
215
|
-
items: any;
|
|
216
|
-
}[];
|
|
217
|
-
|
|
218
81
|
declare enum ActionTypes {
|
|
219
82
|
RECORD = "RECORD",
|
|
220
83
|
Resource = "RESOUCRE"
|
|
@@ -254,32 +117,6 @@ declare enum FileTypes {
|
|
|
254
117
|
AUDIO = "AUDIO"
|
|
255
118
|
}
|
|
256
119
|
|
|
257
|
-
declare const useAppConfigurations: () => {
|
|
258
|
-
textFieldSize: SizeType;
|
|
259
|
-
themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
|
|
260
|
-
defaultRowsPerPage: number;
|
|
261
|
-
themeStretch: boolean;
|
|
262
|
-
setThemeLayout?: react.Dispatch<react.SetStateAction<"horizontal" | "vertical" | "mini">> | undefined;
|
|
263
|
-
loadingLoago?: string | undefined;
|
|
264
|
-
navBarLogo?: string | undefined;
|
|
265
|
-
miniNavBarLogo?: string | undefined;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
declare const ApiContext: react.Context<ApiContextProps>;
|
|
269
|
-
interface ApiContextProps {
|
|
270
|
-
statusCode: number | null;
|
|
271
|
-
dashbaordUrlPrefix?: string;
|
|
272
|
-
}
|
|
273
|
-
interface ApiContextConfig {
|
|
274
|
-
language: string;
|
|
275
|
-
baseUrl: string;
|
|
276
|
-
onLogout: () => void;
|
|
277
|
-
sleepTime?: number;
|
|
278
|
-
children: any;
|
|
279
|
-
dashbaordUrlPrefix?: string;
|
|
280
|
-
}
|
|
281
|
-
declare const ApiContextProvider: (props: ApiContextConfig) => react_jsx_runtime.JSX.Element;
|
|
282
|
-
|
|
283
120
|
interface IResource {
|
|
284
121
|
filterProperties: string[];
|
|
285
122
|
quickFilterProperties: string[];
|
|
@@ -288,6 +125,14 @@ interface IResource {
|
|
|
288
125
|
showProperties: IProperty[];
|
|
289
126
|
properties: IMainProperty;
|
|
290
127
|
}
|
|
128
|
+
interface IOptionalResource {
|
|
129
|
+
filterProperties?: string[];
|
|
130
|
+
quickFilterProperties?: string[];
|
|
131
|
+
formProperties?: string[];
|
|
132
|
+
listProperties?: IProperty[];
|
|
133
|
+
showProperties?: IProperty[];
|
|
134
|
+
properties?: IMainProperty;
|
|
135
|
+
}
|
|
291
136
|
interface IProperty {
|
|
292
137
|
key: string;
|
|
293
138
|
value: string;
|
|
@@ -496,6 +341,170 @@ type DialogProviderProps = {
|
|
|
496
341
|
};
|
|
497
342
|
declare function DialogContextProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
498
343
|
|
|
344
|
+
interface IGridExtras {
|
|
345
|
+
noRowsText?: string;
|
|
346
|
+
bulkDeleteText?: string;
|
|
347
|
+
afterDeleteSnackBarText?: string;
|
|
348
|
+
afterBulkDeleteSnackBarText?: (numberOfSelectedRows: number) => string;
|
|
349
|
+
itemsSelectedText?: string;
|
|
350
|
+
cancelText?: string;
|
|
351
|
+
confirmText?: string;
|
|
352
|
+
onClickProperty?: {
|
|
353
|
+
[key: string]: (prop: ListProps, resourceName: string, params: GridRenderCellParams) => void;
|
|
354
|
+
};
|
|
355
|
+
hideBulkActions?: boolean;
|
|
356
|
+
hideActions?: boolean;
|
|
357
|
+
hideToolbar?: boolean;
|
|
358
|
+
overridenResource?: (resource: IResource) => IOptionalResource;
|
|
359
|
+
}
|
|
360
|
+
interface GridProps {
|
|
361
|
+
resources: any;
|
|
362
|
+
resourceName: string;
|
|
363
|
+
paramsState: ParamsState;
|
|
364
|
+
bulkActionsDialogState: {
|
|
365
|
+
[key: string]: IBulkActionsDialogState;
|
|
366
|
+
} | undefined;
|
|
367
|
+
setBulkActionsDialogState: react.Dispatch<react.SetStateAction<{
|
|
368
|
+
[key: string]: IBulkActionsDialogState;
|
|
369
|
+
} | undefined>>;
|
|
370
|
+
extras?: IGridExtras;
|
|
371
|
+
}
|
|
372
|
+
declare function DataGridd({ resources, resourceName, paramsState, bulkActionsDialogState, extras, setBulkActionsDialogState }: GridProps): react_jsx_runtime.JSX.Element;
|
|
373
|
+
|
|
374
|
+
interface ListProps {
|
|
375
|
+
value: string;
|
|
376
|
+
key: string;
|
|
377
|
+
path: string;
|
|
378
|
+
}
|
|
379
|
+
interface ListParams {
|
|
380
|
+
page: number;
|
|
381
|
+
perPage: number;
|
|
382
|
+
order?: GridSortDirection;
|
|
383
|
+
orderBy?: string;
|
|
384
|
+
filter?: string;
|
|
385
|
+
scope?: string;
|
|
386
|
+
filters?: string;
|
|
387
|
+
}
|
|
388
|
+
type ParamsState = [ListParams, Dispatch<SetStateAction<ListParams>>];
|
|
389
|
+
|
|
390
|
+
interface IBulkActionsDialogState {
|
|
391
|
+
state: boolean;
|
|
392
|
+
modelName: string;
|
|
393
|
+
saveLoadingState: boolean;
|
|
394
|
+
fullScreen: boolean;
|
|
395
|
+
setSelected: (value: React.SetStateAction<GridRowSelectionModel>) => void;
|
|
396
|
+
documentIds: string[];
|
|
397
|
+
afterExecuteMessage: string;
|
|
398
|
+
severity: AlertColor;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
type IBulkActionComponent = (bulkActionsDialogState: {
|
|
402
|
+
[key: string]: IBulkActionsDialogState;
|
|
403
|
+
} | undefined, onClose: (key: string) => void, onSubmit: (data: any, actionKey: string) => Promise<void>) => JSX.Element;
|
|
404
|
+
|
|
405
|
+
interface IListProps {
|
|
406
|
+
apiRoute: string;
|
|
407
|
+
key?: string;
|
|
408
|
+
path: string;
|
|
409
|
+
modelName: string;
|
|
410
|
+
}
|
|
411
|
+
interface IActionsProps {
|
|
412
|
+
initialQueryParams: ListParams;
|
|
413
|
+
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
414
|
+
}
|
|
415
|
+
interface IListRecordsProps extends IListProps {
|
|
416
|
+
extras?: IGridExtras;
|
|
417
|
+
Actions?: (props: IActionsProps) => JSX.Element;
|
|
418
|
+
bulkActionsComponents?: IBulkActionComponent;
|
|
419
|
+
HeadingView?: JSX.Element;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
type AlertColor = 'success' | 'info' | 'warning' | 'error';
|
|
423
|
+
declare function ListRecords(props: IListRecordsProps): react_jsx_runtime.JSX.Element;
|
|
424
|
+
|
|
425
|
+
interface INextpreviousExtras {
|
|
426
|
+
onNoNextText?: string;
|
|
427
|
+
onNoPreviousText?: string;
|
|
428
|
+
previousButtonTitle?: string;
|
|
429
|
+
nextButtonTitle?: string;
|
|
430
|
+
onClickNext?: (currentRecordId?: string) => void;
|
|
431
|
+
onClickPrevious?: (currentRecordId?: string) => void;
|
|
432
|
+
}
|
|
433
|
+
interface INextPrevious extends INextpreviousExtras {
|
|
434
|
+
recordId: string;
|
|
435
|
+
modelPath: string;
|
|
436
|
+
navigateTo: (recordId: string) => void;
|
|
437
|
+
}
|
|
438
|
+
declare function NextPreviousButtons({ modelPath, onNoNextText, onNoPreviousText, recordId, nextButtonTitle, previousButtonTitle, navigateTo, onClickNext, onClickPrevious, }: INextPrevious): react_jsx_runtime.JSX.Element;
|
|
439
|
+
|
|
440
|
+
interface ShowRecordProps extends INextpreviousExtras {
|
|
441
|
+
key?: string;
|
|
442
|
+
path: string;
|
|
443
|
+
modelRoute: string;
|
|
444
|
+
Component?: (props: any) => JSX.Element;
|
|
445
|
+
HeadingView?: (props: any) => JSX.Element;
|
|
446
|
+
Actions?: (props: any) => JSX.Element;
|
|
447
|
+
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
448
|
+
BreadCrumbLinks?: (props: any) => TLink[];
|
|
449
|
+
disableDefaultActions?: boolean;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare function ShowRecord(props: ShowRecordProps): react_jsx_runtime.JSX.Element;
|
|
453
|
+
|
|
454
|
+
interface ICreateEdit extends INextpreviousExtras {
|
|
455
|
+
isEdit: boolean;
|
|
456
|
+
modelRoute: string;
|
|
457
|
+
key?: string;
|
|
458
|
+
path: string;
|
|
459
|
+
removeHeaderBreadcrumbs?: boolean;
|
|
460
|
+
afterEditSnackText?: (recordName: string) => string;
|
|
461
|
+
afterCreateSnackText?: (recordName: string) => string;
|
|
462
|
+
onSubmitForm?: () => void;
|
|
463
|
+
Component?: (props: any) => JSX.Element;
|
|
464
|
+
Actions?: (props: any) => JSX.Element;
|
|
465
|
+
HeadingView?: (props: any) => JSX.Element;
|
|
466
|
+
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
467
|
+
redirectPath?: (record: any) => string;
|
|
468
|
+
BreadCrumbLinks?: (props: any) => TLink[];
|
|
469
|
+
}
|
|
470
|
+
declare function CreateEdit(props: ICreateEdit): react_jsx_runtime.JSX.Element;
|
|
471
|
+
|
|
472
|
+
type IdentityModelConfigurationPageProps = {
|
|
473
|
+
path: string;
|
|
474
|
+
modelRoute: string;
|
|
475
|
+
};
|
|
476
|
+
declare function IdentityModelConfigurationPage({ path, modelRoute }: IdentityModelConfigurationPageProps): react_jsx_runtime.JSX.Element;
|
|
477
|
+
|
|
478
|
+
interface RequestConfig {
|
|
479
|
+
url: string;
|
|
480
|
+
body?: any;
|
|
481
|
+
axiosRequestConfig?: AxiosRequestConfig;
|
|
482
|
+
query?: any;
|
|
483
|
+
}
|
|
484
|
+
declare function useApi<T>(): {
|
|
485
|
+
requestState: IState<T>;
|
|
486
|
+
get: (requstConfig: RequestConfig) => void;
|
|
487
|
+
post: (requstConfig: RequestConfig) => void;
|
|
488
|
+
patch: (requstConfig: RequestConfig) => void;
|
|
489
|
+
remove: (requstConfig: RequestConfig) => void;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
declare function useNavData(): {
|
|
493
|
+
subheader: string;
|
|
494
|
+
items: any;
|
|
495
|
+
}[];
|
|
496
|
+
|
|
497
|
+
declare const useAppConfigurations: () => {
|
|
498
|
+
textFieldSize: SizeType;
|
|
499
|
+
themeLayout?: "horizontal" | "vertical" | "mini" | undefined;
|
|
500
|
+
defaultRowsPerPage: number;
|
|
501
|
+
themeStretch: boolean;
|
|
502
|
+
setThemeLayout?: react.Dispatch<react.SetStateAction<"horizontal" | "vertical" | "mini">> | undefined;
|
|
503
|
+
loadingLoago?: string | undefined;
|
|
504
|
+
navBarLogo?: string | undefined;
|
|
505
|
+
miniNavBarLogo?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
|
|
499
508
|
declare const useResources: () => {
|
|
500
509
|
resources: ResourceResponse;
|
|
501
510
|
getResources: () => void;
|
|
@@ -567,4 +576,4 @@ declare function DashBoardRouter(props: any): {
|
|
|
567
576
|
}[];
|
|
568
577
|
};
|
|
569
578
|
|
|
570
|
-
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, IAction, IActionMin, IDialogProps, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useDialogs, useNavData, usePaths, useResources, useSnackAlert };
|
|
579
|
+
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, IAction, IActionMin, IDialogProps, IExtarAction, IExtras, IFilter, IMainProperty, IOptionalResource, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useDialogs, useNavData, usePaths, useResources, useSnackAlert };
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "identity-admin-ui",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Identity solutions UI package using for identity-admin dashboard",
|
|
5
|
-
"main": "lib/cjs/index.js",
|
|
6
|
-
"module": "lib/esm/index.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib/**/*"
|
|
9
|
-
],
|
|
10
|
-
"types": "lib/index.d.ts",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
-
},
|
|
15
|
-
"author": "",
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@emotion/cache": "^11.11.0",
|
|
19
|
-
"@emotion/react": "^11.11.1",
|
|
20
|
-
"@emotion/styled": "^11.11.0",
|
|
21
|
-
"@hookform/resolvers": "^3.2.0",
|
|
22
|
-
"@iconify/react": "^4.1.0",
|
|
23
|
-
"@mui/icons-material": "^5.14.3",
|
|
24
|
-
"@mui/lab": "^5.0.0-alpha.139",
|
|
25
|
-
"@mui/material": "^5.14.5",
|
|
26
|
-
"@mui/x-data-grid": "^6.11.1",
|
|
27
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
28
|
-
"@rollup/plugin-commonjs": "^25.0.3",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
30
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
31
|
-
"@types/autosuggest-highlight": "^3.2.0",
|
|
32
|
-
"@types/axios": "^0.14.0",
|
|
33
|
-
"@types/nprogress": "^0.2.0",
|
|
34
|
-
"@types/numeral": "^2.0.2",
|
|
35
|
-
"@types/react": "^18.2.20",
|
|
36
|
-
"@types/react-beautiful-dnd": "^13.1.4",
|
|
37
|
-
"@types/react-helmet-async": "^1.0.3",
|
|
38
|
-
"@types/react-lazy-load-image-component": "^1.5.3",
|
|
39
|
-
"@types/stylis": "^4.2.0",
|
|
40
|
-
"autosuggest-highlight": "^3.3.4",
|
|
41
|
-
"aws-amplify": "^5.3.8",
|
|
42
|
-
"axios": "^1.4.0",
|
|
43
|
-
"compressorjs": "^1.2.1",
|
|
44
|
-
"date-fns": "^2.30.0",
|
|
45
|
-
"dayjs": "^1.11.9",
|
|
46
|
-
"framer-motion": "^10.15.0",
|
|
47
|
-
"highlight.js": "^11.8.0",
|
|
48
|
-
"material-ui-phone-number": "^3.0.0",
|
|
49
|
-
"notistack": "^3.0.1",
|
|
50
|
-
"nprogress": "^0.2.0",
|
|
51
|
-
"numeral": "^2.0.6",
|
|
52
|
-
"pluralize": "^8.0.0",
|
|
53
|
-
"react": "^18.2.0",
|
|
54
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
55
|
-
"react-dropzone": "^14.2.3",
|
|
56
|
-
"react-helmet-async": "^1.3.0",
|
|
57
|
-
"react-hook-form": "^7.45.4",
|
|
58
|
-
"react-lazy-load-image-component": "^1.6.0",
|
|
59
|
-
"react-router-dom": "^6.14.2",
|
|
60
|
-
"rollup": "^3.27.0",
|
|
61
|
-
"rollup-plugin-css-bundle": "^1.0.4",
|
|
62
|
-
"rollup-plugin-dts": "^5.3.1",
|
|
63
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
64
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
65
|
-
"rollup-plugin-postcss-modules": "^2.1.1",
|
|
66
|
-
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
67
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
68
|
-
"simplebar-react": "^3.2.4",
|
|
69
|
-
"stylis": "^4.3.0",
|
|
70
|
-
"stylis-plugin-rtl": "^2.1.1",
|
|
71
|
-
"tslib": "^2.6.1",
|
|
72
|
-
"typescript": "^5.1.6",
|
|
73
|
-
"yup": "^1.2.0"
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"react-quill": "^2.0.0"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "identity-admin-ui",
|
|
3
|
+
"version": "1.7.11",
|
|
4
|
+
"description": "Identity solutions UI package using for identity-admin dashboard",
|
|
5
|
+
"main": "lib/cjs/index.js",
|
|
6
|
+
"module": "lib/esm/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*"
|
|
9
|
+
],
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
+
},
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@emotion/cache": "^11.11.0",
|
|
19
|
+
"@emotion/react": "^11.11.1",
|
|
20
|
+
"@emotion/styled": "^11.11.0",
|
|
21
|
+
"@hookform/resolvers": "^3.2.0",
|
|
22
|
+
"@iconify/react": "^4.1.0",
|
|
23
|
+
"@mui/icons-material": "^5.14.3",
|
|
24
|
+
"@mui/lab": "^5.0.0-alpha.139",
|
|
25
|
+
"@mui/material": "^5.14.5",
|
|
26
|
+
"@mui/x-data-grid": "^6.11.1",
|
|
27
|
+
"@mui/x-date-pickers": "^6.11.1",
|
|
28
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
30
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
31
|
+
"@types/autosuggest-highlight": "^3.2.0",
|
|
32
|
+
"@types/axios": "^0.14.0",
|
|
33
|
+
"@types/nprogress": "^0.2.0",
|
|
34
|
+
"@types/numeral": "^2.0.2",
|
|
35
|
+
"@types/react": "^18.2.20",
|
|
36
|
+
"@types/react-beautiful-dnd": "^13.1.4",
|
|
37
|
+
"@types/react-helmet-async": "^1.0.3",
|
|
38
|
+
"@types/react-lazy-load-image-component": "^1.5.3",
|
|
39
|
+
"@types/stylis": "^4.2.0",
|
|
40
|
+
"autosuggest-highlight": "^3.3.4",
|
|
41
|
+
"aws-amplify": "^5.3.8",
|
|
42
|
+
"axios": "^1.4.0",
|
|
43
|
+
"compressorjs": "^1.2.1",
|
|
44
|
+
"date-fns": "^2.30.0",
|
|
45
|
+
"dayjs": "^1.11.9",
|
|
46
|
+
"framer-motion": "^10.15.0",
|
|
47
|
+
"highlight.js": "^11.8.0",
|
|
48
|
+
"material-ui-phone-number": "^3.0.0",
|
|
49
|
+
"notistack": "^3.0.1",
|
|
50
|
+
"nprogress": "^0.2.0",
|
|
51
|
+
"numeral": "^2.0.6",
|
|
52
|
+
"pluralize": "^8.0.0",
|
|
53
|
+
"react": "^18.2.0",
|
|
54
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
55
|
+
"react-dropzone": "^14.2.3",
|
|
56
|
+
"react-helmet-async": "^1.3.0",
|
|
57
|
+
"react-hook-form": "^7.45.4",
|
|
58
|
+
"react-lazy-load-image-component": "^1.6.0",
|
|
59
|
+
"react-router-dom": "^6.14.2",
|
|
60
|
+
"rollup": "^3.27.0",
|
|
61
|
+
"rollup-plugin-css-bundle": "^1.0.4",
|
|
62
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
63
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
64
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
65
|
+
"rollup-plugin-postcss-modules": "^2.1.1",
|
|
66
|
+
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
67
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
68
|
+
"simplebar-react": "^3.2.4",
|
|
69
|
+
"stylis": "^4.3.0",
|
|
70
|
+
"stylis-plugin-rtl": "^2.1.1",
|
|
71
|
+
"tslib": "^2.6.1",
|
|
72
|
+
"typescript": "^5.1.6",
|
|
73
|
+
"yup": "^1.2.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"react-quill": "^2.0.0"
|
|
77
|
+
}
|
|
78
|
+
}
|