fooloomanzoo / datetime-picker

A minimal picker for date and time for Polymer, that can use the native input
MIT License
78 stars 18 forks source link

Polymer 3.0 support? #53

Closed fanthos closed 5 years ago

fanthos commented 6 years ago

Polymer 3.0 used ES6 module instead of HTML import, this component does not work with 3.0. I think Polymer 3.0 support should be added to the components.

mercmobily commented 6 years ago

This is gonna hurt but... since Polymer is on its way to be obsoleted altogether, I think it would make sense to skip Polymer 3 altogether and port this wonderful picker directly to lit-html

lit-html is basically vanilla Javascript with a minuscule layer on top (which is lit-html, which is ALSO modelled around proposals that are being worked on so that it ALL becomes vanilla Javascript eventually).

What do you think?

ernsheong commented 6 years ago

Use LitElement :) https://github.com/Polymer/lit-element

RuslanKim commented 6 years ago

Is there a way to load it from Polymer 3.0 (I use webpack)? Is there any plans to port it into JS modules?

fooloomanzoo commented 5 years ago

There are plans, but it might take a while

fooloomanzoo commented 5 years ago

available for version 3.0.0

matepaiva commented 5 years ago

Hello! First, thank you for the amazing component. I am using lit-element and it looks like they work very well together. But I am quite new to web components and I have no idea about how to get the selected date. I am able to pass the date to the datetime-picker, but I don't know which event to listen to get the information back, when it has changed. Could you give me a hint?