@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
79 lines • 3.23 kB
TypeScript
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
import { FormGroup, NgForm } from '@angular/forms';
import { AlertService, DropAreaComponent, DroppedFile, ModalService } from '@c8y/ngx-components';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { OpcuaServer } from './opcua-server.interface';
import { OpcuaService } from './opcuaService';
import * as i0 from "@angular/core";
export declare class OpcuaServerConfigComponent implements OnInit, OnChanges {
private opcuaService;
private modalService;
private alertService;
private readonly changeDetectorRef;
currentSecMode: string;
fileName: string;
targetConnectionState: string;
minIntervalNumber: number;
connectionStatusLabel: string;
autoScanAddressSpace: string;
advancedSettings: boolean;
advancedSettingsForm: FormGroup<{}>;
advancedSettingsFields: FormlyFieldConfig[];
isNew: import("@angular/core").WritableSignal<boolean>;
set opcuaConfigForm(opcuaConfigForm: NgForm);
dropArea: DropAreaComponent;
canceled: EventEmitter<OpcuaServer>;
removed: EventEmitter<OpcuaServer>;
saved: EventEmitter<OpcuaServer>;
updated: EventEmitter<OpcuaServer>;
set server(server: OpcuaServer);
get server(): OpcuaServer;
model: OpcuaServer;
changePassword: boolean;
initialPasswordRequired: boolean;
securityModes: string[];
authenticationMode: any;
authenticationModes: any[];
NONE: string;
SIGN: string;
SIGN_ENC: string;
securityPolicies: any;
private ANONYM;
private USER_PASSWORD;
private KEY_BASED;
private _server;
private initialKeystore;
private keystore;
private authSwitch;
private opcuaConfigFormValueChange$;
private opcuaConfigFormChangesSubscribed;
private destroyRef;
constructor(opcuaService: OpcuaService, modalService: ModalService, alertService: AlertService, changeDetectorRef: ChangeDetectorRef);
ngOnInit(): Promise<void>;
ngOnChanges(): void;
ngAfterViewChecked(): void;
cancel(): void;
remove(): Promise<void>;
save(): Promise<void>;
uploadFile(droppedFiles: DroppedFile[]): void;
setPolicy(data: any): void;
setServerConnection(data: string): void;
updateAuthentication(data: any): void;
updateConnectionStatusLabel(server: any): void;
setNewPassword(): void;
toggleChangePassword(): void;
private uploadKeystore;
private removeKeystore;
private resetUserAuthentication;
private resetKeyBasedAuthentication;
private restoreUserData;
private restoreKeyBasedData;
private getServerConfig;
private setCurrentSecurityMode;
private setCurrentAuthenticationMode;
private getModelConfig;
private getAdvancedSettingsFields;
static ɵfac: i0.ɵɵFactoryDeclaration<OpcuaServerConfigComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<OpcuaServerConfigComponent, "opcua-server-config", never, { "server": { "alias": "server"; "required": false; }; }, { "canceled": "canceled"; "removed": "removed"; "saved": "saved"; "updated": "updated"; }, never, never, false, never>;
}
//# sourceMappingURL=opcua-server-config.component.d.ts.map