@syncfusion/ej2-schedule 20.3.52 → 20.3.57
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 +18 -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 +21 -17
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +20 -16
- 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 +15 -15
- package/src/schedule/actions/crud.js +0 -3
- package/src/schedule/actions/resize.js +4 -3
- package/src/schedule/base/util.js +0 -3
- package/src/schedule/event-renderer/inline-edit.js +17 -8
- package/styles/bootstrap-dark.css +5 -5
- package/styles/bootstrap.css +5 -5
- package/styles/bootstrap4.css +5 -5
- package/styles/bootstrap5-dark.css +5 -5
- package/styles/bootstrap5.css +5 -5
- package/styles/fabric-dark.css +5 -5
- package/styles/fabric.css +5 -5
- package/styles/fluent-dark.css +5 -5
- package/styles/fluent.css +5 -5
- package/styles/highcontrast-light.css +5 -5
- package/styles/highcontrast.css +5 -5
- package/styles/material-dark.css +5 -5
- package/styles/material.css +5 -5
- package/styles/recurrence-editor/bootstrap-dark.css +5 -5
- package/styles/recurrence-editor/bootstrap.css +5 -5
- package/styles/recurrence-editor/bootstrap4.css +5 -5
- package/styles/recurrence-editor/bootstrap5-dark.css +5 -5
- package/styles/recurrence-editor/bootstrap5.css +5 -5
- package/styles/recurrence-editor/fabric-dark.css +5 -5
- package/styles/recurrence-editor/fabric.css +5 -5
- package/styles/recurrence-editor/fluent-dark.css +5 -5
- package/styles/recurrence-editor/fluent.css +5 -5
- package/styles/recurrence-editor/highcontrast-light.css +5 -5
- package/styles/recurrence-editor/highcontrast.css +5 -5
- package/styles/recurrence-editor/material-dark.css +5 -5
- package/styles/recurrence-editor/material.css +5 -5
- package/styles/recurrence-editor/tailwind-dark.css +5 -5
- package/styles/recurrence-editor/tailwind.css +5 -5
- package/styles/tailwind-dark.css +5 -5
- package/styles/tailwind.css +5 -5
|
@@ -365,9 +365,6 @@ var scrollWidth = null;
|
|
|
365
365
|
* @private
|
|
366
366
|
*/
|
|
367
367
|
function getScrollBarWidth() {
|
|
368
|
-
if (scrollWidth !== null) {
|
|
369
|
-
return scrollWidth;
|
|
370
|
-
}
|
|
371
368
|
var divNode = createElement('div');
|
|
372
369
|
var value = 0;
|
|
373
370
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -8637,21 +8634,27 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
|
|
|
8637
8634
|
}
|
|
8638
8635
|
else {
|
|
8639
8636
|
var subEle = args.element.querySelector('.' + SUBJECT_CLASS);
|
|
8640
|
-
|
|
8641
|
-
|
|
8637
|
+
if (!isNullOrUndefined(subEle)) {
|
|
8638
|
+
addClass([subEle], DISABLE_CLASS);
|
|
8639
|
+
subject = subEle.innerText;
|
|
8640
|
+
}
|
|
8641
|
+
else {
|
|
8642
|
+
subject = args.data[this.parent.eventFields.subject];
|
|
8643
|
+
}
|
|
8642
8644
|
inlineSubject = createElement('input', { className: INLINE_SUBJECT_CLASS, attrs: { value: subject } });
|
|
8643
|
-
addClass([subEle], DISABLE_CLASS);
|
|
8644
8645
|
if (closest(args.element, '.' + MORE_POPUP_WRAPPER_CLASS)) {
|
|
8645
8646
|
args.element.insertBefore(inlineSubject, subEle);
|
|
8646
8647
|
}
|
|
8647
8648
|
else if (['Agenda', 'MonthAgenda'].indexOf(this.parent.currentView) > -1) {
|
|
8648
8649
|
var subjectWrap = args.element.querySelector('.' + SUBJECT_WRAP);
|
|
8650
|
+
if (isNullOrUndefined(subjectWrap)) {
|
|
8651
|
+
subjectWrap = createElement('div', { className: SUBJECT_WRAP });
|
|
8652
|
+
args.element.prepend(subjectWrap);
|
|
8653
|
+
}
|
|
8649
8654
|
subjectWrap.insertBefore(inlineSubject, subjectWrap.firstChild);
|
|
8650
8655
|
}
|
|
8651
8656
|
else {
|
|
8652
|
-
|
|
8653
|
-
'.e-inner-wrap' : '.e-appointment-details';
|
|
8654
|
-
args.element.querySelector(elementSelector).insertBefore(inlineSubject, timeEle);
|
|
8657
|
+
args.element.querySelector('.e-appointment-details').prepend(inlineSubject);
|
|
8655
8658
|
}
|
|
8656
8659
|
inlineSubject.focus();
|
|
8657
8660
|
}
|
|
@@ -8793,7 +8796,10 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
|
|
|
8793
8796
|
var inlineSubject = this.parent.element.querySelector('.' + INLINE_SUBJECT_CLASS);
|
|
8794
8797
|
if (inlineSubject) {
|
|
8795
8798
|
var appointmentSubject = closest(inlineSubject, '.' + APPOINTMENT_CLASS);
|
|
8796
|
-
|
|
8799
|
+
var subject = appointmentSubject.querySelector('.' + SUBJECT_CLASS);
|
|
8800
|
+
if (!isNullOrUndefined(subject)) {
|
|
8801
|
+
removeClass([subject], DISABLE_CLASS);
|
|
8802
|
+
}
|
|
8797
8803
|
remove(inlineSubject);
|
|
8798
8804
|
}
|
|
8799
8805
|
};
|
|
@@ -14559,9 +14565,6 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
14559
14565
|
var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
|
|
14560
14566
|
switch (action) {
|
|
14561
14567
|
case 'EditSeries':
|
|
14562
|
-
if ((childEvent[fields_2.startTime] > parentEvent[fields_2.startTime]) && childEvent[fields_2.recurrenceRule]) {
|
|
14563
|
-
_this.processRecurrenceRule(parentEvent, childEvent);
|
|
14564
|
-
}
|
|
14565
14568
|
childEvent[fields_2.id] = parentEvent[fields_2.id];
|
|
14566
14569
|
childEvent[fields_2.recurrenceID] = null;
|
|
14567
14570
|
childEvent[fields_2.followingID] = null;
|
|
@@ -19967,11 +19970,13 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
19967
19970
|
resizeTime.setHours(eventEnd.getHours(), eventEnd.getMinutes(), eventEnd.getSeconds());
|
|
19968
19971
|
}
|
|
19969
19972
|
}
|
|
19973
|
+
var isNotHourSlot = ['TimelineMonth', 'Year', 'Month', 'Week', 'Date'].indexOf(headerName) !== -1 ||
|
|
19974
|
+
!this.parent.activeViewOptions.timeScale.enable;
|
|
19970
19975
|
if (isLeft) {
|
|
19971
19976
|
if ((eventEnd.getTime() - resizeTime.getTime()) <= 0) {
|
|
19972
19977
|
resizeTime = isWithoutScale ? resetTime(eventEnd) : eventStart;
|
|
19973
19978
|
}
|
|
19974
|
-
this.actionObj.start =
|
|
19979
|
+
this.actionObj.start = !isNotHourSlot ? this.calculateIntervalTime(resizeTime) : resizeTime;
|
|
19975
19980
|
}
|
|
19976
19981
|
else {
|
|
19977
19982
|
var isTimeScaleViews = isTimeViews && this.parent.activeViewOptions.timeScale.enable;
|
|
@@ -19980,8 +19985,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
19980
19985
|
if (isWithoutScale && (resizeEnd.getTime() - eventStart.getTime()) <= 0) {
|
|
19981
19986
|
resizeEnd = addDays(resetTime(eventStart), 1);
|
|
19982
19987
|
}
|
|
19983
|
-
this.actionObj.end =
|
|
19984
|
-
this.calculateIntervalTime(resizeEnd) : resizeEnd;
|
|
19988
|
+
this.actionObj.end = !isNotHourSlot ? this.calculateIntervalTime(resizeEnd) : resizeEnd;
|
|
19985
19989
|
}
|
|
19986
19990
|
};
|
|
19987
19991
|
Resize.prototype.getTopBottomStyles = function (e, isTop) {
|