| 123456789101112131415161718192021222324252627282930313233343536 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Event = void 0;
- class Event {
- constructor(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;
- }
- get startStr() {
- return this.start.toISOString();
- }
- get endStr() {
- return this.end.toISOString();
- }
- static toTimeSlot(obj) {
- if (obj instanceof Event) {
- return obj;
- }
- else {
- return new Event(obj);
- }
- }
- }
- exports.Event = Event;
- exports.default = Event;
- //# sourceMappingURL=Event.js.map
|