@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.cjs.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
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -201,7 +201,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
201
201
|
// js/vanduo.js
|
|
202
202
|
(function() {
|
|
203
203
|
"use strict";
|
|
204
|
-
const VANDUO_VERSION = true ? "1.5.
|
|
204
|
+
const VANDUO_VERSION = true ? "1.5.1" : "0.0.0-dev";
|
|
205
205
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
206
206
|
const Vanduo2 = {
|
|
207
207
|
version: VANDUO_VERSION,
|
|
@@ -7788,7 +7788,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
7788
7788
|
setActive(card);
|
|
7789
7789
|
};
|
|
7790
7790
|
const onKeydown = function(e) {
|
|
7791
|
-
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "Home" && e.key !== "End") {
|
|
7791
|
+
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Home" && e.key !== "End") {
|
|
7792
7792
|
return;
|
|
7793
7793
|
}
|
|
7794
7794
|
const cards = getCards().filter(function(c) {
|
|
@@ -7803,10 +7803,14 @@ module.exports = __toCommonJS(index_exports);
|
|
|
7803
7803
|
});
|
|
7804
7804
|
}
|
|
7805
7805
|
if (idx < 0) idx = 0;
|
|
7806
|
-
|
|
7806
|
+
const isVertical = window.getComputedStyle(container).flexDirection === "column";
|
|
7807
|
+
if (!isVertical && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
|
|
7808
|
+
return;
|
|
7809
|
+
}
|
|
7810
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
|
|
7807
7811
|
e.preventDefault();
|
|
7808
7812
|
setActive(cards[Math.max(0, idx - 1)]);
|
|
7809
|
-
} else if (e.key === "ArrowRight") {
|
|
7813
|
+
} else if (e.key === "ArrowRight" || e.key === "ArrowDown") {
|
|
7810
7814
|
e.preventDefault();
|
|
7811
7815
|
setActive(cards[Math.min(cards.length - 1, idx + 1)]);
|
|
7812
7816
|
} else if (e.key === "Home") {
|