progress.component.d.ts 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Direction, Directionality } from '@angular/cdk/bidi';
  6. import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
  7. import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
  8. import { NgStyleInterface } from 'ng-zorro-antd/core/types';
  9. import { NzProgressCirclePath, NzProgressFormatter, NzProgressGapPositionType, NzProgressStatusType, NzProgressStepItem, NzProgressStrokeColorType, NzProgressStrokeLinecapType, NzProgressTypeType } from './typings';
  10. import * as i0 from "@angular/core";
  11. export declare class NzProgressComponent implements OnChanges, OnInit, OnDestroy {
  12. private cdr;
  13. nzConfigService: NzConfigService;
  14. private directionality;
  15. readonly _nzModuleName: NzConfigKey;
  16. nzShowInfo: boolean;
  17. nzWidth: number;
  18. nzStrokeColor?: NzProgressStrokeColorType;
  19. nzSize: 'default' | 'small';
  20. nzFormat?: NzProgressFormatter;
  21. nzSuccessPercent?: number;
  22. nzPercent: number;
  23. nzStrokeWidth?: number;
  24. nzGapDegree?: number;
  25. nzStatus?: NzProgressStatusType;
  26. nzType: NzProgressTypeType;
  27. nzGapPosition: NzProgressGapPositionType;
  28. nzStrokeLinecap: NzProgressStrokeLinecapType;
  29. nzSteps: number;
  30. steps: NzProgressStepItem[];
  31. /** Gradient style when `nzType` is `line`. */
  32. lineGradient: string | null;
  33. /** If user uses gradient color. */
  34. isGradient: boolean;
  35. /** If the linear progress is a step progress. */
  36. isSteps: boolean;
  37. /**
  38. * Each progress whose `nzType` is circle or dashboard should have unique id to
  39. * define `<linearGradient>`.
  40. */
  41. gradientId: number;
  42. /** Paths to rendered in the template. */
  43. progressCirclePath: NzProgressCirclePath[];
  44. circleGradient?: Array<{
  45. offset: string;
  46. color: string;
  47. }>;
  48. trailPathStyle: NgStyleInterface | null;
  49. pathString?: string;
  50. icon: string;
  51. dir: Direction;
  52. get formatter(): NzProgressFormatter;
  53. get status(): NzProgressStatusType;
  54. get strokeWidth(): number;
  55. get isCircleStyle(): boolean;
  56. private cachedStatus;
  57. private inferredStatus;
  58. private destroy$;
  59. constructor(cdr: ChangeDetectorRef, nzConfigService: NzConfigService, directionality: Directionality);
  60. ngOnChanges(changes: SimpleChanges): void;
  61. ngOnInit(): void;
  62. ngOnDestroy(): void;
  63. private updateIcon;
  64. /**
  65. * Calculate step render configs.
  66. */
  67. private getSteps;
  68. /**
  69. * Calculate paths when the type is circle or dashboard.
  70. */
  71. private getCirclePaths;
  72. private setStrokeColor;
  73. static ɵfac: i0.ɵɵFactoryDeclaration<NzProgressComponent, never>;
  74. static ɵcmp: i0.ɵɵComponentDeclaration<NzProgressComponent, "nz-progress", ["nzProgress"], { "nzShowInfo": { "alias": "nzShowInfo"; "required": false; }; "nzWidth": { "alias": "nzWidth"; "required": false; }; "nzStrokeColor": { "alias": "nzStrokeColor"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzFormat": { "alias": "nzFormat"; "required": false; }; "nzSuccessPercent": { "alias": "nzSuccessPercent"; "required": false; }; "nzPercent": { "alias": "nzPercent"; "required": false; }; "nzStrokeWidth": { "alias": "nzStrokeWidth"; "required": false; }; "nzGapDegree": { "alias": "nzGapDegree"; "required": false; }; "nzStatus": { "alias": "nzStatus"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzGapPosition": { "alias": "nzGapPosition"; "required": false; }; "nzStrokeLinecap": { "alias": "nzStrokeLinecap"; "required": false; }; "nzSteps": { "alias": "nzSteps"; "required": false; }; }, {}, never, never, true, never>;
  75. static ngAcceptInputType_nzSuccessPercent: unknown;
  76. static ngAcceptInputType_nzPercent: unknown;
  77. static ngAcceptInputType_nzStrokeWidth: unknown;
  78. static ngAcceptInputType_nzGapDegree: unknown;
  79. static ngAcceptInputType_nzSteps: unknown;
  80. }