Skip to content

Commit da6682f

Browse files
authored
Merge branch 'master' into simeonoff/fix-7167
2 parents 5e54c9c + 65f60b5 commit da6682f

File tree

13 files changed

+161
-119
lines changed

13 files changed

+161
-119
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ All notable changes for each version of this project will be documented in this
77
### General
88
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
99
- **Behavioral Change** - When a column is sortable sort indicator is always visible. The column is sorted when click on it.
10+
- `igx-paginator` - The following inputs have been deprecated for the `paginator` component and will be removed in future versions
11+
- `selectLabel` and `prepositionPage` Use 'resourceStrings' to set/get values.
1012

1113
- `IgxInputGroup`
1214
- **Renamed** `supressInputAutofocus` input to `suppressInputAutofocus`

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
export interface IPaginatorResourceStrings {
22
igx_paginator_label?: string;
33
igx_paginator_pager_text?: string;
4+
igx_paginator_first_page_button_text?: string;
5+
igx_paginator_previous_page_button_text?: string;
6+
igx_paginator_last_page_button_text?: string;
7+
igx_paginator_next_page_button_text?: string;
48
}
59

610
export const PaginatorResourceStringsEN: IPaginatorResourceStrings = {
711
igx_paginator_label: 'Items per page',
8-
igx_paginator_pager_text: 'of'
12+
igx_paginator_pager_text: 'of',
13+
igx_paginator_first_page_button_text: 'Go to first page',
14+
igx_paginator_previous_page_button_text: 'Previous page',
15+
igx_paginator_last_page_button_text: 'Go to last page',
16+
igx_paginator_next_page_button_text: 'Next page',
917
};

projects/igniteui-angular/src/lib/grids/filtering/base/grid-filtering-row.component.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { IBaseChipEventArgs, IgxChipsAreaComponent, IgxChipComponent } from '../
2424
import { ExpressionUI } from '../grid-filtering.service';
2525
import { IgxDropDownItemComponent } from '../../../drop-down/drop-down-item.component';
2626
import { IgxFilteringService } from '../grid-filtering.service';
27-
import { KEYS, isEdge, isIE } from '../../../core/utils';
27+
import { KEYS, isEdge } from '../../../core/utils';
2828
import { AbsoluteScrollStrategy } from '../../../services/overlay/scroll';
2929

