handle.component.d.ts 2.4 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 } from '@angular/cdk/bidi';
  6. import { ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
  7. import { NgStyleInterface, NzTSType } from 'ng-zorro-antd/core/types';
  8. import { NzTooltipDirective } from 'ng-zorro-antd/tooltip';
  9. import { NzSliderService } from './slider.service';
  10. import { NzSliderShowTooltip } from './typings';
  11. import * as i0 from "@angular/core";
  12. export declare class NzSliderHandleComponent implements OnChanges {
  13. private sliderService;
  14. private cdr;
  15. handleEl?: ElementRef;
  16. tooltip?: NzTooltipDirective;
  17. vertical?: boolean;
  18. reverse?: boolean;
  19. offset?: number;
  20. value?: number;
  21. tooltipVisible: NzSliderShowTooltip;
  22. tooltipPlacement?: string;
  23. tooltipFormatter?: null | ((value: number) => string) | TemplateRef<void>;
  24. active: boolean;
  25. dir: Direction;
  26. tooltipTitle?: NzTSType;
  27. style: NgStyleInterface;
  28. constructor(sliderService: NzSliderService, cdr: ChangeDetectorRef);
  29. ngOnChanges(changes: SimpleChanges): void;
  30. enterHandle: () => void;
  31. leaveHandle: () => void;
  32. focus(): void;
  33. private toggleTooltip;
  34. private updateTooltipTitle;
  35. private updateTooltipPosition;
  36. private updateStyle;
  37. private getHorizontalStylePosition;
  38. static ɵfac: i0.ɵɵFactoryDeclaration<NzSliderHandleComponent, never>;
  39. static ɵcmp: i0.ɵɵComponentDeclaration<NzSliderHandleComponent, "nz-slider-handle", ["nzSliderHandle"], { "vertical": { "alias": "vertical"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltipVisible": { "alias": "tooltipVisible"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; }; "active": { "alias": "active"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; }, {}, never, never, true, never>;
  40. static ngAcceptInputType_vertical: unknown;
  41. static ngAcceptInputType_reverse: unknown;
  42. static ngAcceptInputType_offset: unknown;
  43. static ngAcceptInputType_value: unknown;
  44. static ngAcceptInputType_active: unknown;
  45. }