Skip to content

Commit 5118e8d

Browse files
authored
Merge branch 'master' into mkirova/fix-5102-master
2 parents 2eec574 + cb33f58 commit 5118e8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1432
-733
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,24 @@ All notable changes for each version of this project will be documented in this
1212
- You can use this mode to apply directives on the tab items - for example to achieve routing navigation.
1313
- You are allowed to customize tab items with labels, icons and even templates.
1414
- `IgxGrid`
15+
- **Behavioral Change** - paging now includes the group rows in the page size. You may find more information about the change in the [GroupBy Specification](https://github.com/IgniteUI/igniteui-angular/wiki/Group-By-Specification)
1516
- `IgxColumnGroup`
1617
- Re-templating the column group header is now possible using the `headerTemplate` input property or the `igxHeader` directive.
18+
- `igx-grid-footer`
19+
- You can use this to insert a custom footer in the grids.
20+
```html
21+
<igx-grid>
22+
<igx-grid-footer>
23+
Custom content
24+
</igx-grid-footer>
25+
</igx-grid>
26+
```
27+
- `igx-paginator`
28+
- Replaces the current paginator in all grids. Can be used as a standalone component.
1729
- `IgxCombo`
1830
- Input `[overlaySettings]` - allows an object of type `OverlaySettings` to be passed. These custom overlay settings control how the drop-down list displays.
31+
- `IgxForOf` now offers usage of local variables `even`, `odd`, `first` and `last` to help with the distinction of the currently iterated element.
32+
1933

2034
## 8.0.2
2135
- `igx-list-theme` now have some new parameters for styling.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<ng-container *ngIf="!isHeader">
2-
<igx-checkbox [checked]="selected" disableRipple="true" [disableTransitions]="disableTransitions" disabled="true" class="igx-combo__checkbox"></igx-checkbox>
2+
<igx-checkbox [checked]="selected" disableRipple="true" [disableTransitions]="disableTransitions" [tabindex]="-1" (click)="disableCheck($event)" class="igx-combo__checkbox"></igx-checkbox>
33
</ng-container>
44
<ng-content></ng-content>

projects/igniteui-angular/src/lib/combo/combo-item.component.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ export class IgxComboItemComponent extends IgxDropDownItemComponent implements D
9999
this.comboAPI.set_selected_item(this.itemID, event);
100100
}
101101

102+
/**
103+
* @hidden
104+
* @internal
105+
* The event that is prevented is the click on the checkbox label element.
106+
* That is the only visible element that a user can interact with.
107+
* The click propagates to the host and the preventDefault is to stop it from
108+
* switching focus to the input it's base on.
109+
* The toggle happens in an internal handler in the drop-down on the next task queue cycle.
110+
*/
111+
disableCheck(event: MouseEvent) {
112+
event.preventDefault();
113+
}
114+
102115
ngDoCheck() {
103116
}
104117
}

projects/igniteui-angular/src/lib/combo/combo.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</ng-container>
7575
</div>
7676
<igx-combo-add-item [itemHeight]='itemHeight' *ngIf="isAddButtonVisible()" [tabindex]="dropdown.collapsed ? -1 : customValueFlag ? 1 : -1"
77-
class="igx-combo__add-item" igxRipple role="button" aria-label="Add Item" [index]="virtualScrollContainer.igxForOf.length">
77+
class="igx-combo__add-item" role="button" aria-label="Add Item" [index]="virtualScrollContainer.igxForOf.length">
7878
<ng-container *ngTemplateOutlet="addItemTemplate ? addItemTemplate : addItemDefault">
7979
</ng-container>
8080
</igx-combo-add-item>

projects/igniteui-angular/src/lib/combo/combo.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const CSS_CLASS_DROPDOWNBUTTON = 'igx-combo__toggle-button';
2929
const CSS_CLASS_CLEARBUTTON = 'igx-combo__clear-button';
3030
const CSS_CLASS_CHECK_GENERAL = 'igx-combo__checkbox';
3131
const CSS_CLASS_CHECKBOX = 'igx-checkbox';
32+
const CSS_CLASS_CHECKBOX_LABEL = 'igx-checkbox__composite';
3233
const CSS_CLASS_CHECKED = 'igx-checkbox--checked';
3334
const CSS_CLASS_TOGGLE = 'igx-toggle';
3435
const CSS_CLASS_SELECTED = 'igx-drop-down__item--selected';
@@ -950,7 +951,7 @@ describe('igxCombo', () => {
950951
}
951952
function clickItemCheckbox(dropdownElement: any, itemIndex: number) {
952953
const dropdownItems = dropdownElement.querySelectorAll('.' + CSS_CLASS_DROPDOWNLISTITEM);
953-
const checkbox = dropdownItems[itemIndex].querySelector('.' + CSS_CLASS_CHECKBOX) as HTMLElement;
954+
const checkbox = dropdownItems[itemIndex].querySelector('.' + CSS_CLASS_CHECKBOX_LABEL) as HTMLElement;
954955
checkbox.click();
955956
}
956957
function verifyItemIsSelected(

projects/igniteui-angular/src/lib/core/grid-selection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export class IgxGridCRUDService {
105105
return new IgxRow(cell.id.rowID, cell.rowIndex, cell.rowData);
106106
}
107107

108-
sameRow(rowID): boolean {
109-
return this.row && this.row.id === rowID;
108+
sameRow(rowIndex): boolean {
109+
return this.row && this.row.index === rowIndex;
110110
}
111111

112112
sameCell(cell: IgxCell): boolean {
@@ -175,7 +175,7 @@ export class IgxGridCRUDService {
175175
return;
176176
}
177177

178-
if (this.row && !this.sameRow(this.cell.id.rowID)) {
178+
if (this.row && !this.sameRow(this.cell.rowIndex)) {
179179
this.grid.endEdit(true);
180180
this.cell = this.createCell(cell);
181181
this.beginRowEdit();

projects/igniteui-angular/src/lib/core/styles/components/grid-paginator/_grid-paginator-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
z-index: 1;
7474
padding: map-get($paginator-padding, 'comfortable');
7575
height: map-get($paginator-height, 'comfortable');
76-
76+
width: 100%;
77+
7778
&:empty {
7879
padding: 0;
7980
}

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
@extend %grid-tfoot-thumb !optional;
9797
}
9898

99+
@include e(footer) {
100+
@extend %grid-footer !optional;
101+
}
102+
99103
@include e(tr) {
100104
@extend %grid-row !optional;
101105

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,10 @@
732732
z-index: 10001;
733733
}
734734

735+
%grid-footer {
736+
grid-row: 7;
737+
}
738+
735739
%grid-display-container-thead {
736740
width: 100%;
737741
overflow: visible;

projects/igniteui-angular/src/lib/core/styles/components/navdrawer/_navdrawer-theme.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,7 @@
343343

344344
@include igx-scope('.igx-typography') {
345345
%item {
346-
@include igx-type-style($type-scale, $item) {
347-
margin: 0;
348-
}
346+
@include igx-type-style($type-scale, $item);
349347
}
350348

351349
%item--header {

0 commit comments

Comments
 (0)