identity-admin-ui 1.2.0 → 1.3.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 +130 -130
- package/lib/cjs/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/cjs/types/context/AppConfigurationsContext.d.ts +15 -15
- package/lib/cjs/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/cjs/types/helpers/CrudHelper/List/ListProps.d.ts +15 -10
- package/lib/cjs/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/cjs/types/hooks/useCredentials.d.ts +2 -0
- package/lib/cjs/types/hooks/usePaths.d.ts +8 -0
- package/lib/cjs/types/hooks/useResources.d.ts +5 -0
- package/lib/cjs/types/hooks/useSnackAlert.d.ts +6 -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 +130 -130
- package/lib/esm/types/components/IdentitySnackAlert.d.ts +10 -0
- package/lib/esm/types/context/AppConfigurationsContext.d.ts +15 -15
- package/lib/esm/types/context/SnackAlertContext.d.ts +19 -0
- package/lib/esm/types/helpers/CrudHelper/List/ListProps.d.ts +15 -10
- package/lib/esm/types/hooks/useAppConfigurations.d.ts +12 -0
- package/lib/esm/types/hooks/useCredentials.d.ts +2 -0
- package/lib/esm/types/hooks/usePaths.d.ts +8 -0
- package/lib/esm/types/hooks/useResources.d.ts +5 -0
- package/lib/esm/types/hooks/useSnackAlert.d.ts +6 -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 +422 -407
- package/package.json +78 -77
package/lib/index.d.ts
CHANGED
|
@@ -1,407 +1,422 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import { ReactElement, ReactNode } from 'react';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
key?: string;
|
|
53
|
-
path: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
key?: string;
|
|
68
|
-
path: string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Actions?: (props: any) => JSX.Element;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare function
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
declare
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
interface
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
root: string;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
interface
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
declare const
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactElement, ReactNode } from 'react';
|
|
5
|
+
import { GridSortDirection } from '@mui/x-data-grid';
|
|
6
|
+
import * as axios from 'axios';
|
|
7
|
+
import { AxiosRequestConfig } from 'axios';
|
|
8
|
+
|
|
9
|
+
type TLink = {
|
|
10
|
+
href?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
icon?: ReactElement;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
interface IdentityPageProps {
|
|
16
|
+
variant: PageVariant;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
data: any;
|
|
19
|
+
taptitle: string;
|
|
20
|
+
headingTitle: string;
|
|
21
|
+
enableDefaultActions?: boolean;
|
|
22
|
+
breadCrumbLinks: TLink[];
|
|
23
|
+
themeStretch?: boolean;
|
|
24
|
+
Component?: (props: any) => JSX.Element;
|
|
25
|
+
DefaultActions: (props: any) => JSX.Element;
|
|
26
|
+
LoadingSkelton: () => JSX.Element;
|
|
27
|
+
Actions: (props: any) => JSX.Element;
|
|
28
|
+
HeadingView: (props: any) => JSX.Element;
|
|
29
|
+
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
30
|
+
}
|
|
31
|
+
declare enum PageVariant {
|
|
32
|
+
LIST = "List",
|
|
33
|
+
SHOW = "Show",
|
|
34
|
+
FORM = "Form",
|
|
35
|
+
CUSTOM = "Custom"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const IdentityPage: (props: IdentityPageProps) => react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface ListParams {
|
|
41
|
+
page: number;
|
|
42
|
+
perPage: number;
|
|
43
|
+
order?: GridSortDirection;
|
|
44
|
+
orderBy?: string;
|
|
45
|
+
filter?: string;
|
|
46
|
+
scope?: string;
|
|
47
|
+
filters?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface IListProps {
|
|
51
|
+
apiRoute: string;
|
|
52
|
+
key?: string;
|
|
53
|
+
path: string;
|
|
54
|
+
modelName: string;
|
|
55
|
+
}
|
|
56
|
+
interface IActionsProps {
|
|
57
|
+
initialQueryParams: ListParams;
|
|
58
|
+
setParams: React.Dispatch<React.SetStateAction<ListParams>>;
|
|
59
|
+
}
|
|
60
|
+
interface IListRecordsProps extends IListProps {
|
|
61
|
+
Actions?: (props: IActionsProps) => JSX.Element;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare function ListRecords(props: IListRecordsProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
66
|
+
interface ShowRecordProps {
|
|
67
|
+
key?: string;
|
|
68
|
+
path: string;
|
|
69
|
+
modelRoute: string;
|
|
70
|
+
Component?: (props: any) => JSX.Element;
|
|
71
|
+
HeadingView?: (props: any) => JSX.Element;
|
|
72
|
+
Actions?: (props: any) => JSX.Element;
|
|
73
|
+
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
74
|
+
disableDefaultActions?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare function ShowRecord(props: ShowRecordProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
79
|
+
interface ICreateEdit {
|
|
80
|
+
isEdit: boolean;
|
|
81
|
+
modelRoute: string;
|
|
82
|
+
key?: string;
|
|
83
|
+
path: string;
|
|
84
|
+
removeHeaderBreadcrumbs?: boolean;
|
|
85
|
+
onSubmitForm?: () => void;
|
|
86
|
+
Component?: (props: any) => JSX.Element;
|
|
87
|
+
Actions?: (props: any) => JSX.Element;
|
|
88
|
+
HeadingView?: (props: any) => JSX.Element;
|
|
89
|
+
BreadcrumbsChildren?: (props: any) => JSX.Element;
|
|
90
|
+
redirectPath?: (record: any) => string;
|
|
91
|
+
}
|
|
92
|
+
declare function CreateEdit(props: ICreateEdit): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare enum RequestState {
|
|
95
|
+
IDLE = "idle",
|
|
96
|
+
LOADING = "loading",
|
|
97
|
+
SUCCEEDED = "succeeded",
|
|
98
|
+
FAILED = "failed"
|
|
99
|
+
}
|
|
100
|
+
interface IState<T> {
|
|
101
|
+
data: T | undefined;
|
|
102
|
+
state: RequestState;
|
|
103
|
+
error?: any | null;
|
|
104
|
+
}
|
|
105
|
+
declare class State<T> {
|
|
106
|
+
data: T | undefined;
|
|
107
|
+
state: RequestState;
|
|
108
|
+
error?: any;
|
|
109
|
+
private constructor();
|
|
110
|
+
static idle<T>(data?: T): IState<T>;
|
|
111
|
+
static loading<T>(data?: T): IState<T>;
|
|
112
|
+
static succeeded<T>(data: T): IState<T>;
|
|
113
|
+
static error<T>(error: any, data?: T): IState<T>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface RequestConfig {
|
|
117
|
+
url: string;
|
|
118
|
+
body?: any;
|
|
119
|
+
axiosRequestConfig?: AxiosRequestConfig;
|
|
120
|
+
query?: any;
|
|
121
|
+
}
|
|
122
|
+
declare function useApi<T>(): {
|
|
123
|
+
requestState: IState<T>;
|
|
124
|
+
get: (requstConfig: RequestConfig) => void;
|
|
125
|
+
post: (requstConfig: RequestConfig) => void;
|
|
126
|
+
patch: (requstConfig: RequestConfig) => void;
|
|
127
|
+
remove: (requstConfig: RequestConfig) => void;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
declare function useNavData(): {
|
|
131
|
+
subheader: string;
|
|
132
|
+
items: any;
|
|
133
|
+
}[];
|
|
134
|
+
|
|
135
|
+
declare const ApiContext: react.Context<ApiContextProps>;
|
|
136
|
+
interface ApiContextProps {
|
|
137
|
+
statusCode: number | null;
|
|
138
|
+
dashbaordUrlPrefix?: string;
|
|
139
|
+
}
|
|
140
|
+
interface ApiContextConfig {
|
|
141
|
+
language: string;
|
|
142
|
+
baseUrl: string;
|
|
143
|
+
onLogout: () => void;
|
|
144
|
+
sleepTime?: number;
|
|
145
|
+
children: any;
|
|
146
|
+
dashbaordUrlPrefix?: string;
|
|
147
|
+
}
|
|
148
|
+
declare const ApiContextProvider: (props: ApiContextConfig) => react_jsx_runtime.JSX.Element;
|
|
149
|
+
|
|
150
|
+
declare enum ActionTypes {
|
|
151
|
+
RECORD = "RECORD",
|
|
152
|
+
Resource = "RESOUCRE"
|
|
153
|
+
}
|
|
154
|
+
declare enum FieldTypes {
|
|
155
|
+
STRING = "String",
|
|
156
|
+
NUMBER = "Number",
|
|
157
|
+
ENUM = "enum",
|
|
158
|
+
REFERENCE = "ref",
|
|
159
|
+
DATE = "Date",
|
|
160
|
+
PASSWORD = "password",
|
|
161
|
+
BOOLEAN = "Boolean",
|
|
162
|
+
OBJECTID = "ObjectID",
|
|
163
|
+
NESTEDSCHEMA = "nestedSchema",
|
|
164
|
+
ARRAY = "Array",
|
|
165
|
+
IMAGE = "image",
|
|
166
|
+
LOCALIZEDString = "localizedString",
|
|
167
|
+
PHONENUMBER = "phoneNumber",
|
|
168
|
+
COLOR = "color",
|
|
169
|
+
TIMEPICKER = "timePicker",
|
|
170
|
+
FILE = "File",
|
|
171
|
+
LOCATION = "LOCATION"
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type SizeType = 'small' | 'medium' | undefined;
|
|
175
|
+
declare enum FileTypes {
|
|
176
|
+
ALL = "ALL",
|
|
177
|
+
IMAGE = "IMAGE",
|
|
178
|
+
_3D = "3D",
|
|
179
|
+
PDF = "PDF",
|
|
180
|
+
EXCEL = "EXCEL",
|
|
181
|
+
WORD = "WORD",
|
|
182
|
+
VIDEO = "VIDEO",
|
|
183
|
+
TEXT = "TEXT",
|
|
184
|
+
ZIP = "ZIP",
|
|
185
|
+
POWER_POINT = "POWER_POINT",
|
|
186
|
+
AUDIO = "AUDIO"
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface IResource {
|
|
190
|
+
filterProperties: string[];
|
|
191
|
+
quickFilterProperties: string[];
|
|
192
|
+
formProperties: string[];
|
|
193
|
+
listProperties: IProperty[];
|
|
194
|
+
showProperties: IProperty[];
|
|
195
|
+
properties: IMainProperty;
|
|
196
|
+
}
|
|
197
|
+
interface IProperty {
|
|
198
|
+
key: string;
|
|
199
|
+
value: string;
|
|
200
|
+
path?: string;
|
|
201
|
+
}
|
|
202
|
+
interface IMainProperty {
|
|
203
|
+
title: string;
|
|
204
|
+
path: string;
|
|
205
|
+
name: string;
|
|
206
|
+
modelName: string;
|
|
207
|
+
parent: IParent;
|
|
208
|
+
defaultOrder: orderTypes;
|
|
209
|
+
defaultOrderBy: string;
|
|
210
|
+
defaultrowsPerPage: number;
|
|
211
|
+
filters: IFilter;
|
|
212
|
+
actions: IAction;
|
|
213
|
+
model: {
|
|
214
|
+
[key: string]: ISchemaObject;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
interface IParent {
|
|
218
|
+
icon: string;
|
|
219
|
+
name: string;
|
|
220
|
+
value: string;
|
|
221
|
+
}
|
|
222
|
+
interface IFilter {
|
|
223
|
+
scopes: {
|
|
224
|
+
isAccessible: boolean;
|
|
225
|
+
options?: {
|
|
226
|
+
key: string;
|
|
227
|
+
value: string;
|
|
228
|
+
}[];
|
|
229
|
+
manual?: {
|
|
230
|
+
options: string[];
|
|
231
|
+
};
|
|
232
|
+
auto?: {
|
|
233
|
+
key: string;
|
|
234
|
+
options: string[];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
searchBar: {
|
|
238
|
+
isAccessible: boolean;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
interface IAction {
|
|
242
|
+
bulkDelete: {
|
|
243
|
+
cancelDeleteOption: string;
|
|
244
|
+
confirmDeleteOption: string;
|
|
245
|
+
confirmationMessageBody: string;
|
|
246
|
+
confirmationMessageTitle: string;
|
|
247
|
+
isAccessible: boolean;
|
|
248
|
+
value: string;
|
|
249
|
+
};
|
|
250
|
+
delete: {
|
|
251
|
+
cancelDeleteOption: string;
|
|
252
|
+
confirmDeleteOption: string;
|
|
253
|
+
confirmationMessageBody: string;
|
|
254
|
+
confirmationMessageTitle: string;
|
|
255
|
+
isAccessible: boolean;
|
|
256
|
+
value: string;
|
|
257
|
+
};
|
|
258
|
+
edit: IActionMin;
|
|
259
|
+
new: IActionMin;
|
|
260
|
+
show: IActionMin;
|
|
261
|
+
extras?: IExtras;
|
|
262
|
+
}
|
|
263
|
+
interface IExtras {
|
|
264
|
+
record: {
|
|
265
|
+
[key: string]: IExtarAction;
|
|
266
|
+
};
|
|
267
|
+
resource: {
|
|
268
|
+
[key: string]: IExtarAction;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
interface IExtarAction {
|
|
272
|
+
actionType: ActionTypes;
|
|
273
|
+
guard?: string;
|
|
274
|
+
icon: string;
|
|
275
|
+
key: string;
|
|
276
|
+
keys?: string[];
|
|
277
|
+
name: string;
|
|
278
|
+
severity?: Severity;
|
|
279
|
+
message?: string;
|
|
280
|
+
}
|
|
281
|
+
interface IActionMin {
|
|
282
|
+
isAccessible: boolean;
|
|
283
|
+
value: string;
|
|
284
|
+
}
|
|
285
|
+
type orderTypes = 'asc' | 'desc';
|
|
286
|
+
type Severity = 'success' | 'info' | 'warning' | 'error';
|
|
287
|
+
interface ISchemaObject {
|
|
288
|
+
required?: boolean;
|
|
289
|
+
isEditable?: boolean;
|
|
290
|
+
type?: FieldTypes;
|
|
291
|
+
enumValues?: string[];
|
|
292
|
+
countryCodes?: string[];
|
|
293
|
+
arrayType?: FieldTypes;
|
|
294
|
+
isDraggable?: boolean;
|
|
295
|
+
value?: string;
|
|
296
|
+
mediaUploader?: boolean;
|
|
297
|
+
fileType?: FileTypes;
|
|
298
|
+
withTime?: boolean;
|
|
299
|
+
apiRoute?: string;
|
|
300
|
+
defaultValue: string;
|
|
301
|
+
valuePath?: string;
|
|
302
|
+
path?: string;
|
|
303
|
+
keys?: string[];
|
|
304
|
+
schema?: {
|
|
305
|
+
[key: string]: ISchemaObject;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type ResourceResponse = {
|
|
310
|
+
[key: string]: IResource | {
|
|
311
|
+
[key: string]: string[];
|
|
312
|
+
};
|
|
313
|
+
} | {
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
} | null | undefined;
|
|
316
|
+
declare const ResourcesContext: react.Context<{
|
|
317
|
+
resources: ResourceResponse;
|
|
318
|
+
getResources: () => void;
|
|
319
|
+
}>;
|
|
320
|
+
interface ResourcesContextConfig {
|
|
321
|
+
resourcesUrl: string;
|
|
322
|
+
laodingLogo?: string;
|
|
323
|
+
children: any;
|
|
324
|
+
}
|
|
325
|
+
declare const ResourcesContextProvider: (props: ResourcesContextConfig) => react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
interface ResourcePaths {
|
|
328
|
+
root: string;
|
|
329
|
+
list: string;
|
|
330
|
+
edit: (id: string) => string;
|
|
331
|
+
show: (id: string) => string;
|
|
332
|
+
new: string;
|
|
333
|
+
}
|
|
334
|
+
interface PathsContextConfig {
|
|
335
|
+
root: string;
|
|
336
|
+
home: string;
|
|
337
|
+
children: any;
|
|
338
|
+
}
|
|
339
|
+
declare const PathsContext: react.Context<{
|
|
340
|
+
paths: {
|
|
341
|
+
[key: string]: ResourcePaths;
|
|
342
|
+
};
|
|
343
|
+
root: string;
|
|
344
|
+
home: string;
|
|
345
|
+
}>;
|
|
346
|
+
declare const PathsContextProvider: (props: PathsContextConfig) => react_jsx_runtime.JSX.Element;
|
|
347
|
+
declare function path(root: string, sublink: string): string;
|
|
348
|
+
|
|
349
|
+
type AppConfigurations = {
|
|
350
|
+
textFieldSize: SizeType;
|
|
351
|
+
themeLayout?: 'vertical' | 'horizontal' | 'mini';
|
|
352
|
+
defaultRowsPerPage: number;
|
|
353
|
+
themeStretch: boolean;
|
|
354
|
+
setThemeLayout?: React.Dispatch<React.SetStateAction<'horizontal' | 'vertical' | 'mini'>>;
|
|
355
|
+
loadingLoago?: string;
|
|
356
|
+
navBarLogo?: string;
|
|
357
|
+
miniNavBarLogo?: string;
|
|
358
|
+
};
|
|
359
|
+
declare const AppConfigurationsContext: react.Context<AppConfigurations>;
|
|
360
|
+
declare const AppConfigurationsContextProvider: (props: any) => react_jsx_runtime.JSX.Element;
|
|
361
|
+
|
|
362
|
+
interface CredentialKeys {
|
|
363
|
+
identityPoolId: string;
|
|
364
|
+
region: string;
|
|
365
|
+
userPoolId: string;
|
|
366
|
+
userPoolWebClientId: string;
|
|
367
|
+
bucket: string;
|
|
368
|
+
googleApiKey: string;
|
|
369
|
+
bucketUrl: string;
|
|
370
|
+
}
|
|
371
|
+
declare const CredentialsContext: react.Context<CredentialKeys>;
|
|
372
|
+
interface CredentialProps extends CredentialKeys {
|
|
373
|
+
children: ReactNode;
|
|
374
|
+
}
|
|
375
|
+
declare const CredentialsContextProvider: (props: CredentialProps) => react_jsx_runtime.JSX.Element;
|
|
376
|
+
|
|
377
|
+
declare const IdentityClient: axios.AxiosInstance;
|
|
378
|
+
declare module 'axios' {
|
|
379
|
+
interface AxiosRequestConfig {
|
|
380
|
+
_retry?: boolean;
|
|
381
|
+
_auth?: boolean;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
type Props = {
|
|
386
|
+
children: React.ReactNode;
|
|
387
|
+
Logo?: (props: any) => JSX.Element;
|
|
388
|
+
};
|
|
389
|
+
declare function DashboardLayout({ children, Logo }: Props): react_jsx_runtime.JSX.Element;
|
|
390
|
+
|
|
391
|
+
interface PresetsColor {
|
|
392
|
+
lighter: string;
|
|
393
|
+
light: string;
|
|
394
|
+
main: string;
|
|
395
|
+
dark: string;
|
|
396
|
+
darker: string;
|
|
397
|
+
contrastText: string;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
interface SettingsValueProps {
|
|
401
|
+
themeStretch?: boolean;
|
|
402
|
+
themeMode?: 'light' | 'dark';
|
|
403
|
+
themeDirection?: 'rtl' | 'ltr';
|
|
404
|
+
themeContrast?: 'default' | 'bold';
|
|
405
|
+
themeColorPresets?: 'default' | 'cyan' | 'purple' | 'blue' | 'orange' | 'red';
|
|
406
|
+
customColorPresets?: PresetsColor;
|
|
407
|
+
}
|
|
408
|
+
interface ThemeProps extends SettingsValueProps {
|
|
409
|
+
children: React.ReactNode;
|
|
410
|
+
}
|
|
411
|
+
declare function ThemeProvider({ children, themeColorPresets, themeContrast, themeDirection, themeMode, customColorPresets }: ThemeProps): react_jsx_runtime.JSX.Element;
|
|
412
|
+
|
|
413
|
+
declare function DashBoardRouter(props: any): {
|
|
414
|
+
path: string;
|
|
415
|
+
children: {
|
|
416
|
+
path: string;
|
|
417
|
+
element: react_jsx_runtime.JSX.Element;
|
|
418
|
+
children: any[];
|
|
419
|
+
}[];
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, IState, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useNavData };
|