@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 @@ let scrollWidth = null;
|
|
|
365
365
|
* @private
|
|
366
366
|
*/
|
|
367
367
|
function getScrollBarWidth() {
|
|
368
|
-
if (scrollWidth !== null) {
|
|
369
|
-
return scrollWidth;
|
|
370
|
-
}
|
|
371
368
|
const divNode = createElement('div');
|
|
372
369
|
let value = 0;
|
|
373
370
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -8433,21 +8430,27 @@ class InlineEdit {
|
|
|
8433
8430
|
}
|
|
8434
8431
|
else {
|
|
8435
8432
|
const subEle = args.element.querySelector('.' + SUBJECT_CLASS);
|
|
8436
|
-
|
|
8437
|
-
|
|
8433
|
+
if (!isNullOrUndefined(subEle)) {
|
|
8434
|
+
addClass([subEle], DISABLE_CLASS);
|
|
8435
|
+
subject = subEle.innerText;
|
|
8436
|
+
}
|
|
8437
|
+
else {
|
|
8438
|
+
subject = args.data[this.parent.eventFields.subject];
|
|
8439
|
+
}
|
|
8438
8440
|
inlineSubject = createElement('input', { className: INLINE_SUBJECT_CLASS, attrs: { value: subject } });
|
|
8439
|
-
addClass([subEle], DISABLE_CLASS);
|
|
8440
8441
|
if (closest(args.element, '.' + MORE_POPUP_WRAPPER_CLASS)) {
|
|
8441
8442
|
args.element.insertBefore(inlineSubject, subEle);
|
|
8442
8443
|
}
|
|
8443
8444
|
else if (['Agenda', 'MonthAgenda'].indexOf(this.parent.currentView) > -1) {
|
|
8444
|
-
|
|
8445
|
+
let subjectWrap = args.element.querySelector('.' + SUBJECT_WRAP);
|
|
8446
|
+
if (isNullOrUndefined(subjectWrap)) {
|
|
8447
|
+
subjectWrap = createElement('div', { className: SUBJECT_WRAP });
|
|
8448
|
+
args.element.prepend(subjectWrap);
|
|
8449
|
+
}
|
|
8445
8450
|
subjectWrap.insertBefore(inlineSubject, subjectWrap.firstChild);
|
|
8446
8451
|
}
|
|
8447
8452
|
else {
|
|
8448
|
-
|
|
8449
|
-
'.e-inner-wrap' : '.e-appointment-details';
|
|
8450
|
-
args.element.querySelector(elementSelector).insertBefore(inlineSubject, timeEle);
|
|
8453
|
+
args.element.querySelector('.e-appointment-details').prepend(inlineSubject);
|
|
8451
8454
|
}
|
|
8452
8455
|
inlineSubject.focus();
|
|
8453
8456
|
}
|
|
@@ -8587,7 +8590,10 @@ class InlineEdit {
|
|
|
8587
8590
|
const inlineSubject = this.parent.element.querySelector('.' + INLINE_SUBJECT_CLASS);
|
|
8588
8591
|
if (inlineSubject) {
|
|
8589
8592
|
const appointmentSubject = closest(inlineSubject, '.' + APPOINTMENT_CLASS);
|
|
8590
|
-
|
|
8593
|
+
const subject = appointmentSubject.querySelector('.' + SUBJECT_CLASS);
|
|
8594
|
+
if (!isNullOrUndefined(subject)) {
|
|
8595
|
+
removeClass([subject], DISABLE_CLASS);
|
|
8596
|
+
}
|
|
8591
8597
|
remove(inlineSubject);
|
|
8592
8598
|
}
|
|
8593
8599
|
}
|
|
@@ -14142,9 +14148,6 @@ class Crud {
|
|
|
14142
14148
|
const deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
|
|
14143
14149
|
switch (action) {
|
|
14144
14150
|
case 'EditSeries':
|
|
14145
|
-
if ((childEvent[fields.startTime] > parentEvent[fields.startTime]) && childEvent[fields.recurrenceRule]) {
|
|
14146
|
-
this.processRecurrenceRule(parentEvent, childEvent);
|
|
14147
|
-
}
|
|
14148
14151
|
childEvent[fields.id] = parentEvent[fields.id];
|
|
14149
14152
|
childEvent[fields.recurrenceID] = null;
|
|
14150
14153
|
childEvent[fields.followingID] = null;
|
|
@@ -19298,11 +19301,13 @@ class Resize extends ActionBase {
|
|
|
19298
19301
|
resizeTime.setHours(eventEnd.getHours(), eventEnd.getMinutes(), eventEnd.getSeconds());
|
|
19299
19302
|
}
|
|
19300
19303
|
}
|
|
19304
|
+
const isNotHourSlot = ['TimelineMonth', 'Year', 'Month', 'Week', 'Date'].indexOf(headerName) !== -1 ||
|
|
19305
|
+
!this.parent.activeViewOptions.timeScale.enable;
|
|
19301
19306
|
if (isLeft) {
|
|
19302
19307
|
if ((eventEnd.getTime() - resizeTime.getTime()) <= 0) {
|
|
19303
19308
|
resizeTime = isWithoutScale ? resetTime(eventEnd) : eventStart;
|
|
19304
19309
|
}
|
|
19305
|
-
this.actionObj.start =
|
|
19310
|
+
this.actionObj.start = !isNotHourSlot ? this.calculateIntervalTime(resizeTime) : resizeTime;
|
|
19306
19311
|
}
|
|
19307
19312
|
else {
|
|
19308
19313
|
const isTimeScaleViews = isTimeViews && this.parent.activeViewOptions.timeScale.enable;
|
|
@@ -19311,8 +19316,7 @@ class Resize extends ActionBase {
|
|
|
19311
19316
|
if (isWithoutScale && (resizeEnd.getTime() - eventStart.getTime()) <= 0) {
|
|
19312
19317
|
resizeEnd = addDays(resetTime(eventStart), 1);
|
|
19313
19318
|
}
|
|
19314
|
-
this.actionObj.end =
|
|
19315
|
-
this.calculateIntervalTime(resizeEnd) : resizeEnd;
|
|
19319
|
+
this.actionObj.end = !isNotHourSlot ? this.calculateIntervalTime(resizeEnd) : resizeEnd;
|
|
19316
19320
|
}
|
|
19317
19321
|
}
|
|
19318
19322
|
getTopBottomStyles(e, isTop) {
|