|
3 | 3 | <div class='igx-grid__tr-pivot--filter-container'>
|
4 | 4 | <div #pivotFilterContainer *ngIf="grid.showPivotConfigurationUI"
|
5 | 5 | class="igx-grid__tr-pivot igx-grid__tr-pivot--filter" [style.min-width.px]="grid.pivotRowWidths - 1"
|
6 |
| - [style.max-width.px]="grid.pivotRowWidths - 1" (igxDragEnter)="onAreaDragEnter($event, filterArea, 2)" |
7 |
| - (igxDragLeave)="onAreaDragLeave($event, filterArea)" igxDrop |
8 |
| - (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()"> |
| 6 | + [style.max-width.px]="grid.pivotRowWidths - 1" (igxDragLeave)="onAreaDragLeave($event, filterArea)" |
| 7 | + igxDrop (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()"> |
9 | 8 | <!-- Filter area -->
|
10 | 9 | <igx-chips-area #filterArea droppable='true'>
|
11 | 10 | <span id='empty' igxDrop (dropped)="onDimDrop($event, filterArea, 2)"
|
12 |
| - *ngIf="grid.filterDimensions.length === 0" class='igx-pivot__emptyChipArea'>{{grid.resourceStrings.igx_grid_pivot_empty_filter_drop_area}}</span> |
| 11 | + *ngIf="grid.filterDimensions.length === 0" |
| 12 | + class='igx-pivot__emptyChipArea'>{{grid.resourceStrings.igx_grid_pivot_empty_filter_drop_area}}</span> |
13 | 13 | <ng-container *ngFor="let filter of grid.filterDimensions; let last = last;">
|
14 | 14 | <span [style.visibility]='"hidden"' class="igx-grid__tr-pivot--chip_drop_indicator"
|
15 | 15 | [style.height.px]='getAreaHeight(filterArea)'></span>
|
|
26 | 26 | [style.height.px]='getAreaHeight(filterArea)'></span>
|
27 | 27 | </ng-container>
|
28 | 28 | </ng-container>
|
29 |
| - <igx-chip igxDrop (dragDrop)="onDimDrop($event, filterArea, 2)" #notifyChip [hidden]='true' [displayDensity]="grid.displayDensity"> |
| 29 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, filterArea, 2)" #notifyChip [hidden]='true' |
| 30 | + [displayDensity]="grid.displayDensity"> |
30 | 31 | {{grid.resourceStrings.igx_grid_pivot_filter_drop_chip}}
|
31 | 32 | </igx-chip>
|
32 | 33 | </igx-chips-area>
|
33 | 34 | </div>
|
34 |
| - <div class='igx-grid__tr-pivot--drop-row-area' (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" |
35 |
| - (igxDragLeave)="onAreaDragLeave($event, rowArea)" igxDrop (dropped)="onDimDrop($event, rowArea, 0)"> |
| 35 | + <div class='igx-grid__tr-pivot--drop-row-area' (igxDragLeave)="onAreaDragLeave($event, rowArea)" igxDrop |
| 36 | + (dropped)="onDimDrop($event, rowArea, 0)"> |
36 | 37 | </div>
|
37 | 38 | </div>
|
38 | 39 |
|
39 | 40 | <div class="igx-grid__tr-pivot-group">
|
40 | 41 | <div #pivotColumnContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot"
|
41 |
| - (dropped)="onDimDrop($event, colArea, 1)" igxDrop (igxDragEnter)="onAreaDragEnter($event, colArea, 1)" |
42 |
| - (igxDragLeave)="onAreaDragLeave($event, colArea)"> |
| 42 | + (dropped)="onDimDrop($event, colArea, 1)" igxDrop (igxDragLeave)="onAreaDragLeave($event, colArea)"> |
43 | 43 | <!-- Columns area -->
|
44 | 44 | <igx-chips-area #colArea droppable='true'>
|
45 |
| - <span id='empty' (dropped)="onDimDrop($event, colArea, 1)" igxDrop *ngIf="grid.columnDimensions.length === 0" |
46 |
| - class='igx-pivot__emptyChipArea'> {{grid.resourceStrings.igx_grid_pivot_empty_column_drop_area}}</span> |
| 45 | + <span id='empty' (dropped)="onDimDrop($event, colArea, 1)" igxDrop |
| 46 | + *ngIf="grid.columnDimensions.length === 0" class='igx-pivot__emptyChipArea'> |
| 47 | + {{grid.resourceStrings.igx_grid_pivot_empty_column_drop_area}}</span> |
47 | 48 | <ng-container *ngFor="let col of grid.columnDimensions; let last = last;">
|
48 | 49 | <span [style.visibility]='"hidden"' class="igx-grid__tr-pivot--chip_drop_indicator"
|
49 | 50 | [style.height.px]='getAreaHeight(colArea)'></span>
|
|
64 | 65 | [style.height.px]='getAreaHeight(colArea)'></span>
|
65 | 66 | </ng-container>
|
66 | 67 | </ng-container>
|
67 |
| - <igx-chip igxDrop (dragDrop)="onDimDrop($event, colArea, 1)" #notifyChip [hidden]='true' [displayDensity]="grid.displayDensity"> |
| 68 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, colArea, 1)" #notifyChip [hidden]='true' |
| 69 | + [displayDensity]="grid.displayDensity"> |
68 | 70 | {{grid.resourceStrings.igx_grid_pivot_column_drop_chip}}
|
69 | 71 | </igx-chip>
|
70 | 72 | </igx-chips-area>
|
71 | 73 | </div>
|
72 | 74 |
|
73 | 75 | <div #pivotValueContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot"
|
74 | 76 | (pointerdown)="$event.preventDefault()" (dropped)="onValueDrop($event, valueArea)" igxDrop
|
75 |
| - (igxDragEnter)="onAreaDragEnter($event, valueArea)" (igxDragLeave)="onAreaDragLeave($event, valueArea)"> |
| 77 | + (igxDragLeave)="onAreaDragLeave($event, valueArea)"> |
76 | 78 | <!-- Value area -->
|
77 | 79 | <igx-chips-area #valueArea droppable='true'>
|
78 | 80 | <span id='empty' (dropped)="onValueDrop($event, valueArea)" igxDrop *ngIf="grid.values.length === 0"
|
79 | 81 | class='igx-pivot__emptyChipArea'>{{grid.resourceStrings.igx_grid_pivot_empty_value_drop_area}}</span>
|
80 | 82 | <ng-container *ngFor="let value of grid.values; let last = last;">
|
81 | 83 | <span [style.visibility]='"hidden"' class="igx-grid__tr-pivot--chip_drop_indicator"
|
82 |
| - [style.height.px]='getAreaHeight(valueArea)'></span> |
| 84 | + [style.height.px]='getAreaHeight(valueArea)'></span> |
83 | 85 | <igx-chip #currChip [draggable]="true" [id]="value.displayName || value.member"
|
84 | 86 | [displayDensity]="grid.displayDensity" [removable]="true" (remove)="valueRemoved($event)"
|
85 | 87 | (dragLeave)="onDimDragLeave($event)" (dragOver)="onDimDragOver($event)"
|
|
97 | 99 | [style.height.px]='getAreaHeight(valueArea)'></span>
|
98 | 100 | </ng-container>
|
99 | 101 | </ng-container>
|
100 |
| - <igx-chip igxDrop (dragDrop)="onValueDrop($event, valueArea)" #notifyValueChip [hidden]='true' [displayDensity]="grid.displayDensity"> |
| 102 | + <igx-chip igxDrop (dragDrop)="onValueDrop($event, valueArea)" #notifyValueChip [hidden]='true' |
| 103 | + [displayDensity]="grid.displayDensity"> |
101 | 104 | {{grid.resourceStrings.igx_grid_pivot_value_drop_chip}}
|
102 | 105 | </igx-chip>
|
103 | 106 | </igx-chips-area>
|
|
112 | 115 | <!-- Column headers area -->
|
113 | 116 | <div class="igx-grid__tr" role="row" [style.width.px]="width">
|
114 | 117 | <div #pivotContainer class="igx-grid__tr-pivot igx-grid__tr-pivot--row-area"
|
115 |
| - [style.min-width.px]="grid.pivotRowWidths - 1" (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" |
116 |
| - (igxDragLeave)="onAreaDragLeave($event, rowArea)" igxDrop (dropped)="onDimDrop($event, rowArea, 0)" |
117 |
| - (pointerdown)="$event.preventDefault()"> |
| 118 | + [style.min-width.px]="grid.pivotRowWidths - 1" (igxDragLeave)="onAreaDragLeave($event, rowArea)" igxDrop |
| 119 | + (dropped)="onDimDrop($event, rowArea, 0)" (pointerdown)="$event.preventDefault()"> |
118 | 120 | <!-- Row area -->
|
119 | 121 | <igx-chips-area #rowArea droppable='true'>
|
120 | 122 | <ng-container *ngIf="grid.showPivotConfigurationUI">
|
|
141 | 143 | [style.height.px]='getAreaHeight(rowArea)'></span>
|
142 | 144 | </ng-container>
|
143 | 145 | </ng-container>
|
144 |
| - <igx-chip igxDrop (dragDrop)="onDimDrop($event, rowArea, 0)" #notifyChip [hidden]='true' [displayDensity]="grid.displayDensity"> |
| 146 | + <igx-chip igxDrop (dragDrop)="onDimDrop($event, rowArea, 0)" #notifyChip [hidden]='true' |
| 147 | + [displayDensity]="grid.displayDensity"> |
145 | 148 | {{grid.resourceStrings.igx_grid_pivot_row_drop_chip}}
|
146 | 149 | </igx-chip>
|
147 | 150 | </ng-container>
|
|
0 commit comments