Socket
Socket
Sign inDemoInstall

@ag-grid-enterprise/range-selection

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/range-selection - npm Package Compare versions

Comparing version 23.1.1 to 23.2.0

dist/cjs/rangeSelection/selectionHandleFactory.d.ts

8

dist/cjs/rangeSelection/abstractSelectionHandle.d.ts

@@ -1,2 +0,2 @@

import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils } from "@ag-grid-community/core";
import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils, SelectionHandleType } from "@ag-grid-community/core";
import { RangeController } from "./rangeController";

@@ -19,3 +19,3 @@ export declare abstract class AbstractSelectionHandle extends Component implements ISelectionHandle {

private dragging;
protected abstract type: string;
protected abstract type: SelectionHandleType;
protected shouldDestroyOnEndDragging: boolean;

@@ -38,7 +38,7 @@ private init;

private updateLastCellPositionHovered;
getType(): string;
getType(): SelectionHandleType;
refresh(cellComp: CellComp): void;
protected clearValues(): void;
private removeListeners;
destroy(): void;
protected destroy(): void;
}

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

});
this.addDestroyableEventListener(this.getGui(), 'mousedown', this.preventRangeExtension.bind(this));
this.addManagedListener(this.getGui(), 'mousedown', this.preventRangeExtension.bind(this));
};

@@ -96,3 +96,3 @@ AbstractSelectionHandle.prototype.isDragging = function () {

AbstractSelectionHandle.prototype.onDragStart = function (e) {
this.cellHoverListener = this.addDestroyableEventListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
this.cellHoverListener = this.addManagedListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
core_1._.addCssClass(document.body, "ag-dragging-" + this.type + "-handle");

@@ -99,0 +99,0 @@ };

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

import { CellComp } from '@ag-grid-community/core';
import { CellComp, SelectionHandleType } from '@ag-grid-community/core';
import { AbstractSelectionHandle } from "./abstractSelectionHandle";
export declare class FillHandle extends AbstractSelectionHandle {
private valueService;
private eventService;
private gridOptionsWrapper;

@@ -17,3 +16,3 @@ static TEMPLATE: string;

private isReduce;
protected type: string;
protected type: SelectionHandleType;
constructor();

@@ -20,0 +19,0 @@ protected onDrag(e: MouseEvent): void;

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

_this.isReduce = false;
_this.type = 'fill';
_this.type = core_1.SelectionHandleType.FILL;
return _this;

@@ -485,3 +485,3 @@ }

};
FillHandle.TEMPLATE = '<div class="ag-fill-handle"></div>';
FillHandle.TEMPLATE = "<div class=\"ag-fill-handle\"></div>";
__decorate([

@@ -491,5 +491,2 @@ core_1.Autowired('valueService')

__decorate([
core_1.Autowired('eventService')
], FillHandle.prototype, "eventService", void 0);
__decorate([
core_1.Autowired('gridOptionsWrapper')

@@ -496,0 +493,0 @@ ], FillHandle.prototype, "gridOptionsWrapper", void 0);

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

import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils } from "@ag-grid-community/core";
export declare class RangeController implements IRangeController {
import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils, BeanStub } from "@ag-grid-community/core";
export declare class RangeController extends BeanStub implements IRangeController {
private loggerFactory;
private rowModel;
private eventService;
private columnController;

@@ -24,7 +23,5 @@ private mouseEventService;

private draggingRange?;
private events;
autoScrollService: AutoScrollService;
registerGridComp(gridPanel: GridPanel): void;
private init;
destroy(): void;
onColumnVisibleChange(): void;

@@ -31,0 +28,0 @@ refreshLastRangeStart(): void;

"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) {

@@ -17,8 +30,10 @@ 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 RangeController = /** @class */ (function () {
var RangeController = /** @class */ (function (_super) {
__extends(RangeController, _super);
function RangeController() {
this.cellRanges = [];
this.bodyScrollListener = this.onBodyScroll.bind(this);
this.dragging = false;
this.events = [];
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.cellRanges = [];
_this.bodyScrollListener = _this.onBodyScroll.bind(_this);
_this.dragging = false;
return _this;
}

@@ -31,18 +46,10 @@ RangeController.prototype.registerGridComp = function (gridPanel) {

this.logger = this.loggerFactory.create('RangeController');
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))
];
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, core_1.Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, 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 () {

@@ -373,3 +380,3 @@ var _this = this;

var isRightColumn = allColumns.indexOf(cell.column) === core_1._.last(allPositions);
var isLastRow = cell.rowIndex === lastRow.rowIndex && cell.rowPinned === lastRow.rowPinned;
var isLastRow = cell.rowIndex === lastRow.rowIndex && core_1._.makeNull(cell.rowPinned) === core_1._.makeNull(lastRow.rowPinned);
return isRightColumn && isLastRow;

@@ -533,5 +540,2 @@ };

__decorate([
core_1.Autowired('eventService')
], RangeController.prototype, "eventService", void 0);
__decorate([
core_1.Autowired('columnController')

@@ -566,5 +570,2 @@ ], RangeController.prototype, "columnController", void 0);

], RangeController.prototype, "init", null);
__decorate([
core_1.PreDestroy
], RangeController.prototype, "destroy", null);
RangeController = __decorate([

@@ -574,3 +575,3 @@ core_1.Bean('rangeController')

return RangeController;
}());
}(core_1.BeanStub));
exports.RangeController = RangeController;

