descriptions.component.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
  7. import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
  8. import { NzBreakpointEnum, NzBreakpointService } from 'ng-zorro-antd/core/services';
  9. import { NzDescriptionsItemComponent } from './descriptions-item.component';
  10. import { NzDescriptionsItemRenderProps, NzDescriptionsLayout, NzDescriptionsSize } from './typings';
  11. import * as i0 from "@angular/core";
  12. export declare class NzDescriptionsComponent implements OnChanges, OnDestroy, AfterContentInit, OnInit {
  13. nzConfigService: NzConfigService;
  14. private cdr;
  15. private breakpointService;
  16. private directionality;
  17. readonly _nzModuleName: NzConfigKey;
  18. items: QueryList<NzDescriptionsItemComponent>;
  19. nzBordered: boolean;
  20. nzLayout: NzDescriptionsLayout;
  21. nzColumn: number | Record<NzBreakpointEnum, number>;
  22. nzSize: NzDescriptionsSize;
  23. nzTitle: string | TemplateRef<void>;
  24. nzExtra?: string | TemplateRef<void>;
  25. nzColon: boolean;
  26. itemMatrix: NzDescriptionsItemRenderProps[][];
  27. realColumn: number;
  28. dir: Direction;
  29. private breakpoint;
  30. private destroy$;
  31. constructor(nzConfigService: NzConfigService, cdr: ChangeDetectorRef, breakpointService: NzBreakpointService, directionality: Directionality);
  32. ngOnInit(): void;
  33. ngOnChanges(changes: SimpleChanges): void;
  34. ngAfterContentInit(): void;
  35. ngOnDestroy(): void;
  36. /**
  37. * Prepare the render matrix according to description items' spans.
  38. */
  39. private prepareMatrix;
  40. private getColumn;
  41. static ɵfac: i0.ɵɵFactoryDeclaration<NzDescriptionsComponent, never>;
  42. static ɵcmp: i0.ɵɵComponentDeclaration<NzDescriptionsComponent, "nz-descriptions", ["nzDescriptions"], { "nzBordered": { "alias": "nzBordered"; "required": false; }; "nzLayout": { "alias": "nzLayout"; "required": false; }; "nzColumn": { "alias": "nzColumn"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzTitle": { "alias": "nzTitle"; "required": false; }; "nzExtra": { "alias": "nzExtra"; "required": false; }; "nzColon": { "alias": "nzColon"; "required": false; }; }, {}, ["items"], never, true, never>;
  43. static ngAcceptInputType_nzBordered: unknown;
  44. static ngAcceptInputType_nzColon: unknown;
  45. }