@syncfusion/ej2-schedule 19.4.38 → 19.4.40

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 : 19.4.38
3
+ * version : 19.4.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@19.16.6",
3
+ "_id": "@syncfusion/ej2-schedule@19.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0SnaOgJ9xx+DcnPMjdAU4NBzn5fevPp4PZpE58zbNf2WOEYQ4ZlUJc7NxT0jCmP8Ow84wth54gKJrfc0tTONqg==",
5
+ "_integrity": "sha512-V/auIZawH2Be2hOPRsUUlnPXQ4Qa/GL72q3vpSVbxivepGTndVwaW+Py4fzxGs6z+OxizePiDzObIJka7R87Zw==",
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": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-schedule/-/ej2-schedule-19.16.6.tgz",
27
- "_shasum": "f8b12396e75367b8831936fc6caa778f7c39e461",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-19.4.38.tgz",
27
+ "_shasum": "90490419e915c0b9ecb98257f0d08f4000491222",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -39,11 +39,11 @@
39
39
  "@syncfusion/ej2-buttons": "~19.4.38",
40
40
  "@syncfusion/ej2-calendars": "~19.4.38",
41
41
  "@syncfusion/ej2-data": "~19.4.38",
42
- "@syncfusion/ej2-dropdowns": "~19.4.38",
42
+ "@syncfusion/ej2-dropdowns": "~19.4.40",
43
43
  "@syncfusion/ej2-excel-export": "~19.4.38",
44
44
  "@syncfusion/ej2-inputs": "~19.4.38",
45
45
  "@syncfusion/ej2-lists": "~19.4.38",
46
- "@syncfusion/ej2-navigations": "~19.4.38",
46
+ "@syncfusion/ej2-navigations": "~19.4.40",
47
47
  "@syncfusion/ej2-popups": "~19.4.38"
48
48
  },
49
49
  "deprecated": false,
@@ -81,6 +81,6 @@
81
81
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
82
82
  },
83
83
  "typings": "index.d.ts",
84
- "version": "19.4.38",
84
+ "version": "19.4.40",
85
85
  "sideEffects": false
86
86
  }
@@ -1071,7 +1071,7 @@ var DragAndDrop = /** @class */ (function (_super) {
1071
1071
  if (this.parent.eventDragArea) {
1072
1072
  var targetDate = this.parent.getDateFromElement(e.target);
1073
1073
  if (!isNullOrUndefined(targetDate)) {
1074
- if (!this.parent.activeViewOptions.timeScale.enable || (this.parent.currentView == "TimelineMonth")) {
1074
+ if (!this.parent.activeViewOptions.timeScale.enable || (this.parent.currentView === 'TimelineMonth')) {
1075
1075
  var eventSrt = eventObj[this.parent.eventFields.startTime];
1076
1076
  eventStart = new Date(eventStart.setHours(eventSrt.getHours(), eventSrt.getMinutes(), eventSrt.getSeconds()));
1077
1077
  }
@@ -1435,7 +1435,7 @@ var Schedule = /** @class */ (function (_super) {
1435
1435
  if (dateHeader.classList.contains(cls.ALLDAY_APPOINTMENT_AUTO)) {
1436
1436
  removeClass([dateHeader], cls.ALLDAY_APPOINTMENT_AUTO);
1437
1437
  }
1438
- this.eventBase.allDayExpandScroll(dateHeader, true);
1438
+ this.eventBase.allDayExpandScroll(dateHeader);
1439
1439
  }
1440
1440
  if (!this.uiStateValues.expand) {
1441
1441
  allDayRow.style.height = '';
@@ -80,7 +80,7 @@ export declare class EventBase {
80
80
  isValidEvent(eventObj: Record<string, any>, start: Date, end: Date, schedule: {
81
81
  [key: string]: Date;
82
82
  }): boolean;
83
- allDayExpandScroll(dateHeader: HTMLElement, heightPropChanged?: boolean): void;
83
+ allDayExpandScroll(dateHeader: HTMLElement): void;
84
84
  updateEventMinimumDuration(startEndHours: Record<string, Date>, startTime: Date, endTime: Date): Record<string, Date>;
85
85
  private unWireEvents;
86
86
  destroy(): void;
@@ -1201,7 +1201,7 @@ var EventBase = /** @class */ (function () {
1201
1201
  eventObj[this.parent.eventFields.endTime].getTime() < schedule.endHour.getTime() && start.getTime() === end.getTime();
1202
1202
  return isHourRange || isSameRange;
1203
1203
  };
1204
- EventBase.prototype.allDayExpandScroll = function (dateHeader, heightPropChanged) {
1204
+ EventBase.prototype.allDayExpandScroll = function (dateHeader) {
1205
1205
  var indentHeight = 0;
1206
1206
  var headerRows = [].slice.call(this.parent.element.querySelectorAll('.' + cls.HEADER_ROW_CLASS));
1207
1207
  headerRows.forEach(function (element) {
@@ -1211,8 +1211,7 @@ var EventBase = /** @class */ (function () {
1211
1211
  });
1212
1212
  indentHeight = dateHeader.offsetHeight - indentHeight;
1213
1213
  this.parent.element.querySelector('.' + cls.ALLDAY_CELLS_CLASS).style.height = (indentHeight / 12) + 'em';
1214
- var content = this.parent.element.querySelector('.' + cls.CONTENT_WRAP_CLASS);
1215
- if (this.parent.uiStateValues.expand && (content.offsetWidth - content.clientWidth > 0 || heightPropChanged || this.parent.element.classList.contains(cls.DEVICE_CLASS))) {
1214
+ if (this.parent.uiStateValues.expand) {
1216
1215
  addClass([dateHeader], cls.ALLDAY_APPOINTMENT_SCROLL);
1217
1216
  }
1218
1217
  else {
@@ -366,6 +366,7 @@ var HeaderRenderer = /** @class */ (function () {
366
366
  var strClass = args.item.cssClass.replace('e-views ', '');
367
367
  var data;
368
368
  var isSameTime;
369
+ var currentTime;
369
370
  switch (strClass) {
370
371
  case 'e-date-range':
371
372
  if (!this.headerPopup) {
@@ -415,7 +416,7 @@ var HeaderRenderer = /** @class */ (function () {
415
416
  this.parent.changeView('TimelineYear', args.originalEvent, undefined, this.calculateViewIndex(args));
416
417
  break;
417
418
  case 'e-today':
418
- var currentTime = util.resetTime(this.parent.getCurrentTime());
419
+ currentTime = util.resetTime(this.parent.getCurrentTime());
419
420
  if (this.parent.currentView === 'Agenda' || !this.parent.isSelectedDate(currentTime) ||
420
421
  this.parent.currentView === 'Month' && this.parent.activeViewOptions.displayDate && !this.hasSelectedDate() &&
421
422
  util.resetTime(this.parent.activeViewOptions.displayDate) !== currentTime || this.parent.currentView === 'Month' &&
@@ -507,8 +507,9 @@ var Month = /** @class */ (function (_super) {
507
507
  var dates = this.parent.getCurrentViewDates();
508
508
  if (dates && dates.length > 0) {
509
509
  var selectedTime = util.resetTime(this.parent.selectedDate).getTime();
510
+ var weekFirstDate = util.getWeekFirstDate(dates[dates.length - 1], this.parent.activeViewOptions.firstDayOfWeek);
510
511
  return !(selectedTime >= util.getWeekFirstDate(dates[0], this.parent.activeViewOptions.firstDayOfWeek).getTime() &&
511
- selectedTime <= util.addDays(util.getWeekFirstDate(dates[dates.length - 1], this.parent.activeViewOptions.firstDayOfWeek), 6).getTime());
512
+ selectedTime <= util.addDays(weekFirstDate, 6).getTime());
512
513
  }
513
514
  return false;
514
515
  };
@@ -18,7 +18,12 @@ var Render = /** @class */ (function () {
18
18
  };
19
19
  Render.prototype.initializeLayout = function (viewName) {
20
20
  if (this.parent.activeView) {
21
- this.parent.resetTemplates();
21
+ var templates = [
22
+ 'cellTemplate', 'eventTemplate', 'tooltipTemplate', 'majorSlotTemplate', 'minorSlotTemplate',
23
+ 'headerTooltipTemplate', 'dateHeaderTemplate', 'dayHeaderTemplate', 'mothHeaderTemplate',
24
+ 'headerIndentTemplate', 'resourceHeaderTemplate', 'cellHeaderTemplate'
25
+ ];
26
+ this.parent.resetTemplates(templates);
22
27
  this.parent.activeView.removeEventListener();
23
28
  this.parent.activeView.destroy();
24
29
  }
@@ -78,7 +78,7 @@ var TimelineYear = /** @class */ (function (_super) {
78
78
  }
79
79
  else {
80
80
  if (this.parent.monthHeaderTemplate) {
81
- append(this.renderDayMonthHeaderTemplate(date, months[column], 'mothHeaderTemplate'), innerTd);
81
+ append(this.renderDayMonthHeaderTemplate(date, months[column], 'monthHeaderTemplate'), innerTd);
82
82
  }
83
83
  else {
84
84
  innerTd.innerHTML = "<span>" + this.getMonthName(date) + "</span>";