Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular
Browse files Browse the repository at this point in the history
…into mkirkova/feat-12212
  • Loading branch information
MonikaKirkova committed Nov 11, 2022
2 parents ebfa4f6 + 76aa753 commit 3734b76
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ All notable changes for each version of this project will be documented in this
- `detailTemplate` - Gets/Sets the master-detail template.

- **Behavioral Change** - When adding new row in grid with enabled batch editing, `rowChangesCount` displays the number of the defined columns.
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
- **Behavioral Change** - When editing a row, `rowChangesCount` and `hiddenColumnsCount`would be displayed.

## 14.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ describe('IgxGrid - Row Editing #grid', () => {
});

it(`Should update row changes when focus overlay buttons on tabbing`, (async () => {
grid.getColumnByName("ID").hidden = true;
grid.tbody.nativeElement.focus();
fix.detectChanges();

Expand All @@ -807,7 +808,7 @@ describe('IgxGrid - Row Editing #grid', () => {
UIInteractions.triggerEventHandlerKeyDown('tab', gridContent, false, true);
fix.detectChanges();

expect(GridFunctions.getRowEditingBannerText(fix)).toBe('You have 1 changes in this row');
expect(GridFunctions.getRowEditingBannerText(fix)).toBe('You have 1 changes in this row and 1 hidden columns');

// go to last editable cell
grid.rowEditTabs.first.handleTab(UIInteractions.getKeyboardEvent('keydown', 'tab', false, true));
Expand All @@ -827,7 +828,7 @@ describe('IgxGrid - Row Editing #grid', () => {
UIInteractions.triggerEventHandlerKeyDown('tab', gridContent);
fix.detectChanges();

expect(GridFunctions.getRowEditingBannerText(fix)).toBe('You have 2 changes in this row');
expect(GridFunctions.getRowEditingBannerText(fix)).toBe('You have 2 changes in this row and 1 hidden columns');
}));

it(`Should focus last edited cell after click on editable buttons`, (async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
</div>

<ng-template #defaultRowEditText>
You have {{ rowChangesCount }} changes in this row
You have {{ rowChangesCount }} changes in this row and {{ hiddenColumnsCount }} hidden columns
</ng-template>

<ng-template #defaultRowEditActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</div>
</div>
<ng-template #defaultRowEditText>
You have {{ rowChangesCount }} changes in this row
You have {{ rowChangesCount }} changes in this row and {{ hiddenColumnsCount }} hidden columns
</ng-template>
<ng-template #defaultRowEditActions>
<button igxButton igxRowEditTabStop (click)="this.endRowEditTabStop(false, $event)">{{ this.resourceStrings.igx_grid_row_edit_btn_cancel }}</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ describe('IgxHierarchicalGrid Runtime Row Island change Scenarios #hGrid', () =>
const mainGridOverlayTextContent = mainGridOverlay.querySelector('.igx-banner__text').textContent;
const mainGridOverlayActionsContent = mainGridOverlay.querySelector('.igx-banner__actions').textContent;

expect(mainGridOverlayTextContent).toBe(' You have 0 changes in this row\n');
expect(mainGridOverlayTextContent).toBe(' You have 0 changes in this row and 0 hidden columns\n');
expect(mainGridOverlayActionsContent).toBe('CancelDone');

hierarchicalGrid.expandRow(hierarchicalGrid.getRowByIndex(0).key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
</div>

<ng-template #defaultRowEditText>
You have {{ rowChangesCount }} changes in this row
You have {{ rowChangesCount }} changes in this row and {{ hiddenColumnsCount }} hidden columns
</ng-template>

<ng-template #defaultRowEditActions>
Expand Down

0 comments on commit 3734b76

Please sign in to comment.