@abdellatifui/react 3.2.24 → 3.2.27
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.css +1 -1
- package/dist/nextgen.d.ts +54 -23
- package/dist/nextgen.js +6855 -6165
- package/package.json +3 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export declare interface ArrayViewerProps {
|
|
|
126
126
|
header: string;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
declare interface AutocompeleteProps extends InputProps_2 {
|
|
129
|
+
export declare interface AutocompeleteProps extends InputProps_2 {
|
|
130
130
|
onChange?: void;
|
|
131
131
|
options?: object;
|
|
132
132
|
defaultValue?: string;
|
|
@@ -138,18 +138,10 @@ declare interface AutocompeleteProps extends InputProps_2 {
|
|
|
138
138
|
placeholder: string;
|
|
139
139
|
autoScroll: boolean;
|
|
140
140
|
type: string;
|
|
141
|
+
ref: default_2.RefObject<HTMLInputElement>;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
export declare const AutoComplete: default_2.
|
|
144
|
-
|
|
145
|
-
export declare interface AutoCompleteProps extends InputProps {
|
|
146
|
-
options: Array<{
|
|
147
|
-
label: string;
|
|
148
|
-
value: any;
|
|
149
|
-
}>;
|
|
150
|
-
onSelect?: (option: any) => void;
|
|
151
|
-
filterOptions?: boolean;
|
|
152
|
-
}
|
|
144
|
+
export declare const AutoComplete: default_2.MemoExoticComponent<(props: AutocompeleteProps) => JSX.Element>;
|
|
153
145
|
|
|
154
146
|
export declare const BadgeLegend: (props: any) => JSX.Element;
|
|
155
147
|
|
|
@@ -524,6 +516,22 @@ export declare interface MainframeProps {
|
|
|
524
516
|
};
|
|
525
517
|
}
|
|
526
518
|
|
|
519
|
+
declare interface MainframeProps_2 {
|
|
520
|
+
item: {
|
|
521
|
+
id: string;
|
|
522
|
+
header: string;
|
|
523
|
+
body: string;
|
|
524
|
+
type: string | null;
|
|
525
|
+
duration?: number;
|
|
526
|
+
buttons: [];
|
|
527
|
+
onLoad: () => void;
|
|
528
|
+
onAfterLoad: () => void;
|
|
529
|
+
toastId: string;
|
|
530
|
+
};
|
|
531
|
+
duration?: number;
|
|
532
|
+
ref: React.RefObject;
|
|
533
|
+
}
|
|
534
|
+
|
|
527
535
|
export declare const MainHeader: (props: any) => JSX.Element;
|
|
528
536
|
|
|
529
537
|
export declare interface MainHeaderProps extends HeadlineProps {
|
|
@@ -593,10 +601,14 @@ declare interface ModelProps_2 {
|
|
|
593
601
|
variant?: "transparent" | "blur" | "dimmed";
|
|
594
602
|
inline?: boolean;
|
|
595
603
|
hideOnContextMenu?: boolean;
|
|
596
|
-
|
|
604
|
+
onClick?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
|
|
597
605
|
blur?: boolean;
|
|
598
606
|
container?: MutableRefObject<HTMLDivElement>;
|
|
599
607
|
onChange?: ({}: {}) => void;
|
|
608
|
+
onClose?: ({}: {}) => void;
|
|
609
|
+
onOpen?: ({}: {}) => void;
|
|
610
|
+
closeDelay?: number;
|
|
611
|
+
animationDuration?: number;
|
|
600
612
|
}
|
|
601
613
|
|
|
602
614
|
export declare const MuiTable: (props: any) => JSX.Element;
|
|
@@ -702,6 +714,7 @@ declare type NetworkMapProps_2 = {
|
|
|
702
714
|
className: string;
|
|
703
715
|
hideLinksOnDrag: boolean;
|
|
704
716
|
showHoveredLinksOnly: boolean;
|
|
717
|
+
loadSavedPreferences: boolean;
|
|
705
718
|
showGoNodeControlButton: boolean;
|
|
706
719
|
draggingMode: boolean;
|
|
707
720
|
maxZoomOutForLinkCount: number;
|
|
@@ -792,6 +805,7 @@ export declare interface NodeParams {
|
|
|
792
805
|
lng: number;
|
|
793
806
|
lat: number;
|
|
794
807
|
details?: Record<string, any>;
|
|
808
|
+
groups: Array<string>;
|
|
795
809
|
}
|
|
796
810
|
|
|
797
811
|
export declare interface NodeTemplate {
|
|
@@ -799,6 +813,7 @@ export declare interface NodeTemplate {
|
|
|
799
813
|
color: string;
|
|
800
814
|
elementId: string;
|
|
801
815
|
details: Record<string, any>;
|
|
816
|
+
groups: Array<string>;
|
|
802
817
|
location: {
|
|
803
818
|
lng: number;
|
|
804
819
|
lat: number;
|
|
@@ -817,6 +832,7 @@ declare interface NotifyProps_2 {
|
|
|
817
832
|
spinnerProps?: SpinnerProps;
|
|
818
833
|
alertProps?: AlertProps_2;
|
|
819
834
|
toastProps?: ToastProps;
|
|
835
|
+
onLoad?: () => void;
|
|
820
836
|
}
|
|
821
837
|
|
|
822
838
|
export declare const Panel: (props: PanelProps_2) => JSX.Element;
|
|
@@ -990,7 +1006,9 @@ declare interface SidebarProps_2 {
|
|
|
990
1006
|
modelProps?: SidebarModelProps_2;
|
|
991
1007
|
className?: string;
|
|
992
1008
|
style?: default_2.CSSProperties;
|
|
993
|
-
ref?: default_2.RefObject
|
|
1009
|
+
ref?: default_2.RefObject;
|
|
1010
|
+
container: default_2.RefObject;
|
|
1011
|
+
animationPeriod?: number;
|
|
994
1012
|
}
|
|
995
1013
|
|
|
996
1014
|
export declare type SidebarVariant = 'default';
|
|
@@ -1052,7 +1070,7 @@ export declare interface SwapIconButtonProps extends ButtonProps {
|
|
|
1052
1070
|
onSwap?: (state: boolean) => void;
|
|
1053
1071
|
}
|
|
1054
1072
|
|
|
1055
|
-
export declare const Switch:
|
|
1073
|
+
export declare const Switch: (props: any) => JSX.Element;
|
|
1056
1074
|
|
|
1057
1075
|
export declare interface SwitchProps {
|
|
1058
1076
|
checked?: boolean;
|
|
@@ -1061,12 +1079,6 @@ export declare interface SwitchProps {
|
|
|
1061
1079
|
className?: string;
|
|
1062
1080
|
}
|
|
1063
1081
|
|
|
1064
|
-
declare interface SwitchProps2 extends default_2.ComponentPropsWithoutRef {
|
|
1065
|
-
onChange?: void;
|
|
1066
|
-
label: string;
|
|
1067
|
-
defaultChecked: boolean;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
1082
|
export declare type Tab = {
|
|
1071
1083
|
label: string;
|
|
1072
1084
|
value: string;
|
|
@@ -1244,7 +1256,7 @@ export declare interface TinnyHelpProps {
|
|
|
1244
1256
|
description: string;
|
|
1245
1257
|
}
|
|
1246
1258
|
|
|
1247
|
-
export declare const Toast:
|
|
1259
|
+
export declare const Toast: (props: MainframeProps_2) => JSX.Element;
|
|
1248
1260
|
|
|
1249
1261
|
export declare interface ToastProps {
|
|
1250
1262
|
item: {
|
|
@@ -1296,13 +1308,13 @@ export declare interface TooltipProps {
|
|
|
1296
1308
|
variant?: 'primary' | 'secondary' | 'outline';
|
|
1297
1309
|
}
|
|
1298
1310
|
|
|
1299
|
-
export declare const useApi: (props:
|
|
1311
|
+
export declare const useApi: (props: UseApiProps) => {
|
|
1300
1312
|
ready: boolean;
|
|
1301
1313
|
socketioConnected: boolean;
|
|
1302
1314
|
connected: boolean;
|
|
1303
1315
|
csid: string;
|
|
1304
1316
|
pool: RefObject<any[]>;
|
|
1305
|
-
props:
|
|
1317
|
+
props: UseApiProps;
|
|
1306
1318
|
create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
1307
1319
|
defaults: Omit<AxiosDefaults, "headers"> & {
|
|
1308
1320
|
headers: HeadersDefaults & {
|
|
@@ -1315,6 +1327,25 @@ export declare const useApi: (props: any) => {
|
|
|
1315
1327
|
};
|
|
1316
1328
|
};
|
|
1317
1329
|
|
|
1330
|
+
export declare interface UseApiProps {
|
|
1331
|
+
baseUrl?: string;
|
|
1332
|
+
token?: string;
|
|
1333
|
+
pushToast?: boolean;
|
|
1334
|
+
spinner?: boolean;
|
|
1335
|
+
debug?: boolean;
|
|
1336
|
+
config?: any;
|
|
1337
|
+
socketioParams?: any;
|
|
1338
|
+
headers?: any;
|
|
1339
|
+
socketio?: boolean;
|
|
1340
|
+
onSuccess?: any;
|
|
1341
|
+
onFail?: any;
|
|
1342
|
+
onComplete?: any;
|
|
1343
|
+
onRequest?: any;
|
|
1344
|
+
onFailureRule?: any;
|
|
1345
|
+
socketBaseUrl?: string;
|
|
1346
|
+
notifyListen?: boolean;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1318
1349
|
export declare interface UseApiReturn {
|
|
1319
1350
|
data: any;
|
|
1320
1351
|
loading: boolean;
|