tree.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 { DataSource } from '@angular/cdk/collections';
  7. import { CdkTree, TreeControl } from '@angular/cdk/tree';
  8. import { ChangeDetectorRef, IterableDiffer, IterableDiffers, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
  9. import { Observable, Subject } from 'rxjs';
  10. import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
  11. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  12. import * as i0 from "@angular/core";
  13. export declare class NzTreeView<T> extends CdkTree<T> implements OnInit, OnDestroy {
  14. protected differs: IterableDiffers;
  15. protected changeDetectorRef: ChangeDetectorRef;
  16. private directionality;
  17. private destroy$;
  18. dir: Direction;
  19. _dataSourceChanged: Subject<void>;
  20. treeControl?: TreeControl<T, NzSafeAny>;
  21. get dataSource(): DataSource<T> | Observable<T[]> | T[];
  22. set dataSource(dataSource: DataSource<T> | Observable<T[]> | T[]);
  23. nzDirectoryTree: boolean;
  24. nzBlockNode: boolean;
  25. noAnimation: NzNoAnimationDirective | null;
  26. constructor(differs: IterableDiffers, changeDetectorRef: ChangeDetectorRef, directionality: Directionality);
  27. ngOnInit(): void;
  28. ngOnDestroy(): void;
  29. renderNodeChanges(data: T[] | readonly T[], dataDiffer?: IterableDiffer<T>, viewContainer?: ViewContainerRef, parentData?: T): void;
  30. static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeView<any>, never>;
  31. static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeView<any>, "ng-component", never, { "treeControl": { "alias": "nzTreeControl"; "required": false; }; "dataSource": { "alias": "nzDataSource"; "required": false; }; "nzDirectoryTree": { "alias": "nzDirectoryTree"; "required": false; }; "nzBlockNode": { "alias": "nzBlockNode"; "required": false; }; }, {}, never, never, true, never>;
  32. static ngAcceptInputType_nzDirectoryTree: unknown;
  33. static ngAcceptInputType_nzBlockNode: unknown;
  34. }