v-datepicker-lite
Version:
A lightweight Vue 3 date picker with date, time, date-time, week, and month modes
14 lines (13 loc) • 656 B
TypeScript
export declare function useTime(selectedTime: Date | null, timeFormat: '12h' | '24h', timeInterval: 15 | 30 | 60, emit: any): {
hours: import('vue').Ref<number, number>;
minutes: import('vue').Ref<number, number>;
timeOptions: import('vue').Ref<string[], string[]>;
is12HourFormat: import('vue').ComputedRef<boolean>;
initializeTime: () => void;
updateTime: (newSelectedTime: Date | null) => void;
generateTimeOptions: () => void;
getCurrentTimeString: () => string;
selectTime: (timeString: string) => void;
scrollToSelected: (timeListRef: HTMLDivElement | null) => void;
onTimeUpdate: (time: Date) => void;
};