3030
/**
@@ -262,11 +262,8 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
262262
public onInput(eventArgs) {
263263
// The 'iskeyPressed' flag is needed for a case in IE, because the input event is fired on focus and for some reason,
264264
// when you have a japanese character as a placeholder, on init the value here is empty string .
265-
// There is no need to reset the value on every invalid number input.
266-
// The invalid value is converted to empty string input type="number"
267-
const target = eventArgs.target;
268-
if (isEdge() && target.type !== 'number' || this.isKeyPressed && isIE() || target.value) {
269-
this.value = target.value;
265+
if (isEdge() || this.isKeyPressed || eventArgs.target.value) {
266+
this.value = eventArgs.target.value;
270267
}
271268
}
272269

projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy {
350350
}
351351
}
352352

353-
constructor(private cdr: ChangeDetectorRef) {}
353+
constructor(private cdr: ChangeDetectorRef, private element: ElementRef) {}
354354

355355
/**
356356
* @hidden @internal
@@ -519,7 +519,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy {
519519
this.customDialog.selectedOperator = eventArgs.newSelection.value;
520520
eventArgs.cancel = true;
521521
if (this.overlayComponentId) {
522-
this.mainDropdown.nativeElement.style.display = 'none';
522+
this.element.nativeElement.style.display = 'none';
523523
}
524524
this.subMenu.close();
525525
this.customDialog.open(this.mainDropdown.nativeElement);

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
229229

230230
expect(grid.rowList.length).toEqual(3);
231231
verifyFilterRowUI(input, close, reset, false);
232-
233-
// greater than or equal to with invalid value should not reset filter
234-
GridFunctions.openFilterDDAndSelectCondition(fix, 4);
235-
GridFunctions.typeValueInFilterRowInput('254..', fix, input);
236-
237-
expect(grid.rowList.length).toEqual(3);
238-
verifyFilterRowUI(input, close, reset, false);
239232
}));
240233

241234
// UI tests boolean column

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929

3030
<div class="igx-grid__thead">
31-
<div class="igx-grid__thead-wrapper" [class.igx-grid__tr--mrl]='hasColumnLayouts' role="composite" (focus)="navigation.focusFirstCell()"
31+
<div class="igx-grid__thead-wrapper" [class.igx-grid__tr--mrl]='hasColumnLayouts' role="rowgroup" (focus)="navigation.focusFirstCell()"
3232
[style.width.px]='calcWidth' tabindex="0" [attr.aria-activedescendant]="activeDescendant" (keydown)="navigation.headerNavigation($event)" (scroll)="preventHeaderScroll($event)" #theadRow>
3333
<div class="igx-grid__tr" role="row" [style.width.px]='calcWidth'>
3434
<span *ngIf="hasMovableColumns && draggedColumn && pinnedColumns.length <= 0"
@@ -209,7 +209,7 @@
209209
<div class="igx-grid__tfoot" role="rowgroup" [style.height.px]='summariesHeight' tabindex="0" [attr.aria-activedescendant]="activeDescendant"
210210
(focus)="navigation.focusFirstCell(false)" (keydown)="navigation.summaryNav($event)" #tfoot>
211211
<igx-grid-summary-row [style.width.px]='calcWidth' [style.height.px]='summariesHeight'
212-
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id"
212+
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id" role="row"
213213
[summaries]="id | igxGridSummaryDataPipe:summaryService.retriggerRootPipe" [index]="dataView.length"
214214
class="igx-grid__summaries" #summaryRow>
215215
</igx-grid-summary-row>

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
<div class="igx-grid__tfoot" tabindex="0" (focus)="navigation.focusFirstCell(false)" [attr.aria-activedescendant]="activeDescendant"
168168
(keydown)="navigation.summaryNav($event)" role="rowgroup" [style.height.px]='summariesHeight' #tfoot>
169169
<igx-grid-summary-row [style.width.px]='calcWidth' [style.height.px]='summariesHeight'
170-
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id"
170+
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id" role="row"
171171
[summaries]="id | igxGridSummaryDataPipe:summaryService.retriggerRootPipe" [index]="dataView.length"
172172
class="igx-grid__summaries" #summaryRow>
173173
</igx-grid-summary-row>

projects/igniteui-angular/src/lib/grids/summaries/summary-row.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<ng-template igxGridFor let-col [igxGridForOf]="unpinnedColumns | igxNotGrouped" [igxForScrollContainer]="grid.parentVirtDir" let-colIndex="index" [igxForScrollOrientation]="'horizontal'" [igxForContainerSize]="grid.unpinnedWidth" [igxForTrackBy]="grid.trackColumnChanges" [igxForSizePropName]='"calcPixelWidth"' #igxDirRef>
1313
<igx-grid-summary-cell
1414
class="igx-grid-summary igx-grid-summary--fw"
15+
role="cell"
1516
[class.igx-grid-summary--cosy]="grid.displayDensity === 'cosy'"
1617
[class.igx-grid-summary--compact]="grid.displayDensity === 'compact'"
1718
[class.igx-grid-summary--empty]="!col.hasSummary"
@@ -37,6 +38,7 @@
3738

3839
<ng-template #summaryCellTemplate let-col>
3940
<igx-grid-summary-cell *ngFor="let col of pinnedColumns | igxNotGrouped"
41+
role="cell"
4042
class="igx-grid-summary igx-grid-summary--fw igx-grid-summary--pinned"
4143
[class.igx-grid-summary--cosy]="grid.displayDensity === 'cosy'"
4244
[class.igx-grid-summary--compact]="grid.displayDensity === 'compact'"

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142

143143
<div class="igx-grid__tfoot" role="rowgroup" [style.height.px]='summariesHeight' tabindex="0" [attr.aria-activedescendant]="activeDescendant" (focus)="navigation.focusFirstCell(false)" (keydown)="navigation.summaryNav($event)" #tfoot>
144144
<igx-grid-summary-row [style.width.px]='calcWidth' [style.height.px]='summariesHeight'
145-
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id"
145+
*ngIf="hasSummarizedColumns && rootSummariesEnabled" [gridID]="id" role="row"
146146
[summaries]="id | igxGridSummaryDataPipe:summaryService.retriggerRootPipe" [index]="dataView.length"
147147
class="igx-grid__summaries" #summaryRow>
148148
</igx-grid-summary-row>

0 commit comments

Comments
 (0)