@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
|
@@ -6978,7 +6978,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
6978
6978
|
this.parent.crudModule.crudObj.isCrudAction = false;
|
|
6979
6979
|
}
|
|
6980
6980
|
this.parent.renderTemplates(function () {
|
|
6981
|
-
if (_this.parent.isReact && _this.parent.activeViewOptions.eventTemplate) {
|
|
6981
|
+
if (_this.parent && _this.parent.isReact && _this.parent.activeViewOptions.eventTemplate) {
|
|
6982
6982
|
var wraps = [].slice.call(_this.parent.element.querySelectorAll('.' + APPOINTMENT_WRAPPER_HIDDEN_CLASS));
|
|
6983
6983
|
removeClass(wraps, APPOINTMENT_WRAPPER_HIDDEN_CLASS);
|
|
6984
6984
|
}
|
|
@@ -12455,12 +12455,15 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12455
12455
|
this.recurrenceEditor = null;
|
|
12456
12456
|
}
|
|
12457
12457
|
this.destroyComponents();
|
|
12458
|
-
var formElements = [].slice.call(form.children);
|
|
12459
|
-
for (var _i = 0, formElements_1 = formElements; _i < formElements_1.length; _i++) {
|
|
12460
|
-
var element = formElements_1[_i];
|
|
12461
|
-
remove(element);
|
|
12462
|
-
}
|
|
12463
12458
|
this.parent.resetTemplates(['editorTemplate']);
|
|
12459
|
+
EventHandler.clearEvents(form);
|
|
12460
|
+
if (!this.parent.isReact) {
|
|
12461
|
+
var formElements = [].slice.call(form.children);
|
|
12462
|
+
for (var _i = 0, formElements_1 = formElements; _i < formElements_1.length; _i++) {
|
|
12463
|
+
var element = formElements_1[_i];
|
|
12464
|
+
remove(element);
|
|
12465
|
+
}
|
|
12466
|
+
}
|
|
12464
12467
|
}
|
|
12465
12468
|
var templateId = this.parent.element.id + '_editorTemplate';
|
|
12466
12469
|
var tempEle = [].slice.call(this.parent.getEditorTemplate()(args || {}, this.parent, 'editorTemplate', templateId, false));
|
|
@@ -13067,6 +13070,10 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
13067
13070
|
if (!isNullOrUndefined(descriptionRule)) {
|
|
13068
13071
|
rules[this.parent.eventSettings.fields.description.name] = descriptionRule;
|
|
13069
13072
|
}
|
|
13073
|
+
if (this.fieldValidator) {
|
|
13074
|
+
this.fieldValidator.destroy();
|
|
13075
|
+
this.fieldValidator = null;
|
|
13076
|
+
}
|
|
13070
13077
|
this.fieldValidator = new FieldValidator();
|
|
13071
13078
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
13072
13079
|
};
|
|
@@ -21205,7 +21212,8 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21205
21212
|
if (!isLeft) {
|
|
21206
21213
|
offsetValue += (getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
|
|
21207
21214
|
}
|
|
21208
|
-
cellIndex = Math.
|
|
21215
|
+
cellIndex = !isTimelineMonth ? Math.round(offsetValue / (getElementWidth(tr) / noOfDays)) :
|
|
21216
|
+
Math.floor(offsetValue / Math.floor(getElementWidth(tr) / noOfDays));
|
|
21209
21217
|
isDateHeader = isTimeViews && headerName === 'Date';
|
|
21210
21218
|
cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
|
|
21211
21219
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -26243,7 +26251,8 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
26243
26251
|
var scheduleId = _this.parent.element.id + '_';
|
|
26244
26252
|
var viewName = _this.parent.activeViewOptions.eventTemplateName;
|
|
26245
26253
|
var templateId = scheduleId + viewName + 'eventTemplate';
|
|
26246
|
-
templateEle =
|
|
26254
|
+
templateEle =
|
|
26255
|
+
_this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false, undefined, undefined, _this.parent.root);
|
|
26247
26256
|
if (!isNullOrUndefined(listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceRule])) {
|
|
26248
26257
|
var iconClass = (listData[parseInt(li.toString(), 10)][fieldMapping.id] ===
|
|
26249
26258
|
listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceID]) ?
|