Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ag-grid-enterprise/viewport-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/viewport-row-model - npm Package Compare versions

Comparing version 23.1.1 to 23.2.0

8

dist/cjs/viewportRowModel/viewportRowModel.d.ts

@@ -1,7 +0,4 @@

import { IRowModel, RowNode, IViewportDatasource, RowBounds } from "@ag-grid-community/core";
export declare class ViewportRowModel implements IRowModel {
import { BeanStub, IRowModel, IViewportDatasource, RowBounds, RowNode } from "@ag-grid-community/core";
export declare class ViewportRowModel extends BeanStub implements IRowModel {
private gridOptionsWrapper;
private eventService;
private selectionController;
private context;
private gridApi;

@@ -16,3 +13,2 @@ private columnApi;

private viewportDatasource;
private events;
ensureRowHeightsValid(startPixel: number, endPixel: number, startLimitIndex: number, endLimitIndex: number): boolean;

@@ -19,0 +15,0 @@ private init;

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -10,11 +23,13 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

var core_1 = require("@ag-grid-community/core");
var ViewportRowModel = /** @class */ (function () {
var ViewportRowModel = /** @class */ (function (_super) {
__extends(ViewportRowModel, _super);
function ViewportRowModel() {
var _this = _super !== null && _super.apply(this, arguments) || this;
// rowRenderer tells us these
this.firstRow = -1;
this.lastRow = -1;
_this.firstRow = -1;
_this.lastRow = -1;
// datasource tells us this
this.rowCount = -1;
this.rowNodesByIndex = {};
this.events = [];
_this.rowCount = -1;
_this.rowNodesByIndex = {};
return _this;
}

@@ -25,5 +40,3 @@ // we don't implement as lazy row heights is not supported in this row model

this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();
this.events = [
this.eventService.addEventListener(core_1.Events.EVENT_VIEWPORT_CHANGED, this.onViewportChanged.bind(this))
];
this.addManagedListener(this.eventService, core_1.Events.EVENT_VIEWPORT_CHANGED, this.onViewportChanged.bind(this));
};

@@ -48,6 +61,2 @@ ViewportRowModel.prototype.start = function () {

this.lastRow = -1;
if (this.events.length) {
this.events.forEach(function (func) { return func(); });
this.events = [];
}
};

@@ -208,3 +217,3 @@ ViewportRowModel.prototype.calculateFirstRow = function (firstRenderedRow) {

var rowNode = new core_1.RowNode();
this.context.wireBean(rowNode);
this.createBean(rowNode);
rowNode.setRowHeight(this.rowHeight);

@@ -239,11 +248,2 @@ rowNode.setRowTop(this.rowHeight * rowIndex);

__decorate([
core_1.Autowired('eventService')
], ViewportRowModel.prototype, "eventService", void 0);
__decorate([
core_1.Autowired('selectionController')
], ViewportRowModel.prototype, "selectionController", void 0);
__decorate([
core_1.Autowired('context')
], ViewportRowModel.prototype, "context", void 0);
__decorate([
core_1.Autowired('gridApi')

@@ -267,4 +267,4 @@ ], ViewportRowModel.prototype, "gridApi", void 0);

return ViewportRowModel;
}());
}(core_1.BeanStub));
exports.ViewportRowModel = ViewportRowModel;
//# sourceMappingURL=viewportRowModel.js.map

@@ -1,7 +0,4 @@

import { IRowModel, RowNode, IViewportDatasource, RowBounds } from "@ag-grid-community/core";
export declare class ViewportRowModel implements IRowModel {
import { BeanStub, IRowModel, IViewportDatasource, RowBounds, RowNode } from "@ag-grid-community/core";
export declare class ViewportRowModel extends BeanStub implements IRowModel {
private gridOptionsWrapper;
private eventService;
private selectionController;
private context;
private gridApi;

@@ -16,3 +13,2 @@ private columnApi;

private viewportDatasource;
private events;
ensureRowHeightsValid(startPixel: number, endPixel: number, startLimitIndex: number, endLimitIndex: number): boolean;

@@ -19,0 +15,0 @@ private init;

@@ -0,1 +1,14 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -7,12 +20,14 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
import { Bean, PostConstruct, Autowired, PreDestroy, RowNode, Constants, Events, _ } from "@ag-grid-community/core";
var ViewportRowModel = /** @class */ (function () {
import { _, Autowired, Bean, BeanStub, Constants, Events, PostConstruct, PreDestroy, RowNode } from "@ag-grid-community/core";
var ViewportRowModel = /** @class */ (function (_super) {
__extends(ViewportRowModel, _super);
function ViewportRowModel() {
var _this = _super !== null && _super.apply(this, arguments) || this;
// rowRenderer tells us these
this.firstRow = -1;
this.lastRow = -1;
_this.firstRow = -1;
_this.lastRow = -1;
// datasource tells us this
this.rowCount = -1;
this.rowNodesByIndex = {};
this.events = [];
_this.rowCount = -1;
_this.rowNodesByIndex = {};
return _this;
}

@@ -23,5 +38,3 @@ // we don't implement as lazy row heights is not supported in this row model

this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();
this.events = [
this.eventService.addEventListener(Events.EVENT_VIEWPORT_CHANGED, this.onViewportChanged.bind(this))
];
this.addManagedListener(this.eventService, Events.EVENT_VIEWPORT_CHANGED, this.onViewportChanged.bind(this));
};

@@ -46,6 +59,2 @@ ViewportRowModel.prototype.start = function () {

this.lastRow = -1;
if (this.events.length) {
this.events.forEach(function (func) { return func(); });
this.events = [];
}
};

@@ -206,3 +215,3 @@ ViewportRowModel.prototype.calculateFirstRow = function (firstRenderedRow) {

var rowNode = new RowNode();
this.context.wireBean(rowNode);
this.createBean(rowNode);
rowNode.setRowHeight(this.rowHeight);

@@ -237,11 +246,2 @@ rowNode.setRowTop(this.rowHeight * rowIndex);

__decorate([
Autowired('eventService')
], ViewportRowModel.prototype, "eventService", void 0);
__decorate([
Autowired('selectionController')
], ViewportRowModel.prototype, "selectionController", void 0);
__decorate([
Autowired('context')
], ViewportRowModel.prototype, "context", void 0);
__decorate([
Autowired('gridApi')

@@ -265,3 +265,3 @@ ], ViewportRowModel.prototype, "gridApi", void 0);

return ViewportRowModel;
}());
}(BeanStub));
export { ViewportRowModel };
{
"name": "@ag-grid-enterprise/viewport-row-model",
"version": "23.1.1",
"version": "23.2.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": "~23.1.0",
"@ag-grid-enterprise/core": "~23.1.0"
"@ag-grid-community/core": "~23.2.0",
"@ag-grid-enterprise/core": "~23.2.0"
},

@@ -49,0 +49,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 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

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