@dexteel/mesf-core 2.1.8

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 (44) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/MESFMain.d.ts +4 -0
  3. package/dist/account/AuthProvider.d.ts +19 -0
  4. package/dist/account/account.d.ts +2 -0
  5. package/dist/account/changePassword.d.ts +2 -0
  6. package/dist/account/index.d.ts +6 -0
  7. package/dist/account/login-strategies/LoginAsGuest.d.ts +2 -0
  8. package/dist/account/login-strategies/LoginWithEmailAndPassword.d.ts +2 -0
  9. package/dist/account/login-strategies/azure-ad/AzureADAuthConfig.d.ts +37 -0
  10. package/dist/account/login-strategies/azure-ad/LoginWithAzureAD.d.ts +5 -0
  11. package/dist/account/login-strategies/azure-ad/LoginWithAzureADForm.d.ts +2 -0
  12. package/dist/account/login.d.ts +9 -0
  13. package/dist/account/logout.d.ts +8 -0
  14. package/dist/account/models/login.models.d.ts +15 -0
  15. package/dist/account/useToken.d.ts +10 -0
  16. package/dist/components/home/home.d.ts +3 -0
  17. package/dist/components/navigation/Header.d.ts +2 -0
  18. package/dist/components/navigation/MainContainer.d.ts +3 -0
  19. package/dist/components/navigation/Navigation.d.ts +3 -0
  20. package/dist/configuration/JobConfig.d.ts +2 -0
  21. package/dist/configuration/LogConfig.d.ts +2 -0
  22. package/dist/configuration/configuration.d.ts +6 -0
  23. package/dist/configuration/formatters.d.ts +7 -0
  24. package/dist/configuration/index.d.ts +8 -0
  25. package/dist/configuration/profileManager.d.ts +2 -0
  26. package/dist/configuration/shiftCrew.d.ts +2 -0
  27. package/dist/configuration/stylesGetters.d.ts +14 -0
  28. package/dist/configuration/usersManagment.d.ts +2 -0
  29. package/dist/configurationMenu.d.ts +17 -0
  30. package/dist/controls/charts/genericChart.d.ts +10 -0
  31. package/dist/controls/filters/dialogFilter.d.ts +12 -0
  32. package/dist/controls/filters/filters.d.ts +71 -0
  33. package/dist/controls/index.d.ts +6 -0
  34. package/dist/controls/panels.d.ts +62 -0
  35. package/dist/controls/tables/GenericTable.d.ts +5 -0
  36. package/dist/controls/tables/dataGrid.d.ts +10 -0
  37. package/dist/globalContext.d.ts +6 -0
  38. package/dist/index.cjs.js +3268 -0
  39. package/dist/index.d.ts +6 -0
  40. package/dist/routes/MESFMainRouter.d.ts +3 -0
  41. package/dist/services/ApiService.d.ts +36 -0
  42. package/dist/services/index.d.ts +1 -0
  43. package/dist/utils.d.ts +21 -0
  44. package/package.json +96 -0
