/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Direction, Directionality } from '@angular/cdk/bidi'; import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { VtsConfigKey, VtsConfigService } from '@ui-vts-kit/ng-vts/core/config'; import { NgStyleInterface, NumberInput } from '@ui-vts-kit/ng-vts/core/types'; import { VtsProgressCirclePath, VtsProgressFormatter, VtsProgressGapPositionType, VtsProgressStatusType, VtsProgressStepItem, VtsProgressStrokeColorType, VtsProgressStrokeLinecapType, VtsProgressTypeType } from './typings'; import * as i0 from "@angular/core"; export declare class VtsProgressComponent implements OnChanges, OnInit, OnDestroy { private cdr; vtsConfigService: VtsConfigService; private directionality; readonly _vtsModuleName: VtsConfigKey; static ngAcceptInputType_vtsSuccessPercent: NumberInput; static ngAcceptInputType_vtsPercent: NumberInput; static ngAcceptInputType_vtsStrokeWidth: NumberInput; static ngAcceptInputType_vtsGapDegree: NumberInput; static ngAcceptInputType_vtsSteps: NumberInput; vtsShowInfo: boolean; vtsWidth: number; vtsStrokeColor?: VtsProgressStrokeColorType; vtsSize: 'default' | 'small'; vtsFormat?: VtsProgressFormatter; vtsSuccessPercent?: number; vtsPercent: number; vtsStrokeWidth?: number; vtsGapDegree?: number; vtsStatus?: VtsProgressStatusType; vtsType: VtsProgressTypeType; vtsGapPosition: VtsProgressGapPositionType; vtsStrokeLinecap: VtsProgressStrokeLinecapType; vtsSteps: number; steps: VtsProgressStepItem[]; /** Gradient style when `vtsType` is `line`. */ lineGradient: string | null; /** If user uses gradient color. */ isGradient: boolean; /** If the linear progress is a step progress. */ isSteps: boolean; /** * Each progress whose `vtsType` is circle or dashboard should have unique id to * define ``. */ gradientId: number; /** Paths to rendered in the template. */ progressCirclePath: VtsProgressCirclePath[]; circleGradient?: Array<{ offset: string; color: string; }>; trailPathStyle: NgStyleInterface | null; pathString?: string; icon: string; dir: Direction; trackByFn: (index: number) => string; get formatter(): VtsProgressFormatter; get status(): VtsProgressStatusType; get strokeWidth(): number; get isCircleStyle(): boolean; private cachedStatus; private inferredStatus; private destroy$; constructor(cdr: ChangeDetectorRef, vtsConfigService: VtsConfigService, directionality: Directionality); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; private updateIcon; /** * Calculate step render configs. */ private getSteps; /** * Calculate paths when the type is circle or dashboard. */ private getCirclePaths; private setStrokeColor; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }