@syncfusion/ej2-schedule 20.3.57 → 20.3.61

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.61
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.58",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Da1CfTQleF5LW6DJcA0BIX9Inh2H3azMR7G+l3TijKwLxyvIekX6fpd303PiAuM+Xqt73s7hzHwuzgMi18lL0Q==",
5
+ "_integrity": "sha512-bzcRIfQQXzG0hcw9JtpBTp5sMLO1sHAPQadan1hbL2wJTgcQAGErnxsLzGNMhtM6StUiMs01BW8znJjh49s1qQ==",
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.58.tgz",
27
+ "_shasum": "5eafc1ed3a3802c91baafad125261a755ba4526d",
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",
40
- "@syncfusion/ej2-calendars": "~20.3.56",
41
- "@syncfusion/ej2-data": "~20.3.56",
42
- "@syncfusion/ej2-dropdowns": "~20.3.57",
43
- "@syncfusion/ej2-excel-export": "~20.3.56",
39
+ "@syncfusion/ej2-buttons": "~20.3.58",
40
+ "@syncfusion/ej2-calendars": "~20.3.59",
41
+ "@syncfusion/ej2-data": "~20.3.60",
42
+ "@syncfusion/ej2-dropdowns": "~20.3.60",
43
+ "@syncfusion/ej2-excel-export": "~20.3.61",
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.60",
47
+ "@syncfusion/ej2-popups": "~20.3.60"
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.61",
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
  }
@@ -85,17 +85,23 @@ var Print = /** @class */ (function () {
85
85
  'dateFormat', 'enableRtl', 'endHour', 'eventSettings', 'firstDayOfWeek',
86
86
  'firstMonthOfYear', 'group', 'height', 'locale', 'maxDate', 'minDate', 'readonly',
87
87
  'resources', 'rowAutoHeight', 'selectedDate', 'showHeaderBar', 'showTimeIndicator', 'showWeekNumber',
88
- 'showWeekend', 'startHour', 'timeFormat', 'timeScale', 'timezone', 'views', 'width', 'workDays', 'workHours'
88
+ 'showWeekend', 'startHour', 'timeFormat', 'timeScale', 'timezone', 'views', 'width', 'workDays', 'workHours',
89
+ 'dateHeaderTemplate', 'dateRangeTemplate', 'cellHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate',
90
+ 'cellTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate'
89
91
  ];
92
+ var scheduleTemplates = ['cellHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate', 'cellTemplate',
93
+ 'dateHeaderTemplate', 'dateRangeTemplate', 'eventTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate'];
90
94
  var eventSettings;
91
95
  var group;
96
+ var timeScale;
97
+ var views;
92
98
  for (var _i = 0, scheduleProps_1 = scheduleProps; _i < scheduleProps_1.length; _i++) {
93
99
  var key = scheduleProps_1[_i];
94
100
  switch (key) {
95
101
  case 'eventSettings':
96
102
  eventSettings = Object.assign({}, this.parent.eventSettings.properties);
97
103
  eventSettings.dataSource = this.parent.eventsData;
98
- eventSettings.template = null;
104
+ eventSettings.template = typeof (eventSettings.template) === 'function' ? null : eventSettings.template;
99
105
  printModel.eventSettings = eventSettings;
100
106
  break;
101
107
  case 'group':
@@ -103,9 +109,38 @@ var Print = /** @class */ (function () {
103
109
  group.headerTooltipTemplate = null;
104
110
  printModel.group = group;
105
111
  break;
112
+ case 'timeScale':
113
+ timeScale = isNullOrUndefined(printOptions.timeScale) ? this.parent.timeScale : printOptions.timeScale;
114
+ timeScale.majorSlotTemplate = typeof (timeScale.majorSlotTemplate) === 'function' ? null : timeScale.majorSlotTemplate;
115
+ timeScale.minorSlotTemplate = typeof (timeScale.minorSlotTemplate) === 'function' ? null : timeScale.minorSlotTemplate;
116
+ printOptions.timeScale = timeScale;
117
+ break;
118
+ case 'views':
119
+ views = isNullOrUndefined(printOptions.views) ? this.parent.views : printOptions.views;
120
+ if (views && views.length > 0 && typeof (views[0]) === 'object') {
121
+ var _loop_1 = function (view) {
122
+ scheduleTemplates.forEach(function (x) {
123
+ if (!isNullOrUndefined(view["" + x])) {
124
+ view["" + x] = typeof (view["" + x]) === 'function' ? null : view["" + x];
125
+ }
126
+ });
127
+ };
128
+ for (var _a = 0, views_1 = views; _a < views_1.length; _a++) {
129
+ var view = views_1[_a];
130
+ _loop_1(view);
131
+ }
132
+ }
133
+ printModel.views = views;
134
+ break;
106
135
  default:
107
- printModel[key] = isNullOrUndefined(printOptions[key]) ?
108
- this.parent[key] : printOptions[key];
136
+ if (scheduleTemplates.indexOf(key) > -1) {
137
+ printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ?
138
+ (typeof (this.parent["" + key]) === 'function' ? null : this.parent["" + key]) :
139
+ (typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]);
140
+ break;
141
+ }
142
+ printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ?
143
+ this.parent["" + key] : printOptions["" + key];
109
144
  break;
110
145
  }
111
146
  }