devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
52 lines (51 loc) • 1.76 kB
JavaScript
/**
* DevExtreme (cjs/__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/
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.VIEW_TYPES = exports.VIEWS = exports.DEFAULT_VIEW_OPTIONS = void 0;
const VIEWS = exports.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"
};
const VIEW_TYPES = exports.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
}
};
const DEFAULT_VIEW_OPTIONS = exports.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"
}
};