Skip to content

Vaadin Flow Components V25.2.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@vaadin-bot vaadin-bot released this 17 Jun 12:47
· 1 commit to 25.2 since this release
7be34de

Vaadin 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

  • New Features:
    • Hide all form field values from the LLM (#9527). PR:9537

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.2 branch - automated cherry-pick failed due to missing BreadcrumbsItem. ## 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.ROUTER building 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 Mode enum with ROUTER and MANUAL and 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 BreadcrumbsI18n and setI18n() API for setting it reflecting the web component i18n property. ## 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 BreadcrumbsVariant enum with "slash" variant and HasThemeVariant<BreadcrumbsVariant>. ## Type of change - Feature

    • Implement BreadcrumbsItem constructors, text, path, and prefix. PR:9380

      Implements BreadcrumbsItem: the seven constructors mirroring SideNavItem's overload set, the path accessors (getPath(), setPath(String), setPath(Class<? extends Component>), setPath(Class, RouteParameters) — the class overloads resolve via RouteConfiguration exactly like SideNavItem), and the inherited HasText / HasEnabled / HasPrefix surface. Stacked on #9379 (scaffolding) — base branch is breadcrumbs-flow-scaffolding, so review/merge that first. Kept as a draft until the base PR lands and this can retarget main. Closes #9378 🤖 Generated with Claude Code

    • Initialize Breadcrumbs Flow component (#9379). PR:9520

  • Fixes:

    • Keep BreadcrumbsItem prefix component when setting text. PR:9534. Ticket:9533

      BreadcrumbsItem.setText used the default HasText#setText, which replaces all of the item's content — so calling it after setPrefixComponent removed 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 lost The text is now held in a dedicated text node managed through SignalPropertySupport, the same approach Button and Badge use. setText/bindText only 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 RouteUtil to the public Router.resolvePageTitle (vaadin/flow#24647), removing the RouteUtil.resolvePageTitle(Instantiator, ...) overload that Breadcrumbs relied on. This broke vaadin-breadcrumbs-flow compilation on main: Breadcrumbs.java:[436,17] cannot find symbol symbol: method resolvePageTitle(Instantiator,Class<? extends Component>,RouteParameters,QueryParameters) Mode.ROUTER item titles are now resolved through the public Router.resolvePageTitle(target, routeParameters, queryParameters), obtained via ComponentUtil.getRouter(this). This drops the manual VaadinService.getCurrent().getInstantiator() lookup, since the new API resolves the instantiator itself. The unit test's mocked Router is replaced with a spy over a real Router, so the real resolvePageTitle runs (titles are asserted) while getRegistry() stays stubbed to return the application registry directly. Related to vaadin/flow#24647 --- 🤖 Generated with Claude Code

Changes in vaadin-charts-flow

  • New Features:
    • Validate navigation-related URL schemes (#9447) (CP: 25.2). PR:9538

      ## Description Manual cherry-pick of #9447 to 25.2 branch - automated cherry-pick failed due to missing BreadcrumbsItem. ## Type of change - Cherry-pick

Changes in vaadin-login-flow

  • New Features:
    • Validate navigation-related URL schemes (#9447) (CP: 25.2). PR:9538

      ## Description Manual cherry-pick of #9447 to 25.2 branch - automated cherry-pick failed due to missing BreadcrumbsItem. ## Type of change - Cherry-pick

Changes in vaadin-side-nav-flow

  • New Features:
    • Validate navigation-related URL schemes (#9447) (CP: 25.2). PR:9538

      ## Description Manual cherry-pick of #9447 to 25.2 branch - automated cherry-pick failed due to missing BreadcrumbsItem. ## Type of change - Cherry-pick

Compatibility

  • This release use Web Components listed in Vaadin Platform 25.2.0-rc1
  • Tested with Vaadin Flow version 25.2.0-rc2