tree-virtual-scroll-view.d.ts 2.0 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 { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
  6. import { OnChanges, SimpleChanges, TrackByFunction } from '@angular/core';
  7. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  8. import { NzTreeVirtualNodeData } from './node';
  9. import { NzTreeNodeOutletDirective } from './outlet';
  10. import { NzTreeView } from './tree';
  11. import * as i0 from "@angular/core";
  12. export declare class NzTreeVirtualScrollViewComponent<T> extends NzTreeView<T> implements OnChanges {
  13. readonly nodeOutlet: NzTreeNodeOutletDirective;
  14. readonly virtualScrollViewport: CdkVirtualScrollViewport;
  15. nzItemSize: number;
  16. nzMinBufferPx: number;
  17. nzMaxBufferPx: number;
  18. trackBy: TrackByFunction<T>;
  19. nodes: Array<NzTreeVirtualNodeData<T>>;
  20. innerTrackBy: TrackByFunction<NzTreeVirtualNodeData<T>>;
  21. ngOnChanges({ trackBy }: SimpleChanges): void;
  22. get compareBy(): ((value: T) => NzSafeAny) | null;
  23. renderNodeChanges(data: T[] | readonly T[]): void;
  24. /**
  25. * @note
  26. * angular/cdk v18.2.0 breaking changes: https://github.com/angular/components/pull/29062
  27. * Temporary workaround: revert to old method of getting level
  28. * TODO: refactor tree-view, remove #treeControl and adopt #levelAccessor and #childrenAccessor
  29. * */
  30. _getLevel(nodeData: T): number | undefined;
  31. private createNode;
  32. static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeVirtualScrollViewComponent<any>, never>;
  33. static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeVirtualScrollViewComponent<any>, "nz-tree-virtual-scroll-view", ["nzTreeVirtualScrollView"], { "nzItemSize": { "alias": "nzItemSize"; "required": false; }; "nzMinBufferPx": { "alias": "nzMinBufferPx"; "required": false; }; "nzMaxBufferPx": { "alias": "nzMaxBufferPx"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, never, never, true, never>;
  34. }