@syncfusion/ej2-schedule 26.1.41 → 26.2.5

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.1.41
3
+ * version : 26.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
@@ -0,0 +1 @@
1
+ hotfix/26.1.35_Vol2
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-schedule@*",
3
- "_id": "@syncfusion/ej2-schedule@26.1.40",
3
+ "_id": "@syncfusion/ej2-schedule@26.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-r4Jf4H5P3kGPXFq2X9L2V/9VTVF8lMu0xgl9V3gf3jb88dZmpuLb+JqpDF4zYXjL4QsU9cfILvCT6Kwj8ZC/GQ==",
5
+ "_integrity": "sha512-d/AIC7kbjZPi2FZ7YdqgrdwK77+BRk5TWDE05BqH4m8MrX6U5OmtQQM9DPbtNx/nhlXVVvxs9K5/ijcYyZTWLQ==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-schedule",
24
24
  "/@syncfusion/ej2-vue-schedule"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.1.40.tgz",
27
- "_shasum": "16adcad2451ceb85be6257a04b55099b6cac9945",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.1.41.tgz",
27
+ "_shasum": "5bebf2b810f97ac7bb1854989afda8dd76826507",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~26.1.37",
39
- "@syncfusion/ej2-buttons": "~26.1.40",
40
- "@syncfusion/ej2-calendars": "~26.1.41",
41
- "@syncfusion/ej2-data": "~26.1.41",
42
- "@syncfusion/ej2-dropdowns": "~26.1.41",
43
- "@syncfusion/ej2-excel-export": "~26.1.35",
44
- "@syncfusion/ej2-inputs": "~26.1.41",
45
- "@syncfusion/ej2-lists": "~26.1.35",
46
- "@syncfusion/ej2-navigations": "~26.1.41",
47
- "@syncfusion/ej2-popups": "~26.1.41",
38
+ "@syncfusion/ej2-base": "~26.2.5",
39
+ "@syncfusion/ej2-buttons": "~26.2.5",
40
+ "@syncfusion/ej2-calendars": "~26.2.5",
41
+ "@syncfusion/ej2-data": "~26.2.5",
42
+ "@syncfusion/ej2-dropdowns": "~26.2.5",
43
+ "@syncfusion/ej2-excel-export": "~26.2.5",
44
+ "@syncfusion/ej2-inputs": "~26.2.5",
45
+ "@syncfusion/ej2-lists": "~26.2.5",
46
+ "@syncfusion/ej2-navigations": "~26.2.5",
47
+ "@syncfusion/ej2-popups": "~26.2.5",
48
48
  "@types/requirejs": "^2.1.37"
49
49
  },
50
50
  "deprecated": false,
@@ -74,6 +74,6 @@
74
74
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
75
75
  },
76
76
  "typings": "index.d.ts",
77
- "version": "26.1.41",
77
+ "version": "26.2.5",
78
78
  "sideEffects": false
79
79
  }
@@ -308,6 +308,9 @@ function weeklyType(startDate, endDate, data, ruleObject) {
308
308
  }