@@ -577,0 +578,0 @@ var AutoScrollService = /** @class */ (function () {

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

import { SelectionHandleType } from "@ag-grid-community/core";
import { AbstractSelectionHandle } from "./abstractSelectionHandle";
export declare class RangeHandle extends AbstractSelectionHandle {
static TEMPLATE: string;
protected type: string;
protected type: SelectionHandleType;
private endPosition;

@@ -6,0 +7,0 @@ private rangeFixed;

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

var _this = _super.call(this, RangeHandle.TEMPLATE) || this;
_this.type = 'range';
_this.type = core_1.SelectionHandleType.RANGE;
_this.rangeFixed = false;

@@ -77,3 +77,3 @@ return _this;

};
RangeHandle.TEMPLATE = '<div class="ag-range-handle"></div>';
RangeHandle.TEMPLATE = "<div class=\"ag-range-handle\"></div>";
return RangeHandle;

@@ -80,0 +80,0 @@ }(abstractSelectionHandle_1.AbstractSelectionHandle));

@@ -8,5 +8,6 @@ "use strict";

var rangeHandle_1 = require("./rangeSelection/rangeHandle");
var selectionHandleFactory_1 = require("./rangeSelection/selectionHandleFactory");
exports.RangeSelectionModule = {
moduleName: core_1.ModuleNames.RangeSelectionModule,
beans: [rangeController_1.RangeController],
beans: [rangeController_1.RangeController, selectionHandleFactory_1.SelectionHandleFactory],
agStackComponents: [

@@ -13,0 +14,0 @@ { componentName: 'AgFillHandle', componentClass: fillHandle_1.FillHandle },

@@ -1,2 +0,2 @@

import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils } from "@ag-grid-community/core";
import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils, SelectionHandleType } from "@ag-grid-community/core";
import { RangeController } from "./rangeController";

@@ -19,3 +19,3 @@ export declare abstract class AbstractSelectionHandle extends Component implements ISelectionHandle {

private dragging;
protected abstract type: string;
protected abstract type: SelectionHandleType;
protected shouldDestroyOnEndDragging: boolean;

@@ -38,7 +38,7 @@ private init;

private updateLastCellPositionHovered;
getType(): string;
getType(): SelectionHandleType;
refresh(cellComp: CellComp): void;
protected clearValues(): void;
private removeListeners;
destroy(): void;
protected destroy(): void;
}

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

});
this.addDestroyableEventListener(this.getGui(), 'mousedown', this.preventRangeExtension.bind(this));
this.addManagedListener(this.getGui(), 'mousedown', this.preventRangeExtension.bind(this));
};

