@ag-grid-enterprise/range-selection
Advanced tools
Comparing version 23.0.2 to 23.1.0
@@ -24,5 +24,7 @@ import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils } from "@ag-grid-community/core"; | ||
private draggingRange?; | ||
private events; | ||
autoScrollService: AutoScrollService; | ||
registerGridComp(gridPanel: GridPanel): void; | ||
private init; | ||
destroy(): void; | ||
onColumnVisibleChange(): void; | ||
@@ -29,0 +31,0 @@ refreshLastRangeStart(): void; |
@@ -22,2 +22,3 @@ "use strict"; | ||
this.dragging = false; | ||
this.events = []; | ||
} | ||
@@ -30,10 +31,18 @@ RangeController.prototype.registerGridComp = function (gridPanel) { | ||
this.logger = this.loggerFactory.create('RangeController'); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_VISIBLE, this.onColumnVisibleChange.bind(this)); | ||
this.events = [ | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(core_1.Events.EVENT_COLUMN_VISIBLE, this.onColumnVisibleChange.bind(this)) | ||
]; | ||
}; | ||
RangeController.prototype.destroy = function () { | ||
if (this.events.length) { | ||
this.events.forEach(function (func) { return func(); }); | ||
this.events = []; | ||
} | ||
}; | ||
RangeController.prototype.onColumnVisibleChange = function () { | ||
@@ -48,3 +57,3 @@ var _this = this; | ||
cellRange.columns = cellRange.columns.filter(function (col) { return col.isVisible(); }); | ||
var colsInRangeChanged = !core_1._.compareArrays(beforeCols, cellRange.columns); | ||
var colsInRangeChanged = !core_1._.areEqual(beforeCols, cellRange.columns); | ||
if (colsInRangeChanged) { | ||
@@ -556,2 +565,5 @@ // notify users and other parts of grid (i.e. status panel) that range has changed | ||
], RangeController.prototype, "init", null); | ||
__decorate([ | ||
core_1.PreDestroy | ||
], RangeController.prototype, "destroy", null); | ||
RangeController = __decorate([ | ||
@@ -558,0 +570,0 @@ core_1.Bean('rangeController') |
@@ -24,5 +24,7 @@ import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils } from "@ag-grid-community/core"; | ||
private draggingRange?; | ||
private events; | ||
autoScrollService: AutoScrollService; | ||
registerGridComp(gridPanel: GridPanel): void; | ||
private init; | ||
destroy(): void; | ||
onColumnVisibleChange(): void; | ||
@@ -29,0 +31,0 @@ refreshLastRangeStart(): void; |
@@ -14,3 +14,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Autowired, Bean, Constants, Events, PostConstruct, _, } from "@ag-grid-community/core"; | ||
import { Autowired, Bean, Constants, Events, PostConstruct, _, PreDestroy, } from "@ag-grid-community/core"; | ||
var RangeController = /** @class */ (function () { | ||
@@ -21,2 +21,3 @@ function RangeController() { | ||
this.dragging = false; | ||
this.events = []; | ||
} | ||
@@ -29,10 +30,18 @@ RangeController.prototype.registerGridComp = function (gridPanel) { | ||
this.logger = this.loggerFactory.create('RangeController'); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this)); | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_VISIBLE, this.onColumnVisibleChange.bind(this)); | ||
this.events = [ | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this)), | ||
this.eventService.addEventListener(Events.EVENT_COLUMN_VISIBLE, this.onColumnVisibleChange.bind(this)) | ||
]; | ||
}; | ||
RangeController.prototype.destroy = function () { | ||
if (this.events.length) { | ||
this.events.forEach(function (func) { return func(); }); | ||
this.events = []; | ||
} | ||
}; | ||
RangeController.prototype.onColumnVisibleChange = function () { | ||
@@ -47,3 +56,3 @@ var _this = this; | ||
cellRange.columns = cellRange.columns.filter(function (col) { return col.isVisible(); }); | ||
var colsInRangeChanged = !_.compareArrays(beforeCols, cellRange.columns); | ||
var colsInRangeChanged = !_.areEqual(beforeCols, cellRange.columns); | ||
if (colsInRangeChanged) { | ||
@@ -555,2 +564,5 @@ // notify users and other parts of grid (i.e. status panel) that range has changed | ||
], RangeController.prototype, "init", null); | ||
__decorate([ | ||
PreDestroy | ||
], RangeController.prototype, "destroy", null); | ||
RangeController = __decorate([ | ||
@@ -557,0 +569,0 @@ Bean('rangeController') |
{ | ||
"name": "@ag-grid-enterprise/range-selection", | ||
"version": "23.0.2", | ||
"version": "23.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components", | ||
@@ -12,3 +12,4 @@ "main": "./dist/cjs/main.js", | ||
"package": "node ../../module-build/rollup/build.js", | ||
"build": "npm run build-cjs && npm run build-es6" | ||
"build": "npm run build-cjs && npm run build-es6 && npm run hash", | ||
"hash": "sh ../../scripts/hashDirectory.sh > .hash" | ||
}, | ||
@@ -45,7 +46,7 @@ "repository": { | ||
"dependencies": { | ||
"@ag-grid-community/core": "~23.0.0", | ||
"@ag-grid-enterprise/core": "~23.0.0" | ||
"@ag-grid-community/core": "~23.1.0", | ||
"@ag-grid-enterprise/core": "~23.1.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^3.6.3" | ||
"typescript": "~3.6.5" | ||
}, | ||
@@ -52,0 +53,0 @@ "publishConfig": { |
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
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
5531488
40
87938
+ Added@ag-grid-community/core@23.1.1(transitive)
+ Added@ag-grid-enterprise/core@23.1.1(transitive)
- Removed@ag-grid-community/core@23.0.2(transitive)
- Removed@ag-grid-enterprise/core@23.0.2(transitive)