cascader-tree.service.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { NzTreeBaseService, NzTreeNode, NzTreeNodeKey } from 'ng-zorro-antd/core/tree';
  2. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  3. import { NzCascaderOption } from './typings';
  4. import * as i0 from "@angular/core";
  5. interface InternalFieldNames {
  6. label: string;
  7. value: string;
  8. }
  9. export declare class NzCascaderTreeService extends NzTreeBaseService {
  10. fieldNames: InternalFieldNames;
  11. missingNodeList: NzTreeNode[];
  12. treeNodePostProcessor: (node: NzTreeNode) => void;
  13. getOptionValue(node: NzTreeNode): NzSafeAny;
  14. getOptionLabel(node: NzTreeNode): string;
  15. get children(): NzTreeNode[];
  16. set children(value: Array<NzTreeNode | NzSafeAny>);
  17. constructor();
  18. /**
  19. * Map list of nodes to list of option
  20. */
  21. toOptions(nodes: NzTreeNode[]): NzCascaderOption[];
  22. getAncestorNodeList(node: NzTreeNode | null): NzTreeNode[];
  23. /**
  24. * Render by nzCheckedKeys
  25. * When keys equals null, just render with checkStrictly
  26. *
  27. * @param paths
  28. * @param checkStrictly
  29. */
  30. conductCheckPaths(paths: NzTreeNodeKey[][] | null, checkStrictly: boolean): void;
  31. conductSelectedPaths(paths: NzTreeNodeKey[][], isMulti: boolean): void;
  32. private getMissingNodeList;
  33. private createMissingNode;
  34. static ɵfac: i0.ɵɵFactoryDeclaration<NzCascaderTreeService, never>;
  35. static ɵprov: i0.ɵɵInjectableDeclaration<NzCascaderTreeService>;
  36. }
  37. export {};