custom-elements-loader-prototype's People
Forkers
chaimvcustom-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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.