Vaadin Flow Components V25.2.0-rc1
Pre-releaseVaadin Flow Components 25.2.0-rc1
This is a release of the Java integration for Vaadin Components to be used from the Java server side with Vaadin Flow.
Changes in Flow Components from 25.2.0-beta3
Changes in All Components
- Chore:
- ⧉ Increase Web-Component version
Changes in vaadin-ai-components-flow
Changes in vaadin-breadcrumbs-flow
-
New Features:
-
⧉ Add Breadcrumbs TestBench element classes (#9530) (CP: 25.2). PR:9540
This PR cherry-picks changes from the original PR #9530 to branch 25.2. --- #### Original PR description > ## Description > > Task 8 of the Breadcrumbs SDD. > > Added TestBench element classes. > > ## Type of change > > - Feature > > ## Note > > The first commit is intentionally fully generated by Claude without any modifications on my part. > > It contains questionable APIs like
getOverflowOverlay(). I will fix any suggestions in follow up commits. -
⧉ Validate navigation-related URL schemes (#9447) (CP: 25.2). PR:9538
## Description Manual cherry-pick of #9447 to
25.2branch - automated cherry-pick failed due to missingBreadcrumbsItem. ## Type of change - Cherry-pick -
⧉ Add Breadcrumbs Mode.ROUTER navigation listener and trail builder. PR:9510
## Description Task 7 of the Breadcrumbs SDD. Added
Mode.ROUTERbuilding logic and navigation listener. ## Type of change - Feature --------- -
⧉ Add Mode.ROUTER guard on Breadcrumbs child management methods. PR:9485. Ticket:9482
## Description Depends on #9483 Task 6 of the Breadcrumbs SDD - based on tasks reorder in vaadin/web-components#11912. Added overrides to disallow manual children modifications when using
Mode.ROUTER. ## Type of change - Feature --------- -
⧉ Add Breadcrumbs Mode enum, constructors and mode switching logic. PR:9483. Ticket:9481
## Description Task 5 of the Breadcrumbs SDD - based on tasks reorder in vaadin/web-components#11912. Added
Modeenum withROUTERandMANUALand logic related to mode switching. ## Type of change - Feature --------- -
⧉ Add BreadcrumbsI18n and setI18n API to Breadcrumbs. PR:9473
## Description Task 4 of the Breadcrumbs SDD - based on tasks reorder in vaadin/web-components#11912. Added
BreadcrumbsI18nandsetI18n()API for setting it reflecting the web componenti18nproperty. ## Type of change - Feature -
⧉ Add BreadcrumbsVariant enum and HasThemeVariant to Breadcrumbs. PR:9470
## Description Task 3 of the Breadcrumbs SDD - based on tasks reorder in vaadin/web-components#11912. Added
BreadcrumbsVariantenum with"slash"variant andHasThemeVariant<BreadcrumbsVariant>. ## Type of change - Feature -
⧉ Implement BreadcrumbsItem constructors, text, path, and prefix. PR:9380
Implements
BreadcrumbsItem: the seven constructors mirroringSideNavItem's overload set, thepathaccessors (getPath(),setPath(String),setPath(Class<? extends Component>),setPath(Class, RouteParameters)— the class overloads resolve viaRouteConfigurationexactly likeSideNavItem), and the inheritedHasText/HasEnabled/HasPrefixsurface. Stacked on #9379 (scaffolding) — base branch isbreadcrumbs-flow-scaffolding, so review/merge that first. Kept as a draft until the base PR lands and this can retargetmain. Closes #9378 🤖 Generated with Claude Code
-
-
Fixes:
-
⧉ Keep BreadcrumbsItem prefix component when setting text. PR:9534. Ticket:9533
BreadcrumbsItem.setTextused the defaultHasText#setText, which replaces all of the item's content — so calling it aftersetPrefixComponentremoved the prefix (e.g. an icon).java BreadcrumbsItem item = new BreadcrumbsItem("Inbox (2 items)"); item.setPrefixComponent(new Icon(VaadinIcon.ENVELOPE)); item.setText("Inbox (3 items)"); // icon was lostThe text is now held in a dedicated text node managed throughSignalPropertySupport, the same approachButtonandBadgeuse.setText/bindTextonly update that text node, so the prefix (and any other slotted content) is preserved. --- 🤖 Generated with Claude Code -
⧉ Resolve Breadcrumbs router titles via Router.resolvePageTitle. PR:9531
Flow moved page-title resolution from the internal
RouteUtilto the publicRouter.resolvePageTitle(vaadin/flow#24647), removing theRouteUtil.resolvePageTitle(Instantiator, ...)overload thatBreadcrumbsrelied on. This brokevaadin-breadcrumbs-flowcompilation onmain:Breadcrumbs.java:[436,17] cannot find symbol symbol: method resolvePageTitle(Instantiator,Class<? extends Component>,RouteParameters,QueryParameters)Mode.ROUTERitem titles are now resolved through the publicRouter.resolvePageTitle(target, routeParameters, queryParameters), obtained viaComponentUtil.getRouter(this). This drops the manualVaadinService.getCurrent().getInstantiator()lookup, since the new API resolves the instantiator itself. The unit test's mockedRouteris replaced with a spy over a realRouter, so the realresolvePageTitleruns (titles are asserted) whilegetRegistry()stays stubbed to return the application registry directly. Related to vaadin/flow#24647 --- 🤖 Generated with Claude Code
-
Changes in vaadin-charts-flow
- New Features:
Changes in vaadin-login-flow
- New Features:
Changes in vaadin-side-nav-flow
- New Features:
Compatibility
- This release use Web Components listed in Vaadin Platform 25.2.0-rc1
- Tested with Vaadin Flow version 25.2.0-rc2