@@ -94,3 +94,3 @@ AbstractSelectionHandle.prototype.isDragging = function () {

AbstractSelectionHandle.prototype.onDragStart = function (e) {
this.cellHoverListener = this.addDestroyableEventListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
this.cellHoverListener = this.addManagedListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
_.addCssClass(document.body, "ag-dragging-" + this.type + "-handle");

@@ -97,0 +97,0 @@ };

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

import { CellComp } from '@ag-grid-community/core';
import { CellComp, SelectionHandleType } from '@ag-grid-community/core';
import { AbstractSelectionHandle } from "./abstractSelectionHandle";
export declare class FillHandle extends AbstractSelectionHandle {
private valueService;
private eventService;
private gridOptionsWrapper;

@@ -17,3 +16,3 @@ static TEMPLATE: string;

private isReduce;
protected type: string;
protected type: SelectionHandleType;
constructor();

@@ -20,0 +19,0 @@ protected onDrag(e: MouseEvent): void;

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

};
import { Autowired, Events, _ } from '@ag-grid-community/core';
import { Autowired, Events, SelectionHandleType, _ } from '@ag-grid-community/core';
import { AbstractSelectionHandle } from "./abstractSelectionHandle";

@@ -50,3 +50,3 @@ var FillHandle = /** @class */ (function (_super) {

_this.isReduce = false;
_this.type = 'fill';
_this.type = SelectionHandleType.FILL;
return _this;

@@ -484,3 +484,3 @@ }

};
FillHandle.TEMPLATE = '<div class="ag-fill-handle"></div>';
FillHandle.TEMPLATE = "<div class=\"ag-fill-handle\"></div>";
__decorate([

@@ -490,5 +490,2 @@ Autowired('valueService')

__decorate([
Autowired('eventService')
], FillHandle.prototype, "eventService", void 0);
__decorate([
Autowired('gridOptionsWrapper')

@@ -495,0 +492,0 @@ ], FillHandle.prototype, "gridOptionsWrapper", void 0);

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

import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils } from "@ag-grid-community/core";
export declare class RangeController implements IRangeController {
import { CellPosition, CellPositionUtils, Column, GridOptionsWrapper, GridPanel, IRangeController, CellRangeParams, CellRange, RowPosition, RowPositionUtils, BeanStub } from "@ag-grid-community/core";
export declare class RangeController extends BeanStub implements IRangeController {
private loggerFactory;
private rowModel;
private eventService;
private columnController;

@@ -24,7 +23,5 @@ private mouseEventService;

private draggingRange?;
private events;
autoScrollService: AutoScrollService;
registerGridComp(gridPanel: GridPanel): void;
private init;
destroy(): void;
onColumnVisibleChange(): void;

@@ -31,0 +28,0 @@ refreshLastRangeStart(): void;

@@ -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) {

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

};
import { Autowired, Bean, Constants, Events, PostConstruct, _, PreDestroy, } from "@ag-grid-community/core";
var RangeController = /** @class */ (function () {
import { Autowired, Bean, Constants, Events, PostConstruct, BeanStub, _ } from "@ag-grid-community/core";
var RangeController = /** @class */ (function (_super) {
__extends(RangeController, _super);
function RangeController() {
this.cellRanges = [];
this.bodyScrollListener = this.onBodyScroll.bind(this);
this.dragging = false;
this.events = [];
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.cellRanges = [];
_this.bodyScrollListener = _this.onBodyScroll.bind(_this);
_this.dragging = false;
return _this;
}

@@ -29,18 +44,10 @@ RangeController.prototype.registerGridComp = function (gridPanel) {

this.logger = this.loggerFactory.create('RangeController');
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))
];
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_EVERYTHING_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.removeAllCellRanges.bind(this));
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this));
this.addManagedListener(this.eventService, 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 () {

@@ -371,3 +378,3 @@ var _this = this;

var isRightColumn = allColumns.indexOf(cell.column) === _.last(allPositions);
var isLastRow = cell.rowIndex === lastRow.rowIndex && cell.rowPinned === lastRow.rowPinned;
var isLastRow = cell.rowIndex === lastRow.rowIndex && _.makeNull(cell.rowPinned) === _.makeNull(lastRow.rowPinned);
return isRightColumn && isLastRow;

@@ -531,5 +538,2 @@ };

__decorate([
Autowired('eventService')
], RangeController.prototype, "eventService", void 0);
__decorate([
Autowired('columnController')

@@ -564,5 +568,2 @@ ], RangeController.prototype, "columnController", void 0);

], RangeController.prototype, "init", null);
__decorate([
PreDestroy
], RangeController.prototype, "destroy", null);
RangeController = __decorate([

@@ -572,3 +573,3 @@ Bean('rangeController')

return RangeController;
}());
}(BeanStub));
export { RangeController };

@@ -575,0 +576,0 @@ var AutoScrollService = /** @class */ (function () {

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

import { SelectionHandleType } from "@ag-grid-community/core";
import { AbstractSelectionHandle } from "./abstractSelectionHandle";
export declare class RangeHandle extends AbstractSelectionHandle {
static TEMPLATE: string;
protected type: string;
protected type: SelectionHandleType;
private endPosition;

@@ -6,0 +7,0 @@ private rangeFixed;

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

};
import { _, CellRangeType } from "@ag-grid-community/core";
import { CellRangeType, SelectionHandleType, _ } from "@ag-grid-community/core";
import { AbstractSelectionHandle } from "./abstractSelectionHandle";

@@ -32,3 +32,3 @@ var RangeHandle = /** @class */ (function (_super) {

var _this = _super.call(this, RangeHandle.TEMPLATE) || this;
_this.type = 'range';
_this.type = SelectionHandleType.RANGE;
_this.rangeFixed = false;

@@ -76,5 +76,5 @@ return _this;

};
RangeHandle.TEMPLATE = '<div class="ag-range-handle"></div>';
RangeHandle.TEMPLATE = "<div class=\"ag-range-handle\"></div>";
return RangeHandle;
}(AbstractSelectionHandle));
export { RangeHandle };

@@ -6,5 +6,6 @@ import { ModuleNames } from "@ag-grid-community/core";

import { RangeHandle } from "./rangeSelection/rangeHandle";
import { SelectionHandleFactory } from "./rangeSelection/selectionHandleFactory";
export var RangeSelectionModule = {
moduleName: ModuleNames.RangeSelectionModule,
beans: [RangeController],
beans: [RangeController, SelectionHandleFactory],
agStackComponents: [

@@ -11,0 +12,0 @@ { componentName: 'AgFillHandle', componentClass: FillHandle },

{
"name": "@ag-grid-enterprise/range-selection",
"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 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