309
309
  else {
310
310
  tempDate = getStartDateForWeek(startDate, ruleObject.day);
311
+ if (interval > 1 && dayIndex.indexOf(ruleObject.day[0]) < startDate.getDay()) {
312
+ tempDate.setDate(tempDate.getDate() + ((interval - 1) * 7));
313
+ }
311
314
  while (compareDates(tempDate, endDate)) {
312
315
  weekState = validateRules(tempDate, ruleObject);
313
316
  if (weekState && (expectedDays.indexOf(DAYINDEX[tempDate.getDay()]) > -1)) {
@@ -1059,7 +1059,7 @@ var DragAndDrop = /** @class */ (function (_super) {
1059
1059
  util.getUniversalTime(eventObj[this.parent.eventFields.startTime]);
1060
1060
  var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
1061
1061
  parseInt(this.actionObj.clone.style.left, 10);
1062
- offsetLeft = Math.floor(offsetLeft / Math.trunc(this.actionObj.cellWidth)) * this.actionObj.cellWidth;
1062
+ offsetLeft = Math.round(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
1063
1063
  var rightOffset;
1064
1064
  if (this.parent.enableRtl) {
1065
1065
  rightOffset = Math.abs(parseInt(this.actionObj.clone.style.right, 10));
@@ -1245,7 +1245,7 @@ var DragAndDrop = /** @class */ (function (_super) {
1245
1245
  return 0;
1246
1246
  };
1247
1247
  DragAndDrop.prototype.getColumnIndex = function (offsetLeft) {
1248
- var index = Math.floor(offsetLeft / Math.trunc(this.actionObj.cellWidth));
1248
+ var index = Math.round(offsetLeft / this.actionObj.cellWidth);
1249
1249
  if (this.isHeaderRows) {
1250
1250
  return index;
1251
1251
  }
@@ -35,6 +35,7 @@ export declare class EventWindow {
35
35
  refreshRecurrenceEditor(): void;
36
36
  setRecurrenceEditor(recurrenceEditor: RecurrenceEditor): void;
37
37
  openEditor(data: Record<string, any>, type: CurrentAction, isEventData?: boolean, repeatType?: number): void;
38
+ private setEditorContent;
38
39
  setDialogContent(): void;
39
40
  setDialogHeader(): void;
40
41
  setDialogFooter(): void;
@@ -159,8 +159,13 @@ var EventWindow = /** @class */ (function () {
159
159
  this.addEventHandlers();
160
160
  }
161
161
  if (!isNullOrUndefined(this.parent.editorTemplate)) {
162
- this.renderFormElements(this.element.querySelector('.e-schedule-form'), data);
162
+ this.renderFormElements(this.element.querySelector('.e-schedule-form'), data, type, repeatType);
163
163
  }
164
+ else {
165
+ this.setEditorContent(data, type, repeatType);
166
+ }
167
+ };
168
+ EventWindow.prototype.setEditorContent = function (data, type, repeatType) {
164
169
  if (!this.parent.isAdaptive && isNullOrUndefined(this.parent.editorTemplate)) {
165
170
  removeClass([this.dialogObject.element.querySelector('.e-recurrenceeditor')], cls.DISABLE_CLASS);
166
171
  }
@@ -341,7 +346,7 @@ var EventWindow = /** @class */ (function () {
341
346
  container.appendChild(form);
342
347
  return container;
343
348
  };
344
- EventWindow.prototype.renderFormElements = function (form, args) {
349
+ EventWindow.prototype.renderFormElements = function (form, args, type, repeatType) {
345
350
  var _this = this;
346
351
  if (!isNullOrUndefined(this.parent.editorTemplate)) {
347
352
  if (args) {
@@ -370,15 +375,17 @@ var EventWindow = /** @class */ (function () {
370
375
  this.parent.renderTemplates(function () {
371
376
  if (_this.element) {
372
377
  _this.applyFormValidation();
373
- if (_this.eventCrudData) {
374
- _this.showDetails(_this.eventCrudData);
375
- _this.eventCrudData = null;
378
+ if (args) {
379
+ _this.setEditorContent(args, type, repeatType);
376
380
  }
377
381
  }
378
382
  });
379
383
  }
380
384
  else {
381
385
  form.appendChild(this.getDefaultEventWindowContent());
386
+ if (args) {
387
+ this.setEditorContent(args, type, repeatType);
388
+ }
382
389
  }
383
390
  };
384
391
  EventWindow.prototype.getDefaultEventWindowContent = function () {
@@ -977,13 +984,9 @@ var EventWindow = /** @class */ (function () {
977
984
  this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
978
985
  };
979
986
  EventWindow.prototype.showDetails = function (eventData) {
980
- this.eventData = this.eventCrudData ? this.eventData : eventData;
987
+ this.eventData = eventData;
981
988
  var eventObj = extend({}, eventData, null, true);
982
989
  var formElements = this.getFormElements(cls.EVENT_WINDOW_DIALOG_CLASS);
983
- if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
984
- this.eventCrudData = eventObj;
985
- return;
986
- }
987
990
  if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
988
991
  eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
989
992
  this.trimAllDay(eventObj);
@@ -348,7 +348,11 @@ var VerticalView = /** @class */ (function (_super) {
348
348
  }
349
349
  for (var _i = 0, currentDateIndex_1 = currentDateIndex; _i < currentDateIndex_1.length; _i++) {
350
350
  var day = currentDateIndex_1[_i];
351
- curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', { className: cls.CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx }));
351
+ if (curTimeWrap.length > day) {
352
+ curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', {
353
+ className: cls.CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx
354
+ }));
355
+ }
352
356
  }
353
357
  var currentTimeEle = createElement('div', {
354
358
  innerHTML: this.parent.getTimeString(this.parent.getCurrentTime()),
@@ -47,7 +47,7 @@
47
47
  --color-sf-flyout-bg-color-pressed: #e0e0e0;
48
48
  --color-sf-flyout-bg-color-selected: #ebebeb;
49
49
  --color-sf-flyout-bg-color-focus: #f5f5f5;
50
- --color-sf-overlay-bg-color: #000;
50
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
51
51
  --color-sf-table-bg-color-hover: #f5f5f5;
52
52
  --color-sf-table-bg-color-pressed: #e0e0e0;
53
53
  --color-sf-table-bg-color-selected: #ebf3fc;
@@ -369,7 +369,7 @@
369
369
  --color-sf-flyout-bg-color-pressed: var(--color-sf-black);
370
370
  --color-sf-flyout-bg-color-selected: #383838;
371
371
  --color-sf-flyout-bg-color-focus: var(--color-sf-flyout-bg-color-hover);
372
- --color-sf-overlay-bg-color: rgba($black, .4);
372
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
373
373
  --color-sf-table-bg-color-hover: #383838;
374
374
  --color-sf-table-bg-color-pressed: #2e2e2e;
375
375
  --color-sf-table-bg-color-selected: #082338;
@@ -711,9 +711,9 @@
711
711
  --color-sf-flyout-bg-color-pressed: var(--color-sf-content-bg-color-hover);
712
712
  --color-sf-flyout-bg-color-selected: var(--color-sf-content-bg-color-hover);
713
713
  --color-sf-flyout-bg-color-focus: var(--color-sf-content-bg-color-hover);
714
- --color-sf-overlay-bg-color: rgba($black, .4);
715
- --color-sf-table-bg-color-hover: var(--color-sf-black);
716
- --color-sf-table-bg-color-pressed: var(--color-sf-black);
714
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
715
+ --color-sf-table-bg-color-hover: #1a3bff;
716
+ --color-sf-table-bg-color-pressed: #1a3bff;
717
717
  --color-sf-table-bg-color-selected: #1a3bff;
718
718
  --color-sf-content-text-color: #fff;
719
719
  --color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
@@ -732,12 +732,12 @@
732
732
  --color-sf-flyout-text-color-selected: var(--color-sf-content-text-color-hover);
733
733
  --color-sf-flyout-text-color-focus: var(--color-sf-content-text-color-hover);
734
734
  --color-sf-flyout-text-color-disabled: var(--color-sf-content-text-color-disabled);
735
- --color-sf-table-text-color-hover: var(--color-sf-content-text-color-hover);
736
- --color-sf-table-text-color-pressed: var(--color-sf-content-text-color-hover);
737
- --color-sf-table-text-color-selected: var(--color-sf-content-text-color-hover);
735
+ --color-sf-table-text-color-hover: #000;
736
+ --color-sf-table-text-color-pressed: #000;
737
+ --color-sf-table-text-color-selected: #000;
738
738
  --color-sf-icon-color: #fff;
739
- --color-sf-icon-color-hover: var(--color-sf-content-text-color-hover);
740
- --color-sf-icon-color-pressed: var(--color-sf-content-text-color-hover);
739
+ --color-sf-icon-color-hover: #000;
740
+ --color-sf-icon-color-pressed: #000;
741
741
  --color-sf-icon-color-disabled: var(--color-sf-content-text-color-disabled);
742
742
  --color-sf-border-light: #fff;
743
743
  --color-sf-border: var(--color-sf-border-light);
@@ -1737,7 +1737,7 @@
1737
1737
  padding: 0 0 0 12px;
1738
1738
  }
1739
1739
  .e-schedule .e-resource-tree-popup-overlay.e-enable {
1740
- background: rgba(var(--color-sf-overlay-bg-color), 0.4);
1740
+ background: var(--color-sf-overlay-bg-color);
1741
1741
  height: 100%;
1742
1742
  left: 0;
1743
1743
  opacity: 0.5;
@@ -47,7 +47,7 @@
47
47
  --color-sf-flyout-bg-color-pressed: #e0e0e0;
48
48
  --color-sf-flyout-bg-color-selected: #ebebeb;
49
49
  --color-sf-flyout-bg-color-focus: #f5f5f5;
50
- --color-sf-overlay-bg-color: #000;
50
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
51
51
  --color-sf-table-bg-color-hover: #f5f5f5;
52
52
  --color-sf-table-bg-color-pressed: #e0e0e0;
53
53
  --color-sf-table-bg-color-selected: #ebf3fc;
@@ -369,7 +369,7 @@
369
369
  --color-sf-flyout-bg-color-pressed: var(--color-sf-black);
370
370
  --color-sf-flyout-bg-color-selected: #383838;
371
371
  --color-sf-flyout-bg-color-focus: var(--color-sf-flyout-bg-color-hover);
372
- --color-sf-overlay-bg-color: rgba($black, .4);
372
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
373
373
  --color-sf-table-bg-color-hover: #383838;
374
374
  --color-sf-table-bg-color-pressed: #2e2e2e;
375
375
  --color-sf-table-bg-color-selected: #082338;
@@ -711,9 +711,9 @@
711
711
  --color-sf-flyout-bg-color-pressed: var(--color-sf-content-bg-color-hover);
712
712
  --color-sf-flyout-bg-color-selected: var(--color-sf-content-bg-color-hover);
713
713
  --color-sf-flyout-bg-color-focus: var(--color-sf-content-bg-color-hover);
714
- --color-sf-overlay-bg-color: rgba($black, .4);
715
- --color-sf-table-bg-color-hover: var(--color-sf-black);
716
- --color-sf-table-bg-color-pressed: var(--color-sf-black);
714
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
715
+ --color-sf-table-bg-color-hover: #1a3bff;
716
+ --color-sf-table-bg-color-pressed: #1a3bff;
717
717
  --color-sf-table-bg-color-selected: #1a3bff;
718
718
  --color-sf-content-text-color: #fff;
719
719
  --color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
@@ -732,12 +732,12 @@
732
732
  --color-sf-flyout-text-color-selected: var(--color-sf-content-text-color-hover);
733
733
  --color-sf-flyout-text-color-focus: var(--color-sf-content-text-color-hover);
734
734
  --color-sf-flyout-text-color-disabled: var(--color-sf-content-text-color-disabled);
735
- --color-sf-table-text-color-hover: var(--color-sf-content-text-color-hover);
736
- --color-sf-table-text-color-pressed: var(--color-sf-content-text-color-hover);
737
- --color-sf-table-text-color-selected: var(--color-sf-content-text-color-hover);
735
+ --color-sf-table-text-color-hover: #000;
736
+ --color-sf-table-text-color-pressed: #000;
737
+ --color-sf-table-text-color-selected: #000;
738
738
  --color-sf-icon-color: #fff;
739
- --color-sf-icon-color-hover: var(--color-sf-content-text-color-hover);
740
- --color-sf-icon-color-pressed: var(--color-sf-content-text-color-hover);
739
+ --color-sf-icon-color-hover: #000;
740
+ --color-sf-icon-color-pressed: #000;
741
741
  --color-sf-icon-color-disabled: var(--color-sf-content-text-color-disabled);
742
742
  --color-sf-border-light: #fff;
743
743
  --color-sf-border: var(--color-sf-border-light);
@@ -47,7 +47,7 @@
47
47
  --color-sf-flyout-bg-color-pressed: #e0e0e0;
48
48
  --color-sf-flyout-bg-color-selected: #ebebeb;
49
49
  --color-sf-flyout-bg-color-focus: #f5f5f5;
50
- --color-sf-overlay-bg-color: #000;
50
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
51
51
  --color-sf-table-bg-color-hover: #f5f5f5;
52
52
  --color-sf-table-bg-color-pressed: #e0e0e0;
53
53
  --color-sf-table-bg-color-selected: #ebf3fc;
@@ -369,7 +369,7 @@
369
369
  --color-sf-flyout-bg-color-pressed: var(--color-sf-black);
370
370
  --color-sf-flyout-bg-color-selected: #383838;
371
371
  --color-sf-flyout-bg-color-focus: var(--color-sf-flyout-bg-color-hover);
372
- --color-sf-overlay-bg-color: rgba($black, .4);
372
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
373
373
  --color-sf-table-bg-color-hover: #383838;
374
374
  --color-sf-table-bg-color-pressed: #2e2e2e;
375
375
  --color-sf-table-bg-color-selected: #082338;
@@ -711,9 +711,9 @@
711
711
  --color-sf-flyout-bg-color-pressed: var(--color-sf-content-bg-color-hover);
712
712
  --color-sf-flyout-bg-color-selected: var(--color-sf-content-bg-color-hover);
713
713
  --color-sf-flyout-bg-color-focus: var(--color-sf-content-bg-color-hover);
714
- --color-sf-overlay-bg-color: rgba($black, .4);
715
- --color-sf-table-bg-color-hover: var(--color-sf-black);
716
- --color-sf-table-bg-color-pressed: var(--color-sf-black);
714
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
715
+ --color-sf-table-bg-color-hover: #1a3bff;
716
+ --color-sf-table-bg-color-pressed: #1a3bff;
717
717
  --color-sf-table-bg-color-selected: #1a3bff;
718
718
  --color-sf-content-text-color: #fff;
719
719
  --color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
@@ -732,12 +732,12 @@
732
732
  --color-sf-flyout-text-color-selected: var(--color-sf-content-text-color-hover);
733
733
  --color-sf-flyout-text-color-focus: var(--color-sf-content-text-color-hover);
734
734
  --color-sf-flyout-text-color-disabled: var(--color-sf-content-text-color-disabled);
735
- --color-sf-table-text-color-hover: var(--color-sf-content-text-color-hover);
736
- --color-sf-table-text-color-pressed: var(--color-sf-content-text-color-hover);
737
- --color-sf-table-text-color-selected: var(--color-sf-content-text-color-hover);
735
+ --color-sf-table-text-color-hover: #000;
736
+ --color-sf-table-text-color-pressed: #000;
737
+ --color-sf-table-text-color-selected: #000;
738
738
  --color-sf-icon-color: #fff;
739
- --color-sf-icon-color-hover: var(--color-sf-content-text-color-hover);
740
- --color-sf-icon-color-pressed: var(--color-sf-content-text-color-hover);
739
+ --color-sf-icon-color-hover: #000;
740
+ --color-sf-icon-color-pressed: #000;
741
741
  --color-sf-icon-color-disabled: var(--color-sf-content-text-color-disabled);
742
742
  --color-sf-border-light: #fff;
743
743
  --color-sf-border: var(--color-sf-border-light);
@@ -1737,7 +1737,7 @@
1737
1737
  padding: 0 0 0 12px;
1738
1738
  }
1739
1739
  .e-schedule .e-resource-tree-popup-overlay.e-enable {
1740
- background: rgba(var(--color-sf-overlay-bg-color), 0.4);
1740
+ background: var(--color-sf-overlay-bg-color);
1741
1741
  height: 100%;
1742
1742
  left: 0;
1743
1743
  opacity: 0.5;