adverich-kun-ui 0.1.517 → 0.1.518

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,12 +1,12 @@
1
- import { mergeModels as z, useModel as A, onMounted as se, ref as E, watch as ue, nextTick as F, createElementBlock as h, openBlock as c, createVNode as s, unref as t, withKeys as de, withModifiers as x, isRef as O, createSlots as ce, withCtx as r, createCommentVNode as g, normalizeClass as fe, createTextVNode as C, toDisplayString as D, createBlock as p, Fragment as me, renderList as pe, createElementVNode as ve } from "vue";
1
+ import { mergeModels as z, useModel as A, onMounted as se, ref as E, watch as ue, nextTick as F, createElementBlock as g, openBlock as c, createVNode as s, unref as t, withKeys as de, withModifiers as x, isRef as O, createSlots as ce, withCtx as r, createCommentVNode as h, normalizeClass as fe, createTextVNode as C, toDisplayString as D, createBlock as p, Fragment as me, renderList as pe, createElementVNode as ve } from "vue";
2
2
  import { icons as v } from "../../../../icons/index.js";
3
- import { isNotEmpty as R, isArray as B } from "../../../../utils/utils.js";
3
+ import { isNotEmpty as R, isArray as N } from "../../../../utils/utils.js";
4
4
  import ke from "../../../KunInfiniteScroll/src/components/KunInfiniteScroll.vue.js";
5
5
  import ye from "../../../KunList/src/components/KunList.vue.js";
6
- import N from "../../../KunListItem/src/components/KunListItem.vue.js";
6
+ import B from "../../../KunListItem/src/components/KunListItem.vue.js";
7
7
  import T from "../../../KunListItemTitle/src/components/KunListItemTitle.vue.js";
8
- import he from "../../../KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js";
9
- import ge from "../../../KunMenu/src/components/KunMenu.vue.js";
8
+ import ge from "../../../KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js";
9
+ import he from "../../../KunMenu/src/components/KunMenu.vue.js";
10
10
  import { useAutocomplete as Ce } from "../composables/useAutocomplete.js";
11
11
  import { KunAutocompleteProps as be } from "../composables/KunAutocompleteProps.js";
12
12
  import we from "../../../KunTextField/src/components/KunTextField.vue.js";
