adverich-kun-ui 0.1.360 → 0.1.361

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,6 +1,6 @@
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 A, 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 z, withModifiers as se } from "vue";
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 $ } from "../../../../utils/utils.js";
3
+ import { isNotEmpty as ue, isArray as z } 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
6
  import x from "../../../KunListItem/src/components/KunListItem.vue.js";
@@ -10,9 +10,9 @@ import fe from "../../../KunMenu/src/components/KunMenu.vue.js";
10
10
  import { useAutocomplete as pe } from "../composables/useAutocomplete.js";
11
11
  import { KunAutocompleteProps as he } from "../composables/KunAutocompleteProps.js";
12
12
  import ve from "../../../KunTextField/src/components/KunTextField.vue.js";
13
- import ye from "../../../KunChip/src/components/KunChip.vue.js";
13
+ import ke from "../../../KunChip/src/components/KunChip.vue.js";
14
14
  import v from "../../../KunIcon/src/components/KunIcon.vue.js";
15
- const ke = {
15
+ const ye = {
16
16
  key: 0,
17
17
  class: "flex justify-center align-center"
18
18
  }, be = { class: "flex justify-center align-center" }, xe = {
@@ -24,9 +24,9 @@ const ke = {
24
24
  itemsModifiers: {}
25
25
  }),
26
26
  emits: /* @__PURE__ */ R(["update:modelValue", "selectedItem", "createItem", "validation", "search"], ["update:modelValue", "update:items"]),
27
- setup(y, { emit: B }) {
28
- const a = S(y, "modelValue"), I = S(y, "items"), u = y, p = B, {
29
- textFieldRef: k,
27
+ setup(k, { emit: B }) {
28
+ const a = S(k, "modelValue"), I = S(k, "items"), u = k, p = B, {
29
+ textFieldRef: y,
30
30
  listRef: b,
31
31
  menuModel: r,
32
32
  search: c,
@@ -46,7 +46,7 @@ const ke = {
46
46
  placeholder: G
47
47
  } = pe(u, p, a, I);
48
48
  te(() => {
49
- u.focusOnRender && k.value.focus();
49
+ u.focusOnRender && y.value.focus();
50
50
  });
51
51
  const K = _(null), h = _(""), M = (e) => {
52
52
  for (const o of u.rules) {
@@ -61,7 +61,7 @@ const ke = {
61
61
  });
62
62
  function J() {
63
63
  var e;
64
- r.value = !1, (e = k.value.inputField) == null || e.focus();
64
+ r.value = !1, (e = y.value.inputField) == null || e.focus();
65
65
  }
66
66
  function Q(e) {
67
67
  var t, d;
@@ -91,7 +91,7 @@ const ke = {
91
91
  n(ve, {
92
92
  modelValue: l(c),
93
93
  "onUpdate:modelValue": [
94
- o[1] || (o[1] = (t) => A(c) ? c.value = t : null),
94
+ o[1] || (o[1] = (t) => $(c) ? c.value = t : null),
95
95
  X
96
96
  ],
97
97
  label: e.label,
@@ -99,27 +99,27 @@ const ke = {
99
99
  "hide-details": e.hideDetails,
100
100
  density: e.density,
101
101
  ref_key: "textFieldRef",
102
- ref: k,
102
+ ref: y,
103
103
  autocomplete: "off",
104
104
  onFocusInput: Y,
105
105
  onHandleClick: l(U),
106
106
  rounded: l(r) ? "rounded-t" : "rounded",
107
107
  onBlur: ee,
108
108
  onKeyDown: Q,
109
- placeholder: u.multiple && l($)(a.value) && a.value.length ? "" : l(G),
109
+ placeholder: u.multiple && l(z)(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($)(a.value) ? (s(), C("div", ke, [
115
- (s(!0), C(ne, null, ae(a.value, (t) => (s(), m(ye, {
114
+ l(z)(a.value) ? (s(), C("div", ye, [
115
+ (s(!0), C(ne, null, ae(a.value, (t) => (s(), m(ke, {
116
116
  key: t.id ?? t.name,
117
117
  size: "small",
118
118
  class: "ml-1"
119
119
  }, {
120
120
  default: i(() => [
121
121
  re("div", be, [
122
- V(z(l(q)(t, e.itemTitle)) + " ", 1),
122
+ V(A(l(q)(t, e.itemTitle)) + " ", 1),
123
123
  n(v, {
124
124
  color: "error",
125
125
  icon: l(f).close,
@@ -136,7 +136,7 @@ const ke = {
136
136
  transition: "fade",
137
137
  "onClick:outside": l(T),
138
138
  modelValue: l(r),
139
- "onUpdate:modelValue": o[0] || (o[0] = (t) => A(r) ? r.value = t : null),
139
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => $(r) ? r.value = t : null),
140
140
  activator: "parent",
141
141
  "z-index": e.zIndex,
142
142
  "parent-ref": K.value,
@@ -169,8 +169,8 @@ const ke = {
169
169
  default: i(({ item: t, index: d, empty: le }) => [
170
170
  !le && t ? (s(), m(x, {
171
171
  value: t,
172
- key: d + 1,
173
- id: d + 1,
172
+ key: `kun-list-${d + 1}`,
173
+ id: `kun-item-${d + 1}`,
174
174
  disabled: l(W)(t),
175
175
  "bg-items": e.bgItemListColor,
176
176
  "hover-bg": e.hoverItemListColor,
@@ -181,7 +181,7 @@ const ke = {
181
181
  default: i(() => [
182
182
  n(F, { class: "text-wrap" }, {
183
183
  default: i(() => [
184
- V(z(l(D)(t, e.itemTitle ?? l(j), "hasDefault")), 1)
184
+ V(A(l(D)(t, e.itemTitle ?? l(j), "hasDefault")), 1)
185
185
  ]),
186
186
  _: 2
187
187
  }, 1024),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.360",
3
+ "version": "0.1.361",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",