Skip to content

Grids templates refactoring #9256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 93 commits into from
Jul 6, 2021
Merged

Conversation

rkaraivanov
Copy link
Member

@rkaraivanov rkaraivanov commented Apr 2, 2021

Closes #9556

feat: Refactored grid header row templates/logic into a separate component to be used by the grids
feat: Group-by area is encapsulated as its own component
refactor: Various API changes (internal only). Simplified some templates, abstracted some logic
refactor: Drag scroll behaviors (column moving, range cell selection) are now aligned with the new grid scroll animation frame
behavior. Got to be smooth..
refactor: Unit test adjustments

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

* Moved common template logic for the grid header area in a header row component.
* Group by logic is encapsulated in its own component now.
* Use new components in templates
* Code styling, types and cleanups
* More code styles, types and cleanup
* Cleanup code and add types where applicable
* Adjusted unit tests
* Expose native element on chip component and adjust tests
kdinev
kdinev previously approved these changes Jun 28, 2021
simeonoff
simeonoff previously approved these changes Jun 28, 2021
@zdrawku zdrawku assigned ddincheva and dobromirts and unassigned simeonoff and zdrawku Jun 28, 2021
@ddincheva ddincheva added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Jun 29, 2021
@ddincheva ddincheva added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Jun 29, 2021
* @hidden @internal
*/
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reordering chips in the group by area doesn't work very well with OnPush strategy. That's why we have removed it in the Tree Grid Group By Area PR.

@rkaraivanov rkaraivanov dismissed stale reviews from simeonoff and kdinev via 328f28d July 5, 2021 13:25
rkaraivanov and others added 2 commits July 5, 2021 16:26
* Group area consolidation and fixes
* Some typings for grid outlets
* Prevented circular dep for the row directive from the services barrel file
@kdinev kdinev merged commit a0b7182 into master Jul 6, 2021
@kdinev kdinev deleted the rkaraivanov/grids-spa-and-wellbeing branch July 6, 2021 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: general refactoring squash-merge Merge PR with "Squash and Merge" option version: 12.1.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Themes: Split themes and aid with Grid refactoring
8 participants