@alauda-fe/common
Version:
Alauda frontend team common codes.
34 lines (33 loc) • 1.71 kB
TypeScript
import { Router } from '@angular/router';
import { TranslateService } from '../../translate/public-api';
import { LicenseService } from '../license.service';
import { LicenseStatus } from '../license.type';
import * as i0 from "@angular/core";
export declare class LicenseErrorComponent {
private readonly router;
private readonly licenseService;
readonly translate: TranslateService;
readonly productName: string;
Reason: {
readonly NotSupported: "notSupported";
readonly NoPermission: "noPermission";
readonly NotDeployed: "notDeployed";
readonly Abnormal: "abnormal";
readonly NoData: "noData";
readonly NoMessage: "noMessage";
readonly Disconnected: "disconnected";
readonly LicenseAbnormal: "licenseAbnormal";
readonly NetworkAbnormal: "networkAbnormal";
readonly NotFound: "notFound";
readonly NoAlarm: "noAlarm";
};
errorStatus$: import("rxjs").Observable<LicenseStatus>;
LicenseStatus: typeof LicenseStatus;
constructor(router: Router, licenseService: LicenseService, translate: TranslateService, productName: string);
getErrorTitle(status: LicenseStatus): string;
getErrorContent(status: LicenseStatus, _locale?: string): string;
shouldShowImport(status: LicenseStatus): status is LicenseStatus.EXPIRED | LicenseStatus.UNAUTHORIZED | LicenseStatus.AUTHORIZED | LicenseStatus.INVALID;
getButtonText(status: LicenseStatus, _locale?: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<LicenseErrorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LicenseErrorComponent, "acl-license-error", never, {}, {}, never, ["*"], false, never>;
}