@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 @@ 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
|
};
|