@syncfusion/ej2-schedule 20.3.58 → 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.58
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.57",
3
+ "_id": "@syncfusion/ej2-schedule@20.3.58",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-koNSM1Rz5fkO+6KnJ1So5J9Jd1JxSa92MU4vBrjEOihRgPq7Gdk+jt3TiAdv9jqtwob7tyBtbvVX6qCb1w7dww==",
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.57.tgz",
27
- "_shasum": "b825a0ab7bdb1aa7c040b4680fbeb03e6aff338e",
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": {
@@ -37,14 +37,14 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~20.3.56",
39
39
  "@syncfusion/ej2-buttons": "~20.3.58",
40
- "@syncfusion/ej2-calendars": "~20.3.56",
41
- "@syncfusion/ej2-data": "~20.3.56",
42
- "@syncfusion/ej2-dropdowns": "~20.3.58",
43
- "@syncfusion/ej2-excel-export": "~20.3.56",
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.58",
47
- "@syncfusion/ej2-popups": "~20.3.58"
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.58",
84
+ "version": "20.3.61",
85
85
  "sideEffects": false
86
86
  }
@@ -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
  }