@syncfusion/ej2-schedule 20.3.52 → 20.3.56
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 +9 -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 -11
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +16 -10
- 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/base/util.js +0 -3
- package/src/schedule/event-renderer/inline-edit.js +17 -8
|
@@ -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
|
}
|