Repository navigation
Vaadin Flow Components V25.2.0-alpha6
Pre-releaseVaadin Flow Components 25.2.0-alpha6
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-alpha5
Changes in All Components
- Chore:
- ⧉ Increase Web-Component version
Changes in vaadin-ai-components-flow
- Fixes:
-
⧉ Fire response complete on empty responses. PR:9215
## Description A turn that produces no visible text — typically a tool-only turn where the model emits tool calls and stops without commentary — is still a successful exchange. But the response-complete lifecycle hooks were skipped: both the application-facing
ResponseCompleteListener.onResponseCompleteand the controller-facingAIController.onResponseCompletewere gated behind a non-empty-text check. Controllers that flush their pending UI state inonResponseComplete(e.g.ChartAIControllerapplying its pending query) never render on these turns; application listeners miss the completion entirely. This PR moves both hook invocations out of the non-empty-text gate so every successful exchange fires them, with the firing cadence unchanged (still once per user prompt, not per tool call or round-trip). TheconversationHistoryadd stays gated to avoid polluting history with empty assistant entries. ## Type of change - [x] Bugfix - [ ] Feature ## Checklist - [x] I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview - [x] I have added a description following the guideline. - [ ] The issue is created in the corresponding repository and I have referenced it. - [x] I have added tests to ensure my change is effective and works as intended. - [x] New and existing tests are passing locally with my change. - [x] I have performed self-review and corrected misspellings.
-
Changes in vaadin-combo-box-flow
- New Features:
-
⧉ Add collapseChips API to MultiSelectComboBox. PR:9235. Ticket:8533
The web component side added a collapseChips boolean property to
vaadin-multi-select-combo-box. When enabled, all selected-item chips collapse into the overflow chip whenever they don't all fit, instead of showing as many as possible. Without this PR, Flow users have to reach forgetElement().setProperty("collapseChips", true)to use the new behavior. The change adds a typedisCollapseChips()/setCollapseChips(boolean)pair onMultiSelectComboBox, mirroring the shape of the existingselectedItemsOnTopAPI. --- 🤖 Generated with Claude Code
-
Changes in vaadin-context-menu-flow
- Breaking Changes:
-
⧉ Add tooltip APIs to context-menu and menu-bar items. PR:9223. Ticket:10415
Adds Flow APIs for menu item tooltips, building on web-component support added in vaadin/web-components#11549. A single
<vaadin-tooltip>is slotted into the menu/context-menu and auto-attached on first use, shared across root and sub-menu items. The menu-bar connector recurses through the item tree sotooltipandtooltipPositionreach nested items, which the web component's tooltip controller picks up. The previousMenuBar#setTooltipText(MenuItem, String)API is deprecated in favor of the new item-level methods and scheduled for removal in Vaadin 26. ## Examples Set a tooltip on any menu item viasetTooltipText/setTooltipPosition:java MenuBar menuBar = new MenuBar(); MenuItem save = menuBar.addItem("Save"); save.setTooltipText("Save changes"); save.setTooltipPosition(TooltipPosition.BOTTOM);ConvenienceaddItemoverloads accept the tooltip text directly:java MenuBar menuBar = new MenuBar(); menuBar.addItem("Save", "Save changes", e -> save()); menuBar.addItem(new Icon(VaadinIcon.TRASH), "Delete selected", e -> delete());Same APIs onContextMenu(andGridContextMenu) items, including nested sub-menu items:java ContextMenu contextMenu = new ContextMenu(target); MenuItem edit = contextMenu.addItem("Edit", "Edit this row"); SubMenu more = contextMenu.addItem("More").getSubMenu(); more.addItem("Duplicate", "Create a copy"); more.addItem("Archive").setTooltipText("Move to archive");> [!WARNING] > New tooltip-awareaddItemoverloads may make existing call sites ambiguous when anulllistener is passed with a cast, e.g.: > >java > foo.getSubMenu().addItem("bar", > (ComponentEventListener<GridContextMenuItemClickEvent<Object>>) null); >> > Such call sites need to be updated to disambiguate the overload. --- 🤖 Generated with Claude Code ---------
-
Changes in vaadin-grid-flow
- Breaking Changes:
-
⧉ Add tooltip APIs to context-menu and menu-bar items. PR:9223. Ticket:10415
Adds Flow APIs for menu item tooltips, building on web-component support added in vaadin/web-components#11549. A single
<vaadin-tooltip>is slotted into the menu/context-menu and auto-attached on first use, shared across root and sub-menu items. The menu-bar connector recurses through the item tree sotooltipandtooltipPositionreach nested items, which the web component's tooltip controller picks up. The previousMenuBar#setTooltipText(MenuItem, String)API is deprecated in favor of the new item-level methods and scheduled for removal in Vaadin 26. ## Examples Set a tooltip on any menu item viasetTooltipText/setTooltipPosition:java MenuBar menuBar = new MenuBar(); MenuItem save = menuBar.addItem("Save"); save.setTooltipText("Save changes"); save.setTooltipPosition(TooltipPosition.BOTTOM);ConvenienceaddItemoverloads accept the tooltip text directly:java MenuBar menuBar = new MenuBar(); menuBar.addItem("Save", "Save changes", e -> save()); menuBar.addItem(new Icon(VaadinIcon.TRASH), "Delete selected", e -> delete());Same APIs onContextMenu(andGridContextMenu) items, including nested sub-menu items:java ContextMenu contextMenu = new ContextMenu(target); MenuItem edit = contextMenu.addItem("Edit", "Edit this row"); SubMenu more = contextMenu.addItem("More").getSubMenu(); more.addItem("Duplicate", "Create a copy"); more.addItem("Archive").setTooltipText("Move to archive");> [!WARNING] > New tooltip-awareaddItemoverloads may make existing call sites ambiguous when anulllistener is passed with a cast, e.g.: > >java > foo.getSubMenu().addItem("bar", > (ComponentEventListener<GridContextMenuItemClickEvent<Object>>) null); >> > Such call sites need to be updated to disambiguate the overload. --- 🤖 Generated with Claude Code ---------
-
Changes in vaadin-menu-bar-flow
- Breaking Changes:
-
⧉ Add tooltip APIs to context-menu and menu-bar items. PR:9223. Ticket:10415
Adds Flow APIs for menu item tooltips, building on web-component support added in vaadin/web-components#11549. A single
<vaadin-tooltip>is slotted into the menu/context-menu and auto-attached on first use, shared across root and sub-menu items. The menu-bar connector recurses through the item tree sotooltipandtooltipPositionreach nested items, which the web component's tooltip controller picks up. The previousMenuBar#setTooltipText(MenuItem, String)API is deprecated in favor of the new item-level methods and scheduled for removal in Vaadin 26. ## Examples Set a tooltip on any menu item viasetTooltipText/setTooltipPosition:java MenuBar menuBar = new MenuBar(); MenuItem save = menuBar.addItem("Save"); save.setTooltipText("Save changes"); save.setTooltipPosition(TooltipPosition.BOTTOM);ConvenienceaddItemoverloads accept the tooltip text directly:java MenuBar menuBar = new MenuBar(); menuBar.addItem("Save", "Save changes", e -> save()); menuBar.addItem(new Icon(VaadinIcon.TRASH), "Delete selected", e -> delete());Same APIs onContextMenu(andGridContextMenu) items, including nested sub-menu items:java ContextMenu contextMenu = new ContextMenu(target); MenuItem edit = contextMenu.addItem("Edit", "Edit this row"); SubMenu more = contextMenu.addItem("More").getSubMenu(); more.addItem("Duplicate", "Create a copy"); more.addItem("Archive").setTooltipText("Move to archive");> [!WARNING] > New tooltip-awareaddItemoverloads may make existing call sites ambiguous when anulllistener is passed with a cast, e.g.: > >java > foo.getSubMenu().addItem("bar", > (ComponentEventListener<GridContextMenuItemClickEvent<Object>>) null); >> > Such call sites need to be updated to disambiguate the overload. --- 🤖 Generated with Claude Code ---------
-
Compatibility
- This release use Web Components listed in Vaadin Platform 25.2.0-alpha6
- Tested with Vaadin Flow version 25.2.0-alpha11