@abdellatifui/react 3.1.38 → 3.1.39
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/dist/nextgen.d.ts +617 -19
- package/dist/nextgen.js +2822 -2816
- package/dist/style.css +1 -1
- package/dist/types/components/Tables/NextGen/main/main.d.ts +8 -0
- package/dist/types/components/Tables/NextGen/main/main.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +546 -0
- package/dist/types/components/types.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -26,11 +26,55 @@ import { StyledTooltip as Tooltip } from './Buttons/Button';
|
|
|
26
26
|
|
|
27
27
|
export declare const AccordionGroup: (props: any) => JSX_2.Element;
|
|
28
28
|
|
|
29
|
+
export declare interface AccordionGroupProps {
|
|
30
|
+
multiple?: boolean;
|
|
31
|
+
children: default_2.ReactNode;
|
|
32
|
+
border?: boolean;
|
|
33
|
+
onChange?: (params: {
|
|
34
|
+
value: any;
|
|
35
|
+
props: any;
|
|
36
|
+
api: any;
|
|
37
|
+
}) => void;
|
|
38
|
+
onOpen?: (params: {
|
|
39
|
+
value: any;
|
|
40
|
+
props: any;
|
|
41
|
+
api: any;
|
|
42
|
+
}) => void;
|
|
43
|
+
onClose?: (params: {
|
|
44
|
+
value: any;
|
|
45
|
+
props: any;
|
|
46
|
+
api: any;
|
|
47
|
+
}) => void;
|
|
48
|
+
}
|
|
49
|
+
|
|
29
50
|
export declare const AccordionItem: (props: any) => JSX_2.Element;
|
|
30
51
|
|
|
31
|
-
export declare
|
|
52
|
+
export declare interface AccordionItemProps {
|
|
53
|
+
value: string;
|
|
54
|
+
header: default_2.ReactNode;
|
|
55
|
+
children: default_2.ReactNode;
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
className?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare interface AdvancedSpinnerProps extends SpinnerProps {
|
|
61
|
+
type?: 'dots' | 'bars' | 'pulse' | 'ring';
|
|
62
|
+
color?: string;
|
|
63
|
+
thickness?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps_2 & default_2.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
|
|
68
|
+
export declare interface AlertProps {
|
|
69
|
+
type: 'success' | 'error' | 'warning' | 'info';
|
|
70
|
+
title?: string;
|
|
71
|
+
message: string;
|
|
72
|
+
onClose?: () => void;
|
|
73
|
+
actions?: default_2.ReactNode;
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
32
76
|
|
|
33
|
-
declare interface
|
|
77
|
+
declare interface AlertProps_2 {
|
|
34
78
|
dialog: {
|
|
35
79
|
header: string;
|
|
36
80
|
body: string;
|
|
@@ -45,9 +89,15 @@ declare interface AlertProps {
|
|
|
45
89
|
};
|
|
46
90
|
}
|
|
47
91
|
|
|
92
|
+
export declare interface AppBodyProps extends ContainerProps {
|
|
93
|
+
sidebar?: default_2.ReactNode;
|
|
94
|
+
header?: default_2.ReactNode;
|
|
95
|
+
footer?: default_2.ReactNode;
|
|
96
|
+
}
|
|
97
|
+
|
|
48
98
|
export declare const AppContext: Context< {}>;
|
|
49
99
|
|
|
50
|
-
declare interface AutocompeleteProps extends
|
|
100
|
+
declare interface AutocompeleteProps extends InputProps_2 {
|
|
51
101
|
onChange?: void;
|
|
52
102
|
options?: object;
|
|
53
103
|
defaultValue?: string;
|
|
@@ -63,22 +113,81 @@ declare interface AutocompeleteProps extends InputProps {
|
|
|
63
113
|
|
|
64
114
|
export declare const AutoComplete: default_2.ForwardRefExoticComponent<AutocompeleteProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
65
115
|
|
|
116
|
+
export declare interface AutoCompleteProps extends InputProps {
|
|
117
|
+
options: Array<{
|
|
118
|
+
label: string;
|
|
119
|
+
value: any;
|
|
120
|
+
}>;
|
|
121
|
+
onSelect?: (option: any) => void;
|
|
122
|
+
filterOptions?: boolean;
|
|
123
|
+
}
|
|
124
|
+
|
|
66
125
|
declare const Body_2: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
67
126
|
export { Body_2 as Body }
|
|
68
127
|
|
|
69
128
|
export { Button }
|
|
70
129
|
|
|
130
|
+
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
131
|
+
variant?: 'primary' | 'transparent' | 'secondary' | 'danger' | 'danger2' | 'green' | 'ghost' | 'dangerghost';
|
|
132
|
+
size?: 'button' | 'sm' | 'lg' | 'xl';
|
|
133
|
+
border?: boolean | 'ghost';
|
|
134
|
+
disable?: boolean;
|
|
135
|
+
hover?: boolean | 'ghost';
|
|
136
|
+
addClass?: string[];
|
|
137
|
+
autoFocus?: boolean;
|
|
138
|
+
icon?: default_2.ReactNode;
|
|
139
|
+
disableAfterClick?: boolean;
|
|
140
|
+
tooltip?: string;
|
|
141
|
+
outline?: boolean;
|
|
142
|
+
asChild?: boolean;
|
|
143
|
+
}
|
|
144
|
+
|
|
71
145
|
export declare function capitalizeFirstLetter(string: any): any;
|
|
72
146
|
|
|
73
147
|
export declare const CloseButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
74
148
|
|
|
75
149
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
76
150
|
|
|
151
|
+
export declare interface ColorVariants {
|
|
152
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export declare interface CommonProps {
|
|
156
|
+
className?: string;
|
|
157
|
+
children?: default_2.ReactNode;
|
|
158
|
+
id?: string;
|
|
159
|
+
style?: default_2.CSSProperties;
|
|
160
|
+
}
|
|
161
|
+
|
|
77
162
|
export declare const Container: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
78
163
|
|
|
79
|
-
export declare
|
|
164
|
+
export declare interface ContainerProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
165
|
+
title?: string;
|
|
166
|
+
padding?: boolean | 'sm' | 'lg' | 'xl';
|
|
167
|
+
resizable?: boolean | 'y' | 'x';
|
|
168
|
+
color?: 'primary' | 'secondary';
|
|
169
|
+
border?: boolean | 'blue';
|
|
170
|
+
shadow?: boolean | 'sm' | 'xl' | 'xxl';
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export declare const ContextMenu: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ContextMenuProps_2 & default_2.RefAttributes<unknown>>>;
|
|
174
|
+
|
|
175
|
+
export declare interface ContextMenuProps {
|
|
176
|
+
items: {
|
|
177
|
+
items: Array<{
|
|
178
|
+
label: string;
|
|
179
|
+
icon?: default_2.ReactNode;
|
|
180
|
+
action: () => void;
|
|
181
|
+
disabled?: boolean;
|
|
182
|
+
separator?: boolean;
|
|
183
|
+
}>;
|
|
184
|
+
};
|
|
185
|
+
event: default_2.MouseEvent | null;
|
|
186
|
+
onClose?: () => void;
|
|
187
|
+
className?: string;
|
|
188
|
+
}
|
|
80
189
|
|
|
81
|
-
declare type
|
|
190
|
+
declare type ContextMenuProps_2 = {
|
|
82
191
|
items: {
|
|
83
192
|
title: string;
|
|
84
193
|
items: [];
|
|
@@ -97,6 +206,11 @@ export declare function convertTimestampToDate(timestamp: any): string;
|
|
|
97
206
|
|
|
98
207
|
export declare const CopyButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
99
208
|
|
|
209
|
+
export declare interface CopyButtonProps extends ButtonProps {
|
|
210
|
+
text: string;
|
|
211
|
+
onCopy?: (text: string) => void;
|
|
212
|
+
}
|
|
213
|
+
|
|
100
214
|
export declare const createDefaultConnTemplate: (name: any, id: any, sourceId: any, destinationId: any, details?: {}, linkColor?: any, linkAnimationColor?: any, layer?: number, group?: number, bidir?: boolean) => {
|
|
101
215
|
name: any;
|
|
102
216
|
id: any;
|
|
@@ -123,11 +237,18 @@ export declare const createDefaultNodeTempate: (name: any, id: any, color: any,
|
|
|
123
237
|
|
|
124
238
|
export { cva }
|
|
125
239
|
|
|
126
|
-
export declare const DataTable: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<
|
|
240
|
+
export declare const DataTable: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TableProps_2 & default_2.RefAttributes<HTMLDivElement>>>;
|
|
241
|
+
|
|
242
|
+
export declare const DialogPanel: default_2.ForwardRefExoticComponent<Omit<DialogPanelProps_2, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
127
243
|
|
|
128
|
-
export declare
|
|
244
|
+
export declare interface DialogPanelProps extends ContainerProps {
|
|
245
|
+
header: string;
|
|
246
|
+
collapsible?: boolean;
|
|
247
|
+
close?: boolean;
|
|
248
|
+
onClose?: () => void;
|
|
249
|
+
}
|
|
129
250
|
|
|
130
|
-
declare interface
|
|
251
|
+
declare interface DialogPanelProps_2 {
|
|
131
252
|
children: any;
|
|
132
253
|
header: string;
|
|
133
254
|
shortInfo: string;
|
|
@@ -138,12 +259,44 @@ declare interface DialogPanelProps {
|
|
|
138
259
|
closeButton: string;
|
|
139
260
|
}
|
|
140
261
|
|
|
262
|
+
export declare interface DisabledProps {
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
loading?: boolean;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export declare interface ErrorBoundaryProps {
|
|
268
|
+
children: default_2.ReactNode;
|
|
269
|
+
fallback?: default_2.ComponentType<{
|
|
270
|
+
error: Error;
|
|
271
|
+
resetError: () => void;
|
|
272
|
+
}>;
|
|
273
|
+
onError?: (error: Error, errorInfo: default_2.ErrorInfo) => void;
|
|
274
|
+
}
|
|
275
|
+
|
|
141
276
|
export declare const ErrorBoundry: (props: any) => JSX_2.Element;
|
|
142
277
|
|
|
278
|
+
export declare interface EventHandlers {
|
|
279
|
+
onClick?: (event: default_2.MouseEvent) => void;
|
|
280
|
+
onDoubleClick?: (event: default_2.MouseEvent) => void;
|
|
281
|
+
onContextMenu?: (event: default_2.MouseEvent) => void;
|
|
282
|
+
onChange?: (event: default_2.ChangeEvent) => void;
|
|
283
|
+
onFocus?: (event: default_2.FocusEvent) => void;
|
|
284
|
+
onBlur?: (event: default_2.FocusEvent) => void;
|
|
285
|
+
}
|
|
286
|
+
|
|
143
287
|
export declare const Frame: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
144
288
|
|
|
145
289
|
export declare const Frequency: ForwardRefExoticComponent<RefAttributes<unknown>>;
|
|
146
290
|
|
|
291
|
+
export declare interface FrequencyProps {
|
|
292
|
+
value: number;
|
|
293
|
+
onChange: (value: number) => void;
|
|
294
|
+
min?: number;
|
|
295
|
+
max?: number;
|
|
296
|
+
step?: number;
|
|
297
|
+
unit?: string;
|
|
298
|
+
}
|
|
299
|
+
|
|
147
300
|
export declare function getRandomColor(): string;
|
|
148
301
|
|
|
149
302
|
export declare const GetRandomStr: (length?: number, str?: boolean) => string;
|
|
@@ -152,21 +305,84 @@ export declare const getWholeSpectrum: () => any[];
|
|
|
152
305
|
|
|
153
306
|
export declare function Headline(props: any): JSX_2.Element;
|
|
154
307
|
|
|
308
|
+
export declare interface HeadlineProps {
|
|
309
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
310
|
+
children: default_2.ReactNode;
|
|
311
|
+
className?: string;
|
|
312
|
+
variant?: 'default' | 'muted' | 'accent';
|
|
313
|
+
}
|
|
314
|
+
|
|
155
315
|
export declare const HelpPopover: (props: any) => JSX_2.Element;
|
|
156
316
|
|
|
317
|
+
export declare interface HelpPopoverProps {
|
|
318
|
+
title?: string;
|
|
319
|
+
content: default_2.ReactNode;
|
|
320
|
+
trigger?: default_2.ReactNode;
|
|
321
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
322
|
+
className?: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
157
325
|
export declare const hex2rgb: (hex: any) => number[];
|
|
158
326
|
|
|
159
327
|
export declare const HorizontalDiv: (props: any) => JSX_2.Element;
|
|
160
328
|
|
|
329
|
+
export declare interface HorizontalDivProps extends ContainerProps {
|
|
330
|
+
gap?: number;
|
|
331
|
+
align?: 'start' | 'center' | 'end';
|
|
332
|
+
justify?: 'start' | 'center' | 'end' | 'between';
|
|
333
|
+
}
|
|
334
|
+
|
|
161
335
|
export declare const IconButton: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
162
336
|
|
|
337
|
+
export declare interface IconButtonProps extends ButtonProps {
|
|
338
|
+
icon: default_2.ReactNode;
|
|
339
|
+
size?: 'sm' | 'md' | 'lg';
|
|
340
|
+
}
|
|
341
|
+
|
|
163
342
|
export declare function InformationTableMui(props: any): JSX_2.Element;
|
|
164
343
|
|
|
344
|
+
export declare interface InformationTableProps {
|
|
345
|
+
data: any[];
|
|
346
|
+
columns: Array<{
|
|
347
|
+
key: string;
|
|
348
|
+
label: string;
|
|
349
|
+
render?: (value: any, row: any) => default_2.ReactNode;
|
|
350
|
+
}>;
|
|
351
|
+
sortable?: boolean;
|
|
352
|
+
filterable?: boolean;
|
|
353
|
+
pagination?: boolean;
|
|
354
|
+
pageSize?: number;
|
|
355
|
+
className?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
165
358
|
export declare const InlineSpinner: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
166
359
|
|
|
360
|
+
export declare interface InlineSpinnerProps extends SpinnerProps {
|
|
361
|
+
inline?: boolean;
|
|
362
|
+
}
|
|
363
|
+
|
|
167
364
|
export declare const Input: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
168
365
|
|
|
169
|
-
declare interface InputProps extends
|
|
366
|
+
export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
367
|
+
placeholder: string;
|
|
368
|
+
size: 'screen' | 'frequency' | 'full';
|
|
369
|
+
description: string;
|
|
370
|
+
inputRef?: object;
|
|
371
|
+
invalid?: string;
|
|
372
|
+
type?: string;
|
|
373
|
+
defaultValue?: string;
|
|
374
|
+
value?: string;
|
|
375
|
+
multiple?: boolean;
|
|
376
|
+
loading?: boolean;
|
|
377
|
+
controlled?: boolean;
|
|
378
|
+
tmpdescription?: {
|
|
379
|
+
state: boolean;
|
|
380
|
+
message: string;
|
|
381
|
+
};
|
|
382
|
+
onChange?: (value: string) => void;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
declare interface InputProps_2 extends InputProps_3 {
|
|
170
386
|
placeholder: string;
|
|
171
387
|
size: string;
|
|
172
388
|
description: string;
|
|
@@ -181,17 +397,44 @@ declare interface InputProps extends InputProps_2 {
|
|
|
181
397
|
multiple: boolean;
|
|
182
398
|
}
|
|
183
399
|
|
|
184
|
-
declare interface
|
|
400
|
+
declare interface InputProps_3 extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
185
401
|
}
|
|
186
402
|
|
|
187
403
|
export declare const Label: (props: any) => JSX_2.Element;
|
|
188
404
|
|
|
405
|
+
export declare interface LabelProps extends HeadlineProps {
|
|
406
|
+
required?: boolean;
|
|
407
|
+
error?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
189
410
|
export declare const loadFonts: () => void;
|
|
190
411
|
|
|
191
412
|
export declare const loadFontsOnInteraction: () => void;
|
|
192
413
|
|
|
414
|
+
export declare interface MainFrameProps extends ContainerProps {
|
|
415
|
+
title?: string;
|
|
416
|
+
subtitle?: string;
|
|
417
|
+
actions?: default_2.ReactNode;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export declare interface MainframeProps {
|
|
421
|
+
item: {
|
|
422
|
+
id: string;
|
|
423
|
+
header: string;
|
|
424
|
+
body: string;
|
|
425
|
+
type: string | null;
|
|
426
|
+
duration?: number;
|
|
427
|
+
buttons: any[];
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
193
431
|
export declare const MainHeader: (props: any) => JSX_2.Element;
|
|
194
432
|
|
|
433
|
+
export declare interface MainHeaderProps extends HeadlineProps {
|
|
434
|
+
subtitle?: string;
|
|
435
|
+
actions?: default_2.ReactNode;
|
|
436
|
+
}
|
|
437
|
+
|
|
195
438
|
export declare const mapStyles: ({
|
|
196
439
|
name: string;
|
|
197
440
|
url: string;
|
|
@@ -212,11 +455,26 @@ export declare const mapStyles: ({
|
|
|
212
455
|
|
|
213
456
|
export declare const MenuButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
214
457
|
|
|
215
|
-
export declare
|
|
458
|
+
export declare interface MenuButtonProps extends ButtonProps {
|
|
459
|
+
menuItems: Array<{
|
|
460
|
+
label: string;
|
|
461
|
+
action: () => void;
|
|
462
|
+
icon?: default_2.ReactNode;
|
|
463
|
+
}>;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export declare const Model: default_2.ForwardRefExoticComponent<ModelProps_2 & default_2.RefAttributes<HTMLDivElement>>;
|
|
216
467
|
|
|
217
468
|
export declare const ModelContext: Context< {}>;
|
|
218
469
|
|
|
219
|
-
declare interface ModelProps {
|
|
470
|
+
export declare interface ModelProps extends ContainerProps {
|
|
471
|
+
isOpen: boolean;
|
|
472
|
+
onClose: () => void;
|
|
473
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
474
|
+
closeOnOverlayClick?: boolean;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare interface ModelProps_2 {
|
|
220
478
|
children: any;
|
|
221
479
|
bodyClick: boolean;
|
|
222
480
|
className: string;
|
|
@@ -227,9 +485,82 @@ declare interface ModelProps {
|
|
|
227
485
|
|
|
228
486
|
export declare const MuiTable: (props: any) => JSX_2.Element;
|
|
229
487
|
|
|
230
|
-
export declare
|
|
488
|
+
export declare interface MuiTableProps {
|
|
489
|
+
dataset: any[];
|
|
490
|
+
columns?: Array<{
|
|
491
|
+
accessorKey: string;
|
|
492
|
+
header: string;
|
|
493
|
+
size?: number;
|
|
494
|
+
enableSorting?: boolean;
|
|
495
|
+
enableColumnFilter?: boolean;
|
|
496
|
+
}>;
|
|
497
|
+
enableRowSelection?: boolean;
|
|
498
|
+
enableColumnResizing?: boolean;
|
|
499
|
+
enableColumnDragging?: boolean;
|
|
500
|
+
enableColumnOrdering?: boolean;
|
|
501
|
+
onRowSelectionChange?: (rows: any[]) => void;
|
|
502
|
+
className?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export declare const NetworkMap: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<NetworkMapProps_2 & default_2.RefAttributes<unknown>>>;
|
|
231
506
|
|
|
232
|
-
declare
|
|
507
|
+
export declare interface NetworkMapProps {
|
|
508
|
+
nodes: object[];
|
|
509
|
+
connections: object[];
|
|
510
|
+
linkHighlightedColorHex: string;
|
|
511
|
+
defaultLinkColorHex: string;
|
|
512
|
+
hideLinksOnDrag: boolean;
|
|
513
|
+
showHoveredLinksOnly: boolean;
|
|
514
|
+
draggingMode: boolean;
|
|
515
|
+
maxZoomOutForLinkCount: number;
|
|
516
|
+
nodeSizeScaler: number;
|
|
517
|
+
defaultAnimationLinkColor: string;
|
|
518
|
+
linkAnimation: boolean;
|
|
519
|
+
staticMapColor: string;
|
|
520
|
+
isolateNonSelectedLinksOnNodeClick: boolean;
|
|
521
|
+
showLinkCount: boolean;
|
|
522
|
+
tid: string | number;
|
|
523
|
+
onConnClick: (conn: object) => void;
|
|
524
|
+
onNodeClick: (node: object) => void;
|
|
525
|
+
onNodeMouseOver: (node: object) => void;
|
|
526
|
+
getMenuTitle: (connection: object) => void;
|
|
527
|
+
onLinkContextMenu: (info: {
|
|
528
|
+
data: object;
|
|
529
|
+
event: default_2.MouseEvent;
|
|
530
|
+
mapApi: MapProps;
|
|
531
|
+
type: string;
|
|
532
|
+
}) => void;
|
|
533
|
+
enableNativeContextMenu: boolean;
|
|
534
|
+
enableLngLatBox: boolean;
|
|
535
|
+
mapStyle: {
|
|
536
|
+
url: string;
|
|
537
|
+
index: number;
|
|
538
|
+
name: string;
|
|
539
|
+
};
|
|
540
|
+
hideLinks: boolean;
|
|
541
|
+
mapProps: MapProps;
|
|
542
|
+
menuItems: Array<{
|
|
543
|
+
label: string;
|
|
544
|
+
action?: (args: {
|
|
545
|
+
data: object;
|
|
546
|
+
event: default_2.MouseEvent;
|
|
547
|
+
mapApi: MapProps;
|
|
548
|
+
type: string;
|
|
549
|
+
}) => void;
|
|
550
|
+
}>;
|
|
551
|
+
nodeMenuItems: Array<{
|
|
552
|
+
label: string;
|
|
553
|
+
action?: (args: {
|
|
554
|
+
data: object;
|
|
555
|
+
event: default_2.MouseEvent;
|
|
556
|
+
mapApi: MapProps;
|
|
557
|
+
type: string;
|
|
558
|
+
}) => void;
|
|
559
|
+
}>;
|
|
560
|
+
nodeIconMapper?: (object: any) => default_2.ReactNode | null;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare type NetworkMapProps_2 = {
|
|
233
564
|
nodes: object[];
|
|
234
565
|
connections: object[];
|
|
235
566
|
linkHighlightedColorHex: string;
|
|
@@ -287,11 +618,30 @@ declare type NetworkMapProps = {
|
|
|
287
618
|
|
|
288
619
|
export declare const NgFailedLegend: (props: any) => JSX_2.Element;
|
|
289
620
|
|
|
621
|
+
export declare interface NgFailedLegendProps {
|
|
622
|
+
title?: string;
|
|
623
|
+
description?: string;
|
|
624
|
+
className?: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
290
627
|
export declare const NgSuccessLegend: (props: any) => JSX_2.Element;
|
|
291
628
|
|
|
292
|
-
export declare
|
|
629
|
+
export declare interface NgSuccessLegendProps {
|
|
630
|
+
title?: string;
|
|
631
|
+
description?: string;
|
|
632
|
+
className?: string;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export declare const Panel: default_2.ForwardRefExoticComponent<default_2.RefAttributes<PanelProps_2>>;
|
|
293
636
|
|
|
294
|
-
declare interface PanelProps {
|
|
637
|
+
export declare interface PanelProps extends ContainerProps {
|
|
638
|
+
header?: default_2.ReactNode;
|
|
639
|
+
footer?: default_2.ReactNode;
|
|
640
|
+
collapsible?: boolean;
|
|
641
|
+
defaultCollapsed?: boolean;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare interface PanelProps_2 {
|
|
295
645
|
children: any;
|
|
296
646
|
closeButton: boolean;
|
|
297
647
|
header: string;
|
|
@@ -303,13 +653,44 @@ declare interface PanelProps {
|
|
|
303
653
|
defaultClose: string;
|
|
304
654
|
}
|
|
305
655
|
|
|
656
|
+
export declare interface PropertiesItemProps {
|
|
657
|
+
label: string;
|
|
658
|
+
value: any;
|
|
659
|
+
type?: 'text' | 'number' | 'boolean' | 'date' | 'array' | 'object';
|
|
660
|
+
editable?: boolean;
|
|
661
|
+
onChange?: (value: any) => void;
|
|
662
|
+
className?: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
306
665
|
export declare const PropItem: (props: any) => JSX_2.Element;
|
|
307
666
|
|
|
308
667
|
export declare const RadioGroup: ForwardRefExoticComponent<RefAttributes<unknown>>;
|
|
309
668
|
|
|
310
|
-
export declare
|
|
669
|
+
export declare interface RadioGroupProps {
|
|
670
|
+
name: string;
|
|
671
|
+
value?: string;
|
|
672
|
+
onChange?: (value: string) => void;
|
|
673
|
+
children: default_2.ReactNode;
|
|
674
|
+
className?: string;
|
|
675
|
+
orientation?: 'horizontal' | 'vertical';
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export declare const RadioItem: React.FC<RadioItemProps_2>;
|
|
679
|
+
|
|
680
|
+
export declare interface RadioItemProps {
|
|
681
|
+
children?: default_2.ReactNode;
|
|
682
|
+
header?: default_2.ReactNode;
|
|
683
|
+
onSelect?: (ev: default_2.ChangeEvent<HTMLInputElement>, checked: boolean, state: any) => void;
|
|
684
|
+
onClick?: (state: any) => void;
|
|
685
|
+
onDoubleClick?: (state: any) => void;
|
|
686
|
+
onContextMenu?: (state: any) => void;
|
|
687
|
+
labelProps?: default_2.LabelHTMLAttributes<HTMLLabelElement>;
|
|
688
|
+
inputProps?: default_2.InputHTMLAttributes<HTMLInputElement>;
|
|
689
|
+
className?: string;
|
|
690
|
+
defaultChecked?: boolean;
|
|
691
|
+
}
|
|
311
692
|
|
|
312
|
-
declare interface
|
|
693
|
+
declare interface RadioItemProps_2 {
|
|
313
694
|
children?: ReactNode;
|
|
314
695
|
header?: ReactNode;
|
|
315
696
|
onSelect?: (ev: ChangeEvent<HTMLInputElement>, checked: boolean, state: any) => void;
|
|
@@ -326,6 +707,11 @@ export declare const ScrolBarStyle: (props: any) => JSX_2.Element;
|
|
|
326
707
|
|
|
327
708
|
export declare const ScrollArea: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
328
709
|
|
|
710
|
+
export declare interface ScrollAreaProps extends ContainerProps {
|
|
711
|
+
orientation?: 'horizontal' | 'vertical';
|
|
712
|
+
scrollHideDelay?: number;
|
|
713
|
+
}
|
|
714
|
+
|
|
329
715
|
export declare type ShadcnTabsProps = {
|
|
330
716
|
tabs: Tab[];
|
|
331
717
|
onChange?: (tab: Tab, value: string) => void;
|
|
@@ -339,18 +725,66 @@ export declare type ShadcnTabsProps = {
|
|
|
339
725
|
full?: boolean;
|
|
340
726
|
};
|
|
341
727
|
|
|
728
|
+
export declare interface SizeVariants {
|
|
729
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
730
|
+
}
|
|
731
|
+
|
|
342
732
|
export declare const Spinner: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
343
733
|
|
|
344
734
|
export declare const SpinnerDialog: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
345
735
|
|
|
736
|
+
export declare interface SpinnerDialogProps extends SpinnerProps {
|
|
737
|
+
isOpen: boolean;
|
|
738
|
+
onClose?: () => void;
|
|
739
|
+
title?: string;
|
|
740
|
+
message?: string;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export declare interface SpinnerProps {
|
|
744
|
+
variant?: 'blur' | 'primary' | 'white' | 'dark' | 'transparent';
|
|
745
|
+
size?: 'xs' | 'small' | 'large';
|
|
746
|
+
text?: string;
|
|
747
|
+
timeout?: boolean;
|
|
748
|
+
period?: number;
|
|
749
|
+
onAbort?: () => void;
|
|
750
|
+
className?: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
346
753
|
export declare const SplitButton: default_2.MemoExoticComponent<(props: any) => JSX_2.Element>;
|
|
347
754
|
|
|
755
|
+
export declare interface SplitButtonProps extends ButtonProps {
|
|
756
|
+
primaryAction: () => void;
|
|
757
|
+
secondaryActions: Array<{
|
|
758
|
+
label: string;
|
|
759
|
+
action: () => void;
|
|
760
|
+
icon?: default_2.ReactNode;
|
|
761
|
+
}>;
|
|
762
|
+
}
|
|
763
|
+
|
|
348
764
|
export declare const SubHeader: (props: any) => JSX_2.Element;
|
|
349
765
|
|
|
766
|
+
export declare interface SubHeaderProps extends HeadlineProps {
|
|
767
|
+
description?: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
350
770
|
export declare const SwapIconButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
351
771
|
|
|
772
|
+
export declare interface SwapIconButtonProps extends ButtonProps {
|
|
773
|
+
icon1: default_2.ReactNode;
|
|
774
|
+
icon2: default_2.ReactNode;
|
|
775
|
+
state?: boolean;
|
|
776
|
+
onSwap?: (state: boolean) => void;
|
|
777
|
+
}
|
|
778
|
+
|
|
352
779
|
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps2 & default_2.RefAttributes<any>>;
|
|
353
780
|
|
|
781
|
+
export declare interface SwitchProps {
|
|
782
|
+
checked?: boolean;
|
|
783
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
784
|
+
disabled?: boolean;
|
|
785
|
+
className?: string;
|
|
786
|
+
}
|
|
787
|
+
|
|
354
788
|
declare interface SwitchProps2 extends default_2.ComponentPropsWithoutRef {
|
|
355
789
|
onChange?: void;
|
|
356
790
|
label: string;
|
|
@@ -367,7 +801,76 @@ export declare type Tab = {
|
|
|
367
801
|
updateTableRows?: (rows: unknown[]) => void;
|
|
368
802
|
};
|
|
369
803
|
|
|
370
|
-
declare interface
|
|
804
|
+
declare interface Tab_2 {
|
|
805
|
+
value: string;
|
|
806
|
+
label: string;
|
|
807
|
+
content: default_2.ReactNode;
|
|
808
|
+
default?: boolean;
|
|
809
|
+
disabled?: boolean;
|
|
810
|
+
icon?: default_2.ReactNode;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
export declare interface TabItemProps {
|
|
814
|
+
tab: Tab_2;
|
|
815
|
+
isActive?: boolean;
|
|
816
|
+
onClick?: () => void;
|
|
817
|
+
className?: string;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export declare interface TableProps {
|
|
821
|
+
tid: string | number;
|
|
822
|
+
dataset: any[];
|
|
823
|
+
aggrid: AgGridReactProps;
|
|
824
|
+
pageSize: number;
|
|
825
|
+
rowHeight: string;
|
|
826
|
+
tableName: string;
|
|
827
|
+
enablePagination?: boolean;
|
|
828
|
+
enableContextMenu?: boolean;
|
|
829
|
+
rowSelection?: string;
|
|
830
|
+
toolbarBtns?: any[];
|
|
831
|
+
hidden?: any[];
|
|
832
|
+
enableExpand: boolean;
|
|
833
|
+
autoSizeStrategy?: string;
|
|
834
|
+
headerMapper?: Array<{
|
|
835
|
+
key: string;
|
|
836
|
+
value: any;
|
|
837
|
+
}>;
|
|
838
|
+
menuItems?: Array<{
|
|
839
|
+
label: string;
|
|
840
|
+
icon: any;
|
|
841
|
+
action: () => void;
|
|
842
|
+
type: string;
|
|
843
|
+
size: string;
|
|
844
|
+
}>;
|
|
845
|
+
onRowClick?: (params: any, rowData: any, rows: any[]) => void;
|
|
846
|
+
onRowDoubleClicked?: (params: any, rowData: any) => void;
|
|
847
|
+
onCellClick?: (params: any, value: any, field: string) => void;
|
|
848
|
+
onTableBuilt?: (callback: any) => void;
|
|
849
|
+
onExpand?: (params: any) => void;
|
|
850
|
+
onRefresh?: (callback: any) => void;
|
|
851
|
+
onChangeItem: {
|
|
852
|
+
key: string;
|
|
853
|
+
operation: void;
|
|
854
|
+
};
|
|
855
|
+
onChange?: Array<{
|
|
856
|
+
key: string;
|
|
857
|
+
operation: void;
|
|
858
|
+
}>;
|
|
859
|
+
ready?: boolean;
|
|
860
|
+
multiple?: boolean;
|
|
861
|
+
autoHideSpinner?: boolean;
|
|
862
|
+
aggridProps?: Partial<AgGridReactProps>;
|
|
863
|
+
className?: string;
|
|
864
|
+
topbar?: boolean;
|
|
865
|
+
hideFromTable?: any[];
|
|
866
|
+
formater?: any;
|
|
867
|
+
viewAsArray?: any[];
|
|
868
|
+
filter?: any;
|
|
869
|
+
groupBy?: any;
|
|
870
|
+
onMultiRowSelection?: (params: any, rows: any[]) => void;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
declare interface TableProps_2 {
|
|
371
874
|
tid: string | number;
|
|
372
875
|
dataset: any[];
|
|
373
876
|
aggrid: AgGridReactProps;
|
|
@@ -398,6 +901,14 @@ declare interface TableProps {
|
|
|
398
901
|
onTableBuilt?: (callback: any) => void;
|
|
399
902
|
onExpand?: (params: any) => void;
|
|
400
903
|
onRefresh?: (callback: any) => void;
|
|
904
|
+
onChangeItem: {
|
|
905
|
+
key: string;
|
|
906
|
+
operation: void;
|
|
907
|
+
};
|
|
908
|
+
onChange?: {
|
|
909
|
+
key: string;
|
|
910
|
+
operation: void;
|
|
911
|
+
}[];
|
|
401
912
|
ready?: boolean;
|
|
402
913
|
multiple?: boolean;
|
|
403
914
|
autoHideSpinner?: boolean;
|
|
@@ -416,14 +927,57 @@ export declare const Tabs: ForwardRefExoticComponent<ShadcnTabsProps & RefAttrib
|
|
|
416
927
|
|
|
417
928
|
export declare const TextArea: ForwardRefExoticComponent<RefAttributes<unknown>>;
|
|
418
929
|
|
|
930
|
+
export declare interface TextAreaProps extends default_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
931
|
+
placeholder: string;
|
|
932
|
+
rows?: number;
|
|
933
|
+
maxLength?: number;
|
|
934
|
+
showCharacterCount?: boolean;
|
|
935
|
+
}
|
|
936
|
+
|
|
419
937
|
export declare const TinnyHelp: (props: any) => JSX_2.Element;
|
|
420
938
|
|
|
939
|
+
export declare interface TinnyHelpProps {
|
|
940
|
+
info?: string;
|
|
941
|
+
more?: default_2.ReactNode;
|
|
942
|
+
className?: string;
|
|
943
|
+
size?: 'sx' | 'sm' | 'lg';
|
|
944
|
+
}
|
|
945
|
+
|
|
421
946
|
export declare const Toast: ForwardRefExoticComponent<RefAttributes<unknown>>;
|
|
422
947
|
|
|
948
|
+
export declare interface ToastProps {
|
|
949
|
+
item: {
|
|
950
|
+
id: string;
|
|
951
|
+
header: string;
|
|
952
|
+
body: string;
|
|
953
|
+
type: 'alert' | 'error' | 'warning' | 'info' | 'progress' | 'success' | null;
|
|
954
|
+
duration?: number;
|
|
955
|
+
buttons: any[];
|
|
956
|
+
};
|
|
957
|
+
duration?: number;
|
|
958
|
+
}
|
|
959
|
+
|
|
423
960
|
export declare const ToggleGroup: (props: any) => JSX_2.Element;
|
|
424
961
|
|
|
962
|
+
export declare interface ToggleGroupProps {
|
|
963
|
+
value?: string;
|
|
964
|
+
onValueChange?: (value: string) => void;
|
|
965
|
+
children: default_2.ReactNode;
|
|
966
|
+
className?: string;
|
|
967
|
+
orientation?: 'horizontal' | 'vertical';
|
|
968
|
+
size?: 'sm' | 'md' | 'lg';
|
|
969
|
+
}
|
|
970
|
+
|
|
425
971
|
export declare const ToggleItem: (props: any) => JSX_2.Element;
|
|
426
972
|
|
|
973
|
+
export declare interface ToggleItemProps {
|
|
974
|
+
value: string;
|
|
975
|
+
label: string;
|
|
976
|
+
icon?: default_2.ReactNode;
|
|
977
|
+
disabled?: boolean;
|
|
978
|
+
className?: string;
|
|
979
|
+
}
|
|
980
|
+
|
|
427
981
|
export { Tooltip }
|
|
428
982
|
|
|
429
983
|
export declare const useApi: (props: any) => {
|
|
@@ -444,6 +998,13 @@ export declare const useApi: (props: any) => {
|
|
|
444
998
|
};
|
|
445
999
|
};
|
|
446
1000
|
|
|
1001
|
+
export declare interface UseApiReturn {
|
|
1002
|
+
data: any;
|
|
1003
|
+
loading: boolean;
|
|
1004
|
+
error: Error | null;
|
|
1005
|
+
refetch: () => void;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
447
1008
|
export declare function useBoxSize(ref: any): ({
|
|
448
1009
|
y: number;
|
|
449
1010
|
x: number;
|
|
@@ -452,18 +1013,55 @@ y: number;
|
|
|
452
1013
|
x: number;
|
|
453
1014
|
}>>)[];
|
|
454
1015
|
|
|
1016
|
+
export declare interface UseBoxSizeReturn {
|
|
1017
|
+
x: number;
|
|
1018
|
+
y: number;
|
|
1019
|
+
width: number;
|
|
1020
|
+
height: number;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
455
1023
|
export declare const useGeneratedId: (length?: number, beginstr?: boolean, forcss?: boolean) => string;
|
|
456
1024
|
|
|
457
1025
|
export declare const useRandomId: (length?: number) => string;
|
|
458
1026
|
|
|
459
1027
|
export declare const useStore: (props?: {}) => {}[];
|
|
460
1028
|
|
|
1029
|
+
export declare interface UseStoreReturn<T> {
|
|
1030
|
+
state: T;
|
|
1031
|
+
setState: (newState: T | ((prev: T) => T)) => void;
|
|
1032
|
+
reset: () => void;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
461
1035
|
export declare const useVariable: (props?: {}) => {}[];
|
|
462
1036
|
|
|
1037
|
+
export declare interface UseVariableReturn<T> {
|
|
1038
|
+
value: T;
|
|
1039
|
+
setValue: (newValue: T) => void;
|
|
1040
|
+
reset: () => void;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
463
1043
|
export declare const VirtualContainer: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
464
1044
|
|
|
1045
|
+
export declare interface VirtualContainerProps extends ContainerProps {
|
|
1046
|
+
itemCount: number;
|
|
1047
|
+
itemHeight: number;
|
|
1048
|
+
renderItem: (index: number) => default_2.ReactNode;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
465
1051
|
export declare const Whatsnew: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
466
1052
|
|
|
1053
|
+
export declare interface WhatsnewProps {
|
|
1054
|
+
items: Array<{
|
|
1055
|
+
title: string;
|
|
1056
|
+
description: string;
|
|
1057
|
+
image?: string;
|
|
1058
|
+
date: string;
|
|
1059
|
+
version: string;
|
|
1060
|
+
}>;
|
|
1061
|
+
onClose?: () => void;
|
|
1062
|
+
className?: string;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
467
1065
|
|
|
468
1066
|
export * from "lucide-react";
|
|
469
1067
|
|