indent.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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 { ChangeDetectorRef, OnDestroy } from '@angular/core';
  6. import { NzNodeBase } from './node-base';
  7. import { NzTreeView } from './tree';
  8. import * as i0 from "@angular/core";
  9. export declare class NzTreeNodeIndentsComponent {
  10. indents: boolean[];
  11. static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeIndentsComponent, never>;
  12. static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeNodeIndentsComponent, "nz-tree-node-indents", never, { "indents": { "alias": "indents"; "required": false; }; }, {}, never, never, true, never>;
  13. }
  14. export declare class NzTreeNodeIndentLineDirective<T> implements OnDestroy {
  15. private treeNode;
  16. private tree;
  17. private cdr;
  18. isLast: boolean | 'unset';
  19. isLeaf: boolean;
  20. private preNodeRef;
  21. private nextNodeRef;
  22. private currentIndents;
  23. private changeSubscription;
  24. constructor(treeNode: NzNodeBase<T>, tree: NzTreeView<T>, cdr: ChangeDetectorRef);
  25. private getIndents;
  26. private buildIndents;
  27. /**
  28. * We need to add an class name for the last child node,
  29. * this result can also be affected when the adjacent nodes are changed.
  30. */
  31. private checkAdjacent;
  32. private checkLast;
  33. ngOnDestroy(): void;
  34. static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeNodeIndentLineDirective<any>, never>;
  35. static ɵdir: i0.ɵɵDirectiveDeclaration<NzTreeNodeIndentLineDirective<any>, "nz-tree-node[nzTreeNodeIndentLine]", never, {}, {}, never, never, true, never>;
  36. }