@indielayer/ui 1.14.3 → 1.14.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.
@@ -24,7 +24,7 @@ const show3 = ref(false)
24
24
 
25
25
  <template #actions>
26
26
  <div class="text-right space-x-4">
27
- <x-button @click="show = false">Cancel</x-button>
27
+ <x-button tabindex="-1" @click="show = false">Cancel</x-button>
28
28
  <x-button color="success">Confirm</x-button>
29
29
  </div>
30
30
  </template>
@@ -1,15 +1,15 @@
1
- import { defineComponent as R, ref as w, watch as m, unref as r, openBlock as i, createElementBlock as p, normalizeStyle as T, normalizeClass as t, createElementVNode as d, withKeys as H, withModifiers as O, withDirectives as U, mergeProps as X, toHandlers as j, vModelCheckbox as J, createBlock as V, renderSlot as C, toDisplayString as Q, createCommentVNode as W } from "vue";
1
+ import { defineComponent as T, ref as w, watch as m, unref as r, openBlock as o, createElementBlock as d, normalizeStyle as H, normalizeClass as t, createElementVNode as p, withKeys as O, withModifiers as U, withDirectives as X, mergeProps as j, toHandlers as J, vModelCheckbox as Q, createBlock as V, renderSlot as C, toDisplayString as W, createCommentVNode as I } from "vue";
2
2
  import { useColors as Y } from "../../composables/useColors.js";
3
- import { useCommon as I } from "../../composables/useCommon.js";
3
+ import { useCommon as z } from "../../composables/useCommon.js";
4
4
  import { useInputtable as f } from "../../composables/useInputtable.js";
5
- import { useInteractive as z } from "../../composables/useInteractive.js";
5
+ import { useInteractive as A } from "../../composables/useInteractive.js";
6
6
  import { useTheme as Z } from "../../composables/useTheme.js";
7
7
  import x from "../inputFooter/InputFooter.vue.js";
8
8
  import _ from "../spinner/Spinner.vue.js";
9
9
  const ee = ["onKeypress"], le = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], se = ["textContent"], ae = {
10
- ...I.props(),
11
- ...Y.props("primary"),
12
10
  ...z.props(),
11
+ ...Y.props("primary"),
12
+ ...A.props(),
13
13
  ...f.props(),
14
14
  value: [String, Number],
15
15
  indeterminate: Boolean,
@@ -17,74 +17,74 @@ const ee = ["onKeypress"], le = ["id", "name", "aria-checked", "aria-disabled",
17
17
  }, re = {
18
18
  name: "XCheckbox",
19
19
  validators: {
20
- ...I.validators()
20
+ ...z.validators()
21
21
  }
22
- }, ce = /* @__PURE__ */ R({
22
+ }, ce = /* @__PURE__ */ T({
23
23
  ...re,
24
24
  props: ae,
25
25
  emits: f.emits(!1),
26
- setup(A, { expose: B, emit: $ }) {
27
- const l = A, v = $, b = w(null), a = w(!1);
26
+ setup(B, { expose: $, emit: F }) {
27
+ const l = B, v = F, b = w(null), a = w(!1);
28
28
  function y() {
29
29
  l.disabled || l.loading || l.readonly || (a.value = !a.value);
30
30
  }
31
- const { focus: h, blur: F } = z(b), {
32
- errorInternal: G,
33
- hideFooterInternal: N,
34
- isInsideForm: S,
31
+ const { focus: h, blur: G } = A(b), {
32
+ errorInternal: N,
33
+ hideFooterInternal: S,
34
+ isInsideForm: q,
35
35
  isInsideFormGroup: c,
36
- isFirstValidation: q,
37
- formGroup: o,
38
- reset: E,
36
+ isFirstValidation: E,
37
+ formGroup: i,
38
+ reset: K,
39
39
  validate: k,
40
- setError: K
40
+ setError: L
41
41
  } = f(l, { focus: h, emit: v, withListeners: !1 });
42
- c ? (m(() => o.value, () => {
43
- const e = r(o.value);
42
+ c ? (m(() => i.value, () => {
43
+ const e = r(i.value);
44
44
  e && Array.isArray(e) && e.includes(l.value) ? a.value = !0 : a.value = !1;
45
45
  }, { immediate: !0, deep: !0 }), m(() => a.value, (e) => {
46
46
  if (!l.value)
47
47
  return;
48
- const s = r(o.value);
48
+ const s = r(i.value);
49
49
  if (e)
50
50
  if (s && Array.isArray(s)) {
51
51
  if (!s.includes(l.value)) {
52
52
  const u = [...s, l.value];
53
- o.setValue(u);
53
+ i.setValue(u);
54
54
  }
55
55
  } else
56
- o.setValue([l.value]);
56
+ i.setValue([l.value]);
57
57
  else if (s && Array.isArray(s) && s.includes(l.value)) {
58
- const u = s.findIndex((P) => P === l.value), g = [...s];
59
- g.splice(u, 1), o.setValue(g);
58
+ const u = s.findIndex((R) => R === l.value), g = [...s];
59
+ g.splice(u, 1), i.setValue(g);
60
60
  }
61
61
  })) : (m(() => l.modelValue, (e) => {
62
62
  a.value = !!e;
63
63
  }, { immediate: !0 }), m(() => a.value, (e) => {
64
64
  v("update:modelValue", e);
65
65
  }));
66
- const L = {
66
+ const M = {
67
67
  input: () => {
68
68
  c || setTimeout(() => {
69
- l.validateOnInput && !q.value && k(l.modelValue);
69
+ l.validateOnInput && !E.value && k(l.modelValue);
70
70
  }, 0);
71
71
  }
72
- }, { styles: M, classes: n, className: D } = Z("Checkbox", {}, l, { checked: a, isInsideForm: S, isInsideFormGroup: c });
73
- return B({ focus: h, blur: F, toggle: y, reset: E, validate: k, setError: K }), (e, s) => (i(), p("label", {
74
- style: T(r(M)),
72
+ }, { styles: D, classes: n, className: P } = Z("Checkbox", {}, l, { checked: a, isInsideForm: q, isInsideFormGroup: c });
73
+ return $({ focus: h, blur: G, toggle: y, reset: K, validate: k, setError: L }), (e, s) => (o(), d("label", {
74
+ style: H(r(D)),
75
75
  class: t([
76
- r(D),
76
+ r(P),
77
77
  r(n).wrapper
78
78
  ])
79
79
  }, [
80
- d("div", {
80
+ p("div", {
81
81
  ref_key: "elRef",
82
82
  ref: b,
83
83
  class: t(r(n).content),
84
84
  tabindex: "0",
85
- onKeypress: H(O(y, ["prevent", "stop"]), ["space"])
85
+ onKeypress: O(U(y, ["prevent", "stop"]), ["space"])
86
86
  }, [
87
- U(d("input", X({
87
+ X(p("input", j({
88
88
  id: e.id,
89
89
  "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
90
90
  name: e.name,
@@ -94,44 +94,45 @@ const ee = ["onKeypress"], le = ["id", "name", "aria-checked", "aria-disabled",
94
94
  class: "invisible absolute",
95
95
  disabled: e.disabled || e.loading || e.readonly,
96
96
  required: e.required
97
- }, j(L, !0)), null, 16, le), [
98
- [J, a.value]
97
+ }, J(M, !0)), null, 16, le), [
98
+ [Q, a.value]
99
99
  ]),
100
- d("div", {
100
+ p("div", {
101
101
  class: t([
102
102
  r(n).box,
103
103
  [e.glow && !e.disabled && !e.loading ? e.$style["checkbox--glow"] : ""]
104
104
  ])
105
105
  }, [
106
- e.loading ? (i(), V(_, {
106
+ e.loading ? (o(), V(_, {
107
107
  key: 0,
108
108
  size: e.size,
109
109
  class: "absolute"
110
- }, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", {
110
+ }, null, 8, ["size"])) : e.indeterminate ? (o(), d("span", {
111
111
  key: 1,
112
112
  name: "check-icon",
113
113
  class: t(["w-2/3 h-[1.5px]", [e.disabled ? "bg-secondary-400 dark:bg-secondary-500" : "bg-white"]])
114
114
  }, null, 2)) : C(e.$slots, "icon", { key: 2 }, () => [
115
- (i(), p("svg", {
115
+ (o(), d("svg", {
116
116
  viewBox: "0 0 20 20",
117
117
  class: t([r(n).icon, { "opacity-0": !a.value }])
118
118
  }, s[1] || (s[1] = [
119
- d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1)
119
+ p("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1)
120
120
  ]), 2))
121
121
  ])
122
122
  ], 2),
123
- d("div", {
123
+ e.label || e.$slots.default ? (o(), d("div", {
124
+ key: 0,
124
125
  class: t(r(n).label)
125
126
  }, [
126
- e.label ? (i(), p("span", {
127
+ e.label ? (o(), d("span", {
127
128
  key: 0,
128
- textContent: Q(e.label)
129
+ textContent: W(e.label)
129
130
  }, null, 8, se)) : C(e.$slots, "default", { key: 1 })
130
- ], 2)
131
+ ], 2)) : I("", !0)
131
132
  ], 42, ee),
132
- r(N) ? W("", !0) : (i(), V(x, {
133
+ r(S) ? I("", !0) : (o(), V(x, {
133
134
  key: 0,
134
- error: r(G),
135
+ error: r(N),
135
136
  helper: e.helper
136
137
  }, null, 8, ["error", "helper"]))
137
138
  ], 6));
@@ -136,8 +136,8 @@ const W = {
136
136
  ...$,
137
137
  props: K,
138
138
  emits: m.emits(),
139
- setup(y, { expose: c, emit: g }) {
140
- const b = y, h = g, t = u(null);
139
+ setup(y, { expose: c, emit: b }) {
140
+ const g = y, h = b, t = u(null);
141
141
  function k(e) {
142
142
  h("update:modelValue", e), setTimeout(r);
143
143
  }
@@ -159,9 +159,9 @@ const W = {
159
159
  }, {
160
160
  attributes: !0
161
161
  }), c({ focus: v, blur: w, validate: r });
162
- const { styles: B, classes: S, className: O } = V("Datepicker", {}, b);
162
+ const { styles: B, classes: S, className: O } = V("Datepicker", {}, g);
163
163
  return (e, H) => (N(), I("div", {
164
- style: P(n(B)),
164
+ style: P([n(B), { "--dp-clear-btn-top": e.label ? "2.70rem" : "1.2rem" }]),
165
165
  class: j([
166
166
  n(O),
167
167
  n(S).wrapper
@@ -3,7 +3,7 @@ import o from "./MenuItem.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = {
5
5
  $style: o
6
- }, _ = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-418dd6c3"]]);
6
+ }, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-45456d33"]]);
7
7
  export {
8
- _ as default
8
+ c as default
9
9
  };
@@ -119,6 +119,7 @@ const A = {
119
119
  key: 0,
120
120
  "model-value": e.value.active,
121
121
  "hide-footer": "",
122
+ class: "mr-1.5",
122
123
  "skip-form-registry": "",
123
124
  onClick: i[0] || (i[0] = P((u) => h(u, "checkbox-click"), ["stop", "prevent"]))
124
125
  }, null, 8, ["model-value"])) : s("", !0),
@@ -1,12 +1,12 @@
1
- import { defineComponent as X, ref as y, watch as w, nextTick as S, useSlots as H, computed as M, openBlock as t, createBlock as v, Teleport as j, createElementBlock as r, normalizeStyle as q, unref as o, normalizeClass as l, createCommentVNode as a, createElementVNode as B, resolveDynamicComponent as K, withCtx as $, renderSlot as i, toDisplayString as h } from "vue";
2
- import { onClickOutside as L, useEventListener as G } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
- import { useTheme as J } from "../../composables/useTheme.js";
4
- import { useFocusTrap as Q } from "../../composables/useFocusTrap.js";
5
- import { closeIcon as U } from "../../common/icons.js";
6
- import Y from "../button/Button.vue.js";
7
- import Z from "../scroll/Scroll.vue.js";
8
- import _ from "../form/Form.vue.js";
9
- const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top", "center", "bottom"], te = {
1
+ import { defineComponent as X, ref as y, watch as S, nextTick as H, useSlots as M, computed as j, openBlock as t, createBlock as v, Teleport as q, createElementBlock as r, normalizeStyle as K, unref as o, normalizeClass as l, createCommentVNode as a, createElementVNode as B, resolveDynamicComponent as L, withCtx as T, renderSlot as i, toDisplayString as h } from "vue";
2
+ import { onClickOutside as G, useEventListener as J } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
+ import { useTheme as Q } from "../../composables/useTheme.js";
4
+ import { useFocusTrap as U } from "../../composables/useFocusTrap.js";
5
+ import { closeIcon as Y } from "../../common/icons.js";
6
+ import Z from "../button/Button.vue.js";
7
+ import _ from "../scroll/Scroll.vue.js";
8
+ import x from "../form/Form.vue.js";
9
+ const ee = { key: 0 }, oe = ["xs", "sm", "md", "lg", "xl", "full"], te = ["top", "center", "bottom"], le = {
10
10
  size: {
11
11
  type: String,
12
12
  default: "lg"
@@ -49,35 +49,39 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
49
49
  default: () => []
50
50
  },
51
51
  persistent: Boolean
52
- }, le = {
52
+ }, se = {
53
53
  name: "XModal",
54
54
  validators: {
55
- size: ee,
56
- position: oe
55
+ size: oe,
56
+ position: te
57
57
  }
58
- }, me = /* @__PURE__ */ X({
59
- ...le,
60
- props: te,
58
+ }, pe = /* @__PURE__ */ X({
59
+ ...se,
60
+ props: le,
61
61
  emits: ["update:modelValue", "submit"],
62
- setup(V, { expose: C, emit: T }) {
63
- const d = V, k = T, c = y(d.modelValue), u = y(!1), b = y(null), E = y(null), { initFocusTrap: z, clearFocusTrap: A } = Q();
62
+ setup($, { expose: V, emit: C }) {
63
+ const d = $, k = C, c = y(d.modelValue), u = y(!1), b = y(null), E = y(null), { initFocusTrap: z, clearFocusTrap: A } = U();
64
64
  let m;
65
- w(c, (e) => {
65
+ S(c, (e) => {
66
66
  m && (m(), m = void 0), e && setTimeout(() => {
67
- m = L(b, F, {
67
+ m = G(b, F, {
68
68
  ignore: [".v-popper__popper"]
69
69
  });
70
70
  });
71
- }), w(() => d.modelValue, D, { immediate: !0 });
71
+ });
72
+ let g;
73
+ S(() => d.modelValue, D, { immediate: !0 });
72
74
  async function D() {
73
75
  const e = d.modelValue;
74
76
  if (e) {
75
77
  const n = window.innerWidth - document.documentElement.clientWidth;
76
- c.value = e, await S(), u.value = e, await S(), z(b), document.body.style.paddingRight = `${n}px`, document.body.style.overflow = "hidden";
78
+ c.value = e, await H(), u.value = e, g = setTimeout(() => {
79
+ z(b);
80
+ }, 100), document.body.style.paddingRight = `${n}px`, document.body.style.overflow = "hidden";
77
81
  } else
78
- u.value = e, c.value = e, A(), document.body.style.paddingRight = "", document.body.style.overflow = "auto";
82
+ u.value = e, c.value = e, clearTimeout(g), A(), document.body.style.paddingRight = "", document.body.style.overflow = "auto";
79
83
  }
80
- typeof window < "u" && G(document, "keydown", W);
84
+ typeof window < "u" && J(document, "keydown", W);
81
85
  const R = (e) => [".v-popper__popper", ".x-datepicker"].some((n) => typeof n == "string" ? Array.from(window.document.querySelectorAll(n)).some((f) => f === e.target || e.composedPath().includes(f)) : !1);
82
86
  function W(e) {
83
87
  e.key === "Escape" && !R(e) && c.value && !d.persistent && p();
@@ -93,15 +97,15 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
93
97
  function O() {
94
98
  k("update:modelValue", !0), u.value = !0;
95
99
  }
96
- const g = H(), P = M(() => !!(g["tertiary-action"] || g["cancel-action"])), { styles: I, classes: s, className: N } = J("Modal", {}, d, {
100
+ const w = M(), P = j(() => !!(w["tertiary-action"] || w["cancel-action"])), { styles: I, classes: s, className: N } = Q("Modal", {}, d, {
97
101
  visible: u
98
102
  });
99
- return C({ open: O, close: p }), (e, n) => (t(), v(j, { to: "body" }, [
103
+ return V({ open: O, close: p }), (e, n) => (t(), v(q, { to: "body" }, [
100
104
  c.value ? (t(), r("div", {
101
105
  key: 0,
102
106
  ref_key: "modalWrapperRef",
103
107
  ref: E,
104
- style: q(o(I)),
108
+ style: K(o(I)),
105
109
  class: l([
106
110
  o(N),
107
111
  o(s).wrapper,
@@ -115,7 +119,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
115
119
  B("div", {
116
120
  class: l(o(s).modalWrapper)
117
121
  }, [
118
- (t(), v(K(e.isForm ? _ : "div"), {
122
+ (t(), v(L(e.isForm ? x : "div"), {
119
123
  ref_key: "modalRef",
120
124
  ref: b,
121
125
  class: l(["max-h-full", o(s).modal]),
@@ -131,7 +135,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
131
135
  "aria-labelledby": "modal-headline",
132
136
  onSubmit: n[0] || (n[0] = (f) => e.$emit("submit", f))
133
137
  }, {
134
- default: $(() => [
138
+ default: T(() => [
135
139
  i(e.$slots, "image"),
136
140
  i(e.$slots, "header", {}, () => [
137
141
  e.hasHeader ? (t(), r("div", {
@@ -150,7 +154,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
150
154
  ])
151
155
  ], 2)) : a("", !0)
152
156
  ]),
153
- e.$slots.default ? (t(), v(Z, {
157
+ e.$slots.default ? (t(), v(_, {
154
158
  key: 0,
155
159
  scrollbar: !1,
156
160
  class: l({
@@ -158,7 +162,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
158
162
  }),
159
163
  vertical: ""
160
164
  }, {
161
- default: $(() => [
165
+ default: T(() => [
162
166
  B("div", {
163
167
  class: l(o(s).content)
164
168
  }, [
@@ -171,12 +175,12 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
171
175
  ]),
172
176
  _: 3
173
177
  }, 8, ["class"])) : a("", !0),
174
- e.showClose ? (t(), v(Y, {
178
+ e.showClose ? (t(), v(Z, {
175
179
  key: 1,
176
180
  ghost: "",
177
181
  size: "sm",
178
182
  tabindex: "-1",
179
- icon: o(U),
183
+ icon: o(Y),
180
184
  class: l(o(s).closeIcon),
181
185
  onClick: p
182
186
  }, null, 8, ["icon", "class"])) : a("", !0),
@@ -187,7 +191,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
187
191
  }, [
188
192
  i(e.$slots, "actions", {}, () => [
189
193
  i(e.$slots, "cancel-action"),
190
- P.value ? (t(), r("div", x)) : a("", !0),
194
+ P.value ? (t(), r("div", ee)) : a("", !0),
191
195
  i(e.$slots, "tertiary-action"),
192
196
  i(e.$slots, "secondary-action"),
193
197
  i(e.$slots, "primary-action")
@@ -203,5 +207,5 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
203
207
  }
204
208
  });
205
209
  export {
206
- me as default
210
+ pe as default
207
211
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Me, mergeModels as ve, computed as A, ref as b, useModel as Pe, watch as M, nextTick as Z, unref as s, onUnmounted as Fe, openBlock as r, createBlock as L, mergeProps as U, toHandlers as ce, withCtx as m, createElementVNode as P, createElementBlock as u, normalizeClass as k, Fragment as w, createTextVNode as T, toDisplayString as g, createVNode as B, renderSlot as O, createCommentVNode as R, renderList as j, createSlots as Ee, normalizeStyle as He, withModifiers as We, withDirectives as qe, vModelSelect as Ue } from "vue";
1
+ import { defineComponent as Me, mergeModels as ve, computed as A, ref as b, useModel as Pe, watch as M, nextTick as Z, unref as s, onUnmounted as Fe, openBlock as r, createBlock as L, mergeProps as U, toHandlers as ce, withCtx as m, createElementVNode as P, createElementBlock as u, normalizeClass as k, Fragment as w, createTextVNode as B, toDisplayString as g, createVNode as S, renderSlot as O, createCommentVNode as R, renderList as j, createSlots as Ee, normalizeStyle as He, withModifiers as We, withDirectives as qe, vModelSelect as Ue } from "vue";
2
2
  import { useEventListener as je, useResizeObserver as Xe } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useColors as Ke } from "../../composables/useColors.js";
4
4
  import { useCommon as he } from "../../composables/useCommon.js";
@@ -70,12 +70,12 @@ const ol = { class: "relative" }, rl = {
70
70
  }),
71
71
  emits: /* @__PURE__ */ ve([..._.emits(), "close"], ["update:filter"]),
72
72
  setup(ee, { expose: ge, emit: Ce }) {
73
- const i = ee, S = Ce, c = A(() => i.multiple || i.multipleCheckbox), X = b(null), K = b(null), F = b(null), C = b(null), G = b(null), d = b(), I = Pe(ee, "filter"), E = b(null), $ = A(() => i.disabled || i.loading || i.readonly), we = A(() => !i.loading && !i.readonly && !i.disabled && i.clearable && !J(o.value)), o = A({
73
+ const i = ee, z = Ce, c = A(() => i.multiple || i.multipleCheckbox), X = b(null), K = b(null), F = b(null), C = b(null), G = b(null), d = b(), I = Pe(ee, "filter"), E = b(null), $ = A(() => i.disabled || i.loading || i.readonly), we = A(() => !i.loading && !i.readonly && !i.disabled && i.clearable && !J(o.value)), o = A({
74
74
  get() {
75
75
  return c.value ? i.modelValue ? Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [] : i.modelValue;
76
76
  },
77
77
  set(e) {
78
- S("update:modelValue", e);
78
+ z("update:modelValue", e);
79
79
  }
80
80
  }), h = A(() => !i.options || i.options.length === 0 ? [] : i.options.filter((e) => I.value === "" || e.label.toLowerCase().includes(I.value.toLowerCase())).map((e) => {
81
81
  let t = !1;
@@ -111,7 +111,7 @@ const ol = { class: "relative" }, rl = {
111
111
  var t;
112
112
  ae(d.value || 0), i.filterable && ((t = E.value) == null || t.focus());
113
113
  });
114
- }, 50)) : (i.filterable && (I.value = ""), S("close"));
114
+ }, 50)) : (i.filterable && (I.value = ""), z("close"));
115
115
  });
116
116
  function Re() {
117
117
  if (c.value) {
@@ -170,7 +170,7 @@ const ol = { class: "relative" }, rl = {
170
170
  a !== -1 ? o.value.splice(a, 1) : o.value.push(e);
171
171
  } else
172
172
  o.value = [e];
173
- S("update:modelValue", o.value), i.filterable && setTimeout(() => {
173
+ z("update:modelValue", o.value), i.filterable && setTimeout(() => {
174
174
  var a;
175
175
  (a = E.value) == null || a.focus();
176
176
  });
@@ -189,9 +189,9 @@ const ol = { class: "relative" }, rl = {
189
189
  if (e.stopPropagation(), $.value || !Array.isArray(o.value))
190
190
  return;
191
191
  const l = o.value.indexOf(t);
192
- l !== -1 && (o.value.splice(l, 1), S("update:modelValue", o.value));
192
+ l !== -1 && (o.value.splice(l, 1), z("update:modelValue", o.value));
193
193
  }
194
- function z(e) {
194
+ function T(e) {
195
195
  var l;
196
196
  const t = (l = i.options) == null ? void 0 : l.find((a) => a.value === e);
197
197
  return t ? t.label : "";
@@ -205,7 +205,7 @@ const ol = { class: "relative" }, rl = {
205
205
  setError: Ie,
206
206
  isFocused: Ve,
207
207
  isInsideForm: Te
208
- } = _(i, { focus: re, emit: S, withListeners: !0 }), Be = A(() => {
208
+ } = _(i, { focus: re, emit: z, withListeners: !0 }), Be = A(() => {
209
209
  const { focus: e, blur: t } = s(ne);
210
210
  return {
211
211
  focus: e,
@@ -305,17 +305,17 @@ const ol = { class: "relative" }, rl = {
305
305
  J(o.value) ? (r(), u(w, { key: 1 }, [
306
306
  e.placeholder ? (r(), u("div", rl, g(e.placeholder), 1)) : (r(), u("div", sl, " "))
307
307
  ], 64)) : (r(), u(w, { key: 0 }, [
308
- T(g(z(o.value)), 1)
308
+ B(g(T(o.value)), 1)
309
309
  ], 64))
310
310
  ], 2)) : (r(), u(w, { key: 1 }, [
311
- B(ye, {
311
+ S(ye, {
312
312
  ref_key: "popoverRef",
313
313
  ref: C,
314
314
  disabled: $.value,
315
315
  placement: e.placement
316
316
  }, {
317
317
  content: m(() => [
318
- B(be, {
318
+ S(be, {
319
319
  class: k(s(y).content)
320
320
  }, {
321
321
  default: m(() => [
@@ -324,7 +324,7 @@ const ol = { class: "relative" }, rl = {
324
324
  key: 0,
325
325
  class: k(s(y).search)
326
326
  }, [
327
- B(al, {
327
+ S(al, {
328
328
  ref_key: "filterRef",
329
329
  ref: E,
330
330
  modelValue: I.value,
@@ -370,7 +370,7 @@ const ol = { class: "relative" }, rl = {
370
370
  O(e.$slots, "prefix", {
371
371
  item: l.data
372
372
  }, () => [
373
- T(g(l.data.prefix), 1)
373
+ B(g(l.data.prefix), 1)
374
374
  ])
375
375
  ]),
376
376
  key: "0"
@@ -381,7 +381,7 @@ const ol = { class: "relative" }, rl = {
381
381
  O(e.$slots, "suffix", {
382
382
  item: l.data
383
383
  }, () => [
384
- T(g(l.data.suffix), 1)
384
+ B(g(l.data.suffix), 1)
385
385
  ])
386
386
  ]),
387
387
  key: "1"
@@ -400,7 +400,7 @@ const ol = { class: "relative" }, rl = {
400
400
  popover: C.value,
401
401
  selected: o.value,
402
402
  disabled: $.value,
403
- label: z(o.value)
403
+ label: T(o.value)
404
404
  }, () => [
405
405
  P("div", {
406
406
  class: k([s(y).box])
@@ -436,7 +436,7 @@ const ol = { class: "relative" }, rl = {
436
436
  ];
437
437
  }),
438
438
  default: m(() => [
439
- T(" " + g(z(l)), 1)
439
+ B(" " + g(T(l)), 1)
440
440
  ]),
441
441
  _: 2
442
442
  }, 1032, ["outlined", "disabled", "style", "onRemove"]);
@@ -451,8 +451,8 @@ const ol = { class: "relative" }, rl = {
451
451
  return (a = de.value) == null ? void 0 : a.toggle();
452
452
  }, ["stop"]))
453
453
  }, "+" + g(q.value), 3)) : R("", !0)
454
- ], 2)) : !c.value && !J(o.value) ? (r(), u(w, { key: 1 }, [
455
- T(g(z(o.value)), 1)
454
+ ], 2)) : !c.value && !J(o.value) && T(o.value) !== "" ? (r(), u(w, { key: 1 }, [
455
+ B(g(T(o.value)), 1)
456
456
  ], 64)) : (r(), u(w, { key: 2 }, [
457
457
  e.placeholder ? (r(), u("div", nl, g(e.placeholder), 1)) : (r(), u("div", ul, " "))
458
458
  ], 64))
@@ -471,7 +471,7 @@ const ol = { class: "relative" }, rl = {
471
471
  placement: "auto-start"
472
472
  }, {
473
473
  content: m(() => [
474
- B(be, { class: "p-2 flex gap-2 flex-wrap" }, {
474
+ S(be, { class: "p-2 flex gap-2 flex-wrap" }, {
475
475
  default: m(() => {
476
476
  var l;
477
477
  return [
@@ -496,7 +496,7 @@ const ol = { class: "relative" }, rl = {
496
496
  ];
497
497
  }),
498
498
  default: m(() => [
499
- T(" " + g(z(a)), 1)
499
+ B(" " + g(T(a)), 1)
500
500
  ]),
501
501
  _: 2
502
502
  }, 1032, ["outlined", "disabled", "onRemove"]);
@@ -537,7 +537,7 @@ const ol = { class: "relative" }, rl = {
537
537
  onClick: t[4] || (t[4] = //@ts-ignore
538
538
  (...l) => s(Q) && s(Q)(...l))
539
539
  }, [
540
- B(me, {
540
+ S(me, {
541
541
  icon: s(Ye),
542
542
  class: k([s(y).icon, "cursor-pointer"])
543
543
  }, null, 8, ["icon", "class"])
@@ -550,7 +550,7 @@ const ol = { class: "relative" }, rl = {
550
550
  key: 0,
551
551
  size: e.size
552
552
  }, null, 8, ["size"])) : O(e.$slots, "icon", { key: 1 }, () => [
553
- B(me, {
553
+ S(me, {
554
554
  icon: s(Ze),
555
555
  class: k(s(y).icon)
556
556
  }, null, 8, ["icon", "class"])
@@ -2,7 +2,7 @@ const i = {
2
2
  classes: {
3
3
  wrapper: ({ props: t, data: s }) => {
4
4
  const e = ["transition-colors duration-150 ease-in-out whitespace-nowrap text-center"];
5
- return s.variant === "line" && e.push("py-2"), s.variant === "block" && e.push("py-1.5 px-8"), t.size === "xs" ? e.push("text-xs") : t.size === "sm" ? e.push("text-sm") : t.size === "lg" ? e.push("text-lg") : t.size === "xl" && e.push("text-xl"), e;
5
+ return s.variant === "line" && e.push("py-2"), s.variant === "block" && e.push("py-1 px-8"), t.size === "xs" ? e.push("text-xs") : t.size === "sm" ? e.push("text-sm") : t.size === "lg" ? e.push("text-lg") : t.size === "xl" && e.push("text-xl"), e;
6
6
  },
7
7
  content: "flex items-center justify-center",
8
8
  label: "font-medium",
@@ -2,39 +2,43 @@ import { ref as b, onUnmounted as F, unref as w, nextTick as x } from "vue";
2
2
  const h = 'button:not([tabindex="-1"]), [href], input, select, textarea, li, a, [tabindex]:not([tabindex="-1"])';
3
3
  function T() {
4
4
  const l = b([]);
5
- let t = null, a = null, s = null, i = null, o = null;
5
+ let u = null, i = null, f = null, a = null, o = null;
6
6
  function m(e) {
7
7
  return e ? e.$el ? e.$el : e : null;
8
8
  }
9
9
  function v(e) {
10
- const u = m(e);
11
- if (!u)
10
+ const t = m(e);
11
+ if (!t)
12
12
  return;
13
- const c = u.querySelectorAll(h);
14
- l.value = Array.from(c), a = l.value[0] || null, s = l.value[l.value.length - 1] || null;
13
+ const c = t.querySelectorAll(h);
14
+ l.value = Array.from(c), i = l.value[0] || null, f = l.value[l.value.length - 1] || null;
15
15
  }
16
- const f = (e) => {
17
- if (e.key !== "Tab" || l.value.length === 0)
16
+ const s = (e) => {
17
+ if (e.key === "Tab" && l.value.length === 0) {
18
+ e.preventDefault();
18
19
  return;
19
- const u = e.shiftKey, c = document.activeElement, n = a, r = s;
20
+ }
21
+ if (e.key !== "Tab")
22
+ return;
23
+ const t = e.shiftKey, c = document.activeElement, n = i, r = f;
20
24
  if (!c) {
21
25
  e.preventDefault(), n == null || n.focus();
22
26
  return;
23
27
  }
24
- !u && c === r ? (e.preventDefault(), n == null || n.focus()) : u && c === n && (e.preventDefault(), r == null || r.focus());
28
+ !t && c === r ? (e.preventDefault(), n == null || n.focus()) : t && c === n && (e.preventDefault(), r == null || r.focus());
25
29
  };
26
- async function y(e, u) {
30
+ async function y(e, t) {
27
31
  var r;
28
- if (typeof window > "u" || (d(), i = document.activeElement, o = w(e), !o))
32
+ if (typeof window > "u" || (d(), a = document.activeElement, o = w(e), !o))
29
33
  return;
30
34
  await x(), v(o);
31
- const c = (u == null ? void 0 : u.initialFocusIndex) ?? 0;
32
- (r = l.value[c]) == null || r.focus(), document.removeEventListener("keydown", f), t == null || t.disconnect(), document.addEventListener("keydown", f);
35
+ const c = (t == null ? void 0 : t.initialFocusIndex) ?? 0;
36
+ (r = l.value[c]) == null || r.focus(), document.removeEventListener("keydown", s), u == null || u.disconnect(), document.addEventListener("keydown", s);
33
37
  const n = m(o);
34
- n && (t = new MutationObserver(() => v(o)), t.observe(n, { childList: !0, subtree: !0 }));
38
+ n && (u = new MutationObserver(() => v(o)), u.observe(n, { childList: !0, subtree: !0 }));
35
39
  }
36
40
  function d(e) {
37
- document.removeEventListener("keydown", f), t == null || t.disconnect(), t = null, e != null && e.returnFocus && i && i.focus(), o = null, l.value = [], a = null, s = null, i = null;
41
+ document.removeEventListener("keydown", s), u == null || u.disconnect(), u = null, e != null && e.returnFocus && a && a.focus(), o = null, l.value = [], i = null, f = null, a = null;
38
42
  }
39
43
  return F(() => {
40
44
  d({ returnFocus: !0 });