Vaadin Flow 2.7.0
Vaadin Flow 2.7.0
Flow 2.7 is a minor release for Vaadin 14.7.
New Features
-
⧉ Extract validation error handler from Binder (#11384). PR:11415
-
⧉ Implement HasStyle in LitTemplate so you can add class names to the root element (#10903). PR:11017
Makes it possible to use addClassName("hello") in the constructor. Class for the custom element cannot be added in the template.
Breaking Changes
-
⧉ Move generated theme files to frontend/generated. PR:11370.
In order to make it easy for users to manage their reusable themes and align the file handling in newer Vaadin versions, we have moved generated theme files to
frontend/generated.Autogenerated
theme-generated.jsfile has been moved tofrontend/generated/folder and renamed totheme.js. Thus, if you use TypeScript views in your project and apply the custom theme by calling toapplyTheme(), please change the import to be pointed togenerated/themeinstead ofthemes/theme-generated.js.The example shown below imports
applyThemeintofrontend/views/some-view/my-view.ts:
import { applyTheme } from '../../generated/theme';
instead of
import { applyTheme } from 'themes/theme-generated.js'; -
⧉ Deperecate
PageConfiguratorsince it has broken design. PR:11521Deprecated due to multiple issues on the feature design, like it won't work together with the
PreserveOnRefreshannotation. Will not be removed until after the next long term support version. UseBoostrapListenerinstead, which provides API for modifying the bootstrap page and access to theUI, which provides further replacement API likeUI#getLoadingIndicatorConfiguration().AppShellConfiguratoris the replacement since Flow 3+ (Vaadin 15+) -
⧉ Add support for parsing query string in QueryParameters. PR:10521.
A minor API behavior change:
Location:getQueryParametersis unified with howHttpServletRequestworks: For a query string?foo&bara list containing""is returned for bothfooandbarwhereas the existing implementation returned empty lists.
Changes in Flow from 2.7.0.rc1
-
Fixes: