@agendize/design-system
Version:
Agendize web design system
27 lines • 956 B
TypeScript
import { Ref } from "vue";
import { HoursErrors } from "../../../utils/hoursError";
import { Mandatory, ValidationType } from "../viewModel";
export declare function BusinessHoursViewModel(currentBusinessHours: Map<string, {
start: string | undefined;
end: string | undefined;
}[]>, errors: Ref<HoursErrors>, defaultWorkingHours: {
start: string | undefined;
end: string | undefined;
}[], validationType: ValidationType, mandatoryDays: Mandatory): {
weekDayNames: {
index: string;
name: string;
}[];
businessHours: Ref<Map<string, {
start: string | undefined;
end: string | undefined;
}[]>, Map<string, {
start: string | undefined;
end: string | undefined;
}[]>>;
openDay: (day: string) => void;
getErrorLabel: (errors: HoursErrors, day: string) => string;
hasDaysError: () => boolean;
checkDaysError: () => void;
};
//# sourceMappingURL=viewModel.d.ts.map