vue-composable-ui 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.
Files changed (47) hide show
  1. package/dist/{combobox.vue_vue_type_script_setup_true_lang-BhfoMt6j.js → combobox.vue_vue_type_script_setup_true_lang-ChCbDl0x.js} +35 -36
  2. package/dist/comboboxInput.vue_vue_type_script_setup_true_lang-D3KIXNRO.js +34 -0
  3. package/dist/{comboboxOption.vue_vue_type_script_setup_true_lang-DPEArk3M.js → comboboxOption.vue_vue_type_script_setup_true_lang-C9FIG5ye.js} +2 -2
  4. package/dist/{comboboxOptions.vue_vue_type_script_setup_true_lang-Doy6MfEQ.js → comboboxOptions.vue_vue_type_script_setup_true_lang-DLv4KjF8.js} +1 -1
  5. package/dist/composable-ui.js +45 -43
  6. package/dist/composable-ui10.js +1 -1
  7. package/dist/composable-ui11.js +1 -1
  8. package/dist/composable-ui12.js +1 -1
  9. package/dist/composable-ui13.js +1 -1
  10. package/dist/composable-ui14.js +1 -1
  11. package/dist/composable-ui15.js +1 -1
  12. package/dist/composable-ui16.js +1 -1
  13. package/dist/composable-ui17.js +2 -29
  14. package/dist/composable-ui18.js +29 -2
  15. package/dist/composable-ui19.js +1 -1
  16. package/dist/composable-ui2.js +24 -49
  17. package/dist/composable-ui20.js +1 -1
  18. package/dist/composable-ui21.js +2 -101
  19. package/dist/composable-ui22.js +91 -132
  20. package/dist/composable-ui23.js +141 -4
  21. package/dist/composable-ui24.js +5 -5
  22. package/dist/composable-ui25.js +7 -0
  23. package/dist/composable-ui3.js +53 -2
  24. package/dist/composable-ui4.js +1 -1
  25. package/dist/composable-ui5.js +1 -1
  26. package/dist/composable-ui6.js +1 -1
  27. package/dist/composable-ui7.js +1 -1
  28. package/dist/composable-ui8.js +1 -1
  29. package/dist/composable-ui9.js +1 -1
  30. package/dist/{listbox.vue_vue_type_script_setup_true_lang-CP8lV3wp.js → listbox.vue_vue_type_script_setup_true_lang-BJS1g6K9.js} +1 -1
  31. package/dist/{listboxOption.vue_vue_type_script_setup_true_lang-C1-Q-dSr.js → listboxOption.vue_vue_type_script_setup_true_lang-DMkQ_ZA_.js} +1 -1
  32. package/dist/{menu.vue_vue_type_script_setup_true_lang-Ci7q2rOg.js → menu.vue_vue_type_script_setup_true_lang-BTGGj0FY.js} +3 -3
  33. package/dist/{menuItem.vue_vue_type_script_setup_true_lang-ezPw3j-i.js → menuItem.vue_vue_type_script_setup_true_lang-CSWsvc1p.js} +2 -2
  34. package/dist/{menuItems.vue_vue_type_script_setup_true_lang-p9vftREy.js → menuItems.vue_vue_type_script_setup_true_lang-DZL1uyoq.js} +1 -1
  35. package/dist/{popover.vue_vue_type_script_setup_true_lang-DhKF7_nY.js → popover.vue_vue_type_script_setup_true_lang-C13ARHho.js} +2 -2
  36. package/dist/{popoverDialog.vue_vue_type_script_setup_true_lang-CDXUO7wZ.js → popoverDialog.vue_vue_type_script_setup_true_lang-C2z6To-6.js} +1 -1
  37. package/dist/{tab.vue_vue_type_script_setup_true_lang-Y5OFGqMB.js → tab.vue_vue_type_script_setup_true_lang-BSckMUwj.js} +1 -1
  38. package/dist/{tabContainer.vue_vue_type_script_setup_true_lang-fPpLno2Z.js → tabContainer.vue_vue_type_script_setup_true_lang-YfrBXoWm.js} +2 -2
  39. package/dist/{tabList.vue_vue_type_script_setup_true_lang-CZyqGCuj.js → tabList.vue_vue_type_script_setup_true_lang-DLoNOwJ7.js} +1 -1
  40. package/dist/{tabPanel.vue_vue_type_script_setup_true_lang-CGhP6SHR.js → tabPanel.vue_vue_type_script_setup_true_lang-DZfMk_Sn.js} +2 -2
  41. package/dist/{tooltip.vue_vue_type_script_setup_true_lang-D4uAZmQb.js → tooltip.vue_vue_type_script_setup_true_lang-CXxwHtxF.js} +1 -1
  42. package/dist/types/components/combobox/combobox.vue.d.ts +0 -3
  43. package/dist/types/components/injectionKeys.d.ts +1 -0
  44. package/dist/types/main.d.ts +1 -0
  45. package/dist/types/utils/validation.d.ts +25 -0
  46. package/package.json +1 -1
  47. package/dist/comboboxInput.vue_vue_type_script_setup_true_lang-DzRfJ5ke.js +0 -33
