UNPKG

@harbor/ui

Version:

Harbor shared UI components based on Clarity and Angular6

75 lines (74 loc) 3.19 kB
import { OnInit, ChangeDetectorRef, EventEmitter } from "@angular/core"; import { Observable } from "rxjs"; import { State } from "@clr/angular"; import { SystemInfo, SystemInfoService, HelmChartVersion, HelmChartMaintainer, LabelService } from "./../../service/index"; import { Label } from './../../service/interface'; import { ErrorHandler } from "./../../error-handler/error-handler"; import { OperationService } from "./../../operation/operation.service"; import { HelmChartService } from "./../../service/helm-chart.service"; import { ConfirmationAcknowledgement, ConfirmationDialogComponent } from "./../../confirmation-dialog"; import { ResourceType } from "../../shared/shared.const"; export declare class ChartVersionComponent implements OnInit { private errorHandler; private systemInfoService; private helmChartService; private resrouceLabelService; private cdr; private operationService; signedCon: { [key: string]: any | string[]; }; projectRoleID: number; projectId: number; projectName: string; chartName: string; roleName: string; hasSignedIn: boolean; hasProjectAdminRole: boolean; chartDefaultIcon: string; versionClickEvt: EventEmitter<string>; backEvt: EventEmitter<any>; lastFilteredVersionName: string; chartVersions: HelmChartVersion[]; systemInfo: SystemInfo; selectedRows: HelmChartVersion[]; labels: Label[]; loading: boolean; resourceType: ResourceType; isCardView: boolean; cardHover: boolean; listHover: boolean; pageSize: number; currentPage: number; totalCount: number; currentState: State; chartFile: File; provFile: File; addLabelHeaders: string; confirmationDialog: ConfirmationDialogComponent; constructor(errorHandler: ErrorHandler, systemInfoService: SystemInfoService, helmChartService: HelmChartService, resrouceLabelService: LabelService, cdr: ChangeDetectorRef, operationService: OperationService); readonly registryUrl: string; ngOnInit(): void; updateFilterValue(value: string): void; getLabels(): void; refresh(): void; getMaintainerString(maintainers: HelmChartMaintainer[]): string; onVersionClick(version: HelmChartVersion): void; deleteVersion(version: HelmChartVersion): Observable<any>; deleteVersions(versions: HelmChartVersion[]): void; versionDownload(evt?: Event, item?: HelmChartVersion): void; showCard(cardView: boolean): void; mouseEnter(itemName: string): void; mouseLeave(itemName: string): void; isHovering(itemName: string): boolean; onChartFileChangeEvent(event: any): void; onProvFileChangeEvent(event: any): void; deleteVersionCard(env: Event, version: HelmChartVersion): void; openVersionDeleteModal(versions: HelmChartVersion[]): void; confirmDeletion(message: ConfirmationAcknowledgement): void; getImgLink(v: HelmChartVersion): string; getDefaultIcon(v: HelmChartVersion): void; getStatusString(chartVersion: HelmChartVersion): "HELM_CHART.DEPRECATED" | "HELM_CHART.ACTIVE"; onLabelChange(version: HelmChartVersion): void; readonly developerRoleOrAbove: boolean; }