@syncfusion/ej2-schedule 26.1.41 → 26.2.4
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 +23 -13
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +23 -13
- 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/hotfix/26.1.35_Vol2.txt +1 -0
- package/package.json +15 -15
- package/src/recurrence-editor/date-generator.js +3 -0
- package/src/schedule/actions/drag.js +2 -2
- package/src/schedule/popups/event-window.d.ts +1 -0
- package/src/schedule/popups/event-window.js +13 -10
- package/src/schedule/renderer/vertical-view.js +5 -1
- package/styles/fluent2.css +11 -11
- package/styles/recurrence-editor/fluent2.css +10 -10
- package/styles/schedule/fluent2.css +11 -11
|
@@ -4173,6 +4173,9 @@ function weeklyType(startDate, endDate, data, ruleObject) {
|
|
|
4173
4173
|
}
|
|
4174
4174
|
else {
|
|
4175
4175
|
tempDate = getStartDateForWeek(startDate, ruleObject.day);
|
|
4176
|
+
if (interval > 1 && dayIndex.indexOf(ruleObject.day[0]) < startDate.getDay()) {
|
|
4177
|
+
tempDate.setDate(tempDate.getDate() + ((interval - 1) * 7));
|
|
4178
|
+
}
|
|
4176
4179
|
while (compareDates(tempDate, endDate)) {
|
|
4177
4180
|
weekState = validateRules(tempDate, ruleObject);
|
|
4178
4181
|
if (weekState && (expectedDays.indexOf(DAYINDEX[tempDate.getDay()]) > -1)) {
|
|
@@ -12266,8 +12269,13 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12266
12269
|
this.addEventHandlers();
|
|
12267
12270
|
}
|
|
12268
12271
|
if (!isNullOrUndefined(this.parent.editorTemplate)) {
|
|
12269
|
-
this.renderFormElements(this.element.querySelector('.e-schedule-form'), data);
|
|
12272
|
+
this.renderFormElements(this.element.querySelector('.e-schedule-form'), data, type, repeatType);
|
|
12273
|
+
}
|
|
12274
|
+
else {
|
|
12275
|
+
this.setEditorContent(data, type, repeatType);
|
|
12270
12276
|
}
|
|
12277
|
+
};
|
|
12278
|
+
EventWindow.prototype.setEditorContent = function (data, type, repeatType) {
|
|
12271
12279
|
if (!this.parent.isAdaptive && isNullOrUndefined(this.parent.editorTemplate)) {
|
|
12272
12280
|
removeClass([this.dialogObject.element.querySelector('.e-recurrenceeditor')], DISABLE_CLASS);
|
|
12273
12281
|
}
|
|
@@ -12448,7 +12456,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12448
12456
|
container.appendChild(form);
|
|
12449
12457
|
return container;
|
|
12450
12458
|
};
|
|
12451
|
-
EventWindow.prototype.renderFormElements = function (form, args) {
|
|
12459
|
+
EventWindow.prototype.renderFormElements = function (form, args, type, repeatType) {
|
|
12452
12460
|
var _this = this;
|
|
12453
12461
|
if (!isNullOrUndefined(this.parent.editorTemplate)) {
|
|
12454
12462
|
if (args) {
|
|
@@ -12477,15 +12485,17 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12477
12485
|
this.parent.renderTemplates(function () {
|
|
12478
12486
|
if (_this.element) {
|
|
12479
12487
|
_this.applyFormValidation();
|
|
12480
|
-
if (
|
|
12481
|
-
_this.
|
|
12482
|
-
_this.eventCrudData = null;
|
|
12488
|
+
if (args) {
|
|
12489
|
+
_this.setEditorContent(args, type, repeatType);
|
|
12483
12490
|
}
|
|
12484
12491
|
}
|
|
12485
12492
|
});
|
|
12486
12493
|
}
|
|
12487
12494
|
else {
|
|
12488
12495
|
form.appendChild(this.getDefaultEventWindowContent());
|
|
12496
|
+
if (args) {
|
|
12497
|
+
this.setEditorContent(args, type, repeatType);
|
|
12498
|
+
}
|
|
12489
12499
|
}
|
|
12490
12500
|
};
|
|
12491
12501
|
EventWindow.prototype.getDefaultEventWindowContent = function () {
|
|
@@ -13084,13 +13094,9 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
13084
13094
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
13085
13095
|
};
|
|
13086
13096
|
EventWindow.prototype.showDetails = function (eventData) {
|
|
13087
|
-
this.eventData =
|
|
13097
|
+
this.eventData = eventData;
|
|
13088
13098
|
var eventObj = extend({}, eventData, null, true);
|
|
13089
13099
|
var formElements = this.getFormElements(EVENT_WINDOW_DIALOG_CLASS);
|
|
13090
|
-
if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
|
|
13091
|
-
this.eventCrudData = eventObj;
|
|
13092
|
-
return;
|
|
13093
|
-
}
|
|
13094
13100
|
if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
|
|
13095
13101
|
eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
|
|
13096
13102
|
this.trimAllDay(eventObj);
|
|
@@ -23199,7 +23205,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23199
23205
|
getUniversalTime(eventObj[this.parent.eventFields.startTime]);
|
|
23200
23206
|
var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
|
|
23201
23207
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
23202
|
-
offsetLeft = Math.
|
|
23208
|
+
offsetLeft = Math.round(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
23203
23209
|
var rightOffset;
|
|
23204
23210
|
if (this.parent.enableRtl) {
|
|
23205
23211
|
rightOffset = Math.abs(parseInt(this.actionObj.clone.style.right, 10));
|
|
@@ -23385,7 +23391,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23385
23391
|
return 0;
|
|
23386
23392
|
};
|
|
23387
23393
|
DragAndDrop.prototype.getColumnIndex = function (offsetLeft) {
|
|
23388
|
-
var index = Math.
|
|
23394
|
+
var index = Math.round(offsetLeft / this.actionObj.cellWidth);
|
|
23389
23395
|
if (this.isHeaderRows) {
|
|
23390
23396
|
return index;
|
|
23391
23397
|
}
|
|
@@ -24496,7 +24502,11 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24496
24502
|
}
|
|
24497
24503
|
for (var _i = 0, currentDateIndex_1 = currentDateIndex; _i < currentDateIndex_1.length; _i++) {
|
|
24498
24504
|
var day = currentDateIndex_1[_i];
|
|
24499
|
-
curTimeWrap
|
|
24505
|
+
if (curTimeWrap.length > day) {
|
|
24506
|
+
curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', {
|
|
24507
|
+
className: CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx
|
|
24508
|
+
}));
|
|
24509
|
+
}
|
|
24500
24510
|
}
|
|
24501
24511
|
var currentTimeEle = createElement('div', {
|
|
24502
24512
|
innerHTML: this.parent.getTimeString(this.parent.getCurrentTime()),
|