Vaadin Flow Components V25.3.0-alpha6
Pre-releaseVaadin Flow Components 25.3.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.3.0-alpha5
Changes in All Components
- Chore:
Changes in vaadin-ai-components-flow
- Breaking Changes:
-
⧉ Emit form filler field value events per field. PR:9593
## Description This PR - updates the listener name (
addFieldValueChangedListener->addFieldValueChangeListener) - adds the listener interfaceFieldValueChangeListenerand event classFieldValueChangeEvent- updates the listener API to fire oneFieldValueChangeEventper changed field Based on Form Filler DX test session findings. > [!WARNING] > Breaking change.addFieldValueChangedListener(SerializableConsumer<List<FieldValueChange>>)is replaced byaddFieldValueChangeListener(FieldValueChangeListener). The listener now fires once per changed field with aFieldValueChangeEventinstead of once per turn with aList<FieldValueChange>. TheFieldValueChangerecord is removed. No related issue. ## Type of change - [ ] Bugfix - [ ] Feature - [x] Refactor ## 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-checkbox-flow
- New Features:
-
⧉ Add experimental Switch component. PR:9737
Add a Flow
Switchcomponent wrapping the@vaadin/switchweb component. Switch is a binary on/off toggle for a single setting that takes effect immediately. It is functionally equivalent toCheckboxbut presented as a toggle, so it lives in the checkbox module and reuses the same API shape. The web component is experimental, so the Flow component is gated behind thecom.vaadin.experimental.switchComponentfeature flag. UsingSwitchwithout enabling the flag throws anExperimentalFeatureExceptionon attach. The same feature-flag properties file enables both the server-side component and the client-side element. ## Changes -Switch— mirrors theCheckboxAPI (value, label, aria, autofocus, validation, i18n), minus the indeterminate state which a switch does not have. Read-only is inherited from the Flow field hierarchy. -SwitchVariant—AURA_REVERSE,AURA_SMALL(Aura only), andICON(both themes). -SwitchFeatureFlagProvider+ExperimentalFeatureException+ SPI registration, following the Breadcrumbs pattern. -SwitchElementTestBench API and aSwitchITsmoke test (renders and toggles) with the feature flag enabled. - Unit tests, including basic and Binder validation coverage. Part of the Switch component effort (web component:vaadin/web-componentspackages/switch). --- 🤖 Generated with Claude Code --------- -
⧉ Add AURA_REVERSE to CheckboxVariant enum. PR:9730
## Description Added
AURA_REVERSEfor the"reverse"style variant supported by checkbox since vaadin/web-components#12098. ## Type of change - Feature
-
Changes in vaadin-grid-flow
-
New Features:
-
⧉ Add selectAllUnavailable to GridI18n. PR:9729
The Grid web component added a new
selectAllUnavailablei18n property in vaadin/web-components#12080. It provides the accessible name announced for the selection column header cell when the select all checkbox is hidden (e.g. a data provider is used or conditional selection is enabled). This property was missing from the FlowGridI18nAPI, so Flow users could not customize or translate it. This adds a matchingselectAllUnavailablegetter/setter toGridI18n, following the existing pattern of the other accessible-name properties. Part of vaadin/web-components#12080 --- 🤖 Generated with Claude Code -
⧉ Accept Collection<? extends T> in TreeGrid expand / collapse. PR:9722. Ticket:1609
## Description Widen the item collection and stream parameters of
expand,collapse,expandRecursivelyandcollapseRecursivelytoCollection<? extends T>/Stream<? extends T>, since the items are only read. This lets callers pass collections of a subtype. Generated with Claude Code ---------
-
-
Fixes:
-
⧉ Ignore sortersChanged for non-existent columns. PR:9734. Ticket:1201
Following up on the AI reproduction,
Grid.sortersChangedno longer throws when a sorter references a column that was removed on the server between the client emitting the event and the server handling it. The stale sorter is now skipped and any remaining valid sorters are still applied. --- 🤖 Generated with Claude Code ---------
-
Compatibility
- This release use Web Components listed in Vaadin Platform 25.3.0-alpha6
- Tested with Vaadin Flow version 25.3.0-alpha5