Coder Social home page Coder Social logo

web-padawan / lit-components Goto Github PK

View Code? Open in Web Editor NEW
59.0 11.0 6.0 1017 KB

Moved to https://github.com/vaadin/component-mixins

JavaScript 100.00%
lit-element lit-html webcomponents web-components custom-elements monorepo lit-css litelement

lit-components's Introduction

lit-components's People

Contributors

web-padawan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lit-components's Issues

TypeScript?

Have you considered doing this in TypeScript? As a first step renaming from js to ts and a bit of tsconfig should do.

When I split the WebPack to two files - Error Failed to execute 'define' on 'CustomElementRegistry': the name "dom-module" has already been used with this registry

Hi,

When I split the WebPack to two files and tried import both the files in index.html. I am getting an error what could be the reason behind? I have the commons going to vendor.js.

dom-module.js:163 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "dom-module" has already been used with this registry at Module../node_modules/@polymer/polymer/lib/elements/dom-module.js (http://10.83.44.18:8080/dropdown.js:5270:16) at __webpack_require__ (http://10.83.44.18:8080/dropdown.js:20:30) at Module../node_modules/@polymer/polymer/lib/utils/style-gather.js (http://10.83.44.18:8080/dropdown.js:19191:81) at __webpack_require__ (http://10.83.44.18:8080/dropdown.js:20:30) at Module../node_modules/@polymer/polymer/lib/mixins/element-mixin.js (http://10.83.44.18:8080/dropdown.js:9050:80) at __webpack_require__ (http://10.83.44.18:8080/dropdown.js:20:30) at Module../node_modules/@polymer/polymer/polymer-element.js (http://10.83.44.18:8080/dropdown.js:20310:86) at __webpack_require__ (http://10.83.44.18:8080/dropdown.js:20:30) at Module../packages/drop-down/sh-icon.js (http://10.83.44.18:8080/dropdown.js:23990:93) at __webpack_require__ (http://10.83.44.18:8080/dropdown.js:20:30)

Regards
Basanth

[research] Implement ThemableMixin similar to Polymer version

Starting from lit/lit-element#470,finalize method is now protected and is used to collect styles from the prototype chain. We can try to use that point to collect additional style modules for shadow parts, roughly the same as ThemableMixin works. Also, the _getUniqueStyles method looks as what we could override (but that one is private and we should use it carefully).

Current state of project

Hi there, I'm so excited to have found this repo! What is current state of this project? I have a significant amount of experience with lit-element, in addition to having worked with polymer since polymer 1. Are you looking for a helping hand? I'd be happy to contribute!

[refactor] Reimplement lighter Gestures version

The Polymer gestures system is quite heavy and some parts of it are considered legacy:

The tap event is included in the gesture event mixin for backwards compatibility, but it's no longer required in modern mobile browsers.

https://polymer-library.polymer-project.org/3.0/docs/devguide/gesture-events

We should check what parts are used by our components (e.g. track is used in few places) and whether they can be refactored to not use gestures at all. Also we need to handle contextmenu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.