@open-amt-cloud-toolkit/ui-toolkit-angular 7.1.1 → 7.1.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/LICENSE +201 -0
- package/esm2022/ider/lib/ider.component.mjs +23 -24
- package/esm2022/ider/lib/ider.module.mjs +16 -17
- package/esm2022/kvm/lib/kvm.component.mjs +29 -46
- package/esm2022/kvm/lib/kvm.module.mjs +17 -18
- package/esm2022/sol/lib/sol.component.mjs +17 -34
- package/esm2022/sol/lib/sol.module.mjs +25 -26
- package/esm2022/sol/lib/terminal/terminal.component.mjs +11 -14
- package/esm2022/src/ider/lib/ider.component.mjs +122 -0
- package/esm2022/src/ider/lib/ider.module.mjs +21 -0
- package/esm2022/src/ider/open-amt-cloud-toolkit-ui-toolkit-angular-src-ider.mjs +5 -0
- package/esm2022/src/ider/public-api.mjs +6 -0
- package/esm2022/src/kvm/lib/kvm.component.mjs +165 -0
- package/esm2022/src/kvm/lib/kvm.module.mjs +29 -0
- package/esm2022/src/kvm/open-amt-cloud-toolkit-ui-toolkit-angular-src-kvm.mjs +5 -0
- package/esm2022/src/kvm/public-api.mjs +10 -0
- package/esm2022/src/sol/lib/sol.component.mjs +120 -0
- package/esm2022/src/sol/lib/sol.module.mjs +40 -0
- package/esm2022/src/sol/lib/terminal/terminal.component.mjs +53 -0
- package/esm2022/src/sol/open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.mjs +5 -0
- package/esm2022/src/sol/public-api.mjs +10 -0
- package/fesm2022/{open-amt-cloud-toolkit-ui-toolkit-angular-ider.mjs → open-amt-cloud-toolkit-ui-toolkit-angular-src-ider.mjs} +38 -40
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-src-ider.mjs.map +1 -0
- package/fesm2022/{open-amt-cloud-toolkit-ui-toolkit-angular-kvm.mjs → open-amt-cloud-toolkit-ui-toolkit-angular-src-kvm.mjs} +45 -63
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-src-kvm.mjs.map +1 -0
- package/fesm2022/{open-amt-cloud-toolkit-ui-toolkit-angular-sol.mjs → open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.mjs} +51 -72
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.mjs.map +1 -0
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular.mjs +131 -172
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular.mjs.map +1 -1
- package/ider/lib/ider.component.d.ts +0 -1
- package/ider/lib/ider.module.d.ts +0 -1
- package/index.d.ts +0 -1
- package/kvm/lib/kvm.component.d.ts +0 -1
- package/kvm/lib/kvm.module.d.ts +0 -1
- package/package.json +37 -47
- package/public-api.d.ts +0 -1
- package/sol/lib/sol.component.d.ts +0 -1
- package/sol/lib/sol.module.d.ts +0 -1
- package/sol/lib/terminal/terminal.component.d.ts +0 -1
- package/{kvm → src/ider}/index.d.ts +1 -2
- package/src/ider/lib/ider.component.d.ts +34 -0
- package/src/ider/lib/ider.module.d.ts +7 -0
- package/{ider → src/ider}/public-api.d.ts +0 -1
- package/{sol → src/kvm}/index.d.ts +1 -2
- package/src/kvm/lib/kvm.component.d.ts +49 -0
- package/src/kvm/lib/kvm.module.d.ts +9 -0
- package/{kvm → src/kvm}/public-api.d.ts +0 -1
- package/{ider → src/sol}/index.d.ts +1 -2
- package/src/sol/lib/sol.component.d.ts +35 -0
- package/src/sol/lib/sol.module.d.ts +11 -0
- package/src/sol/lib/terminal/terminal.component.d.ts +14 -0
- package/{sol → src/sol}/public-api.d.ts +0 -1
- package/esm2022/ider/open-amt-cloud-toolkit-ui-toolkit-angular-ider.mjs +0 -5
- package/esm2022/ider/public-api.mjs +0 -6
- package/esm2022/kvm/open-amt-cloud-toolkit-ui-toolkit-angular-kvm.mjs +0 -5
- package/esm2022/kvm/public-api.mjs +0 -10
- package/esm2022/sol/open-amt-cloud-toolkit-ui-toolkit-angular-sol.mjs +0 -5
- package/esm2022/sol/public-api.mjs +0 -10
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-ider.mjs.map +0 -1
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-kvm.mjs.map +0 -1
- package/fesm2022/open-amt-cloud-toolkit-ui-toolkit-angular-sol.mjs.map +0 -1
- package/ider/lib/ider.component.d.ts.map +0 -1
- package/ider/lib/ider.module.d.ts.map +0 -1
- package/ider/open-amt-cloud-toolkit-ui-toolkit-angular-ider.d.ts.map +0 -1
- package/ider/public-api.d.ts.map +0 -1
- package/kvm/lib/kvm.component.d.ts.map +0 -1
- package/kvm/lib/kvm.module.d.ts.map +0 -1
- package/kvm/open-amt-cloud-toolkit-ui-toolkit-angular-kvm.d.ts.map +0 -1
- package/kvm/public-api.d.ts.map +0 -1
- package/open-amt-cloud-toolkit-ui-toolkit-angular.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
- package/sol/lib/sol.component.d.ts.map +0 -1
- package/sol/lib/sol.module.d.ts.map +0 -1
- package/sol/lib/terminal/terminal.component.d.ts.map +0 -1
- package/sol/open-amt-cloud-toolkit-ui-toolkit-angular-sol.d.ts.map +0 -1
- package/sol/public-api.d.ts.map +0 -1
|
@@ -46,34 +46,22 @@ class TerminalComponent {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac =
|
|
50
|
-
static { this.ɵcmp =
|
|
51
|
-
i0.ɵɵelement(0, "div", 0);
|
|
52
|
-
} }, encapsulation: 2 }); }
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TerminalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: TerminalComponent, selector: "amt-terminal", inputs: { term: "term" }, outputs: { handleKeyPress: "handleKeyPress" }, ngImport: i0, template: "<div id=\"terminal\" class=\"xtermDisplay\" style=\"width: fit-content;\"></div>\n" }); }
|
|
53
51
|
}
|
|
54
|
-
(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TerminalComponent, { className: "TerminalComponent", filePath: "lib/terminal/terminal.component.ts", lineNumber: 12 }); })();
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TerminalComponent, decorators: [{
|
|
53
|
+
type: Component,
|
|
54
|
+
args: [{ selector: 'amt-terminal', template: "<div id=\"terminal\" class=\"xtermDisplay\" style=\"width: fit-content;\"></div>\n" }]
|
|
55
|
+
}], propDecorators: { term: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], handleKeyPress: [{
|
|
58
|
+
type: Output
|
|
59
|
+
}] } });
|
|
63
60
|
|
|
64
61
|
/*********************************************************************
|
|
65
62
|
* Copyright (c) Intel Corporation 2023
|
|
66
63
|
* SPDX-License-Identifier: Apache-2.0
|
|
67
64
|
**********************************************************************/
|
|
68
|
-
function SolComponent_amt_terminal_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
70
|
-
i0.ɵɵelementStart(0, "amt-terminal", 2);
|
|
71
|
-
i0.ɵɵlistener("handleKeyPress", function SolComponent_amt_terminal_1_Template_amt_terminal_handleKeyPress_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleKeyPress($event)); });
|
|
72
|
-
i0.ɵɵelementEnd();
|
|
73
|
-
} if (rf & 2) {
|
|
74
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
75
|
-
i0.ɵɵproperty("term", ctx_r0.term);
|
|
76
|
-
} }
|
|
77
65
|
class SolComponent {
|
|
78
66
|
constructor() {
|
|
79
67
|
this.deviceState = 0;
|
|
@@ -166,65 +154,56 @@ class SolComponent {
|
|
|
166
154
|
ngOnDestroy() {
|
|
167
155
|
this.stopSol();
|
|
168
156
|
}
|
|
169
|
-
static { this.ɵfac =
|
|
170
|
-
static { this.ɵcmp =
|
|
171
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
172
|
-
i0.ɵɵtemplate(1, SolComponent_amt_terminal_1_Template, 1, 1, "amt-terminal", 1);
|
|
173
|
-
i0.ɵɵelementEnd();
|
|
174
|
-
} if (rf & 2) {
|
|
175
|
-
i0.ɵɵadvance(1);
|
|
176
|
-
i0.ɵɵproperty("ngIf", ctx.deviceState === 3);
|
|
177
|
-
} }, dependencies: [i1.NgIf, TerminalComponent], styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"], encapsulation: 2 }); }
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: SolComponent, selector: "amt-sol", inputs: { deviceConnection: "deviceConnection", mpsServer: "mpsServer", authToken: "authToken", deviceId: "deviceId" }, outputs: { deviceStatus: "deviceStatus" }, ngImport: i0, template: "<div class=\"container\">\n <amt-terminal *ngIf=\"deviceState === 3\" [term]=\"term\" (handleKeyPress)=\"handleKeyPress($event)\"></amt-terminal>\n</div>", styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TerminalComponent, selector: "amt-terminal", inputs: ["term"], outputs: ["handleKeyPress"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
178
159
|
}
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SolComponent, { className: "SolComponent", filePath: "lib/sol.component.ts", lineNumber: 15 }); })();
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolComponent, decorators: [{
|
|
161
|
+
type: Component,
|
|
162
|
+
args: [{ selector: 'amt-sol', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\n <amt-terminal *ngIf=\"deviceState === 3\" [term]=\"term\" (handleKeyPress)=\"handleKeyPress($event)\"></amt-terminal>\n</div>", styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"] }]
|
|
163
|
+
}], propDecorators: { deviceStatus: [{
|
|
164
|
+
type: Output
|
|
165
|
+
}], deviceConnection: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], mpsServer: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], authToken: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], deviceId: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}] } });
|
|
194
174
|
|
|
195
175
|
/*********************************************************************
|
|
196
176
|
* Copyright (c) Intel Corporation 2023
|
|
197
177
|
* SPDX-License-Identifier: Apache-2.0
|
|
198
178
|
**********************************************************************/
|
|
199
179
|
class SolModule {
|
|
200
|
-
static { this.ɵfac =
|
|
201
|
-
static { this.ɵmod =
|
|
202
|
-
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
181
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: SolModule, declarations: [SolComponent,
|
|
182
|
+
TerminalComponent], imports: [HttpClientModule,
|
|
183
|
+
CommonModule,
|
|
184
|
+
BrowserModule], exports: [SolComponent] }); }
|
|
185
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, imports: [HttpClientModule,
|
|
203
186
|
CommonModule,
|
|
204
187
|
BrowserModule] }); }
|
|
205
188
|
}
|
|
206
|
-
(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SolModule, { declarations: [SolComponent,
|
|
225
|
-
TerminalComponent], imports: [HttpClientModule,
|
|
226
|
-
CommonModule,
|
|
227
|
-
BrowserModule], exports: [SolComponent] }); })();
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, decorators: [{
|
|
190
|
+
type: NgModule,
|
|
191
|
+
args: [{
|
|
192
|
+
declarations: [
|
|
193
|
+
SolComponent,
|
|
194
|
+
TerminalComponent
|
|
195
|
+
],
|
|
196
|
+
imports: [
|
|
197
|
+
HttpClientModule,
|
|
198
|
+
CommonModule,
|
|
199
|
+
BrowserModule
|
|
200
|
+
],
|
|
201
|
+
exports: [
|
|
202
|
+
SolComponent
|
|
203
|
+
],
|
|
204
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
205
|
+
}]
|
|
206
|
+
}] });
|
|
228
207
|
|
|
229
208
|
/*********************************************************************
|
|
230
209
|
* Copyright (c) Intel Corporation 2023
|
|
@@ -239,4 +218,4 @@ class SolModule {
|
|
|
239
218
|
*/
|
|
240
219
|
|
|
241
220
|
export { SolComponent, SolModule };
|
|
242
|
-
//# sourceMappingURL=open-amt-cloud-toolkit-ui-toolkit-angular-sol.mjs.map
|
|
221
|
+
//# sourceMappingURL=open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.mjs","sources":["../../src/sol/lib/terminal/terminal.component.ts","../../src/sol/lib/terminal/terminal.component.html","../../src/sol/lib/sol.component.ts","../../src/sol/lib/sol.component.html","../../src/sol/lib/sol.module.ts","../../src/sol/public-api.ts","../../src/sol/open-amt-cloud-toolkit-ui-toolkit-angular-src-sol.ts"],"sourcesContent":["/*********************************************************************\n * Copyright (c) Intel Corporation 2023\n * SPDX-License-Identifier: Apache-2.0\n **********************************************************************/\nimport { Component, Input, OnInit, Output, EventEmitter } from '@angular/core'\nimport { C, V } from '@angular/cdk/keycodes'\n@Component({\n selector: 'amt-terminal',\n templateUrl: './terminal.component.html'\n})\n\nexport class TerminalComponent implements OnInit {\n @Input() term: any\n @Output() handleKeyPress: EventEmitter<any> = new EventEmitter<any>()\n container!: any\n ngOnInit (): void {\n this.container = document.getElementById('terminal')\n this.term.open(this.container)\n this.term.onData((data: any) => {\n this.handleKeyPress.emit(data)\n })\n this.term.attachCustomKeyEventHandler(async (e: any) => {\n e.stopPropagation()\n // Due to a new 'HACK' in xtermjs, calling e.preventDefault() here\n // results in all upper case characters being dropped,\n // so only call it if we 'consume' the keydown here.\n // Note: this function can be called for 'keypress' and 'keyup' events as well as 'keydown' events\n if (e.type === 'keydown') {\n if (e.ctrlKey === true && e.shiftKey === true && e.keyCode === C) {\n e.preventDefault()\n await navigator.clipboard.writeText(this.term.getSelection())\n } else if (e.ctrlKey === true && e.shiftKey === true && e.keyCode === V) {\n e.preventDefault()\n await navigator.clipboard.readText().then(text => {\n this.handleKeyPress.emit(text)\n })\n } else if (e.code === 'Space') { // or e.keyCode === SPACE\n e.preventDefault()\n this.handleKeyPress.emit(e.key)\n }\n }\n })\n }\n}\n","<div id=\"terminal\" class=\"xtermDisplay\" style=\"width: fit-content;\"></div>\n","/*********************************************************************\n * Copyright (c) Intel Corporation 2023\n * SPDX-License-Identifier: Apache-2.0\n **********************************************************************/\nimport { Component, EventEmitter, OnInit, Output, ViewEncapsulation, OnDestroy, Input, AfterViewInit } from '@angular/core'\nimport { Terminal } from 'xterm'\nimport { AmtTerminal, AMTRedirector, TerminalDataProcessor, RedirectorConfig, Protocol } from '@open-amt-cloud-toolkit/ui-toolkit/core'\n\n@Component({\n selector: 'amt-sol',\n templateUrl: './sol.component.html',\n styleUrls: ['./sol.component.css'],\n encapsulation: ViewEncapsulation.None\n})\nexport class SolComponent implements OnInit, OnDestroy, AfterViewInit {\n terminal: AmtTerminal\n container!: any\n term: Terminal\n redirector: AMTRedirector\n dataProcessor: TerminalDataProcessor\n deviceState = 0\n @Output() deviceStatus: EventEmitter<number> = new EventEmitter<number>()\n @Input() deviceConnection: EventEmitter<boolean> = new EventEmitter<boolean>()\n @Input() public mpsServer = ''\n @Input() public authToken = ''\n @Input() public deviceId = ''\n\n ngOnInit (): void {\n this.deviceConnection.subscribe((data: boolean) => {\n if (data) {\n this.init()\n } else {\n this.stopSol()\n }\n })\n }\n\n ngAfterViewInit (): void {\n this.init()\n }\n\n init (): void {\n this.instantiate()\n setTimeout(() => {\n this.startSol()\n }, 4000)\n }\n\n instantiate (): void {\n this.terminal = new AmtTerminal()\n this.dataProcessor = new TerminalDataProcessor(this.terminal)\n const config: RedirectorConfig = {\n protocol: Protocol.SOL,\n fr: new FileReader(),\n host: this.deviceId,\n port: 16994,\n user: '',\n pass: '',\n tls: 0,\n tls1only: 0,\n authToken: this.authToken,\n server: this.mpsServer\n }\n this.redirector = new AMTRedirector(config)\n this.terminal.onSend = this.redirector.send.bind(this.redirector)\n this.redirector.onNewState = this.terminal.StateChange.bind(this.terminal)\n this.redirector.onStateChanged = this.onTerminalStateChange.bind(this)\n this.redirector.onProcessData = this.dataProcessor.processData.bind(this)\n this.dataProcessor.processDataToXterm = this.handleWriteToXterm.bind(this)\n this.dataProcessor.clearTerminal = this.handleClearTerminal.bind(this)\n this.term = new Terminal({\n rows: 30,\n cols: 100,\n cursorStyle: 'block',\n fontWeight: 'bold'\n })\n }\n\n handleKeyPress (domEvent: any): void {\n this.terminal?.TermSendKeys(domEvent)\n }\n\n handleClearTerminal (): void {\n this.term?.reset()\n }\n\n handleWriteToXterm (str: string): void {\n this.term?.write(str)\n }\n\n onTerminalStateChange (redirector: AMTRedirector, state: number): void {\n this.deviceStatus.emit(state)\n this.deviceState = state\n }\n\n startSol (): void {\n if (this.redirector !== null) {\n this.redirector.start(WebSocket)\n }\n }\n\n stopSol (): void {\n if (this.redirector !== null) {\n this.redirector.stop()\n this.handleClearTerminal()\n this.term?.dispose()\n this.cleanup()\n }\n }\n\n cleanup (): void {\n (this.terminal as any) = null;\n (this.redirector as any) = null;\n (this.dataProcessor as any) = null;\n (this.term as any) = null\n }\n\n ngOnDestroy (): void {\n this.stopSol()\n }\n}\n","<div class=\"container\">\n <amt-terminal *ngIf=\"deviceState === 3\" [term]=\"term\" (handleKeyPress)=\"handleKeyPress($event)\"></amt-terminal>\n</div>","/*********************************************************************\n * Copyright (c) Intel Corporation 2023\n * SPDX-License-Identifier: Apache-2.0\n **********************************************************************/\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'\nimport { BrowserModule } from '@angular/platform-browser'\nimport { CommonModule } from '@angular/common'\nimport { HttpClientModule } from '@angular/common/http'\nimport { SolComponent } from './sol.component'\nimport { TerminalComponent } from './terminal/terminal.component'\n\n@NgModule({\n declarations: [\n SolComponent,\n TerminalComponent\n ],\n imports: [\n HttpClientModule,\n CommonModule,\n BrowserModule\n ],\n exports: [\n SolComponent\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class SolModule {\n}\n","/*********************************************************************\n * Copyright (c) Intel Corporation 2023\n * SPDX-License-Identifier: Apache-2.0\n **********************************************************************/\n/*\n * Public API Surface of sol\n */\n\nexport * from './lib/sol.component'\nexport * from './lib/sol.module'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.TerminalComponent"],"mappings":";;;;;;;;;;AAAA;;;AAGwE;MAQ3D,iBAAiB,CAAA;AAL9B,IAAA,WAAA,GAAA;AAOY,QAAA,IAAA,CAAA,cAAc,GAAsB,IAAI,YAAY,EAAO,CAAA;AA8BtE,KAAA;IA5BC,QAAQ,GAAA;QACN,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QACpD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAS,KAAI;AAC7B,YAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAChC,SAAC,CAAC,CAAA;QACF,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAM,KAAI;YACrD,CAAC,CAAC,eAAe,EAAE,CAAA;;;;;AAKnB,YAAA,IAAI,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE;AACxB,gBAAA,IAAI,CAAC,CAAC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,EAAE;oBAChE,CAAC,CAAC,cAAc,EAAE,CAAA;AAClB,oBAAA,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAA;AAC9D,iBAAA;AAAM,qBAAA,IAAI,CAAC,CAAC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,EAAE;oBAC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A;;2FAOJ,SAAS,EAAA,UAAA,EAAA,CAAA;kBAfrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACzBD;;;AAGwE;AACxE;;AAEG;;ACNH;;AAEG;;;;"}
|
|
@@ -48,34 +48,22 @@ class TerminalComponent {
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
static { this.ɵfac =
|
|
52
|
-
static { this.ɵcmp =
|
|
53
|
-
i0.ɵɵelement(0, "div", 0);
|
|
54
|
-
} }, encapsulation: 2 }); }
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TerminalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: TerminalComponent, selector: "amt-terminal", inputs: { term: "term" }, outputs: { handleKeyPress: "handleKeyPress" }, ngImport: i0, template: "<div id=\"terminal\" class=\"xtermDisplay\" style=\"width: fit-content;\"></div>\n" }); }
|
|
55
53
|
}
|
|
56
|
-
(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TerminalComponent, { className: "TerminalComponent", filePath: "sol/lib/terminal/terminal.component.ts", lineNumber: 12 }); })();
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TerminalComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: 'amt-terminal', template: "<div id=\"terminal\" class=\"xtermDisplay\" style=\"width: fit-content;\"></div>\n" }]
|
|
57
|
+
}], propDecorators: { term: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], handleKeyPress: [{
|
|
60
|
+
type: Output
|
|
61
|
+
}] } });
|
|
65
62
|
|
|
66
63
|
/*********************************************************************
|
|
67
64
|
* Copyright (c) Intel Corporation 2023
|
|
68
65
|
* SPDX-License-Identifier: Apache-2.0
|
|
69
66
|
**********************************************************************/
|
|
70
|
-
function SolComponent_amt_terminal_1_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
72
|
-
i0.ɵɵelementStart(0, "amt-terminal", 2);
|
|
73
|
-
i0.ɵɵlistener("handleKeyPress", function SolComponent_amt_terminal_1_Template_amt_terminal_handleKeyPress_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleKeyPress($event)); });
|
|
74
|
-
i0.ɵɵelementEnd();
|
|
75
|
-
} if (rf & 2) {
|
|
76
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
77
|
-
i0.ɵɵproperty("term", ctx_r0.term);
|
|
78
|
-
} }
|
|
79
67
|
class SolComponent {
|
|
80
68
|
constructor() {
|
|
81
69
|
this.deviceState = 0;
|
|
@@ -168,72 +156,61 @@ class SolComponent {
|
|
|
168
156
|
ngOnDestroy() {
|
|
169
157
|
this.stopSol();
|
|
170
158
|
}
|
|
171
|
-
static { this.ɵfac =
|
|
172
|
-
static { this.ɵcmp =
|
|
173
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
174
|
-
i0.ɵɵtemplate(1, SolComponent_amt_terminal_1_Template, 1, 1, "amt-terminal", 1);
|
|
175
|
-
i0.ɵɵelementEnd();
|
|
176
|
-
} if (rf & 2) {
|
|
177
|
-
i0.ɵɵadvance(1);
|
|
178
|
-
i0.ɵɵproperty("ngIf", ctx.deviceState === 3);
|
|
179
|
-
} }, dependencies: [i1.NgIf, TerminalComponent], styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"], encapsulation: 2 }); }
|
|
159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
160
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: SolComponent, selector: "amt-sol", inputs: { deviceConnection: "deviceConnection", mpsServer: "mpsServer", authToken: "authToken", deviceId: "deviceId" }, outputs: { deviceStatus: "deviceStatus" }, ngImport: i0, template: "<div class=\"container\">\n <amt-terminal *ngIf=\"deviceState === 3\" [term]=\"term\" (handleKeyPress)=\"handleKeyPress($event)\"></amt-terminal>\n</div>", styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TerminalComponent, selector: "amt-terminal", inputs: ["term"], outputs: ["handleKeyPress"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
180
161
|
}
|
|
181
|
-
(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SolComponent, { className: "SolComponent", filePath: "sol/lib/sol.component.ts", lineNumber: 15 }); })();
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolComponent, decorators: [{
|
|
163
|
+
type: Component,
|
|
164
|
+
args: [{ selector: 'amt-sol', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\n <amt-terminal *ngIf=\"deviceState === 3\" [term]=\"term\" (handleKeyPress)=\"handleKeyPress($event)\"></amt-terminal>\n</div>", styles: [".container{display:block;text-align:center}.xtermDisplay{display:inline-block}\n"] }]
|
|
165
|
+
}], propDecorators: { deviceStatus: [{
|
|
166
|
+
type: Output
|
|
167
|
+
}], deviceConnection: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], mpsServer: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], authToken: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], deviceId: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}] } });
|
|
196
176
|
|
|
197
177
|
/*********************************************************************
|
|
198
178
|
* Copyright (c) Intel Corporation 2023
|
|
199
179
|
* SPDX-License-Identifier: Apache-2.0
|
|
200
180
|
**********************************************************************/
|
|
201
181
|
class SolModule {
|
|
202
|
-
static { this.ɵfac =
|
|
203
|
-
static { this.ɵmod =
|
|
204
|
-
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: SolModule, declarations: [SolComponent,
|
|
184
|
+
TerminalComponent], imports: [HttpClientModule,
|
|
185
|
+
CommonModule,
|
|
186
|
+
BrowserModule], exports: [SolComponent] }); }
|
|
187
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, imports: [HttpClientModule,
|
|
205
188
|
CommonModule,
|
|
206
189
|
BrowserModule] }); }
|
|
207
190
|
}
|
|
208
|
-
(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SolModule, { declarations: [SolComponent,
|
|
227
|
-
TerminalComponent], imports: [HttpClientModule,
|
|
228
|
-
CommonModule,
|
|
229
|
-
BrowserModule], exports: [SolComponent] }); })();
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SolModule, decorators: [{
|
|
192
|
+
type: NgModule,
|
|
193
|
+
args: [{
|
|
194
|
+
declarations: [
|
|
195
|
+
SolComponent,
|
|
196
|
+
TerminalComponent
|
|
197
|
+
],
|
|
198
|
+
imports: [
|
|
199
|
+
HttpClientModule,
|
|
200
|
+
CommonModule,
|
|
201
|
+
BrowserModule
|
|
202
|
+
],
|
|
203
|
+
exports: [
|
|
204
|
+
SolComponent
|
|
205
|
+
],
|
|
206
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
207
|
+
}]
|
|
208
|
+
}] });
|
|
230
209
|
|
|
231
210
|
/*********************************************************************
|
|
232
211
|
* Copyright (c) Intel Corporation 2023
|
|
233
212
|
* SPDX-License-Identifier: Apache-2.0
|
|
234
213
|
**********************************************************************/
|
|
235
|
-
const _c0 = ["canvas"];
|
|
236
|
-
const _c1 = ["device"];
|
|
237
214
|
class KvmComponent {
|
|
238
215
|
constructor() {
|
|
239
216
|
// //setting a width and height for the canvas
|
|
@@ -360,75 +337,59 @@ class KvmComponent {
|
|
|
360
337
|
ngOnDestroy() {
|
|
361
338
|
this.stopKvm();
|
|
362
339
|
}
|
|
363
|
-
static { this.ɵfac =
|
|
364
|
-
static { this.ɵcmp =
|
|
365
|
-
i0.ɵɵviewQuery(_c0, 5);
|
|
366
|
-
i0.ɵɵviewQuery(_c1, 5);
|
|
367
|
-
} if (rf & 2) {
|
|
368
|
-
let _t;
|
|
369
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.canvas = _t.first);
|
|
370
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.device = _t.first);
|
|
371
|
-
} }, inputs: { width: "width", height: "height", mpsServer: "mpsServer", authToken: "authToken", deviceId: "deviceId", deviceConnection: "deviceConnection", selectedEncoding: "selectedEncoding" }, outputs: { deviceStatus: "deviceStatus" }, decls: 3, vars: 2, consts: [["oncontextmenu", "return false", 1, "canvas", 3, "width", "height", "mouseup", "mousedown", "mousemove"], ["canvas", ""]], template: function KvmComponent_Template(rf, ctx) { if (rf & 1) {
|
|
372
|
-
i0.ɵɵelementStart(0, "div")(1, "canvas", 0, 1);
|
|
373
|
-
i0.ɵɵlistener("mouseup", function KvmComponent_Template_canvas_mouseup_1_listener($event) { return ctx.onMouseup($event); })("mousedown", function KvmComponent_Template_canvas_mousedown_1_listener($event) { return ctx.onMousedown($event); })("mousemove", function KvmComponent_Template_canvas_mousemove_1_listener($event) { return ctx.onMousemove($event); });
|
|
374
|
-
i0.ɵɵelementEnd()();
|
|
375
|
-
} if (rf & 2) {
|
|
376
|
-
i0.ɵɵadvance(1);
|
|
377
|
-
i0.ɵɵproperty("width", ctx.width)("height", ctx.height);
|
|
378
|
-
} }, styles: [".canvas[_ngcontent-%COMP%]{max-height:80%;max-width:100%}"] }); }
|
|
340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: KvmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
341
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: KvmComponent, selector: "amt-kvm", inputs: { width: "width", height: "height", mpsServer: "mpsServer", authToken: "authToken", deviceId: "deviceId", deviceConnection: "deviceConnection", selectedEncoding: "selectedEncoding" }, outputs: { deviceStatus: "deviceStatus" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }, { propertyName: "device", first: true, predicate: ["device"], descendants: true }], ngImport: i0, template: "<div>\n <canvas\n class=\"canvas\"\n #canvas\n [width]=\"width\"\n [height]=\"height\"\n oncontextmenu=\"return false\"\n (mouseup)=\"onMouseup($event)\"\n (mousedown)=\"onMousedown($event)\"\n (mousemove)=\"onMousemove($event)\"\n ></canvas>\n</div>\n", styles: [".canvas{max-height:80%;max-width:100%}\n"] }); }
|
|
379
342
|
}
|
|
380
|
-
(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KvmComponent, { className: "KvmComponent", filePath: "kvm/lib/kvm.component.ts", lineNumber: 34 }); })();
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: KvmComponent, decorators: [{
|
|
344
|
+
type: Component,
|
|
345
|
+
args: [{ selector: 'amt-kvm', template: "<div>\n <canvas\n class=\"canvas\"\n #canvas\n [width]=\"width\"\n [height]=\"height\"\n oncontextmenu=\"return false\"\n (mouseup)=\"onMouseup($event)\"\n (mousedown)=\"onMousedown($event)\"\n (mousemove)=\"onMousemove($event)\"\n ></canvas>\n</div>\n", styles: [".canvas{max-height:80%;max-width:100%}\n"] }]
|
|
346
|
+
}], propDecorators: { canvas: [{
|
|
347
|
+
type: ViewChild,
|
|
348
|
+
args: ['canvas', { static: false }]
|
|
349
|
+
}], device: [{
|
|
350
|
+
type: ViewChild,
|
|
351
|
+
args: ['device', { static: false }]
|
|
352
|
+
}], width: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}], height: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], mpsServer: [{
|
|
357
|
+
type: Input
|
|
358
|
+
}], authToken: [{
|
|
359
|
+
type: Input
|
|
360
|
+
}], deviceId: [{
|
|
361
|
+
type: Input
|
|
362
|
+
}], deviceStatus: [{
|
|
363
|
+
type: Output
|
|
364
|
+
}], deviceConnection: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], selectedEncoding: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}] } });
|
|
407
369
|
|
|
408
370
|
/*********************************************************************
|
|
409
371
|
* Copyright (c) Intel Corporation 2023
|
|
410
372
|
* SPDX-License-Identifier: Apache-2.0
|
|
411
373
|
**********************************************************************/
|
|
412
374
|
class KvmModule {
|
|
413
|
-
static { this.ɵfac =
|
|
414
|
-
static { this.ɵmod =
|
|
415
|
-
|
|
375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: KvmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
376
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: KvmModule, declarations: [KvmComponent], imports: [HttpClientModule,
|
|
377
|
+
BrowserModule], exports: [KvmComponent] }); }
|
|
378
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: KvmModule, imports: [HttpClientModule,
|
|
416
379
|
BrowserModule] }); }
|
|
417
380
|
}
|
|
418
|
-
(
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(KvmModule, { declarations: [KvmComponent], imports: [HttpClientModule,
|
|
431
|
-
BrowserModule], exports: [KvmComponent] }); })();
|
|
381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: KvmModule, decorators: [{
|
|
382
|
+
type: NgModule,
|
|
383
|
+
args: [{
|
|
384
|
+
declarations: [KvmComponent],
|
|
385
|
+
imports: [
|
|
386
|
+
HttpClientModule,
|
|
387
|
+
BrowserModule
|
|
388
|
+
],
|
|
389
|
+
exports: [KvmComponent],
|
|
390
|
+
schemas: []
|
|
391
|
+
}]
|
|
392
|
+
}] });
|
|
432
393
|
|
|
433
394
|
class IderComponent {
|
|
434
395
|
constructor() {
|
|
@@ -525,49 +486,47 @@ class IderComponent {
|
|
|
525
486
|
this.ider.stop();
|
|
526
487
|
}
|
|
527
488
|
}
|
|
528
|
-
static { this.ɵfac =
|
|
529
|
-
static { this.ɵcmp =
|
|
489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
490
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: IderComponent, selector: "amt-ider", inputs: { deviceConnection: "deviceConnection", cdrom: "cdrom", floppy: "floppy", mpsServer: "mpsServer", authToken: "authToken", deviceId: "deviceId" }, outputs: { deviceStatus: "deviceStatus", iderData: "iderData" }, ngImport: i0, template: '', isInline: true }); }
|
|
530
491
|
}
|
|
531
|
-
(
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IderComponent, { className: "IderComponent", filePath: "ider/lib/ider.component.ts", lineNumber: 16 }); })();
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IderComponent, decorators: [{
|
|
493
|
+
type: Component,
|
|
494
|
+
args: [{ selector: 'amt-ider', template: '' }]
|
|
495
|
+
}], propDecorators: { deviceStatus: [{
|
|
496
|
+
type: Output
|
|
497
|
+
}], iderData: [{
|
|
498
|
+
type: Output
|
|
499
|
+
}], deviceConnection: [{
|
|
500
|
+
type: Input
|
|
501
|
+
}], cdrom: [{
|
|
502
|
+
type: Input
|
|
503
|
+
}], floppy: [{
|
|
504
|
+
type: Input
|
|
505
|
+
}], mpsServer: [{
|
|
506
|
+
type: Input
|
|
507
|
+
}], authToken: [{
|
|
508
|
+
type: Input
|
|
509
|
+
}], deviceId: [{
|
|
510
|
+
type: Input
|
|
511
|
+
}] } });
|
|
552
512
|
|
|
553
513
|
class IderModule {
|
|
554
|
-
static { this.ɵfac =
|
|
555
|
-
static { this.ɵmod =
|
|
556
|
-
static { this.ɵinj =
|
|
514
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
515
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: IderModule, declarations: [IderComponent], exports: [IderComponent] }); }
|
|
516
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IderModule }); }
|
|
557
517
|
}
|
|
558
|
-
(
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IderModule, { declarations: [IderComponent], exports: [IderComponent] }); })();
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IderModule, decorators: [{
|
|
519
|
+
type: NgModule,
|
|
520
|
+
args: [{
|
|
521
|
+
declarations: [
|
|
522
|
+
IderComponent
|
|
523
|
+
],
|
|
524
|
+
imports: [],
|
|
525
|
+
exports: [
|
|
526
|
+
IderComponent
|
|
527
|
+
]
|
|
528
|
+
}]
|
|
529
|
+
}] });
|
|
571
530
|
|
|
572
531
|
/*********************************************************************
|
|
573
532
|
* Copyright (c) Intel Corporation 2023
|