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.2.1 to 24.0.0

1

dist/cjs/rangeSelection/abstractSelectionHandle.d.ts

@@ -36,2 +36,3 @@ import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils, SelectionHandleType } from "@ag-grid-community/core";

protected onDragStart(e: MouseEvent): void;
private getDraggingCssClass;
private updateLastCellPositionHovered;

@@ -38,0 +39,0 @@ getType(): SelectionHandleType;

7

dist/cjs/rangeSelection/abstractSelectionHandle.js

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

// be affected by a drag on any. Move it to the root element.
core_1._.removeCssClass(document.body, "ag-dragging-" + _this.type + "-handle");
core_1._.removeCssClass(document.body, _this.getDraggingCssClass());
if (_this.shouldDestroyOnEndDragging) {

@@ -97,4 +97,7 @@ _this.destroy();

this.cellHoverListener = this.addManagedListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
core_1._.addCssClass(document.body, "ag-dragging-" + this.type + "-handle");
core_1._.addCssClass(document.body, this.getDraggingCssClass());
};
AbstractSelectionHandle.prototype.getDraggingCssClass = function () {
return "ag-dragging-" + (this.type === core_1.SelectionHandleType.FILL ? 'fill' : 'range') + "-handle";
};
AbstractSelectionHandle.prototype.updateLastCellPositionHovered = function (e) {

@@ -101,0 +104,0 @@ var cell = this.mouseEventService.getCellPositionForEvent(e);

@@ -62,3 +62,10 @@ "use strict";

var diffY = Math.abs(y - newY);
var direction = diffX > diffY ? 'x' : 'y';
var allowedDirection = this.gridOptionsWrapper.getFillHandleDirection();
var direction;
if (allowedDirection === 'xy') {
direction = diffX > diffY ? 'x' : 'y';
}
else {
direction = allowedDirection;
}
if (direction !== this.dragAxis) {

@@ -208,3 +215,3 @@ this.dragAxis = direction;

if (col.isCellEditable(rowNode)) {
_this.valueService.setValue(rowNode, col, currentValue);
rowNode.setDataValue(col, currentValue);
}

@@ -265,2 +272,3 @@ }

currentIndex: idx,
currentCellValue: this.valueService.getValue(col, rowNode),
api: this.gridOptionsWrapper.getApi(),

@@ -267,0 +275,0 @@ columnApi: this.gridOptionsWrapper.getColumnApi(),

@@ -31,6 +31,3 @@ "use strict";

SelectionHandleFactory.prototype.createSelectionHandle = function (type) {
if (type === core_1.SelectionHandleType.RANGE) {
return this.createBean(new rangeHandle_1.RangeHandle());
}
return this.createBean(new fillHandle_1.FillHandle());
return this.createBean(type === core_1.SelectionHandleType.RANGE ? new rangeHandle_1.RangeHandle() : new fillHandle_1.FillHandle());
};

@@ -37,0 +34,0 @@ SelectionHandleFactory = __decorate([

@@ -36,2 +36,3 @@ import { CellComp, RowRenderer, DragService, Component, MouseEventService, ColumnController, CellNavigationService, CellRange, RowPosition, CellPosition, ISelectionHandle, RowPositionUtils, SelectionHandleType } from "@ag-grid-community/core";

protected onDragStart(e: MouseEvent): void;
private getDraggingCssClass;
private updateLastCellPositionHovered;

@@ -38,0 +39,0 @@ getType(): SelectionHandleType;

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

};
import { Autowired, Component, PostConstruct, _ } from "@ag-grid-community/core";
import { Autowired, Component, PostConstruct, _, SelectionHandleType } from "@ag-grid-community/core";
var AbstractSelectionHandle = /** @class */ (function (_super) {

@@ -51,3 +51,3 @@ __extends(AbstractSelectionHandle, _super);

// be affected by a drag on any. Move it to the root element.
_.removeCssClass(document.body, "ag-dragging-" + _this.type + "-handle");
_.removeCssClass(document.body, _this.getDraggingCssClass());
if (_this.shouldDestroyOnEndDragging) {

@@ -96,4 +96,7 @@ _this.destroy();

this.cellHoverListener = this.addManagedListener(this.rowRenderer.getGridCore().getRootGui(), 'mousemove', this.updateLastCellPositionHovered.bind(this));
_.addCssClass(document.body, "ag-dragging-" + this.type + "-handle");
_.addCssClass(document.body, this.getDraggingCssClass());
};
AbstractSelectionHandle.prototype.getDraggingCssClass = function () {
return "ag-dragging-" + (this.type === SelectionHandleType.FILL ? 'fill' : 'range') + "-handle";
};
AbstractSelectionHandle.prototype.updateLastCellPositionHovered = function (e) {

@@ -100,0 +103,0 @@ var cell = this.mouseEventService.getCellPositionForEvent(e);

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

var diffY = Math.abs(y - newY);
var direction = diffX > diffY ? 'x' : 'y';
var allowedDirection = this.gridOptionsWrapper.getFillHandleDirection();
var direction;
if (allowedDirection === 'xy') {
direction = diffX > diffY ? 'x' : 'y';
}
else {
direction = allowedDirection;
}
if (direction !== this.dragAxis) {

@@ -206,3 +213,3 @@ this.dragAxis = direction;

if (col.isCellEditable(rowNode)) {
_this.valueService.setValue(rowNode, col, currentValue);
rowNode.setDataValue(col, currentValue);
}

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

currentIndex: idx,
currentCellValue: this.valueService.getValue(col, rowNode),
api: this.gridOptionsWrapper.getApi(),

@@ -265,0 +273,0 @@ columnApi: this.gridOptionsWrapper.getColumnApi(),

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

SelectionHandleFactory.prototype.createSelectionHandle = function (type) {
if (type === SelectionHandleType.RANGE) {
return this.createBean(new RangeHandle());
}
return this.createBean(new FillHandle());
return this.createBean(type === SelectionHandleType.RANGE ? new RangeHandle() : new FillHandle());
};

@@ -35,0 +32,0 @@ SelectionHandleFactory = __decorate([

{
"name": "@ag-grid-enterprise/range-selection",
"version": "23.2.1",
"version": "24.0.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.2.0",
"@ag-grid-enterprise/core": "~23.2.0"
"@ag-grid-community/core": "~24.0.0",
"@ag-grid-enterprise/core": "~24.0.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