@syncfusion/ej2-schedule 26.2.4 → 26.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.4
3
+ * version : 26.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-schedule@*",
3
- "_id": "@syncfusion/ej2-schedule@26.1.41",
3
+ "_id": "@syncfusion/ej2-schedule@26.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-d/AIC7kbjZPi2FZ7YdqgrdwK77+BRk5TWDE05BqH4m8MrX6U5OmtQQM9DPbtNx/nhlXVVvxs9K5/ijcYyZTWLQ==",
5
+ "_integrity": "sha512-+jOCiEvgLpIJPh9//QtWuHSST8G7tk+pQdWPfGzj6Uf0KDJYu0Hmm0AwlMt1m0QsK3dQmEBYGm0G5gZzFUFeXw==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-schedule",
24
24
  "/@syncfusion/ej2-vue-schedule"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.1.41.tgz",
27
- "_shasum": "5bebf2b810f97ac7bb1854989afda8dd76826507",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.2.5.tgz",
27
+ "_shasum": "d6eb25bd8e2caea44116521572e59580a2649e15",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~26.2.4",
39
- "@syncfusion/ej2-buttons": "~26.2.4",
40
- "@syncfusion/ej2-calendars": "~26.2.4",
41
- "@syncfusion/ej2-data": "~26.2.4",
42
- "@syncfusion/ej2-dropdowns": "~26.2.4",
43
- "@syncfusion/ej2-excel-export": "~26.2.4",
44
- "@syncfusion/ej2-inputs": "~26.2.4",
45
- "@syncfusion/ej2-lists": "~26.2.4",
46
- "@syncfusion/ej2-navigations": "~26.2.4",
47
- "@syncfusion/ej2-popups": "~26.2.4",
38
+ "@syncfusion/ej2-base": "~26.2.5",
39
+ "@syncfusion/ej2-buttons": "~26.2.7",
40
+ "@syncfusion/ej2-calendars": "~26.2.5",
41
+ "@syncfusion/ej2-data": "~26.2.5",
42
+ "@syncfusion/ej2-dropdowns": "~26.2.7",
43
+ "@syncfusion/ej2-excel-export": "~26.2.5",
44
+ "@syncfusion/ej2-inputs": "~26.2.5",
45
+ "@syncfusion/ej2-lists": "~26.2.5",
46
+ "@syncfusion/ej2-navigations": "~26.2.7",
47
+ "@syncfusion/ej2-popups": "~26.2.5",
48
48
  "@types/requirejs": "^2.1.37"
49
49
  },
50
50
  "deprecated": false,
@@ -74,6 +74,6 @@
74
74
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
75
75
  },
76
76
  "typings": "index.d.ts",
77
- "version": "26.2.4",
77
+ "version": "26.2.7",
78
78
  "sideEffects": false
79
79
  }
@@ -137,6 +137,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
137
137
  scrollTop: number;
138
138
  scrollLeft: number;
139
139
  isPrinting: boolean;
140
+ registeredTemplate: Object;
140
141
  adaptiveGroupIndex: number;
141
142
  activeEventTemplates: string[];
142
143
  /**
@@ -456,7 +456,10 @@ var VerticalEvent = /** @class */ (function (_super) {
456
456
  var field = this.parent.eventFields;
457
457
  var schedule = util.getStartEndHours(currentDate, this.startHour, this.endHour);
458
458
  var event = extend({}, record, null, true);
459
- event.isSpanned = { isBottom: false, isTop: false };
459
+ event.isSpanned = {
460
+ isBottom: false, isTop: false,
461
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
462
+ };
460
463
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
461
464
  event[field.startTime] = schedule.startHour;
462
465
  event.isSpanned.isTop = true;
@@ -574,7 +577,7 @@ var VerticalEvent = /** @class */ (function (_super) {
574
577
  return;
575
578
  }
576
579
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
577
- var appHeight = this.getHeight(eStart, eEnd);
580
+ var appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
578
581
  if (eStart.getTime() >= schedule.startHour.getTime()) {
579
582
  topValue = this.getTopValue(eStart, dayIndex, resource);
580
583
  }
@@ -78,6 +78,7 @@ var Print = /** @class */ (function () {
78
78
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
79
79
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
80
80
  this.printInstance.isPrinting = true;
81
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
81
82
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
82
83
  this.printInstance.appendTo(element);
83
84
  this.printInstance.on(events.print, this.contentReady, this);