vue3-calendar-component
Version:
A comprehensive Vue 3 Calendar component with Vuetify 3, TypeScript, and advanced features
101 lines • 3.17 kB
TypeScript
import dayjs from 'dayjs';
import 'dayjs/locale/de';
import 'dayjs/locale/en';
import { CalendarLocale } from '../types';
export declare function useLocale(): {
current: import("vue").Ref<{
dayJsLocale: string;
status: {
open: string;
planned: string;
overdue: string;
completed: string;
cancelled: string;
};
views: {
agenda: {
noEvents: string;
buttons: {
markEventCompleted: string;
cancelEvent: string;
};
};
};
toolbar: {
buttons: {
month: string;
week: string;
day: string;
agenda: string;
today: string;
previous: string;
next: string;
};
filters: {
statusLabel: string;
filterByCategory: string;
};
searchPlaceholder: string;
clearFilters: string;
activeFilters: (activeFilterCount: number) => string;
};
formats: {
date?: string | undefined;
time?: string | undefined;
day?: string | undefined;
startOfWeek?: string | undefined;
endOfWeek?: string | undefined;
month?: string | undefined;
duration: (days: number, hours: number, minutes: number) => string;
};
}, CalendarLocale | {
dayJsLocale: string;
status: {
open: string;
planned: string;
overdue: string;
completed: string;
cancelled: string;
};
views: {
agenda: {
noEvents: string;
buttons: {
markEventCompleted: string;
cancelEvent: string;
};
};
};
toolbar: {
buttons: {
month: string;
week: string;
day: string;
agenda: string;
today: string;
previous: string;
next: string;
};
filters: {
statusLabel: string;
filterByCategory: string;
};
searchPlaceholder: string;
clearFilters: string;
activeFilters: (activeFilterCount: number) => string;
};
formats: {
date?: string | undefined;
time?: string | undefined;
day?: string | undefined;
startOfWeek?: string | undefined;
endOfWeek?: string | undefined;
month?: string | undefined;
duration: (days: number, hours: number, minutes: number) => string;
};
}>;
setLocale: (newLocale: CalendarLocale) => void;
createLocalizedDayjs: (date?: string | Date | dayjs.Dayjs) => dayjs.Dayjs;
localizedDayjs: import("vue").ComputedRef<(date?: string | Date | dayjs.Dayjs) => dayjs.Dayjs>;
};
//# sourceMappingURL=useLocale.d.ts.map