@syncfusion/ej2-schedule
Version:
Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.
140 lines (139 loc) • 4.83 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';
import { TimeScale } from '../models/time-scale';
import { Group } from '../models/group';
import { HeaderRows } from './header-rows';
/**
* A class that represents the configuration of view-specific settings on scheduler.
*/
var Views = /** @class */ (function (_super) {
__extends(Views, _super);
function Views() {
return _super !== null && _super.apply(this, arguments) || this;
}
__decorate([
Property()
], Views.prototype, "option", void 0);
__decorate([
Property(false)
], Views.prototype, "isSelected", void 0);
__decorate([
Property()
], Views.prototype, "dateFormat", void 0);
__decorate([
Property(false)
], Views.prototype, "readonly", void 0);
__decorate([
Property('00:00')
], Views.prototype, "startHour", void 0);
__decorate([
Property('24:00')
], Views.prototype, "endHour", void 0);
__decorate([
Property(false)
], Views.prototype, "allowVirtualScrolling", void 0);
__decorate([
Property(true)
], Views.prototype, "allowOverlap", void 0);
__decorate([
Property(3)
], Views.prototype, "overscanCount", void 0);
__decorate([
Property(null)
], Views.prototype, "maxEventsPerRow", void 0);
__decorate([
Property()
], Views.prototype, "cellHeaderTemplate", void 0);
__decorate([
Property()
], Views.prototype, "dateHeaderTemplate", void 0);
__decorate([
Property()
], Views.prototype, "dateRangeTemplate", void 0);
__decorate([
Property()
], Views.prototype, "cellTemplate", void 0);
__decorate([
Property()
], Views.prototype, "dayHeaderTemplate", void 0);
__decorate([
Property()
], Views.prototype, "monthHeaderTemplate", void 0);
__decorate([
Property()
], Views.prototype, "eventTemplate", void 0);
__decorate([
Property(true)
], Views.prototype, "showWeekend", void 0);
__decorate([
Property(false)
], Views.prototype, "showWeekNumber", void 0);
__decorate([
Property()
], Views.prototype, "displayName", void 0);
__decorate([
Property(1)
], Views.prototype, "interval", void 0);
__decorate([
Property(0)
], Views.prototype, "firstDayOfWeek", void 0);
__decorate([
Property(0)
], Views.prototype, "firstMonthOfYear", void 0);
__decorate([
Property(12)
], Views.prototype, "monthsCount", void 0);
__decorate([
Property([1, 2, 3, 4, 5])
], Views.prototype, "workDays", void 0);
__decorate([
Property()
], Views.prototype, "resourceHeaderTemplate", void 0);
__decorate([
Property()
], Views.prototype, "headerIndentTemplate", void 0);
__decorate([
Property(null)
], Views.prototype, "timeFormat", void 0);
__decorate([
Property('Horizontal')
], Views.prototype, "orientation", void 0);
__decorate([
Complex({}, TimeScale)
], Views.prototype, "timeScale", void 0);
__decorate([
Complex({}, Group)
], Views.prototype, "group", void 0);
__decorate([
Collection([], HeaderRows)
], Views.prototype, "headerRows", void 0);
__decorate([
Property(0)
], Views.prototype, "numberOfWeeks", void 0);
__decorate([
Property()
], Views.prototype, "displayDate", void 0);
__decorate([
Property(false)
], Views.prototype, "enableLazyLoading", void 0);
return Views;
}(ChildProperty));
export { Views };