angular-gridster2
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -8,3 +8,3 @@ "use strict"; | ||
var gridsterCompact_service_1 = require("./gridsterCompact.service"); | ||
var GridsterComponent = (function () { | ||
var GridsterComponent = /** @class */ (function () { | ||
function GridsterComponent(el, renderer, cdRef) { | ||
@@ -11,0 +11,0 @@ this.renderer = renderer; |
@@ -9,3 +9,3 @@ import { GridsterConfigS } from './gridsterConfigS.interface'; | ||
import { GridsterItemS } from './gridsterItemS.interface'; | ||
export interface GridsterComponentInterface { | ||
export declare abstract class GridsterComponentInterface { | ||
$options: GridsterConfigS; | ||
@@ -12,0 +12,0 @@ grid: Array<GridsterItemComponent>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var GridsterComponentInterface = /** @class */ (function () { | ||
function GridsterComponentInterface() { | ||
} | ||
return GridsterComponentInterface; | ||
}()); | ||
exports.GridsterComponentInterface = GridsterComponentInterface; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterComponentInterface":{"__symbolic":"interface"}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterComponentInterface":{"__symbolic":"class"}}}] |
@@ -9,3 +9,3 @@ "use strict"; | ||
var gridsterGrid_component_1 = require("./gridsterGrid.component"); | ||
var GridsterModule = (function () { | ||
var GridsterModule = /** @class */ (function () { | ||
function GridsterModule() { | ||
@@ -12,0 +12,0 @@ } |
@@ -8,6 +8,6 @@ import { GridsterItemComponent } from './gridsterItem.component'; | ||
checkCompact(): void; | ||
checkCompactUp(): boolean; | ||
checkCompactUp(): void; | ||
moveUpTillCollision(itemComponent: GridsterItemComponent): boolean; | ||
checkCompactLeft(): boolean; | ||
checkCompactLeft(): void; | ||
moveLeftTillCollision(itemComponent: GridsterItemComponent): boolean; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var GridsterCompact = (function () { | ||
var gridster_interface_1 = require("./gridster.interface"); | ||
var GridsterCompact = /** @class */ (function () { | ||
function GridsterCompact(gridster) { | ||
@@ -47,3 +48,2 @@ this.gridster = gridster; | ||
} | ||
return widgetMovedUp; | ||
}; | ||
@@ -79,3 +79,2 @@ GridsterCompact.prototype.moveUpTillCollision = function (itemComponent) { | ||
} | ||
return widgetMovedUp; | ||
}; | ||
@@ -98,3 +97,3 @@ GridsterCompact.prototype.moveLeftTillCollision = function (itemComponent) { | ||
GridsterCompact.ctorParameters = function () { return [ | ||
null, | ||
{ type: gridster_interface_1.GridsterComponentInterface, }, | ||
]; }; | ||
@@ -101,0 +100,0 @@ return GridsterCompact; |
@@ -147,3 +147,3 @@ "use strict"; | ||
// disable console log warnings about misplacement of grid items | ||
scrollToNewItems: false, | ||
scrollToNewItems: false // scroll to new items placed in a scrollable view | ||
}; |
@@ -8,3 +8,5 @@ "use strict"; | ||
var gridsterUtils_service_1 = require("./gridsterUtils.service"); | ||
var GridsterDraggable = (function () { | ||
var gridsterItemComponent_interface_1 = require("./gridsterItemComponent.interface"); | ||
var gridster_interface_1 = require("./gridster.interface"); | ||
var GridsterDraggable = /** @class */ (function () { | ||
function GridsterDraggable(gridsterItem, gridster) { | ||
@@ -235,4 +237,4 @@ this.gridsterItem = gridsterItem; | ||
GridsterDraggable.ctorParameters = function () { return [ | ||
null, | ||
null, | ||
{ type: gridsterItemComponent_interface_1.GridsterItemComponentInterface, }, | ||
{ type: gridster_interface_1.GridsterComponentInterface, }, | ||
]; }; | ||
@@ -239,0 +241,0 @@ return GridsterDraggable; |
@@ -5,3 +5,4 @@ "use strict"; | ||
var gridsterUtils_service_1 = require("./gridsterUtils.service"); | ||
var GridsterEmptyCell = (function () { | ||
var gridster_interface_1 = require("./gridster.interface"); | ||
var GridsterEmptyCell = /** @class */ (function () { | ||
function GridsterEmptyCell(gridster) { | ||
@@ -54,3 +55,3 @@ this.gridster = gridster; | ||
GridsterEmptyCell.prototype.emptyCellClickCb = function (e) { | ||
if (this.gridster.movingItem || gridsterUtils_service_1.GridsterUtils.checkContentClassForEvent(this.gridster, e)) { | ||
if (this.gridster.movingItem || gridsterUtils_service_1.GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) { | ||
return; | ||
@@ -68,3 +69,3 @@ } | ||
GridsterEmptyCell.prototype.emptyCellContextMenuCb = function (e) { | ||
if (this.gridster.movingItem || gridsterUtils_service_1.GridsterUtils.checkContentClassForEvent(this.gridster, e)) { | ||
if (this.gridster.movingItem || gridsterUtils_service_1.GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) { | ||
return; | ||
@@ -104,3 +105,3 @@ } | ||
GridsterEmptyCell.prototype.emptyCellMouseDown = function (e) { | ||
if (gridsterUtils_service_1.GridsterUtils.checkContentClassForEvent(this.gridster, e)) { | ||
if (gridsterUtils_service_1.GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) { | ||
return; | ||
@@ -190,3 +191,3 @@ } | ||
GridsterEmptyCell.ctorParameters = function () { return [ | ||
null, | ||
{ type: gridster_interface_1.GridsterComponentInterface, }, | ||
]; }; | ||
@@ -193,0 +194,0 @@ return GridsterEmptyCell; |
@@ -5,3 +5,3 @@ "use strict"; | ||
var gridster_component_1 = require("./gridster.component"); | ||
var GridsterGridComponent = (function () { | ||
var GridsterGridComponent = /** @class */ (function () { | ||
function GridsterGridComponent(el, gridster, renderer, cdRef) { | ||
@@ -8,0 +8,0 @@ this.renderer = renderer; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var gridsterUtils_service_1 = require("./gridsterUtils.service"); | ||
var GridsterItemComponent = (function () { | ||
var GridsterItemComponent = /** @class */ (function () { | ||
function GridsterItemComponent(el, gridster, renderer) { | ||
@@ -11,0 +11,0 @@ this.renderer = renderer; |
@@ -7,3 +7,3 @@ import { GridsterItem } from './gridsterItem.interface'; | ||
import { GridsterComponentInterface } from './gridster.interface'; | ||
export interface GridsterItemComponentInterface { | ||
export declare abstract class GridsterItemComponentInterface { | ||
item: GridsterItem; | ||
@@ -10,0 +10,0 @@ $item: GridsterItemS; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var GridsterItemComponentInterface = /** @class */ (function () { | ||
function GridsterItemComponentInterface() { | ||
} | ||
return GridsterItemComponentInterface; | ||
}()); | ||
exports.GridsterItemComponentInterface = GridsterItemComponentInterface; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterItemComponentInterface":{"__symbolic":"interface"}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterItemComponentInterface":{"__symbolic":"class"}}}] |
@@ -5,3 +5,3 @@ "use strict"; | ||
var gridster_component_1 = require("./gridster.component"); | ||
var GridsterPreviewComponent = (function () { | ||
var GridsterPreviewComponent = /** @class */ (function () { | ||
function GridsterPreviewComponent(el, gridster, renderer) { | ||
@@ -8,0 +8,0 @@ this.renderer = renderer; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var GridsterPush = (function () { | ||
var gridsterItemComponent_interface_1 = require("./gridsterItemComponent.interface"); | ||
var GridsterPush = /** @class */ (function () { | ||
function GridsterPush(gridsterItem) { | ||
@@ -281,3 +282,3 @@ this.pushedItems = []; | ||
GridsterPush.ctorParameters = function () { return [ | ||
null, | ||
{ type: gridsterItemComponent_interface_1.GridsterItemComponentInterface, }, | ||
]; }; | ||
@@ -284,0 +285,0 @@ return GridsterPush; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var gridsterItemComponent_interface_1 = require("./gridsterItemComponent.interface"); | ||
var gridster_component_1 = require("./gridster.component"); | ||
var GridsterPushResize = (function () { | ||
var GridsterPushResize = /** @class */ (function () { | ||
function GridsterPushResize(gridsterItem) { | ||
@@ -218,3 +219,3 @@ this.pushedItems = []; | ||
GridsterPushResize.ctorParameters = function () { return [ | ||
null, | ||
{ type: gridsterItemComponent_interface_1.GridsterItemComponentInterface, }, | ||
]; }; | ||
@@ -221,0 +222,0 @@ return GridsterPushResize; |
@@ -8,3 +8,5 @@ "use strict"; | ||
var gridsterPushResize_service_1 = require("./gridsterPushResize.service"); | ||
var GridsterResizable = (function () { | ||
var gridsterItemComponent_interface_1 = require("./gridsterItemComponent.interface"); | ||
var gridster_interface_1 = require("./gridster.interface"); | ||
var GridsterResizable = /** @class */ (function () { | ||
function GridsterResizable(gridsterItem, gridster) { | ||
@@ -341,4 +343,4 @@ this.gridsterItem = gridsterItem; | ||
GridsterResizable.ctorParameters = function () { return [ | ||
null, | ||
null, | ||
{ type: gridsterItemComponent_interface_1.GridsterItemComponentInterface, }, | ||
{ type: gridster_interface_1.GridsterComponentInterface, }, | ||
]; }; | ||
@@ -345,0 +347,0 @@ return GridsterResizable; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var GridsterSwap = (function () { | ||
var gridsterItemComponent_interface_1 = require("./gridsterItemComponent.interface"); | ||
var GridsterSwap = /** @class */ (function () { | ||
function GridsterSwap(gridsterItem) { | ||
@@ -81,3 +82,3 @@ this.gridsterItem = gridsterItem; | ||
GridsterSwap.ctorParameters = function () { return [ | ||
null, | ||
{ type: gridsterItemComponent_interface_1.GridsterItemComponentInterface, }, | ||
]; }; | ||
@@ -84,0 +85,0 @@ return GridsterSwap; |
@@ -7,3 +7,4 @@ import { GridsterComponentInterface } from './gridster.interface'; | ||
static checkContentClassForEvent(gridster: GridsterComponentInterface, e: any): boolean; | ||
static checkContentClassForEmptyCellClickEvent(gridster: GridsterComponentInterface, e: any): boolean; | ||
static checkContentClass(target: any, current: any, contentClass: string): boolean; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var GridsterUtils = (function () { | ||
var GridsterUtils = /** @class */ (function () { | ||
function GridsterUtils() { | ||
@@ -57,2 +57,6 @@ } | ||
}; | ||
GridsterUtils.checkContentClassForEmptyCellClickEvent = function (gridster, e) { | ||
return GridsterUtils.checkContentClass(e.target, e.currentTarget, gridster.$options.draggable.ignoreContentClass) | ||
|| GridsterUtils.checkContentClass(e.target, e.currentTarget, gridster.$options.draggable.dragHandleClass); | ||
}; | ||
GridsterUtils.checkContentClass = function (target, current, contentClass) { | ||
@@ -59,0 +63,0 @@ if (target === current) { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}]}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"statics":{"checkContentClassForEmptyCellClickEvent":{"__symbolic":"function","parameters":["gridster","e"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"GridsterUtils"},"member":"checkContentClass"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"e"},"member":"target"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"e"},"member":"currentTarget"},{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"gridster"},"member":"$options"},"member":"draggable"},"member":"ignoreContentClass"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"GridsterUtils"},"member":"checkContentClass"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"e"},"member":"target"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"e"},"member":"currentTarget"},{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"gridster"},"member":"$options"},"member":"draggable"},"member":"dragHandleClass"}]}}}}}}}] |
{ | ||
"name": "angular-gridster2", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"license": "MIT", | ||
@@ -49,19 +49,19 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@angular/animations": "5.1.1", | ||
"@angular/cdk": "5.0.1", | ||
"@angular/cli": "1.6.1", | ||
"@angular/common": "5.1.1", | ||
"@angular/compiler": "5.1.1", | ||
"@angular/compiler-cli": "5.1.1", | ||
"@angular/core": "5.1.1", | ||
"@angular/forms": "5.1.1", | ||
"@angular/http": "5.1.1", | ||
"@angular/language-service": "5.1.1", | ||
"@angular/material": "5.0.1", | ||
"@angular/platform-browser": "5.1.1", | ||
"@angular/platform-browser-dynamic": "5.1.1", | ||
"@angular/platform-server": "5.1.1", | ||
"@angular/router": "5.1.1", | ||
"@angular/animations": "5.1.2", | ||
"@angular/cdk": "5.0.2", | ||
"@angular/cli": "1.6.2", | ||
"@angular/common": "5.1.2", | ||
"@angular/compiler": "5.1.2", | ||
"@angular/compiler-cli": "5.1.2", | ||
"@angular/core": "5.1.2", | ||
"@angular/forms": "5.1.2", | ||
"@angular/http": "5.1.2", | ||
"@angular/language-service": "5.1.2", | ||
"@angular/material": "5.0.2", | ||
"@angular/platform-browser": "5.1.2", | ||
"@angular/platform-browser-dynamic": "5.1.2", | ||
"@angular/platform-server": "5.1.2", | ||
"@angular/router": "5.1.2", | ||
"@types/jasmine": "2.8.2", | ||
"@types/node": "8.5.1", | ||
"@types/node": "8.5.2", | ||
"codelyzer": "4.0.2", | ||
@@ -88,5 +88,5 @@ "core-js": "2.5.3", | ||
"tslint": "5.8.0", | ||
"typescript": "2.4.2", | ||
"typescript": "2.5.3", | ||
"zone.js": "0.8.18" | ||
} | ||
} |
@@ -173,3 +173,3 @@ angular-gridster2 | ||
disableWarnings: false, // disable console log warnings about misplacement of grid items | ||
scrollToNewItems: false, // scroll to new items placed in a scrollable view | ||
scrollToNewItems: false // scroll to new items placed in a scrollable view | ||
}; | ||
@@ -176,0 +176,0 @@ ``` |
Sorry, the diff of this file is not supported yet
182705
3209