|
1 |
| -<div class="igx-grid-thead__wrapper" role="row" [style.width.px]="width"> |
| 1 | +<div class="igx-grid-thead__wrapper igx-grid-thead__wrapper--pivot" role="row" [style.width.px]="width"> |
2 | 2 | <div class="igx-grid__tr" role="row" [style.width.px]="width">
|
3 |
| - <div #pivotFilterContainer class="igx-grid__tr-action" [style.min-width.px]="grid.pivotRowWidths" |
| 3 | + <div #pivotFilterContainer class="igx-grid__tr-pivot igx-grid__tr-pivot--filter" [style.min-width.px]="grid.pivotRowWidths - 1" |
4 | 4 | (igxDragEnter)="onAreaDragEnter($event, filterArea, 2)" (igxDragLeave)="onAreaDragLeave($event, filterArea)"
|
5 |
| - igxDrop (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()" |
6 |
| - style='display: flex; align-items: flex-end;'> |
7 |
| - <div *ngIf="grid.filterDimensions.length === 0"> |
8 |
| - <span class='igx-pivot__emptyChipArea'>Drop Filter Fields here.</span> |
9 |
| - </div> |
| 5 | + igxDrop (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()"> |
| 6 | + |
| 7 | + <span *ngIf="grid.filterDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Filter Fields here.</span> |
| 8 | + |
10 | 9 | <!-- Filter area -->
|
11 |
| - <igx-chips-area #filterArea droppable='true' style="width:fit-content; height: 100%;"> |
| 10 | + <igx-chips-area #filterArea droppable='true'> |
12 | 11 | <igx-chip *ngFor="let filter of grid.filterDimensions" [id]="filter.memberName" [draggable]="true"
|
13 | 12 | [removable]="true" (remove)="filterRemoved($event)"
|
14 | 13 | (dragOver)="onDimDragOver($event, 2)"
|
|
21 | 20 | </igx-chips-area>
|
22 | 21 | </div>
|
23 | 22 |
|
24 |
| - <div> |
25 |
| - <div #pivotColumnContainer (dropped)="onDimDrop($event, colArea, 1)" igxDrop |
| 23 | + <div class="igx-grid__tr-pivot-group"> |
| 24 | + <div #pivotColumnContainer class="igx-grid__tr-pivot" (dropped)="onDimDrop($event, colArea, 1)" igxDrop |
26 | 25 | (igxDragEnter)="onAreaDragEnter($event, colArea, 1)" (igxDragLeave)="onAreaDragLeave($event, colArea)">
|
27 |
| - <div *ngIf="grid.columnDimensions.length === 0"> |
28 |
| - <span class='igx-pivot__emptyChipArea'>Drop Column Fields here.</span> |
29 |
| - </div> |
| 26 | + |
| 27 | + <span *ngIf="grid.columnDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Column Fields here.</span> |
| 28 | + |
30 | 29 | <!-- Columns area -->
|
31 |
| - <igx-chips-area #colArea droppable='true' style="width:fit-content; height: 100%;"> |
| 30 | + <igx-chips-area #colArea droppable='true'> |
32 | 31 | <igx-chip *ngFor="let col of grid.columnDimensions" [draggable]="true" [id]="col.memberName"
|
33 | 32 | [removable]="true" (remove)="columnRemoved($event)"
|
34 | 33 | (dragOver)="onDimDragOver($event, 1)"
|
|
44 | 43 | </igx-chip>
|
45 | 44 | </igx-chips-area>
|
46 | 45 | </div>
|
47 |
| - <div #pivotValueContainer [style.min-width.px]="grid.unpinnedWidth" (pointerdown)="$event.preventDefault()" |
| 46 | + |
| 47 | + <div #pivotValueContainer class="igx-grid__tr-pivot" (pointerdown)="$event.preventDefault()" |
48 | 48 | (dropped)="onValueDrop($event, valueArea)" igxDrop
|
49 | 49 | (igxDragEnter)="onAreaDragEnter($event, valueArea)"
|
50 | 50 | (igxDragLeave)="onAreaDragLeave($event, valueArea)">
|
51 | 51 |
|
52 |
| - <div *ngIf="grid.values.length === 0"> |
53 |
| - <span class='igx-pivot__emptyChipArea'>Drop Value Fields here.</span> |
54 |
| - </div> |
| 52 | + <span *ngIf="grid.values.length === 0" class='igx-pivot__emptyChipArea'>Drop Value Fields here.</span> |
| 53 | + |
55 | 54 | <!-- Value area -->
|
56 |
| - <igx-chips-area #valueArea droppable='true' style="width:fit-content; height: 100%;"> |
| 55 | + <igx-chips-area #valueArea droppable='true'> |
57 | 56 | <igx-chip #currChip *ngFor="let value of grid.values" [draggable]="true" [id]="value.member"
|
58 | 57 | [removable]="true" (remove)="valueRemoved($event)"
|
59 | 58 | (dragLeave)="onDimDragLeave($event)"
|
|
71 | 70 | </div>
|
72 | 71 | </div>
|
73 | 72 | </div>
|
| 73 | + |
74 | 74 | <div role="rowgroup" class="igx-grid-thead__wrapper" [style.width.px]="width"
|
75 | 75 | [attr.aria-activedescendant]="activeDescendant" [class.igx-grid__tr--mrl]="hasMRL">
|
| 76 | + |
76 | 77 | <!-- Column headers area -->
|
77 | 78 | <div class="igx-grid__tr" role="row" [style.width.px]="width">
|
| 79 | + <div #pivotContainer class="igx-grid__tr-pivot igx-grid__tr-pivot--row-area" [style.min-width.px]="grid.pivotRowWidths" |
| 80 | + (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" (igxDragLeave)="onAreaDragLeave($event, rowArea)" |
| 81 | + igxDrop (dropped)="onDimDrop($event, rowArea, 0)" (pointerdown)="$event.preventDefault()"> |
78 | 82 |
|
79 |
| - <ng-container> |
80 |
| - <div #pivotContainer class="igx-grid__tr-action" [style.min-width.px]="grid.pivotRowWidths" |
81 |
| - (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" (igxDragLeave)="onAreaDragLeave($event, rowArea)" |
82 |
| - igxDrop (dropped)="onDimDrop($event, rowArea, 0)" (pointerdown)="$event.preventDefault()" |
83 |
| - style='display: flex; align-items: flex-end; z-index: 4; background: inherit;'> |
84 |
| - |
85 |
| - <div *ngIf="grid.rowDimensions.length === 0"> |
86 |
| - <span class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
87 |
| - </div> |
88 |
| - <!-- Row area --> |
89 |
| - <igx-chips-area #rowArea droppable='true' style="width:fit-content; height: 100%;"> |
90 |
| - <igx-chip *ngFor="let row of grid.rowDimensions" [draggable]="true" [id]="row.memberName" |
91 |
| - [removable]="true" (remove)="rowRemoved($event)" |
92 |
| - (dragLeave)="onDimDragLeave($event)" |
93 |
| - (dragDrop)="onDimDrop($event, rowArea, 0)" |
94 |
| - (dragOver)="onDimDragOver($event, 0)" |
95 |
| - (click)="onChipSort($event, row, 0)"> |
96 |
| - <igx-icon igxPrefix>table_rows</igx-icon> |
97 |
| - <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, row)'>filter_list</igx-icon> |
98 |
| - {{ row.memberName}} |
99 |
| - <igx-icon *ngIf="row.sortDirection" igxSuffix> {{ row.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon> |
100 |
| - </igx-chip> |
101 |
| - </igx-chips-area> |
102 |
| - </div> |
103 |
| - </ng-container> |
| 83 | + <span *ngIf="grid.rowDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
| 84 | + |
| 85 | + <!-- Row area --> |
| 86 | + <igx-chips-area #rowArea droppable='true'> |
| 87 | + <igx-chip *ngFor="let row of grid.rowDimensions" [draggable]="true" [id]="row.memberName" |
| 88 | + [removable]="true" (remove)="rowRemoved($event)" |
| 89 | + (dragLeave)="onDimDragLeave($event)" |
| 90 | + (dragDrop)="onDimDrop($event, rowArea, 0)" |
| 91 | + (dragOver)="onDimDragOver($event, 0)" |
| 92 | + (click)="onChipSort($event, row, 0)"> |
| 93 | + <igx-icon igxPrefix>table_rows</igx-icon> |
| 94 | + <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, row)'>filter_list</igx-icon> |
| 95 | + {{ row.memberName}} |
| 96 | + <igx-icon *ngIf="row.sortDirection" igxSuffix> {{ row.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon> |
| 97 | + </igx-chip> |
| 98 | + </igx-chips-area> |
| 99 | + </div> |
104 | 100 |
|
105 | 101 | <!-- Pinned columns collection from the start -->
|
106 | 102 | <ng-container *ngIf="pinnedColumnCollection.length && grid.isPinningToStart">
|
|
139 | 135 | </ng-container>
|
140 | 136 | </div>
|
141 | 137 | </div>
|
| 138 | + |
142 | 139 | <!-- Header thumb area -->
|
143 | 140 | <div class="igx-grid-thead__thumb" [hidden]="!grid.hasVerticalScroll()" [style.width.px]="grid.scrollSize">
|
144 | 141 | </div>
|
|
0 commit comments