Code Monkey home page Code Monkey logo

custom-elements-loader-prototype's People

Contributors

christianulbrich avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chaimv

custom-elements-loader-prototype's Issues

Improve TypeScript support

TypeScript has been kind of abused (as any); I am so sorry, we should use it in a better way:

  • get rid of unnecessary any and type assertions
  • add additional interfaces to enable TS-based code contracts

Enable Slot Changes

The wrapper needs to reflect changes in it's slot to the wrapped component.

This can be done, by listening to slotchanged events on the wrapper and properly updating the slot in the wrapped component.

Publish on NPM

It would be nice, if this package would be published as a npm package:

  • -> `@zalari-oss/ce-hot-reload-prototype``

Furthermore this should ne automated with TravisCI.

Add attribute reflection

The attributes for the wrapped component, are not exposed by the wrapper.

The wrapper needs to utilize static observedAttributes() getter from the Custom Element class to reflect them back to it.

Implement named slots

Slots can have names; those need to be reflected to the wrapped element.

For this to work, I think you need to figure out the slots of the wrapped element; that could be done by rendering it invisible / offscreen to get an actual implementation. Maybe we need to monkey-patch all DOM-adding functions, to sniff for <slot> elements...

However if a component is dynamically adding slots, we are out of luck...

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.