@@ -0,0 +1,6 @@
1
+ export * from './services';
2
+ export * from './configuration';
3
+ export * from './utils';
4
+ export * from './account';
5
+ export * from './controls';
6
+ export * from './MESFMain';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const MESFMainRouter: () => JSX.Element;
3
+ export default MESFMainRouter;
@@ -0,0 +1,36 @@
1
+ declare type ExportColumn = {
2
+ columnName?: string;
3
+ caption?: string;
4
+ order?: number;
5
+ };
6
+ declare type ExportSheet = {
7
+ order?: number;
8
+ resultSetIndex?: number;
9
+ sheetName?: string;
10
+ showAllColumns?: boolean;
11
+ columns?: ExportColumn[];
12
+ };
13
+ declare type ExportStructure = {
14
+ showAllSheets?: boolean;
15
+ sheets?: ExportSheet[];
16
+ };
17
+ export declare type spParameter = {
18
+ name: string;
19
+ value: string | number | boolean | null | Date;
20
+ };
21
+ export declare class MESApiService {
22
+ private config;
23
+ hasErrors: boolean;
24
+ error: any;
25
+ private TOKEN;
26
+ constructor();
27
+ prepareCall(): void;
28
+ changePassword(userId: string, password: string): Promise<any>;
29
+ authenticate(userName: string, password: string): Promise<any>;
30
+ loginWithAzureAD(accessToken: string): Promise<any>;
31
+ call(procedure: string, parameters: any[], database?: string): Promise<any>;
32
+ import(procedure: string, parameters: any[], files: any[], uniqueFile: any, database?: string): Promise<any>;
33
+ export(procedure: string, parameters: spParameter[], fileName: string, database?: string): Promise<string | void>;
34
+ exportExcel(procedure: string, parameters: spParameter[], fileName: string, excelStructure: ExportStructure, database?: string): Promise<string | void>;
35
+ }
36
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ApiService';
@@ -0,0 +1,21 @@
1
+ export declare const MESSAGE_API: {
2
+ ERROR_MESSAGE: string;
3
+ ERROR_EMPTY_SEARCH: string;
4
+ };
5
+ export declare const MESSAGE_ERRORS: {
6
+ ERROR_TITLE: string;
7
+ ERROR_EMPTY_SEARCH: string;
8
+ ERROR_USER_API: string;
9
+ ERROR_USER_DEFAULT: string;
10
+ ERROR_SAVE_DATA: string;
11
+ SUCCESS_SAVE_DATA: string;
12
+ };
13
+ export declare const USER_LABELS: {
14
+ CHOOSE_OPTION: string;
15
+ };
16
+ export declare class FetchError extends Error {
17
+ status: number;
18
+ internalError: string;
19
+ constructor(message: string, status: number, internalError: string);
20
+ getMessageUser: () => string;
21
+ }
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@dexteel/mesf-core",
3
+ "version": "2.1.8",
4
+ "author": "Lucas Rueda",
5
+ "main": "dist/index.cjs.js",
6
+ "typings": "dist/index.d.ts",
7
+ "scripts": {
8
+ "prepublish": "rimraf -rf ./dist && npm run build",
9
+ "build": "rimraf -rf ./dist && rollup -c",
10
+ "watch": "rollup -wc"
11
+ },
12
+ "license": "ISC",
13
+ "devDependencies": {
14
+ "@babel/cli": "^7.17.6",
15
+ "@babel/core": "^7.17.5",
16
+ "@babel/plugin-transform-runtime": "^7.17.0",
17
+ "@babel/preset-env": "^7.16.11",
18
+ "@babel/preset-react": "^7.16.7",
19
+ "@babel/preset-typescript": "^7.16.7",
20
+ "@babel/runtime": "^7.17.2",
21
+ "@material-ui/core": "^4.12.3",
22
+ "@material-ui/data-grid": "^4.0.0-alpha.37",
23
+ "@material-ui/icons": "^4.11.2",
24
+ "@material-ui/lab": "^4.0.0-alpha.60",
25
+ "@nivo/bar": "^0.79.1",
26
+ "@nivo/core": "^0.79.0",
27
+ "@rollup/plugin-babel": "^5.3.1",
28
+ "@rollup/plugin-typescript": "^8.3.1",
29
+ "@types/lodash-es": "^4.17.6",
30
+ "@types/node": "^12.20.46",
31
+ "@types/react": "^17.0.39",
32
+ "@types/react-datepicker": "^4.3.4",
33
+ "@types/react-dom": "^17.0.11",
34
+ "@types/react-router-dom": "^5.3.3",
35
+ "autoprefixer": "^10.4.2",
36
+ "bootstrap": "^4.6.1",
37
+ "moment": "^2.29.1",
38
+ "prop-types": "^15.8.1",
39
+ "react": "^17.0.2",
40
+ "react-bootstrap": "^1.6.4",
41
+ "react-datepicker": "^4.6.0",
42
+ "react-dom": "^17.0.2",
43
+ "react-router-dom": "^6.2.1",
44
+ "react-spring": "^9.4.3",
45
+ "rimraf": "^3.0.2",
46
+ "rollup": "^2.68.0",
47
+ "rollup-plugin-node-resolve": "^5.2.0",
48
+ "rollup-plugin-sourcemaps": "^0.6.3",
49
+ "rollup-plugin-styles": "^3.14.1",
50
+ "rollup-plugin-terser": "^7.0.2",
51
+ "rollup-plugin-typescript2": "^0.31.2",
52
+ "tslib": "^2.3.1",
53
+ "typescript": "^4.5.5"
54
+ },
55
+ "peerDependencies": {
56
+ "@material-ui/core": "^4.12.3",
57
+ "@material-ui/data-grid": "^4.0.0-alpha.37",
58
+ "@material-ui/icons": "^4.11.2",
59
+ "@material-ui/lab": "^4.0.0-alpha.60",
60
+ "@nivo/bar": "^0.79.1",
61
+ "@nivo/core": "^0.79.0",
62
+ "bootstrap": "^4.6.1",
63
+ "moment": "^2.29.1",
64
+ "prop-types": "^15.8.1",
65
+ "react": "^17.0.2",
66
+ "react-bootstrap": "^1.6.4",
67
+ "react-datepicker": "^4.6.0",
68
+ "react-dom": "^17.0.2",
69
+ "react-router-dom": "^6.2.1",
70
+ "react-spring": "^9.4.3",
71
+ "rimraf": "^3.0.2"
72
+ },
73
+ "browserslist": {
74
+ "production": [
75
+ ">0.2%",
76
+ "not dead",
77
+ "not op_mini all"
78
+ ],
79
+ "development": [
80
+ "last 1 chrome version",
81
+ "last 1 firefox version",
82
+ "last 1 safari version"
83
+ ]
84
+ },
85
+ "dependencies": {
86
+ "@azure/msal-browser": "^2.18.0",
87
+ "@azure/msal-react": "^1.1.0",
88
+ "lodash-es": "^4.17.21",
89
+ "tsc": "^2.0.3"
90
+ },
91
+ "repository": {
92
+ "type": "git",
93
+ "url": "https://australtek@dev.azure.com/australtek/MESF/_git/mesf-core-frontend"
94
+ },
95
+ "description": ""
96
+ }