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

angular-gridster2

Package Overview
Dependencies
Maintainers
1
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-gridster2 - npm Package Compare versions

Comparing version 3.13.0 to 3.14.0

9

dist/.tmp/gridsterConfig.constant.js

@@ -66,2 +66,5 @@ "use strict";

// Arguments: gridsterItem, gridsterItemComponent
itemRemovedCallback: undefined,
// callback to call for each item when is initialized.
// Arguments: gridsterItem, gridsterItemComponent
enableEmptyCellClick: false,

@@ -125,2 +128,8 @@ // enable empty cell click events

// push items when resizing and dragging
disablePushOnDrag: false,
// disable push on drag
disablePushOnResize: false,
// disable push on resize
pushDirections: { north: true, east: true, south: true, west: true },
// control the directions items are pushed
pushResizeItems: false,

@@ -127,0 +136,0 @@ // on resize of item will shrink adjacent items

@@ -37,2 +37,5 @@ export declare type GridType = 'fit' | 'scrollVertical' | 'scrollHorizontal' | 'fixed' | 'verticalFixed' | 'horizontalFixed';

pushItems?: boolean;
disablePushOnDrag?: boolean;
disablePushOnResize?: boolean;
pushDirections?: PushDirections;
pushResizeItems?: boolean;

@@ -80,1 +83,7 @@ displayGrid?: displayGrid;

}
export interface PushDirections {
north: boolean;
east: boolean;
south: boolean;
west: boolean;
}

@@ -30,2 +30,5 @@ import { compactType, displayGrid, GridType } from './gridsterConfig.interface';

pushItems: boolean;
disablePushOnDrag: boolean;
disablePushOnResize: boolean;
pushDirections: PushDirections;
pushResizeItems: boolean;

@@ -68,1 +71,7 @@ displayGrid: displayGrid;

}
export interface PushDirections {
north: boolean;
east: boolean;
south: boolean;
west: boolean;
}

2

dist/.tmp/gridsterDraggable.service.js

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

}
this.push.pushItems(direction);
this.push.pushItems(direction, this.gridster.$options.disablePushOnDrag);
this.swap.swapItems();

@@ -153,0 +153,0 @@ if (this.gridster.checkCollision(this.gridsterItem.$item)) {

@@ -17,3 +17,3 @@ import { GridsterItemComponent } from './gridsterItem.component';

constructor(gridsterItem: GridsterItemComponent, gridster: GridsterComponent);
pushItems(direction: any): void;
pushItems(direction: string, disable: boolean): void;
restoreItems(): void;

@@ -20,0 +20,0 @@ setPushedItems(): void;

@@ -25,4 +25,4 @@ "use strict";

}
GridsterPush.prototype.pushItems = function (direction) {
if (this.gridster.$options.pushItems) {
GridsterPush.prototype.pushItems = function (direction, disable) {
if (this.gridster.$options.pushItems && !disable) {
this.count = 0;

@@ -101,2 +101,5 @@ if (!this.push(this.gridsterItem, direction)) {

GridsterPush.prototype.trySouth = function (gridsterItemCollide, gridsterItem) {
if (!this.gridster.$options.pushDirections.south) {
return false;
}
this.addToTempPushed(gridsterItemCollide);

@@ -116,2 +119,5 @@ var backUpY = gridsterItemCollide.$item.y;

GridsterPush.prototype.tryNorth = function (gridsterItemCollide, gridsterItem) {
if (!this.gridster.$options.pushDirections.north) {
return false;
}
this.addToTempPushed(gridsterItemCollide);

@@ -131,2 +137,5 @@ var backUpY = gridsterItemCollide.$item.y;

GridsterPush.prototype.tryEast = function (gridsterItemCollide, gridsterItem) {
if (!this.gridster.$options.pushDirections.east) {
return false;
}
this.addToTempPushed(gridsterItemCollide);

@@ -146,2 +155,5 @@ var backUpX = gridsterItemCollide.$item.x;

GridsterPush.prototype.tryWest = function (gridsterItemCollide, gridsterItem) {
if (!this.gridster.$options.pushDirections.west) {
return false;
}
this.addToTempPushed(gridsterItemCollide);

@@ -148,0 +160,0 @@ var backUpX = gridsterItemCollide.$item.x;

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

this.pushResize.pushItems(this.pushResize.fromSouth);
this.push.pushItems(this.push.fromSouth);
this.push.pushItems(this.push.fromSouth, this.gridster.$options.disablePushOnResize);
if (this.gridster.checkCollision(this.gridsterItem.$item)) {

@@ -205,3 +205,3 @@ this.gridsterItem.$item.y = this.itemBackup[1];

this.pushResize.pushItems(this.pushResize.fromEast);
this.push.pushItems(this.push.fromEast);
this.push.pushItems(this.push.fromEast, this.gridster.$options.disablePushOnResize);
if (this.gridster.checkCollision(this.gridsterItem.$item)) {

@@ -235,3 +235,3 @@ this.gridsterItem.$item.x = this.itemBackup[0];

this.pushResize.pushItems(this.pushResize.fromNorth);
this.push.pushItems(this.push.fromNorth);
this.push.pushItems(this.push.fromNorth, this.gridster.$options.disablePushOnResize);
if (this.gridster.checkCollision(this.gridsterItem.$item)) {

@@ -262,3 +262,3 @@ this.gridsterItem.$item.rows = this.itemBackup[3];

this.pushResize.pushItems(this.pushResize.fromWest);
this.push.pushItems(this.push.fromWest);
this.push.pushItems(this.push.fromWest, this.gridster.$options.disablePushOnResize);
if (this.gridster.checkCollision(this.gridsterItem.$item)) {

@@ -265,0 +265,0 @@ this.gridsterItem.$item.cols = this.itemBackup[2];

{
"name": "angular-gridster2",
"version": "3.13.0",
"version": "3.14.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -162,2 +162,5 @@ angular-gridster2

pushItems: false, // push items when resizing and dragging
disablePushOnDrag: false, // disable push on drag
disablePushOnResize: false, // disable push on resize
pushDirections: {north: true, east: true, south: true, west: true}, // control the directions items are pushed
pushResizeItems: false, // on resize of item will shrink adjacent items

@@ -164,0 +167,0 @@ displayGrid: 'onDrag&Resize', // display background grid of rows and columns

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

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