@syncfusion/ej2-schedule 30.2.4 → 30.2.7

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 : 30.2.4
3
+ * version : 30.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-schedule",
3
- "version": "30.2.4",
3
+ "version": "30.2.7",
4
4
  "author": "Syncfusion Inc.",
5
5
  "license": "SEE LICENSE IN license",
6
6
  "main": "./dist/ej2-schedule.umd.min.js",
7
7
  "module": "./index.js",
8
8
  "es2015": "./dist/es6/ej2-schedule.es5.js",
9
9
  "dependencies": {
10
- "@syncfusion/ej2-base": "~30.2.4",
10
+ "@syncfusion/ej2-base": "~30.2.6",
11
11
  "@syncfusion/ej2-buttons": "~30.2.4",
12
12
  "@syncfusion/ej2-calendars": "~30.2.4",
13
13
  "@syncfusion/ej2-data": "~30.2.4",
14
- "@syncfusion/ej2-dropdowns": "~30.2.4",
14
+ "@syncfusion/ej2-dropdowns": "~30.2.6",
15
15
  "@syncfusion/ej2-excel-export": "~30.2.4",
16
- "@syncfusion/ej2-inputs": "~30.2.4",
16
+ "@syncfusion/ej2-inputs": "~30.2.6",
17
17
  "@syncfusion/ej2-lists": "~30.2.4",
18
- "@syncfusion/ej2-navigations": "~30.2.4",
18
+ "@syncfusion/ej2-navigations": "~30.2.7",
19
19
  "@syncfusion/ej2-popups": "~30.2.4"
20
20
  },
21
21
  "devDependencies": {},
@@ -581,6 +581,7 @@ var Resize = /** @class */ (function (_super) {
581
581
  (Math.ceil((targetWidth - cloneWidth) / this.actionObj.cellWidth) * this.actionObj.cellWidth) : offsetLeft);
582
582
  }
583
583
  }
584
+ width = Math.floor(width);
584
585
  styles.width = formatUnit(width);
585
586
  return styles;
586
587
  };
@@ -384,6 +384,9 @@ var VirtualScroll = /** @class */ (function () {
384
384
  this.removeObsoleteRows(resWrapRows, currentGroupIndices);
385
385
  this.removeObsoleteRows(conWrapRows, currentGroupIndices);
386
386
  var resourceRows = this.parent.resourceBase.getContentRows(resCollection, true);
387
+ if (this.parent.isReact) {
388
+ this.parent.renderTemplates();
389
+ }
387
390
  var contentRows = this.parent.activeView.getContentRows();
388
391
  var eventRows = this.parent.activeView.getEventRows(resCollection.length);
389
392
  for (var i = 0; i < newGroupIndices.length; i++) {
@@ -53,13 +53,15 @@ var Month = /** @class */ (function (_super) {
53
53
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
54
  Month.prototype.onCellClick = function (event) { };
55
55
  Month.prototype.onContentScroll = function (e) {
56
- this.parent.removeNewEventElement();
57
- this.parent.notify(event.virtualScroll, e);
58
- this.scrollTopPanel(e.target);
59
- this.scrollLeftPanel(e.target);
60
- this.parent.uiStateValues.top = e.target.scrollTop;
61
- this.parent.uiStateValues.left = e.target.scrollLeft;
62
- this.setPersistence();
56
+ if (!this.skipPersistenceSave) {
57
+ this.parent.removeNewEventElement();
58
+ this.parent.notify(event.virtualScroll, e);
59
+ this.scrollTopPanel(e.target);
60
+ this.scrollLeftPanel(e.target);
61
+ this.parent.uiStateValues.top = e.target.scrollTop;
62
+ this.parent.uiStateValues.left = e.target.scrollLeft;
63
+ this.setPersistence();
64
+ }
63
65
  };
64
66
  Month.prototype.scrollLeftPanel = function (target) {
65
67
  var leftPanel = this.getLeftPanelElement();
@@ -11,6 +11,8 @@ export declare class ViewBase {
11
11
  renderDates: Date[];
12
12
  colLevels: TdData[][];
13
13
  viewIndex: number;
14
+ skipPersistenceSave: boolean;
15
+ isScrolledBottom: boolean;
14
16
  /**
15
17
  * Constructor
16
18
  *
@@ -13,6 +13,8 @@ var ViewBase = /** @class */ (function () {
13
13
  */
14
14
  function ViewBase(parent) {
15
15
  this.previousNextAction = 'Next';
16
+ this.skipPersistenceSave = false;
17
+ this.isScrolledBottom = false;
16
18
  this.parent = parent;
17
19
  }
18
20
  ViewBase.prototype.isTimelineView = function () {
@@ -568,6 +570,12 @@ var ViewBase = /** @class */ (function () {
568
570
  ViewBase.prototype.setPersistence = function () {
569
571
  if (this.parent.enablePersistence) {
570
572
  var contentWrap = this.element.querySelector('.e-content-wrap');
573
+ if (this.parent.virtualScrollModule && this.isScrolledBottom) {
574
+ this.isScrolledBottom = false;
575
+ this.skipPersistenceSave = true;
576
+ contentWrap.scrollTop = this.parent.scrollTop;
577
+ this.skipPersistenceSave = false;
578
+ }
571
579
  if (!isNullOrUndefined(contentWrap)) {
572
580
  this.parent.scrollLeft = contentWrap.scrollLeft;
573
581
  this.parent.scrollTop = contentWrap.scrollTop;
@@ -578,6 +586,7 @@ var ViewBase = /** @class */ (function () {
578
586
  if (this.parent.enablePersistence) {
579
587
  var conWrap = this.parent.element.querySelector('.e-content-wrap');
580
588
  if (!isNullOrUndefined(conWrap) && !isNullOrUndefined(this.parent.scrollLeft) && !isNullOrUndefined(this.parent.scrollTop)) {
589
+ this.isScrolledBottom = conWrap.scrollHeight - conWrap.clientHeight < this.parent.scrollTop;
581
590
  conWrap.scrollTop = this.parent.scrollTop;
582
591
  conWrap.scrollLeft = this.parent.scrollLeft;
583
592
  }