adverich-kun-ui 0.1.497 → 0.1.498

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,7 +1,7 @@
1
1
  import { ref as d, computed as M, watch as H, nextTick as F } from "vue";
2
2
  import { isArray as S, isObject as O, fullCopy as L } from "../../../../utils/utils.js";
3
3
  function U(t, y, c, v) {
4
- const l = d(null), b = d(null), x = d(null), i = d(!1), g = d(""), N = (e, n) => {
4
+ const l = d(null), g = d(null), x = d(null), i = d(!1), b = d(""), N = (e, n) => {
5
5
  if (t.returnObject) return s(e, t.itemTitle);
6
6
  const u = l.value.find((f) => f[t.itemValue] === e);
7
7
  return s(u, t.itemTitle);
@@ -85,7 +85,7 @@ function U(t, y, c, v) {
85
85
  c.value = c.value.filter((u) => u !== n);
86
86
  }
87
87
  function A(e) {
88
- t.clearSearchOnSelect && (g.value = ""), t.clearOnSelect && E(), t.focusOnSelect && j();
88
+ t.clearSearchOnSelect && (b.value = ""), t.clearOnSelect && E(), t.focusOnSelect && j();
89
89
  }
90
90
  function k() {
91
91
  i.value || (i.value = !0);
@@ -100,16 +100,16 @@ function U(t, y, c, v) {
100
100
  return e.length === 1 && e.match(/\w/);
101
101
  }
102
102
  function j() {
103
- b.value.inputField.focus();
103
+ g.value.inputField.focus(), console.log("sera???");
104
104
  }
105
105
  function K() {
106
- i.value = !0, x.value && b.value.$el.focus();
106
+ i.value = !0, x.value && g.value.$el.focus();
107
107
  }
108
108
  function $(e) {
109
109
  const n = e.key;
110
110
  (w(n) || n === "Backspace") && (k(), j(), F(() => {
111
111
  var f;
112
- const u = (f = b.value) == null ? void 0 : f.inputField;
112
+ const u = (f = g.value) == null ? void 0 : f.inputField;
113
113
  if (u) {
114
114
  const r = u.selectionStart, o = u.selectionEnd, a = u.value, h = e.key.length === 1 ? e.key : "";
115
115
  u.value = a.slice(0, r) + h + a.slice(o), u.selectionStart = u.selectionEnd = r + h.length, u.dispatchEvent(new Event("input", { bubbles: !0 }));
@@ -124,17 +124,17 @@ function U(t, y, c, v) {
124
124
  c.value.splice(n, 1);
125
125
  }
126
126
  function E() {
127
- g.value !== "" && (g.value = ""), c.value !== null && (c.value = null), l.value !== null && (l.value = null);
127
+ b.value !== "" && (b.value = ""), c.value !== null && (c.value = null), l.value !== null && (l.value = null);
128
128
  }
129
129
  function G(e) {
130
130
  return !!e.disabled;
131
131
  }
132
132
  return {
133
133
  selectedItem: l,
134
- textFieldRef: b,
134
+ textFieldRef: g,
135
135
  listRef: x,
136
136
  menuModel: i,
137
- search: g,
137
+ search: b,
138
138
  getArrayText: N,
139
139
  placeholder: B,
140
140
  textArr: R,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.497",
3
+ "version": "0.1.498",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",