devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
47 lines (46 loc) • 1.55 kB
JavaScript
/**
* DevExtreme (esm/__internal/scheduler/utils/options/constants_view.js)
* Version: 25.2.5
* Build date: Fri Feb 20 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
export const VIEWS = {
DAY: "day",
WEEK: "week",
WORK_WEEK: "workWeek",
MONTH: "month",
TIMELINE_DAY: "timelineDay",
TIMELINE_WEEK: "timelineWeek",
TIMELINE_WORK_WEEK: "timelineWorkWeek",
TIMELINE_MONTH: "timelineMonth",
AGENDA: "agenda"
};
export const VIEW_TYPES = Object.values(VIEWS);
const WEEKENDS = [0, 6];
const getView = function(type, groupOrientation) {
let skippedDays = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [];
return {
groupOrientation: groupOrientation,
intervalCount: 1,
type: type,
skippedDays: skippedDays
}
};
export const DEFAULT_VIEW_OPTIONS = {
day: getView("day", "horizontal"),
week: getView("week", "horizontal"),
workWeek: getView("workWeek", "horizontal", WEEKENDS),
month: getView("month", "horizontal"),
timelineDay: getView("timelineDay", "vertical"),
timelineWeek: getView("timelineWeek", "vertical"),
timelineWorkWeek: getView("timelineWorkWeek", "vertical", WEEKENDS),
timelineMonth: getView("timelineMonth", "vertical"),
agenda: {
agendaDuration: 7,
intervalCount: 1,
skippedDays: [],
type: "agenda"
}
};