@kungal/ui-vue 0.2.4 → 0.2.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"AAuRA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAS9C,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA6VJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;cAxWD,OAAO;cAJP,SAAS;WADZ,eAAe,EAAE;cAId,MAAM;kBAFF,MAAM;eACT,MAAM;6EA+WpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1840,14 +1840,14 @@ var Ke = O({
|
|
|
1840
1840
|
Se({ padding: 8 })
|
|
1841
1841
|
]
|
|
1842
1842
|
}), C = () => d.items.reduce((e, t, n) => (t.disabled || e.push(n), e), []), w = () => Array.from(_.value?.querySelectorAll("[role=\"menuitem\"]") ?? []), E = (e) => {
|
|
1843
|
-
h.value = e, w()[e]?.focus();
|
|
1843
|
+
h.value = e, w()[e]?.focus({ preventScroll: !0 });
|
|
1844
1844
|
}, D = (e = "none") => {
|
|
1845
1845
|
d.disabled || d.items.length === 0 || (m.value || (m.value = !0, f("open")), y(() => {
|
|
1846
1846
|
let t = C();
|
|
1847
|
-
e === "first" && t.length ? E(t[0]) : e === "last" && t.length ? E(t[t.length - 1]) : (h.value = -1, _.value?.focus());
|
|
1847
|
+
e === "first" && t.length ? E(t[0]) : e === "last" && t.length ? E(t[t.length - 1]) : (h.value = -1, _.value?.focus({ preventScroll: !0 }));
|
|
1848
1848
|
}));
|
|
1849
1849
|
}, j = (e = !1) => {
|
|
1850
|
-
m.value && (m.value = !1, h.value = -1, f("close"), e && y(() => g.value?.focus()));
|
|
1850
|
+
m.value && (m.value = !1, h.value = -1, f("close"), e && y(() => g.value?.focus({ preventScroll: !0 })));
|
|
1851
1851
|
}, N = () => m.value ? j() : D("none"), F = (e) => {
|
|
1852
1852
|
let t = C();
|
|
1853
1853
|
if (!t.length) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungal/ui-vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "KunUI Vue 3 component layer — Nuxt-decoupled. Works in any Vue app; pairs with @kungal/ui-nuxt for Nuxt sugar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"date-fns": "^4.1.0",
|
|
49
49
|
"focus-trap": "^8.2.1",
|
|
50
50
|
"vue-advanced-cropper": "^2.8.9",
|
|
51
|
-
"@kungal/ui-core": "0.2.
|
|
51
|
+
"@kungal/ui-core": "0.2.5"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.5.0"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"vite": "^8.0.16",
|
|
61
61
|
"vue": "^3.5.35",
|
|
62
62
|
"vue-tsc": "^3.3.3",
|
|
63
|
-
"@kungal/ui-tokens": "0.2.
|
|
63
|
+
"@kungal/ui-tokens": "0.2.5"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "vite build && vue-tsc -p tsconfig.build.json",
|