Skip to content

Commit 16b7132

Browse files
authored
Merge branch '10.2.x' into dTsvetkov/fix-issue-8320-master
2 parents 358c3e6 + ba7e2cc commit 16b7132

File tree

4 files changed

+69
-2
lines changed

4 files changed

+69
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/dock-manager/_dock-manager-theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/// @param {Color} $context-menu-color-active [null] - Sets the text color for active context menus.
2020
/// @param {Color} $dock-background [null] - Sets the background color of the dock manager.
2121
/// @param {Color} $dock-text [null] - Sets the text color of the dock manager.
22+
/// @param {Color} $drop-shadow-background [null] - Sets the drop-shadow background color.
2223
/// @param {Color} $floating-pane-border-color [null] - Sets the border color for floating panes.
2324
/// @param {Color} $flyout-shadow-color [null] - Sets the flyout shadow color.
2425
/// @param {Color} $joystick-background [null] - Sets the background color of the joystick.

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_dock-manager.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @prop {Color} context-menu-color [null] - Sets the text color for context menus.
1818
/// @prop {Color} dock-background [null] - Sets the background color of the dock manager.
1919
/// @prop {Color} dock-text [null] - Sets the text color of the dock manager.
20+
/// @prop {Color} drop-shadow-background [igx-color: 'primary', rgba: .2] - Sets the drop-shadow background color.
2021
/// @prop {Color} floating-pane-border-color [igx-color: 'surface'] - Sets the border color for floating panes.
2122
/// @prop {Color} flyout-shadow-color [rgba(0, 0, 0, .08)] - Sets the flyout shadow color.
2223
/// @prop {Color} joystick-background [null] - Sets the background color of the joystick.
@@ -62,6 +63,10 @@ $_light-dock-manager: (
6263
context-menu-color: null,
6364
dock-background: null,
6465
dock-text: null,
66+
drop-shadow-background: (
67+
igx-color: ('primary', 500),
68+
rgba: .2
69+
),
6570
floating-pane-border-color: (
6671
igx-color: 'surface',
6772
),

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
152152
});
153153

154154
esf.listDataLoaded.pipe(takeUntil(this.destroy$)).subscribe(() => {
155-
this.filterListData();
155+
this.searchValue ?
156+
this.clearInput() :
157+
this.filterListData();
156158
});
157159
}
158160

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

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,49 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
46514651
expect(excelMenu).not.toBeNull();
46524652
expect(inputNativeElement.value).toBe('', 'input isn\'t cleared correctly');
46534653
}));
4654-
});
4654+
4655+
it('Should clear search criteria when selecting clear column filters option.', fakeAsync(() => {
4656+
GridFunctions.clickExcelFilterIconFromCode(fix, grid, 'ProductName');
4657+
4658+
let checkboxes = GridFunctions.getExcelStyleFilteringCheckboxes(fix);
4659+
fix.detectChanges();
4660+
4661+
checkboxes[0].click();
4662+
tick();
4663+
fix.detectChanges();
4664+
4665+
checkboxes[2].click();
4666+
tick();
4667+
fix.detectChanges();
4668+
4669+
GridFunctions.clickApplyExcelStyleFiltering(fix);
4670+
tick();
4671+
fix.detectChanges();
4672+
expect(grid.filteredData.length).toEqual(1);
4673+
4674+
GridFunctions.clickExcelFilterIconFromCode(fix, grid, 'ProductName');
4675+
flush();
4676+
4677+
let inputNativeElement = GridFunctions.getExcelStyleSearchComponentInput(fix);
4678+
UIInteractions.clickAndSendInputElementValue(inputNativeElement, 'Net', fix);
4679+
4680+
const listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix);
4681+
expect(listItems.length).toBe(3, 'incorrect rendered list items count');
4682+
4683+
GridFunctions.clickClearFilterInExcelStyleFiltering(fix);
4684+
flush();
4685+
expect(grid.filteredData).toBeNull();
4686+
4687+
inputNativeElement = GridFunctions.getExcelStyleSearchComponentInput(fix);
4688+
expect(inputNativeElement.value).toBe('', 'search criteria is not cleared');
4689+
4690+
checkboxes = GridFunctions.getExcelStyleFilteringCheckboxes(fix);
4691+
const listItemsCheckboxes = checkboxes.slice(1, checkboxes.length);
4692+
for (const checkbox of listItemsCheckboxes) {
4693+
ControlsFunction.verifyCheckboxState(checkbox.parentElement);
4694+
}
4695+
}));
4696+
});
46554697

46564698
describe('Templates: ', () => {
46574699
let fix, grid;
@@ -4801,6 +4843,23 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
48014843
GridSelectionFunctions.verifyColumnAndCellsSelected(columnId, false);
48024844

48034845
});
4846+
4847+
it('Should reset esf menu with templates on column change', fakeAsync(() => {
4848+
GridFunctions.clickExcelFilterIconFromCode(fix, grid, 'Downloads');
4849+
flush();
4850+
4851+
let inputNativeElement = GridFunctions.getExcelStyleSearchComponentInput(fix);
4852+
UIInteractions.clickAndSendInputElementValue(inputNativeElement, 20, fix);
4853+
4854+
const listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix);
4855+
expect(listItems.length).toBe(3, 'incorrect rendered list items count');
4856+
4857+
GridFunctions.clickExcelFilterIconFromCode(fix, grid, 'ProductName');
4858+
flush();
4859+
4860+
inputNativeElement = GridFunctions.getExcelStyleSearchComponentInput(fix);
4861+
expect(inputNativeElement.value).toBe('', 'input value didn\'t reset');
4862+
}));
48044863
});
48054864

48064865
describe('Load values on demand', () => {

0 commit comments

Comments
 (0)