expandjs / mat-elements

A collection of Material Design web components from the expand.js team
https://expandjs.com/components
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

Polymer 2.x/ Webcomponents 1.0 support #4

Closed ergo closed 6 years ago

ergo commented 6 years ago

Hello, The demos and elements are running under polymer 1.x, will there be a transition to Polymer 2.0 at some point of time?

Pupix commented 6 years ago

Hello, Currently there's no plan for a 2.0 upgrade. Upgrading for Polymer 2.0 is not as easy as the Polymer team claimed it will be (even their own devs are complaining), also Polymer 3.0 is on his way with an experimental, React like, HTML handling with template-literals (lit-html).

We feel that updating at this time wouldn't be beneficial and we might have to start rewriting everything again once Polymer 3.0 hits.

Cheers.

ergo commented 6 years ago

I actually updated my app to 2.0 using hybrid and non-hybrid mode. It wasn't nearly as bad as it might look ;-) I already saw that you guys use slots so apart the observers working differently (any value needs to be defined for observer to fire), most elements should work already with legacy mixin or hybrid mode.

Btw. 3.0 is supposed to be 100% API compatible, so no work on your end should be needed to support that - the translation to template strings will be handled by build step, same as you would do with current webpack polymer plugin.

tpluscode commented 6 years ago

FWIW, I've just installed mat-spinner in my Polymer 2.0 app and it works fine. Hopefully the other elements can also just work already :)