@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 CHANGED
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ ## 3.5.0
3
+ - Add AreaSelector to navbar (optional). **REQUIRES mesf-core@7d51f66352b48508ddb4efc8f70ff68774df2834**
4
+ ## 3.4.1
5
+ - TreePickerControl receives `inputTitle` as prop
2
6
  ## 2.2.0
3
7
  - Add new callJSON method inside MESApiService
4
8
  ## 2.1.5
@@ -1,4 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import './css/index.css';
3
- declare function MESFMain(props: any): JSX.Element;
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 function Account(): JSX.Element;
2
+ export declare const Account: () => JSX.Element;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export default function Header(): JSX.Element;
2
+ export default function Header({ showAreaSelector }: {
3
+ showAreaSelector?: boolean;
4
+ }): JSX.Element;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const Navigation: () => JSX.Element;
2
+ declare const Navigation: ({ showAreaSelector }: {
3
+ showAreaSelector?: boolean | undefined;
4
+ }) => JSX.Element;
3
5
  export default Navigation;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AreaSelector: () => 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;
@@ -0,0 +1,4 @@
1
+ export declare const useSearchAssets: () => {
2
+ searchAssets: () => void;
3
+ searchAssetExtension: () => void;
4
+ };
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './account';
5
5
  export * from './controls';
6
6
  export * from './MESFMain';
7
7
  export * from './components/modals/modal.mesf';
8
+ export * from './context/userContext';