@@ -1,144 +1,103 @@
1
- import { shallowRef as N, ref as R, computed as g, provide as B, readonly as h, shallowReadonly as J, triggerRef as S, unref as s } from "vue";
2
- import { useHTMLElement as _ } from "./composable-ui23.js";
3
- const q = Symbol();
4
- function d(r, c) {
5
- const [n, l] = [s(r), s(c)];
6
- return typeof n == "object" ? typeof l == "object" ? JSON.stringify(n) === JSON.stringify(l) : !1 : n === l;
7
- }
8
- function P(r) {
9
- let c = 0;
10
- const n = N([]), l = R(), v = g(() => Array.isArray(r.value));
11
- function o(e) {
12
- const t = n.value.find((i) => i.id === e);
13
- if (!t) throw new Error(`Item not found: (${e})`);
14
- return t;
15
- }
16
- function b(e) {
17
- const t = s(e.element);
18
- if (t)
19
- return t.focus(), t;
20
- }
21
- function f(e, { focus: t = !1 } = {}) {
22
- l.value = e?.id ?? void 0, e !== void 0 && t && b(e);
23
- }
24
- function O(e, { focus: t = !1 } = {}) {
25
- const i = o(e);
26
- return f(i, { focus: t });
27
- }
28
- function m(e) {
29
- return l.value === e;
30
- }
31
- function w(e, t, i = !1) {
32
- const a = _(e), u = c++;
33
- return n.value.push({
34
- id: u,
35
- value: t,
36
- element: a,
37
- disabled: i
38
- }), S(n), u;
1
+ import { ref as T, watch as _, nextTick as P, onBeforeMount as F, onMounted as U, onBeforeUnmount as j } from "vue";
2
+ import { useHTMLElement as k } from "./composable-ui24.js";
3
+ function G(y, z, {
4
+ direction: c = "down",
5
+ align: u = "left",
6
+ position: L = "fixed",
7
+ closeOnOutsideClick: A = !0,
8
+ closeOnInsideClick: M = !1
9
+ } = {}) {
10
+ const s = T(!1);
11
+ function v() {
12
+ const e = k(y);
13
+ if (!e.value) throw new Error("Activator element is undefined");
14
+ return e.value;
39
15
  }
40
- function A(e) {
41
- m(e) && f();
42
- const t = o(e), i = n.value.indexOf(t);
43
- n.value.splice(i, 1), S(n);
16
+ function $() {
17
+ const e = k(z);
18
+ if (!e.value) throw new Error("Popover element is undefined");
19
+ return e.value;
44
20
  }
45
- function I(e) {
46
- const t = o(e);
47
- if (s(t.disabled)) return;
48
- const i = s(t.value);
49
- if (i !== void 0) {
50
- if (s(v)) {
51
- const a = r.value.findIndex(
52
- (u) => d(i, u)
53
- );
54
- a > -1 ? r.value.splice(a, 1) : r.value = [...r.value, i];
55
- } else
56
- r.value = i;
57
- f(t);
58
- }
21
+ function B({ focus: e = !0 } = {}) {
22
+ s.value = !0, e && P(() => {
23
+ $().focus();
24
+ });
59
25
  }
60
- function y(e) {
61
- return s(v) ? !!r.value.find(
62
- (t) => d(e.value, t)
63
- ) : d(r, e.value);
26
+ function E({ focus: e = !0 } = {}) {
27
+ s.value = !1, e && v().focus();
64
28
  }
65
- function L(e) {
66
- try {
67
- const t = o(e);
68
- return y(t);
69
- } catch {
70
- return !1;
71
- }
29
+ function O(e) {
30
+ s.value ? E(e) : B(e);
72
31
  }
73
- function j({ focus: e = !1 } = {}) {
74
- for (let t of n.value)
75
- if (y(t))
76
- return f(t, { focus: e });
32
+ function h() {
33
+ if (!s.value) return;
34
+ const e = v(), r = $();
35
+ r.style.position = L;
36
+ const {
37
+ top: f,
38
+ right: l,
39
+ bottom: w,
40
+ left: p,
41
+ width: m,
42
+ height: W
43
+ } = e.getBoundingClientRect(), a = r.offsetHeight, d = r.offsetWidth, x = document.documentElement.clientHeight, b = document.documentElement.clientWidth;
44
+ let i = c;
45
+ c == "up" ? f - a < 0 && (i = "down") : c == "down" ? w + a > x && (i = "up") : c == "right" ? l + d > b && (i = "left") : c == "left" && p - d < 0 && (i = "right");
46
+ let o = u;
47
+ u == "left" ? p + d > b && (o = "right") : u == "right" ? l - d < 0 && (o = "left") : u == "top" ? f + a > x && (o = "bottom") : u == "bottom" && w - a < 0 && (o = "top");
48
+ const t = {
49
+ top: "auto",
50
+ bottom: "auto",
51
+ left: "auto",
52
+ right: "auto",
53
+ width: "auto"
54
+ }, n = L === "fixed";
55
+ i == "up" ? t.bottom = `${W + (n ? x - w : 0)}px` : i == "down" ? t.top = `${W + (n ? f : 0)}px` : i == "right" ? t.left = `${m + (n ? p : 0)}px` : i == "left" && (t.right = `${m + (n ? b - l : 0)}px`), ["up", "down"].includes(i) ? o == "right" ? t.right = `${n ? b - l : 0}px` : o == "left" || o == "stretch" ? t.left = `${n ? p : 0}px` : o == "center" && (t.left = `${(n ? p : 0) - (d - m) / 2}px`) : o == "bottom" ? t.bottom = `${n ? x - w : 0}px` : o == "top" ? t.top = `${n ? f : 0}px` : o == "center" && (t.top = `${(n ? f : 0) - (a - W) / 2}px`), ["up", "down"].includes(i) && o === "stretch" && (t.width = m + "px");
56
+ for (const C in t)
57
+ r.style[C] = t[C];
77
58
  }
78
- function p({ focus: e = !1 } = {}) {
79
- if (n.value.length)
80
- return f(n.value[0], { focus: e });
81
- }
82
- function x({ focus: e = !1 } = {}) {
83
- if (n.value.length)
84
- return f(n.value[n.value.length - 1], { focus: e });
85
- }
86
- function E({
87
- focus: e = !1,
88
- loop: t = !1
89
- } = {}) {
90
- if (l.value === void 0) return p({ focus: e });
91
- const i = o(l.value), a = n.value.indexOf(i);
92
- let u;
93
- if (a + 1 < n.value.length)
94
- u = n.value[a + 1];
95
- else if (t)
96
- u = n.value[0];
97
- else
98
- return;
99
- return f(u, { focus: e });
100
- }
101
- function M({
102
- focus: e = !1,
103
- loop: t = !1
104
- } = {}) {
105
- if (l.value === void 0) return x({ focus: e });
106
- const i = o(l.value), a = n.value.indexOf(i);
107
- let u;
108
- if (a - 1 > -1)
109
- u = n.value[a - 1];
110
- else if (t)
111
- u = n.value[n.value.length - 1];
112
- else
113
- return;
114
- return f(u, { focus: e });
59
+ _(
60
+ s,
61
+ (e) => {
62
+ e && P(() => {
63
+ h();
64
+ });
65
+ },
66
+ { flush: "pre" }
67
+ );
68
+ function R(e) {
69
+ const r = e.target;
70
+ if (!v().contains(r))
71
+ try {
72
+ $().contains(r) ? M && E() : A && (s.value = !1);
73
+ } catch {
74
+ }
115
75
  }
116
- return B(q, {
117
- value: h(r),
118
- selectItem: I,
119
- activateItem: O,
120
- deactivateItem: () => f(),
121
- isSelected: L,
122
- isActive: m,
123
- addItem: w,
124
- removeItem: A
76
+ let H;
77
+ const g = new AbortController();
78
+ return F(() => {
79
+ H = new ResizeObserver(h);
80
+ }), U(() => {
81
+ window.addEventListener("resize", h, {
82
+ passive: !0,
83
+ signal: g.signal
84
+ }), window.addEventListener("scroll", h, {
85
+ passive: !0,
86
+ //capture: true,
87
+ signal: g.signal
88
+ }), window.addEventListener("click", R, {
89
+ passive: !0,
90
+ signal: g.signal
91
+ }), H.observe(v());
92
+ }), j(() => {
93
+ g.abort(), H.disconnect();
125
94
  }), {
126
- items: J(n),
127
- isMultiselectable: h(v),
128
- activeItem: g(
129
- () => l.value !== void 0 ? o(l.value) : void 0
130
- ),
131
- selectActiveItem: () => {
132
- l.value !== void 0 && I(l.value);
133
- },
134
- activateSelectedItem: j,
135
- activateFirstItem: p,
136
- activateLastItem: x,
137
- activateNextItem: E,
138
- activatePrevItem: M
95
+ isOpen: s,
96
+ open: B,
97
+ close: E,
98
+ toggle: O
139
99
  };
140
100
  }
141
101
  export {
142
- q as injectList,
143
- P as useList
102
+ G as usePopover
144
103
  };
@@ -1,7 +1,144 @@
1
- import { ref as r } from "vue";
2
- function n(e) {
3
- return typeof e == "string" ? r(document.querySelector(e)) : e instanceof HTMLElement ? r(e) : e;
1
+ import { shallowRef as N, ref as R, computed as g, provide as B, readonly as h, shallowReadonly as J, triggerRef as S, unref as s } from "vue";
2
+ import { useHTMLElement as _ } from "./composable-ui24.js";
3
+ const q = Symbol();
4
+ function d(r, c) {
5
+ const [n, l] = [s(r), s(c)];
6
+ return typeof n == "object" ? typeof l == "object" ? JSON.stringify(n) === JSON.stringify(l) : !1 : n === l;
7
+ }
8
+ function P(r) {
9
+ let c = 0;
10
+ const n = N([]), l = R(), v = g(() => Array.isArray(r.value));
11
+ function o(e) {
12
+ const t = n.value.find((i) => i.id === e);
13
+ if (!t) throw new Error(`Item not found: (${e})`);
14
+ return t;
15
+ }
16
+ function b(e) {
17
+ const t = s(e.element);
18
+ if (t)
19
+ return t.focus(), t;
20
+ }
21
+ function f(e, { focus: t = !1 } = {}) {
22
+ l.value = e?.id ?? void 0, e !== void 0 && t && b(e);
23
+ }
24
+ function O(e, { focus: t = !1 } = {}) {
25
+ const i = o(e);
26
+ return f(i, { focus: t });
27
+ }
28
+ function m(e) {
29
+ return l.value === e;
30
+ }
31
+ function w(e, t, i = !1) {
32
+ const a = _(e), u = c++;
33
+ return n.value.push({
34
+ id: u,
35
+ value: t,
36
+ element: a,
37
+ disabled: i
38
+ }), S(n), u;
39
+ }
40
+ function A(e) {
41
+ m(e) && f();
42
+ const t = o(e), i = n.value.indexOf(t);
43
+ n.value.splice(i, 1), S(n);
44
+ }
45
+ function I(e) {
46
+ const t = o(e);
47
+ if (s(t.disabled)) return;
48
+ const i = s(t.value);
49
+ if (i !== void 0) {
50
+ if (s(v)) {
51
+ const a = r.value.findIndex(
52
+ (u) => d(i, u)
53
+ );
54
+ a > -1 ? r.value.splice(a, 1) : r.value = [...r.value, i];
55
+ } else
56
+ r.value = i;
57
+ f(t);
58
+ }
59
+ }
60
+ function y(e) {
61
+ return s(v) ? !!r.value.find(
62
+ (t) => d(e.value, t)
63
+ ) : d(r, e.value);
64
+ }
65
+ function L(e) {
66
+ try {
67
+ const t = o(e);
68
+ return y(t);
69
+ } catch {
70
+ return !1;
71
+ }
72
+ }
73
+ function j({ focus: e = !1 } = {}) {
74
+ for (let t of n.value)
75
+ if (y(t))
76
+ return f(t, { focus: e });
77
+ }
78
+ function p({ focus: e = !1 } = {}) {
79
+ if (n.value.length)
80
+ return f(n.value[0], { focus: e });
81
+ }
82
+ function x({ focus: e = !1 } = {}) {
83
+ if (n.value.length)
84
+ return f(n.value[n.value.length - 1], { focus: e });
85
+ }
86
+ function E({
87
+ focus: e = !1,
88
+ loop: t = !1
89
+ } = {}) {
90
+ if (l.value === void 0) return p({ focus: e });
91
+ const i = o(l.value), a = n.value.indexOf(i);
92
+ let u;
93
+ if (a + 1 < n.value.length)
94
+ u = n.value[a + 1];
95
+ else if (t)
96
+ u = n.value[0];
97
+ else
98
+ return;
99
+ return f(u, { focus: e });
100
+ }
101
+ function M({
102
+ focus: e = !1,
103
+ loop: t = !1
104
+ } = {}) {
105
+ if (l.value === void 0) return x({ focus: e });
106
+ const i = o(l.value), a = n.value.indexOf(i);
107
+ let u;
108
+ if (a - 1 > -1)
109
+ u = n.value[a - 1];
110
+ else if (t)
111
+ u = n.value[n.value.length - 1];
112
+ else
113
+ return;
114
+ return f(u, { focus: e });
115
+ }
116
+ return B(q, {
117
+ value: h(r),
118
+ selectItem: I,
119
+ activateItem: O,
120
+ deactivateItem: () => f(),
121
+ isSelected: L,
122
+ isActive: m,
123
+ addItem: w,
124
+ removeItem: A
125
+ }), {
126
+ items: J(n),
127
+ isMultiselectable: h(v),
128
+ activeItem: g(
129
+ () => l.value !== void 0 ? o(l.value) : void 0
130
+ ),
131
+ selectActiveItem: () => {
132
+ l.value !== void 0 && I(l.value);
133
+ },
134
+ activateSelectedItem: j,
135
+ activateFirstItem: p,
136
+ activateLastItem: x,
137
+ activateNextItem: E,
138
+ activatePrevItem: M
139
+ };
4
140
  }
5
141
  export {
6
- n as useHTMLElement
142
+ q as injectList,
143
+ P as useList
7
144
  };
@@ -1,7 +1,7 @@
1
- const o = Symbol(), n = Symbol(), t = Symbol(), c = Symbol();
1
+ import { ref as r } from "vue";
2
+ function n(e) {
3
+ return typeof e == "string" ? r(document.querySelector(e)) : e instanceof HTMLElement ? r(e) : e;
4
+ }
2
5
  export {
3
- c as injectCombobox,
4
- t as injectMenu,
5
- n as injectPopover,
6
- o as injectTabs
6
+ n as useHTMLElement
7
7
  };
@@ -0,0 +1,7 @@
1
+ const o = Symbol(), n = Symbol(), t = Symbol(), c = Symbol();
2
+ export {
3
+ c as injectCombobox,
4
+ t as injectMenu,
5
+ n as injectPopover,
6
+ o as injectTabs
7
+ };
@@ -1,4 +1,55 @@
1
- import { _ as f } from "./tooltip.vue_vue_type_script_setup_true_lang-D4uAZmQb.js";
1
+ import { ref as t, onMounted as V, onBeforeUnmount as M, readonly as m, unref as g } from "vue";
2
+ import { useHTMLElement as b } from "./composable-ui24.js";
3
+ function k(y, h = [], w = !0) {
4
+ const a = t(!1), n = t(!0), l = t(), r = t("");
5
+ let e, u;
6
+ function s() {
7
+ e?.focus();
8
+ }
9
+ function d() {
10
+ n.value = e.validity.valid, l.value = e.validity, r.value = e.validationMessage;
11
+ }
12
+ function f() {
13
+ if (!e) throw new Error("Form element is undefined");
14
+ const o = e.value;
15
+ for (const p of g(h)) {
16
+ const c = p(o);
17
+ if (c !== !0) {
18
+ e.setCustomValidity(c);
19
+ break;
20
+ }
21
+ }
22
+ }
23
+ function v() {
24
+ if (!e) throw new Error("Form element is undefined");
25
+ return e.setCustomValidity(""), e.validity.valid && f(), d(), n.value;
26
+ }
27
+ function C(o) {
28
+ d(), g(w) || o.preventDefault();
29
+ }
30
+ function E() {
31
+ v(), a.value = u !== e.value;
32
+ }
33
+ let i = new AbortController();
34
+ return V(() => {
35
+ if (e = b(y).value, !e) throw new Error("Form element is undefined");
36
+ f(), u = e.value, e.addEventListener("change", E, {
37
+ signal: i.signal,
38
+ passive: !0
39
+ }), e.addEventListener("invalid", C, {
40
+ signal: i.signal
41
+ }), e?.autofocus && s();
42
+ }), M(() => {
43
+ i.abort();
44
+ }), {
45
+ focus: s,
46
+ validate: v,
47
+ isValid: n,
48
+ validity: m(l),
49
+ validationMessage: m(r),
50
+ isChanged: a
51
+ };
52
+ }
2
53
  export {
3
- f as default
54
+ k as useFormControl
4
55
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./tabPanel.vue_vue_type_script_setup_true_lang-CGhP6SHR.js";
1
+ import { _ as f } from "./tooltip.vue_vue_type_script_setup_true_lang-CXxwHtxF.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./tabList.vue_vue_type_script_setup_true_lang-CZyqGCuj.js";
1
+ import { _ as f } from "./tabPanel.vue_vue_type_script_setup_true_lang-DZfMk_Sn.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./tabContainer.vue_vue_type_script_setup_true_lang-fPpLno2Z.js";
1
+ import { _ as f } from "./tabList.vue_vue_type_script_setup_true_lang-DLoNOwJ7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./tab.vue_vue_type_script_setup_true_lang-Y5OFGqMB.js";
1
+ import { _ as f } from "./tabContainer.vue_vue_type_script_setup_true_lang-YfrBXoWm.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./popoverDialog.vue_vue_type_script_setup_true_lang-CDXUO7wZ.js";
1
+ import { _ as f } from "./tab.vue_vue_type_script_setup_true_lang-BSckMUwj.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./popover.vue_vue_type_script_setup_true_lang-DhKF7_nY.js";
1
+ import { _ as f } from "./popoverDialog.vue_vue_type_script_setup_true_lang-C2z6To-6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, mergeModels as p, useModel as v, computed as b, createElementBlock as k, openBlock as w, unref as I, renderSlot as h } from "vue";
2
- import { useList as x } from "./composable-ui22.js";
2
+ import { useList as x } from "./composable-ui23.js";
3
3
  const A = ["aria-activedescendant", "aria-orientation", "aria-multiselectable"], B = /* @__PURE__ */ m({
4
4
  __name: "listbox",
5
5
  props: /* @__PURE__ */ p({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, useId as p, useTemplateRef as u, createElementBlock as f, openBlock as b, unref as e, renderSlot as v } from "vue";
2
- import { useListOption as _ } from "./composable-ui17.js";
2
+ import { useListOption as _ } from "./composable-ui18.js";
3
3
  const k = ["id", "aria-disabled", "aria-selected", "data-active"], B = /* @__PURE__ */ m({
4
4
  __name: "listboxOption",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, mergeModels as M, useId as u, useModel as O, computed as m, provide as A, renderSlot as _, unref as h, nextTick as r } from "vue";
2
- import { usePopover as C } from "./composable-ui21.js";
3
- import { useList as D } from "./composable-ui22.js";
4
- import { injectMenu as V } from "./composable-ui24.js";
2
+ import { usePopover as C } from "./composable-ui22.js";
3
+ import { useList as D } from "./composable-ui23.js";
4
+ import { injectMenu as V } from "./composable-ui25.js";
5
5
  const j = /* @__PURE__ */ b({
6
6
  __name: "menu",
7
7
  props: /* @__PURE__ */ M({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, useId as x, useTemplateRef as y, inject as S, computed as h, createElementBlock as j, openBlock as A, unref as t, renderSlot as B } from "vue";
2
- import { useListOption as I } from "./composable-ui17.js";
3
- import { injectMenu as $ } from "./composable-ui24.js";
2
+ import { useListOption as I } from "./composable-ui18.js";
3
+ import { injectMenu as $ } from "./composable-ui25.js";
4
4
  const C = ["id", "data-active", "role", "aria-checked", "aria-disabled"], O = /* @__PURE__ */ w({
5
5
  __name: "menuItem",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, inject as o, createElementBlock as c, createCommentVNode as s, unref as a, openBlock as i, renderSlot as u } from "vue";
2
- import { injectMenu as l } from "./composable-ui24.js";
2
+ import { injectMenu as l } from "./composable-ui25.js";
3
3
  const d = ["id", "aria-activedescendant", "aria-labelledby"], b = /* @__PURE__ */ n({
4
4
  __name: "menuItems",
5
5
  setup(m) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, useId as r, computed as f, provide as v, renderSlot as O, unref as t } from "vue";
2
- import { usePopover as m } from "./composable-ui21.js";
3
- import { injectPopover as g } from "./composable-ui24.js";
2
+ import { usePopover as m } from "./composable-ui22.js";
3
+ import { injectPopover as g } from "./composable-ui25.js";
4
4
  const x = /* @__PURE__ */ u({
5
5
  __name: "popover",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, inject as a, createElementBlock as i, createCommentVNode as c, unref as r, openBlock as l, renderSlot as p } from "vue";
2
- import { injectPopover as d } from "./composable-ui24.js";
2
+ import { injectPopover as d } from "./composable-ui25.js";
3
3
  const s = ["id", "role", "aria-labelledby"], v = /* @__PURE__ */ n({
4
4
  __name: "popoverDialog",
5
5
  setup(u) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useTemplateRef as b, useId as s, createElementBlock as f, openBlock as m, unref as e, renderSlot as _ } from "vue";
2
- import { useListOption as k } from "./composable-ui17.js";
2
+ import { useListOption as k } from "./composable-ui18.js";
3
3
  const C = ["id", "aria-selected", "aria-controls", "tabindex"], v = /* @__PURE__ */ u({
4
4
  __name: "tab",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, useModel as u, provide as v, computed as p, createElementBlock as f, openBlock as I, renderSlot as _ } from "vue";
2
- import { useList as b } from "./composable-ui22.js";
3
- import { injectTabs as g } from "./composable-ui24.js";
2
+ import { useList as b } from "./composable-ui23.js";
3
+ import { injectTabs as g } from "./composable-ui25.js";
4
4
  const x = /* @__PURE__ */ c({
5
5
  __name: "tabContainer",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, inject as n, createElementBlock as c, openBlock as s, renderSlot as u } from "vue";
2
- import { injectTabs as l } from "./composable-ui24.js";
2
+ import { injectTabs as l } from "./composable-ui25.js";
3
3
  const f = ["aria-orientation"], b = /* @__PURE__ */ i({
4
4
  __name: "tabList",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, inject as i, computed as d, withDirectives as p, createElementBlock as b, openBlock as u, unref as r, renderSlot as m, vShow as v } from "vue";
2
- import { injectList as f } from "./composable-ui22.js";
3
- import { injectTabs as _ } from "./composable-ui24.js";
2
+ import { injectList as f } from "./composable-ui23.js";
3
+ import { injectTabs as _ } from "./composable-ui25.js";
4
4
  const h = ["id", "aria-labelledby"], I = /* @__PURE__ */ c({
5
5
  __name: "tabPanel",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, useSlots as b, ref as E, useId as k, onMounted as w, onBeforeUnmount as $, createElementBlock as p, openBlock as a, Fragment as L, renderSlot as f, createBlock as T, Teleport as _, createCommentVNode as h, unref as m, mergeProps as B, createTextVNode as S, toDisplayString as A } from "vue";
2
- import { usePopover as C } from "./composable-ui21.js";
2
+ import { usePopover as C } from "./composable-ui22.js";
3
3
  const I = ["id"], P = /* @__PURE__ */ g({
4
4
  inheritAttrs: !1,
5
5
  __name: "tooltip",
@@ -5,7 +5,6 @@ type __VLS_Props = {
5
5
  name?: string;
6
6
  formValue?: (item: any) => Record<string, string> | string;
7
7
  };
8
- declare function onKeyDown(evt: KeyboardEvent): void;
9
8
  type __VLS_PublicProps = __VLS_Props & {
10
9
  modelValue?: any;
11
10
  };
@@ -15,8 +14,6 @@ declare var __VLS_9: {
15
14
  toggle: () => void;
16
15
  displayValue: ((value: any) => string) & string;
17
16
  attrs: {
18
- onkeydown: typeof onKeyDown;
19
- onclick: () => void;
20
17
  id: string;
21
18
  "aria-controls": string | undefined;
22
19
  "aria-expanded": boolean;
@@ -40,4 +40,5 @@ export declare const injectCombobox: InjectionKey<{
40
40
  isMultiselectable: UseListReturn["isMultiselectable"];
41
41
  focus: () => void;
42
42
  activatorAttrs: ComputedRef<Record<string, any>>;
43
+ activatorOnKeyDown: (e: KeyboardEvent) => void;
43
44
  }>;
@@ -3,6 +3,7 @@ export { useList } from "./composables/list";
3
3
  export { useListOption } from "./composables/listOption";
4
4
  export { useFormControl } from "./composables/formControl";
5
5
  export { useHTMLElement } from "./utils/element";
6
+ export { useValidation } from "./utils/validation";
6
7
  export * from "./components/injectionKeys";
7
8
  export { default as Listbox } from "./components/listbox/listbox.vue";
8
9
  export { default as ListboxOption } from "./components/listbox/listboxOption.vue";