This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate VDOM system into widget-core (#728)
* dumped Maquette into widget-core and formatted * progress * more progress for vdom * clean up for vdom * add caching back in for WidgetBase * filter null/undfined and convert strings to HNode for v * Update interfaces for VirtualDomProperties * updated interfaces * pass through projector instance * extra typing goodness * Update DomWrapper * Small tweaks * recurse until find a domNode for insert before if an old child exists * Initial unit tests for non widget vdom paths * Cast projector instance to WidgetBase * Make HNode children optional and filter/map HNodes in single loop * Make invalidate public and project against undefined children * Deal with registry labels and pass parent instance through until a new WNode is hit * Remove projector rendered event * Remove projector rendered event * Updates based on testing with widgets and benchmarks * remove widgetbase debugging code * Use internal interdaces in vdom for HNode and WNode * Update vdom unit tests * Updated unit tests for NodeHandler * clean __render__ call * Remove setDomNodes functionality that will be done in vdom * Add widget-created/widget-updated event for projector and decorate all projector nodes * createTestWidget no longer works * Fix the unit tests * Remove references to vnode * update typo on interface name * Remove Maquette as a dependency * vdom fixup * more clean up * more unit tests * create dom for new registry items and remove unrequired if check * vdom unit tests for widgets * remove properties checks * remove insertBefore in vdom * extra vdom tests for embedded WNodes and replacing widgets * remove maquette references * support merging DNodes onto HTML * Updated package-lock.json * more unit tests and fixes * small fixups * final fixes * remove final references to Maquette * Failing unit test for returning render result with classes * check the previous rendered exists before updating, otherwise create * Set properties even when the render has always been scheduled * use projector options for merge flag * initial request idle for after render callbacks * add resolve request idle callback to unit tests * clean up after render callbacks * Support skipping unknown / non matching nodes when merging the render output onto existing HTML * Add resolving util for rAF and rIC which falls back to stubbing setTimeout when requestIdleCallback isn't supported * fixup unit test * support using zero as a key value * else on newline * Use listener map and type the event * Properties cannot be null or undefined
- Loading branch information