@dexteel/mesf-core 3.0.0 → 3.2.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/README.md +16 -0
- package/dist/account/logout.d.ts +0 -6
- package/dist/configuration/index.d.ts +8 -8
- package/dist/configuration/pages/job/JobsPage.d.ts +4 -0
- package/dist/configuration/pages/job/components/JobsTable/TableJobs.d.ts +2 -0
- package/dist/configuration/pages/job/components/JobsTable/customHooks/TableDataJobs/useJobsTableData.d.ts +19 -0
- package/dist/configuration/pages/job/context/JobsContext.d.ts +17 -0
- package/dist/configuration/pages/job/index.d.ts +4 -0
- package/dist/configuration/pages/job/models/Job.d.ts +16 -0
- package/dist/configuration/pages/job/reducers/JobsReducer.d.ts +11 -0
- package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +27 -0
- package/dist/configuration/pages/log/LogsPage.d.ts +4 -0
- package/dist/configuration/pages/log/components/Filters/codeFilter.d.ts +7 -0
- package/dist/configuration/pages/log/components/Filters/dateFilter.d.ts +8 -0
- package/dist/configuration/pages/log/components/Filters/searchFilter.d.ts +7 -0
- package/dist/configuration/pages/log/components/LogsTable/TableLogs.d.ts +2 -0
- package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogTableData.d.ts +43 -0
- package/dist/configuration/pages/log/components/ModalLogSelected/ModalLogSelected.d.ts +9 -0
- package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +10 -0
- package/dist/configuration/pages/log/context/LogsContext.d.ts +61 -0
- package/dist/configuration/pages/log/data/LogTypeCodes.d.ts +4 -0
- package/dist/configuration/pages/log/index.d.ts +4 -0
- package/dist/configuration/pages/log/models/Log.d.ts +8 -0
- package/dist/configuration/pages/log/models/SearchData.d.ts +6 -0
- package/dist/configuration/pages/log/reducers/LogsReducer.d.ts +56 -0
- package/dist/configuration/pages/log/repositories/LogsRepository.d.ts +9 -0
- package/dist/configuration/pages/profiles/ProfilesPage.d.ts +4 -0
- package/dist/configuration/pages/profiles/components/Create/CreateProfile.d.ts +8 -0
- package/dist/configuration/pages/profiles/components/Delete/DeleteProfile.d.ts +9 -0
- package/dist/configuration/pages/profiles/components/Edit/EditProfile.d.ts +9 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +7 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +21 -0
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useGetPermissionsEffect.d.ts +7 -0
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useHandleAsignedPermission.d.ts +6 -0
- package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useIsPermissionInherited.d.ts +5 -0
- package/dist/configuration/pages/profiles/components/common/Permissions/utils/PermissionsUtils.d.ts +1 -0
- package/dist/configuration/pages/profiles/components/common/Pickers/PermissionsPicker.d.ts +11 -0
- package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +11 -0
- package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +7 -0
- package/dist/configuration/pages/profiles/components/common/hooks/useGetColorByPermissionId.d.ts +5 -0
- package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +26 -0
- package/dist/configuration/pages/profiles/index.d.ts +4 -0
- package/dist/configuration/pages/profiles/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/profiles/models/Permission.d.ts +4 -0
- package/dist/configuration/pages/profiles/models/Profile.d.ts +8 -0
- package/dist/configuration/pages/profiles/reducers/ProfilesReducer.d.ts +21 -0
- package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +55 -0
- package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +4 -0
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +8 -0
- package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +19 -0
- package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +37 -0
- package/dist/configuration/pages/shifCrew/index.d.ts +4 -0
- package/dist/configuration/pages/shifCrew/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/shifCrew/models/ShiftParameters.d.ts +12 -0
- package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +31 -0
- package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +37 -0
- package/dist/configuration/pages/users/UsersPage.d.ts +4 -0
- package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +8 -0
- package/dist/configuration/pages/users/components/Delete/DeleteUser.d.ts +8 -0
- package/dist/configuration/pages/users/components/EditUser/EditUser.d.ts +8 -0
- package/dist/configuration/pages/users/components/Prueba/Prueba.d.ts +2 -0
- package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +7 -0
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +19 -0
- package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +8 -0
- package/dist/configuration/pages/users/context/UsersContext.d.ts +17 -0
- package/dist/configuration/pages/users/index.d.ts +4 -0
- package/dist/configuration/pages/users/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/users/models/Profile.d.ts +8 -0
- package/dist/configuration/pages/users/models/User.d.ts +11 -0
- package/dist/configuration/pages/users/reducers/UsersReducer.d.ts +11 -0
- package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +55 -0
- package/dist/controls/LazyLoading/LazyLoading.d.ts +3 -0
- package/dist/controls/alert.d.ts +3 -0
- package/dist/index.esm.js +4749 -2301
- package/dist/index.esm.js.map +1 -0
- package/img.png +0 -0
- package/package.json +9 -2
- package/dist/configuration/JobConfig.d.ts +0 -2
- package/dist/configuration/LogConfig.d.ts +0 -2
- package/dist/configuration/profileManager.d.ts +0 -2
- package/dist/configuration/shiftCrew.d.ts +0 -2
- package/dist/configuration/usersManagment.d.ts +0 -2
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# How to install project in subfolders
|
|
2
|
+
|
|
3
|
+
In deployed version, edit the following file:
|
|
4
|
+
```
|
|
5
|
+
DEPLOY_FOLDER/ClientApp/dist/index.html
|
|
6
|
+
```
|
|
7
|
+
Change the ``<base />`` tag to the desired base url
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
## DON'T FORGET THE TRAILING SLASH
|
|
11
|
+
## EXAMPLES:
|
|
12
|
+
- ``<base href="/" />`` (default)
|
|
13
|
+
- ``<base href="/old/" />``
|
|
14
|
+
- ``<base href="/testing/" />``
|
|
15
|
+
- ``<base href="/old/testing/" />``
|
|
16
|
+
|
package/dist/account/logout.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 "./pages/job/index";
|
|
2
|
+
export * from "./pages/log/index";
|
|
3
|
+
export * from "./pages/profiles/index";
|
|
4
|
+
export * from "./pages/shifCrew/index";
|
|
5
|
+
export * from "./pages/users/index";
|
|
6
|
+
export * from "./formatters";
|
|
7
|
+
export * from "./stylesGetters";
|
|
8
|
+
export * from "./configuration";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GridColumns } from "@material-ui/data-grid";
|
|
2
|
+
declare type Props = {
|
|
3
|
+
getJobsFromAPI: () => Promise<void>;
|
|
4
|
+
setMessageLoading: Function;
|
|
5
|
+
setMessageSuccesful: Function;
|
|
6
|
+
};
|
|
7
|
+
export declare const useJobsTableData: ({ getJobsFromAPI, setMessageLoading, setMessageSuccesful }: Props) => {
|
|
8
|
+
rows: {
|
|
9
|
+
id: number;
|
|
10
|
+
sProcedure: string;
|
|
11
|
+
Running: boolean;
|
|
12
|
+
LastStarted: null;
|
|
13
|
+
LastCounter: null;
|
|
14
|
+
Enabled: boolean;
|
|
15
|
+
RestartAfterFailure: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
columns: GridColumns;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useJobsContext: () => {
|
|
3
|
+
state: {
|
|
4
|
+
jobsData: import("../models/Job").Job[];
|
|
5
|
+
};
|
|
6
|
+
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
setJobs(state: import("immer/dist/internal").WritableDraft<{
|
|
8
|
+
jobsData: import("../models/Job").Job[];
|
|
9
|
+
}>, { payload }: {
|
|
10
|
+
payload: any;
|
|
11
|
+
type: string;
|
|
12
|
+
}): void;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export declare const JobsProvider: ({ children }: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Job {
|
|
2
|
+
row: Job;
|
|
3
|
+
JobId: number;
|
|
4
|
+
sProcedure: string;
|
|
5
|
+
LastStarted: null;
|
|
6
|
+
LastContact: null;
|
|
7
|
+
LastStatus: null;
|
|
8
|
+
Counter: number;
|
|
9
|
+
LastCounter: null;
|
|
10
|
+
Enabled: boolean;
|
|
11
|
+
RestartAfterFailure: boolean;
|
|
12
|
+
SessionId: null;
|
|
13
|
+
Started: null;
|
|
14
|
+
Status: null;
|
|
15
|
+
Running: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Job } from "../models/Job";
|
|
2
|
+
export declare const JobsReducer: import("@reduxjs/toolkit").Slice<{
|
|
3
|
+
jobsData: Job[];
|
|
4
|
+
}, {
|
|
5
|
+
setJobs(state: import("immer/dist/internal").WritableDraft<{
|
|
6
|
+
jobsData: Job[];
|
|
7
|
+
}>, { payload }: {
|
|
8
|
+
payload: any;
|
|
9
|
+
type: string;
|
|
10
|
+
}): void;
|
|
11
|
+
}, "__">;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const GetJobsStatus: () => Promise<{
|
|
2
|
+
ok: boolean;
|
|
3
|
+
data: any;
|
|
4
|
+
message?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
ok: boolean;
|
|
7
|
+
message: any;
|
|
8
|
+
data?: undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const SetJobEnable: (Enable: boolean, sProcedure: string) => Promise<{
|
|
11
|
+
ok: boolean;
|
|
12
|
+
data: any;
|
|
13
|
+
message?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
message: any;
|
|
17
|
+
data?: undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const RestartJob: (sProcedure: string) => Promise<{
|
|
20
|
+
ok: boolean;
|
|
21
|
+
data: any;
|
|
22
|
+
message?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
ok: boolean;
|
|
25
|
+
message: any;
|
|
26
|
+
data?: undefined;
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
LogTypeCode: number | string | null;
|
|
4
|
+
setLogTypeCodeFilter: (logTypeCode: number | string | null) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const CodeFilter: ({ LogTypeCode, setLogTypeCodeFilter }: Props) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const useLogTableData: () => {
|
|
2
|
+
rows: {
|
|
3
|
+
id: number;
|
|
4
|
+
Timestamp: Date | null;
|
|
5
|
+
Source: string;
|
|
6
|
+
Message: string;
|
|
7
|
+
LogTypeCode: string;
|
|
8
|
+
User: string;
|
|
9
|
+
}[];
|
|
10
|
+
columns: ({
|
|
11
|
+
field: string;
|
|
12
|
+
headerName: string;
|
|
13
|
+
minWidth: number;
|
|
14
|
+
flex: number;
|
|
15
|
+
valueFormatter: ({ value }: {
|
|
16
|
+
value: any;
|
|
17
|
+
}) => string;
|
|
18
|
+
type?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
field: string;
|
|
21
|
+
headerName: string;
|
|
22
|
+
minWidth: number;
|
|
23
|
+
flex: number;
|
|
24
|
+
type: string;
|
|
25
|
+
valueFormatter?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
field: string;
|
|
28
|
+
headerName: string;
|
|
29
|
+
minWidth: number;
|
|
30
|
+
flex: number;
|
|
31
|
+
valueFormatter?: undefined;
|
|
32
|
+
type?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
field: string;
|
|
35
|
+
headerName: string;
|
|
36
|
+
minWidth: number;
|
|
37
|
+
flex: number;
|
|
38
|
+
type: string;
|
|
39
|
+
valueFormatter: ({ value }: {
|
|
40
|
+
value: any;
|
|
41
|
+
}) => any;
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Log } from '../../models/Log';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
show: boolean;
|
|
5
|
+
onHide: (show: boolean) => void;
|
|
6
|
+
selectedLog: Log | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare const ModalLogSelected: ({ show, onHide, selectedLog }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare type Props = {
|
|
2
|
+
Start: Date;
|
|
3
|
+
End: Date;
|
|
4
|
+
Search: string;
|
|
5
|
+
LogTypeCode: number | string | null;
|
|
6
|
+
setLoading: Function;
|
|
7
|
+
setErrorsApi: Function;
|
|
8
|
+
};
|
|
9
|
+
export declare const useGetLogsFromAPI: ({ Start, End, Search, LogTypeCode, setLoading, setErrorsApi }: Props) => () => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useLogsContext: () => {
|
|
3
|
+
state: {
|
|
4
|
+
logs: import("../models/Log").Log[];
|
|
5
|
+
searchData: import("../models/SearchData").SearchData;
|
|
6
|
+
};
|
|
7
|
+
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
8
|
+
setLogs(state: import("immer/dist/internal").WritableDraft<{
|
|
9
|
+
logs: import("../models/Log").Log[];
|
|
10
|
+
searchData: import("../models/SearchData").SearchData;
|
|
11
|
+
}>, { payload }: {
|
|
12
|
+
payload: any;
|
|
13
|
+
type: string;
|
|
14
|
+
}): void;
|
|
15
|
+
setSearchData(state: import("immer/dist/internal").WritableDraft<{
|
|
16
|
+
logs: import("../models/Log").Log[];
|
|
17
|
+
searchData: import("../models/SearchData").SearchData;
|
|
18
|
+
}>, { payload }: {
|
|
19
|
+
payload: any;
|
|
20
|
+
type: string;
|
|
21
|
+
}): void;
|
|
22
|
+
setStartFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
23
|
+
logs: import("../models/Log").Log[];
|
|
24
|
+
searchData: import("../models/SearchData").SearchData;
|
|
25
|
+
}>, { payload }: {
|
|
26
|
+
payload: any;
|
|
27
|
+
type: string;
|
|
28
|
+
}): void;
|
|
29
|
+
setEndFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
30
|
+
logs: import("../models/Log").Log[];
|
|
31
|
+
searchData: import("../models/SearchData").SearchData;
|
|
32
|
+
}>, { payload }: {
|
|
33
|
+
payload: any;
|
|
34
|
+
type: string;
|
|
35
|
+
}): void;
|
|
36
|
+
setSearchFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
37
|
+
logs: import("../models/Log").Log[];
|
|
38
|
+
searchData: import("../models/SearchData").SearchData;
|
|
39
|
+
}>, { payload }: {
|
|
40
|
+
payload: any;
|
|
41
|
+
type: string;
|
|
42
|
+
}): void;
|
|
43
|
+
setLogTypeCodeFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
44
|
+
logs: import("../models/Log").Log[];
|
|
45
|
+
searchData: import("../models/SearchData").SearchData;
|
|
46
|
+
}>, { payload }: {
|
|
47
|
+
payload: any;
|
|
48
|
+
type: string;
|
|
49
|
+
}): void;
|
|
50
|
+
resetFilters(state: import("immer/dist/internal").WritableDraft<{
|
|
51
|
+
logs: import("../models/Log").Log[];
|
|
52
|
+
searchData: import("../models/SearchData").SearchData;
|
|
53
|
+
}>, { payload }: {
|
|
54
|
+
payload: any;
|
|
55
|
+
type: string;
|
|
56
|
+
}): void;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
export declare const LogsProvider: ({ children }: {
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Log } from "../models/Log";
|
|
2
|
+
import { SearchData } from "../models/SearchData";
|
|
3
|
+
export declare const LogsReducer: import("@reduxjs/toolkit").Slice<{
|
|
4
|
+
logs: Log[];
|
|
5
|
+
searchData: SearchData;
|
|
6
|
+
}, {
|
|
7
|
+
setLogs(state: import("immer/dist/internal").WritableDraft<{
|
|
8
|
+
logs: Log[];
|
|
9
|
+
searchData: SearchData;
|
|
10
|
+
}>, { payload }: {
|
|
11
|
+
payload: any;
|
|
12
|
+
type: string;
|
|
13
|
+
}): void;
|
|
14
|
+
setSearchData(state: import("immer/dist/internal").WritableDraft<{
|
|
15
|
+
logs: Log[];
|
|
16
|
+
searchData: SearchData;
|
|
17
|
+
}>, { payload }: {
|
|
18
|
+
payload: any;
|
|
19
|
+
type: string;
|
|
20
|
+
}): void;
|
|
21
|
+
setStartFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
22
|
+
logs: Log[];
|
|
23
|
+
searchData: SearchData;
|
|
24
|
+
}>, { payload }: {
|
|
25
|
+
payload: any;
|
|
26
|
+
type: string;
|
|
27
|
+
}): void;
|
|
28
|
+
setEndFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
29
|
+
logs: Log[];
|
|
30
|
+
searchData: SearchData;
|
|
31
|
+
}>, { payload }: {
|
|
32
|
+
payload: any;
|
|
33
|
+
type: string;
|
|
34
|
+
}): void;
|
|
35
|
+
setSearchFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
36
|
+
logs: Log[];
|
|
37
|
+
searchData: SearchData;
|
|
38
|
+
}>, { payload }: {
|
|
39
|
+
payload: any;
|
|
40
|
+
type: string;
|
|
41
|
+
}): void;
|
|
42
|
+
setLogTypeCodeFilter(state: import("immer/dist/internal").WritableDraft<{
|
|
43
|
+
logs: Log[];
|
|
44
|
+
searchData: SearchData;
|
|
45
|
+
}>, { payload }: {
|
|
46
|
+
payload: any;
|
|
47
|
+
type: string;
|
|
48
|
+
}): void;
|
|
49
|
+
resetFilters(state: import("immer/dist/internal").WritableDraft<{
|
|
50
|
+
logs: Log[];
|
|
51
|
+
searchData: SearchData;
|
|
52
|
+
}>, { payload }: {
|
|
53
|
+
payload: any;
|
|
54
|
+
type: string;
|
|
55
|
+
}): void;
|
|
56
|
+
}, "__">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Profile } from '../../models/Profile';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
profileForDelete: Profile | null;
|
|
5
|
+
show: boolean;
|
|
6
|
+
onHide: (shouldUpdate: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const DeleteProfile: ({ profileForDelete, show, onHide }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Profile } from '../../models/Profile';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
profileForEdit: Profile | null;
|
|
5
|
+
show: boolean;
|
|
6
|
+
onHide: (shouldUpdate: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const EditProfile: ({ profileForEdit, show, onHide }: Props) => JSX.Element;
|
|
9
|
+
export {};
|
package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GridColDef } from "@material-ui/data-grid";
|
|
2
|
+
import { Profile } from '../../../models/Profile';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
setProfileForEdit: (profile: Profile) => void;
|
|
5
|
+
setModalEditPermissionsProfile: (showModal: boolean) => void;
|
|
6
|
+
setProfileForDelete: (profile: Profile) => void;
|
|
7
|
+
setModalDeleteProfile: (showModal: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useTableData: ({ setProfileForEdit, setModalEditPermissionsProfile, setProfileForDelete, setModalDeleteProfile }: Props) => {
|
|
10
|
+
rows: {
|
|
11
|
+
id: number | null;
|
|
12
|
+
ProfileId: number | null;
|
|
13
|
+
HasProfiles: string;
|
|
14
|
+
HasProfilesId: string | number[] | null;
|
|
15
|
+
ProfileName: string;
|
|
16
|
+
PermissionsId: string | number[];
|
|
17
|
+
Permissions: string;
|
|
18
|
+
}[];
|
|
19
|
+
columns: GridColDef[];
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Permission } from "../../../../models/Permission";
|
|
2
|
+
declare type Props = {
|
|
3
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
4
|
+
setPermissions: (permissions: Permission[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const useGetPermissionsEffect: ({ setIsLoading, setPermissions, }: Props) => void;
|
|
7
|
+
export {};
|
package/dist/configuration/pages/profiles/components/common/Permissions/utils/PermissionsUtils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isPermissionAssigned: (PermissionId: number, asignedPermissions: number[]) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
value: number[];
|
|
4
|
+
onChange: Function;
|
|
5
|
+
profileForDelete: number | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
8
|
+
profilesToProfiles: number[];
|
|
9
|
+
};
|
|
10
|
+
export declare const PermissionsPicker: ({ isLoading, setIsLoading, profileForDelete, value, onChange, profilesToProfiles }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
value: number[];
|
|
4
|
+
onChange: Function;
|
|
5
|
+
profileForDelete: number | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
8
|
+
profileIdForEdit: number | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare const ProfilesPicker: ({ isLoading, setIsLoading, profileForDelete, profileIdForEdit, value, onChange }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Profile } from "../../../../models/Profile";
|
|
2
|
+
declare type Props = {
|
|
3
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
4
|
+
setProfiles: (permissions: Profile[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const useGetProfilesEffect: ({ setIsLoading, setProfiles, }: Props) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useProfilesContext: () => {
|
|
3
|
+
state: {
|
|
4
|
+
profiles: import("../models/Profile").Profile[];
|
|
5
|
+
permissions: import("../models/Permission").Permission[] | null;
|
|
6
|
+
};
|
|
7
|
+
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
8
|
+
setProfiles(state: import("immer/dist/internal").WritableDraft<{
|
|
9
|
+
profiles: import("../models/Profile").Profile[];
|
|
10
|
+
permissions: import("../models/Permission").Permission[] | null;
|
|
11
|
+
}>, { payload }: {
|
|
12
|
+
payload: any;
|
|
13
|
+
type: string;
|
|
14
|
+
}): void;
|
|
15
|
+
setPermissions(state: import("immer/dist/internal").WritableDraft<{
|
|
16
|
+
profiles: import("../models/Profile").Profile[];
|
|
17
|
+
permissions: import("../models/Permission").Permission[] | null;
|
|
18
|
+
}>, { payload }: {
|
|
19
|
+
payload: any;
|
|
20
|
+
type: string;
|
|
21
|
+
}): void;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export declare const ProfilesProvider: ({ children }: {
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Profile } from "../../profiles/models/Profile";
|
|
2
|
+
import { Permission } from "../models/Permission";
|
|
3
|
+
export declare const ProfilesReducer: import("@reduxjs/toolkit").Slice<{
|
|
4
|
+
profiles: Profile[];
|
|
5
|
+
permissions: Permission[] | null;
|
|
6
|
+
}, {
|
|
7
|
+
setProfiles(state: import("immer/dist/internal").WritableDraft<{
|
|
8
|
+
profiles: Profile[];
|
|
9
|
+
permissions: Permission[] | null;
|
|
10
|
+
}>, { payload }: {
|
|
11
|
+
payload: any;
|
|
12
|
+
type: string;
|
|
13
|
+
}): void;
|
|
14
|
+
setPermissions(state: import("immer/dist/internal").WritableDraft<{
|
|
15
|
+
profiles: Profile[];
|
|
16
|
+
permissions: Permission[] | null;
|
|
17
|
+
}>, { payload }: {
|
|
18
|
+
payload: any;
|
|
19
|
+
type: string;
|
|
20
|
+
}): void;
|
|
21
|
+
}, "__">;
|