/**
 * DevExtreme (esm/ui/scheduler/workspaces/view_model/view_data_generator_week.js)
 * Version: 21.2.5 (build 22047-0313)
 * Build date: Wed Feb 16 2022
 *
 * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import {
    calculateStartViewDate,
    getIntervalDuration
} from "../../../../renovation/ui/scheduler/view_model/to_test/views/utils/week";
import {
    ViewDataGenerator
} from "./view_data_generator";
export class ViewDataGeneratorWeek extends ViewDataGenerator {
    get daysInInterval() {
        return 7
    }
    _getIntervalDuration(intervalCount) {
        return getIntervalDuration(intervalCount)
    }
    _calculateStartViewDate(options) {
        return calculateStartViewDate(options.currentDate, options.startDayHour, options.startDate, this._getIntervalDuration(options.intervalCount), this.getFirstDayOfWeek(options.firstDayOfWeek))
    }
}
