@fewangsit/wangsvue-fats 1.0.1-alpha.61 → 1.0.1-alpha.63

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
- var f = Object.defineProperty;
2
- var b = (o, i, e) => i in o ? f(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
1
+ var g = Object.defineProperty;
2
+ var b = (o, i, e) => i in o ? g(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
3
3
  var s = (o, i, e) => b(o, typeof i != "symbol" ? i + "" : i, e);
4
- import { p as y, H as k, c as l, h as r, a as x } from "./p-DTTCzifR.es.js";
4
+ import { p as y, H as k, c as a, h as r, a as x } from "./p-DTTCzifR.es.js";
5
5
  import { B as T } from "./p-C5lMEBcj.es.js";
6
6
  function u(o) {
7
7
  setTimeout(o, 0);
@@ -30,8 +30,8 @@ const w = /* @__PURE__ */ y(class extends k {
30
30
  s(this, "blur");
31
31
  s(this, "completed");
32
32
  s(this, "onInput", (e, t) => {
33
- const n = e.target, a = this.tokens;
34
- a[t] = n.value, this.tokens = [...a], this.updateModel(e), e.inputType === "deleteContentBackward" ? this.moveToPrev(n) : (e.inputType === "insertText" || e.inputType === "deleteContentForward") && this.moveToNext(n);
33
+ const n = e.target, l = this.tokens;
34
+ l[t] = n.value, this.tokens = [...l], this.updateModel(e), e.inputType === "deleteContentBackward" ? this.moveToPrev(n) : (e.inputType === "insertText" || e.inputType === "deleteContentForward") && this.moveToNext(n);
35
35
  });
36
36
  s(this, "onFocus", (e) => {
37
37
  e.target.select(), this.focus.emit(e), this.focused = !0;
@@ -42,10 +42,10 @@ const w = /* @__PURE__ */ y(class extends k {
42
42
  });
43
43
  });
44
44
  s(this, "onPaste", (e) => {
45
- var a;
45
+ var l;
46
46
  if (this.readonly || this.disabled)
47
47
  return;
48
- const t = ((a = e.clipboardData) == null ? void 0 : a.getData("text")) ?? "";
48
+ const t = ((l = e.clipboardData) == null ? void 0 : l.getData("text")) ?? "";
49
49
  if (!t)
50
50
  return;
51
51
  const n = t.substring(0, this.length);
@@ -68,7 +68,7 @@ const w = /* @__PURE__ */ y(class extends k {
68
68
  break;
69
69
  }
70
70
  });
71
- this.__registerHost(), this.updateModelValue = l(this, "update:modelValue"), this.change = l(this, "change"), this.focus = l(this, "focus"), this.blur = l(this, "blur"), this.completed = l(this, "completed"), this.base = new T({ tag: "WANGS-INPUT-OTP", pt: this.pt });
71
+ this.__registerHost(), this.updateModelValue = a(this, "update:modelValue"), this.change = a(this, "change"), this.focus = a(this, "focus"), this.blur = a(this, "blur"), this.completed = a(this, "completed"), this.base = new T({ tag: "WANGS-INPUT-OTP", pt: this.pt });
72
72
  }
73
73
  get cx() {
74
74
  return this.base.cx;
@@ -110,16 +110,16 @@ const w = /* @__PURE__ */ y(class extends k {
110
110
  return !!this.tokens[e];
111
111
  }
112
112
  getPtmo(e) {
113
- const { invalid: t, mask: n, disabled: a, integerOnly: h, modelValue: d, readonly: p, length: c, variant: m, tokens: g } = this;
113
+ const { invalid: t, mask: n, disabled: l, integerOnly: h, modelValue: d, readonly: p, length: c, variant: m, tokens: f } = this;
114
114
  return {
115
- props: { invalid: t, mask: n, disabled: a, integerOnly: h, modelValue: d, readonly: p, length: c, variant: m },
116
- state: { tokens: g },
115
+ props: { invalid: t, mask: n, disabled: l, integerOnly: h, modelValue: d, readonly: p, length: c, variant: m },
116
+ state: { tokens: f },
117
117
  parent: this.el.parentElement,
118
118
  context: e != null ? { filled: this.isInputFilledIn(e), disabled: this.disabled } : void 0
119
119
  };
120
120
  }
121
121
  render() {
122
- return r(x, { key: "844b6b24ab1e9755147b855a1bfe18e13998eb26", class: this.cx("root", this.getPtmo()) }, Array.from({ length: this.length }).map((e, t) => r("input", { type: this.mask ? "password" : "text", class: this.cx("input", this.getPtmo(t)), value: this.tokens[t] || "", inputmode: this.integerOnly ? "numeric" : "text", disabled: this.disabled, readonly: this.readonly, onInput: (n) => this.onInput(n, t), onFocus: this.onFocus, onBlur: this.onBlur, onPaste: this.onPaste, onKeyDown: this.onKeyDown, maxLength: 1 })));
122
+ return r(x, { key: "465f7467e4adc55b59b7bc134347277b4fe3753c", class: this.cx("root", this.getPtmo()) }, Array.from({ length: this.length }).map((e, t) => r("input", { type: this.mask ? "password" : "text", class: this.cx("input", this.getPtmo(t)), value: this.tokens[t] || "", inputmode: this.integerOnly ? "numeric" : "text", disabled: this.disabled, readonly: this.readonly, onInput: (n) => this.onInput(n, t), onFocus: this.onFocus, onBlur: this.onBlur, onPaste: this.onPaste, onKeyDown: this.onKeyDown, maxLength: 1 })));
123
123
  }
124
124
  static get watchers() {
125
125
  return {
@@ -2,7 +2,7 @@ var c = Object.defineProperty;
2
2
  var f = (t, e, n) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var o = (t, e, n) => f(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { p as a, H as r, h as s, a as u } from "./p-DTTCzifR.es.js";
5
- const l = /* @__PURE__ */ a(class extends r {
5
+ const d = /* @__PURE__ */ a(class extends r {
6
6
  constructor() {
7
7
  super();
8
8
  /**
@@ -12,23 +12,23 @@ const l = /* @__PURE__ */ a(class extends r {
12
12
  this.__registerHost();
13
13
  }
14
14
  render() {
15
- return s(u, { key: "b38f4386d6fb33972469caffc9b7f95b7fb0e7c9" }, s("slot", { key: "e1f130e8171a7ac985fc07612e3e8a693d6058ea", name: "icon" }), s("slot", { key: "f7395cc5ea9dc2d6125bf3e30a97e0303dab43e0" }, this.label));
15
+ return s(u, { key: "6d8cd1675cb92185f11a363897c0157ffe14f773" }, s("slot", { key: "0d9bdc2f9307d8545762019da83ec51f8e5f401e", name: "icon" }), s("slot", { key: "a71a60c1d70f5e6c83bbc1a3f2c9aeb2b55313a0" }, this.label));
16
16
  }
17
17
  }, [4, "wangs-button", {
18
18
  label: [1]
19
19
  }]);
20
- function m() {
20
+ function l() {
21
21
  if (typeof customElements > "u")
22
22
  return;
23
23
  ["wangs-button"].forEach((e) => {
24
24
  switch (e) {
25
25
  case "wangs-button":
26
- customElements.get(e) || customElements.define(e, l);
26
+ customElements.get(e) || customElements.define(e, d);
27
27
  break;
28
28
  }
29
29
  });
30
30
  }
31
- const p = m;
31
+ const p = l;
32
32
  export {
33
33
  p as d
34
34
  };
@@ -1,4 +1,4 @@
1
- import { d as e } from "./p-CKYwZoTo.es.js";
1
+ import { d as e } from "./p-C0QfdhKo.es.js";
2
2
  const m = e;
3
3
  export {
4
4
  m as d
@@ -1,4 +1,4 @@
1
- import { d as e } from "./p-CsoK-EWG.es.js";
1
+ import { d as e } from "./p-b33NVvKu.es.js";
2
2
  const m = e;
3
3
  export {
4
4
  m as d
@@ -1,4 +1,4 @@
1
- import { d as e } from "./p-DPHEi31J.es.js";
1
+ import { d as e } from "./p-CRgC2JIi.es.js";
2
2
  const m = e;
3
3
  export {
4
4
  m as d