Skip to content

Vaadin Flow Components V25.3.0-alpha6

Pre-release
Pre-release

Choose a tag to compare

@vaadin-bot vaadin-bot released this 22 Jul 11:30
e41a5e1

Vaadin 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:
    • Increase Web-Component version
    • Increase Web-Component version
    • Increase Web-Component version

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 interface FieldValueChangeListener and event class FieldValueChangeEvent - updates the listener API to fire one FieldValueChangeEvent per changed field Based on Form Filler DX test session findings. > [!WARNING] > Breaking change. addFieldValueChangedListener(SerializableConsumer<List<FieldValueChange>>) is replaced by addFieldValueChangeListener(FieldValueChangeListener). The listener now fires once per changed field with a FieldValueChangeEvent instead of once per turn with a List<FieldValueChange>. The FieldValueChange record 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 Switch component wrapping the @vaadin/switch web component. Switch is a binary on/off toggle for a single setting that takes effect immediately. It is functionally equivalent to Checkbox but 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 the com.vaadin.experimental.switchComponent feature flag. Using Switch without enabling the flag throws an ExperimentalFeatureException on attach. The same feature-flag properties file enables both the server-side component and the client-side element. ## Changes - Switch — mirrors the Checkbox API (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. - SwitchVariantAURA_REVERSE, AURA_SMALL (Aura only), and ICON (both themes). - SwitchFeatureFlagProvider + ExperimentalFeatureException + SPI registration, following the Breadcrumbs pattern. - SwitchElement TestBench API and a SwitchIT smoke 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-components packages/switch). --- 🤖 Generated with Claude Code ---------

    • Add AURA_REVERSE to CheckboxVariant enum. PR:9730

      ## Description Added AURA_REVERSE for 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 selectAllUnavailable i18n 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 Flow GridI18n API, so Flow users could not customize or translate it. This adds a matching selectAllUnavailable getter/setter to GridI18n, 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, expandRecursively and collapseRecursively to Collection<? 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.sortersChanged no 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