@syncfusion/ej2-schedule 19.4.48 → 19.4.50
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.
- package/CHANGELOG.md +7 -0
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +27 -7
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +27 -7
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/schedule/base/interface.d.ts +1 -0
- package/src/schedule/base/schedule.js +16 -2
- package/src/schedule/event-renderer/event-base.js +4 -2
- package/src/schedule/event-renderer/month.js +2 -1
- package/src/schedule/event-renderer/vertical-view.js +3 -1
- package/src/schedule/event-renderer/year.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.50
|
|
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.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@19.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-v1X2P/drFDg0e7og7Ue/aM/s6Pw8jMAP3xOZJtR3RaZm5OgexY84JXZqK0WdnodHTKw92vp2hEAG9u+yrFom6w==",
|
|
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-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-19.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-19.4.48.tgz",
|
|
27
|
+
"_shasum": "f8dbb6331e1a7c838d934a91c1ba1fe3eaa6f203",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~19.4.48",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
43
|
-
"@syncfusion/ej2-excel-export": "~19.4.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.50",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.50",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.4.50",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.50",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~19.4.50",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~19.4.48",
|
|
45
45
|
"@syncfusion/ej2-lists": "~19.4.48",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
47
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~19.4.50",
|
|
47
|
+
"@syncfusion/ej2-popups": "~19.4.50"
|
|
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": "19.4.
|
|
84
|
+
"version": "19.4.50",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -656,7 +656,7 @@ var Schedule = /** @class */ (function (_super) {
|
|
|
656
656
|
if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
|
|
657
657
|
this.uiStateValues = {
|
|
658
658
|
expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
|
|
659
|
-
isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true
|
|
659
|
+
isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true, isResize: false
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
662
|
this.activeCellsData = { startTime: this.getCurrentTime(), endTime: this.getCurrentTime(), isAllDay: false };
|
|
@@ -1118,9 +1118,11 @@ var Schedule = /** @class */ (function (_super) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
|
|
1120
1120
|
&& !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
|
|
1121
|
+
this.uiStateValues.isResize = true;
|
|
1121
1122
|
this.activeView.resetColWidth();
|
|
1122
1123
|
this.notify(events.scrollUiUpdate, { cssProperties: this.getCssProperties(), isPreventScrollUpdate: true });
|
|
1123
1124
|
this.refreshEvents(false);
|
|
1125
|
+
this.uiStateValues.isResize = false;
|
|
1124
1126
|
}
|
|
1125
1127
|
else {
|
|
1126
1128
|
this.notify(events.contentReady, {});
|
|
@@ -2186,7 +2188,19 @@ var Schedule = /** @class */ (function (_super) {
|
|
|
2186
2188
|
}
|
|
2187
2189
|
else {
|
|
2188
2190
|
if (this.activeViewOptions && this.activeViewOptions.eventTemplate) {
|
|
2189
|
-
|
|
2191
|
+
var templateNames = ['eventTemplate'];
|
|
2192
|
+
if (this.crudModule && this.crudModule.crudObj.isCrudAction &&
|
|
2193
|
+
['Agenda', 'MonthAgenda', 'Year', 'TimelineYear'].indexOf(this.currentView) === -1) {
|
|
2194
|
+
templateNames = [];
|
|
2195
|
+
for (var i = 0, len = this.crudModule.crudObj.sourceEvent.length; i < len; i++) {
|
|
2196
|
+
templateNames.push('eventTemplate_' + this.crudModule.crudObj.sourceEvent[i].groupIndex);
|
|
2197
|
+
if (this.crudModule.crudObj.targetEvent[i] && this.crudModule.crudObj.sourceEvent[i].groupIndex !==
|
|
2198
|
+
this.crudModule.crudObj.targetEvent[i].groupIndex) {
|
|
2199
|
+
templateNames.push('eventTemplate_' + this.crudModule.crudObj.targetEvent[i].groupIndex);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
this.resetTemplates(templateNames);
|
|
2190
2204
|
}
|
|
2191
2205
|
var eventsData = this.eventsData || [];
|
|
2192
2206
|
var blockData = this.blockData || [];
|
|
@@ -41,7 +41,7 @@ var EventBase = /** @class */ (function () {
|
|
|
41
41
|
if (timeZonePropChanged) {
|
|
42
42
|
this_1.processTimezoneChange(event_1, oldTimezone);
|
|
43
43
|
}
|
|
44
|
-
else if (!this_1.parent.isPrinting) {
|
|
44
|
+
else if (!this_1.parent.isPrinting && !this_1.parent.uiStateValues.isResize) {
|
|
45
45
|
event_1 = this_1.processTimezone(event_1);
|
|
46
46
|
}
|
|
47
47
|
for (var level = 0; level < resourceCollection.length; level++) {
|
|
@@ -1081,7 +1081,9 @@ var EventBase = /** @class */ (function () {
|
|
|
1081
1081
|
var scheduleId = this.parent.element.id + '_';
|
|
1082
1082
|
var viewName = this.parent.activeViewOptions.eventTemplateName;
|
|
1083
1083
|
var templateId = scheduleId + viewName + 'eventTemplate';
|
|
1084
|
-
|
|
1084
|
+
var templateName = 'eventTemplate' + (this.parent.activeViewOptions.group.resources.length > 0 &&
|
|
1085
|
+
this.parent.currentView.indexOf('Year') === -1 ? '_' + resIndex : '');
|
|
1086
|
+
templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false);
|
|
1085
1087
|
}
|
|
1086
1088
|
else {
|
|
1087
1089
|
var appointmentSubject = createElement('div', {
|
|
@@ -394,7 +394,8 @@ var MonthEvent = /** @class */ (function (_super) {
|
|
|
394
394
|
var scheduleId = this.parent.element.id + '_';
|
|
395
395
|
var viewName = this.parent.activeViewOptions.eventTemplateName;
|
|
396
396
|
var templateId = scheduleId + viewName + 'eventTemplate';
|
|
397
|
-
|
|
397
|
+
var eventTemplate = 'eventTemplate' + (this.parent.activeViewOptions.group.resources.length > 0 ? '_' + resIndex : '');
|
|
398
|
+
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false);
|
|
398
399
|
}
|
|
399
400
|
else {
|
|
400
401
|
var eventLocation = (record[this.fields.location] || this.parent.eventSettings.fields.location.default || '');
|
|
@@ -303,7 +303,9 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
303
303
|
var elementId = this.parent.element.id + '_';
|
|
304
304
|
var viewName = this.parent.activeViewOptions.eventTemplateName;
|
|
305
305
|
var templateId = elementId + viewName + 'eventTemplate';
|
|
306
|
-
|
|
306
|
+
var resIndex = this.parent.uiStateValues.isGroupAdaptive ? this.parent.uiStateValues.groupIndex : resource;
|
|
307
|
+
var templateName = 'eventTemplate' + (this.parent.activeViewOptions.group.resources.length > 0 ? '_' + resIndex : '');
|
|
308
|
+
templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false);
|
|
307
309
|
}
|
|
308
310
|
else {
|
|
309
311
|
var appointmentSubject = createElement('div', { className: cls.SUBJECT_CLASS, innerHTML: recordSubject });
|
|
@@ -490,7 +490,8 @@ var YearEvent = /** @class */ (function (_super) {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
else {
|
|
493
|
-
var timeCondition = app[this.fields.isAllDay] ? util.resetTime(appEnd).getTime() > dateStart :
|
|
493
|
+
var timeCondition = app[this.fields.isAllDay] ? util.resetTime(appEnd).getTime() > dateStart :
|
|
494
|
+
util.resetTime(appEnd).getTime() >= dateStart;
|
|
494
495
|
if (((util.resetTime(appStart).getTime() <= dateStart) && (timeCondition)) ||
|
|
495
496
|
(util.resetTime(appStart).getTime() >= dateStart) && (util.resetTime(appEnd).getTime() <= dateEnd)) {
|
|
496
497
|
appointmentsList.push(app);
|