@syncfusion/ej2-schedule 21.1.41 → 21.2.3
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 +3 -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 +13 -5
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +14 -6
- 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 +16 -19
- package/src/schedule/actions/action-base.js +7 -1
- package/src/schedule/actions/drag.js +6 -4
- package/src/schedule/renderer/renderer.js +1 -1
|
@@ -14069,7 +14069,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
14069
14069
|
this.parent.virtualScrollModule.destroy();
|
|
14070
14070
|
this.parent.virtualScrollModule = null;
|
|
14071
14071
|
}
|
|
14072
|
-
if ((['Agenda', 'Year'].indexOf(this.parent.currentView) === -1 ||
|
|
14072
|
+
if ((['Agenda', 'MonthAgenda', 'Year', 'TimelineYear'].indexOf(this.parent.currentView) === -1 ||
|
|
14073
14073
|
(this.parent.currentView === 'TimelineYear' && this.parent.activeViewOptions.orientation === 'Vertical'))
|
|
14074
14074
|
&& this.parent.activeViewOptions.allowVirtualScrolling
|
|
14075
14075
|
&& this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
|
|
@@ -19825,6 +19825,9 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
19825
19825
|
};
|
|
19826
19826
|
ActionBase.prototype.dynamicYearlyEventsRendering = function (event, isResize) {
|
|
19827
19827
|
if (isResize === void 0) { isResize = false; }
|
|
19828
|
+
if (!isNullOrUndefined(this.parent.eventDragArea)) {
|
|
19829
|
+
return;
|
|
19830
|
+
}
|
|
19828
19831
|
var appWidth = this.actionObj.cellWidth - 7;
|
|
19829
19832
|
if (isResize && (this.resizeEdges.left || this.resizeEdges.right)) {
|
|
19830
19833
|
appWidth = this.actionObj.cellWidth * event.count;
|
|
@@ -19896,6 +19899,9 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
19896
19899
|
};
|
|
19897
19900
|
ActionBase.prototype.dynamicEventsRendering = function (event) {
|
|
19898
19901
|
var _this = this;
|
|
19902
|
+
if (!isNullOrUndefined(this.parent.eventDragArea)) {
|
|
19903
|
+
return;
|
|
19904
|
+
}
|
|
19899
19905
|
var dateRender = this.parent.activeView.renderDates;
|
|
19900
19906
|
var workCells = [].slice.call(this.parent.element.querySelectorAll('.' + WORK_CELLS_CLASS));
|
|
19901
19907
|
var workDays = this.parent.activeViewOptions.workDays;
|
|
@@ -19932,7 +19938,7 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
19932
19938
|
this.monthEvent.applyResourceColor(appointmentElement, event_1, 'backgroundColor', groupOrder);
|
|
19933
19939
|
setStyleAttribute(appointmentElement, { 'width': appWidth + 'px', 'border': '0px', 'pointer-events': 'none' });
|
|
19934
19940
|
var cellTd = workCells[parseInt(day.toString(), 10)];
|
|
19935
|
-
if (cellTd
|
|
19941
|
+
if (cellTd) {
|
|
19936
19942
|
this.monthEvent.renderElement(cellTd, appointmentElement, true);
|
|
19937
19943
|
this.actionObj.cloneElement.push(appointmentElement);
|
|
19938
19944
|
}
|
|
@@ -22107,10 +22113,12 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22107
22113
|
}
|
|
22108
22114
|
}
|
|
22109
22115
|
var event = this.getUpdatedEvent(this.actionObj.start, this.actionObj.end, this.actionObj.event);
|
|
22110
|
-
|
|
22111
|
-
|
|
22112
|
-
var
|
|
22113
|
-
|
|
22116
|
+
if (isNullOrUndefined(this.parent.eventDragArea)) {
|
|
22117
|
+
var eventWrappers = [].slice.call(this.parent.element.querySelectorAll('.' + CLONE_ELEMENT_CLASS));
|
|
22118
|
+
for (var _i = 0, eventWrappers_1 = eventWrappers; _i < eventWrappers_1.length; _i++) {
|
|
22119
|
+
var wrapper = eventWrappers_1[_i];
|
|
22120
|
+
remove(wrapper);
|
|
22121
|
+
}
|
|
22114
22122
|
}
|
|
22115
22123
|
if (this.multiData && this.multiData.length > 0) {
|
|
22116
22124
|
var startTime = resetTime(new Date(event[this.parent.eventFields.startTime]));
|