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 2.4.19 to 2.4.20

6

dist/gridsterCompact.service.js

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

widget = this.gridster.grid[i];
if (widget.$item.compactEnabled === false) {
continue;
}
moved = this.moveUpTillCollision(widget);

@@ -70,2 +73,5 @@ if (moved) {

widget = this.gridster.grid[i];
if (widget.$item.compactEnabled === false) {
continue;
}
moved = this.moveLeftTillCollision(widget);

@@ -72,0 +78,0 @@ if (moved) {

4

dist/gridsterEmptyCell.service.d.ts

@@ -7,7 +7,11 @@ import { GridsterComponent } from './gridster.component';

emptyCellClick: Function | null;
emptyCellClickTouch: Function | null;
emptyCellContextMenu: Function | null;
emptyCellDrop: Function | null;
emptyCellDrag: Function | null;
emptyCellDragTouch: Function | null;
emptyCellMMove: Function;
emptyCellMMoveTouch: Function;
emptyCellUp: Function;
emptyCellUpTouch: Function;
emptyCellMove: Function | null;

@@ -14,0 +18,0 @@ constructor(gridster: GridsterComponent);

@@ -22,8 +22,12 @@ "use strict";

this.emptyCellClick = this.gridster.renderer.listen(this.gridster.el, 'click', this.emptyCellClickCb.bind(this));
this.emptyCellClickTouch = this.gridster.renderer.listen(this.gridster.el, 'touchend', this.emptyCellClickCb.bind(this));
}
else if (!this.gridster.$options.enableEmptyCellClick && this.emptyCellClick) {
else if (!this.gridster.$options.enableEmptyCellClick && this.emptyCellClick && this.emptyCellClickTouch) {
this.emptyCellClick();
this.emptyCellClickTouch();
this.emptyCellClick = null;
this.emptyCellClickTouch = null;
}
if (this.gridster.$options.enableEmptyCellContextMenu && !this.emptyCellContextMenu && this.gridster.$options.emptyCellContextMenuCallback) {
if (this.gridster.$options.enableEmptyCellContextMenu && !this.emptyCellContextMenu &&
this.gridster.$options.emptyCellContextMenuCallback) {
this.emptyCellContextMenu = this.gridster.renderer.listen(this.gridster.el, 'contextmenu', this.emptyCellContextMenuCb.bind(this));

@@ -47,6 +51,9 @@ }

this.emptyCellDrag = this.gridster.renderer.listen(this.gridster.el, 'mousedown', this.emptyCellMouseDown.bind(this));
this.emptyCellDragTouch = this.gridster.renderer.listen(this.gridster.el, 'touchstart', this.emptyCellMouseDown.bind(this));
}
else if (!this.gridster.$options.enableEmptyCellDrag && this.emptyCellDrag) {
else if (!this.gridster.$options.enableEmptyCellDrag && this.emptyCellDrag && this.emptyCellDragTouch) {
this.emptyCellDrag();
this.emptyCellDragTouch();
this.emptyCellDrag = null;
this.emptyCellDragTouch = null;
}

@@ -110,3 +117,5 @@ };

this.emptyCellMMove = this.gridster.renderer.listenGlobal('window', 'mousemove', this.emptyCellMouseMove.bind(this));
this.emptyCellMMoveTouch = this.gridster.renderer.listenGlobal('window', 'touchmove', this.emptyCellMouseMove.bind(this));
this.emptyCellUp = this.gridster.renderer.listenGlobal('window', 'mouseup', this.emptyCellMouseUp.bind(this));
this.emptyCellUpTouch = this.gridster.renderer.listenGlobal('window', 'touchend', this.emptyCellMouseUp.bind(this));
};

@@ -125,3 +134,5 @@ GridsterEmptyCell.prototype.emptyCellMouseMove = function (e) {

this.emptyCellMMove();
this.emptyCellMMoveTouch();
this.emptyCellUp();
this.emptyCellUpTouch();
var item = this.getValidItemFromEvent(e, this.initialItem);

@@ -128,0 +139,0 @@ if (item) {

@@ -49,2 +49,3 @@ "use strict";

resizeEnabled: undefined,
compactEnabled: undefined,
maxItemRows: undefined,

@@ -51,0 +52,0 @@ minItemRows: undefined,

@@ -9,2 +9,3 @@ export interface GridsterItem {

resizeEnabled?: boolean;
compactEnabled?: boolean;
maxItemRows?: number;

@@ -11,0 +12,0 @@ minItemRows?: number;

2

dist/gridsterUtils.service.d.ts

@@ -7,3 +7,3 @@ import { GridsterComponent } from './gridster.component';

static checkContentClassForEvent(gridster: GridsterComponent, e: any): boolean;
static checkContentClass(target: any, current: any, contentClass: any): boolean;
static checkContentClass(target: any, current: any, contentClass: string): boolean;
}

@@ -40,4 +40,10 @@ "use strict";

if (e.clientX === undefined && e.touches) {
e.clientX = e.touches[0].clientX;
e.clientY = e.touches[0].clientY;
if (e.touches && e.touches.length) {
e.clientX = e.touches[0].clientX;
e.clientY = e.touches[0].clientY;
}
else if (e.changedTouches && e.changedTouches.length) {
e.clientX = e.changedTouches[0].clientX;
e.clientY = e.changedTouches[0].clientY;
}
}

@@ -44,0 +50,0 @@ };

{
"name": "angular-gridster2",
"version": "2.4.19",
"version": "2.4.20",
"license": "MIT",

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

@@ -205,2 +205,3 @@ angular-gridster2

resizeEnabled?: boolean; // override grid option resizable.enabled
compactEnabled?: boolean; // disable compact
maxItemRows?: number; // override grid option maxItemRows

@@ -207,0 +208,0 @@ minItemRows?: number; // override grid option minItemRows

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