@dexteel/mesf-core 3.12.2 → 4.0.0-alpha

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.
Files changed (23) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/bun.lockb +0 -0
  3. package/dist/components/modals/error-modal.d.ts +9 -0
  4. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +138 -16
  5. package/dist/configuration/pages/asset/models/AssetParameters.d.ts +2 -1
  6. package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +139 -16
  7. package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +1 -1
  8. package/dist/configuration/pages/profiles/components/Create/CreateProfile.d.ts +2 -3
  9. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresDataTable/index.d.ts +10 -0
  10. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresOfProfile.d.ts +9 -0
  11. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +3 -6
  12. package/dist/configuration/pages/profiles/models/Procedure.d.ts +4 -0
  13. package/dist/configuration/pages/profiles/models/Profile.d.ts +0 -4
  14. package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +28 -0
  15. package/dist/index.esm.js +739 -758
  16. package/dist/services/ApiService.d.ts +1 -0
  17. package/dist/utils/getError.d.ts +1 -0
  18. package/package.json +8 -3
  19. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useGetPermissionsEffect.d.ts +0 -7
  20. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useHandleAsignedPermission.d.ts +0 -6
  21. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useIsPermissionInherited.d.ts +0 -5
  22. package/dist/configuration/pages/profiles/components/common/Permissions/utils/PermissionsUtils.d.ts +0 -1
  23. package/dist/configuration/pages/profiles/components/common/Pickers/PermissionsPicker.d.ts +0 -11
@@ -31,6 +31,7 @@ export declare class MESApiService {
31
31
  loginWithWindowsAuthentication(): Promise<Response>;
32
32
  uploadFiles(selectedFiles: File[], folderName?: string): Promise<any>;
33
33
  call(procedure: string, parameters: any[], database?: string): Promise<any>;
34
+ callV2(procedure: string, parameters: any[], database?: string): Promise<any>;
34
35
  callJSON(procedure: string, parameters: any[], database?: string): Promise<any>;
35
36
  import(procedure: string, parameters: any[], files: any[], uniqueFile: any, database?: string): Promise<any>;
36
37
  export(procedure: string, parameters: spParameter[], fileName: string, database?: string): Promise<string | void>;
@@ -0,0 +1 @@
1
+ export declare const getError: (error: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.12.2",
3
+ "version": "4.0.0-alpha",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -49,7 +49,6 @@
49
49
  "rollup-plugin-styles": "^3.14.1",
50
50
  "rollup-plugin-terser": "^7.0.2",
51
51
  "rollup-plugin-typescript2": "^0.31.2",
52
- "string-to-color": "^2.2.2",
53
52
  "tslib": "^2.3.1",
54
53
  "typescript": "^4.9.4",
55
54
  "use-complex-state": "^1.1.0"
@@ -72,7 +71,10 @@
72
71
  "react-spring": "^9.4.3",
73
72
  "rimraf": "^3.0.2",
74
73
  "string-to-color": "^2.2.2",
75
- "use-complex-state": "^1.1.0"
74
+ "use-complex-state": "^1.1.0",
75
+ "ag-grid-community": "^29.2.0",
76
+ "ag-grid-enterprise": "^29.2.0",
77
+ "ag-grid-react": "^29.2.0"
76
78
  },
77
79
  "browserslist": {
78
80
  "production": [
@@ -90,6 +92,9 @@
90
92
  "@azure/msal-browser": "^2.18.0",
91
93
  "@azure/msal-react": "^1.1.0",
92
94
  "@date-io/moment": "^1.3.13",
95
+ "ag-grid-community": "^29.2.0",
96
+ "ag-grid-enterprise": "^29.2.0",
97
+ "ag-grid-react": "^29.2.0",
93
98
  "@emotion/styled": "^11.11.0",
94
99
  "@minoru/react-dnd-treeview": "^3.4.4",
95
100
  "axios": "^1.3.5",
@@ -1,7 +0,0 @@
1
- import { Permission } from "../../../../models/Permission";
2
- type Props = {
3
- setIsLoading: (isLoading: boolean) => void;
4
- setPermissions: (permissions: Permission[]) => void;
5
- };
6
- export declare const useGetPermissionsEffect: ({ setIsLoading, setPermissions, }: Props) => void;
7
- export {};
@@ -1,6 +0,0 @@
1
- type Props = {
2
- asignedPermissions: number[];
3
- onChange: Function;
4
- };
5
- export declare const useHandleAsignedPermission: ({ asignedPermissions, onChange }: Props) => (event: React.ChangeEvent<HTMLInputElement>) => void;
6
- export {};
@@ -1,5 +0,0 @@
1
- type Props = {
2
- profilesToProfiles: number[];
3
- };
4
- export declare const useIsPermissionInherited: ({ profilesToProfiles }: Props) => (PermissionId: number) => boolean;
5
- export {};
@@ -1 +0,0 @@
1
- export declare const isPermissionAssigned: (PermissionId: number, asignedPermissions: number[]) => boolean;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- 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) => React.JSX.Element;
11
- export {};