@vanduo-oss/framework 1.5.0 → 1.5.1
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/CHANGELOG.md +11 -0
- package/README.md +8 -4
- package/css/components/expanding-cards.css +94 -25
- package/dist/build-info.json +3 -3
- package/dist/vanduo-core.css +80 -25
- package/dist/vanduo-core.css.map +1 -1
- package/dist/vanduo-core.min.css +2 -2
- package/dist/vanduo-core.min.css.map +1 -1
- package/dist/vanduo.cjs.js +9 -5
- package/dist/vanduo.cjs.js.map +2 -2
- package/dist/vanduo.cjs.min.js +3 -3
- package/dist/vanduo.cjs.min.js.map +2 -2
- package/dist/vanduo.css +80 -25
- package/dist/vanduo.css.map +1 -1
- package/dist/vanduo.esm.js +9 -5
- package/dist/vanduo.esm.js.map +2 -2
- package/dist/vanduo.esm.min.js +3 -3
- package/dist/vanduo.esm.min.js.map +2 -2
- package/dist/vanduo.js +9 -5
- package/dist/vanduo.js.map +2 -2
- package/dist/vanduo.min.css +2 -2
- package/dist/vanduo.min.css.map +1 -1
- package/dist/vanduo.min.js +3 -3
- package/dist/vanduo.min.js.map +2 -2
- package/js/components/expanding-cards.js +15 -3
- package/package.json +1 -1
package/dist/vanduo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Vanduo v1.5.
|
|
1
|
+
/*! Vanduo v1.5.1 | Built: 2026-06-20T15:00:18.257Z | git:baf8178 | development */
|
|
2
2
|
(() => {
|
|
3
3
|
// js/utils/lifecycle.js
|
|
4
4
|
(function() {
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
// js/vanduo.js
|
|
177
177
|
(function() {
|
|
178
178
|
"use strict";
|
|
179
|
-
const VANDUO_VERSION = true ? "1.5.
|
|
179
|
+
const VANDUO_VERSION = true ? "1.5.1" : "0.0.0-dev";
|
|
180
180
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
181
181
|
const Vanduo2 = {
|
|
182
182
|
version: VANDUO_VERSION,
|
|
@@ -7763,7 +7763,7 @@
|
|
|
7763
7763
|
setActive(card);
|
|
7764
7764
|
};
|
|
7765
7765
|
const onKeydown = function(e) {
|
|
7766
|
-
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "Home" && e.key !== "End") {
|
|
7766
|
+
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Home" && e.key !== "End") {
|
|
7767
7767
|
return;
|
|
7768
7768
|
}
|
|
7769
7769
|
const cards = getCards().filter(function(c) {
|
|
@@ -7778,10 +7778,14 @@
|
|
|
7778
7778
|
});
|
|
7779
7779
|
}
|
|
7780
7780
|
if (idx < 0) idx = 0;
|
|
7781
|
-
|
|
7781
|
+
const isVertical = window.getComputedStyle(container).flexDirection === "column";
|
|
7782
|
+
if (!isVertical && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
|
|
7783
|
+
return;
|
|
7784
|
+
}
|
|
7785
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
|
|
7782
7786
|
e.preventDefault();
|
|
7783
7787
|
setActive(cards[Math.max(0, idx - 1)]);
|
|
7784
|
-
} else if (e.key === "ArrowRight") {
|
|
7788
|
+
} else if (e.key === "ArrowRight" || e.key === "ArrowDown") {
|
|
7785
7789
|
e.preventDefault();
|
|
7786
7790
|
setActive(cards[Math.min(cards.length - 1, idx + 1)]);
|
|
7787
7791
|
} else if (e.key === "Home") {
|