@yamcs/opi 1.2.8 → 1.2.10
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/dist/opi.js +1 -1
- package/dist/opi.js.map +1 -1
- package/dist/types/XMLNode.d.ts +3 -0
- package/dist/types/actions/RunCommandAction.d.ts +12 -0
- package/dist/types/actions/RunProcedureAction.d.ts +12 -0
- package/dist/types/events.d.ts +20 -0
- package/dist/types/properties.d.ts +4 -0
- package/package.json +2 -2
package/dist/types/XMLNode.d.ts
CHANGED
|
@@ -70,6 +70,9 @@ export declare class XMLNode {
|
|
|
70
70
|
y: number;
|
|
71
71
|
}[];
|
|
72
72
|
getStringList(name: string): string[];
|
|
73
|
+
getStringMap(name: string): {
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
};
|
|
73
76
|
getStringTable(name: string): string[][];
|
|
74
77
|
getScripts(name: string): ScriptSet;
|
|
75
78
|
getScaleOptions(name: string): ScaleOptions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class RunCommandAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get command(): string;
|
|
7
|
+
get args(): {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
get confirmMessage(): string;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class RunProcedureAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get procedure(): string;
|
|
7
|
+
get args(): {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
get confirmMessage(): string;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
package/dist/types/events.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface OPIEventMap {
|
|
|
6
6
|
closedisplay: CloseDisplayEvent;
|
|
7
7
|
opendisplay: OpenDisplayEvent;
|
|
8
8
|
openpv: OpenPVEvent;
|
|
9
|
+
runcommand: RunCommandEvent;
|
|
10
|
+
runprocedure: RunProcedureEvent;
|
|
9
11
|
selection: SelectionEvent;
|
|
10
12
|
scale: ScaleEvent;
|
|
11
13
|
}
|
|
@@ -30,6 +32,24 @@ export interface OpenPVEvent extends OPIEvent {
|
|
|
30
32
|
*/
|
|
31
33
|
export interface CloseDisplayEvent extends OPIEvent {
|
|
32
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* A script or a button requested to run a command.
|
|
37
|
+
*/
|
|
38
|
+
export interface RunCommandEvent extends OPIEvent {
|
|
39
|
+
command: string;
|
|
40
|
+
args: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A script or a button requested to run a procedure.
|
|
46
|
+
*/
|
|
47
|
+
export interface RunProcedureEvent extends OPIEvent {
|
|
48
|
+
procedure: string;
|
|
49
|
+
args: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
33
53
|
/**
|
|
34
54
|
* This display scale has changed.
|
|
35
55
|
*/
|
|
@@ -79,6 +79,10 @@ export declare class ScriptsProperty extends Property<ScriptSet> {
|
|
|
79
79
|
}
|
|
80
80
|
export declare class StringListProperty extends Property<string[]> {
|
|
81
81
|
}
|
|
82
|
+
export declare class StringMapProperty extends Property<{
|
|
83
|
+
[key: string]: string;
|
|
84
|
+
}> {
|
|
85
|
+
}
|
|
82
86
|
export declare class StringTableProperty extends Property<string[][]> {
|
|
83
87
|
}
|
|
84
88
|
export declare class RulesProperty extends Property<RuleSet> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamcs/opi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "OPI Display Renderer",
|
|
5
5
|
"author": "Yamcs Team <yamcs@spaceapplications.com>",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"peggy": "^3.0.2",
|
|
32
32
|
"rollup": "^3.3.0",
|
|
33
33
|
"rollup-plugin-copy": "^3.3.0",
|
|
34
|
-
"rollup-plugin-typescript2": "^0.
|
|
34
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
35
35
|
"typescript": "^5.1.3"
|
|
36
36
|
}
|
|
37
37
|
}
|