@syncfusion/ej2-schedule 20.3.47 → 20.3.49
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 +8 -0
- package/dist/ej2-schedule.min.js +2 -2
- 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 +17 -2
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +18 -2
- 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/actions/drag.js +1 -1
- package/src/schedule/base/resource.d.ts +1 -0
- package/src/schedule/base/resource.js +12 -1
- package/src/schedule/exports/calendar-import.js +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.49
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@20.3.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-mY9pHw0JrYsYwOWA27ejxr7OU/hoJuqKxJKfKP5lkSokLXN34IPY6slTHB//Z4EuleTB14+kpRYXYk6eR7qj+Q==",
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-20.3.47.tgz",
|
|
27
|
+
"_shasum": "2c9c56ea584275a1ff5960e0eb785a473de71655",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.3.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.3.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.3.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.3.49",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.3.49",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.3.49",
|
|
41
41
|
"@syncfusion/ej2-data": "~20.3.47",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.3.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.3.49",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~20.3.47",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.3.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.3.49",
|
|
45
45
|
"@syncfusion/ej2-lists": "~20.3.47",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~20.3.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~20.3.49",
|
|
47
|
+
"@syncfusion/ej2-popups": "~20.3.49"
|
|
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.
|
|
84
|
+
"version": "20.3.49",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -527,7 +527,7 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
527
527
|
var eventDuration = eventObj[this.parent.eventFields.endTime].getTime() -
|
|
528
528
|
eventObj[this.parent.eventFields.startTime].getTime();
|
|
529
529
|
var td = closest(e.target, 'td');
|
|
530
|
-
if (this.parent.currentView === 'TimelineYear' && !td.classList.contains(
|
|
530
|
+
if (this.parent.currentView === 'TimelineYear' && (!td.classList.contains(cls.WORK_CELLS_CLASS) || td.classList.contains(cls.OTHERMONTH_CLASS))) {
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
533
533
|
var dragStart = this.parent.getDateFromElement(td);
|
|
@@ -27,6 +27,7 @@ export declare class ResourceBase {
|
|
|
27
27
|
updateVirtualContent(index: number, expand: boolean, e: Event, target: Element): void;
|
|
28
28
|
renderResourceHeader(): void;
|
|
29
29
|
renderResourceTree(): void;
|
|
30
|
+
private resourceTreeCreated;
|
|
30
31
|
private generateTreeData;
|
|
31
32
|
private renderResourceHeaderText;
|
|
32
33
|
private menuClick;
|
|
@@ -332,7 +332,8 @@ var ResourceBase = /** @class */ (function () {
|
|
|
332
332
|
child: 'resourceChild'
|
|
333
333
|
},
|
|
334
334
|
nodeTemplate: this.parent.resourceHeaderTemplate,
|
|
335
|
-
nodeClicked: this.resourceClick.bind(this)
|
|
335
|
+
nodeClicked: this.resourceClick.bind(this),
|
|
336
|
+
created: this.resourceTreeCreated.bind(this)
|
|
336
337
|
});
|
|
337
338
|
this.treeViewObj.appendTo(resourceTree);
|
|
338
339
|
this.treeViewObj.expandAll();
|
|
@@ -349,6 +350,12 @@ var ResourceBase = /** @class */ (function () {
|
|
|
349
350
|
});
|
|
350
351
|
this.parent.on(events.documentClick, this.documentClick, this);
|
|
351
352
|
};
|
|
353
|
+
ResourceBase.prototype.resourceTreeCreated = function () {
|
|
354
|
+
if (this.parent.portals) {
|
|
355
|
+
this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
|
|
356
|
+
this.parent.renderTemplates();
|
|
357
|
+
}
|
|
358
|
+
};
|
|
352
359
|
ResourceBase.prototype.generateTreeData = function (isTimeLine) {
|
|
353
360
|
var _this = this;
|
|
354
361
|
var treeCollection = [];
|
|
@@ -991,6 +998,10 @@ var ResourceBase = /** @class */ (function () {
|
|
|
991
998
|
ResourceBase.prototype.destroy = function () {
|
|
992
999
|
this.parent.off(events.documentClick, this.documentClick);
|
|
993
1000
|
if (this.treeViewObj) {
|
|
1001
|
+
if (this.treeViewObj.portals && this.treeViewObj.portals.length > 0) {
|
|
1002
|
+
var treeViewTemplates = this.treeViewObj.portals.map(function (x) { return x.propName; });
|
|
1003
|
+
this.parent.resetTemplates(treeViewTemplates);
|
|
1004
|
+
}
|
|
994
1005
|
this.treeViewObj.destroy();
|
|
995
1006
|
this.treeViewObj = null;
|
|
996
1007
|
}
|
|
@@ -120,6 +120,7 @@ var ICalendarImport = /** @class */ (function () {
|
|
|
120
120
|
this.parent.addEvent(this.processOccurrence(app));
|
|
121
121
|
};
|
|
122
122
|
ICalendarImport.prototype.processOccurrence = function (app) {
|
|
123
|
+
var _this = this;
|
|
123
124
|
var appoint = [];
|
|
124
125
|
var uId = 'UID';
|
|
125
126
|
var fields = this.parent.eventFields;
|
|
@@ -142,17 +143,21 @@ var ICalendarImport = /** @class */ (function () {
|
|
|
142
143
|
// eslint-disable-next-line no-prototype-builtins
|
|
143
144
|
if (data[i].hasOwnProperty(fields.recurrenceID)) {
|
|
144
145
|
var exdate = data[i][fields.recurrenceID];
|
|
146
|
+
data[i][fields.id] = _this.parent.eventBase.generateGuid();
|
|
145
147
|
data[i][fields.recurrenceID] = id;
|
|
146
148
|
data[i][fields.recurrenceException] = null;
|
|
147
149
|
parentObj[fields.recurrenceException] = (isNullOrUndefined(parentObj[fields.recurrenceException])) ?
|
|
148
150
|
exdate : parentObj[fields.recurrenceException] + ',' + exdate;
|
|
151
|
+
delete data[i][uId];
|
|
149
152
|
appoint.push(data[i]);
|
|
150
153
|
}
|
|
151
154
|
}
|
|
155
|
+
delete parentObj[uId];
|
|
152
156
|
appoint.push(parentObj);
|
|
153
157
|
// eslint-disable-next-line no-prototype-builtins
|
|
154
158
|
}
|
|
155
159
|
else if (!eventObj.hasOwnProperty(fields.recurrenceID)) {
|
|
160
|
+
delete eventObj[uId];
|
|
156
161
|
appoint.push(eventObj);
|
|
157
162
|
}
|
|
158
163
|
}
|