@m3e/core 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a11y.js +1420 -1033
- package/dist/a11y.js.map +1 -1
- package/dist/a11y.min.js +10 -23
- package/dist/a11y.min.js.map +1 -1
- package/dist/anchoring.js +2 -8
- package/dist/anchoring.js.map +1 -1
- package/dist/anchoring.min.js +1 -1
- package/dist/anchoring.min.js.map +1 -1
- package/dist/custom-elements.json +4231 -4024
- package/dist/html-custom-data.json +0 -5
- package/dist/index.js +4007 -3561
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +9 -480
- package/dist/index.min.js.map +1 -1
- package/dist/src/a11y/list-key/ListKeyManager.d.ts +11 -0
- package/dist/src/a11y/list-key/ListKeyManager.d.ts.map +1 -1
- package/dist/src/anchoring/positionAnchor.d.ts +2 -2
- package/dist/src/anchoring/positionAnchor.d.ts.map +1 -1
- package/dist/src/shared/primitives/CollapsibleElement.d.ts.map +1 -1
- package/dist/src/shared/primitives/RippleElement.d.ts +0 -5
- package/dist/src/shared/primitives/RippleElement.d.ts.map +1 -1
- package/dist/src/shared/primitives/SlideElement.d.ts.map +1 -1
- package/dist/src/shared/utils/generateClipPaths.d.ts +8 -0
- package/dist/src/shared/utils/generateClipPaths.d.ts.map +1 -0
- package/dist/src/shared/utils/index.d.ts +1 -0
- package/dist/src/shared/utils/index.d.ts.map +1 -1
- package/package.json +1 -15
package/dist/anchoring.js
CHANGED
|
@@ -1709,7 +1709,7 @@ function offsetParentPolyfill(element) {
|
|
|
1709
1709
|
* @param {HTMLElement} target The element to position.
|
|
1710
1710
|
* @param {HTMLElement} anchor The element in which to anchor `target`.
|
|
1711
1711
|
* @param {AnchorOptions} options Options that control positioning relative to the anchor.
|
|
1712
|
-
* @param {((x: number, y: number, position: AnchorPosition) => void)
|
|
1712
|
+
* @param {((x: number, y: number, position: AnchorPosition) => void)} update Callback used to position `target`.
|
|
1713
1713
|
* @returns {Promise<() => void>} Promise that resolves to a function used to stop updating target when the position of the anchor element changes.
|
|
1714
1714
|
*/
|
|
1715
1715
|
async function positionAnchor(target, anchor, options, update) {
|
|
@@ -1732,13 +1732,7 @@ async function positionAnchor(target, anchor, options, update) {
|
|
|
1732
1732
|
middleware: middleware,
|
|
1733
1733
|
platform: { ...platform, getOffsetParent: (x) => platform.getOffsetParent(x, offsetParent) },
|
|
1734
1734
|
});
|
|
1735
|
-
|
|
1736
|
-
target.style.left = `${result.x}px`;
|
|
1737
|
-
target.style.top = `${result.y}px`;
|
|
1738
|
-
}
|
|
1739
|
-
else {
|
|
1740
|
-
update(result.x, result.y, result.placement);
|
|
1741
|
-
}
|
|
1735
|
+
update(result.x, result.y, result.placement);
|
|
1742
1736
|
}
|
|
1743
1737
|
await computeAnchorPosition();
|
|
1744
1738
|
return autoUpdate(anchor, target, async () => await computeAnchorPosition());
|