@v1nt1248/3nclient-lib 0.3.2 → 0.3.3

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.
@@ -17457,7 +17457,7 @@ var Vo = {
17457
17457
  "update:valid"
17458
17458
  ],
17459
17459
  setup(e, { expose: t, emit: n }) {
17460
- M((e) => ({ v1f1b197f: h.value }));
17460
+ M((e) => ({ a55771ac: h.value }));
17461
17461
  let r = e, l = n, u = C(null), d = C(""), f = C(!1), p = C(!1), m = C(""), h = i(() => r.disabled ? "var(--color-icon-control-primary-disabled)" : r.iconColor || "var(--color-icon-control-primary-default)");
17462
17462
  function _(e) {
17463
17463
  p.value = !0, l("focus", e);
@@ -17469,15 +17469,15 @@ var Vo = {
17469
17469
  }
17470
17470
  function y(e) {
17471
17471
  let t = e.target.value;
17472
- k(t), console.log("[Ui3nInput] ON_CHANGE"), l("change", t);
17472
+ k(t), l("change", t);
17473
17473
  }
17474
17474
  function S(e) {
17475
17475
  let t = e.target.value;
17476
- d.value = t, f.value = !0, k(t), console.log("[Ui3nInput] ON_INPUT"), l("update:modelValue", t), l("input", t);
17476
+ d.value = t, f.value = !0, k(t), l("update:modelValue", t), l("input", t);
17477
17477
  }
17478
17478
  function w(e) {
17479
17479
  let { altKey: t, ctrlKey: n, metaKey: r, shiftKey: i, target: a } = e, o = a.value;
17480
- f.value = !0, k(o), console.log("[Ui3nInput] ON_ENTER_KEYDOWN"), l("update:modelValue", o), l("enter", {
17480
+ f.value = !0, k(o), l("update:modelValue", o), l("enter", {
17481
17481
  value: o,
17482
17482
  altKey: t,
17483
17483
  ctrlKey: n,
@@ -17487,13 +17487,13 @@ var Vo = {
17487
17487
  }
17488
17488
  function T(e) {
17489
17489
  let t = e.target.value;
17490
- f.value = !0, k(t), console.log("[Ui3nInput] ON_ESCAPE_KEYDOWN"), l("update:modelValue", t), l("escape", e);
17490
+ f.value = !0, k(t), l("update:modelValue", t), l("escape", e);
17491
17491
  }
17492
17492
  function E(e) {
17493
17493
  l("keydown", e);
17494
17494
  }
17495
17495
  function O() {
17496
- d.value = "", f.value = !1, k(""), console.log("[Ui3nInput] CLEAR_VALUE"), l("update:modelValue", ""), l("input", ""), l("change", ""), l("clear");
17496
+ d.value = "", f.value = !1, k(""), l("update:modelValue", ""), l("input", ""), l("change", ""), l("clear");
17497
17497
  }
17498
17498
  function k(e) {
17499
17499
  if (m.value = "", r.rules && r.rules.length) {
@@ -17502,16 +17502,16 @@ var Vo = {
17502
17502
  typeof n == "string" && (m.value += `${n} `);
17503
17503
  }
17504
17504
  }
17505
- f.value && (console.log("[Ui3nInput] UPDATE:VALID => ", !m.value, " | ", m.value), l("update:valid", !m.value));
17505
+ f.value && l("update:valid", !m.value);
17506
17506
  }
17507
17507
  return t({
17508
17508
  isDirty: f,
17509
17509
  isFocused: p,
17510
17510
  clearValue: O
17511
17511
  }), b(() => {
17512
- r.autofocus && u.value && u.value.focus(), l("init", u.value), r.validateAtStartup && (console.log("[Ui3nInput] ON_MOUNTED"), k(d.value));
17512
+ r.autofocus && u.value && u.value.focus(), l("init", u.value), r.validateAtStartup && k(d.value);
17513
17513
  }), F(() => r.modelValue, (e, t) => {
17514
- (e ?? "") !== (t ?? "") && (d.value = e ?? "", console.log("[Ui3nInput] WATCH => ", t, " => ", e), k(d.value));
17514
+ (e ?? "") !== (t ?? "") && (d.value = e ?? "", k(d.value));
17515
17515
  }, { immediate: !0 }), (t, n) => (x(), s("div", { class: g([
17516
17516
  t.$style.ui3nInput,
17517
17517
  e.label && t.$style.withLabel,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.3.2",
5
+ "version": "0.3.3",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -36,7 +36,6 @@
36
36
  function onChange(event: Event) {
37
37
  const value = (event.target as HTMLInputElement).value;
38
38
  validate(value);
39
- console.log('[Ui3nInput] ON_CHANGE');
40
39
  emits('change', value);
41
40
  }
42
41
 
@@ -45,7 +44,6 @@
45
44
  text.value = value;
46
45
  isDirty.value = true;
47
46
  validate(value);
48
- console.log('[Ui3nInput] ON_INPUT');
49
47
  emits('update:modelValue', value);
50
48
  emits('input', value);
51
49
  }
@@ -55,7 +53,6 @@
55
53
  const value = (target as HTMLInputElement).value;
56
54
  isDirty.value = true;
57
55
  validate(value);
58
- console.log('[Ui3nInput] ON_ENTER_KEYDOWN');
59
56
  emits('update:modelValue', value);
60
57
  emits('enter', { value, altKey, ctrlKey, metaKey, shiftKey });
61
58
  }
@@ -64,7 +61,6 @@
64
61
  const value = (event.target as HTMLInputElement).value;
65
62
  isDirty.value = true;
66
63
  validate(value);
67
- console.log('[Ui3nInput] ON_ESCAPE_KEYDOWN');
68
64
  emits('update:modelValue', value);
69
65
  emits('escape', event);
70
66
  }
@@ -77,7 +73,6 @@
77
73
  text.value = '';
78
74
  isDirty.value = false;
79
75
  validate('');
80
- console.log('[Ui3nInput] CLEAR_VALUE');
81
76
  emits('update:modelValue', '');
82
77
  emits('input', '');
83
78
  emits('change', '');
@@ -98,7 +93,6 @@
98
93
  }
99
94
 
100
95
  if (isDirty.value) {
101
- console.log('[Ui3nInput] UPDATE:VALID => ', !errorMessage.value, ' | ', errorMessage.value);
102
96
  emits('update:valid', !errorMessage.value);
103
97
  }
104
98
  }
@@ -116,7 +110,6 @@
116
110
 
117
111
  emits('init', inputElement.value!);
118
112
  if (props.validateAtStartup) {
119
- console.log('[Ui3nInput] ON_MOUNTED');
120
113
  validate(text.value);
121
114
  }
122
115
  });
@@ -126,7 +119,6 @@
126
119
  (val, oldVal) => {
127
120
  if ((val ?? '') !== (oldVal ?? '')) {
128
121
  text.value = val ?? '';
129
- console.log('[Ui3nInput] WATCH => ', oldVal, ' => ', val);
130
122
  validate(text.value);
131
123
  }
132
124
  },