|
|
@ -24,7 +24,7 @@ |
|
|
|
<span *ngIf="drag.isDraggable" |
|
|
|
<span *ngIf="drag.isDraggable" |
|
|
|
class="grid--area-drag-handle |
|
|
|
class="grid--area-drag-handle |
|
|
|
icon |
|
|
|
icon |
|
|
|
icon-drag-handle" |
|
|
|
icon-drag-handle hidden-for-mobile" |
|
|
|
cdkDragHandle></span> |
|
|
|
cdkDragHandle></span> |
|
|
|
|
|
|
|
|
|
|
|
<ndc-dynamic [ndcDynamicComponent]="widgetComponent(area)" |
|
|
|
<ndc-dynamic [ndcDynamicComponent]="widgetComponent(area)" |
|
|
@ -47,7 +47,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- One grid area per cell (row x columns) --> |
|
|
|
<!-- One grid area per cell (row x columns) --> |
|
|
|
<div *ngFor="let area of layout.gridAreas; trackBy: identifyGridArea;" |
|
|
|
<div *ngFor="let area of layout.gridAreas; trackBy: identifyGridArea;" |
|
|
|
class="grid--area" |
|
|
|
class="grid--area hidden-for-mobile" |
|
|
|
[ngClass] = "{'-drop-target': drag.currentlyDragging, |
|
|
|
[ngClass] = "{'-drop-target': drag.currentlyDragging, |
|
|
|
'-drop-only': drag.isDropOnlyArea(area), |
|
|
|
'-drop-only': drag.isDropOnlyArea(area), |
|
|
|
'-resize-target': resize.isTarget(area), |
|
|
|
'-resize-target': resize.isTarget(area), |
|
|
@ -62,15 +62,14 @@ |
|
|
|
(mouseover)="layout.setMousedOverArea(area)" |
|
|
|
(mouseover)="layout.setMousedOverArea(area)" |
|
|
|
[cdkDropListData]="area" |
|
|
|
[cdkDropListData]="area" |
|
|
|
[cdkDropListConnectedTo]="layout.gridAreaIds"> |
|
|
|
[cdkDropListConnectedTo]="layout.gridAreaIds"> |
|
|
|
<div class="grid--widget-add hidden-for-mobile" |
|
|
|
<div class="grid--widget-add" |
|
|
|
*ngIf="layout.schema" |
|
|
|
|
|
|
|
[title]="add.addText" |
|
|
|
[title]="add.addText" |
|
|
|
(click)="add.widget(area)"> |
|
|
|
(click)="add.widget(area)"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div *ngFor="let gap of layout.gridGaps; trackBy: identifyGridArea;" |
|
|
|
<div *ngFor="let gap of layout.gridGaps; trackBy: identifyGridArea;" |
|
|
|
class="grid--area -gap" |
|
|
|
class="grid--area -gap hidden-for-mobile" |
|
|
|
[ngClass] = "{'-addable': add.isAddable(gap), |
|
|
|
[ngClass] = "{'-addable': add.isAddable(gap), |
|
|
|
'-help-mode': layout.inHelpMode, |
|
|
|
'-help-mode': layout.inHelpMode, |
|
|
|
'-row': gap.isRow, |
|
|
|
'-row': gap.isRow, |
|
|
@ -81,8 +80,7 @@ |
|
|
|
[style.grid-column-end]="gap.gridEndColumn" |
|
|
|
[style.grid-column-end]="gap.gridEndColumn" |
|
|
|
[id]="gap.guid" |
|
|
|
[id]="gap.guid" |
|
|
|
(mouseover)="layout.setMousedOverArea(gap)"> |
|
|
|
(mouseover)="layout.setMousedOverArea(gap)"> |
|
|
|
<div class="grid--widget-add -gap hidden-for-mobile" |
|
|
|
<div class="grid--widget-add -gap" |
|
|
|
*ngIf="layout.schema" |
|
|
|
|
|
|
|
[title]="add.addText" |
|
|
|
[title]="add.addText" |
|
|
|
(click)="add.widget(gap)"> |
|
|
|
(click)="add.widget(gap)"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|