Component generator demo and metadata, URI resolving from JavaScript, and HTML imports in the initial HTML
Pre-release
Pre-release
New features
- Component API generator enhancements
- Added a
flow-components-demomodule that shows how the generated APIs are used - Updated to use Polymer Analyzer 2.0
- Added metadata to generated classes, e.g.
@HtmlImport,@Tag, JavaDocs, license header and version information baseUrlsetting is considered when determining the Java package of a generated class
- Added a
@Idcan be used forElementfields in addition to previously supportedComponentsubclasses.- Server-side component instances are automatically created for corresponding elements in the HTML of
PolymerTemplateinstances.- Still only limited functionality, doesn't work together with e.g.
<dom-repeat>or<dom-if>.
- Still only limited functionality, doesn't work together with e.g.
- The webcomponents polyfill is loaded from the application's own
bower_componentsdirectory instead of using an (outdated) version bundled with Flow. - Added
window.vaadin.resolveUrifor resolving Vaadin URIs from JavaScript. - Non-lazy HTML imports encountered during the initial request are added directly to the initial HTML instead of being injected dynamically from JavaScript.
Fixes
- Hyphens and underscores are properly converted to camelCase in generated code.
Breaking changes
- Initial HTML imports will be loaded at an earlier phase than previously. This will cause issues e.g. if the HTML import assumes that
document.bodyis defined.