timepicker.actions.d.ts 1.0 KB

12345678910111213141516171819202122232425
  1. import { Action } from 'ngx-bootstrap/mini-ngrx';
  2. import { TimeChangeEvent, TimepickerComponentState, Time } from '../timepicker.models';
  3. export declare class TimepickerActions {
  4. static readonly WRITE_VALUE = "[timepicker] write value from ng model";
  5. static readonly CHANGE_HOURS = "[timepicker] change hours";
  6. static readonly CHANGE_MINUTES = "[timepicker] change minutes";
  7. static readonly CHANGE_SECONDS = "[timepicker] change seconds";
  8. static readonly SET_TIME_UNIT = "[timepicker] set time unit";
  9. static readonly UPDATE_CONTROLS = "[timepicker] update controls";
  10. writeValue(value: Date | string): {
  11. type: string;
  12. payload: string | Date;
  13. };
  14. changeHours(event: TimeChangeEvent): {
  15. type: string;
  16. payload: TimeChangeEvent;
  17. };
  18. changeMinutes(event: TimeChangeEvent): {
  19. type: string;
  20. payload: TimeChangeEvent;
  21. };
  22. changeSeconds(event: TimeChangeEvent): Action;
  23. setTime(value: Time): Action;
  24. updateControls(value: TimepickerComponentState): Action;
  25. }