@syncfusion/ej2-schedule 26.1.39 → 26.1.40
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/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 +16 -7
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +17 -8
- 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 +11 -11
- package/src/schedule/actions/resize.js +2 -1
- package/src/schedule/event-renderer/agenda-base.js +2 -1
- package/src/schedule/event-renderer/vertical-view.js +1 -1
- package/src/schedule/popups/event-window.js +12 -5
|
@@ -6841,7 +6841,7 @@ class VerticalEvent extends EventBase {
|
|
|
6841
6841
|
this.parent.crudModule.crudObj.isCrudAction = false;
|
|
6842
6842
|
}
|
|
6843
6843
|
this.parent.renderTemplates(() => {
|
|
6844
|
-
if (this.parent.isReact && this.parent.activeViewOptions.eventTemplate) {
|
|
6844
|
+
if (this.parent && this.parent.isReact && this.parent.activeViewOptions.eventTemplate) {
|
|
6845
6845
|
const wraps = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_WRAPPER_HIDDEN_CLASS));
|
|
6846
6846
|
removeClass(wraps, APPOINTMENT_WRAPPER_HIDDEN_CLASS);
|
|
6847
6847
|
}
|
|
@@ -12170,11 +12170,14 @@ class EventWindow {
|
|
|
12170
12170
|
this.recurrenceEditor = null;
|
|
12171
12171
|
}
|
|
12172
12172
|
this.destroyComponents();
|
|
12173
|
-
const formElements = [].slice.call(form.children);
|
|
12174
|
-
for (const element of formElements) {
|
|
12175
|
-
remove(element);
|
|
12176
|
-
}
|
|
12177
12173
|
this.parent.resetTemplates(['editorTemplate']);
|
|
12174
|
+
EventHandler.clearEvents(form);
|
|
12175
|
+
if (!this.parent.isReact) {
|
|
12176
|
+
const formElements = [].slice.call(form.children);
|
|
12177
|
+
for (const element of formElements) {
|
|
12178
|
+
remove(element);
|
|
12179
|
+
}
|
|
12180
|
+
}
|
|
12178
12181
|
}
|
|
12179
12182
|
const templateId = this.parent.element.id + '_editorTemplate';
|
|
12180
12183
|
const tempEle = [].slice.call(this.parent.getEditorTemplate()(args || {}, this.parent, 'editorTemplate', templateId, false));
|
|
@@ -12768,6 +12771,10 @@ class EventWindow {
|
|
|
12768
12771
|
if (!isNullOrUndefined(descriptionRule)) {
|
|
12769
12772
|
rules[this.parent.eventSettings.fields.description.name] = descriptionRule;
|
|
12770
12773
|
}
|
|
12774
|
+
if (this.fieldValidator) {
|
|
12775
|
+
this.fieldValidator.destroy();
|
|
12776
|
+
this.fieldValidator = null;
|
|
12777
|
+
}
|
|
12771
12778
|
this.fieldValidator = new FieldValidator();
|
|
12772
12779
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
12773
12780
|
}
|
|
@@ -20485,7 +20492,8 @@ class Resize extends ActionBase {
|
|
|
20485
20492
|
if (!isLeft) {
|
|
20486
20493
|
offsetValue += (getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
|
|
20487
20494
|
}
|
|
20488
|
-
cellIndex = Math.
|
|
20495
|
+
cellIndex = !isTimelineMonth ? Math.round(offsetValue / (getElementWidth(tr) / noOfDays)) :
|
|
20496
|
+
Math.floor(offsetValue / Math.floor(getElementWidth(tr) / noOfDays));
|
|
20489
20497
|
isDateHeader = isTimeViews && headerName === 'Date';
|
|
20490
20498
|
cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
|
|
20491
20499
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -25302,7 +25310,8 @@ class AgendaBase extends ViewBase {
|
|
|
25302
25310
|
const scheduleId = this.parent.element.id + '_';
|
|
25303
25311
|
const viewName = this.parent.activeViewOptions.eventTemplateName;
|
|
25304
25312
|
const templateId = scheduleId + viewName + 'eventTemplate';
|
|
25305
|
-
templateEle =
|
|
25313
|
+
templateEle =
|
|
25314
|
+
this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], this.parent, 'eventTemplate', templateId, false, undefined, undefined, this.parent.root);
|
|
25306
25315
|
if (!isNullOrUndefined(listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceRule])) {
|
|
25307
25316
|
const iconClass = (listData[parseInt(li.toString(), 10)][fieldMapping.id] ===
|
|
25308
25317
|
listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceID]) ?
|