devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
69 lines (65 loc) • 2.04 kB
JavaScript
/**
* DevExtreme (ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.js)
* Version: 20.1.7
* Build date: Tue Aug 25 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function")
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) {
descriptor.writable = true
}
Object.defineProperty(target, descriptor.key, descriptor)
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) {
_defineProperties(Constructor.prototype, protoProps)
}
if (staticProps) {
_defineProperties(Constructor, staticProps)
}
return Constructor
}
var LAST_GROUP_CELL_CLASS = "dx-scheduler-last-group-cell";
var FIRST_GROUP_CELL_CLASS = "dx-scheduler-first-group-cell";
var GroupedStrategy = function() {
function GroupedStrategy(workSpace) {
_classCallCheck(this, GroupedStrategy);
this._workSpace = workSpace
}
_createClass(GroupedStrategy, [{
key: "getLastGroupCellClass",
value: function() {
return LAST_GROUP_CELL_CLASS
}
}, {
key: "getFirstGroupCellClass",
value: function() {
return FIRST_GROUP_CELL_CLASS
}
}, {
key: "_getOffsetByAllDayPanel",
value: function() {
return 0
}
}, {
key: "_getGroupTop",
value: function() {
return 0
}
}]);
return GroupedStrategy
}();
module.exports = GroupedStrategy;