@vehicle-sil/gui-client 0.5.0 → 0.6.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.ja.md +452 -744
- package/README.md +451 -741
- package/dist/elements.js +656 -47
- package/dist/empty.js +2 -0
- package/dist/index.js +3202 -1813
- package/package.json +13 -1
- package/timeline/vehicle-sil-timeline.d.ts +76 -0
- package/timeline/vehicle-sil-timeline.js +817 -139
- package/timeline/vehicle-sil-timeline.mjs +817 -139
- package/types/client.d.ts +13 -0
- package/types/connection.d.ts +10 -2
- package/types/elements/contracts.d.ts +112 -0
- package/types/elements/index.d.ts +5 -3
- package/types/elements/outside-parts.d.ts +5 -0
- package/types/elements/page-intent.d.ts +1 -1
- package/types/elements/part.d.ts +11 -4
- package/types/elements/run-parts.d.ts +19 -0
- package/types/elements/scenario-parts.d.ts +5 -1
- package/types/elements/variable-parts.d.ts +58 -11
- package/types/frameworks/all-contracts.d.ts +18 -0
- package/types/frameworks/react.d.ts +40 -0
- package/types/frameworks/svelte.d.ts +22 -0
- package/types/frameworks/vue.d.ts +35 -0
- package/types/front-actions.d.ts +18 -0
- package/types/front-types.d.ts +63 -8
- package/types/front-variable.d.ts +5 -0
- package/types/front.d.ts +11 -24
- package/types/http.d.ts +2 -0
- package/types/index.d.ts +4 -4
- package/types/protocol/launcher.d.ts +70 -1
- package/types/protocol/server.d.ts +36 -1
- package/types/session-state.d.ts +7 -1
- package/types/variable-binding.d.ts +3 -1
- package/types/variables.d.ts +92 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vehicle-sil/gui-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Client library of the vehicle-sil GUI server: connection, run and time control, ECU variables. No dependencies; browser and Node.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,6 +21,18 @@
|
|
|
21
21
|
"./timeline": {
|
|
22
22
|
"types": "./timeline/vehicle-sil-timeline.d.ts",
|
|
23
23
|
"default": "./timeline/vehicle-sil-timeline.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./react": {
|
|
26
|
+
"types": "./types/frameworks/react.d.ts",
|
|
27
|
+
"default": "./dist/empty.js"
|
|
28
|
+
},
|
|
29
|
+
"./vue": {
|
|
30
|
+
"types": "./types/frameworks/vue.d.ts",
|
|
31
|
+
"default": "./dist/empty.js"
|
|
32
|
+
},
|
|
33
|
+
"./svelte": {
|
|
34
|
+
"types": "./types/frameworks/svelte.d.ts",
|
|
35
|
+
"default": "./dist/empty.js"
|
|
24
36
|
}
|
|
25
37
|
},
|
|
26
38
|
"types": "./types/index.d.ts",
|
|
@@ -16,6 +16,39 @@ export type VehicleSilTimelineMessages = Record<
|
|
|
16
16
|
export type VehicleSilTimelinePart =
|
|
17
17
|
'header' | 'summary' | 'toolbar' | 'help' | 'steps' | 'readout' | 'legend' | 'tables';
|
|
18
18
|
|
|
19
|
+
/** One comparison in a step's watch condition (constant value or right-hand variable). */
|
|
20
|
+
export interface VehicleSilTimelineComparison {
|
|
21
|
+
op: string;
|
|
22
|
+
/** Constant value compared against; null when `variable` names a right-hand variable. */
|
|
23
|
+
value: boolean | number | null;
|
|
24
|
+
/** Right-hand variable (`<participant>.<name>`) when comparing two variables; omitted for constants. */
|
|
25
|
+
variable?: string;
|
|
26
|
+
/** Tolerance for `near`; null for other operators. */
|
|
27
|
+
tolerance: number | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** One variable condition watched by a step. */
|
|
31
|
+
export interface VehicleSilTimelineWatchCondition {
|
|
32
|
+
variable: string;
|
|
33
|
+
compare: VehicleSilTimelineComparison[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** A right-hand variable's value and sample time recorded on a failed condition. */
|
|
37
|
+
export interface VehicleSilTimelineFailedCompared {
|
|
38
|
+
variable: string;
|
|
39
|
+
value: boolean | number | null;
|
|
40
|
+
sample_ms: number | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** One unmet condition recorded in a failed step. */
|
|
44
|
+
export interface VehicleSilTimelineFailedCondition {
|
|
45
|
+
condition: number;
|
|
46
|
+
value: boolean | number | null;
|
|
47
|
+
sample_ms: number | null;
|
|
48
|
+
/** Right-hand variables of failed comparisons on this condition; omitted when none failed. */
|
|
49
|
+
compared?: VehicleSilTimelineFailedCompared[];
|
|
50
|
+
}
|
|
51
|
+
|
|
19
52
|
export interface VehicleSilTimelineLoadDetail {
|
|
20
53
|
/** The file's name (file-name, or the name the server gives), or null. */
|
|
21
54
|
file: string | null;
|
|
@@ -101,6 +134,49 @@ export interface VehicleSilTimelineElement extends HTMLElement {
|
|
|
101
134
|
): void;
|
|
102
135
|
}
|
|
103
136
|
|
|
137
|
+
/** HTML attributes accepted by `<vehicle-sil-timeline>`. */
|
|
138
|
+
export interface VehicleSilTimelineAttributes {
|
|
139
|
+
src?: string;
|
|
140
|
+
'file-name'?: string;
|
|
141
|
+
cursor?: string | number;
|
|
142
|
+
step?: string | number;
|
|
143
|
+
from?: string | number;
|
|
144
|
+
to?: string | number;
|
|
145
|
+
variables?: string;
|
|
146
|
+
hide?: string;
|
|
147
|
+
compact?: boolean | '';
|
|
148
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** JS properties accepted by `<vehicle-sil-timeline>`. */
|
|
152
|
+
export interface VehicleSilTimelineProperties {
|
|
153
|
+
src?: string;
|
|
154
|
+
fileName?: string;
|
|
155
|
+
data?: string | object | null;
|
|
156
|
+
token?: string | null;
|
|
157
|
+
headers?: Record<string, string> | null;
|
|
158
|
+
cursor?: number | null;
|
|
159
|
+
step?: number | null;
|
|
160
|
+
from?: number | null;
|
|
161
|
+
to?: number | null;
|
|
162
|
+
variables?: string[] | null;
|
|
163
|
+
labels?: Record<string, string> | null;
|
|
164
|
+
hide?: string;
|
|
165
|
+
compact?: boolean;
|
|
166
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
167
|
+
messages?: VehicleSilTimelineMessages | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** Single-source contract entry of `<vehicle-sil-timeline>` for framework type adapters. */
|
|
171
|
+
export interface VehicleSilTimelineContract {
|
|
172
|
+
readonly 'vehicle-sil-timeline': {
|
|
173
|
+
readonly element: VehicleSilTimelineElement;
|
|
174
|
+
readonly attrs: VehicleSilTimelineAttributes;
|
|
175
|
+
readonly props: VehicleSilTimelineProperties;
|
|
176
|
+
readonly events: VehicleSilTimelineEventMap;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
104
180
|
declare global {
|
|
105
181
|
interface HTMLElementTagNameMap {
|
|
106
182
|
'vehicle-sil-timeline': VehicleSilTimelineElement;
|