New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ag-grid-enterprise/server-side-row-model

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/server-side-row-model - npm Package Compare versions

Comparing version 25.0.1 to 25.1.0

17

CONTRIBUTING.md

@@ -1,6 +0,6 @@

# Contributing to ag-Grid-Enterprise
# Contributing to AG Grid Enterprise
ag-Grid-Enterprise is copyright commercial software. If you provide a PR, you must also state that you agree to the following:
AG Grid Enterprise is copyright commercial software. If you provide a PR, you must also state that you agree to the following:
Retention of Intellectual Property Rights for ag-Grid-Enterprise component
Retention of Intellectual Property Rights for AG Grid Enterprise component
==============

@@ -11,3 +11,3 @@

“the Software” means the ag-Grid-Enterprise software as location the the repository
“the Software” means the AG Grid Enterprise software as location the the repository
https://github.com/ag-grid/ag-grid-enterprise.

@@ -37,8 +37,7 @@

Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/ag-grid) where the questions should be tagged with tag `ag-grig`,
or on our [Forum](https://ag-grid.com/forum)
Please, do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/ag-grid) where the questions should be tagged with tag `ag-grid`.
If you're using the Enterprise version of ag-Grid (ag-grid-enterprise), then the [Members Forum](https://ag-grid.com/forum/forumdisplay.php?fid=5) is the best place to ask - you'll get a much quicker response there. Please contact accounts@ag-grid.com for access.
If you're using the Enterprise version of AG Grid (ag-grid-enterprise), then you should use our [Support Portal](https://ag-grid.zendesk.com/) - you'll get a much quicker response there. Please contact accounts@ag-grid.com for access.
To save your and our time we will be systematically closing all the issues that are requests for general support (for ag-Grid Free) and redirecting people to StackOverflow.
To save your and our time we will be systematically closing all the issues that are requests for general support (for AG Grid Community) and redirecting people to StackOverflow.

@@ -61,3 +60,3 @@ ## <a name="issue"></a> Found a Bug?

- version of ag-Grid-Enterprise used
- version of AG Grid Enterprise used
- 3rd-party libraries and their versions

@@ -64,0 +63,0 @@ - and most importantly - a use-case that fails

@@ -29,5 +29,5 @@ import { RowBounds, BeanStub, Column, RowNode, NumberSequence } from "@ag-grid-community/core";

extractRowBounds(rowNode: RowNode, index: number): RowBounds | undefined;
getIndexAtPixel(rowNode: RowNode, pixel: number): number | undefined;
getIndexAtPixel(rowNode: RowNode, pixel: number): number | null;
createNodeIdPrefix(parentRowNode: RowNode): string | undefined;
checkOpenByDefault(rowNode: RowNode): void;
}

@@ -63,3 +63,3 @@ "use strict";

// rowNode should have a flag on whether it is visible???
rowNode.clearRowTop();
rowNode.clearRowTopAndRowIndex();
if (rowNode.id != null) {

@@ -143,4 +143,3 @@ this.nodeManager.removeNode(rowNode);

BlockUtils.prototype.clearDisplayIndex = function (rowNode) {
rowNode.clearRowTop();
rowNode.setRowIndex();
rowNode.clearRowTopAndRowIndex();
var hasChildStore = rowNode.group && core_1._.exists(rowNode.childStore);

@@ -153,4 +152,3 @@ if (hasChildStore) {

if (hasDetailNode) {
rowNode.detailNode.clearRowTop();
rowNode.detailNode.setRowIndex();
rowNode.detailNode.clearRowTopAndRowIndex();
}

@@ -172,4 +170,3 @@ };

else if (rowNode.detailNode) {
rowNode.detailNode.clearRowTop();
rowNode.detailNode.setRowIndex();
rowNode.detailNode.clearRowTopAndRowIndex();
}

@@ -223,3 +220,3 @@ }

else {
console.warn("ag-Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
return null;

@@ -266,2 +263,3 @@ }

}
return null;
// pixel is not within this row node or it's children / detail, so return undefined

@@ -268,0 +266,0 @@ };

