@syncfusion/ej2-schedule 20.3.57 → 20.3.58

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 : 20.3.57
3
+ * version : 20.3.58
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@20.3.56",
3
+ "_id": "@syncfusion/ej2-schedule@20.3.57",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Da1CfTQleF5LW6DJcA0BIX9Inh2H3azMR7G+l3TijKwLxyvIekX6fpd303PiAuM+Xqt73s7hzHwuzgMi18lL0Q==",
5
+ "_integrity": "sha512-koNSM1Rz5fkO+6KnJ1So5J9Jd1JxSa92MU4vBrjEOihRgPq7Gdk+jt3TiAdv9jqtwob7tyBtbvVX6qCb1w7dww==",
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.3.56.tgz",
27
- "_shasum": "eeaf4074bdbf42f7a1ae708c220a29a1e28d1527",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.3.57.tgz",
27
+ "_shasum": "b825a0ab7bdb1aa7c040b4680fbeb03e6aff338e",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -36,15 +36,15 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~20.3.56",
39
- "@syncfusion/ej2-buttons": "~20.3.57",
39
+ "@syncfusion/ej2-buttons": "~20.3.58",
40
40
  "@syncfusion/ej2-calendars": "~20.3.56",
41
41
  "@syncfusion/ej2-data": "~20.3.56",
42
- "@syncfusion/ej2-dropdowns": "~20.3.57",
42
+ "@syncfusion/ej2-dropdowns": "~20.3.58",
43
43
  "@syncfusion/ej2-excel-export": "~20.3.56",
44
44
  "@syncfusion/ej2-inputs": "~20.3.57",
45
45
  "@syncfusion/ej2-lists": "~20.3.56",
46
- "@syncfusion/ej2-navigations": "~20.3.57",
47
- "@syncfusion/ej2-popups": "~20.3.57"
46
+ "@syncfusion/ej2-navigations": "~20.3.58",
47
+ "@syncfusion/ej2-popups": "~20.3.58"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "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.",
@@ -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": "20.3.57",
84
+ "version": "20.3.58",
85
85
  "sideEffects": false
86
86
  }
@@ -53,7 +53,9 @@ var ScheduleTouch = /** @class */ (function () {
53
53
  this.renderPanel(cls.NEXT_PANEL_CLASS, 'next');
54
54
  this.nextPanel = {
55
55
  element: this.parent.activeView.getPanel(),
56
- selectedDate: new Date(this.parent.selectedDate.getTime())
56
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
57
+ renderDates: this.parent.activeView.renderDates,
58
+ colLevels: this.parent.activeView.colLevels
57
59
  };
58
60
  this.setDimensions(this.nextPanel.element);
59
61
  }
@@ -66,7 +68,9 @@ var ScheduleTouch = /** @class */ (function () {
66
68
  this.renderPanel(cls.PREVIOUS_PANEL_CLASS, 'previous');
67
69
  this.previousPanel = {
68
70
  element: this.parent.activeView.getPanel(),
69
- selectedDate: new Date(this.parent.selectedDate.getTime())
71
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
72
+ renderDates: this.parent.activeView.renderDates,
73
+ colLevels: this.parent.activeView.colLevels
70
74
  };
71
75
  this.setDimensions(this.previousPanel.element);
72
76
  prevWidth = this.previousPanel.element.offsetWidth;
@@ -115,7 +119,9 @@ var ScheduleTouch = /** @class */ (function () {
115
119
  if (!this.currentPanel) {
116
120
  this.currentPanel = {
117
121
  element: this.parent.activeView.getPanel(),
118
- selectedDate: new Date(this.parent.selectedDate.getTime())
122
+ selectedDate: new Date(this.parent.selectedDate.getTime()),
123
+ renderDates: this.parent.activeView.renderDates,
124
+ colLevels: this.parent.activeView.colLevels
119
125
  };
120
126
  this.setDimensions(this.currentPanel.element);
121
127
  }
@@ -164,6 +170,8 @@ var ScheduleTouch = /** @class */ (function () {
164
170
  else {
165
171
  translateX = swipeDirection === _this.touchLeftDirection ? -_this.currentPanel.element.offsetLeft : 0;
166
172
  }
173
+ _this.parent.activeView.renderDates = _this.currentPanel.renderDates;
174
+ _this.parent.activeView.colLevels = _this.currentPanel.colLevels;
167
175
  addClass([_this.element], cls.TRANSLATE_CLASS);
168
176
  _this.element.style.transform = 'translatex(' + translateX + 'px)';
169
177
  if (_this.parent.headerModule) {
@@ -177,8 +185,8 @@ var ScheduleTouch = /** @class */ (function () {
177
185
  ScheduleTouch.prototype.cancelSwipe = function () {
178
186
  this.parent.activeView.setPanel(this.currentPanel.element);
179
187
  this.parent.setProperties({ selectedDate: this.currentPanel.selectedDate }, true);
180
- this.parent.activeView.getRenderDates();
181
- this.parent.activeView.generateColumnLevels();
188
+ this.parent.activeView.renderDates = this.currentPanel.renderDates;
189
+ this.parent.activeView.colLevels = this.currentPanel.colLevels;
182
190
  addClass([this.element], cls.TRANSLATE_CLASS);
183
191
  var prevWidth = this.previousPanel ? this.previousPanel.element.offsetWidth : 0;
184
192
  this.element.style.transform = 'translatex(' + (this.parent.enableRtl ? prevWidth : -this.currentPanel.element.offsetLeft) + 'px)';
@@ -446,6 +446,8 @@ export interface NotifyEventArgs {
446
446
  export interface LayoutData {
447
447
  element: HTMLElement;
448
448
  selectedDate: Date;
449
+ renderDates: Date[];
450
+ colLevels: TdData[][];
449
451
  }
450
452
  /** @private */
451
453
  export interface EventFieldsMapping {
@@ -351,7 +351,7 @@ var ResourceBase = /** @class */ (function () {
351
351
  this.parent.on(events.documentClick, this.documentClick, this);
352
352
  };
353
353
  ResourceBase.prototype.resourceTreeCreated = function () {
354
- if (this.parent.portals) {
354
+ if (this.parent.activeViewOptions.resourceHeaderTemplate && this.parent.portals && this.treeViewObj.portals) {
355
355
  this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
356
356
  this.parent.renderTemplates();
357
357
  }