segmented.component.d.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 { AnimationEvent } from '@angular/animations';
  6. import { Direction, Directionality } from '@angular/cdk/bidi';
  7. import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
  8. import { ControlValueAccessor } from '@angular/forms';
  9. import { ThumbAnimationProps } from 'ng-zorro-antd/core/animation';
  10. import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
  11. import { NzSizeLDSType, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
  12. import { NzSegmentedOption, NzSegmentedOptions } from './types';
  13. import * as i0 from "@angular/core";
  14. export declare class NzSegmentedComponent implements OnChanges, ControlValueAccessor {
  15. readonly nzConfigService: NzConfigService;
  16. private readonly cdr;
  17. private readonly directionality;
  18. readonly _nzModuleName: NzConfigKey;
  19. nzBlock: boolean;
  20. nzDisabled: boolean;
  21. nzOptions: NzSegmentedOptions;
  22. nzSize: NzSizeLDSType;
  23. readonly nzValueChange: EventEmitter<string | number>;
  24. private viewItemCmps;
  25. private contentItemCmps;
  26. protected dir: Direction;
  27. protected value?: number | string;
  28. protected animationState: null | {
  29. value: string;
  30. params: ThumbAnimationProps;
  31. };
  32. protected normalizedOptions: NzSegmentedOption[];
  33. protected onChange: OnChangeType;
  34. protected onTouched: OnTouchedType;
  35. private readonly service;
  36. constructor(nzConfigService: NzConfigService, cdr: ChangeDetectorRef, directionality: Directionality);
  37. ngOnChanges(changes: SimpleChanges): void;
  38. handleThumbAnimationDone(event: AnimationEvent): void;
  39. writeValue(value: number | string): void;
  40. registerOnChange(fn: OnChangeType): void;
  41. registerOnTouched(fn: OnTouchedType): void;
  42. static ɵfac: i0.ɵɵFactoryDeclaration<NzSegmentedComponent, never>;
  43. static ɵcmp: i0.ɵɵComponentDeclaration<NzSegmentedComponent, "nz-segmented", ["nzSegmented"], { "nzBlock": { "alias": "nzBlock"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzOptions": { "alias": "nzOptions"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; }, { "nzValueChange": "nzValueChange"; }, ["contentItemCmps"], ["*"], true, never>;
  44. static ngAcceptInputType_nzBlock: unknown;
  45. static ngAcceptInputType_nzDisabled: unknown;
  46. }