@@ -13,15 +13,7 @@ import {
1313 output ,
1414 viewChild
1515} from '@angular/core' ;
16- import {
17- CompactType ,
18- DisplayGrid ,
19- GridType ,
20- GridsterComponent ,
21- GridsterConfig ,
22- GridsterItem ,
23- GridsterItemComponent
24- } from 'angular-gridster2' ;
16+ import { CompactType , DisplayGrid , GridType , Gridster , GridsterConfig , GridsterItem , GridsterItemConfig } from 'angular-gridster2' ;
2517import { ThyViewOutletDirective } from 'ngx-tethys/shared' ;
2618import { coerceBooleanProperty } from 'ngx-tethys/util' ;
2719import { Observable , Subject , of } from 'rxjs' ;
@@ -33,7 +25,7 @@ import { ThyWidgetItem, ThyWidgetVieOutletWithContext, ThyWidgetViewOutlet, Widg
3325 templateUrl : './dashboard.component.html' ,
3426 changeDetection : ChangeDetectionStrategy . OnPush ,
3527 host : { class : 'thy-dashboard' } ,
36- imports : [ GridsterComponent , GridsterItemComponent , ThyViewOutletDirective ]
28+ imports : [ Gridster , GridsterItem , ThyViewOutletDirective ]
3729} )
3830export class ThyDashboardComponent implements OnInit , OnChanges , AfterViewInit , OnDestroy {
3931 /**
@@ -80,7 +72,7 @@ export class ThyDashboardComponent implements OnInit, OnChanges, AfterViewInit,
8072 disablePushOnDrag : true ,
8173 useTransformPositioning : false ,
8274 outerMargin : true ,
83- itemChangeCallback : ( item : GridsterItem ) => {
75+ itemChangeCallback : ( item : GridsterItemConfig ) => {
8476 const widgets = this . thyWidgets ( ) ;
8577 const changedWidget = widgets . find ( ( widget ) => {
8678 return widget . _id === item . widget . _id ;
0 commit comments