@dexteel/mesf-core 3.4.0 → 3.5.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/CHANGELOG.md +4 -0
- package/dist/MESFMain.d.ts +8 -1
- package/dist/account/account.d.ts +1 -1
- package/dist/components/navigation/Header.d.ts +3 -1
- package/dist/components/navigation/Navigation.d.ts +3 -1
- package/dist/components/navigation/areaSelector/area-selector.d.ts +2 -0
- package/dist/components/navigation/hooks/useDefaultAreaId.d.ts +1 -0
- package/dist/context/userContext.d.ts +82 -0
- package/dist/hooks/useSearchAssets.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +508 -182
- package/dist/models/Area.d.ts +4 -0
- package/dist/models/Asset.d.ts +6 -0
- package/dist/reducers/UserReducer.d.ts +77 -0
- package/dist/repositorie/MESF-frontend-Repositorie.d.ts +45 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/MESFMain.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './css/index.css';
|
|
3
|
-
|
|
3
|
+
interface Props {
|
|
4
|
+
authentication: any;
|
|
5
|
+
routes: any;
|
|
6
|
+
navbar: any;
|
|
7
|
+
configurations: any;
|
|
8
|
+
showAreaSelector?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function MESFMain({ authentication, routes, navbar, configurations, showAreaSelector }: Props): JSX.Element;
|
|
4
11
|
export { MESFMain };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare
|
|
2
|
+
export declare const Account: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDefaultAreaId: () => () => void;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useUserContext: () => {
|
|
3
|
+
state: {
|
|
4
|
+
userLastName: string;
|
|
5
|
+
userId: number | null;
|
|
6
|
+
defaultAreaId: string | number | null;
|
|
7
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
8
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
9
|
+
areasList: any[];
|
|
10
|
+
};
|
|
11
|
+
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
12
|
+
setUserId(state: import("immer/dist/internal").WritableDraft<{
|
|
13
|
+
userLastName: string;
|
|
14
|
+
userId: number | null;
|
|
15
|
+
defaultAreaId: string | number | null;
|
|
16
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
17
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
18
|
+
areasList: any[];
|
|
19
|
+
}>, { payload }: {
|
|
20
|
+
payload: any;
|
|
21
|
+
type: string;
|
|
22
|
+
}): void;
|
|
23
|
+
setUserLastName(state: import("immer/dist/internal").WritableDraft<{
|
|
24
|
+
userLastName: string;
|
|
25
|
+
userId: number | null;
|
|
26
|
+
defaultAreaId: string | number | null;
|
|
27
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
28
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
29
|
+
areasList: any[];
|
|
30
|
+
}>, { payload }: {
|
|
31
|
+
payload: any;
|
|
32
|
+
type: string;
|
|
33
|
+
}): void;
|
|
34
|
+
setDefaultAreaId(state: import("immer/dist/internal").WritableDraft<{
|
|
35
|
+
userLastName: string;
|
|
36
|
+
userId: number | null;
|
|
37
|
+
defaultAreaId: string | number | null;
|
|
38
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
39
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
40
|
+
areasList: any[];
|
|
41
|
+
}>, { payload }: {
|
|
42
|
+
payload: any;
|
|
43
|
+
type: string;
|
|
44
|
+
}): void;
|
|
45
|
+
setListAllAssets(state: import("immer/dist/internal").WritableDraft<{
|
|
46
|
+
userLastName: string;
|
|
47
|
+
userId: number | null;
|
|
48
|
+
defaultAreaId: string | number | null;
|
|
49
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
50
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
51
|
+
areasList: any[];
|
|
52
|
+
}>, { payload }: {
|
|
53
|
+
payload: any;
|
|
54
|
+
type: string;
|
|
55
|
+
}): void;
|
|
56
|
+
setListAllAssetsExtensions(state: import("immer/dist/internal").WritableDraft<{
|
|
57
|
+
userLastName: string;
|
|
58
|
+
userId: number | null;
|
|
59
|
+
defaultAreaId: string | number | null;
|
|
60
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
61
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
62
|
+
areasList: any[];
|
|
63
|
+
}>, { payload }: {
|
|
64
|
+
payload: any;
|
|
65
|
+
type: string;
|
|
66
|
+
}): void;
|
|
67
|
+
setAreasList(state: import("immer/dist/internal").WritableDraft<{
|
|
68
|
+
userLastName: string;
|
|
69
|
+
userId: number | null;
|
|
70
|
+
defaultAreaId: string | number | null;
|
|
71
|
+
listAllAssets: import("../models/Asset").Asset[];
|
|
72
|
+
listAllAssetsExtensions: import("../models/Area").Area[];
|
|
73
|
+
areasList: any[];
|
|
74
|
+
}>, { payload }: {
|
|
75
|
+
payload: any;
|
|
76
|
+
type: string;
|
|
77
|
+
}): void;
|
|
78
|
+
}, "__">;
|
|
79
|
+
};
|
|
80
|
+
export declare const UserProvider: ({ children }: {
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}) => JSX.Element;
|
package/dist/index.d.ts
CHANGED