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.
@@ -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 = (f) => {
4602
- const p = f.target, v = parseFloat(p.value);
4603
- isNaN(v) ? (l("update:modelValue", t.min), p.value = String(t.min)) : v >= t.min && v <= t.max ? l("update:modelValue", v) : v > t.max ? (l("update:modelValue", t.max), p.value = String(t.max)) : v < t.min && (l("update:modelValue", t.min), p.value = String(t.min));
4604
- }, s = q(() => t.modelValue === 0 ? !0 : !!t.modelValue), d = () => {
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 f;
4616
- t != null && t.autoFocus && ((f = i == null ? void 0 : i.value) == null || f.focus());
4617
- }), (f, p) => (_(), E("div", null, [
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
- d(),
4641
- s.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",
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
- d(),
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: p[0] || (p[0] = (v) => {
4687
- /[0-9.]/.test(v.key) || v.preventDefault();
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
- p[2] || (p[2] = Kr(vt(() => {
4695
+ v[1] || (v[1] = Kr(vt(() => {
4693
4696
  }, ["prevent"]), ["up"])),
4694
- p[3] || (p[3] = Kr(vt(() => {
4697
+ v[2] || (v[2] = Kr(vt(() => {
4695
4698
  }, ["prevent"]), ["down"]))
4696
4699
  ],
4697
4700
  onInput: u,
4698
- onFocus: p[4] || (p[4] = (v) => r.value = !0),
4699
- onBlur: p[5] || (p[5] = (v) => r.value = !1)
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-5393c79e"]]);
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]);