Repository URL to install this package:
import { OnInit, EventEmitter } from '@angular/core';
import { NGXLogger } from 'web-console-core';
export interface RESTContextDialogResult {
name: string;
url: string;
domain: string;
application: string;
dialogMode: DialogMode;
}
export declare enum DialogMode {
Edit = 0,
New = 1
}
export declare class RESTContextDialogComponent implements OnInit {
private logger;
dialogMode: DialogMode;
display: boolean;
dialogTitle: string;
createButtonCaption: string;
domain: string;
application: string;
name: string;
url: string;
private _nameEditingWarningDisplay;
private _urlEditingWarningDisplay;
private _applicationEditingWarningDisplay;
private _domainEditingWarningDisplay;
confirm: EventEmitter<RESTContextDialogResult>;
cancel: EventEmitter<void>;
constructor(logger: NGXLogger);
ngOnInit(): void;
showForEdit(domain: string, application: string, contextName: string, url: string, enabled: boolean): void;
showForNew(domain: string, application: string): void;
hide(): void;
private prepareForEdit;
private prepareForNew;
onCancel(): void;
onConfirm(): void;
readonly urlEditingWarningDisplay: boolean;
readonly nameEditingWarningDisplay: boolean;
readonly domainEditingWarningDisplay: boolean;
readonly applicationEditingWarningDisplay: boolean;
private validate;
onTypeValueChange(event: any): void;
readonly editMode: boolean;
readonly newMode: boolean;
}