date-picker.service.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829
  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 { OnDestroy } from '@angular/core';
  6. import { ReplaySubject, Subject } from 'rxjs';
  7. import { CompatibleValue, NormalizedMode } from 'ng-zorro-antd/core/time';
  8. import { CompatibleDate, RangePartType } from './standard-types';
  9. import * as i0 from "@angular/core";
  10. export declare class DatePickerService implements OnDestroy {
  11. initialValue: CompatibleValue;
  12. value: CompatibleValue;
  13. activeDate?: CompatibleValue;
  14. activeInput: RangePartType;
  15. arrowLeft: number;
  16. isRange: boolean;
  17. valueChange$: ReplaySubject<CompatibleValue>;
  18. emitValue$: Subject<void>;
  19. inputPartChange$: Subject<RangePartType | null>;
  20. initValue(reset?: boolean): void;
  21. hasValue(value?: CompatibleValue): boolean;
  22. makeValue(value?: CompatibleDate): CompatibleValue;
  23. setActiveDate(value: CompatibleValue, hasTimePicker?: boolean, mode?: NormalizedMode): void;
  24. setValue(value: CompatibleValue): void;
  25. getActiveIndex(part?: RangePartType): number;
  26. ngOnDestroy(): void;
  27. static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerService, never>;
  28. static ɵprov: i0.ɵɵInjectableDeclaration<DatePickerService>;
  29. }