Skip to content
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

refactor: move item and list-box extensions to separate files #5352

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

web-padawan
Copy link
Member

Description

Pre-requisite for #3010

Moved the components used by vaadin-context-menu to separate files, like it's done e.g. in vaadin-select package.

Type of change

  • Refactor

*
* @protected
*/
declare class ContextMenuItem extends Item {}
Copy link
Member Author

Choose a reason for hiding this comment

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

This class isn't exported because it's considered internal. Also, its name collides with ContextMenuItem type.
Because of it, previously when located in the mixin file, it was named ContextMenuItemElement.

I think we can keep these two classes as "private" for now, because they don't enhance parent classes with any logic. Generally, such components as vaadin-select-item do not provide type definitions at all.

Copy link
Contributor

@vursen vursen Jan 23, 2023

Choose a reason for hiding this comment

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

Well, at least vaadin-context-menu-item is used by the Flow counterpart (it creates a virtual DOM tree of vaadin-context-menu-items which then are assigned via the items array), so it isn't entirely private, but types don't make much sense for Flow, I agree.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.0.0.alpha10 and is also targeting the upcoming stable 24.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants