@vuu-ui/vuu-protocol-types 4.0.0-alpha.3 → 4.0.0-alpha.31
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/index.d.ts +59 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -42,10 +42,17 @@ export interface VuuLoginRequest {
|
|
|
42
42
|
type: "LOGIN";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
/**
|
|
46
|
+
* How a module can be added to a workspace. A module is listed in the
|
|
47
|
+
* workspace palette only if its descriptor includes this.
|
|
48
|
+
*/
|
|
49
|
+
export interface VuuModuleWorkspaceDescriptor {
|
|
50
|
+
/** Heading of the palette group the module is listed under. */
|
|
51
|
+
paletteGroup: string;
|
|
52
|
+
/** Palette icon as a data URL. Defaults to `navIconUrl`. */
|
|
53
|
+
iconUrl?: string;
|
|
54
|
+
/** Initial size, in grid tracks, of an item added to a workspace. */
|
|
55
|
+
defaultSize?: { cols?: number; rows?: number };
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export interface VuuModuleDescriptor {
|
|
@@ -53,22 +60,53 @@ export interface VuuModuleDescriptor {
|
|
|
53
60
|
description: string;
|
|
54
61
|
enabled?: boolean;
|
|
55
62
|
id: number | string;
|
|
56
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Identifier for an icon that must be provided through CSS.
|
|
65
|
+
*/
|
|
66
|
+
navIconName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Full icon encapsulated in a data URL, represented as SVG or base64-encoded SVG.
|
|
69
|
+
*/
|
|
70
|
+
navIconUrl?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Key of a live badge source, e.g. `"workingOrders"`. The application maps
|
|
73
|
+
* it to a value; the portal does not interpret it.
|
|
74
|
+
*/
|
|
75
|
+
navBadge?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Where the module appears in the navigation. Optional for a palette-only
|
|
78
|
+
* module, i.e. one with `workspace` metadata that is only added to
|
|
79
|
+
* workspaces from the Panels palette.
|
|
80
|
+
*/
|
|
81
|
+
navLocation?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Order within the module's navigation section, lowest first. Modules
|
|
84
|
+
* without a value follow those with one, in registration order.
|
|
85
|
+
*/
|
|
86
|
+
navOrder?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Notification topics the module claims, e.g. `["orders"]`.
|
|
89
|
+
*/
|
|
90
|
+
notificationTopics?: string[];
|
|
57
91
|
accessRole: string;
|
|
58
92
|
mfComponent: string;
|
|
59
93
|
mfScope: string;
|
|
60
94
|
mfUrl: string;
|
|
61
95
|
name: string;
|
|
62
|
-
|
|
96
|
+
/**
|
|
97
|
+
* The module's route. Optional for a palette-only module, which has no
|
|
98
|
+
* route and no navigation entry.
|
|
99
|
+
*/
|
|
100
|
+
path?: string;
|
|
63
101
|
title: string;
|
|
64
102
|
version: number;
|
|
65
|
-
|
|
103
|
+
/** Set to make the module available in the workspace palette. */
|
|
104
|
+
workspace?: VuuModuleWorkspaceDescriptor;
|
|
66
105
|
}
|
|
67
106
|
|
|
68
107
|
export interface VuuModuleRecord extends VuuModuleDescriptor {
|
|
69
108
|
enabled: boolean;
|
|
70
109
|
id: number;
|
|
71
|
-
vuu: VuuModuleConnection;
|
|
72
110
|
}
|
|
73
111
|
|
|
74
112
|
export interface VuuModuleRegistry {
|
|
@@ -242,7 +280,9 @@ export interface VuuViewportRangeReject {
|
|
|
242
280
|
viewPortId: string;
|
|
243
281
|
}
|
|
244
282
|
|
|
245
|
-
export type VuuViewportRangeResponse =
|
|
283
|
+
export type VuuViewportRangeResponse =
|
|
284
|
+
| VuuViewportRangeSuccess
|
|
285
|
+
| VuuViewportRangeReject;
|
|
246
286
|
|
|
247
287
|
export interface VuuViewportDisableRequest {
|
|
248
288
|
type: "DISABLE_VP";
|
|
@@ -339,11 +379,11 @@ export declare type SelectRowResponse = SelectRowSuccess | SelectRowReject;
|
|
|
339
379
|
export declare interface SelectSuccessWithRowCount {
|
|
340
380
|
selectedRowCount: number;
|
|
341
381
|
type:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
382
|
+
| "SELECT_ROW_SUCCESS"
|
|
383
|
+
| "DESELECT_ROW_SUCCESS"
|
|
384
|
+
| "SELECT_ROW_RANGE_SUCCESS"
|
|
385
|
+
| "SELECT_ALL_SUCCESS"
|
|
386
|
+
| "DESELECT_ALL_SUCCESS";
|
|
347
387
|
}
|
|
348
388
|
|
|
349
389
|
export interface SelectRowSuccess extends SelectSuccessWithRowCount {
|
|
@@ -609,7 +649,11 @@ export declare type EditCellRpcServiceRequest = {
|
|
|
609
649
|
};
|
|
610
650
|
|
|
611
651
|
export declare type BeginEditSessionParams = {
|
|
612
|
-
editSessionMode?:
|
|
652
|
+
editSessionMode?:
|
|
653
|
+
| "inline-all-rows"
|
|
654
|
+
| "all-rows"
|
|
655
|
+
| "selected-rows"
|
|
656
|
+
| "empty-session-table";
|
|
613
657
|
};
|
|
614
658
|
export declare type BeginEditSessionRpcServiceRequest = {
|
|
615
659
|
context: ViewportRpcContext;
|