@@ -86,7 +86,8 @@ const De = { class: "flex items-center" }, Ie = {
86
86
  function re() {
87
87
  }
88
88
  function ae(e) {
89
- if (!n.value) return;
89
+ if (console.log(1), !n.value) return;
90
+ console.log(2);
90
91
  let o = null;
91
92
  a.returnObject ? o = m.value.find(
92
93
  (l) => Object.values(l).some(
@@ -96,7 +97,7 @@ const De = { class: "flex items-center" }, Ie = {
96
97
  (l) => String(l[a.itemValue]).toLowerCase() === String(n.value).toLowerCase()
97
98
  ) : o = m.value.find(
98
99
  (l) => typeof l == "object" ? Object.values(l).some((i) => String(i).toLowerCase() === String(n.value).toLowerCase()) : String(l).toLowerCase() === String(n.value).toLowerCase()
99
- ), o ? K(o) : (f("notFound", n.value), a.clearOnNotFound && (n.value = "", d.value = !1)), F(() => {
100
+ ), o ? K(o) : (console.log("No se encontró el elemento:", n.value), f("notFound", n.value), a.clearOnNotFound && (n.value = "", d.value = !1)), F(() => {
100
101
  f("keyDownEnter", e);
101
102
  });
102
103
  }
@@ -105,7 +106,7 @@ const De = { class: "flex items-center" }, Ie = {
105
106
  var e;
106
107
  return (e = k.value) == null ? void 0 : e.focus();
107
108
  })
108
- }), (e, o) => (c(), h("div", {
109
+ }), (e, o) => (c(), g("div", {
109
110
  class: "w-full h-fit",
110
111
  ref_key: "parentRef",
111
112
  ref: M
@@ -131,17 +132,17 @@ const De = { class: "flex items-center" }, Ie = {
131
132
  le,
132
133
  de(x(ae, ["prevent"]), ["enter"])
133
134
  ],
134
- placeholder: a.multiple && t(B)(u.value) && u.value.length ? "" : t(Z),
135
+ placeholder: a.multiple && t(N)(u.value) && u.value.length ? "" : t(Z),
135
136
  error: !!y.value,
136
137
  "error-messages": y.value
137
138
  }, ce({
138
139
  "prepend-input-content": r(() => [
139
- t(B)(u.value) && t(R)(u.value) ? (c(), h("div", {
140
+ t(N)(u.value) && t(R)(u.value) ? (c(), g("div", {
140
141
  key: 0,
141
142
  class: "flex flex-nowrap items-center space-x-1 min-w-[calc(100%-56px)] overflow-x-auto overflow-y-hidden",
142
143
  onClick: o[0] || (o[0] = (...l) => t(V) && t(V)(...l))
143
144
  }, [
144
- (c(!0), h(me, null, pe(u.value, (l) => (c(), p(Ve, {
145
+ (c(!0), g(me, null, pe(u.value, (l) => (c(), p(Ve, {
145
146
  key: l.id ?? l.name,
146
147
  size: "small",
147
148
  variant: "pill"
@@ -160,10 +161,10 @@ const De = { class: "flex items-center" }, Ie = {
160
161
  ]),
161
162
  _: 2
162
163
  }, 1024))), 128))
163
- ])) : g("", !0)
164
+ ])) : h("", !0)
164
165
  ]),
165
166
  default: r(() => [
166
- s(ge, {
167
+ s(he, {
167
168
  transition: "fade",
168
169
  "onClick:outside": t(q),
169
170
  modelValue: t(d),
@@ -180,7 +181,7 @@ const De = { class: "flex items-center" }, Ie = {
180
181
  "hide-details": e.hideDetails
181
182
  }, {
182
183
  default: r(() => [
183
- e.hasCreateItem ? (c(), h("div", Ie, [
184
+ e.hasCreateItem ? (c(), g("div", Ie, [
184
185
  s(Se, {
185
186
  onClick: t(X),
186
187
  bgColor: e.btnCreateBg,
@@ -191,7 +192,7 @@ const De = { class: "flex items-center" }, Ie = {
191
192
  ]),
192
193
  _: 1
193
194
  }, 8, ["onClick", "bgColor", "class"])
194
- ])) : g("", !0),
195
+ ])) : h("", !0),
195
196
  s(ye, {
196
197
  "onClick:select": t(K),
197
198
  ref_key: "listRef",
@@ -210,7 +211,7 @@ const De = { class: "flex items-center" }, Ie = {
210
211
  "item-height": 48
211
212
  }, {
212
213
  default: r(({ item: l, index: i, empty: ie }) => [
213
- !ie && l != null ? (c(), p(N, {
214
+ !ie && l != null ? (c(), p(B, {
214
215
  value: l,
215
216
  key: `kun-list-${i + 1}`,
216
217
  id: `kun-item-${i + 1}`,
@@ -228,12 +229,12 @@ const De = { class: "flex items-center" }, Ie = {
228
229
  ]),
229
230
  _: 2
230
231
  }, 1024),
231
- s(he, {
232
+ s(ge, {
232
233
  text: e.itemSubtitle ? t(L)(l, e.itemSubtitle) : ""
233
234
  }, null, 8, ["text"])
234
235
  ]),
235
236
  _: 2
236
- }, 1032, ["value", "id", "disabled", "bg-items", "hover-bg", "activeClass", "density"])) : (c(), p(N, {
237
+ }, 1032, ["value", "id", "disabled", "bg-items", "hover-bg", "activeClass", "density"])) : (c(), p(B, {
237
238
  key: 1,
238
239
  disabled: ""
239
240
  }, {
@@ -270,7 +271,7 @@ const De = { class: "flex items-center" }, Ie = {
270
271
  color: "error",
271
272
  icon: t(v).close,
272
273
  class: "mr-1 mt-1"
273
- }, null, 8, ["onClick", "icon"])) : g("", !0),
274
+ }, null, 8, ["onClick", "icon"])) : h("", !0),
274
275
  s(b, {
275
276
  color: "teal-darken-1",
276
277
  size: "large",
@@ -284,7 +285,7 @@ const De = { class: "flex items-center" }, Ie = {
284
285
  size: "x-small",
285
286
  class: "mb-4",
286
287
  icon: t(v).asterisk
287
- }, null, 8, ["icon"])) : g("", !0)
288
+ }, null, 8, ["icon"])) : h("", !0)
288
289
  ]),
289
290
  key: "0"
290
291
  } : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.517",
3
+ "version": "0.1.518",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",