@ag-grid-enterprise/server-side-row-model
Advanced tools
Comparing version 28.0.2 to 28.1.0
@@ -47,3 +47,9 @@ "use strict"; | ||
} | ||
this.initialiseRowNodes(); | ||
var initialRowCount = 1; | ||
var isRootStore = this.parentRowNode.level === -1; | ||
var userInitialRowCount = this.gridOptionsWrapper.getServerSideInitialRowCount(); | ||
if (isRootStore && userInitialRowCount !== undefined) { | ||
initialRowCount = userInitialRowCount; | ||
} | ||
this.initialiseRowNodes(initialRowCount); | ||
this.rowNodeBlockLoader.addBlock(this); | ||
@@ -60,3 +66,2 @@ this.addDestroyFunc(function () { return _this.rowNodeBlockLoader.removeBlock(_this); }); | ||
FullStore.prototype.initialiseRowNodes = function (loadingRowsCount, failedLoad) { | ||
if (loadingRowsCount === void 0) { loadingRowsCount = 1; } | ||
if (failedLoad === void 0) { failedLoad = false; } | ||
@@ -63,0 +68,0 @@ this.destroyRowNodes(); |
@@ -50,3 +50,2 @@ "use strict"; | ||
_this.parentRowNode = parentRowNode; | ||
_this.rowCount = InfiniteStore.INITIAL_ROW_COUNT; | ||
return _this; | ||
@@ -56,2 +55,5 @@ } | ||
this.defaultRowHeight = this.gridOptionsWrapper.getRowHeightAsNumber(); | ||
var isRootStore = this.parentRowNode.level === -1; | ||
var initialRowCount = isRootStore ? this.gridOptionsWrapper.getServerSideInitialRowCount() : InfiniteStore.INITIAL_ROW_COUNT; | ||
this.rowCount = initialRowCount; | ||
}; | ||
@@ -58,0 +60,0 @@ InfiniteStore.prototype.destroyAllBlocks = function () { |
@@ -30,3 +30,9 @@ "use strict"; | ||
} | ||
this.initialiseRowNodes(); | ||
let initialRowCount = 1; | ||
const isRootStore = this.parentRowNode.level === -1; | ||
const userInitialRowCount = this.gridOptionsWrapper.getServerSideInitialRowCount(); | ||
if (isRootStore && userInitialRowCount !== undefined) { | ||
initialRowCount = userInitialRowCount; | ||
} | ||
this.initialiseRowNodes(initialRowCount); | ||
this.rowNodeBlockLoader.addBlock(this); | ||
@@ -42,3 +48,3 @@ this.addDestroyFunc(() => this.rowNodeBlockLoader.removeBlock(this)); | ||
} | ||
initialiseRowNodes(loadingRowsCount = 1, failedLoad = false) { | ||
initialiseRowNodes(loadingRowsCount, failedLoad = false) { | ||
this.destroyRowNodes(); | ||
@@ -45,0 +51,0 @@ for (let i = 0; i < loadingRowsCount; i++) { |
@@ -36,6 +36,8 @@ "use strict"; | ||
this.parentRowNode = parentRowNode; | ||
this.rowCount = InfiniteStore.INITIAL_ROW_COUNT; | ||
} | ||
postConstruct() { | ||
this.defaultRowHeight = this.gridOptionsWrapper.getRowHeightAsNumber(); | ||
const isRootStore = this.parentRowNode.level === -1; | ||
const initialRowCount = isRootStore ? this.gridOptionsWrapper.getServerSideInitialRowCount() : InfiniteStore.INITIAL_ROW_COUNT; | ||
this.rowCount = initialRowCount; | ||
} | ||
@@ -42,0 +44,0 @@ destroyAllBlocks() { |
@@ -45,3 +45,9 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
this.initialiseRowNodes(); | ||
var initialRowCount = 1; | ||
var isRootStore = this.parentRowNode.level === -1; | ||
var userInitialRowCount = this.gridOptionsWrapper.getServerSideInitialRowCount(); | ||
if (isRootStore && userInitialRowCount !== undefined) { | ||
initialRowCount = userInitialRowCount; | ||
} | ||
this.initialiseRowNodes(initialRowCount); | ||
this.rowNodeBlockLoader.addBlock(this); | ||
@@ -58,3 +64,2 @@ this.addDestroyFunc(function () { return _this.rowNodeBlockLoader.removeBlock(_this); }); | ||
FullStore.prototype.initialiseRowNodes = function (loadingRowsCount, failedLoad) { | ||
if (loadingRowsCount === void 0) { loadingRowsCount = 1; } | ||
if (failedLoad === void 0) { failedLoad = false; } | ||
@@ -61,0 +66,0 @@ this.destroyRowNodes(); |
@@ -48,3 +48,2 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.parentRowNode = parentRowNode; | ||
_this.rowCount = InfiniteStore.INITIAL_ROW_COUNT; | ||
return _this; | ||
@@ -54,2 +53,5 @@ } | ||
this.defaultRowHeight = this.gridOptionsWrapper.getRowHeightAsNumber(); | ||
var isRootStore = this.parentRowNode.level === -1; | ||
var initialRowCount = isRootStore ? this.gridOptionsWrapper.getServerSideInitialRowCount() : InfiniteStore.INITIAL_ROW_COUNT; | ||
this.rowCount = initialRowCount; | ||
}; | ||
@@ -56,0 +58,0 @@ InfiniteStore.prototype.destroyAllBlocks = function () { |
@@ -28,3 +28,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
this.initialiseRowNodes(); | ||
let initialRowCount = 1; | ||
const isRootStore = this.parentRowNode.level === -1; | ||
const userInitialRowCount = this.gridOptionsWrapper.getServerSideInitialRowCount(); | ||
if (isRootStore && userInitialRowCount !== undefined) { | ||
initialRowCount = userInitialRowCount; | ||
} | ||
this.initialiseRowNodes(initialRowCount); | ||
this.rowNodeBlockLoader.addBlock(this); | ||
@@ -40,3 +46,3 @@ this.addDestroyFunc(() => this.rowNodeBlockLoader.removeBlock(this)); | ||
} | ||
initialiseRowNodes(loadingRowsCount = 1, failedLoad = false) { | ||
initialiseRowNodes(loadingRowsCount, failedLoad = false) { | ||
this.destroyRowNodes(); | ||
@@ -43,0 +49,0 @@ for (let i = 0; i < loadingRowsCount; i++) { |
@@ -34,6 +34,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.parentRowNode = parentRowNode; | ||
this.rowCount = InfiniteStore.INITIAL_ROW_COUNT; | ||
} | ||
postConstruct() { | ||
this.defaultRowHeight = this.gridOptionsWrapper.getRowHeightAsNumber(); | ||
const isRootStore = this.parentRowNode.level === -1; | ||
const initialRowCount = isRootStore ? this.gridOptionsWrapper.getServerSideInitialRowCount() : InfiniteStore.INITIAL_ROW_COUNT; | ||
this.rowCount = initialRowCount; | ||
} | ||
@@ -40,0 +42,0 @@ destroyAllBlocks() { |
{ | ||
"name": "@ag-grid-enterprise/server-side-row-model", | ||
"version": "28.0.2", | ||
"version": "28.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -50,4 +50,4 @@ "main": "./dist/cjs/es5/main.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~28.0.0", | ||
"@ag-grid-enterprise/core": "~28.0.0" | ||
"@ag-grid-community/core": "~28.1.0", | ||
"@ag-grid-enterprise/core": "~28.1.0" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4502897
74212
0
+ Added@ag-grid-community/core@28.1.1(transitive)
+ Added@ag-grid-enterprise/core@28.1.1(transitive)
- Removed@ag-grid-community/core@28.0.2(transitive)
- Removed@ag-grid-enterprise/core@28.0.2(transitive)