@vuu-ui/vuu-data-remote 0.10.8 → 0.10.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/cjs/VuuDataSource.js +0 -1
- package/cjs/VuuDataSource.js.map +1 -1
- package/cjs/WebSocketConnection.js.map +1 -1
- package/cjs/index.js +1 -0
- package/cjs/index.js.map +1 -1
- package/cjs/inlined-worker.js +78 -38
- package/cjs/inlined-worker.js.map +1 -1
- package/cjs/message-utils.js +39 -1
- package/cjs/message-utils.js.map +1 -1
- package/esm/VuuDataSource.js +0 -1
- package/esm/VuuDataSource.js.map +1 -1
- package/esm/WebSocketConnection.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/inlined-worker.js +78 -38
- package/esm/inlined-worker.js.map +1 -1
- package/esm/message-utils.js +39 -2
- package/esm/message-utils.js.map +1 -1
- package/package.json +10 -13
- package/types/ConnectionManager.d.ts +0 -33
- package/types/DedicatedWorker.d.ts +0 -9
- package/types/VuuDataSource.d.ts +0 -53
- package/types/WebSocketConnection.d.ts +0 -68
- package/types/authenticate.d.ts +0 -1
- package/types/constants.d.ts +0 -41
- package/types/data-source.d.ts +0 -5
- package/types/index.d.ts +0 -9
- package/types/inlined-worker.d.ts +0 -1
- package/types/message-utils.d.ts +0 -10
- package/types/rest-data/RestDataSource.d.ts +0 -42
- package/types/rest-data/moving-window.d.ts +0 -14
- package/types/rest-data/rest-utils.d.ts +0 -14
- package/types/server-proxy/array-backed-moving-window.d.ts +0 -28
- package/types/server-proxy/messages.d.ts +0 -38
- package/types/server-proxy/rpc-services.d.ts +0 -2
- package/types/server-proxy/server-proxy.d.ts +0 -64
- package/types/server-proxy/viewport.d.ts +0 -118
- package/types/worker.d.ts +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export declare const CHANGE_VP_SUCCESS = "CHANGE_VP_SUCCESS";
|
|
2
|
-
export declare const CHANGE_VP_RANGE_SUCCESS = "CHANGE_VP_RANGE_SUCCESS";
|
|
3
|
-
export declare const CLOSE_TREE_NODE = "CLOSE_TREE_NODE";
|
|
4
|
-
export declare const CLOSE_TREE_SUCCESS = "CLOSE_TREE_SUCCESS";
|
|
5
|
-
export declare const CLOSE_TREE_REJECT = "CLOSE_TREE_REJECT";
|
|
6
|
-
export declare const CREATE_VISUAL_LINK = "CREATE_VISUAL_LINK";
|
|
7
|
-
export declare const CREATE_VP = "CREATE_VP";
|
|
8
|
-
export declare const DISABLE_VP = "DISABLE_VP";
|
|
9
|
-
export declare const DISABLE_VP_SUCCESS = "DISABLE_VP_SUCCESS";
|
|
10
|
-
export declare const DISABLE_VP_REJECT = "DISABLE_VP_REJECT";
|
|
11
|
-
export declare const ENABLE_VP = "ENABLE_VP";
|
|
12
|
-
export declare const ENABLE_VP_SUCCESS = "ENABLE_VP_SUCCESS";
|
|
13
|
-
export declare const ENABLE_VP_REJECT = "ENABLE_VP_REJECT";
|
|
14
|
-
export declare const GET_TABLE_META = "GET_TABLE_META";
|
|
15
|
-
export declare const GET_VP_VISUAL_LINKS = "GET_VP_VISUAL_LINKS";
|
|
16
|
-
export declare const GET_VIEW_PORT_MENUS = "GET_VIEW_PORT_MENUS";
|
|
17
|
-
export declare const VIEW_PORT_MENUS_SELECT_RPC = "VIEW_PORT_MENUS_SELECT_RPC";
|
|
18
|
-
export declare const VIEW_PORT_MENU_CELL_RPC = "VIEW_PORT_MENU_CELL_RPC";
|
|
19
|
-
export declare const VIEW_PORT_MENU_TABLE_RPC = "VIEW_PORT_MENU_TABLE_RPC";
|
|
20
|
-
export declare const VIEW_PORT_MENU_ROW_RPC = "VIEW_PORT_MENU_ROW_RPC";
|
|
21
|
-
export declare const VIEW_PORT_MENU_RESP = "VIEW_PORT_MENU_RESP";
|
|
22
|
-
export declare const VIEW_PORT_MENU_REJ = "VIEW_PORT_MENU_REJ";
|
|
23
|
-
export declare const HB = "HB";
|
|
24
|
-
export declare const HB_RESP = "HB_RESP";
|
|
25
|
-
export declare const LOGIN = "LOGIN";
|
|
26
|
-
export declare const OPEN_TREE_NODE = "OPEN_TREE_NODE";
|
|
27
|
-
export declare const OPEN_TREE_SUCCESS = "OPEN_TREE_SUCCESS";
|
|
28
|
-
export declare const OPEN_TREE_REJECT = "OPEN_TREE_REJECT";
|
|
29
|
-
export declare const REMOVE_VP = "REMOVE_VP";
|
|
30
|
-
export declare const REMOVE_VP_REJECT = "REMOVE_VP_REJECT";
|
|
31
|
-
export declare const RPC_CALL = "RPC_CALL";
|
|
32
|
-
export declare const RPC_RESP = "RPC_RESP";
|
|
33
|
-
export declare const MENU_RPC_RESP = "MENU_RPC_RESP";
|
|
34
|
-
export declare const SET_SELECTION = "SET_SELECTION";
|
|
35
|
-
export declare const SET_SELECTION_SUCCESS = "SET_SELECTION_SUCCESS";
|
|
36
|
-
export declare const TABLE_ROW = "TABLE_ROW";
|
|
37
|
-
export declare const SIZE = "SIZE";
|
|
38
|
-
export declare const UPDATE = "U";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { DataSourceCallbackMessage, ServerProxySubscribeMessage, VuuUIMessageIn, VuuUIMessageOut, VuuUIMessageOutConnect, VuuUIMessageOutSubscribe, VuuUIMessageOutUnsubscribe, WithRequestId } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import type { VuuRpcMenuRequest, VuuClientMessage, VuuServerMessage, VuuLinkDescriptor, VuuRpcServiceRequest, VuuTable, VuuCreateVisualLink, VuuRemoveVisualLink } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { WebSocketConnection } from "../WebSocketConnection";
|
|
4
|
-
export type PostMessageToClientCallback = (message: VuuUIMessageIn | DataSourceCallbackMessage) => void;
|
|
5
|
-
export type MessageOptions = {
|
|
6
|
-
module?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const TEST_setRequestId: (id: number) => number;
|
|
9
|
-
export declare class ServerProxy {
|
|
10
|
-
private connection;
|
|
11
|
-
private postMessageToClient;
|
|
12
|
-
private viewports;
|
|
13
|
-
private mapClientToServerViewport;
|
|
14
|
-
private authToken;
|
|
15
|
-
private user;
|
|
16
|
-
private pendingLogin?;
|
|
17
|
-
private pendingRequests;
|
|
18
|
-
private sessionId?;
|
|
19
|
-
private queuedRequests;
|
|
20
|
-
private cachedTableMetaRequests;
|
|
21
|
-
private cachedTableSchemas;
|
|
22
|
-
private tableList;
|
|
23
|
-
constructor(connection: WebSocketConnection, callback: PostMessageToClientCallback);
|
|
24
|
-
private reconnect;
|
|
25
|
-
login(authToken?: string, user?: string): Promise<string | void>;
|
|
26
|
-
disconnect(): void;
|
|
27
|
-
subscribe(message: ServerProxySubscribeMessage): void;
|
|
28
|
-
/**
|
|
29
|
-
* Currently we only queue range requests, this may change
|
|
30
|
-
*/
|
|
31
|
-
private addRequestToQueue;
|
|
32
|
-
private processQueuedRequests;
|
|
33
|
-
unsubscribe(clientViewportId: string): void;
|
|
34
|
-
private getViewportForClient;
|
|
35
|
-
/**********************************************************************/
|
|
36
|
-
/**********************************************************************/
|
|
37
|
-
private setViewRange;
|
|
38
|
-
private setConfig;
|
|
39
|
-
private setTitle;
|
|
40
|
-
private select;
|
|
41
|
-
private disableViewport;
|
|
42
|
-
private enableViewport;
|
|
43
|
-
private suspendViewport;
|
|
44
|
-
private resumeViewport;
|
|
45
|
-
private openTreeNode;
|
|
46
|
-
private closeTreeNode;
|
|
47
|
-
private createLink;
|
|
48
|
-
private removeLink;
|
|
49
|
-
private updateTitleOnVisualLinks;
|
|
50
|
-
private removeViewportFromVisualLinks;
|
|
51
|
-
private menuRpcCall;
|
|
52
|
-
private viewportRpcCall;
|
|
53
|
-
private rpcCall;
|
|
54
|
-
handleMessageFromClient(message: Exclude<VuuUIMessageOut, VuuUIMessageOutConnect | VuuUIMessageOutSubscribe | VuuUIMessageOutUnsubscribe> | WithRequestId<VuuRpcServiceRequest> | WithRequestId<VuuRpcMenuRequest> | WithRequestId<VuuCreateVisualLink> | WithRequestId<VuuRemoveVisualLink>): void;
|
|
55
|
-
private getTableMeta;
|
|
56
|
-
private awaitResponseToMessage;
|
|
57
|
-
sendIfReady(message: VuuClientMessage["body"], requestId: string, isReady?: boolean): boolean;
|
|
58
|
-
sendMessageToServer(body: VuuClientMessage["body"], requestId?: string, options?: MessageOptions): void;
|
|
59
|
-
handleMessageFromServer(message: VuuServerMessage): void;
|
|
60
|
-
private cacheTableMeta;
|
|
61
|
-
isTableOpen(table?: VuuTable): true | undefined;
|
|
62
|
-
getActiveLinks(linkDescriptors: VuuLinkDescriptor[]): VuuLinkDescriptor[];
|
|
63
|
-
processUpdates(): void;
|
|
64
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { DataSourceFilter, DataSourceRow, DataSourceCallbackMessage, DataSourceDebounceRequest, DataSourceDisabledMessage, DataSourceEnabledMessage, DataSourceMenusMessage, DataSourceSetConfigMessage, DataSourceSubscribedMessage, DataSourceVisualLinkCreatedMessage, DataSourceVisualLinkRemovedMessage, DataSourceVisualLinksMessage, DataUpdateMode, Selection, TableSchema, WithFullConfig, ServerProxySubscribeMessage, VuuUIMessageOutOpenTreeNode, VuuUIMessageOutCloseTreeNode, WithRequestId } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { VuuViewportChangeRequest, ClientToServerCloseTreeNode, VuuCreateVisualLink, VuuViewportCreateRequest, ClientToServerDisable, ClientToServerEnable, ClientToServerOpenTreeNode, VuuRemoveVisualLink, ClientToServerSelection, VuuViewportRangeRequest, LinkDescriptorWithLabel, VuuViewportCreateResponse, VuuMenu, VuuRange, VuuRow, VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
export type ViewportStatus = "" | "subscribing" | "resubscribing" | "subscribed";
|
|
4
|
-
interface Disable {
|
|
5
|
-
type: "disable";
|
|
6
|
-
}
|
|
7
|
-
interface Enable {
|
|
8
|
-
type: "enable";
|
|
9
|
-
}
|
|
10
|
-
interface ChangeViewportRange {
|
|
11
|
-
type: "CHANGE_VP_RANGE";
|
|
12
|
-
}
|
|
13
|
-
interface ViewportFilter {
|
|
14
|
-
data: DataSourceFilter;
|
|
15
|
-
type: "filter";
|
|
16
|
-
}
|
|
17
|
-
interface ConfigOperation {
|
|
18
|
-
data: WithFullConfig;
|
|
19
|
-
type: "config";
|
|
20
|
-
}
|
|
21
|
-
interface SelectionOperation {
|
|
22
|
-
data: Selection;
|
|
23
|
-
type: "selection";
|
|
24
|
-
}
|
|
25
|
-
type AsyncOperationWithData = ConfigOperation | ViewportFilter | SelectionOperation;
|
|
26
|
-
type AsyncOperation = AsyncOperationWithData | ChangeViewportRange | Disable | Enable | VuuCreateVisualLink | VuuRemoveVisualLink;
|
|
27
|
-
type RangeRequestTuple = [
|
|
28
|
-
VuuViewportRangeRequest | null,
|
|
29
|
-
DataSourceRow[]?,
|
|
30
|
-
DataSourceDebounceRequest?
|
|
31
|
-
];
|
|
32
|
-
type LinkedParent = {
|
|
33
|
-
colName: string;
|
|
34
|
-
parentViewportId: string;
|
|
35
|
-
parentColName: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const NO_DATA_UPDATE: Readonly<[undefined, undefined]>;
|
|
38
|
-
export declare class Viewport {
|
|
39
|
-
#private;
|
|
40
|
-
private aggregations;
|
|
41
|
-
/** batchMode is irrelevant for Vuu Table, it was introduced to try and improve rendering performance of AgGrid */
|
|
42
|
-
private batchMode;
|
|
43
|
-
private bufferSize;
|
|
44
|
-
private columns;
|
|
45
|
-
private dataWindow;
|
|
46
|
-
private filter;
|
|
47
|
-
private groupBy;
|
|
48
|
-
private sort;
|
|
49
|
-
private hasUpdates;
|
|
50
|
-
private pendingUpdates;
|
|
51
|
-
private keys;
|
|
52
|
-
private pendingLinkedParent?;
|
|
53
|
-
private pendingOperations;
|
|
54
|
-
private pendingRangeRequests;
|
|
55
|
-
private postMessageToClient;
|
|
56
|
-
private rowCountChanged;
|
|
57
|
-
private selectedRows;
|
|
58
|
-
private useBatchMode;
|
|
59
|
-
private lastUpdateStatus;
|
|
60
|
-
private updateThrottleTimer;
|
|
61
|
-
private rangeMonitor;
|
|
62
|
-
clientViewportId: string;
|
|
63
|
-
disabled: boolean;
|
|
64
|
-
isTree: boolean;
|
|
65
|
-
links?: LinkDescriptorWithLabel[];
|
|
66
|
-
linkedParent?: LinkedParent;
|
|
67
|
-
serverViewportId?: string;
|
|
68
|
-
suspended: boolean;
|
|
69
|
-
suspendTimer: number | null;
|
|
70
|
-
table: VuuTable;
|
|
71
|
-
title: string | undefined;
|
|
72
|
-
constructor({ aggregations, bufferSize, columns, filterSpec: filter, groupBy, table, range, sort, title, viewport, visualLink, }: ServerProxySubscribeMessage,
|
|
73
|
-
/**
|
|
74
|
-
* Viewport is given access to postMessageToClient in the event that it needs
|
|
75
|
-
* to send 'out of band' messageg, e.g cached SIZE messages when a timer
|
|
76
|
-
* expires
|
|
77
|
-
*/
|
|
78
|
-
postMessageToClient: (message: DataSourceCallbackMessage) => void);
|
|
79
|
-
private setLastSizeOnlyUpdateSize;
|
|
80
|
-
private setLastUpdate;
|
|
81
|
-
get hasUpdatesToProcess(): boolean;
|
|
82
|
-
get size(): number;
|
|
83
|
-
get clientRange(): VuuRange;
|
|
84
|
-
get status(): ViewportStatus;
|
|
85
|
-
set status(status: ViewportStatus);
|
|
86
|
-
subscribe(): VuuViewportCreateRequest;
|
|
87
|
-
handleSubscribed({ viewPortId, aggregations, columns, filterSpec: filter, range, sort, groupBy, table, }: VuuViewportCreateResponse, baseTableSchema: TableSchema): DataSourceSubscribedMessage;
|
|
88
|
-
awaitOperation(requestId: string, msg: AsyncOperation): void;
|
|
89
|
-
completeOperation(requestId: string, ...params: unknown[]): DataSourceSetConfigMessage | DataSourceDisabledMessage | DataSourceEnabledMessage | WithRequestId<DataSourceVisualLinkCreatedMessage> | WithRequestId<DataSourceVisualLinkRemovedMessage> | undefined;
|
|
90
|
-
rangeRequest(requestId: string, range: VuuRange): RangeRequestTuple;
|
|
91
|
-
setLinks(links: LinkDescriptorWithLabel[]): [DataSourceVisualLinksMessage, LinkDescriptorWithLabel | undefined];
|
|
92
|
-
setMenu(menu: VuuMenu): DataSourceMenusMessage;
|
|
93
|
-
openTreeNode(requestId: string, message: VuuUIMessageOutOpenTreeNode): ClientToServerOpenTreeNode;
|
|
94
|
-
closeTreeNode(requestId: string, message: VuuUIMessageOutCloseTreeNode): ClientToServerCloseTreeNode;
|
|
95
|
-
createLink(requestId: string, vuuCreateVisualLink: VuuCreateVisualLink): VuuCreateVisualLink;
|
|
96
|
-
removeLink(requestId: string): VuuRemoveVisualLink;
|
|
97
|
-
suspend(): void;
|
|
98
|
-
resume(): [number, DataSourceRow[]];
|
|
99
|
-
currentData(): DataSourceRow[];
|
|
100
|
-
enable(requestId: string): ClientToServerEnable;
|
|
101
|
-
disable(requestId: string): ClientToServerDisable;
|
|
102
|
-
setConfig(requestId: string, config: WithFullConfig): VuuViewportChangeRequest;
|
|
103
|
-
selectRequest(requestId: string, selected: Selection): ClientToServerSelection;
|
|
104
|
-
private removePendingRangeRequest;
|
|
105
|
-
private rangeRequestAlreadyPending;
|
|
106
|
-
updateRows(rows: VuuRow[]): void;
|
|
107
|
-
private getKeyForRowAtIndex;
|
|
108
|
-
getClientRows(): Readonly<[
|
|
109
|
-
DataSourceRow[] | undefined,
|
|
110
|
-
DataUpdateMode | undefined
|
|
111
|
-
]>;
|
|
112
|
-
private sendThrottledSizeMessage;
|
|
113
|
-
private shouldThrottleMessage;
|
|
114
|
-
private throttleMessage;
|
|
115
|
-
getNewRowCount: () => number | undefined;
|
|
116
|
-
createRequest(params: Partial<Omit<VuuViewportChangeRequest, "type" | "viewPortId">>, overWrite?: boolean): VuuViewportChangeRequest;
|
|
117
|
-
}
|
|
118
|
-
export {};
|
package/types/worker.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|