|
4 | 4 | (igxDragEnter)="onAreaDragEnter($event, filterArea, 2)" (igxDragLeave)="onAreaDragLeave($event, filterArea)"
|
5 | 5 | igxDrop (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()">
|
6 | 6 |
|
7 |
| - <span *ngIf="grid.filterDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Filter Fields here.</span> |
| 7 | + |
8 | 8 |
|
9 | 9 | <!-- Filter area -->
|
10 | 10 | <igx-chips-area #filterArea droppable='true'>
|
| 11 | + <span igxDrop (dropped)="onDimDrop($event, filterArea, 2)" *ngIf="grid.filterDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Filter Fields here.</span> |
11 | 12 | <igx-chip *ngFor="let filter of grid.filterDimensions" [id]="filter.memberName" [draggable]="true"
|
12 | 13 | [displayDensity]="grid.displayDensity"
|
13 | 14 | [removable]="true" (remove)="filterRemoved($event)"
|
14 | 15 | (dragOver)="onDimDragOver($event, 2)"
|
15 | 16 | (dragLeave)="onDimDragLeave($event)"
|
16 |
| - (dragDrop)="onDimDrop($event, filterArea, 2)"> |
| 17 | + (dragDrop)="onDimDrop($event, filterArea, 2)" |
| 18 | + (moveStart)= 'onDimDragStart($event, filterArea)' |
| 19 | + (moveEnd)= 'onDimDragEnd()'> |
17 | 20 | <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, filter)'>filter_list</igx-icon>
|
18 | 21 | {{filter.memberName}}
|
19 | 22 | </igx-chip>
|
| 23 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, filterArea, 2)" #notifyChip [hidden]='true'> |
| 24 | + Drop here to use as filter |
| 25 | + </igx-chip> |
20 | 26 | </igx-chips-area>
|
21 | 27 | </div>
|
22 | 28 |
|
23 | 29 | <div class="igx-grid__tr-pivot-group">
|
24 | 30 | <div #pivotColumnContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot" (dropped)="onDimDrop($event, colArea, 1)" igxDrop
|
25 | 31 | (igxDragEnter)="onAreaDragEnter($event, colArea, 1)" (igxDragLeave)="onAreaDragLeave($event, colArea)">
|
26 |
| - |
27 |
| - <span *ngIf="grid.columnDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Column Fields here.</span> |
28 |
| - |
29 | 32 | <!-- Columns area -->
|
30 | 33 | <igx-chips-area #colArea droppable='true'>
|
| 34 | + <span (dropped)="onDimDrop($event, colArea, 1)" igxDrop *ngIf="grid.columnDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Column Fields here.</span> |
31 | 35 | <igx-chip *ngFor="let col of grid.columnDimensions" [draggable]="true" [id]="col.memberName"
|
32 | 36 | [displayDensity]="grid.displayDensity"
|
33 | 37 | [removable]="true" (remove)="columnRemoved($event)"
|
34 | 38 | (dragOver)="onDimDragOver($event, 1)"
|
35 | 39 | (dragLeave)="onDimDragLeave($event)"
|
36 | 40 | (dragDrop)="onDimDrop($event, colArea, 1)"
|
| 41 | + (moveStart)= 'onDimDragStart($event, colArea)' |
| 42 | + (moveEnd)= 'onDimDragEnd()' |
37 | 43 | (click)="onChipSort($event, col, 1)">
|
38 | 44 | <igx-icon igxPrefix>view_column</igx-icon>
|
39 | 45 | <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, col)'>filter_list</igx-icon>
|
40 | 46 | {{col.memberName}}
|
41 | 47 |
|
42 | 48 | <igx-icon *ngIf="col.sortDirection" igxSuffix> {{ col.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon>
|
43 | 49 | </igx-chip>
|
| 50 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, colArea, 1)" #notifyChip [hidden]='true'> |
| 51 | + Drop here to use as column |
| 52 | + </igx-chip> |
44 | 53 | </igx-chips-area>
|
45 | 54 | </div>
|
46 | 55 |
|
47 | 56 | <div #pivotValueContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot" (pointerdown)="$event.preventDefault()"
|
48 | 57 | (dropped)="onValueDrop($event, valueArea)" igxDrop
|
49 | 58 | (igxDragEnter)="onAreaDragEnter($event, valueArea)"
|
50 | 59 | (igxDragLeave)="onAreaDragLeave($event, valueArea)">
|
51 |
| - |
52 |
| - <span *ngIf="grid.values.length === 0" class='igx-pivot__emptyChipArea'>Drop Value Fields here.</span> |
53 |
| - |
54 | 60 | <!-- Value area -->
|
55 | 61 | <igx-chips-area #valueArea droppable='true'>
|
| 62 | + <span (dropped)="onValueDrop($event, valueArea)" igxDrop *ngIf="grid.values.length === 0" class='igx-pivot__emptyChipArea'>Drop Value Fields here.</span> |
56 | 63 | <igx-chip #currChip *ngFor="let value of grid.values" [draggable]="true" [id]="value.displayName || value.member"
|
57 | 64 | [displayDensity]="grid.displayDensity"
|
58 | 65 | [removable]="true" (remove)="valueRemoved($event)"
|
|
66 | 73 | </div>
|
67 | 74 | {{value.aggregate.key}}({{value.displayName || value.member}})
|
68 | 75 | </igx-chip>
|
| 76 | + <igx-chip igxDrop (dragDrop)="onValueDrop($event, valueArea)" #notifyValueChip [hidden]='true'> |
| 77 | + Drop here to use as value |
| 78 | + </igx-chip> |
69 | 79 | </igx-chips-area>
|
70 | 80 | </div>
|
71 | 81 | </div>
|
|
80 | 90 | <div #pivotContainer class="igx-grid__tr-pivot igx-grid__tr-pivot--row-area" [style.min-width.px]="grid.pivotRowWidths - 1"
|
81 | 91 | (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" (igxDragLeave)="onAreaDragLeave($event, rowArea)"
|
82 | 92 | igxDrop (dropped)="onDimDrop($event, rowArea, 0)" (pointerdown)="$event.preventDefault()">
|
83 |
| - |
84 |
| - <span *ngIf="grid.rowDimensions.length === 0 && grid.showPivotConfigurationUI" class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
85 |
| - |
86 | 93 | <!-- Row area -->
|
87 | 94 | <igx-chips-area #rowArea droppable='true'>
|
88 | 95 | <ng-container *ngIf="grid.showPivotConfigurationUI">
|
| 96 | + <span igxDrop (dropped)="onDimDrop($event, rowArea, 0)" *ngIf="grid.rowDimensions.length === 0 && grid.showPivotConfigurationUI" class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
89 | 97 | <igx-chip *ngFor="let row of grid.rowDimensions" [draggable]="true" [id]="row.memberName"
|
90 | 98 | [displayDensity]="grid.displayDensity"
|
91 | 99 | [removable]="true" (remove)="rowRemoved($event)"
|
92 | 100 | (dragLeave)="onDimDragLeave($event)"
|
93 | 101 | (dragDrop)="onDimDrop($event, rowArea, 0)"
|
94 | 102 | (dragOver)="onDimDragOver($event, 0)"
|
| 103 | + (moveStart)= 'onDimDragStart($event, rowArea)' |
| 104 | + (moveEnd)= 'onDimDragEnd()' |
95 | 105 | (click)="onChipSort($event, row, 0)">
|
96 | 106 | <igx-icon igxPrefix>table_rows</igx-icon>
|
97 | 107 | <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, row)'>filter_list</igx-icon>
|
98 | 108 | {{ row.memberName}}
|
99 | 109 | <igx-icon *ngIf="row.sortDirection" igxSuffix> {{ row.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon>
|
100 | 110 | </igx-chip>
|
| 111 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, rowArea, 0)" #notifyChip [hidden]='true'> |
| 112 | + Drop here to use as row |
| 113 | + </igx-chip> |
101 | 114 | </ng-container>
|
102 | 115 | </igx-chips-area>
|
103 | 116 | </div>
|
|
0 commit comments