@dexteel/mesf-core 3.6.0 → 3.6.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 +6 -0
- package/dist/account/AuthProvider.d.ts +3 -3
- package/dist/account/models/login.models.d.ts +3 -3
- package/dist/configuration/pages/job/JobsPage.d.ts +1 -1
- package/dist/configuration/pages/job/components/JobsTable/customHooks/TableDataJobs/useJobsTableData.d.ts +1 -1
- package/dist/configuration/pages/job/index.d.ts +1 -1
- package/dist/configuration/pages/log/LogsPage.d.ts +1 -1
- package/dist/configuration/pages/log/components/Filters/codeFilter.d.ts +1 -1
- package/dist/configuration/pages/log/components/Filters/dateFilter.d.ts +1 -1
- package/dist/configuration/pages/log/components/Filters/searchFilter.d.ts +1 -1
- package/dist/configuration/pages/log/components/ModalLogSelected/ModalLogSelected.d.ts +1 -1
- package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +1 -1
- package/dist/configuration/pages/log/index.d.ts +1 -1
- package/dist/configuration/pages/profiles/ProfilesPage.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/Create/CreateProfile.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/Delete/DeleteProfile.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/Edit/EditProfile.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useGetPermissionsEffect.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useHandleAsignedPermission.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useIsPermissionInherited.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Pickers/PermissionsPicker.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +1 -1
- package/dist/configuration/pages/profiles/components/common/hooks/useGetColorByPermissionId.d.ts +1 -1
- package/dist/configuration/pages/profiles/index.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/index.d.ts +1 -1
- package/dist/configuration/pages/users/UsersPage.d.ts +1 -1
- package/dist/configuration/pages/users/components/ChangePassword/ChangePassword.d.ts +1 -1
- package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +1 -1
- package/dist/configuration/pages/users/components/Delete/DeleteUser.d.ts +1 -1
- package/dist/configuration/pages/users/components/EditUser/EditUser.d.ts +1 -1
- package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +1 -1
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +1 -1
- package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +1 -1
- package/dist/configuration/pages/users/index.d.ts +1 -1
- package/dist/configurationMenu.d.ts +2 -2
- package/dist/context/userContext.d.ts +63 -23
- package/dist/controls/filters/filters.d.ts +2 -2
- package/dist/controls/panels.d.ts +4 -4
- package/dist/services/ApiService.d.ts +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
|
+
## 3.6.1
|
|
3
|
+
- Fix exports of UserReducer by updating Typescript version
|
|
4
|
+
## 3.6.0
|
|
5
|
+
- For AreaSelector in Navbar:
|
|
6
|
+
- Replace usage of SP when getting Areas and expose DefaultTreeId state
|
|
7
|
+
- Fix some styling of nabvar
|
|
2
8
|
## 3.5.1-2
|
|
3
9
|
- Change Area to Area name in navbar
|
|
4
10
|
## 3.5.0
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const AuthContext: React.Context<any>;
|
|
3
|
-
export
|
|
3
|
+
export type AuthConfig = {
|
|
4
4
|
guestIsEnabled: boolean;
|
|
5
5
|
useEmailAndPassword: boolean;
|
|
6
6
|
useAzureAD: boolean;
|
|
7
7
|
AzureConfig: AzureConfig;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AzureConfig = {
|
|
10
10
|
clientId: string;
|
|
11
11
|
authority: string;
|
|
12
12
|
redirectUri: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type AuthProviderProps = {
|
|
15
15
|
children: any;
|
|
16
16
|
authConfig: AuthConfig;
|
|
17
17
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AuthConfig } from "../AuthProvider";
|
|
2
|
-
export
|
|
2
|
+
export type LoginParams = {
|
|
3
3
|
setToken?: Function;
|
|
4
4
|
authConfig: AuthConfig;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
type Permission = string;
|
|
7
|
+
export type UserMESData = {
|
|
8
8
|
id: number;
|
|
9
9
|
firstName: string;
|
|
10
10
|
lastName: string;
|
package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridColDef } from "@material-ui/data-grid";
|
|
2
2
|
import { Profile } from '../../../models/Profile';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
setProfileForEdit: (profile: Profile) => void;
|
|
5
5
|
setModalEditPermissionsProfile: (showModal: boolean) => void;
|
|
6
6
|
setProfileForDelete: (profile: Profile) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
type SectionComponent = {
|
|
3
3
|
path: string;
|
|
4
4
|
sidebar: React.FunctionComponent;
|
|
5
5
|
main: React.FunctionComponent;
|
|
@@ -9,7 +9,7 @@ export interface SidebarType extends React.FunctionComponent<{
|
|
|
9
9
|
option?: string;
|
|
10
10
|
}> {
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type ConfigurationsType = [
|
|
13
13
|
SectionComponent[],
|
|
14
14
|
SidebarType
|
|
15
15
|
];
|
|
@@ -4,18 +4,22 @@ export declare const useUserContext: () => {
|
|
|
4
4
|
userLastName: string;
|
|
5
5
|
userId: number | null;
|
|
6
6
|
defaultAreaId: string | number | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
defaultAreaName: string | null;
|
|
8
|
+
defaultTreeId: string | number | null;
|
|
9
|
+
defaultTreeName: string | null;
|
|
10
|
+
areasList: import("../models/Area").Area[];
|
|
11
|
+
treeIdChanged: boolean;
|
|
10
12
|
};
|
|
11
13
|
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
12
14
|
setUserId(state: import("immer/dist/internal").WritableDraft<{
|
|
13
15
|
userLastName: string;
|
|
14
16
|
userId: number | null;
|
|
15
17
|
defaultAreaId: string | number | null;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
defaultAreaName: string | null;
|
|
19
|
+
defaultTreeId: string | number | null;
|
|
20
|
+
defaultTreeName: string | null;
|
|
21
|
+
areasList: import("../models/Area").Area[];
|
|
22
|
+
treeIdChanged: boolean;
|
|
19
23
|
}>, { payload }: {
|
|
20
24
|
payload: any;
|
|
21
25
|
type: string;
|
|
@@ -24,9 +28,11 @@ export declare const useUserContext: () => {
|
|
|
24
28
|
userLastName: string;
|
|
25
29
|
userId: number | null;
|
|
26
30
|
defaultAreaId: string | number | null;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
defaultAreaName: string | null;
|
|
32
|
+
defaultTreeId: string | number | null;
|
|
33
|
+
defaultTreeName: string | null;
|
|
34
|
+
areasList: import("../models/Area").Area[];
|
|
35
|
+
treeIdChanged: boolean;
|
|
30
36
|
}>, { payload }: {
|
|
31
37
|
payload: any;
|
|
32
38
|
type: string;
|
|
@@ -35,31 +41,63 @@ export declare const useUserContext: () => {
|
|
|
35
41
|
userLastName: string;
|
|
36
42
|
userId: number | null;
|
|
37
43
|
defaultAreaId: string | number | null;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
defaultAreaName: string | null;
|
|
45
|
+
defaultTreeId: string | number | null;
|
|
46
|
+
defaultTreeName: string | null;
|
|
47
|
+
areasList: import("../models/Area").Area[];
|
|
48
|
+
treeIdChanged: boolean;
|
|
41
49
|
}>, { payload }: {
|
|
42
50
|
payload: any;
|
|
43
51
|
type: string;
|
|
44
52
|
}): void;
|
|
45
|
-
|
|
53
|
+
setDefaultAreaName(state: import("immer/dist/internal").WritableDraft<{
|
|
46
54
|
userLastName: string;
|
|
47
55
|
userId: number | null;
|
|
48
56
|
defaultAreaId: string | number | null;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
defaultAreaName: string | null;
|
|
58
|
+
defaultTreeId: string | number | null;
|
|
59
|
+
defaultTreeName: string | null;
|
|
60
|
+
areasList: import("../models/Area").Area[];
|
|
61
|
+
treeIdChanged: boolean;
|
|
52
62
|
}>, { payload }: {
|
|
53
63
|
payload: any;
|
|
54
64
|
type: string;
|
|
55
65
|
}): void;
|
|
56
|
-
|
|
66
|
+
setDefaultTreeId(state: import("immer/dist/internal").WritableDraft<{
|
|
57
67
|
userLastName: string;
|
|
58
68
|
userId: number | null;
|
|
59
69
|
defaultAreaId: string | number | null;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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;
|
|
63
101
|
}>, { payload }: {
|
|
64
102
|
payload: any;
|
|
65
103
|
type: string;
|
|
@@ -68,9 +106,11 @@ export declare const useUserContext: () => {
|
|
|
68
106
|
userLastName: string;
|
|
69
107
|
userId: number | null;
|
|
70
108
|
defaultAreaId: string | number | null;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
109
|
+
defaultAreaName: string | null;
|
|
110
|
+
defaultTreeId: string | number | null;
|
|
111
|
+
defaultTreeName: string | null;
|
|
112
|
+
areasList: import("../models/Area").Area[];
|
|
113
|
+
treeIdChanged: boolean;
|
|
74
114
|
}>, { payload }: {
|
|
75
115
|
payload: any;
|
|
76
116
|
type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from "react";
|
|
2
|
-
|
|
2
|
+
type TreePickerControlProps = {
|
|
3
3
|
onSelect: (value: string, description: string, findNode: any) => void;
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
@@ -11,7 +11,7 @@ export declare class SimplePasswordControl extends Component<any> {
|
|
|
11
11
|
render(): JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export declare const formatNumber: (value: number) => string;
|
|
14
|
-
export
|
|
14
|
+
export type NumericTextControlProps = {
|
|
15
15
|
value: any;
|
|
16
16
|
title: any;
|
|
17
17
|
styleLabel: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, MouseEventHandler } from "react";
|
|
2
|
-
|
|
2
|
+
type GenericPanelProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
description: string;
|
|
5
5
|
showPromptSuccess?: boolean;
|
|
@@ -13,7 +13,7 @@ declare type GenericPanelProps = {
|
|
|
13
13
|
/********************MATERIAL UI STYLES********************************** */
|
|
14
14
|
/************************************************************************* */
|
|
15
15
|
declare const GenericPanel: ({ title, description, showPromptSuccess, showPromptError, onDismissSuccess, onDismissError, successMessage, error, children, }: GenericPanelProps) => JSX.Element;
|
|
16
|
-
|
|
16
|
+
type MasterDetailPanelProps = {
|
|
17
17
|
title: string;
|
|
18
18
|
onSave: MouseEventHandler;
|
|
19
19
|
onCancel: MouseEventHandler;
|
|
@@ -27,11 +27,11 @@ declare class MasterDetailPanel extends Component<MasterDetailPanelProps> {
|
|
|
27
27
|
useStyles(): (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
|
|
28
28
|
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
type ExtraButton = {
|
|
31
31
|
name: string;
|
|
32
32
|
onClick: MouseEventHandler;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
type FilterPanelProps = {
|
|
35
35
|
onClickExport?: Function;
|
|
36
36
|
onClickReset: Function;
|
|
37
37
|
OnClickGo: Function;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
type ExportColumn = {
|
|
2
2
|
columnName?: string;
|
|
3
3
|
caption?: string;
|
|
4
4
|
order?: number;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ExportSheet = {
|
|
7
7
|
order?: number;
|
|
8
8
|
resultSetIndex?: number;
|
|
9
9
|
sheetName?: string;
|
|
10
10
|
showAllColumns?: boolean;
|
|
11
11
|
columns?: ExportColumn[];
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type ExportStructure = {
|
|
14
14
|
showAllSheets?: boolean;
|
|
15
15
|
sheets?: ExportSheet[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type spParameter = {
|
|
18
18
|
name: string;
|
|
19
19
|
value: string | number | boolean | null | Date;
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexteel/mesf-core",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"author": "Dexteel Team",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
52
52
|
"string-to-color": "^2.2.2",
|
|
53
53
|
"tslib": "^2.3.1",
|
|
54
|
-
"typescript": "^4.
|
|
54
|
+
"typescript": "^4.9.4",
|
|
55
55
|
"use-complex-state": "^1.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|