From c7b5d688acd74cf36f88d812267b9c242108c351 Mon Sep 17 00:00:00 2001 From: Tiberiu Zuld Date: Tue, 11 Apr 2017 22:38:27 +0300 Subject: [PATCH] fix on options objects take only properties that matter update tslint@5.1.0 --- dist/gridster.component.d.ts | 2 +- dist/gridster.component.js | 8 ++++---- dist/gridster.component.js.map | 2 +- dist/gridsterConfig.interface.d.ts | 1 + dist/gridsterItem.component.js | 2 +- dist/gridsterItem.component.js.map | 2 +- dist/gridsterItem.interface.d.ts | 1 + dist/gridsterUtils.service.d.ts | 2 +- dist/gridsterUtils.service.js | 6 +++--- dist/gridsterUtils.service.js.map | 2 +- package.json | 4 ++-- src/lib/gridster.component.ts | 10 +++++----- src/lib/gridsterConfig.interface.ts | 1 + src/lib/gridsterItem.component.ts | 2 +- src/lib/gridsterItem.interface.ts | 1 + src/lib/gridsterUtils.service.ts | 6 +++--- 16 files changed, 28 insertions(+), 24 deletions(-) diff --git a/dist/gridster.component.d.ts b/dist/gridster.component.d.ts index f4a8cf07..0555a9c4 100644 --- a/dist/gridster.component.d.ts +++ b/dist/gridster.component.d.ts @@ -35,7 +35,7 @@ export declare class GridsterComponent implements OnInit, OnDestroy { calculateLayout(): void; addItem(item: GridsterItem): void; removeItem(item: GridsterItem): void; - checkCollision(item: GridsterItem): GridsterItem; + checkCollision(item: GridsterItem): GridsterItem | boolean; findItemWithItem(item: GridsterItem): GridsterItem; autoPositionItem(item: GridsterItem): void; pixelsToPosition(x: number, y: number, roundingMethod: Function): [number, number]; diff --git a/dist/gridster.component.js b/dist/gridster.component.js index 6630ed10..82604e76 100644 --- a/dist/gridster.component.js +++ b/dist/gridster.component.js @@ -23,7 +23,7 @@ var GridsterComponent = (function () { ; GridsterComponent.prototype.ngOnInit = function () { this.options.optionsChanged = this.optionsChanged.bind(this); - this.state.options = gridsterUtils_service_1.GridsterUtils.merge(this.state.options, this.options); + this.state.options = gridsterUtils_service_1.GridsterUtils.merge(this.state.options, this.options, this.state.options); this.setGridSize(); this.calculateLayoutDebounce = gridsterUtils_service_1.GridsterUtils.debounce(this.calculateLayout.bind(this), 5); this.calculateLayoutDebounce(); @@ -47,7 +47,7 @@ var GridsterComponent = (function () { } }; GridsterComponent.prototype.optionsChanged = function () { - this.state.options = gridsterUtils_service_1.GridsterUtils.merge(this.state.options, this.options); + this.state.options = gridsterUtils_service_1.GridsterUtils.merge(this.state.options, this.options, this.state.options); this.calculateLayout(); }; GridsterComponent.prototype.ngOnDestroy = function () { @@ -182,7 +182,7 @@ var GridsterComponent = (function () { } else if (this.checkCollision(item)) { console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + - JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); + JSON.stringify(item, ['cols', 'rows', 'x', 'y'])); item.x = undefined; item.y = undefined; this.autoPositionItem(item); @@ -246,7 +246,7 @@ var GridsterComponent = (function () { } else { console.warn('Can\'t be placed in the bounds of the dashboard!/n' + - JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); + JSON.stringify(item, ['cols', 'rows', 'x', 'y'])); } }; GridsterComponent.prototype.pixelsToPosition = function (x, y, roundingMethod) { diff --git a/dist/gridster.component.js.map b/dist/gridster.component.js.map index 0cabf466..2c764871 100644 --- a/dist/gridster.component.js.map +++ b/dist/gridster.component.js.map @@ -1 +1 @@ -{"version":3,"sources":["../.tmp/gridster.component.ts"],"names":[],"mappings":";;AAAA,sCAAyF;AACzF,qEAAgE;AAEhE,iEAAsD;AAItD;IAsBE,2BAAY,EAAc,EAAS,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QACpD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG;YACX,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,+CAAqB,CAAC,CAAC;YAC1D,gBAAg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,CAAC,IAAI,CAAC,CAAC;QACZ,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,MAAM,CAAC,KAAK,CAAC;QACf,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAgBH,wBAAC;AAAD,CAlWA,AAkWC;AAfM,4BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;gBAC1E,MAAM,EAAE,CAAC,2lBAA2lB,CAAC;aACtmB,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,gCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;IACpB,EAAC,IAAI,EAAE,gBAAS,GAAG;CAClB,EAH6F,CAG7F,CAAC;AACK,gCAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC5B,CAAC;AAjWW,8CAAiB","file":"gridster.component.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["../.tmp/gridster.component.ts"],"names":[],"mappings":";;AAAA,sCAAyF;AACzF,qEAAgE;AAEhE,iEAAsD;AAItD;IAsBE,2BAAY,EAAc,EAAS,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QACpD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG;YACX,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,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,CAAC;QACH,CAAC;IACH,CAAC;IAED,iDAAqB,GAArB,UAAsB,IAAkB;QACtC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QACZ,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,MAAM,CAAC,KAAK,CAAC;QACf,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAgBH,wBAAC;AAAD,CAlWA,AAkWC;AAfM,4BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;gBAC1E,MAAM,EAAE,CAAC,2lBAA2lB,CAAC;aACtmB,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,gCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;IACpB,EAAC,IAAI,EAAE,gBAAS,GAAG;CAClB,EAH6F,CAG7F,CAAC;AACK,gCAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC5B,CAAC;AAjWW,8CAAiB","file":"gridster.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/gridsterConfig.interface.d.ts b/dist/gridsterConfig.interface.d.ts index be808e4b..05201fd3 100644 --- a/dist/gridsterConfig.interface.d.ts +++ b/dist/gridsterConfig.interface.d.ts @@ -26,6 +26,7 @@ export interface GridsterConfig { draggable?: Draggable; resizable?: Resizable; swap?: boolean; + [propName: string]: any; } export interface Draggable { enabled?: boolean; diff --git a/dist/gridsterItem.component.js b/dist/gridsterItem.component.js index 175941d1..fecb625e 100644 --- a/dist/gridsterItem.component.js +++ b/dist/gridsterItem.component.js @@ -30,7 +30,7 @@ var GridsterItemComponent = (function () { this.gridster = gridster; } GridsterItemComponent.prototype.ngOnInit = function () { - this.state.item = gridsterUtils_service_1.GridsterUtils.merge(this.state.item, this.item); + this.state.item = gridsterUtils_service_1.GridsterUtils.merge(this.state.item, this.item, this.state.item); this.gridster.addItem(this.state.item); }; GridsterItemComponent.prototype.ngOnDestroy = function () { diff --git a/dist/gridsterItem.component.js.map b/dist/gridsterItem.component.js.map index 74046c88..55b4d032 100644 --- a/dist/gridsterItem.component.js.map +++ b/dist/gridsterItem.component.js.map @@ -1 +1 @@ -{"version":3,"sources":["../.tmp/gridsterItem.component.ts"],"names":[],"mappings":";;AAAA,sCAAqH;AAErH,2DAAuD;AACvD,yEAA8D;AAC9D,yEAA8D;AAC9D,iEAAsD;AAGtD;IAoBE,+BAAY,EAAc,EAAG,QAA2B,EAAS,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QAlBnF,eAAU,GAA+B,IAAI,mBAAY,EAAE,CAAC;QAC5D,eAAU,GAA+B,IAAI,mBAAY,EAAE,CAAC;QAkB3D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG;YACX,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,YAAY,EAAE,SAAS;gBACvB,WAAW,EAAE,SAAS;gBACtB,aAAa,EAAE,SAAS;gBACxB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;gBAChC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;gBAClD,IAAI,EAAE,IAAI,6CAAiB,CAAC,IAAI,CAAC;gBACj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,IAAI,CAAC,IAAI,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YAChC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YAChC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;YAChC,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAoBH,4BAAC;AAAD,CAvIA,AAuIC;AAlBM,gCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,2pEAA2lE;gBACrmE,MAAM,EAAE,CAAC,80DAA80D,CAAC;aACz1D,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,oCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;IACpB,EAAC,IAAI,EAAE,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;IACzD,EAAC,IAAI,EAAE,gBAAS,GAAG;CAClB,EAJ6F,CAI7F,CAAC;AACK,oCAAc,GAA2C;IAChE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACjC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;CAChC,CAAC;AAtIW,sDAAqB","file":"gridsterItem.component.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["../.tmp/gridsterItem.component.ts"],"names":[],"mappings":";;AAAA,sCAAqH;AAErH,2DAAuD;AACvD,yEAA8D;AAC9D,yEAA8D;AAC9D,iEAAsD;AAGtD;IAoBE,+BAAY,EAAc,EAAG,QA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C,80DAA80D,CAAC;aACz1D,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,oCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;IACpB,EAAC,IAAI,EAAE,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;IACzD,EAAC,IAAI,EAAE,gBAAS,GAAG;CAClB,EAJ6F,CAI7F,CAAC;AACK,oCAAc,GAA2C;IAChE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACjC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;CAChC,CAAC;AAtIW,sDAAqB","file":"gridsterItem.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/gridsterItem.interface.d.ts b/dist/gridsterItem.interface.d.ts index 5572e66a..33b9f058 100644 --- a/dist/gridsterItem.interface.d.ts +++ b/dist/gridsterItem.interface.d.ts @@ -17,4 +17,5 @@ export interface GridsterItem { minItemCols?: number; drag?: GridsterDraggable; resize?: GridsterResizable; + [propName: string]: any; } diff --git a/dist/gridsterUtils.service.d.ts b/dist/gridsterUtils.service.d.ts index acf2de81..544c18b6 100644 --- a/dist/gridsterUtils.service.d.ts +++ b/dist/gridsterUtils.service.d.ts @@ -1,4 +1,4 @@ export declare class GridsterUtils { - static merge(obj1: any, obj2: any): any; + static merge(obj1: any, obj2: any, properties: any): any; static debounce(func: any, wait: any): () => void; } diff --git a/dist/gridsterUtils.service.js b/dist/gridsterUtils.service.js index b94927ae..857516ee 100644 --- a/dist/gridsterUtils.service.js +++ b/dist/gridsterUtils.service.js @@ -4,11 +4,11 @@ var core_1 = require("@angular/core"); var GridsterUtils = (function () { function GridsterUtils() { } - GridsterUtils.merge = function (obj1, obj2) { + GridsterUtils.merge = function (obj1, obj2, properties) { for (var p in obj2) { - if (obj2.hasOwnProperty(p)) { + if (obj2.hasOwnProperty(p) && properties.hasOwnProperty(p)) { if (typeof obj2[p] === 'object') { - obj1[p] = GridsterUtils.merge(obj1[p], obj2[p]); + obj1[p] = GridsterUtils.merge(obj1[p], obj2[p], properties[p]); } else { obj1[p] = obj2[p]; diff --git a/dist/gridsterUtils.service.js.map b/dist/gridsterUtils.service.js.map index 4ec6dfc3..8c0389f3 100644 --- a/dist/gridsterUtils.service.js.map +++ b/dist/gridsterUtils.service.js.map @@ -1 +1 @@ -{"version":3,"sources":["../.tmp/gridsterUtils.service.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AAGzC;IAAA;IAkCA,CAAC;IAhCQ,mBAAK,GAAZ,UAAa,IAAI,EAAE,IAAI;QACrB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YACnB,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3B,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC;oBAChC,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClD,CAAC;gBAAC,IAAI,CAAC,CAAC;oBACN,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBACpB,CAAC;YACH,CAAC;QACH,CAAC;QAED,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAEM,sBAAQ,GAAf,UAAgB,IAAI,EAAE,IAAI;QACxB,IAAI,OAAO,CAAC;QACZ,MAAM,CAAC;YACL,IAAM,OAAO,GAAG,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;YACvC,IAAI,KAAK,GAAG;gBACV,OAAO,GAAG,IAAI,CAAC;gBACf,IAAI,CA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AAE,IAAI;QACxB,IAAI,OAAO,CAAC;QACZ,MAAM,CAAC;YACL,IAAM,OAAO,GAAG,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;YACvC,IAAI,KAAK,GAAG;gBACV,OAAO,GAAG,IAAI,CAAC;gBACf,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC;YACF,YAAY,CAAC,OAAO,CAAC,CAAC;YACtB,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC;IAAA,CAAC;IAOJ,oBAAC;AAAD,CAlCA,AAkCC;AANM,wBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,iBAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,4BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;AAjCW,sCAAa","file":"gridsterUtils.service.js","sourceRoot":""} \ No newline at end of file diff --git a/package.json b/package.json index bc2cc696..bb9fcb61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-gridster2", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "main": "dist/index.js", "jsnext:main": "dist/index.js", @@ -83,7 +83,7 @@ "ts-helpers": "1.1.2", "ts-node": "3.0.2", "tslib": "1.6.0", - "tslint": "5.0.0", + "tslint": "5.1.0", "typescript": "2.2.2", "zone.js": "0.8.5" } diff --git a/src/lib/gridster.component.ts b/src/lib/gridster.component.ts index 9df6e678..ac3b0914 100644 --- a/src/lib/gridster.component.ts +++ b/src/lib/gridster.component.ts @@ -49,7 +49,7 @@ export class GridsterComponent implements OnInit, OnDestroy { ngOnInit() { this.options.optionsChanged = this.optionsChanged.bind(this); - this.state.options = GridsterUtils.merge(this.state.options, this.options); + this.state.options = GridsterUtils.merge(this.state.options, this.options, this.state.options); this.setGridSize(); this.calculateLayoutDebounce = GridsterUtils.debounce(this.calculateLayout.bind(this), 5); this.calculateLayoutDebounce(); @@ -73,7 +73,7 @@ export class GridsterComponent implements OnInit, OnDestroy { } optionsChanged() { - this.state.options = GridsterUtils.merge(this.state.options, this.options); + this.state.options = GridsterUtils.merge(this.state.options, this.options, this.state.options); this.calculateLayout(); } @@ -208,7 +208,7 @@ export class GridsterComponent implements OnInit, OnDestroy { this.autoPositionItem(item); } else if (this.checkCollision(item)) { console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + - JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); + JSON.stringify(item, ['cols', 'rows', 'x', 'y'])); item.x = undefined; item.y = undefined; this.autoPositionItem(item); @@ -225,7 +225,7 @@ export class GridsterComponent implements OnInit, OnDestroy { this.calculateLayoutDebounce(); } - checkCollision(item: GridsterItem): GridsterItem { + checkCollision(item: GridsterItem): GridsterItem | boolean { const noNegativePosition = item.y > -1 && item.x > -1; const maxGridCols = item.cols + item.x <= this.state.options.maxCols; const maxGridRows = item.rows + item.y <= this.state.options.maxRows; @@ -273,7 +273,7 @@ export class GridsterComponent implements OnInit, OnDestroy { item.x = 0; } else { console.warn('Can\'t be placed in the bounds of the dashboard!/n' + - JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); + JSON.stringify(item, ['cols', 'rows', 'x', 'y'])); } } diff --git a/src/lib/gridsterConfig.interface.ts b/src/lib/gridsterConfig.interface.ts index 362eaf30..69958383 100644 --- a/src/lib/gridsterConfig.interface.ts +++ b/src/lib/gridsterConfig.interface.ts @@ -27,6 +27,7 @@ export interface GridsterConfig { draggable?: Draggable; resizable?: Resizable; swap?: boolean; + [propName: string]: any; } export interface Draggable { diff --git a/src/lib/gridsterItem.component.ts b/src/lib/gridsterItem.component.ts index aca1b84c..c3c98648 100644 --- a/src/lib/gridsterItem.component.ts +++ b/src/lib/gridsterItem.component.ts @@ -53,7 +53,7 @@ export class GridsterItemComponent implements OnInit, OnDestroy { } ngOnInit() { - this.state.item = GridsterUtils.merge(this.state.item, this.item); + this.state.item = GridsterUtils.merge(this.state.item, this.item, this.state.item); this.gridster.addItem(this.state.item); } diff --git a/src/lib/gridsterItem.interface.ts b/src/lib/gridsterItem.interface.ts index 18a646fe..2e8766dc 100644 --- a/src/lib/gridsterItem.interface.ts +++ b/src/lib/gridsterItem.interface.ts @@ -17,4 +17,5 @@ export interface GridsterItem { minItemCols?: number; drag?: GridsterDraggable; resize?: GridsterResizable; + [propName: string]: any; } diff --git a/src/lib/gridsterUtils.service.ts b/src/lib/gridsterUtils.service.ts index 822e5b39..41a9f9c9 100644 --- a/src/lib/gridsterUtils.service.ts +++ b/src/lib/gridsterUtils.service.ts @@ -3,11 +3,11 @@ import {Injectable} from '@angular/core'; @Injectable() export class GridsterUtils { - static merge(obj1, obj2) { + static merge(obj1, obj2, properties) { for (let p in obj2) { - if (obj2.hasOwnProperty(p)) { + if (obj2.hasOwnProperty(p) && properties.hasOwnProperty(p)) { if (typeof obj2[p] === 'object') { - obj1[p] = GridsterUtils.merge(obj1[p], obj2[p]); + obj1[p] = GridsterUtils.merge(obj1[p], obj2[p], properties[p]); } else { obj1[p] = obj2[p]; }