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 4.4.2 to 4.5.0

8

dist/gridster.component.js

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

else if (this.$options.gridType === 'fixed') {
this.curColWidth = this.$options.fixedColWidth + this.$options.margin;
this.curRowHeight = this.$options.fixedRowHeight + this.$options.margin;
this.curColWidth = this.$options.fixedColWidth + (this.$options.ignoreMarginInRow ? 0 : this.$options.margin);
this.curRowHeight = this.$options.fixedRowHeight + (this.$options.ignoreMarginInRow ? 0 : this.$options.margin);
addClass = 'fixed';

@@ -204,3 +204,3 @@ removeClass1 = 'fit';

else if (this.$options.gridType === 'verticalFixed') {
this.curRowHeight = this.$options.fixedRowHeight + this.$options.margin;
this.curRowHeight = this.$options.fixedRowHeight + (this.$options.ignoreMarginInRow ? 0 : this.$options.margin);
addClass = 'scrollVertical';

@@ -212,3 +212,3 @@ removeClass1 = 'fit';

else if (this.$options.gridType === 'horizontalFixed') {
this.curColWidth = this.$options.fixedColWidth + this.$options.margin;
this.curColWidth = this.$options.fixedColWidth + (this.$options.ignoreMarginInRow ? 0 : this.$options.margin);
addClass = 'scrollHorizontal';

@@ -215,0 +215,0 @@ removeClass1 = 'fit';

@@ -91,2 +91,4 @@ "use strict";

// limit empty cell drag max rows
ignoreMarginInRow: false,
// ignore the gap between rows for items which span multiple rows (see #162, #224)
// Arguments: event, gridsterItem{x, y, rows: defaultItemRows, cols: defaultItemCols}

@@ -107,3 +109,2 @@ draggable: {

start: undefined // callback when dragging an item starts.
// Arguments: item, gridsterItem, event
},

@@ -129,3 +130,2 @@ resizable: {

start: undefined // callback when resizing an item starts.
// Arguments: item, gridsterItem, event
},

@@ -132,0 +132,0 @@ swap: true,

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

[{"__symbolic":"module","version":4,"metadata":{"GridsterConfigService":{"gridType":"fit","fixedColWidth":250,"fixedRowHeight":250,"keepFixedHeightInMobile":false,"keepFixedWidthInMobile":false,"compactType":"none","mobileBreakpoint":640,"minCols":1,"maxCols":100,"minRows":1,"maxRows":100,"defaultItemCols":1,"defaultItemRows":1,"maxItemCols":50,"maxItemRows":50,"minItemCols":1,"minItemRows":1,"minItemArea":1,"maxItemArea":2500,"margin":10,"outerMargin":true,"scrollSensitivity":10,"scrollSpeed":20,"initCallback":{"__symbolic":"reference","name":"undefined"},"destroyCallback":{"__symbolic":"reference","name":"undefined"},"itemChangeCallback":{"__symbolic":"reference","name":"undefined"},"itemResizeCallback":{"__symbolic":"reference","name":"undefined"},"itemInitCallback":{"__symbolic":"reference","name":"undefined"},"itemRemovedCallback":{"__symbolic":"reference","name":"undefined"},"enableEmptyCellClick":false,"enableEmptyCellContextMenu":false,"enableEmptyCellDrop":false,"enableEmptyCellDrag":false,"emptyCellClickCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellContextMenuCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDropCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDragCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDragMaxCols":50,"emptyCellDragMaxRows":50,"draggable":{"delayStart":0,"enabled":false,"ignoreContentClass":"gridster-item-content","ignoreContent":false,"dragHandleClass":"drag-handler","stop":{"__symbolic":"reference","name":"undefined"},"start":{"__symbolic":"reference","name":"undefined"}},"resizable":{"delayStart":0,"enabled":false,"handles":{"s":true,"e":true,"n":true,"w":true,"se":true,"ne":true,"sw":true,"nw":true},"stop":{"__symbolic":"reference","name":"undefined"},"start":{"__symbolic":"reference","name":"undefined"}},"swap":true,"pushItems":false,"disablePushOnDrag":false,"disablePushOnResize":false,"pushDirections":{"north":true,"east":true,"south":true,"west":true},"pushResizeItems":false,"displayGrid":"onDrag&Resize","disableWindowResize":false,"disableWarnings":false,"scrollToNewItems":false}}}]
[{"__symbolic":"module","version":4,"metadata":{"GridsterConfigService":{"gridType":"fit","fixedColWidth":250,"fixedRowHeight":250,"keepFixedHeightInMobile":false,"keepFixedWidthInMobile":false,"compactType":"none","mobileBreakpoint":640,"minCols":1,"maxCols":100,"minRows":1,"maxRows":100,"defaultItemCols":1,"defaultItemRows":1,"maxItemCols":50,"maxItemRows":50,"minItemCols":1,"minItemRows":1,"minItemArea":1,"maxItemArea":2500,"margin":10,"outerMargin":true,"scrollSensitivity":10,"scrollSpeed":20,"initCallback":{"__symbolic":"reference","name":"undefined"},"destroyCallback":{"__symbolic":"reference","name":"undefined"},"itemChangeCallback":{"__symbolic":"reference","name":"undefined"},"itemResizeCallback":{"__symbolic":"reference","name":"undefined"},"itemInitCallback":{"__symbolic":"reference","name":"undefined"},"itemRemovedCallback":{"__symbolic":"reference","name":"undefined"},"enableEmptyCellClick":false,"enableEmptyCellContextMenu":false,"enableEmptyCellDrop":false,"enableEmptyCellDrag":false,"emptyCellClickCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellContextMenuCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDropCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDragCallback":{"__symbolic":"reference","name":"undefined"},"emptyCellDragMaxCols":50,"emptyCellDragMaxRows":50,"ignoreMarginInRow":false,"draggable":{"delayStart":0,"enabled":false,"ignoreContentClass":"gridster-item-content","ignoreContent":false,"dragHandleClass":"drag-handler","stop":{"__symbolic":"reference","name":"undefined"},"start":{"__symbolic":"reference","name":"undefined"}},"resizable":{"delayStart":0,"enabled":false,"handles":{"s":true,"e":true,"n":true,"w":true,"se":true,"ne":true,"sw":true,"nw":true},"stop":{"__symbolic":"reference","name":"undefined"},"start":{"__symbolic":"reference","name":"undefined"}},"swap":true,"pushItems":false,"disablePushOnDrag":false,"disablePushOnResize":false,"pushDirections":{"north":true,"east":true,"south":true,"west":true},"pushResizeItems":false,"displayGrid":"onDrag&Resize","disableWindowResize":false,"disableWarnings":false,"scrollToNewItems":false}}}]

@@ -79,2 +79,3 @@ import { GridsterItem } from './gridsterItem.interface';

emptyCellDragMaxRows?: number;
ignoreMarginInRow?: boolean;
api?: {

@@ -81,0 +82,0 @@ resize?: () => void;

@@ -45,2 +45,3 @@ import { compactTypes, displayGrids, gridTypes } from './gridsterConfig.interface';

emptyCellDragMaxRows: number;
ignoreMarginInRow: boolean;
api: {

@@ -47,0 +48,0 @@ resize: () => void;

{
"name": "angular-gridster2",
"version": "4.4.2",
"version": "4.5.0",
"license": "MIT",

@@ -51,3 +51,3 @@ "main": "dist/index.js",

"@angular/cdk": "5.1.0",
"@angular/cli": "1.6.4",
"@angular/cli": "1.6.5",
"@angular/common": "5.2.1",

@@ -65,5 +65,5 @@ "@angular/compiler": "5.2.1",

"@angular/router": "5.2.1",
"@types/jasmine": "2.8.4",
"@types/jasmine": "2.8.5",
"@types/node": "9.3.0",
"codelyzer": "4.0.2",
"codelyzer": "4.1.0",
"core-js": "2.5.3",

@@ -74,3 +74,3 @@ "del": "3.0.0",

"hammerjs": "2.0.8",
"jasmine-core": "2.9.0",
"jasmine-core": "2.9.1",
"jasmine-spec-reporter": "4.2.1",

@@ -88,7 +88,7 @@ "karma": "2.0.0",

"ts-node": "4.1.0",
"tslib": "1.8.1",
"tslib": "1.9.0",
"tslint": "5.9.1",
"typescript": "2.5.3",
"typescript": "2.6.2",
"zone.js": "0.8.20"
}
}

@@ -137,2 +137,4 @@ angular-gridster2

emptyCellDragMaxRows: 50, // limit empty cell drag max rows
ignoreMarginInRow: false, // ignore the gap between rows for items which span multiple rows (see #162, #224)
// only for gridType: `fixed` , `verticalFixed`, `horizontalFixed`
draggable: {

@@ -139,0 +141,0 @@ delayStart: 0, // milliseconds to delay the start of resize, useful for touch interaction

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