@dexteel/mesf-core 7.5.2 → 7.7.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +21 -0
- package/GEMINI.md +92 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +823 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/sp-executor/SPExecutorPage.d.ts +2 -0
- package/dist/pages/sp-executor/components/DynamicParameterForm.d.ts +9 -0
- package/dist/pages/sp-executor/components/PinGate.d.ts +6 -0
- package/dist/pages/sp-executor/components/ResultsList.d.ts +9 -0
- package/dist/pages/sp-executor/components/SPAutocomplete.d.ts +11 -0
- package/dist/pages/sp-executor/index.d.ts +2 -0
- package/dist/pages/sp-executor/models/SPExecutorModels.d.ts +37 -0
- package/dist/pages/sp-executor/repositories/SPExecutorRepository.d.ts +3 -0
- package/dist/pages/trendings-v2/components/chart/components/modals/BitSelectorModal.d.ts +11 -0
- package/dist/pages/trendings-v2/components/chart/models/TrendingModelsV2.d.ts +6 -0
- package/package.json +6 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ParameterFormState, SPParameter } from "../models/SPExecutorModels";
|
|
3
|
+
type Props = {
|
|
4
|
+
parameters: SPParameter[];
|
|
5
|
+
onExecute: (params: ParameterFormState[]) => void;
|
|
6
|
+
isExecuting: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const DynamicParameterForm: ({ parameters, onExecute, isExecuting, }: Props) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ExecutionResult } from "../models/SPExecutorModels";
|
|
3
|
+
type Props = {
|
|
4
|
+
results: ExecutionResult[];
|
|
5
|
+
onDeleteResult: (id: string) => void;
|
|
6
|
+
onClearAll: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ResultsList: ({ results, onDeleteResult, onClearAll }: Props) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoredProcedure } from "../models/SPExecutorModels";
|
|
3
|
+
type Props = {
|
|
4
|
+
procedures: StoredProcedure[];
|
|
5
|
+
value: StoredProcedure | null;
|
|
6
|
+
onChange: (value: StoredProcedure | null) => void;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const SPAutocomplete: ({ procedures, value, onChange, isLoading, disabled, }: Props) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface StoredProcedure {
|
|
2
|
+
SchemaName: string;
|
|
3
|
+
ProcedureName: string;
|
|
4
|
+
FullName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SPParameter {
|
|
7
|
+
FullName: string;
|
|
8
|
+
ParameterName: string;
|
|
9
|
+
DataType: string;
|
|
10
|
+
MaxLength: number;
|
|
11
|
+
Precision: number;
|
|
12
|
+
Scale: number;
|
|
13
|
+
IsOptional: boolean;
|
|
14
|
+
HasDefault: boolean;
|
|
15
|
+
ParameterOrder: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ParameterFormState {
|
|
18
|
+
parameterName: string;
|
|
19
|
+
include: boolean;
|
|
20
|
+
sendAsNull: boolean;
|
|
21
|
+
value: any;
|
|
22
|
+
dataType: string;
|
|
23
|
+
isOptional: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ExecutionResult {
|
|
26
|
+
id: string;
|
|
27
|
+
procedureName: string;
|
|
28
|
+
parameters: {
|
|
29
|
+
name: string;
|
|
30
|
+
value: any;
|
|
31
|
+
}[];
|
|
32
|
+
timestamp: Date;
|
|
33
|
+
duration: number;
|
|
34
|
+
data: any;
|
|
35
|
+
isError: boolean;
|
|
36
|
+
errorMessage?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type spParameter } from "../../../services";
|
|
2
|
+
export declare const getStoredProceduresWithParameters: (schemaFilter?: string) => Promise<import("../../../services").ResponseMESF>;
|
|
3
|
+
export declare const executeStoredProcedure: (procedureName: string, parameters: spParameter[]) => Promise<import("../../../services").ResponseMESF>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ViewTagsMap } from "../../models/TrendingModelsV2";
|
|
3
|
+
interface Props {
|
|
4
|
+
open: boolean;
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
viewTags: ViewTagsMap;
|
|
7
|
+
onAddBits: (sourceTagId: number, bitIndices: number[]) => void;
|
|
8
|
+
existingBitTags: Set<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare const BitSelectorModal: ({ open, handleClose, viewTags, onAddBits, existingBitTags, }: Props) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -10,6 +10,9 @@ export interface ViewTag {
|
|
|
10
10
|
Unit: string;
|
|
11
11
|
TagType: "A" | "D";
|
|
12
12
|
TagTypeCode?: string;
|
|
13
|
+
SourceTagId?: number;
|
|
14
|
+
BitIndex?: number;
|
|
15
|
+
IsBitExtracted?: boolean;
|
|
13
16
|
}
|
|
14
17
|
export interface View {
|
|
15
18
|
ViewId: number;
|
|
@@ -85,6 +88,9 @@ export interface TagTableRow {
|
|
|
85
88
|
max: number;
|
|
86
89
|
overallMin: number;
|
|
87
90
|
overallMax: number;
|
|
91
|
+
isBitExtracted?: boolean;
|
|
92
|
+
sourceTagId?: number;
|
|
93
|
+
bitIndex?: number;
|
|
88
94
|
}
|
|
89
95
|
export interface TagFromTree {
|
|
90
96
|
Tagkey: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexteel/mesf-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"author": "Dexteel Team",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@babel/runtime": "^7.17.2",
|
|
28
28
|
"@biomejs/biome": "^1.8.3",
|
|
29
29
|
"@react-spring/types": "^9.7.3",
|
|
30
|
+
"@react-spring/web": "^9.7.5",
|
|
30
31
|
"@reduxjs/toolkit": "^1.8.1",
|
|
31
32
|
"@rollup/plugin-babel": "^5.3.1",
|
|
32
33
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
"react-dom": "^18.3.1",
|
|
46
47
|
"react-hook-form": "^7.20.2",
|
|
47
48
|
"react-router-dom": "^6.30.1",
|
|
48
|
-
"@react-spring/web": "^9.7.5",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"rollup": "^2.79.0",
|
|
51
51
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"use-complex-state": "^1.1.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"date-fns": "^3.0.0 || ^4.0.0",
|
|
62
61
|
"@emotion/react": "^11.14.0",
|
|
63
62
|
"@emotion/styled": "^11.14.1",
|
|
64
63
|
"@mui/icons-material": "latest-v6",
|
|
@@ -66,18 +65,19 @@
|
|
|
66
65
|
"@mui/material": "latest-v6",
|
|
67
66
|
"@mui/styles": "latest-v6",
|
|
68
67
|
"@mui/x-data-grid": "latest-v7",
|
|
69
|
-
"@mui/x-tree-view": "latest-v7",
|
|
70
68
|
"@mui/x-date-pickers": "latest-v7",
|
|
69
|
+
"@mui/x-tree-view": "latest-v7",
|
|
70
|
+
"@react-spring/web": "^9.7.5",
|
|
71
71
|
"@reduxjs/toolkit": "^1.6.2",
|
|
72
72
|
"ag-grid-community": "^33.3.1",
|
|
73
73
|
"ag-grid-enterprise": "^33.3.1",
|
|
74
74
|
"ag-grid-react": "^33.3.1",
|
|
75
|
+
"date-fns": "^3.0.0 || ^4.0.0",
|
|
75
76
|
"moment": "^2.29.1",
|
|
76
77
|
"prop-types": "^15.8.1",
|
|
77
78
|
"react": "^18.3.1",
|
|
78
79
|
"react-dom": "^18.3.1",
|
|
79
80
|
"react-router-dom": "^6.30.1",
|
|
80
|
-
"@react-spring/web": "^9.7.5",
|
|
81
81
|
"rimraf": "^3.0.2",
|
|
82
82
|
"string-to-color": "^2.2.2",
|
|
83
83
|
"use-complex-state": "^1.1.0"
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"react-helmet-async": "^2.0.5",
|
|
116
116
|
"react-is": "^18.3.1",
|
|
117
117
|
"react-markdown-editor-lite": "^1.3.4",
|
|
118
|
+
"react-resizable-panels": "^4.0.8",
|
|
118
119
|
"string-to-color": "^2.2.2",
|
|
119
120
|
"windows-iana": "^5.1.0"
|
|
120
121
|
},
|