Skip to content

0.3.0

Latest
Compare
Choose a tag to compare
@jouni jouni released this 13 Sep 11:54
b7217b4

Breaking changes

TeleportingElement

This utility is deprecated. Consider using PortalElement instead, which is an iteration on the same concept but with less limitations.

No Internet Explorer 11 and pre-Chromium Edge support

The components and utilities no longer work in browsers without native Shadow DOM and CSS Custom Properties support.

StylableMixin

<style type="scoped" for="j-button"></style> -> <style media="j-button"></style>

Style elements in the global scope affect all matching element instances in any shadow root. There is no distinction about “scoped” or ”global” style sheets in the global scope.

Docs for StylableMixin ›

New features

JInput

New component JInput, which is based on two new utility classes: NativeElementWrapper and NativeInputElementWrapper.

Docs for JInput ›

JButton is now also based on NativeElementWrapper, and therefore now has a shadow root as well (and no longer uses LightStyleElement).

PortalElement

Replaces the previous TeleportingElement experiment. PortalElement has less limitations.

Docs for PortalElement ›

Changes

JField

JField got a major refactoring. It now uses the browser’s built-in validation features more (such as localized validation messages).

Docs for JField ›

MutationAnimationMixin

A new utility for easily animating element additions and removals from the DOM.

Docs for MutationAnimationMixin ›

Docs site

  • Various improvements

Folder structure

  • Components moved under src/components
  • Utilities moved under src/util