@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.
- 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 +22 -7
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +22 -7
- 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 +5 -5
- package/src/schedule/actions/resize.js +1 -0
- package/src/schedule/actions/virtual-scroll.js +3 -0
- package/src/schedule/renderer/month.js +9 -7
- package/src/schedule/renderer/view-base.d.ts +2 -0
- package/src/schedule/renderer/view-base.js +9 -0
|
@@ -15208,6 +15208,9 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
15208
15208
|
this.removeObsoleteRows(resWrapRows, currentGroupIndices);
|
|
15209
15209
|
this.removeObsoleteRows(conWrapRows, currentGroupIndices);
|
|
15210
15210
|
var resourceRows = this.parent.resourceBase.getContentRows(resCollection, true);
|
|
15211
|
+
if (this.parent.isReact) {
|
|
15212
|
+
this.parent.renderTemplates();
|
|
15213
|
+
}
|
|
15211
15214
|
var contentRows = this.parent.activeView.getContentRows();
|
|
15212
15215
|
var eventRows = this.parent.activeView.getEventRows(resCollection.length);
|
|
15213
15216
|
for (var i = 0; i < newGroupIndices.length; i++) {
|
|
@@ -22541,6 +22544,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
22541
22544
|
(Math.ceil((targetWidth - cloneWidth) / this.actionObj.cellWidth) * this.actionObj.cellWidth) : offsetLeft);
|
|
22542
22545
|
}
|
|
22543
22546
|
}
|
|
22547
|
+
width = Math.floor(width);
|
|
22544
22548
|
styles.width = formatUnit(width);
|
|
22545
22549
|
return styles;
|
|
22546
22550
|
};
|
|
@@ -24615,6 +24619,8 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
24615
24619
|
*/
|
|
24616
24620
|
function ViewBase(parent) {
|
|
24617
24621
|
this.previousNextAction = 'Next';
|
|
24622
|
+
this.skipPersistenceSave = false;
|
|
24623
|
+
this.isScrolledBottom = false;
|
|
24618
24624
|
this.parent = parent;
|
|
24619
24625
|
}
|
|
24620
24626
|
ViewBase.prototype.isTimelineView = function () {
|
|
@@ -25170,6 +25176,12 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
25170
25176
|
ViewBase.prototype.setPersistence = function () {
|
|
25171
25177
|
if (this.parent.enablePersistence) {
|
|
25172
25178
|
var contentWrap = this.element.querySelector('.e-content-wrap');
|
|
25179
|
+
if (this.parent.virtualScrollModule && this.isScrolledBottom) {
|
|
25180
|
+
this.isScrolledBottom = false;
|
|
25181
|
+
this.skipPersistenceSave = true;
|
|
25182
|
+
contentWrap.scrollTop = this.parent.scrollTop;
|
|
25183
|
+
this.skipPersistenceSave = false;
|
|
25184
|
+
}
|
|
25173
25185
|
if (!isNullOrUndefined(contentWrap)) {
|
|
25174
25186
|
this.parent.scrollLeft = contentWrap.scrollLeft;
|
|
25175
25187
|
this.parent.scrollTop = contentWrap.scrollTop;
|
|
@@ -25180,6 +25192,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
25180
25192
|
if (this.parent.enablePersistence) {
|
|
25181
25193
|
var conWrap = this.parent.element.querySelector('.e-content-wrap');
|
|
25182
25194
|
if (!isNullOrUndefined(conWrap) && !isNullOrUndefined(this.parent.scrollLeft) && !isNullOrUndefined(this.parent.scrollTop)) {
|
|
25195
|
+
this.isScrolledBottom = conWrap.scrollHeight - conWrap.clientHeight < this.parent.scrollTop;
|
|
25183
25196
|
conWrap.scrollTop = this.parent.scrollTop;
|
|
25184
25197
|
conWrap.scrollLeft = this.parent.scrollLeft;
|
|
25185
25198
|
}
|
|
@@ -26320,13 +26333,15 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
26320
26333
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26321
26334
|
Month.prototype.onCellClick = function (event) { };
|
|
26322
26335
|
Month.prototype.onContentScroll = function (e) {
|
|
26323
|
-
this.
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26336
|
+
if (!this.skipPersistenceSave) {
|
|
26337
|
+
this.parent.removeNewEventElement();
|
|
26338
|
+
this.parent.notify(virtualScroll, e);
|
|
26339
|
+
this.scrollTopPanel(e.target);
|
|
26340
|
+
this.scrollLeftPanel(e.target);
|
|
26341
|
+
this.parent.uiStateValues.top = e.target.scrollTop;
|
|
26342
|
+
this.parent.uiStateValues.left = e.target.scrollLeft;
|
|
26343
|
+
this.setPersistence();
|
|
26344
|
+
}
|
|
26330
26345
|
};
|
|
26331
26346
|
Month.prototype.scrollLeftPanel = function (target) {
|
|
26332
26347
|
var leftPanel = this.getLeftPanelElement();
|