@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.
- package/basecalendar/index.es.js +250 -245
- package/basecalendartimezone/index.es.js +190 -185
- package/basetree/index.d.ts +6 -2
- package/basetree/index.es.js +1 -1
- package/buttonscan/index.es.js +207 -204
- package/buttonselecttree/index.d.ts +5 -5
- package/buttonselecttree/index.es.js +9 -9
- package/datatable/index.d.ts +1 -1
- package/dialogselecttree/index.d.ts +5 -5
- package/filtercontainer/index.d.ts +2 -2
- package/hardwaresync/index.es.js +54 -53
- package/icon/index.d.ts +1 -0
- package/package.json +1 -1
- package/stats.html +1 -1
- package/style.css +1 -1
- package/timeline/index.d.ts +6 -1
- package/timeline/index.es.js +31 -26
- package/tree/index.d.ts +4 -4
- package/tree/index.es.js +2 -2
- package/treenode/index.es.js +22 -22
- package/vendor/@wangs-ui/core/components/{p-CKYwZoTo.es.js → p-C0QfdhKo.es.js} +1 -1
- package/vendor/@wangs-ui/core/components/{p-DPHEi31J.es.js → p-CRgC2JIi.es.js} +19 -14
- package/vendor/@wangs-ui/core/components/{p-CsoK-EWG.es.js → p-b33NVvKu.es.js} +12 -12
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +5 -5
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +1 -1
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +1 -1
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +1 -1
- package/wangsvue-fats.esm.browser.js +8120 -8096
- package/wangsvue-fats.system.js +60 -60
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var b = (o, i, e) => i in o ?
|
|
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
|
|
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,
|
|
34
|
-
|
|
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
|
|
45
|
+
var l;
|
|
46
46
|
if (this.readonly || this.disabled)
|
|
47
47
|
return;
|
|
48
|
-
const t = ((
|
|
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 =
|
|
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:
|
|
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:
|
|
116
|
-
state: { tokens:
|
|
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: "
|
|
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
|
|
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: "
|
|
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
|
|
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,
|
|
26
|
+
customElements.get(e) || customElements.define(e, d);
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
const p =
|
|
31
|
+
const p = l;
|
|
32
32
|
export {
|
|
33
33
|
p as d
|
|
34
34
|
};
|