@ag-grid-enterprise/server-side-row-model
Advanced tools
Comparing version 31.0.1 to 31.0.2
@@ -90,2 +90,3 @@ "use strict"; | ||
var _this = this; | ||
var treeData = this.gridOptionsService.get('treeData'); | ||
var recursivelySerializeState = function (state, level, nodeId) { | ||
@@ -95,3 +96,3 @@ var normalisedState = { | ||
}; | ||
if (level <= _this.columnModel.getRowGroupColumns().length) { | ||
if (treeData || level <= _this.columnModel.getRowGroupColumns().length) { | ||
normalisedState.selectAllChildren = state.selectAllChildren; | ||
@@ -98,0 +99,0 @@ } |
@@ -21,2 +21,3 @@ import { BeanStub, ChangedPath, ISelectionService, RowNode, SelectionEventSourceType, ISetNodesSelectedParams, ServerSideRowSelectionState, ServerSideRowGroupSelectionState } from "@ag-grid-community/core"; | ||
isEmpty(): boolean; | ||
hasNodesToSelect(justFiltered?: boolean, justCurrentPage?: boolean): boolean; | ||
selectAllRowNodes(params: { | ||
@@ -23,0 +24,0 @@ source: SelectionEventSourceType; |
@@ -180,2 +180,7 @@ "use strict"; | ||
}; | ||
ServerSideSelectionService.prototype.hasNodesToSelect = function (justFiltered, justCurrentPage) { | ||
if (justFiltered === void 0) { justFiltered = false; } | ||
if (justCurrentPage === void 0) { justCurrentPage = false; } | ||
return true; | ||
}; | ||
ServerSideSelectionService.prototype.selectAllRowNodes = function (params) { | ||
@@ -182,0 +187,0 @@ if (params.justCurrentPage || params.justFiltered) { |
@@ -153,11 +153,8 @@ "use strict"; | ||
}; | ||
var params = { | ||
var params = this.gridOptionsService.addGridCommonParams({ | ||
request: request, | ||
success: success, | ||
fail: fail, | ||
parentNode: this.parentNode, | ||
api: this.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: this.parentNode | ||
}); | ||
addNodesToLoadingMap(); | ||
@@ -164,0 +161,0 @@ (_a = this.cache.getSsrmParams().datasource) === null || _a === void 0 ? void 0 : _a.getRows(params); |
@@ -632,3 +632,3 @@ "use strict"; | ||
var _this = this; | ||
if (this.getRowIdFunc != null) { | ||
if (this.getRowIdFunc == null) { | ||
return []; | ||
@@ -686,6 +686,2 @@ } | ||
}); | ||
var finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
if (response.rowCount != undefined && response.rowCount !== -1) { | ||
@@ -714,2 +710,7 @@ // if the rowCount has been provided, set the row count | ||
this.fireStoreUpdatedEvent(); | ||
// Happens after store updated, as store updating can clear our excess rows. | ||
var finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
}; | ||
@@ -716,0 +717,0 @@ LazyCache.prototype.fireRefreshFinishedEvent = function () { |
@@ -48,11 +48,8 @@ "use strict"; | ||
}; | ||
var getRowsParams = { | ||
var getRowsParams = this.gridOptionsService.addGridCommonParams({ | ||
success: p.success, | ||
fail: p.fail, | ||
request: request, | ||
parentNode: p.parentNode, | ||
api: this.gridOptionsService.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: p.parentNode | ||
}); | ||
window.setTimeout(function () { | ||
@@ -59,0 +56,0 @@ if (!storeParams.datasource || !parentBlock.isAlive()) { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.0.1"; | ||
export declare const VERSION = "31.0.2"; |
@@ -5,2 +5,2 @@ "use strict"; | ||
// DO NOT UPDATE MANUALLY: Generated from script during build time | ||
exports.VERSION = '31.0.1'; | ||
exports.VERSION = '31.0.2'; |
@@ -35,2 +35,3 @@ "use strict"; | ||
getSelectedState() { | ||
const treeData = this.gridOptionsService.get('treeData'); | ||
const recursivelySerializeState = (state, level, nodeId) => { | ||
@@ -40,3 +41,3 @@ const normalisedState = { | ||
}; | ||
if (level <= this.columnModel.getRowGroupColumns().length) { | ||
if (treeData || level <= this.columnModel.getRowGroupColumns().length) { | ||
normalisedState.selectAllChildren = state.selectAllChildren; | ||
@@ -43,0 +44,0 @@ } |
@@ -21,2 +21,3 @@ import { BeanStub, ChangedPath, ISelectionService, RowNode, SelectionEventSourceType, ISetNodesSelectedParams, ServerSideRowSelectionState, ServerSideRowGroupSelectionState } from "@ag-grid-community/core"; | ||
isEmpty(): boolean; | ||
hasNodesToSelect(justFiltered?: boolean, justCurrentPage?: boolean): boolean; | ||
selectAllRowNodes(params: { | ||
@@ -23,0 +24,0 @@ source: SelectionEventSourceType; |
@@ -148,2 +148,5 @@ "use strict"; | ||
} | ||
hasNodesToSelect(justFiltered = false, justCurrentPage = false) { | ||
return true; | ||
} | ||
selectAllRowNodes(params) { | ||
@@ -150,0 +153,0 @@ if (params.justCurrentPage || params.justFiltered) { |
@@ -117,11 +117,8 @@ "use strict"; | ||
}; | ||
const params = { | ||
const params = this.gridOptionsService.addGridCommonParams({ | ||
request, | ||
success, | ||
fail, | ||
parentNode: this.parentNode, | ||
api: this.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: this.parentNode | ||
}); | ||
addNodesToLoadingMap(); | ||
@@ -128,0 +125,0 @@ (_a = this.cache.getSsrmParams().datasource) === null || _a === void 0 ? void 0 : _a.getRows(params); |
@@ -577,3 +577,3 @@ "use strict"; | ||
extractDuplicateIds(rows) { | ||
if (this.getRowIdFunc != null) { | ||
if (this.getRowIdFunc == null) { | ||
return []; | ||
@@ -630,6 +630,2 @@ } | ||
}); | ||
const finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
if (response.rowCount != undefined && response.rowCount !== -1) { | ||
@@ -658,2 +654,7 @@ // if the rowCount has been provided, set the row count | ||
this.fireStoreUpdatedEvent(); | ||
// Happens after store updated, as store updating can clear our excess rows. | ||
const finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
} | ||
@@ -660,0 +661,0 @@ fireRefreshFinishedEvent() { |
@@ -29,11 +29,8 @@ "use strict"; | ||
}; | ||
const getRowsParams = { | ||
const getRowsParams = this.gridOptionsService.addGridCommonParams({ | ||
success: p.success, | ||
fail: p.fail, | ||
request: request, | ||
parentNode: p.parentNode, | ||
api: this.gridOptionsService.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: p.parentNode | ||
}); | ||
window.setTimeout(() => { | ||
@@ -40,0 +37,0 @@ if (!storeParams.datasource || !parentBlock.isAlive()) { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.0.1"; | ||
export declare const VERSION = "31.0.2"; |
@@ -5,2 +5,2 @@ "use strict"; | ||
// DO NOT UPDATE MANUALLY: Generated from script during build time | ||
exports.VERSION = '31.0.1'; | ||
exports.VERSION = '31.0.2'; |
@@ -87,2 +87,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = this; | ||
var treeData = this.gridOptionsService.get('treeData'); | ||
var recursivelySerializeState = function (state, level, nodeId) { | ||
@@ -92,3 +93,3 @@ var normalisedState = { | ||
}; | ||
if (level <= _this.columnModel.getRowGroupColumns().length) { | ||
if (treeData || level <= _this.columnModel.getRowGroupColumns().length) { | ||
normalisedState.selectAllChildren = state.selectAllChildren; | ||
@@ -95,0 +96,0 @@ } |
@@ -21,2 +21,3 @@ import { BeanStub, ChangedPath, ISelectionService, RowNode, SelectionEventSourceType, ISetNodesSelectedParams, ServerSideRowSelectionState, ServerSideRowGroupSelectionState } from "@ag-grid-community/core"; | ||
isEmpty(): boolean; | ||
hasNodesToSelect(justFiltered?: boolean, justCurrentPage?: boolean): boolean; | ||
selectAllRowNodes(params: { | ||
@@ -23,0 +24,0 @@ source: SelectionEventSourceType; |
@@ -177,2 +177,7 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
ServerSideSelectionService.prototype.hasNodesToSelect = function (justFiltered, justCurrentPage) { | ||
if (justFiltered === void 0) { justFiltered = false; } | ||
if (justCurrentPage === void 0) { justCurrentPage = false; } | ||
return true; | ||
}; | ||
ServerSideSelectionService.prototype.selectAllRowNodes = function (params) { | ||
@@ -179,0 +184,0 @@ if (params.justCurrentPage || params.justFiltered) { |
@@ -150,11 +150,8 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
var params = { | ||
var params = this.gridOptionsService.addGridCommonParams({ | ||
request: request, | ||
success: success, | ||
fail: fail, | ||
parentNode: this.parentNode, | ||
api: this.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: this.parentNode | ||
}); | ||
addNodesToLoadingMap(); | ||
@@ -161,0 +158,0 @@ (_a = this.cache.getSsrmParams().datasource) === null || _a === void 0 ? void 0 : _a.getRows(params); |
@@ -629,3 +629,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = this; | ||
if (this.getRowIdFunc != null) { | ||
if (this.getRowIdFunc == null) { | ||
return []; | ||
@@ -683,6 +683,2 @@ } | ||
}); | ||
var finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
if (response.rowCount != undefined && response.rowCount !== -1) { | ||
@@ -711,2 +707,7 @@ // if the rowCount has been provided, set the row count | ||
this.fireStoreUpdatedEvent(); | ||
// Happens after store updated, as store updating can clear our excess rows. | ||
var finishedRefreshing = this.nodesToRefresh.size === 0; | ||
if (wasRefreshing && finishedRefreshing) { | ||
this.fireRefreshFinishedEvent(); | ||
} | ||
}; | ||
@@ -713,0 +714,0 @@ LazyCache.prototype.fireRefreshFinishedEvent = function () { |
@@ -45,11 +45,8 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
var getRowsParams = { | ||
var getRowsParams = this.gridOptionsService.addGridCommonParams({ | ||
success: p.success, | ||
fail: p.fail, | ||
request: request, | ||
parentNode: p.parentNode, | ||
api: this.gridOptionsService.api, | ||
columnApi: this.gridOptionsService.columnApi, | ||
context: this.gridOptionsService.context | ||
}; | ||
parentNode: p.parentNode | ||
}); | ||
window.setTimeout(function () { | ||
@@ -56,0 +53,0 @@ if (!storeParams.datasource || !parentBlock.isAlive()) { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.0.1"; | ||
export declare const VERSION = "31.0.2"; |
// DO NOT UPDATE MANUALLY: Generated from script during build time | ||
export var VERSION = '31.0.1'; | ||
export var VERSION = '31.0.2'; |
@@ -21,2 +21,3 @@ import { BeanStub, ChangedPath, ISelectionService, RowNode, SelectionEventSourceType, ISetNodesSelectedParams, ServerSideRowSelectionState, ServerSideRowGroupSelectionState } from "@ag-grid-community/core"; | ||
isEmpty(): boolean; | ||
hasNodesToSelect(justFiltered?: boolean, justCurrentPage?: boolean): boolean; | ||
selectAllRowNodes(params: { | ||
@@ -23,0 +24,0 @@ source: SelectionEventSourceType; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.0.1"; | ||
export declare const VERSION = "31.0.2"; |
{ | ||
"name": "@ag-grid-enterprise/server-side-row-model", | ||
"version": "31.0.1", | ||
"version": "31.0.2", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -49,4 +49,4 @@ "main": "./dist/esm/es6/main.mjs", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~31.0.1", | ||
"@ag-grid-enterprise/core": "~31.0.1" | ||
"@ag-grid-community/core": "~31.0.2", | ||
"@ag-grid-enterprise/core": "~31.0.2" | ||
}, | ||
@@ -53,0 +53,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
4949472
86946