Vaadin web components
This package contains all Vaadin web components (free and commercial).
See https://github.com/vaadin/web-components for more details.
License: Apache License 2.0
This package contains all Vaadin web components (free and commercial).
See https://github.com/vaadin/web-components for more details.
Looks like the native event.key
is Escape
and not Esc
.
https://w3c.github.io/uievents-key/#key-Escape
We should also check if there are components relying on Esc
in the tests and update those.
There is a demand for a helper that would wait for the next IntersectionObserver
tick, similar to #5.
A possible API:
async function nextIntersection(target, options = {}) {
return new Promise((resolve) => {
new IntersectionObserver(() => setTimeout(resolve), options).observe(target);
});
}
We need to copy these parts from @open-wc/testing
:
rollup.config.js
to convert sinon-chai
to ES moduleThis was added as part of vaadin/web-components#321
export const wheel = (target, deltaX, deltaY, ctrlKey) => {
const e = new CustomEvent('wheel', { bubbles: true, cancelable: true });
e.deltaX = deltaX;
e.deltaY = deltaY;
e.ctrlKey = ctrlKey;
target.dispatchEvent(e);
return e;
};
And the other one, which is quite similar although not the same:
function wheel({
element = scrollTarget,
deltaX = 0,
deltaY = 0,
deltaMode = WheelEvent.DOM_DELTA_PIXEL,
skipFlush = false,
ctrlKey = false
}) {
const e = new CustomEvent('wheel', { bubbles: true, cancelable: true });
e.deltaY = deltaY;
e.deltaX = deltaX;
e.deltaMode = deltaMode;
e.ctrlKey = ctrlKey;
element.dispatchEvent(e);
if (!skipFlush) {
virtualizer.flush();
}
}
This was added as part of vaadin/web-components#321
export const nextResize = (target) => {
return new Promise((resolve) => new ResizeObserver(() => setTimeout(resolve)).observe(target));
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.