@abdellatifui/react 3.2.26 → 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 +52 -22
- package/dist/nextgen.js +6846 -6170
- 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;
|
|
@@ -143,15 +143,6 @@ declare interface AutocompeleteProps extends InputProps_2 {
|
|
|
143
143
|
|
|
144
144
|
export declare const AutoComplete: default_2.MemoExoticComponent<(props: AutocompeleteProps) => JSX.Element>;
|
|
145
145
|
|
|
146
|
-
export declare interface AutoCompleteProps extends InputProps {
|
|
147
|
-
options: Array<{
|
|
148
|
-
label: string;
|
|
149
|
-
value: any;
|
|
150
|
-
}>;
|
|
151
|
-
onSelect?: (option: any) => void;
|
|
152
|
-
filterOptions?: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
146
|
export declare const BadgeLegend: (props: any) => JSX.Element;
|
|
156
147
|
|
|
157
148
|
declare const Body_2: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
|
|
@@ -525,6 +516,22 @@ export declare interface MainframeProps {
|
|
|
525
516
|
};
|
|
526
517
|
}
|
|
527
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
|
+
|
|
528
535
|
export declare const MainHeader: (props: any) => JSX.Element;
|
|
529
536
|
|
|
530
537
|
export declare interface MainHeaderProps extends HeadlineProps {
|
|
@@ -594,10 +601,14 @@ declare interface ModelProps_2 {
|
|
|
594
601
|
variant?: "transparent" | "blur" | "dimmed";
|
|
595
602
|
inline?: boolean;
|
|
596
603
|
hideOnContextMenu?: boolean;
|
|
597
|
-
|
|
604
|
+
onClick?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
|
|
598
605
|
blur?: boolean;
|
|
599
606
|
container?: MutableRefObject<HTMLDivElement>;
|
|
600
607
|
onChange?: ({}: {}) => void;
|
|
608
|
+
onClose?: ({}: {}) => void;
|
|
609
|
+
onOpen?: ({}: {}) => void;
|
|
610
|
+
closeDelay?: number;
|
|
611
|
+
animationDuration?: number;
|
|
601
612
|
}
|
|
602
613
|
|
|
603
614
|
export declare const MuiTable: (props: any) => JSX.Element;
|
|
@@ -703,6 +714,7 @@ declare type NetworkMapProps_2 = {
|
|
|
703
714
|
className: string;
|
|
704
715
|
hideLinksOnDrag: boolean;
|
|
705
716
|
showHoveredLinksOnly: boolean;
|
|
717
|
+
loadSavedPreferences: boolean;
|
|
706
718
|
showGoNodeControlButton: boolean;
|
|
707
719
|
draggingMode: boolean;
|
|
708
720
|
maxZoomOutForLinkCount: number;
|
|
@@ -793,6 +805,7 @@ export declare interface NodeParams {
|
|
|
793
805
|
lng: number;
|
|
794
806
|
lat: number;
|
|
795
807
|
details?: Record<string, any>;
|
|
808
|
+
groups: Array<string>;
|
|
796
809
|
}
|
|
797
810
|
|
|
798
811
|
export declare interface NodeTemplate {
|
|
@@ -800,6 +813,7 @@ export declare interface NodeTemplate {
|
|
|
800
813
|
color: string;
|
|
801
814
|
elementId: string;
|
|
802
815
|
details: Record<string, any>;
|
|
816
|
+
groups: Array<string>;
|
|
803
817
|
location: {
|
|
804
818
|
lng: number;
|
|
805
819
|
lat: number;
|
|
@@ -818,6 +832,7 @@ declare interface NotifyProps_2 {
|
|
|
818
832
|
spinnerProps?: SpinnerProps;
|
|
819
833
|
alertProps?: AlertProps_2;
|
|
820
834
|
toastProps?: ToastProps;
|
|
835
|
+
onLoad?: () => void;
|
|
821
836
|
}
|
|
822
837
|
|
|
823
838
|
export declare const Panel: (props: PanelProps_2) => JSX.Element;
|
|
@@ -991,7 +1006,9 @@ declare interface SidebarProps_2 {
|
|
|
991
1006
|
modelProps?: SidebarModelProps_2;
|
|
992
1007
|
className?: string;
|
|
993
1008
|
style?: default_2.CSSProperties;
|
|
994
|
-
ref?: default_2.RefObject
|
|
1009
|
+
ref?: default_2.RefObject;
|
|
1010
|
+
container: default_2.RefObject;
|
|
1011
|
+
animationPeriod?: number;
|
|
995
1012
|
}
|
|
996
1013
|
|
|
997
1014
|
export declare type SidebarVariant = 'default';
|
|
@@ -1053,7 +1070,7 @@ export declare interface SwapIconButtonProps extends ButtonProps {
|
|
|
1053
1070
|
onSwap?: (state: boolean) => void;
|
|
1054
1071
|
}
|
|
1055
1072
|
|
|
1056
|
-
export declare const Switch:
|
|
1073
|
+
export declare const Switch: (props: any) => JSX.Element;
|
|
1057
1074
|
|
|
1058
1075
|
export declare interface SwitchProps {
|
|
1059
1076
|
checked?: boolean;
|
|
@@ -1062,12 +1079,6 @@ export declare interface SwitchProps {
|
|
|
1062
1079
|
className?: string;
|
|
1063
1080
|
}
|
|
1064
1081
|
|
|
1065
|
-
declare interface SwitchProps2 extends default_2.ComponentPropsWithoutRef {
|
|
1066
|
-
onChange?: void;
|
|
1067
|
-
label: string;
|
|
1068
|
-
defaultChecked: boolean;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
1082
|
export declare type Tab = {
|
|
1072
1083
|
label: string;
|
|
1073
1084
|
value: string;
|
|
@@ -1245,7 +1256,7 @@ export declare interface TinnyHelpProps {
|
|
|
1245
1256
|
description: string;
|
|
1246
1257
|
}
|
|
1247
1258
|
|
|
1248
|
-
export declare const Toast:
|
|
1259
|
+
export declare const Toast: (props: MainframeProps_2) => JSX.Element;
|
|
1249
1260
|
|
|
1250
1261
|
export declare interface ToastProps {
|
|
1251
1262
|
item: {
|
|
@@ -1297,13 +1308,13 @@ export declare interface TooltipProps {
|
|
|
1297
1308
|
variant?: 'primary' | 'secondary' | 'outline';
|
|
1298
1309
|
}
|
|
1299
1310
|
|
|
1300
|
-
export declare const useApi: (props:
|
|
1311
|
+
export declare const useApi: (props: UseApiProps) => {
|
|
1301
1312
|
ready: boolean;
|
|
1302
1313
|
socketioConnected: boolean;
|
|
1303
1314
|
connected: boolean;
|
|
1304
1315
|
csid: string;
|
|
1305
1316
|
pool: RefObject<any[]>;
|
|
1306
|
-
props:
|
|
1317
|
+
props: UseApiProps;
|
|
1307
1318
|
create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
1308
1319
|
defaults: Omit<AxiosDefaults, "headers"> & {
|
|
1309
1320
|
headers: HeadersDefaults & {
|
|
@@ -1316,6 +1327,25 @@ export declare const useApi: (props: any) => {
|
|
|
1316
1327
|
};
|
|
1317
1328
|
};
|
|
1318
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
|
+
|
|
1319
1349
|
export declare interface UseApiReturn {
|
|
1320
1350
|
data: any;
|
|
1321
1351
|
loading: boolean;
|