| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- var Event = (function () {
- function Event(obj) {
- this.id = obj.id;
- this.start = obj.start;
- this.end = obj.end;
- this.ressourceId = obj.ressourceId;
- this.title = (obj === null || obj === void 0 ? void 0 : obj.title) || this.id;
- this.isDisplayed = false;
- this.offset = 0;
- this.editable = (obj === null || obj === void 0 ? void 0 : obj.editable) === undefined ? null : obj.editable;
- this.ressourceEditable = (obj === null || obj === void 0 ? void 0 : obj.ressourceEditable) === undefined ? null : obj.ressourceEditable;
- this.moving = false;
- this.selected = false;
- this.bgColor = obj.bgColor;
- }
- Object.defineProperty(Event.prototype, "startStr", {
- get: function () {
- return this.start.toISOString();
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(Event.prototype, "endStr", {
- get: function () {
- return this.end.toISOString();
- },
- enumerable: false,
- configurable: true
- });
- Event.toTimeSlot = function (obj) {
- if (obj instanceof Event) {
- return obj;
- }
- else {
- return new Event(obj);
- }
- };
- return Event;
- }());
- export { Event };
- export default Event;
- //# sourceMappingURL=Event.js.map
|