fix(ESF): move custom dialog out of ESF markup#17136
Conversation
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Outdated
Show resolved
Hide resolved
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Outdated
Show resolved
Hide resolved
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Outdated
Show resolved
Hide resolved
…hub.com/IgniteUI/igniteui-angular into mvenkov/move-esf-dialog-out-of-dropdown
| if (this.esf.overlayComponentId) { | ||
| this.esf.hide(); | ||
| } | ||
| this.subMenu.close(); | ||
| this.customDialog.open(this.esf.mainDropdown.nativeElement); | ||
| this._overlayService.show(overlayId); |
There was a problem hiding this comment.
I know this PR merely moves things around to remove the outlet usage, but this component can really use some refactoring where the onSubMenuSelection is emitted upwards for the root ESF component to handle, close itself and spawn the dialog. And possibly some actual dialog and/or dialog ARIA would be nice. Just 2c
There was a problem hiding this comment.
Pull request overview
This PR addresses an Excel Style Filtering (ESF) rendering issue where the custom filter dialog could become hidden when its parent ESF component is closed (parent becomes display: none). The fix moves the custom dialog out of the igx-excel-style-conditional-filter markup and shows it via IgxOverlayService.
Changes:
- Remove
<igx-excel-style-custom-dialog>fromexcel-style-conditional-filtertemplate and create/show it dynamically throughIgxOverlayService. - Refactor the custom dialog component to no longer rely on
IgxToggleDirectivefor open/close lifecycle. - Update affected grid filtering UI tests and helper utilities to match the new overlay behavior.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/igniteui-angular/test-utils/grid-functions.spec.ts | Adjusts operator dropdown indexing used by ESF-related test helpers. |
| projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts | Updates ESF size-related tests to align with the new custom dialog hosting/overlay behavior. |
| projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-custom-dialog.component.ts | Removes toggle-based overlay setup and switches to overlay-service-driven close behavior (incl. detach). |
| projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-custom-dialog.component.html | Removes igxToggle host/event bindings from the dialog root element. |
| projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts | Dynamically attaches/initializes the custom dialog via IgxOverlayService instead of using a child component reference. |
| projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.html | Removes the embedded custom dialog element from the component template. |
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Outdated
Show resolved
Hide resolved
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Outdated
Show resolved
Hide resolved
Positioning is reverted back to Note: it will be nice if ESF custom dialog is dragable as advanced filtering dialog is, but this is a feature request |
...igniteui-angular/grids/core/src/filtering/excel-style/excel-style-custom-dialog.component.ts
Outdated
Show resolved
Hide resolved
…/excel-style-custom-dialog.component.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
...igniteui-angular/grids/core/src/filtering/excel-style/excel-style-custom-dialog.component.ts
Show resolved
Hide resolved
...igniteui-angular/grids/core/src/filtering/excel-style/excel-style-custom-dialog.component.ts
Show resolved
Hide resolved
...eui-angular/grids/core/src/filtering/excel-style/excel-style-conditional-filter.component.ts
Show resolved
Hide resolved
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts
Outdated
Show resolved
Hide resolved
damyanpetev
left a comment
There was a problem hiding this comment.
Still find it a bit odd if the condition item attaches and holds the positioning setup, but the dialog detaches itself (which is fine, since there's no external close control to begin with). Like I said in a previous comment, the ESF dialog looks ripe for some rework, so this can go in like that and should be given a once over when possible.


Right now the custom dialog shown in ESF is a child element of the
excel-style-conditional-filtercomponent. When custom dialog is shown its parent is closed. This makes the parent of the dialog invisible, marked withdisplay: none. This effectively hides and the dialog. To fix this custom dialog is now removed fromexcel-style-conditional-filtercomponent. Custom dialog is shown directly viaoverlayservice and is provided as component.Next step will be to remove the grid outlet used to show the custom dialog in the grid as this will not be needed anymore.
Closes #17039
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)