@cmusei/console-forge 0.20.6 → 0.21.2
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/fesm2022/cmusei-console-forge.mjs +359 -346
- package/fesm2022/cmusei-console-forge.mjs.map +1 -1
- package/package.json +5 -5
- package/types/cmusei-console-forge.d.ts +343 -0
- package/index.d.ts +0 -5
- package/lib/components/console/console.component.d.ts +0 -59
- package/lib/components/console-status/console-status.component.d.ts +0 -12
- package/lib/components/console-tile/console-tile.component.d.ts +0 -20
- package/lib/components/console-toolbar/console-toolbar.component.d.ts +0 -53
- package/lib/components/console-toolbar-default/console-toolbar-default-button/console-toolbar-default-button.component.d.ts +0 -13
- package/lib/components/console-toolbar-default/console-toolbar-default.component.d.ts +0 -43
- package/lib/config/console-forge-config.d.ts +0 -28
- package/lib/config/provide-console-forge.d.ts +0 -4
- package/lib/directives/apply-toolbar-theme.directive.d.ts +0 -8
- package/lib/directives/class-on-hover.directive.d.ts +0 -10
- package/lib/injection/window.injection-token.d.ts +0 -2
- package/lib/models/console-client-type.d.ts +0 -1
- package/lib/models/console-component-config.d.ts +0 -30
- package/lib/models/console-component-network-config.d.ts +0 -5
- package/lib/models/console-connection-options.d.ts +0 -7
- package/lib/models/console-connection-status.d.ts +0 -1
- package/lib/models/console-credentials.d.ts +0 -4
- package/lib/models/console-network-connection-request.d.ts +0 -4
- package/lib/models/console-network-disconnection-request.d.ts +0 -7
- package/lib/models/console-power-request.d.ts +0 -1
- package/lib/models/console-supported-features.d.ts +0 -40
- package/lib/models/console-toolbar-component-base.d.ts +0 -5
- package/lib/models/console-toolbar-context.d.ts +0 -39
- package/lib/models/console-toolbar-position.d.ts +0 -1
- package/lib/models/console-toolbar-theme.d.ts +0 -1
- package/lib/models/console-user-settings.d.ts +0 -13
- package/lib/models/log-level.d.ts +0 -6
- package/lib/services/blob-downloader.service.d.ts +0 -7
- package/lib/services/browser-notifications/browser-notifications.service.d.ts +0 -10
- package/lib/services/browser-notifications/send-browser-notification.d.ts +0 -9
- package/lib/services/canvas-recorder/canvas-recorder.service.d.ts +0 -14
- package/lib/services/canvas-recorder/canvas-recording-settings.d.ts +0 -9
- package/lib/services/canvas-recorder/canvas-recording.d.ts +0 -12
- package/lib/services/canvas.service.d.ts +0 -9
- package/lib/services/clipboard/clipboard.helpers.d.ts +0 -8
- package/lib/services/clipboard/clipboard.service.d.ts +0 -21
- package/lib/services/console-clients/console-client-factory.service.d.ts +0 -9
- package/lib/services/console-clients/console-client.service.d.ts +0 -24
- package/lib/services/console-clients/vmware/vmware-console-client.service.d.ts +0 -41
- package/lib/services/console-clients/vnc-console-client/vnc-console-client.service.d.ts +0 -36
- package/lib/services/full-screen.service.d.ts +0 -13
- package/lib/services/logger.service.d.ts +0 -9
- package/lib/services/object.helpers.d.ts +0 -4
- package/lib/services/pico-css.service.d.ts +0 -8
- package/lib/services/user-settings.service.d.ts +0 -15
- package/lib/services/uuid.service.d.ts +0 -6
- package/lib/shims/vmware-mks.models.d.ts +0 -34
- package/lib/shims/vmware-wmks.shim.d.ts +0 -61
- package/public-api.d.ts +0 -20
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ClassOnHoverDirective {
|
|
4
|
-
applyClasses: import("@angular/core").InputSignal<string>;
|
|
5
|
-
directiveHost: ElementRef<any>;
|
|
6
|
-
protected handleMouseEnter(): void;
|
|
7
|
-
protected handleMouseLeave(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClassOnHoverDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClassOnHoverDirective, "[cfClassOnHover]", never, { "applyClasses": { "alias": "applyClasses"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ConsoleClientType = "vmware" | "vnc";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ConsoleCredentials } from "./console-credentials";
|
|
2
|
-
import { ConsoleClientType } from "./console-client-type";
|
|
3
|
-
export interface ConsoleComponentConfig {
|
|
4
|
-
/**
|
|
5
|
-
* If true, the client will attempt to set control focus on the console session after connection. Defaults to false.
|
|
6
|
-
*/
|
|
7
|
-
autoFocusOnConnect?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the client that will be used to connect to the console (e.g. VNC, VMWare WMKS, etc.) Note that
|
|
10
|
-
* you can configure a default for all ConsoleForge consoles in your app or module by using the `provideConsoleForgeConfig`
|
|
11
|
-
* provider.
|
|
12
|
-
*/
|
|
13
|
-
consoleClientType?: ConsoleClientType;
|
|
14
|
-
/**
|
|
15
|
-
* An optional identifier for this console. ConsoleForge doesn't use this value internally at all, but some of its events
|
|
16
|
-
* (e.g. reconnect requests) will return this configuration to you. You may want to set this identifier to something that allows
|
|
17
|
-
* you to uniquely identify the console so you can handle its events as desired.
|
|
18
|
-
*/
|
|
19
|
-
consoleId?: string;
|
|
20
|
-
/**
|
|
21
|
-
* An optional username, password, or sessionId to use to authenticate to the console. Configuration here is specific
|
|
22
|
-
* to the protocol being used and the configuration of the target virtual console. See ConsoleForge's documentation
|
|
23
|
-
* for details.
|
|
24
|
-
*/
|
|
25
|
-
credentials?: ConsoleCredentials;
|
|
26
|
-
/**
|
|
27
|
-
* The URL of the console's accessible web socket interface.
|
|
28
|
-
*/
|
|
29
|
-
url: string;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ConsoleConnectionStatus = "connected" | "connecting" | "disconnected";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ConsolePowerRequest = "reboot" | "rebootHard" | "shutdown";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export interface ConsoleSupportedFeatures {
|
|
2
|
-
/**
|
|
3
|
-
* This is basically a stupid kludge that is only here because VMWare's client has a very weird implementation of "copy".
|
|
4
|
-
*
|
|
5
|
-
* The VMWare "WMKS" client only emits clipboard events after the remote console's clipboard receives new data (i.e. you copy some content on the remote desktop)
|
|
6
|
-
* AND after the console canvas loses focus. That is, no matter how much copying you do, the client doesn't know about until the canvas housing the console
|
|
7
|
-
* is blurred.
|
|
8
|
-
*
|
|
9
|
-
* The downstream effect of this that, unlike with other protocols, we can't gracefully emit events when copies happen or automatically copy to your local
|
|
10
|
-
* clipboard in a reasonable way, because we can't know when the remote copy happened and if you really want it copied to your local CB or not. So when this
|
|
11
|
-
* flag is set to false (VMWare is the only service which does this), we show a panel in the default toolbar that you can manually copy content from and
|
|
12
|
-
* automatically receives the last "copy" event from the console.
|
|
13
|
-
*
|
|
14
|
-
* Yuck.
|
|
15
|
-
*/
|
|
16
|
-
clipboardAutomaticLocalCopy: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Indicates whether the remote console protocol allows us to write content directly to the clipboard of the remote machine.
|
|
19
|
-
*/
|
|
20
|
-
clipboardRemoteWrite: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Indicates whether there remote console offers an on-screen keyboard. (Hint: probably not. As far as we know, VMWare's WMKS is the only one that will do this.)
|
|
23
|
-
*/
|
|
24
|
-
onScreenKeyboard: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates whether the remote console protocol allows us to issue power requests (like restart, reboot, and hard reboot). This is typically a configuration detail
|
|
27
|
-
* of the machine, so we usually have to rely on the protocol-specific service to tell us whether the feature is enabled (see our VNC client, wrapping noVnc, for an example)
|
|
28
|
-
*/
|
|
29
|
-
powerManagement: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* NoVNC seems to have a quirk that causes it to lose proper mouse tracking after leaving fullscreen. We're working around this by requesting a reconnection of the console
|
|
32
|
-
* upon exiting. VMWare doesn't seem to need this.
|
|
33
|
-
*/
|
|
34
|
-
requireReconnectOnExitingFullscreen?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the remote console protocol/library supports a "view/read"-only canvas. If it doesn't, we have to do some CSS/JS hacking in the console component, so
|
|
37
|
-
* we prefer the client lib/protocol's implementation if we can get it.
|
|
38
|
-
*/
|
|
39
|
-
viewOnlyMode: boolean;
|
|
40
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Signal } from "@angular/core";
|
|
2
|
-
import { CanvasRecording } from "../services/canvas-recorder/canvas-recording";
|
|
3
|
-
import { ConsolePowerRequest } from "./console-power-request";
|
|
4
|
-
import { ConsoleSupportedFeatures } from "./console-supported-features";
|
|
5
|
-
import { ConsoleComponentNetworkConfig } from "./console-component-network-config";
|
|
6
|
-
import { ConsoleNetworkConnectionRequest } from "./console-network-connection-request";
|
|
7
|
-
import { ConsoleNetworkDisconnectionRequest } from "./console-network-disconnection-request";
|
|
8
|
-
import { UserSettingsService } from "../services/user-settings.service";
|
|
9
|
-
export interface ConsoleToolbarContext {
|
|
10
|
-
clipboard: {
|
|
11
|
-
consoleClipboardText: Signal<string>;
|
|
12
|
-
sendTextToConsoleClipboard(text: string): Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
console: {
|
|
15
|
-
copyScreenshot(): Promise<void>;
|
|
16
|
-
recordScreenStart(): void;
|
|
17
|
-
recordScreenStop(): Promise<Blob>;
|
|
18
|
-
sendCtrlAltDel(): Promise<void>;
|
|
19
|
-
sendKeyboardInput(text: string): Promise<void>;
|
|
20
|
-
sendPowerRequest(request: ConsolePowerRequest): Promise<void>;
|
|
21
|
-
sendReconnectRequest(): Promise<void>;
|
|
22
|
-
supportedFeatures: Signal<ConsoleSupportedFeatures>;
|
|
23
|
-
toggleFullscreen(): Promise<void>;
|
|
24
|
-
};
|
|
25
|
-
networks: {
|
|
26
|
-
config: Signal<ConsoleComponentNetworkConfig | undefined>;
|
|
27
|
-
connectionRequested(request: ConsoleNetworkConnectionRequest): void;
|
|
28
|
-
disconnectRequested(request: ConsoleNetworkDisconnectionRequest): void;
|
|
29
|
-
};
|
|
30
|
-
state: {
|
|
31
|
-
activeConsoleRecording: Signal<CanvasRecording | undefined>;
|
|
32
|
-
isConnected: Signal<boolean>;
|
|
33
|
-
isFullscreenAvailable: Signal<boolean>;
|
|
34
|
-
isManualReconnectAvailable: Signal<boolean>;
|
|
35
|
-
isRecordingAvailable: Signal<boolean>;
|
|
36
|
-
isViewOnly: Signal<boolean>;
|
|
37
|
-
};
|
|
38
|
-
userSettings: UserSettingsService;
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ConsoleToolbarPosition = "left" | "right" | "top" | "bottom";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ConsoleToolbarTheme = "light" | "dark" | undefined;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ConsoleToolbarPosition } from "./console-toolbar-position";
|
|
2
|
-
import { ConsoleToolbarTheme } from "./console-toolbar-theme";
|
|
3
|
-
export interface ConsoleUserSettings {
|
|
4
|
-
console: {
|
|
5
|
-
allowCopyToLocalClipboard: boolean;
|
|
6
|
-
attemptRemoteSessionResize: boolean;
|
|
7
|
-
scaleToCanvasHostSize: boolean;
|
|
8
|
-
};
|
|
9
|
-
toolbar: {
|
|
10
|
-
dockTo: ConsoleToolbarPosition;
|
|
11
|
-
preferTheme: ConsoleToolbarTheme;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BlobDownloaderService {
|
|
3
|
-
private readonly doc;
|
|
4
|
-
download(blob: Blob, fileName: string): void;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BlobDownloaderService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BlobDownloaderService>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SendBrowserNotificationArgs } from './send-browser-notification';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrowserNotificationsService {
|
|
4
|
-
private config;
|
|
5
|
-
private logger;
|
|
6
|
-
private window;
|
|
7
|
-
send(args: SendBrowserNotificationArgs): Promise<void>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserNotificationsService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserNotificationsService>;
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CanvasRecording } from './canvas-recording';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CanvasRecorderService {
|
|
4
|
-
private readonly cfConfig;
|
|
5
|
-
private readonly uuids;
|
|
6
|
-
private readonly window;
|
|
7
|
-
private readonly activeRecordings;
|
|
8
|
-
private readonly _isRecording;
|
|
9
|
-
readonly isRecording: import("@angular/core").Signal<boolean>;
|
|
10
|
-
startRecord(canvas: HTMLCanvasElement): CanvasRecording;
|
|
11
|
-
private recordingStopped;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasRecorderService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CanvasRecorderService>;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CanvasRecordingSettings } from "./canvas-recording-settings";
|
|
2
|
-
export declare class CanvasRecording {
|
|
3
|
-
private readonly chunks;
|
|
4
|
-
private readonly mimeType;
|
|
5
|
-
private readonly recorder;
|
|
6
|
-
private readonly window;
|
|
7
|
-
private stopPromise?;
|
|
8
|
-
private stopResolveFn?;
|
|
9
|
-
readonly settings: CanvasRecordingSettings;
|
|
10
|
-
constructor(settings: CanvasRecordingSettings);
|
|
11
|
-
stop(): Promise<Blob>;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CanvasService {
|
|
3
|
-
private readonly _canvas;
|
|
4
|
-
readonly canvas: import("@angular/core").Signal<HTMLCanvasElement | null>;
|
|
5
|
-
clearCanvas(): void;
|
|
6
|
-
setCanvas(canvas: HTMLCanvasElement): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CanvasService>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts plain text from a ClipboardItem, if available.
|
|
3
|
-
*
|
|
4
|
-
* @param clipboardItem - The ClipboardItem to extract text from.
|
|
5
|
-
* @returns A promise that resolves to the extracted text, or null if no text is present.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getTextFromClipboardItem(clipboardItem?: ClipboardItem): Promise<string | null>;
|
|
8
|
-
export declare function getClipboardItemFromText(text: string): ClipboardItem;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ClipboardService {
|
|
3
|
-
private readonly cfConfig;
|
|
4
|
-
private readonly document;
|
|
5
|
-
private readonly userSettings;
|
|
6
|
-
private _localClipboardContentWritten;
|
|
7
|
-
localClipboardContentWritten: import("@angular/core").Signal<ClipboardItem | undefined>;
|
|
8
|
-
copyBlob(blob: Blob): void;
|
|
9
|
-
/**
|
|
10
|
-
* Copy text to the local user's clipboard.
|
|
11
|
-
* @param text Copy this text content to the local user's clipboard
|
|
12
|
-
* @param isAutoCopy Express whether this copy operation is something manually initiated by the user, or is an automatic copy triggered by, for example, a console client's clipboard events.
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
copyText(text: string, isAutoCopy: boolean): void;
|
|
16
|
-
readText(): Promise<string>;
|
|
17
|
-
private getClipboard;
|
|
18
|
-
private writeToClipboard;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ConsoleClientService } from './console-client.service';
|
|
2
|
-
import { ConsoleClientType } from '../../models/console-client-type';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ConsoleClientFactoryService {
|
|
5
|
-
private injector;
|
|
6
|
-
get(consoleClientType: ConsoleClientType): ConsoleClientService;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleClientFactoryService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleClientFactoryService>;
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Signal } from "@angular/core";
|
|
2
|
-
import { ConsoleConnectionOptions } from "../../models/console-connection-options";
|
|
3
|
-
import { ConsoleConnectionStatus } from "../../models/console-connection-status";
|
|
4
|
-
import { ConsolePowerRequest } from "../../models/console-power-request";
|
|
5
|
-
import { ConsoleSupportedFeatures } from "../../models/console-supported-features";
|
|
6
|
-
import { ConsoleClientType } from "../../models/console-client-type";
|
|
7
|
-
export interface ConsoleClientService {
|
|
8
|
-
readonly clientType: ConsoleClientType;
|
|
9
|
-
readonly connectionStatus: Signal<ConsoleConnectionStatus>;
|
|
10
|
-
readonly consoleClipboardUpdated: Signal<string>;
|
|
11
|
-
readonly supportedFeatures: Signal<ConsoleSupportedFeatures>;
|
|
12
|
-
connect(url: string, options: ConsoleConnectionOptions): Promise<void>;
|
|
13
|
-
disconnect(): Promise<void>;
|
|
14
|
-
sendClipboardText(text: string): Promise<void>;
|
|
15
|
-
sendCtrlAltDelete(): Promise<void>;
|
|
16
|
-
sendKeyboardInput(text: string): Promise<void>;
|
|
17
|
-
sendPowerRequest(request: ConsolePowerRequest): Promise<void>;
|
|
18
|
-
setIsViewOnly(isViewOnly: boolean): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Automatically called by the console component on destroy. Disconnect any clients/websocket usage here
|
|
21
|
-
* (or just do it in your disconnect logic and call that internally in your implementation).
|
|
22
|
-
*/
|
|
23
|
-
dispose(): Promise<void>;
|
|
24
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ConsoleClientService } from '../console-client.service';
|
|
2
|
-
import { ConsoleConnectionOptions } from '../../../models/console-connection-options';
|
|
3
|
-
import { ConsoleConnectionStatus } from '../../../models/console-connection-status';
|
|
4
|
-
import { ConsolePowerRequest } from '../../../models/console-power-request';
|
|
5
|
-
import { ConsoleSupportedFeatures } from '../../../models/console-supported-features';
|
|
6
|
-
import { ConsoleClientType } from '../../../models/console-client-type';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class VmWareConsoleClientService implements ConsoleClientService {
|
|
9
|
-
private readonly cfConfig;
|
|
10
|
-
private readonly clipboardService;
|
|
11
|
-
private readonly logger;
|
|
12
|
-
private readonly document;
|
|
13
|
-
private readonly userSettings;
|
|
14
|
-
private readonly uuids;
|
|
15
|
-
private readonly window;
|
|
16
|
-
private wmksClient?;
|
|
17
|
-
readonly clientType: ConsoleClientType;
|
|
18
|
-
private readonly _connectionStatus;
|
|
19
|
-
readonly connectionStatus: import("@angular/core").Signal<ConsoleConnectionStatus>;
|
|
20
|
-
private readonly _consoleClipboardUpdated;
|
|
21
|
-
readonly consoleClipboardUpdated: import("@angular/core").Signal<string>;
|
|
22
|
-
private readonly _supportedFeatures;
|
|
23
|
-
readonly supportedFeatures: import("@angular/core").Signal<ConsoleSupportedFeatures>;
|
|
24
|
-
private readonly _needsCanvasSizeUpdate;
|
|
25
|
-
private readonly _needsCanvasSizeUpdateSub;
|
|
26
|
-
constructor();
|
|
27
|
-
connect(url: string, options: ConsoleConnectionOptions): Promise<void>;
|
|
28
|
-
disconnect(): Promise<void>;
|
|
29
|
-
sendClipboardText(text: string): Promise<void>;
|
|
30
|
-
sendCtrlAltDelete(): Promise<void>;
|
|
31
|
-
sendKeyboardInput(text: string): Promise<void>;
|
|
32
|
-
sendPowerRequest(request: ConsolePowerRequest): Promise<void>;
|
|
33
|
-
setIsViewOnly(isViewOnly: boolean): Promise<void>;
|
|
34
|
-
dispose(): Promise<void>;
|
|
35
|
-
private doPostConnectionConfig;
|
|
36
|
-
private doPostDisconnectionConfig;
|
|
37
|
-
private handleWindowSizeChange;
|
|
38
|
-
private updateFromUserSettings;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VmWareConsoleClientService, never>;
|
|
40
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VmWareConsoleClientService>;
|
|
41
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ConsoleClientType } from '../../../models/console-client-type';
|
|
2
|
-
import { ConsoleConnectionOptions } from '../../../models/console-connection-options';
|
|
3
|
-
import { ConsoleConnectionStatus } from '../../../models/console-connection-status';
|
|
4
|
-
import { ConsolePowerRequest } from '../../../models/console-power-request';
|
|
5
|
-
import { ConsoleSupportedFeatures } from '../../../models/console-supported-features';
|
|
6
|
-
import { ConsoleClientService } from '../../../services/console-clients/console-client.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class VncConsoleClientService implements ConsoleClientService {
|
|
9
|
-
readonly clientType: ConsoleClientType;
|
|
10
|
-
private readonly _consoleClipboardUpdated;
|
|
11
|
-
readonly consoleClipboardUpdated: import("@angular/core").Signal<string>;
|
|
12
|
-
private readonly _connectionStatus;
|
|
13
|
-
readonly connectionStatus: import("@angular/core").Signal<ConsoleConnectionStatus>;
|
|
14
|
-
private readonly _supportedFeatures;
|
|
15
|
-
readonly supportedFeatures: import("@angular/core").Signal<ConsoleSupportedFeatures>;
|
|
16
|
-
private readonly cfConfig;
|
|
17
|
-
private readonly clipboardService;
|
|
18
|
-
private readonly logger;
|
|
19
|
-
private readonly userSettings;
|
|
20
|
-
private noVncClient?;
|
|
21
|
-
constructor();
|
|
22
|
-
connect(url: string, options: ConsoleConnectionOptions): Promise<void>;
|
|
23
|
-
disconnect(): Promise<void>;
|
|
24
|
-
dispose(): Promise<void>;
|
|
25
|
-
sendClipboardText(text: string): Promise<void>;
|
|
26
|
-
sendCtrlAltDelete(): Promise<void>;
|
|
27
|
-
sendKeyboardInput(text: string): Promise<void>;
|
|
28
|
-
sendPowerRequest(request: ConsolePowerRequest): Promise<void>;
|
|
29
|
-
setIsViewOnly(isViewOnly: boolean): Promise<void>;
|
|
30
|
-
private doPreConnectionConfig;
|
|
31
|
-
private doPostConnectionConfig;
|
|
32
|
-
private handleDisconnect;
|
|
33
|
-
private updateFromUserSettings;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VncConsoleClientService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VncConsoleClientService>;
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FullScreenService {
|
|
3
|
-
private doc;
|
|
4
|
-
private readonly _isAvailable;
|
|
5
|
-
readonly isAvailable: import("@angular/core").Signal<boolean>;
|
|
6
|
-
private readonly _isActive;
|
|
7
|
-
readonly isActive: import("@angular/core").Signal<boolean>;
|
|
8
|
-
constructor();
|
|
9
|
-
exitFullscreen(): Promise<void>;
|
|
10
|
-
tryFullscreen(element: Element): Promise<void>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FullScreenService>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LogLevel } from '../models/log-level';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LoggerService {
|
|
4
|
-
private libConfig;
|
|
5
|
-
log(logLevel: LogLevel, message: string, ...addl: any[]): void;
|
|
6
|
-
private resolveLoggingFunction;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class PicoCssService {
|
|
3
|
-
private sheet?;
|
|
4
|
-
private loading?;
|
|
5
|
-
loadStyleSheet(): Promise<CSSStyleSheet | undefined>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PicoCssService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PicoCssService>;
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ConsoleUserSettings } from '../models/console-user-settings';
|
|
2
|
-
import { DeepPartial } from "./object.helpers";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class UserSettingsService {
|
|
5
|
-
private readonly _settings;
|
|
6
|
-
readonly settings: import("@angular/core").Signal<ConsoleUserSettings>;
|
|
7
|
-
private readonly logger;
|
|
8
|
-
private readonly settingsKey;
|
|
9
|
-
private readonly window;
|
|
10
|
-
constructor();
|
|
11
|
-
patch(patch: DeepPartial<ConsoleUserSettings>): void;
|
|
12
|
-
update(update: Partial<ConsoleUserSettings>): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserSettingsService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserSettingsService>;
|
|
15
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare enum WmksAudioEncodingType {
|
|
2
|
-
AAC = "aac",
|
|
3
|
-
OPUS = "opus",
|
|
4
|
-
VORBIS = "vorbis"
|
|
5
|
-
}
|
|
6
|
-
export declare enum WmksConnectionState {
|
|
7
|
-
CONNECTED = "connected",
|
|
8
|
-
CONNECTING = "connecting",
|
|
9
|
-
DISCONNECTED = "disconnected"
|
|
10
|
-
}
|
|
11
|
-
export declare enum WmksErrorType {
|
|
12
|
-
AUTHENTICATION_FAILED = "authenticationfailed",
|
|
13
|
-
PROTOCOL_ERROR = "protocolerror",
|
|
14
|
-
WEBSOCKET_ERROR = "websocketerror"
|
|
15
|
-
}
|
|
16
|
-
export declare enum WmksEvents {
|
|
17
|
-
AUDIO = "audio",
|
|
18
|
-
CONNECTION_STATE_CHANGE = "connectionstatechange",
|
|
19
|
-
COPY = "copy",
|
|
20
|
-
ERROR = "error",
|
|
21
|
-
FULL_SCREEN_CHANGE = "fullscreenchange",
|
|
22
|
-
HEARTBEAT = "heartbeat",
|
|
23
|
-
KEYBOARD_LEDS_CHANGE = "keyboardledschanged",
|
|
24
|
-
REMOTE_SCREEN_SIZE_CHANGE = "screensizechange",
|
|
25
|
-
TOGGLE = "toggle"
|
|
26
|
-
}
|
|
27
|
-
export interface WmksEventData {
|
|
28
|
-
state: WmksConnectionState;
|
|
29
|
-
}
|
|
30
|
-
export declare enum WmksPosition {
|
|
31
|
-
CENTER = 0,
|
|
32
|
-
LEFT_TOP = 1
|
|
33
|
-
}
|
|
34
|
-
export type WmksSettableOptions = "changeResolution" | "position" | "rescale";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { WmksConnectionState, WmksEvents, WmksPosition, WmksSettableOptions } from "./vmware-mks.models";
|
|
2
|
-
export declare function createWmksClient(hostElementId: string, options?: WmksClientCreateOptions): WmksClient;
|
|
3
|
-
export interface WmksClient {
|
|
4
|
-
connect(url: string): Promise<void>;
|
|
5
|
-
destroy(): void;
|
|
6
|
-
disconnect(): void;
|
|
7
|
-
getConnectionState(): WmksConnectionState;
|
|
8
|
-
/**
|
|
9
|
-
* This function is not documented by Broadcom but seems to exist and may be strictly related to
|
|
10
|
-
* focus on the virtual console OR clipboard reading OR both OR neither.
|
|
11
|
-
*/
|
|
12
|
-
grab(): void;
|
|
13
|
-
register(event: WmksEvents, handler: WmksEventHandler): WmksClient;
|
|
14
|
-
/**
|
|
15
|
-
* Sends a Ctrl+Alt+Del key combination to the remote machine.
|
|
16
|
-
*/
|
|
17
|
-
sendCAD(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Sends a string as keyboard input to the server.
|
|
20
|
-
*/
|
|
21
|
-
sendInputString(input: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Set an option WMKS client.
|
|
24
|
-
*
|
|
25
|
-
* @param option - which option's value to update.
|
|
26
|
-
* @param value - a boolean value enabling/disabling the option.
|
|
27
|
-
*/
|
|
28
|
-
setOption(option: WmksSettableOptions, value: boolean): void;
|
|
29
|
-
showKeyboard(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Forcibly remove focus from the remote console (I think)
|
|
32
|
-
*/
|
|
33
|
-
ungrab(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Broadcom's description: Changes the resolution or rescales the remote screen to match the container size. Behavior depends on settings for changeResolution, rescale, and position options described in createMKS Options.
|
|
36
|
-
*
|
|
37
|
-
* See: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere-sdks-tools/8-0/html-console-sdk-programming-guide/html-console-sdk-api/display-related-apis.html
|
|
38
|
-
*/
|
|
39
|
-
updateScreen(): void;
|
|
40
|
-
}
|
|
41
|
-
export interface WmksClientCreateOptions {
|
|
42
|
-
changeResolution?: boolean;
|
|
43
|
-
position?: WmksPosition;
|
|
44
|
-
/**
|
|
45
|
-
* Indicates whether to rescale the remote screen to fit the container size. (Defaults to true)
|
|
46
|
-
*/
|
|
47
|
-
rescale?: boolean;
|
|
48
|
-
useNativePixels?: boolean;
|
|
49
|
-
useVNCHandshake?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface WMKS {
|
|
52
|
-
get version(): string;
|
|
53
|
-
/**
|
|
54
|
-
* Create a client which connects to a remote console hosted on a VMWare cluster.
|
|
55
|
-
*
|
|
56
|
-
* @param hostElementId The ID of a DOM element that will have a canvas injected into it by Broadcom's HTML Console SDK upon successful connection.
|
|
57
|
-
* @param options Options which identify and specify the behavior of the virtual console.
|
|
58
|
-
*/
|
|
59
|
-
createWMKS(hostElementId: string, options?: WmksClientCreateOptions): WmksClient;
|
|
60
|
-
}
|
|
61
|
-
export type WmksEventHandler = (e: any, data: any) => void;
|
package/public-api.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "./lib/components/console/console.component";
|
|
2
|
-
export * from "./lib/components/console-tile/console-tile.component";
|
|
3
|
-
export * from "./lib/models/console-component-config";
|
|
4
|
-
export * from "./lib/directives/class-on-hover.directive";
|
|
5
|
-
export * from "./lib/config/provide-console-forge";
|
|
6
|
-
export * from "./lib/models/console-client-type";
|
|
7
|
-
export * from "./lib/models/console-connection-options";
|
|
8
|
-
export * from "./lib/models/console-connection-status";
|
|
9
|
-
export * from "./lib/models/console-credentials";
|
|
10
|
-
export * from "./lib/models/console-component-network-config";
|
|
11
|
-
export * from "./lib/models/console-network-connection-request";
|
|
12
|
-
export * from "./lib/models/console-network-disconnection-request";
|
|
13
|
-
export * from "./lib/models/console-power-request";
|
|
14
|
-
export * from "./lib/models/console-supported-features";
|
|
15
|
-
export * from "./lib/models/console-toolbar-position";
|
|
16
|
-
export * from "./lib/models/console-toolbar-component-base";
|
|
17
|
-
export * from "./lib/models/console-toolbar-context";
|
|
18
|
-
export * from "./lib/models/log-level";
|
|
19
|
-
export * from "./lib/services/user-settings.service";
|
|
20
|
-
export * from "./lib/services/clipboard/clipboard.helpers";
|