Changes since 24.4.0.alpha30
New features
-
Add API for automatic main menu
Commit · Pull request · IssueAdds API to get and control only accessible routes for automatically build routes based on
Menu
annotated routes. This change is targeting primarily client side menu build with Hilla. AddsRouteRegistry#getRegisteredAccessibleMenuRoutes
to get a list of accessible RouteData objects. Method takes in a collection of access control objects which are implementingBeforeEnterListener
. SupportsNavigationAccessControl
andViewAccessChecker
. AddsMenuAccessControl
interface to controlgetRegisteredAccessibleMenuRoutes
return value. This change adds first part of control by adding API to enable, disable or automate populating client side main menu with the server side routes. Interface has space for future for more advanced control. DefaultMenuAccessControl
implementation can be customized by implementing it as a Spring bean, or by providing the implementation class via 'menu.access.control' property.
Fixes
-
Prevent embedded styles to leak main document
Commit · Pull request · IssueWhen using an exported a themed Flow web-component, Lumo style may leak the embedding document, causing invalid CSS rules to be applied. This change prevents applying Lumo global imports when the theme is applied to a web-component.
-
Allow css properties in react components (#19077)
Commit · Pull request · Issue -
Only minify in production
Commit · Pull request · IssueOnly minify in production mode. For development and devBundle builds do not minify sources.