edvoyui-component-library-test-flight 0.0.162 → 0.0.163
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/dist/input/EUINumberInput.vue.d.ts +1 -1
- package/dist/library-vue-ts.cjs.js +1 -1
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +22 -19
- package/dist/library-vue-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +12 -1
- package/src/components/input/EUINumberInput.vue +13 -1
|
@@ -4598,10 +4598,15 @@ const _9 = {
|
|
|
4598
4598
|
},
|
|
4599
4599
|
emits: ["update:modelValue"],
|
|
4600
4600
|
setup(e, { emit: n }) {
|
|
4601
|
-
const t = e, r = ee(!1), i = ee(), l = n, u = (
|
|
4602
|
-
const
|
|
4603
|
-
isNaN(
|
|
4604
|
-
}, s =
|
|
4601
|
+
const t = e, r = ee(!1), i = ee(), l = n, u = (p) => {
|
|
4602
|
+
const v = p.target, b = parseFloat(v.value);
|
|
4603
|
+
isNaN(b) ? (l("update:modelValue", t.min), v.value = String(t.min)) : b >= t.min && b <= t.max ? l("update:modelValue", b) : b > t.max ? (l("update:modelValue", t.max), v.value = String(t.max)) : b < t.min && (l("update:modelValue", t.min), v.value = String(t.min));
|
|
4604
|
+
}, s = (p) => {
|
|
4605
|
+
const v = p.target;
|
|
4606
|
+
if (!v) return;
|
|
4607
|
+
const b = t.step < 1;
|
|
4608
|
+
/[0-9]/.test(p.key) || b && p.key === "." && !v.value.includes(".") || p.preventDefault();
|
|
4609
|
+
}, d = q(() => t.modelValue === 0 ? !0 : !!t.modelValue), f = () => {
|
|
4605
4610
|
switch (t.iconType) {
|
|
4606
4611
|
case "startIcon":
|
|
4607
4612
|
return "pl-12 pr-4";
|
|
@@ -4612,9 +4617,9 @@ const _9 = {
|
|
|
4612
4617
|
}
|
|
4613
4618
|
};
|
|
4614
4619
|
return ut(() => {
|
|
4615
|
-
var
|
|
4616
|
-
t != null && t.autoFocus && ((
|
|
4617
|
-
}), (
|
|
4620
|
+
var p;
|
|
4621
|
+
t != null && t.autoFocus && ((p = i == null ? void 0 : i.value) == null || p.focus());
|
|
4622
|
+
}), (p, v) => (_(), E("div", null, [
|
|
4618
4623
|
!e.inputFilled && e.label ? (_(), E("label", {
|
|
4619
4624
|
key: 0,
|
|
4620
4625
|
for: `${e.name}-${ju}`,
|
|
@@ -4637,8 +4642,8 @@ const _9 = {
|
|
|
4637
4642
|
key: 0,
|
|
4638
4643
|
for: `${e.name}-${ju}`,
|
|
4639
4644
|
class: ie([
|
|
4640
|
-
|
|
4641
|
-
|
|
4645
|
+
f(),
|
|
4646
|
+
d.value ? "top-3.5 text-xs text-gray-400 leading-none cursor-default" : "top-1/2 text-sm w-full text-gray-700 cursor-pointer h-14 pt-5 pb-4",
|
|
4642
4647
|
e.disabled ? "cursor-not-allowed bg-gray-50 z-10" : "z-0 bg-white",
|
|
4643
4648
|
e.required && "after:content-['*'] after:ml-0.5 after:text-red-500",
|
|
4644
4649
|
"absolute font-medium left-0 px-4 -translate-y-1/2 duration-300 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-focus-within:-translate-y-1/2 group-focus-within:ring-transparent group-focus-within:h-auto group-focus-within:py-0 first-letter:capitalize transition-all ease-in-out"
|
|
@@ -4673,7 +4678,7 @@ const _9 = {
|
|
|
4673
4678
|
e.inputFilled ? "pt-6 pb-3 rounded-2xl size-full" : "py-3 h-10 w-full ring-1 ring-gray-200 focus-within:ring-purple-600 focus-within:ring-2 ring-inset",
|
|
4674
4679
|
!e.inputFilled && e.rounded ? "rounded-2xl" : "rounded-md",
|
|
4675
4680
|
e.disabled ? "cursor-not-allowed" : "cursor-text",
|
|
4676
|
-
|
|
4681
|
+
f(),
|
|
4677
4682
|
!e.inputFilled && e.className,
|
|
4678
4683
|
"pr-8"
|
|
4679
4684
|
]),
|
|
@@ -4683,20 +4688,18 @@ const _9 = {
|
|
|
4683
4688
|
autocomplete: "off",
|
|
4684
4689
|
inputmode: "numeric",
|
|
4685
4690
|
pattern: "^([0-9]{1,5}(\\.[0-9]{1,2})?|100000(\\.0{1,2})?)$",
|
|
4686
|
-
onKeypress:
|
|
4687
|
-
|
|
4688
|
-
}),
|
|
4689
|
-
onWheel: p[1] || (p[1] = vt(() => {
|
|
4691
|
+
onKeypress: s,
|
|
4692
|
+
onWheel: v[0] || (v[0] = vt(() => {
|
|
4690
4693
|
}, ["prevent"])),
|
|
4691
4694
|
onKeydown: [
|
|
4692
|
-
|
|
4695
|
+
v[1] || (v[1] = Kr(vt(() => {
|
|
4693
4696
|
}, ["prevent"]), ["up"])),
|
|
4694
|
-
|
|
4697
|
+
v[2] || (v[2] = Kr(vt(() => {
|
|
4695
4698
|
}, ["prevent"]), ["down"]))
|
|
4696
4699
|
],
|
|
4697
4700
|
onInput: u,
|
|
4698
|
-
onFocus:
|
|
4699
|
-
onBlur:
|
|
4701
|
+
onFocus: v[3] || (v[3] = (b) => r.value = !0),
|
|
4702
|
+
onBlur: v[4] || (v[4] = (b) => r.value = !1)
|
|
4700
4703
|
}, null, 42, H9)
|
|
4701
4704
|
], 2),
|
|
4702
4705
|
e.errors && e.errors.length ? (_(), Be(Dr, {
|
|
@@ -4706,7 +4709,7 @@ const _9 = {
|
|
|
4706
4709
|
}, null, 8, ["errors", "name"])) : Y("", !0)
|
|
4707
4710
|
]));
|
|
4708
4711
|
}
|
|
4709
|
-
}), bD = /* @__PURE__ */ mt(U9, [["__scopeId", "data-v-
|
|
4712
|
+
}), bD = /* @__PURE__ */ mt(U9, [["__scopeId", "data-v-8f09107e"]]);
|
|
4710
4713
|
var z9 = Object.defineProperty, W9 = Object.defineProperties, j9 = Object.getOwnPropertyDescriptors, Xp = Object.getOwnPropertySymbols, Y9 = Object.prototype.hasOwnProperty, K9 = Object.prototype.propertyIsEnumerable, Qp = (e, n, t) => n in e ? z9(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, vi = (e, n) => {
|
|
4711
4714
|
for (var t in n || (n = {}))
|
|
4712
4715
|
Y9.call(n, t) && Qp(e, t, n[t]);
|