@@ -70,3 +70,3 @@ import { LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowNodeBlock, ServerSideStoreParams } from "@ag-grid-community/core";

getRowBounds(index: number): RowBounds | undefined;
getRowIndexAtPixel(pixel: number): number | undefined;
getRowIndexAtPixel(pixel: number): number | null;
clearDisplayIndexes(): void;

@@ -73,0 +73,0 @@ setDisplayIndexes(displayIndexSeq: NumberSequence, nextRowTop: {

@@ -236,3 +236,3 @@ "use strict";

this.touchLastAccessed();
var res;
var res = null;
core_1._.find(this.rowNodes, function (rowNode) {

@@ -239,0 +239,0 @@ res = _this.blockUtils.getIndexAtPixel(rowNode, pixel);

@@ -38,3 +38,3 @@ "use strict";

var storeParams = this.serverSideRowModel.getParams();
var oldModel = storeParams.filterModel;
var oldModel = storeParams ? storeParams.filterModel : {};
var changedColumns = this.findChangedColumns(newModel, oldModel);

@@ -41,0 +41,0 @@ var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);

@@ -17,3 +17,3 @@ "use strict";

if (this.rowNodes[id]) {
console.warn('ag-Grid: duplicate node id ' + rowNode.id);
console.warn('AG Grid: duplicate node id ' + rowNode.id);
console.warn('first instance', this.rowNodes[id].data);

@@ -20,0 +20,0 @@ console.warn('second instance', rowNode.data);

@@ -65,3 +65,3 @@ import { IServerSideStore, LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowNodeBlock, ServerSideStoreParams, ServerSideStoreState, ServerSideTransaction, ServerSideTransactionResult, StoreRefreshAfterParams } from "@ag-grid-community/core";

isPixelInRange(pixel: number): boolean;
getRowIndexAtPixel(pixel: number): number | undefined;
getRowIndexAtPixel(pixel: number): number | null;
getChildStore(keys: string[]): IServerSideStore | null;

@@ -68,0 +68,0 @@ private forEachChildStoreShallow;

@@ -141,3 +141,3 @@ "use strict";

if (!params.rowData) {
var message_1 = 'ag-Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
var message_1 = 'AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
core_1._.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');

@@ -299,7 +299,5 @@ }

}
else {
return lastRowNode.rowIndex;
}
return lastRowNode.rowIndex;
}
var res;
var res = null;
this.nodesAfterSort.forEach(function (rowNode) {

@@ -437,3 +435,3 @@ var res2 = _this.blockUtils.getIndexAtPixel(rowNode, pixel);

// so row renderer knows to fade row out (and not reposition it)
rowNode.clearRowTop();
rowNode.clearRowTopAndRowIndex();
// NOTE: were we could remove from allLeaveChildren, however _.removeFromArray() is expensive, especially

@@ -474,3 +472,3 @@ // if called multiple times (eg deleting lots of rows) and if allLeafChildren is a large list

if (!rowNode) {
console.error("ag-Grid: could not find row id=" + id + ", data item was not found for this id");
console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
return null;

@@ -483,3 +481,3 @@ }

if (!rowNode) {
console.error("ag-Grid: could not find data item as object was not found", data);
console.error("AG Grid: could not find data item as object was not found", data);
return null;

@@ -486,0 +484,0 @@ }

@@ -12,2 +12,3 @@ import { BeanStub, IServerSideStore, LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowRenderer, ServerSideStoreParams, ServerSideStoreState, ServerSideTransaction, ServerSideTransactionResult, StoreRefreshAfterParams } from "@ag-grid-community/core";

private columnController;
private focusController;
private readonly ssrmParams;

@@ -38,2 +39,3 @@ private readonly storeParams;

private purgeBlocksIfNeeded;
private isBlockFocused;
private isBlockCurrentlyDisplayed;

@@ -40,0 +42,0 @@ removeDuplicateNode(id: string): void;

@@ -82,3 +82,3 @@ "use strict";

if (!params.rowData) {
var message_1 = 'ag-Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
var message_1 = 'AG Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
core_1._.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');

@@ -130,2 +130,6 @@ }

}
// don't want to loose keyboard focus, so keyboard navigation can continue. so keep focused blocks.
if (_this.isBlockFocused(block)) {
return;
}
// at this point, block is not needed, and no open nodes, so burn baby burn

@@ -136,2 +140,18 @@ _this.destroyBlock(block);

};
PartialStore.prototype.isBlockFocused = function (block) {
var focusedCell = this.focusController.getFocusCellToUseAfterRefresh();
if (!focusedCell) {
return false;
}
if (focusedCell.rowPinned != null) {
return false;
}
var blockIndexStart = block.getDisplayIndexStart();
var blockIndexEnd = block.getDisplayIndexEnd();
if (blockIndexEnd == null || blockIndexStart == null) {
return false;
}
var hasFocus = focusedCell.rowIndex >= blockIndexStart && focusedCell.rowIndex < blockIndexEnd;
return hasFocus;
};
PartialStore.prototype.isBlockCurrentlyDisplayed = function (block) {

@@ -604,2 +624,5 @@ var startIndex = block.getDisplayIndexStart();

__decorate([
core_1.Autowired("focusController")
], PartialStore.prototype, "focusController", void 0);
__decorate([
core_1.PostConstruct

@@ -606,0 +629,0 @@ ], PartialStore.prototype, "postConstruct", null);

@@ -45,3 +45,3 @@ "use strict";

if (ssrmParams.dynamicRowHeight) {
var message_1 = 'ag-Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';

@@ -52,3 +52,3 @@ core_1._.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');

if (this.columnController.isAutoRowHeightActive()) {
var message_2 = 'ag-Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';

@@ -101,3 +101,3 @@ core_1._.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');

var types = Object.keys(core_1.ServerSideStoreType).join(', ');
console.warn("ag-Grid: invalid Server Side Store Type " + storeType + ", valid types are [" + types + "]");
console.warn("AG Grid: invalid Server Side Store Type " + storeType + ", valid types are [" + types + "]");
return core_1.ServerSideStoreType.Partial;

@@ -104,0 +104,0 @@ }

@@ -29,5 +29,5 @@ import { RowBounds, BeanStub, Column, RowNode, NumberSequence } from "@ag-grid-community/core";

extractRowBounds(rowNode: RowNode, index: number): RowBounds | undefined;
getIndexAtPixel(rowNode: RowNode, pixel: number): number | undefined;
getIndexAtPixel(rowNode: RowNode, pixel: number): number | null;
createNodeIdPrefix(parentRowNode: RowNode): string | undefined;
checkOpenByDefault(rowNode: RowNode): void;
}

@@ -61,3 +61,3 @@ var __extends = (this && this.__extends) || (function () {

// rowNode should have a flag on whether it is visible???
rowNode.clearRowTop();
rowNode.clearRowTopAndRowIndex();
if (rowNode.id != null) {

@@ -141,4 +141,3 @@ this.nodeManager.removeNode(rowNode);

BlockUtils.prototype.clearDisplayIndex = function (rowNode) {
rowNode.clearRowTop();
rowNode.setRowIndex();
rowNode.clearRowTopAndRowIndex();
var hasChildStore = rowNode.group && _.exists(rowNode.childStore);

@@ -151,4 +150,3 @@ if (hasChildStore) {

if (hasDetailNode) {
rowNode.detailNode.clearRowTop();
rowNode.detailNode.setRowIndex();
rowNode.detailNode.clearRowTopAndRowIndex();
}

@@ -170,4 +168,3 @@ };

else if (rowNode.detailNode) {
rowNode.detailNode.clearRowTop();
rowNode.detailNode.setRowIndex();
rowNode.detailNode.clearRowTopAndRowIndex();
}

@@ -221,3 +218,3 @@ }

else {
console.warn("ag-Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
return null;

@@ -264,2 +261,3 @@ }

}
return null;
// pixel is not within this row node or it's children / detail, so return undefined

@@ -266,0 +264,0 @@ };

@@ -70,3 +70,3 @@ import { LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowNodeBlock, ServerSideStoreParams } from "@ag-grid-community/core";

getRowBounds(index: number): RowBounds | undefined;
getRowIndexAtPixel(pixel: number): number | undefined;
getRowIndexAtPixel(pixel: number): number | null;
clearDisplayIndexes(): void;

@@ -73,0 +73,0 @@ setDisplayIndexes(displayIndexSeq: NumberSequence, nextRowTop: {

@@ -234,3 +234,3 @@ var __extends = (this && this.__extends) || (function () {

this.touchLastAccessed();
var res;
var res = null;
_.find(this.rowNodes, function (rowNode) {

@@ -237,0 +237,0 @@ res = _this.blockUtils.getIndexAtPixel(rowNode, pixel);

@@ -36,3 +36,3 @@ var __extends = (this && this.__extends) || (function () {

var storeParams = this.serverSideRowModel.getParams();
var oldModel = storeParams.filterModel;
var oldModel = storeParams ? storeParams.filterModel : {};
var changedColumns = this.findChangedColumns(newModel, oldModel);

@@ -39,0 +39,0 @@ var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);

@@ -15,3 +15,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

if (this.rowNodes[id]) {
console.warn('ag-Grid: duplicate node id ' + rowNode.id);
console.warn('AG Grid: duplicate node id ' + rowNode.id);
console.warn('first instance', this.rowNodes[id].data);

@@ -18,0 +18,0 @@ console.warn('second instance', rowNode.data);

@@ -65,3 +65,3 @@ import { IServerSideStore, LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowNodeBlock, ServerSideStoreParams, ServerSideStoreState, ServerSideTransaction, ServerSideTransactionResult, StoreRefreshAfterParams } from "@ag-grid-community/core";

isPixelInRange(pixel: number): boolean;
getRowIndexAtPixel(pixel: number): number | undefined;
getRowIndexAtPixel(pixel: number): number | null;
getChildStore(keys: string[]): IServerSideStore | null;

@@ -68,0 +68,0 @@ private forEachChildStoreShallow;

@@ -139,3 +139,3 @@ var __extends = (this && this.__extends) || (function () {

if (!params.rowData) {
var message_1 = 'ag-Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
var message_1 = 'AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
_.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');

@@ -297,7 +297,5 @@ }

}
else {
return lastRowNode.rowIndex;
}
return lastRowNode.rowIndex;
}
var res;
var res = null;
this.nodesAfterSort.forEach(function (rowNode) {

@@ -435,3 +433,3 @@ var res2 = _this.blockUtils.getIndexAtPixel(rowNode, pixel);

// so row renderer knows to fade row out (and not reposition it)
rowNode.clearRowTop();
rowNode.clearRowTopAndRowIndex();
// NOTE: were we could remove from allLeaveChildren, however _.removeFromArray() is expensive, especially

@@ -472,3 +470,3 @@ // if called multiple times (eg deleting lots of rows) and if allLeafChildren is a large list

if (!rowNode) {
console.error("ag-Grid: could not find row id=" + id + ", data item was not found for this id");
console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
return null;

@@ -481,3 +479,3 @@ }

if (!rowNode) {
console.error("ag-Grid: could not find data item as object was not found", data);
console.error("AG Grid: could not find data item as object was not found", data);
return null;

@@ -484,0 +482,0 @@ }

@@ -12,2 +12,3 @@ import { BeanStub, IServerSideStore, LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowRenderer, ServerSideStoreParams, ServerSideStoreState, ServerSideTransaction, ServerSideTransactionResult, StoreRefreshAfterParams } from "@ag-grid-community/core";

private columnController;
private focusController;
private readonly ssrmParams;

@@ -38,2 +39,3 @@ private readonly storeParams;

private purgeBlocksIfNeeded;
private isBlockFocused;
private isBlockCurrentlyDisplayed;

@@ -40,0 +42,0 @@ removeDuplicateNode(id: string): void;

@@ -80,3 +80,3 @@ var __extends = (this && this.__extends) || (function () {

if (!params.rowData) {
var message_1 = 'ag-Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
var message_1 = 'AG Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
_.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');

@@ -128,2 +128,6 @@ }

}
// don't want to loose keyboard focus, so keyboard navigation can continue. so keep focused blocks.
if (_this.isBlockFocused(block)) {
return;
}
// at this point, block is not needed, and no open nodes, so burn baby burn

@@ -134,2 +138,18 @@ _this.destroyBlock(block);

};
PartialStore.prototype.isBlockFocused = function (block) {
var focusedCell = this.focusController.getFocusCellToUseAfterRefresh();
if (!focusedCell) {
return false;
}
if (focusedCell.rowPinned != null) {
return false;
}
var blockIndexStart = block.getDisplayIndexStart();
var blockIndexEnd = block.getDisplayIndexEnd();
if (blockIndexEnd == null || blockIndexStart == null) {
return false;
}
var hasFocus = focusedCell.rowIndex >= blockIndexStart && focusedCell.rowIndex < blockIndexEnd;
return hasFocus;
};
PartialStore.prototype.isBlockCurrentlyDisplayed = function (block) {

@@ -602,2 +622,5 @@ var startIndex = block.getDisplayIndexStart();

__decorate([
Autowired("focusController")
], PartialStore.prototype, "focusController", void 0);
__decorate([
PostConstruct

@@ -604,0 +627,0 @@ ], PartialStore.prototype, "postConstruct", null);

@@ -43,3 +43,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

if (ssrmParams.dynamicRowHeight) {
var message_1 = 'ag-Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';

@@ -50,3 +50,3 @@ _.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');

if (this.columnController.isAutoRowHeightActive()) {
var message_2 = 'ag-Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';

@@ -99,3 +99,3 @@ _.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');

var types = Object.keys(ServerSideStoreType).join(', ');
console.warn("ag-Grid: invalid Server Side Store Type " + storeType + ", valid types are [" + types + "]");
console.warn("AG Grid: invalid Server Side Store Type " + storeType + ", valid types are [" + types + "]");
return ServerSideStoreType.Partial;

@@ -102,0 +102,0 @@ }

{
"name": "@ag-grid-enterprise/server-side-row-model",
"version": "25.0.1",
"version": "25.1.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components",

@@ -45,4 +45,4 @@ "main": "./dist/cjs/main.js",

"dependencies": {
"@ag-grid-community/core": "~25.0.0",
"@ag-grid-enterprise/core": "~25.0.0"
"@ag-grid-community/core": "~25.1.0",
"@ag-grid-enterprise/core": "~25.1.0"
},

@@ -49,0 +49,0 @@ "devDependencies": {

@@ -1,6 +0,5 @@

ag-Grid-Enterprise
AG Grid Enterprise
==============
This project contains ag-Grid-Enterprise features.
This project contains AG Grid Enterprise features.

@@ -24,3 +23,3 @@ See [www.ag-grid.com](http://www.ag-grid.com) for an overview and full documentation.

If you are an Enterprise customer (or are Evaluating ag-Grid Enterprise) and wish to report a Bug or raise a new Feature Request please do so on our [Members Forum](https://ag-grid.com/forum/forumdisplay.php?fid=5).
If you are an Enterprise customer (or are evaluating AG Grid Enterprise) and wish to report a Bug or raise a new Feature Request please do so on our [Support Portal](https://ag-grid.zendesk.com/).

@@ -27,0 +26,0 @@ To Sign Up:

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc