adverich-kun-ui 0.1.381 → 0.1.382

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,9 +1,9 @@
1
1
  import { mergeModels as R, useModel as S, onMounted as te, ref as _, watch as oe, createElementBlock as C, openBlock as s, createVNode as n, unref as l, isRef as $, createSlots as ie, withCtx as i, createCommentVNode as w, Fragment as ne, renderList as ae, createBlock as m, createElementVNode as re, createTextVNode as V, toDisplayString as A, withModifiers as se } from "vue";
2
2
  import { icons as f } from "../../../../icons/index.js";
3
- import { isNotEmpty as ue, isArray as z } from "../../../../utils/utils.js";
3
+ import { isNotEmpty as ue, isArray as x } from "../../../../utils/utils.js";
4
4
  import de from "../../../KunInfiniteScroll/src/components/KunInfiniteScroll.vue.js";
5
5
  import ce from "../../../KunList/src/components/KunList.vue.js";
6
- import x from "../../../KunListItem/src/components/KunListItem.vue.js";
6
+ import z from "../../../KunListItem/src/components/KunListItem.vue.js";
7
7
  import F from "../../../KunListItemTitle/src/components/KunListItemTitle.vue.js";
8
8
  import me from "../../../KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js";
9
9
  import fe from "../../../KunMenu/src/components/KunMenu.vue.js";
@@ -14,8 +14,8 @@ import ke from "../../../KunChip/src/components/KunChip.vue.js";
14
14
  import v from "../../../KunIcon/src/components/KunIcon.vue.js";
15
15
  const ye = {
16
16
  key: 0,
17
- class: "flex justify-center align-center"
18
- }, be = { class: "flex justify-center align-center" }, xe = {
17
+ class: "flex flex-wrap gap-1"
18
+ }, be = { class: "flex items-center" }, ze = {
19
19
  __name: "KunAutocomplete",
20
20
  props: /* @__PURE__ */ R(he, {
21
21
  modelValue: { default: null },
@@ -38,10 +38,10 @@ const ye = {
38
38
  toggleMenu: U,
39
39
  onMenuKeydown: H,
40
40
  getSelectedItem: O,
41
- textArr: j,
42
- getItemText: q,
43
- isAlphanumeric: P,
44
- checkDisabled: W,
41
+ textArr: q,
42
+ getItemText: P,
43
+ isAlphanumeric: W,
44
+ checkDisabled: j,
45
45
  itemToString: D,
46
46
  placeholder: G
47
47
  } = pe(u, p, a, I);
@@ -70,7 +70,7 @@ const ye = {
70
70
  L();
71
71
  return;
72
72
  }
73
- (P(o) || o === "Backspace") && g(), ["ArrowUp", "ArrowDown"].includes(o) && (e.preventDefault(), r.value || g(), console.log("listRef.value", b.value), (d = (t = b.value) == null ? void 0 : t.focusWithKey) == null || d.call(t, o));
73
+ (W(o) || o === "Backspace") && g(), ["ArrowUp", "ArrowDown"].includes(o) && (e.preventDefault(), r.value || g(), console.log("listRef.value", b.value), (d = (t = b.value) == null ? void 0 : t.focusWithKey) == null || d.call(t, o));
74
74
  }
75
75
  function X(e) {
76
76
  p("search", c);
@@ -106,20 +106,19 @@ const ye = {
106
106
  rounded: l(r) ? "rounded-t" : "rounded",
107
107
  onBlur: ee,
108
108
  onKeyDown: Q,
109
- placeholder: u.multiple && l(z)(a.value) && a.value.length ? "" : l(G),
109
+ placeholder: u.multiple && l(x)(a.value) && a.value.length ? "" : l(G),
110
110
  error: !!h.value,
111
111
  "error-messages": h.value
112
112
  }, ie({
113
113
  default: i(() => [
114
- l(z)(a.value) ? (s(), C("div", ye, [
114
+ l(x)(a.value) ? (s(), C("div", ye, [
115
115
  (s(!0), C(ne, null, ae(a.value, (t) => (s(), m(ke, {
116
116
  key: t.id ?? t.name,
117
- size: "small",
118
- class: "ml-1"
117
+ size: "small"
119
118
  }, {
120
119
  default: i(() => [
121
120
  re("div", be, [
122
- V(A(l(q)(t, e.itemTitle)) + " ", 1),
121
+ V(A(l(P)(t, e.itemTitle)) + " ", 1),
123
122
  n(v, {
124
123
  color: "error",
125
124
  icon: l(f).close,
@@ -167,11 +166,11 @@ const ye = {
167
166
  "item-height": 48
168
167
  }, {
169
168
  default: i(({ item: t, index: d, empty: le }) => [
170
- !le && t ? (s(), m(x, {
169
+ !le && t ? (s(), m(z, {
171
170
  value: t,
172
171
  key: `kun-list-${d + 1}`,
173
172
  id: `kun-item-${d + 1}`,
174
- disabled: l(W)(t),
173
+ disabled: l(j)(t),
175
174
  "bg-items": e.bgItemListColor,
176
175
  "hover-bg": e.hoverItemListColor,
177
176
  activeClass: e.selectedItemListColor,
@@ -181,7 +180,7 @@ const ye = {
181
180
  default: i(() => [
182
181
  n(F, { class: "text-wrap" }, {
183
182
  default: i(() => [
184
- V(A(l(D)(t, e.itemTitle ?? l(j), "hasDefault")), 1)
183
+ V(A(l(D)(t, e.itemTitle ?? l(q), "hasDefault")), 1)
185
184
  ]),
186
185
  _: 2
187
186
  }, 1024),
@@ -190,7 +189,7 @@ const ye = {
190
189
  }, null, 8, ["text"])
191
190
  ]),
192
191
  _: 2
193
- }, 1032, ["value", "id", "disabled", "bg-items", "hover-bg", "activeClass", "density"])) : (s(), m(x, {
192
+ }, 1032, ["value", "id", "disabled", "bg-items", "hover-bg", "activeClass", "density"])) : (s(), m(z, {
194
193
  key: 1,
195
194
  disabled: ""
196
195
  }, {
@@ -250,5 +249,5 @@ const ye = {
250
249
  }
251
250
  };
252
251
  export {
253
- xe as default
252
+ ze as default
254
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.381",
3
+ "version": "0.1.382",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",