@dexteel/mesf-core 3.6.5 → 3.7.1
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/context/assetContext.d.ts +26 -0
- package/dist/context/userContext.d.ts +0 -72
- package/dist/hooks/useSearchAssets.d.ts +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.esm.js +4426 -4436
- package/dist/models/Asset.d.ts +2 -1
- package/dist/reducers/AssetReducer.d.ts +20 -0
- package/dist/reducers/UserReducer.d.ts +0 -73
- package/dist/repositorie/MESF-frontend-Repositorie.d.ts +1 -1
- package/package.json +1 -1
- package/dist/models/Area.d.ts +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useAssetContext: () => {
|
|
3
|
+
state: {
|
|
4
|
+
areasList: import("../models/Asset").Asset[];
|
|
5
|
+
allAssets: import("../models/Asset").Asset[];
|
|
6
|
+
};
|
|
7
|
+
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
8
|
+
setAreasList(state: import("immer/dist/internal").WritableDraft<{
|
|
9
|
+
areasList: import("../models/Asset").Asset[];
|
|
10
|
+
allAssets: import("../models/Asset").Asset[];
|
|
11
|
+
}>, { payload }: {
|
|
12
|
+
payload: any;
|
|
13
|
+
type: string;
|
|
14
|
+
}): void;
|
|
15
|
+
setAllAssets(state: import("immer/dist/internal").WritableDraft<{
|
|
16
|
+
areasList: import("../models/Asset").Asset[];
|
|
17
|
+
allAssets: import("../models/Asset").Asset[];
|
|
18
|
+
}>, { payload }: {
|
|
19
|
+
payload: any;
|
|
20
|
+
type: string;
|
|
21
|
+
}): void;
|
|
22
|
+
}, "__">;
|
|
23
|
+
};
|
|
24
|
+
export declare const AssetProvider: ({ children }: {
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}) => JSX.Element;
|
|
@@ -5,10 +5,6 @@ export declare const useUserContext: () => {
|
|
|
5
5
|
userId: number | null;
|
|
6
6
|
defaultAreaId: string | number | null;
|
|
7
7
|
defaultAreaName: string | null;
|
|
8
|
-
defaultTreeId: string | number | null;
|
|
9
|
-
defaultTreeName: string | null;
|
|
10
|
-
areasList: import("../models/Area").Area[];
|
|
11
|
-
treeIdChanged: boolean;
|
|
12
8
|
};
|
|
13
9
|
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
14
10
|
setUserId(state: import("immer/dist/internal").WritableDraft<{
|
|
@@ -16,10 +12,6 @@ export declare const useUserContext: () => {
|
|
|
16
12
|
userId: number | null;
|
|
17
13
|
defaultAreaId: string | number | null;
|
|
18
14
|
defaultAreaName: string | null;
|
|
19
|
-
defaultTreeId: string | number | null;
|
|
20
|
-
defaultTreeName: string | null;
|
|
21
|
-
areasList: import("../models/Area").Area[];
|
|
22
|
-
treeIdChanged: boolean;
|
|
23
15
|
}>, { payload }: {
|
|
24
16
|
payload: any;
|
|
25
17
|
type: string;
|
|
@@ -29,10 +21,6 @@ export declare const useUserContext: () => {
|
|
|
29
21
|
userId: number | null;
|
|
30
22
|
defaultAreaId: string | number | null;
|
|
31
23
|
defaultAreaName: string | null;
|
|
32
|
-
defaultTreeId: string | number | null;
|
|
33
|
-
defaultTreeName: string | null;
|
|
34
|
-
areasList: import("../models/Area").Area[];
|
|
35
|
-
treeIdChanged: boolean;
|
|
36
24
|
}>, { payload }: {
|
|
37
25
|
payload: any;
|
|
38
26
|
type: string;
|
|
@@ -42,10 +30,6 @@ export declare const useUserContext: () => {
|
|
|
42
30
|
userId: number | null;
|
|
43
31
|
defaultAreaId: string | number | null;
|
|
44
32
|
defaultAreaName: string | null;
|
|
45
|
-
defaultTreeId: string | number | null;
|
|
46
|
-
defaultTreeName: string | null;
|
|
47
|
-
areasList: import("../models/Area").Area[];
|
|
48
|
-
treeIdChanged: boolean;
|
|
49
33
|
}>, { payload }: {
|
|
50
34
|
payload: any;
|
|
51
35
|
type: string;
|
|
@@ -55,62 +39,6 @@ export declare const useUserContext: () => {
|
|
|
55
39
|
userId: number | null;
|
|
56
40
|
defaultAreaId: string | number | null;
|
|
57
41
|
defaultAreaName: string | null;
|
|
58
|
-
defaultTreeId: string | number | null;
|
|
59
|
-
defaultTreeName: string | null;
|
|
60
|
-
areasList: import("../models/Area").Area[];
|
|
61
|
-
treeIdChanged: boolean;
|
|
62
|
-
}>, { payload }: {
|
|
63
|
-
payload: any;
|
|
64
|
-
type: string;
|
|
65
|
-
}): void;
|
|
66
|
-
setDefaultTreeId(state: import("immer/dist/internal").WritableDraft<{
|
|
67
|
-
userLastName: string;
|
|
68
|
-
userId: number | null;
|
|
69
|
-
defaultAreaId: string | number | null;
|
|
70
|
-
defaultAreaName: string | null;
|
|
71
|
-
defaultTreeId: string | number | null;
|
|
72
|
-
defaultTreeName: string | null;
|
|
73
|
-
areasList: import("../models/Area").Area[];
|
|
74
|
-
treeIdChanged: boolean;
|
|
75
|
-
}>, { payload }: {
|
|
76
|
-
payload: any;
|
|
77
|
-
type: string;
|
|
78
|
-
}): void;
|
|
79
|
-
setDefaultTreeName(state: import("immer/dist/internal").WritableDraft<{
|
|
80
|
-
userLastName: string;
|
|
81
|
-
userId: number | null;
|
|
82
|
-
defaultAreaId: string | number | null;
|
|
83
|
-
defaultAreaName: string | null;
|
|
84
|
-
defaultTreeId: string | number | null;
|
|
85
|
-
defaultTreeName: string | null;
|
|
86
|
-
areasList: import("../models/Area").Area[];
|
|
87
|
-
treeIdChanged: boolean;
|
|
88
|
-
}>, { payload }: {
|
|
89
|
-
payload: any;
|
|
90
|
-
type: string;
|
|
91
|
-
}): void;
|
|
92
|
-
setTreeIdChanged(state: import("immer/dist/internal").WritableDraft<{
|
|
93
|
-
userLastName: string;
|
|
94
|
-
userId: number | null;
|
|
95
|
-
defaultAreaId: string | number | null;
|
|
96
|
-
defaultAreaName: string | null;
|
|
97
|
-
defaultTreeId: string | number | null;
|
|
98
|
-
defaultTreeName: string | null;
|
|
99
|
-
areasList: import("../models/Area").Area[];
|
|
100
|
-
treeIdChanged: boolean;
|
|
101
|
-
}>, { payload }: {
|
|
102
|
-
payload: any;
|
|
103
|
-
type: string;
|
|
104
|
-
}): void;
|
|
105
|
-
setAreasList(state: import("immer/dist/internal").WritableDraft<{
|
|
106
|
-
userLastName: string;
|
|
107
|
-
userId: number | null;
|
|
108
|
-
defaultAreaId: string | number | null;
|
|
109
|
-
defaultAreaName: string | null;
|
|
110
|
-
defaultTreeId: string | number | null;
|
|
111
|
-
defaultTreeName: string | null;
|
|
112
|
-
areasList: import("../models/Area").Area[];
|
|
113
|
-
treeIdChanged: boolean;
|
|
114
42
|
}>, { payload }: {
|
|
115
43
|
payload: any;
|
|
116
44
|
type: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./account";
|
|
2
|
+
export * from "./components/modals/modal.mesf";
|
|
3
|
+
export * from "./configuration";
|
|
4
|
+
export * from "./context/assetContext";
|
|
5
|
+
export * from "./context/userContext";
|
|
6
|
+
export * from "./controls";
|
|
7
|
+
export * from "./MESFMain";
|
|
8
|
+
export * from "./services";
|
|
9
|
+
export * from "./utils";
|