@cmusei/console-forge 0.13.3 → 0.15.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/assets/pico.min.css +2905 -0
- package/fesm2022/cmusei-console-forge.mjs +82 -18
- package/fesm2022/cmusei-console-forge.mjs.map +1 -1
- package/lib/components/console/console.component.d.ts +4 -2
- package/lib/components/console-status/console-status.component.d.ts +7 -2
- package/lib/components/console-tile/console-tile.component.d.ts +4 -1
- package/lib/components/console-toolbar-default/console-toolbar-default-button/console-toolbar-default-button.component.d.ts +5 -1
- package/lib/components/console-toolbar-default/console-toolbar-default.component.d.ts +5 -2
- package/lib/models/console-component-config.d.ts +6 -0
- package/lib/services/pico-css.service.d.ts +8 -0
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import { ConsoleClientService } from '../../services/console-clients/console-cli
|
|
|
4
4
|
import { ConsoleToolbarComponentBase } from '../../models/console-toolbar-component-base';
|
|
5
5
|
import { ConsolePowerRequest } from '../../models/console-power-request';
|
|
6
6
|
import { ConsoleComponentNetworkConfig } from '../../models/console-component-network-config';
|
|
7
|
+
import { ConsoleConnectionStatus } from '../../models/console-connection-status';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ConsoleComponent implements OnDestroy {
|
|
9
10
|
autoConnect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -12,6 +13,7 @@ export declare class ConsoleComponent implements OnDestroy {
|
|
|
12
13
|
networkConfig: import("@angular/core").InputSignal<ConsoleComponentNetworkConfig | undefined>;
|
|
13
14
|
toolbarComponent: import("@angular/core").InputSignal<Type<ConsoleToolbarComponentBase> | undefined>;
|
|
14
15
|
toolbarDisabled: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
connectionStatusChanged: import("@angular/core").OutputEmitterRef<ConsoleConnectionStatus | undefined>;
|
|
15
17
|
consoleClipboardUpdated: import("@angular/core").OutputEmitterRef<string>;
|
|
16
18
|
consoleRecorded: import("@angular/core").OutputEmitterRef<Blob>;
|
|
17
19
|
ctrlAltDelSent: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -19,8 +21,8 @@ export declare class ConsoleComponent implements OnDestroy {
|
|
|
19
21
|
networkConnectionRequested: import("@angular/core").OutputEmitterRef<string>;
|
|
20
22
|
networkDisconnectRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
21
23
|
powerRequestSent: import("@angular/core").OutputEmitterRef<ConsolePowerRequest>;
|
|
24
|
+
reconnectRequest: import("@angular/core").OutputEmitterRef<ConsoleComponentConfig>;
|
|
22
25
|
screenshotCopied: import("@angular/core").OutputEmitterRef<Blob>;
|
|
23
|
-
status: import("@angular/core").Signal<import("@cmusei/console-forge").ConsoleConnectionStatus>;
|
|
24
26
|
private readonly browserNotifications;
|
|
25
27
|
private readonly canvasService;
|
|
26
28
|
private readonly clipboardService;
|
|
@@ -48,5 +50,5 @@ export declare class ConsoleComponent implements OnDestroy {
|
|
|
48
50
|
disconnect(): Promise<void>;
|
|
49
51
|
private resolveConsoleCanvas;
|
|
50
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleComponent, "cf-console", never, { "autoConnect": { "alias": "autoConnect"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; "isSignal": true; }; "networkConfig": { "alias": "networkConfig"; "required": false; "isSignal": true; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; "isSignal": true; }; "toolbarDisabled": { "alias": "toolbarDisabled"; "required": false; "isSignal": true; }; }, { "consoleClipboardUpdated": "consoleClipboardUpdated"; "consoleRecorded": "consoleRecorded"; "ctrlAltDelSent": "ctrlAltDelSent"; "localClipboardUpdated": "localClipboardUpdated"; "networkConnectionRequested": "networkConnectionRequested"; "networkDisconnectRequested": "networkDisconnectRequested"; "powerRequestSent": "powerRequestSent"; "screenshotCopied": "screenshotCopied"; }, never, never, true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleComponent, "cf-console", never, { "autoConnect": { "alias": "autoConnect"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; "isSignal": true; }; "networkConfig": { "alias": "networkConfig"; "required": false; "isSignal": true; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; "isSignal": true; }; "toolbarDisabled": { "alias": "toolbarDisabled"; "required": false; "isSignal": true; }; }, { "connectionStatusChanged": "connectionStatusChanged"; "consoleClipboardUpdated": "consoleClipboardUpdated"; "consoleRecorded": "consoleRecorded"; "ctrlAltDelSent": "ctrlAltDelSent"; "localClipboardUpdated": "localClipboardUpdated"; "networkConnectionRequested": "networkConnectionRequested"; "networkDisconnectRequested": "networkDisconnectRequested"; "powerRequestSent": "powerRequestSent"; "reconnectRequest": "reconnectRequest"; "screenshotCopied": "screenshotCopied"; }, never, never, true, never>;
|
|
52
54
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
1
2
|
import { ConsoleConnectionStatus } from '../../models/console-connection-status';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConsoleStatusComponent {
|
|
4
|
+
export declare class ConsoleStatusComponent implements AfterViewInit {
|
|
4
5
|
status: import("@angular/core").InputSignal<ConsoleConnectionStatus | undefined>;
|
|
6
|
+
reconnectRequest: import("@angular/core").OutputEmitterRef<void>;
|
|
7
|
+
private readonly picoCssService;
|
|
8
|
+
private readonly hostElement;
|
|
9
|
+
ngAfterViewInit(): Promise<void>;
|
|
5
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleStatusComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleStatusComponent, "cf-console-status", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleStatusComponent, "cf-console-status", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; }, { "reconnectRequest": "reconnectRequest"; }, never, never, true, never>;
|
|
7
12
|
}
|
|
@@ -3,13 +3,16 @@ import { ConsoleClientService } from '../../services/console-clients/console-cli
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ConsoleTileComponent {
|
|
5
5
|
config: import("@angular/core").InputSignal<ConsoleComponentConfig | undefined>;
|
|
6
|
+
reconnectRequest: import("@angular/core").OutputEmitterRef<ConsoleComponentConfig | undefined>;
|
|
6
7
|
private readonly cfConfig;
|
|
7
8
|
private readonly consoleClientFactory;
|
|
8
9
|
private readonly consoleClientType;
|
|
9
10
|
private readonly consoleHostElement;
|
|
11
|
+
private readonly uuids;
|
|
10
12
|
protected consoleClient?: ConsoleClientService;
|
|
13
|
+
protected consoleHostElementId: string;
|
|
11
14
|
constructor();
|
|
12
15
|
private connect;
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleTileComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleTileComponent, "cf-console-tile", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleTileComponent, "cf-console-tile", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "reconnectRequest": "reconnectRequest"; }, never, never, true, never>;
|
|
15
18
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ConsoleToolbarDefaultButtonComponent {
|
|
3
|
+
export declare class ConsoleToolbarDefaultButtonComponent implements AfterViewInit {
|
|
3
4
|
clicked: import("@angular/core").OutputEmitterRef<void>;
|
|
4
5
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
5
6
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
6
7
|
isOngoing: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
private readonly picoCssService;
|
|
9
|
+
private readonly hostElement;
|
|
10
|
+
ngAfterViewInit(): Promise<void>;
|
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleToolbarDefaultButtonComponent, never>;
|
|
8
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleToolbarDefaultButtonComponent, "cf-console-toolbar-default-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isOngoing": { "alias": "isOngoing"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
9
13
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { ConsoleToolbarContext } from '../../models/console-toolbar-context';
|
|
3
3
|
import { ConsoleToolbarComponentBase } from '../../models/console-toolbar-component-base';
|
|
4
4
|
import { ConsoleForgeConfig } from '../../config/console-forge-config';
|
|
5
5
|
import { ConsoleToolbarPosition } from '../../models/console-toolbar-position';
|
|
6
6
|
import { ConsolePowerRequest } from '../../models/console-power-request';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ConsoleToolbarDefaultComponent implements ConsoleToolbarComponentBase {
|
|
8
|
+
export declare class ConsoleToolbarDefaultComponent implements AfterViewInit, ConsoleToolbarComponentBase {
|
|
9
9
|
consoleContext: import("@angular/core").InputSignal<ConsoleToolbarContext>;
|
|
10
10
|
protected isClipboardDialogOpen: boolean;
|
|
11
11
|
protected isKeyboardDialogOpen: boolean;
|
|
@@ -16,6 +16,9 @@ export declare class ConsoleToolbarDefaultComponent implements ConsoleToolbarCom
|
|
|
16
16
|
protected readonly cfConfig: ConsoleForgeConfig;
|
|
17
17
|
private readonly clipboardService;
|
|
18
18
|
protected readonly clipboardTextInput: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
19
|
+
private readonly picoCssService;
|
|
20
|
+
private readonly hostElement;
|
|
21
|
+
ngAfterViewInit(): Promise<void>;
|
|
19
22
|
protected handleChangeToolbarPosition(position: ConsoleToolbarPosition): void;
|
|
20
23
|
protected handleClipboardDialogOpenClose(isOpen: boolean): void;
|
|
21
24
|
protected handleClipboardCopyLastText(text: string): void;
|
|
@@ -11,6 +11,12 @@ export interface ConsoleComponentConfig {
|
|
|
11
11
|
* provider.
|
|
12
12
|
*/
|
|
13
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;
|
|
14
20
|
/**
|
|
15
21
|
* An optional username, password, or sessionId to use to authenticate to the console. Configuration here is specific
|
|
16
22
|
* to the protocol being used and the configuration of the target virtual console. See ConsoleForge's documentation
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmusei/console-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/cmu-sei/console-forge.git"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"@novnc/novnc": "^1.4.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"@picocss/pico": "^2.1.1",
|
|
18
|
+
"tslib": "^2.3.0"
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"module": "fesm2022/cmusei-console-forge.mjs",
|