@cobre-npm/ds-v3 0.81.26 → 0.81.27

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.
@@ -5036,12 +5036,12 @@ const Xv = { class: "co-input" }, Kv = {
5036
5036
  function a(o) {
5037
5037
  const i = o.inputType, s = o.data;
5038
5038
  if (!i || i.startsWith("delete") || i.startsWith("history") || i.startsWith("format")) return;
5039
- const l = o.target, c = l.selectionStart ?? 0, u = l.selectionEnd ?? 0;
5039
+ const c = o.target.selectionStart ?? 0;
5040
5040
  if ((i === "insertText" || i === "insertCompositionText") && s && t.test(s.replace(/ /g, ""))) {
5041
5041
  o.preventDefault();
5042
5042
  return;
5043
5043
  }
5044
- if ((i === "insertText" || i === "insertCompositionText") && s === " " && (c === 0 || c === 0 && u > 0)) {
5044
+ if ((i === "insertText" || i === "insertCompositionText") && s && /^\s+/.test(s) && c === 0) {
5045
5045
  o.preventDefault();
5046
5046
  return;
5047
5047
  }
@@ -5095,9 +5095,7 @@ const Xv = { class: "co-input" }, Kv = {
5095
5095
  maxlength: o.maxlength
5096
5096
  }, $u({
5097
5097
  ...c,
5098
- // Bloquea la inserción del carácter inválido ANTES de que aparezca
5099
5098
  beforeinput: a,
5100
- // Sanea el input y luego llama al handler original de vue-select
5101
5099
  input: (u) => r(u, c)
5102
5100
  }, !0)), null, 16, X0)
5103
5101
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.81.26",
3
+ "version": "0.81.27",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"