@pixelium/web-vue 0.0.3-beta → 0.0.4

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.
Files changed (79) hide show
  1. package/dist/index.d.ts +10 -1
  2. package/dist/pixelium-vue.cjs +2 -2
  3. package/dist/pixelium-vue.css +1 -1
  4. package/dist/pixelium-vue.js +563 -558
  5. package/dist/pixelium-vue.umd.cjs +2 -2
  6. package/es/alert/draw.d.ts +6 -0
  7. package/es/alert/index.d.ts +29 -0
  8. package/es/alert/type.d.ts +83 -0
  9. package/es/aside/index.css +1 -0
  10. package/es/aside/index.js +1 -1
  11. package/es/auto-complete/index.css +2 -2
  12. package/es/auto-complete/index.js +2 -2
  13. package/es/badge/draw.d.ts +1 -0
  14. package/es/badge/index.d.ts +25 -0
  15. package/es/badge/type.d.ts +69 -0
  16. package/es/button/index.css +1 -8
  17. package/es/button/index.js +4 -4
  18. package/es/button-group/index.js +2 -2
  19. package/es/checkbox/index.js +2 -2
  20. package/es/checkbox-group/index.js +1 -1
  21. package/es/col/index.js +1 -1
  22. package/es/container/index.css +1 -0
  23. package/es/dialog/dialog-wrapped.d.ts +52 -0
  24. package/es/dialog/dialog.d.ts +51 -0
  25. package/es/dialog/index.d.ts +5 -0
  26. package/es/dialog/type.d.ts +308 -0
  27. package/es/footer/index.css +1 -0
  28. package/es/form-item/index.css +0 -3
  29. package/es/form-item/index.js +1 -1
  30. package/es/grid-item/index.js +1 -1
  31. package/es/header/index.css +1 -0
  32. package/es/index.css +1 -1
  33. package/es/index.js +9 -8
  34. package/es/input/index.css +2 -2
  35. package/es/input/index.js +2 -2
  36. package/es/input-group/index.js +2 -2
  37. package/es/input-group-label/index.js +2 -2
  38. package/es/input-number/index.css +2 -2
  39. package/es/input-number/index.js +2 -2
  40. package/es/input-tag/index.css +2 -2
  41. package/es/input-tag/index.js +2 -2
  42. package/es/link/index.css +1 -6
  43. package/es/main/index.css +4 -0
  44. package/es/main/index.d.ts +4 -1
  45. package/es/main/index.js +7 -3
  46. package/es/main/type.d.ts +7 -0
  47. package/es/message-box/index.js +1 -1
  48. package/es/popconfirm/index.d.ts +31 -0
  49. package/es/popconfirm/type.d.ts +199 -0
  50. package/es/popup-portal/index.d.ts +15 -0
  51. package/es/popup-portal/type.d.ts +3 -0
  52. package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +1 -0
  53. package/es/progress/draw.d.ts +6 -0
  54. package/es/progress/index.d.ts +31 -0
  55. package/es/progress/type.d.ts +67 -0
  56. package/es/radio/index.js +1 -1
  57. package/es/radio-group/index.js +1 -1
  58. package/es/select/index.css +2 -2
  59. package/es/select/index.js +2 -2
  60. package/es/share/hook/use-dark-mode.js +3 -3
  61. package/es/share/hook/use-polling.d.ts +2 -0
  62. package/es/share/hook/use-watch-global-css-var.js +2 -2
  63. package/es/share/style/index.css +5 -0
  64. package/es/share/util/locale.d.ts +50 -0
  65. package/es/slider/index.css +3 -0
  66. package/es/slider/index.js +1 -1
  67. package/es/switch/index.js +1 -1
  68. package/es/textarea/index.css +2 -2
  69. package/es/textarea/index.js +1 -1
  70. package/package.json +1 -1
  71. package/coverage/base.css +0 -224
  72. package/coverage/block-navigation.js +0 -87
  73. package/coverage/coverage-final.json +0 -106
  74. package/coverage/favicon.png +0 -0
  75. package/coverage/index.html +0 -926
  76. package/coverage/prettify.css +0 -1
  77. package/coverage/prettify.js +0 -2
  78. package/coverage/sort-arrow-sprite.png +0 -0
  79. package/coverage/sorter.js +0 -210
@@ -730,7 +730,7 @@ function toLinear(e) {
730
730
  function rgbaToOklch(e, t, n, r = 255) {
731
731
  let i = e / 255, a = t / 255, o = n / 255, s = toLinear(i), c = toLinear(a), l = toLinear(o), u = s * .41239079926595934 + c * .357584339383878 + l * .1804807884018343, p = s * .21263900587151027 + c * .715168678767756 + l * .07219231536073371, g = s * .01933081871559182 + c * .11919477979462598 + l * .9505321522496607, b = .819022437996703 * u + .3619062600528904 * p - .1288737815209879 * g, x = .0329836539323885 * u + .9292868615863434 * p + .0361446663506424 * g, C = .0481771893596242 * u + .2642395317527308 * p + .6335478284694309 * g;
732
732
  b = Math.cbrt(b), x = Math.cbrt(x), C = Math.cbrt(C);
733
- let w = .210454268309314 * b + .7936177747023054 * x - .0040720430116193 * C, T = 1.9779985324311684 * b - 2.42859224204858 * x + .450593709617411 * C, wo = .0259040424655478 * b + .7827717124575296 * x - .8086757549230774 * C, D = Math.sqrt(T * T + wo * wo), k = Math.atan2(wo, T) * 180 / Math.PI;
733
+ let w = .210454268309314 * b + .7936177747023054 * x - .0040720430116193 * C, T = 1.9779985324311684 * b - 2.42859224204858 * x + .450593709617411 * C, Co = .0259040424655478 * b + .7827717124575296 * x - .8086757549230774 * C, D = Math.sqrt(T * T + Co * Co), k = Math.atan2(Co, T) * 180 / Math.PI;
734
734
  return k < 0 && (k += 360), {
735
735
  l: w,
736
736
  c: D,
@@ -744,11 +744,11 @@ function toGamma(e) {
744
744
  function oklchToRgba(e, t, n, r = 255) {
745
745
  let i = n * Math.PI / 180, a = t * Math.cos(i), o = t * Math.sin(i), s = e + .3963377773761749 * a + .2158037573099136 * o, c = e - .1055613458156586 * a - .0638541728258133 * o, l = e - .0894841775298119 * a - 1.2914855480194092 * o;
746
746
  s = s * s * s, c = c * c * c, l = l * l * l;
747
- let u = 1.2268798758459243 * s - .5578149944602171 * c + .2813910456659647 * l, p = -.0405757452148008 * s + 1.112286803280317 * c - .0717110580655164 * l, g = -.0763729366746601 * s - .4214933324022432 * c + 1.5869240198367816 * l, b = 3.2409699419045226 * u - 1.537383177570094 * p - .4986107602930034 * g, x = -.9692436362808796 * u + 1.8759675015077202 * p + .04155505740717559 * g, C = .05563007969699366 * u - .20397695888897652 * p + 1.0569715142428786 * g, w = toGamma(b), T = toGamma(x), wo = toGamma(C);
747
+ let u = 1.2268798758459243 * s - .5578149944602171 * c + .2813910456659647 * l, p = -.0405757452148008 * s + 1.112286803280317 * c - .0717110580655164 * l, g = -.0763729366746601 * s - .4214933324022432 * c + 1.5869240198367816 * l, b = 3.2409699419045226 * u - 1.537383177570094 * p - .4986107602930034 * g, x = -.9692436362808796 * u + 1.8759675015077202 * p + .04155505740717559 * g, C = .05563007969699366 * u - .20397695888897652 * p + 1.0569715142428786 * g, w = toGamma(b), T = toGamma(x), Co = toGamma(C);
748
748
  return {
749
749
  r: Math.round(w * 255),
750
750
  g: Math.round(T * 255),
751
- b: Math.round(wo * 255),
751
+ b: Math.round(Co * 255),
752
752
  a: r
753
753
  };
754
754
  }
@@ -843,20 +843,20 @@ function getGradientColor(e, t, n = "primary", r, i, a) {
843
843
  return r ? e ? r[0] : a ? r[6] : i && !t ? r[3] : r[4] : n === "info" ? e ? getGlobalThemeColor("neutral", 2) : a ? getGlobalThemeColor("neutral", 5) : i && !t ? getGlobalThemeColor("neutral", 4) : getGlobalThemeColor("neutral", 3) : e ? getGlobalThemeColor(n, 1) : a ? getGlobalThemeColor(n, 7) : i && !t ? getGlobalThemeColor(n, 4) : getGlobalThemeColor(n, 5);
844
844
  }
845
845
  const drawGradient = (e, t, n, r, i, a, o, s, c, l = "primary", u, p, g, b, x, C) => {
846
- let w = calcWhenLeaveBaseline(o, i[2]), T = calcWhenLeaveBaseline(o, i[3]), wo = calcWhenLeaveBaseline(o, i[1]), D = calcWhenLeaveBaseline(o, i[0]), k = +!(p && !g), j = +!p || +(p && b);
846
+ let w = calcWhenLeaveBaseline(o, i[2]), T = calcWhenLeaveBaseline(o, i[3]), Co = calcWhenLeaveBaseline(o, i[1]), D = calcWhenLeaveBaseline(o, i[0]), k = +!(p && !g), j = +!p || +(p && b);
847
847
  if (!C || s) {
848
848
  let g = getGradientColor(s, c, l, u, x, C);
849
849
  if (!g) return;
850
850
  e.fillStyle = rgbaColor2string(g), i[1] > o && (drawCircle(e, r[1][0] - o, r[1][1], i[1], a[1][0], a[1][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[1][0] - o, 0, D, o), e.globalCompositeOperation = "source-over"), i[2] > o && (drawCircle(e, r[2][0] - o, r[2][1], i[2], a[2][0], a[2][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[2][0] - o, n - o, T, o), e.globalCompositeOperation = "source-over");
851
851
  let M = r[2][0] - r[3][0] + T * k + w * j - 1 * !j;
852
852
  M > 0 && e.fillRect(r[3][0] - T * k, n - o * 2, M, o);
853
- let To = r[2][1] + o - r[1][1] + wo + w;
854
- To > 0 && e.fillRect(t - o * 2 - (b ? 0 : +p * o * 1), r[1][1] - wo, o, To);
853
+ let wo = r[2][1] + o - r[1][1] + Co + w;
854
+ wo > 0 && e.fillRect(t - o * 2 - (b ? 0 : +p * o * 1), r[1][1] - Co, o, wo);
855
855
  } else {
856
856
  let t = getGradientColor(s, c, l, u, x, C);
857
857
  if (!t) return;
858
- e.fillStyle = rgbaColor2string(t), i[0] > o && (drawCircle(e, r[0][0] + o, r[0][1], i[0], a[0][0], a[0][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[0][0] + o, 0, wo, o), e.globalCompositeOperation = "source-over"), i[3] > o && (drawCircle(e, r[3][0] + o, r[3][1], i[3], a[3][0], a[3][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[3][0] + o, n - o, w, o), e.globalCompositeOperation = "source-over");
859
- let p = r[1][0] + o - r[0][0] + wo * +j + D * k - 1 * !j;
858
+ e.fillStyle = rgbaColor2string(t), i[0] > o && (drawCircle(e, r[0][0] + o, r[0][1], i[0], a[0][0], a[0][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[0][0] + o, 0, Co, o), e.globalCompositeOperation = "source-over"), i[3] > o && (drawCircle(e, r[3][0] + o, r[3][1], i[3], a[3][0], a[3][1], o), e.globalCompositeOperation = "destination-out", e.fillRect(r[3][0] + o, n - o, w, o), e.globalCompositeOperation = "source-over");
859
+ let p = r[1][0] + o - r[0][0] + Co * +j + D * k - 1 * !j;
860
860
  p > 0 && e.fillRect(r[0][0] - D * k, o, p, o);
861
861
  let g = o + r[3][1] - r[0][1] + T + D;
862
862
  g > 0 && e.fillRect(o, r[0][1] - D, o, g);
@@ -883,7 +883,7 @@ const useDarkMode = () => {
883
883
  function n(t) {
884
884
  e.value = t.matches;
885
885
  }
886
- if (inBrowser()) {
886
+ if (inBrowser() && !inVitest()) {
887
887
  let e = window.matchMedia("(prefers-color-scheme: dark)");
888
888
  n(e), e.addEventListener("change", n), onBeforeUnmount(() => {
889
889
  e.removeEventListener("change", n);
@@ -897,7 +897,7 @@ const useDarkMode = () => {
897
897
  }), t.value = e ? !0 : n ? !1 : void 0;
898
898
  }
899
899
  };
900
- return inBrowser() && (onMounted(() => {
900
+ return inBrowser() && !inVitest() && (onMounted(() => {
901
901
  let e = observerMap$1.get(document.documentElement) || new MutationObserver(runCallbacks(document.documentElement));
902
902
  observerMap$1.set(document.documentElement, e), e.observe(document.documentElement, {
903
903
  attributes: !0,
@@ -941,7 +941,7 @@ function mitt_default(e) {
941
941
  };
942
942
  }
943
943
  const EventBus = mitt_default(), BUTTON_GROUP_UPDATE = "px-button-group-update", GRID_UPDATE = "px-grid-update", GLOBAL_CSS_VAR_CHANGE = "px-global-css-var-change", INPUT_GROUP_UPDATE = "px-input-group-update", useWatchGlobalCssVal = (e) => {
944
- if (!inBrowser()) return;
944
+ if (!inBrowser() || inVitest()) return;
945
945
  let t = () => {
946
946
  e();
947
947
  };
@@ -992,7 +992,7 @@ function useTransitionEnd(e, t) {
992
992
  e.value && e.value.removeEventListener("transitionend", t);
993
993
  });
994
994
  }
995
- var _hoisted_1$20 = [
995
+ var _hoisted_1$19 = [
996
996
  "disabled",
997
997
  "type",
998
998
  "autofocus"
@@ -1030,7 +1030,7 @@ var _hoisted_1$20 = [
1030
1030
  ref(0),
1031
1031
  ref(!1),
1032
1032
  ref(!1)
1033
- ], T = inject(BUTTON_GROUP_PROVIDE), k = inject(INPUT_GROUP_PROVIDE), N = inject(FORM_PROVIDE), P = inject(FORM_ITEM_PROVIDE), I = createProvideComputed("borderRadius", [
1033
+ ], T = inject(BUTTON_GROUP_PROVIDE, void 0), k = inject(INPUT_GROUP_PROVIDE, void 0), N = inject(FORM_PROVIDE, void 0), P = inject(FORM_ITEM_PROVIDE, void 0), I = createProvideComputed("borderRadius", [
1034
1034
  u.value && T,
1035
1035
  p.value && k,
1036
1036
  r
@@ -1045,38 +1045,38 @@ var _hoisted_1$20 = [
1045
1045
  u.value && T,
1046
1046
  p.value && k,
1047
1047
  r
1048
- ], "nullish", (e) => e || "rect"), ko = createProvideComputed("theme", [u.value && T, r], "nullish", (e) => e || "primary"), H = createProvideComputed("disabled", [
1048
+ ], "nullish", (e) => e || "rect"), Oo = createProvideComputed("theme", [u.value && T, r], "nullish", (e) => e || "primary"), H = createProvideComputed("disabled", [
1049
1049
  u.value && T,
1050
1050
  p.value && k,
1051
1051
  P,
1052
1052
  N,
1053
1053
  r
1054
- ], (e, t, n) => e || t || "readonly" in n && n.readonly.value), U = createProvideComputed("loading", [u.value && T, r], "or"), W = useSlots(), K = ref(!1), q = ref(!1), No = (e) => {
1054
+ ], (e, t, n) => e || t || "readonly" in n && n.readonly.value), U = createProvideComputed("loading", [u.value && T, r], "or"), W = useSlots(), K = ref(!1), q = ref(!1), Mo = (e) => {
1055
1055
  K.value = e;
1056
- }, Po = (e) => {
1056
+ }, No = (e) => {
1057
1057
  q.value = e;
1058
- }, Fo = useDarkMode(), Io = shallowRef(null), Lo = shallowRef(null), Ro = useId();
1058
+ }, Po = useDarkMode(), Fo = shallowRef(null), Io = shallowRef(null), Lo = useId();
1059
1059
  onMounted(() => {
1060
1060
  nextTick(() => {
1061
- Bo(), u.value && (T == null || T.collectChildrenInfo({
1062
- id: Ro,
1061
+ zo(), u.value && (T == null || T.collectChildrenInfo({
1062
+ id: Lo,
1063
1063
  variant: L.value,
1064
1064
  index: g.value
1065
1065
  })), p.value && (k == null || k.collectChildrenInfo({
1066
- id: Ro,
1066
+ id: Lo,
1067
1067
  variant: L.value,
1068
1068
  index: g.value
1069
1069
  }));
1070
1070
  });
1071
1071
  }), onBeforeUnmount(() => {
1072
- u.value && (T == null || T.removeChildrenInfo(Ro)), p.value && (k == null || k.removeChildrenInfo(Ro));
1072
+ u.value && (T == null || T.removeChildrenInfo(Lo)), p.value && (k == null || k.removeChildrenInfo(Lo));
1073
1073
  }), watch([L, g], () => {
1074
1074
  u.value && (T == null || T.collectChildrenInfo({
1075
- id: Ro,
1075
+ id: Lo,
1076
1076
  variant: L.value,
1077
1077
  index: g.value
1078
1078
  })), p.value && (k == null || k.collectChildrenInfo({
1079
- id: Ro,
1079
+ id: Lo,
1080
1080
  variant: L.value,
1081
1081
  index: g.value
1082
1082
  }));
@@ -1089,34 +1089,34 @@ var _hoisted_1$20 = [
1089
1089
  }), Y = computed(() => {
1090
1090
  if (!r.color) return null;
1091
1091
  let e = parseColor(r.color);
1092
- return e ? generatePalette(e.r, e.g, e.b, e.a, Fo.value) : null;
1093
- }), zo = computed(() => getTextColorWithPalette$1(Y.value, L.value, !!H.value, !!U.value, K.value, q.value));
1092
+ return e ? generatePalette(e.r, e.g, e.b, e.a, Po.value) : null;
1093
+ }), Ro = computed(() => getTextColorWithPalette$1(Y.value, L.value, !!H.value, !!U.value, K.value, q.value));
1094
1094
  watch([
1095
1095
  I,
1096
1096
  V,
1097
1097
  H,
1098
1098
  U,
1099
1099
  L,
1100
- ko,
1100
+ Oo,
1101
1101
  Y,
1102
1102
  K,
1103
1103
  q,
1104
- Fo,
1104
+ Po,
1105
1105
  J
1106
1106
  ], () => {
1107
- Bo();
1107
+ zo();
1108
1108
  }), watch([x, w], () => {
1109
- Bo();
1109
+ zo();
1110
1110
  });
1111
- let Bo = () => {
1112
- let e = canvasPreprocess(Lo, Io);
1111
+ let zo = () => {
1112
+ let e = canvasPreprocess(Io, Fo);
1113
1113
  if (!e) return;
1114
- let t = calcPixelSize(), { ctx: n, width: r, height: i, canvas: a } = e, o = getBorderRadius(a, t, I.value, V.value || "rect", z.value || "medium", u.value || p.value, x.value, w.value), s = getBorderColor$2(!!H.value, !!U.value, L.value || "primary", ko.value || "primary", Y.value, K.value, q.value), c = calcBorderCornerCenter(o, r, i, t), l = BORDER_CORNER_RAD_RANGE;
1115
- (!L.value || L.value === "primary") && drawGradient(n, r, i, c, o, l, t, !!H.value, !!U.value, ko.value, Y.value, u.value || p.value, x.value, w.value, K.value, q.value), s && drawBorder$13(n, r, i, c, o, l, s, t, L.value || "primary", u.value || p.value, x.value, w.value, J.value);
1116
- let g = getBackgroundColor$2(!!H.value, !!U.value, L.value || "primary", ko.value || "primary", Y.value, K.value, q.value);
1114
+ let t = calcPixelSize(), { ctx: n, width: r, height: i, canvas: a } = e, o = getBorderRadius(a, t, I.value, V.value || "rect", z.value || "medium", u.value || p.value, x.value, w.value), s = getBorderColor$2(!!H.value, !!U.value, L.value || "primary", Oo.value || "primary", Y.value, K.value, q.value), c = calcBorderCornerCenter(o, r, i, t), l = BORDER_CORNER_RAD_RANGE;
1115
+ (!L.value || L.value === "primary") && drawGradient(n, r, i, c, o, l, t, !!H.value, !!U.value, Oo.value, Y.value, u.value || p.value, x.value, w.value, K.value, q.value), s && drawBorder$13(n, r, i, c, o, l, s, t, L.value || "primary", u.value || p.value, x.value, w.value, J.value);
1116
+ let g = getBackgroundColor$2(!!H.value, !!U.value, L.value || "primary", Oo.value || "primary", Y.value, K.value, q.value);
1117
1117
  g && floodFill(n, Math.round(r / 2), Math.round(i / 2), g);
1118
1118
  };
1119
- return useResizeObserver(Lo, Bo), useWatchGlobalCssVal(Bo), useTransitionEnd(Lo, Bo), (e, t) => (openBlock(), createElementBlock("button", {
1119
+ return useResizeObserver(Io, zo), useWatchGlobalCssVal(zo), useTransitionEnd(Io, zo), (e, t) => (openBlock(), createElementBlock("button", {
1120
1120
  disabled: unref(H) || unref(U),
1121
1121
  class: normalizeClass(["pixelium px-button", {
1122
1122
  "px-button__block": !(u.value || p.value) && !!r.block,
@@ -1129,21 +1129,21 @@ var _hoisted_1$20 = [
1129
1129
  "px-button__disabled": unref(H),
1130
1130
  "px-button__custom": Y.value,
1131
1131
  "px-button__inner": u.value || p.value,
1132
- [`px-button__${unref(ko) || "primary"}`]: !0
1132
+ [`px-button__${unref(Oo) || "primary"}`]: !0
1133
1133
  }]),
1134
- style: normalizeStyle({ color: zo.value }),
1134
+ style: normalizeStyle({ color: Ro.value }),
1135
1135
  ref_key: "buttonRef",
1136
- ref: Lo,
1137
- onMouseenter: t[0] || (t[0] = (e) => No(!0)),
1138
- onMouseleave: t[1] || (t[1] = (e) => No(!1)),
1139
- onMousedown: t[2] || (t[2] = (e) => Po(!0)),
1140
- onMouseup: t[3] || (t[3] = (e) => Po(!1)),
1136
+ ref: Io,
1137
+ onMouseenter: t[0] || (t[0] = (e) => Mo(!0)),
1138
+ onMouseleave: t[1] || (t[1] = (e) => Mo(!1)),
1139
+ onMousedown: t[2] || (t[2] = (e) => No(!0)),
1140
+ onMouseup: t[3] || (t[3] = (e) => No(!1)),
1141
1141
  type: r.nativeType,
1142
1142
  autofocus: r.autofocus
1143
1143
  }, [
1144
1144
  createElementVNode("canvas", {
1145
1145
  ref_key: "canvasRef",
1146
- ref: Io,
1146
+ ref: Fo,
1147
1147
  class: "px-button-canvas"
1148
1148
  }, null, 512),
1149
1149
  unref(W).icon || unref(U) ? (openBlock(), createElementBlock("div", {
@@ -1152,12 +1152,12 @@ var _hoisted_1$20 = [
1152
1152
  }, [unref(U) ? (openBlock(), createBlock(unref(spinner_third_solid_default), {
1153
1153
  key: 0,
1154
1154
  class: "px-button-icon px-animation__loading",
1155
- style: normalizeStyle({ fill: zo.value })
1155
+ style: normalizeStyle({ fill: Ro.value })
1156
1156
  }, null, 8, ["style"])) : renderSlot(e.$slots, "icon", { key: 1 })], 2)) : createCommentVNode("", !0),
1157
1157
  renderSlot(e.$slots, "default")
1158
- ], 46, _hoisted_1$20));
1158
+ ], 46, _hoisted_1$19));
1159
1159
  }
1160
- }), _hoisted_1$19 = { class: "pixelium px-button-group" }, button_group_default = /* @__PURE__ */ defineComponent({
1160
+ }), _hoisted_1$18 = { class: "pixelium px-button-group" }, button_group_default = /* @__PURE__ */ defineComponent({
1161
1161
  name: "ButtonGroup",
1162
1162
  __name: "index",
1163
1163
  props: {
@@ -1173,7 +1173,7 @@ var _hoisted_1$20 = [
1173
1173
  theme: null
1174
1174
  },
1175
1175
  setup(e) {
1176
- let t = e, n = inject(FORM_PROVIDE), r = inject(FORM_ITEM_PROVIDE), i = createProvideComputed("size", () => [
1176
+ let t = e, n = inject(FORM_PROVIDE, void 0), r = inject(FORM_ITEM_PROVIDE, void 0), i = createProvideComputed("size", () => [
1177
1177
  t.size && t,
1178
1178
  r,
1179
1179
  n,
@@ -1195,9 +1195,9 @@ var _hoisted_1$20 = [
1195
1195
  removeChildrenInfo: (e) => {
1196
1196
  o.value = o.value.filter((t) => t.id != e);
1197
1197
  }
1198
- }), emitParentUpdate(BUTTON_GROUP_UPDATE), (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$19, [renderSlot(e.$slots, "default")]));
1198
+ }), emitParentUpdate(BUTTON_GROUP_UPDATE), (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$18, [renderSlot(e.$slots, "default")]));
1199
1199
  }
1200
- }), _hoisted_1$18 = ["href", "target"], link_default = /* @__PURE__ */ defineComponent({
1200
+ }), _hoisted_1$17 = ["href", "target"], link_default = /* @__PURE__ */ defineComponent({
1201
1201
  name: "Link",
1202
1202
  __name: "index",
1203
1203
  props: {
@@ -1244,7 +1244,7 @@ var _hoisted_1$20 = [
1244
1244
  key: 0,
1245
1245
  class: "px-link-icon px-animation__loading",
1246
1246
  style: normalizeStyle({ fill: x.value })
1247
- }, null, 8, ["style"])) : renderSlot(e.$slots, "icon", { key: 1 })], 2)) : createCommentVNode("", !0), renderSlot(e.$slots, "default")], 46, _hoisted_1$18));
1247
+ }, null, 8, ["style"])) : renderSlot(e.$slots, "icon", { key: 1 })], 2)) : createCommentVNode("", !0), renderSlot(e.$slots, "default")], 46, _hoisted_1$17));
1248
1248
  }
1249
1249
  }), info_circle_solid_default = /* @__PURE__ */ defineComponent({
1250
1250
  props: {
@@ -1368,7 +1368,7 @@ var _hoisted_1$20 = [
1368
1368
  }
1369
1369
  let w = n, T = () => {
1370
1370
  w("close", i.id), x();
1371
- }, wo = shallowRef(null), D = shallowRef(null), k = (e) => {
1371
+ }, Co = shallowRef(null), D = shallowRef(null), k = (e) => {
1372
1372
  if (!e) return "normal";
1373
1373
  switch (e) {
1374
1374
  case "info": return "primary";
@@ -1382,7 +1382,7 @@ var _hoisted_1$20 = [
1382
1382
  }), P = computed(() => N.value ? rgbaColor2string(N.value[5]) : void 0), I = computed(() => {
1383
1383
  if (N.value) return s.value ? rgbaColor2string(N.value[6]) : o.value ? rgbaColor2string(N.value[4]) : rgbaColor2string(N.value[5]);
1384
1384
  });
1385
- function Eo(e = "normal", t) {
1385
+ function To(e = "normal", t) {
1386
1386
  if (t) return t[5];
1387
1387
  {
1388
1388
  let t = k(e);
@@ -1392,9 +1392,9 @@ var _hoisted_1$20 = [
1392
1392
  let L = (e, t, n, r, i) => {
1393
1393
  e.fillStyle = rgbaColor2string(r), e.fillRect(i, 0, t - 2 * i, i), e.fillRect(t - i, i, i, n - 2 * i), e.fillRect(i, n - i, t - 2 * i, i), e.fillRect(0, i, i, n - 2 * i), e.fillStyle = getGlobalThemeColorString("neutral", 1), e.fillRect(i, i, t - 2 * i, n - 2 * i);
1394
1394
  }, z = () => {
1395
- let e = canvasPreprocess(D, wo);
1395
+ let e = canvasPreprocess(D, Co);
1396
1396
  if (!e) return;
1397
- let { ctx: t, width: n, height: r } = e, a = calcPixelSize(), o = Eo(i.type, N.value);
1397
+ let { ctx: t, width: n, height: r } = e, a = calcPixelSize(), o = To(i.type, N.value);
1398
1398
  o && L(t, n, r, o, a);
1399
1399
  };
1400
1400
  return useResizeObserver(D, z), useWatchGlobalCssVal(z), useTransitionEnd(D, z), watch([
@@ -1448,7 +1448,7 @@ var _hoisted_1$20 = [
1448
1448
  onClick: C
1449
1449
  }, null)]),
1450
1450
  createVNode("canvas", {
1451
- ref: (e) => wo.value = e,
1451
+ ref: (e) => Co.value = e,
1452
1452
  class: "px-message-canvas"
1453
1453
  }, null)
1454
1454
  ])] });
@@ -1624,7 +1624,7 @@ var MessageManager = class {
1624
1624
  unmount() {
1625
1625
  if (this.container) {
1626
1626
  let e = this.container;
1627
- render(this.messageBox, e), nextTick(() => {
1627
+ render(null, e), nextTick(() => {
1628
1628
  e.remove(), this.container = null;
1629
1629
  });
1630
1630
  }
@@ -1683,7 +1683,7 @@ const useScreenWidth = () => {
1683
1683
  window.removeEventListener("resize", t);
1684
1684
  })), [n, e];
1685
1685
  };
1686
- var _hoisted_1$17 = { class: "pixelium px-row" }, row_default = /* @__PURE__ */ defineComponent({
1686
+ var _hoisted_1$16 = { class: "pixelium px-row" }, row_default = /* @__PURE__ */ defineComponent({
1687
1687
  name: "Row",
1688
1688
  __name: "index",
1689
1689
  props: {
@@ -1714,7 +1714,7 @@ var _hoisted_1$17 = { class: "pixelium px-row" }, row_default = /* @__PURE__ */
1714
1714
  y: 0
1715
1715
  }, e);
1716
1716
  });
1717
- return provide("px-row-provide", r), (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$17, [createElementVNode("div", {
1717
+ return provide("px-row-provide", r), (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$16, [createElementVNode("div", {
1718
1718
  class: normalizeClass(["px-row-inner", {
1719
1719
  [`px-row__justify-${t.justify}`]: !0,
1720
1720
  [`px-row__align-${t.align}`]: !0,
@@ -1737,7 +1737,7 @@ var _hoisted_1$17 = { class: "pixelium px-row" }, row_default = /* @__PURE__ */
1737
1737
  },
1738
1738
  setup(e) {
1739
1739
  var t;
1740
- let n = e, [r] = useScreenWidth(), i = computed(() => A(n.offset) ? n.offset : n.offset[r.value] || 0), o = computed(() => A(n.span) ? n.span : n.span[r.value] || 24), s = getCurrentInstance(), l = ref((s == null || (t = s.parent) == null ? void 0 : t.type.name) === "Row").value && inject("px-row-provide") || ref({
1740
+ let n = e, [r] = useScreenWidth(), i = computed(() => A(n.offset) ? n.offset : n.offset[r.value] || 0), o = computed(() => A(n.span) ? n.span : n.span[r.value] || 24), s = getCurrentInstance(), l = ref((s == null || (t = s.parent) == null ? void 0 : t.type.name) === "Row").value && inject("px-row-provide", void 0) || ref({
1741
1741
  x: 0,
1742
1742
  y: 0
1743
1743
  });
@@ -1909,7 +1909,7 @@ var space_default = /* @__PURE__ */ defineComponent({
1909
1909
  },
1910
1910
  setup(e) {
1911
1911
  var t;
1912
- let n = getCurrentInstance(), r = ref((n == null || (t = n.parent) == null ? void 0 : t.type.name) === "Grid").value ? inject(GRID_PROVIDE) : void 0, i = e, o = useId(), [s] = useIndexOfChildren(GRID_UPDATE), [l] = useScreenWidth(), u = computed(() => A(i.offset) ? i.offset : i.offset[l.value] || 0), p = computed(() => i.span === void 0 ? (r == null ? void 0 : r.column.value) || 24 : A(i.span) ? i.span : i.span[l.value] || 24);
1912
+ let n = getCurrentInstance(), r = ref((n == null || (t = n.parent) == null ? void 0 : t.type.name) === "Grid").value ? inject(GRID_PROVIDE, void 0) : void 0, i = e, o = useId(), [s] = useIndexOfChildren(GRID_UPDATE), [l] = useScreenWidth(), u = computed(() => A(i.offset) ? i.offset : i.offset[l.value] || 0), p = computed(() => i.span === void 0 ? (r == null ? void 0 : r.column.value) || 24 : A(i.span) ? i.span : i.span[l.value] || 24);
1913
1913
  onMounted(() => {
1914
1914
  r == null || r.itemsStat.value.push({
1915
1915
  id: o,
@@ -1965,11 +1965,16 @@ var space_default = /* @__PURE__ */ defineComponent({
1965
1965
  [`px-container__${n.direction}`]: !!n.direction
1966
1966
  }]) }, [renderSlot(e.$slots, "default")], 2));
1967
1967
  }
1968
- }), _hoisted_1$16 = { class: "pixelium px-main" }, main_default = /* @__PURE__ */ defineComponent({
1968
+ }), main_default = /* @__PURE__ */ defineComponent({
1969
1969
  name: "Main",
1970
1970
  __name: "index",
1971
+ props: { soft: {
1972
+ type: Boolean,
1973
+ default: !1
1974
+ } },
1971
1975
  setup(e) {
1972
- return (e, t) => (openBlock(), createElementBlock("main", _hoisted_1$16, [renderSlot(e.$slots, "default")]));
1976
+ let t = e;
1977
+ return (e, n) => (openBlock(), createElementBlock("main", { class: normalizeClass(["pixelium px-main", { "px-main__soft": t.soft }]) }, [renderSlot(e.$slots, "default")], 2));
1973
1978
  }
1974
1979
  }), aside_default = /* @__PURE__ */ defineComponent({
1975
1980
  name: "Aside",
@@ -1988,7 +1993,7 @@ var space_default = /* @__PURE__ */ defineComponent({
1988
1993
  },
1989
1994
  setup(e) {
1990
1995
  var t;
1991
- let n = getCurrentInstance(), r = ref((n == null || (t = n.parent) == null ? void 0 : t.type.name) === "Container").value ? inject(CONTAINER_PROVIDE) : void 0;
1996
+ let n = getCurrentInstance(), r = ref((n == null || (t = n.parent) == null ? void 0 : t.type.name) === "Container").value ? inject(CONTAINER_PROVIDE, void 0) : void 0;
1992
1997
  onMounted(() => {
1993
1998
  r && (r.value += 1);
1994
1999
  }), onBeforeUnmount(() => {
@@ -2336,13 +2341,13 @@ var _hoisted_1$15 = {
2336
2341
  var r;
2337
2342
  let i = e, u = n, [g, x, w] = useComposition({ afterComposition: (e) => {
2338
2343
  nextTick(() => {
2339
- Ro(e);
2344
+ Lo(e);
2340
2345
  });
2341
2346
  } }), T = getCurrentInstance(), k = ref((T == null || (r = T.parent) == null ? void 0 : r.type.name) === "InputGroup"), [j, M, N] = k.value ? useIndexOfChildren(INPUT_GROUP_UPDATE) : [
2342
2347
  ref(0),
2343
2348
  ref(!1),
2344
2349
  ref(!1)
2345
- ], P = inject(INPUT_GROUP_PROVIDE), I = inject(FORM_ITEM_PROVIDE), L = createProvideComputed("borderRadius", () => [k.value && P, i]), z = createProvideComputed("size", () => [
2350
+ ], P = inject(INPUT_GROUP_PROVIDE, void 0), I = inject(FORM_ITEM_PROVIDE, void 0), L = createProvideComputed("borderRadius", () => [k.value && P, i]), z = createProvideComputed("size", () => [
2346
2351
  k.value && P,
2347
2352
  i.size && i,
2348
2353
  I,
@@ -2363,7 +2368,7 @@ var _hoisted_1$15 = {
2363
2368
  }), [K, q] = useControlledMode("modelValue", i, u, {
2364
2369
  defaultField: "defaultValue",
2365
2370
  transform: (e) => e || ""
2366
- }), No = shallowRef(null), Po = shallowRef(null), Fo = shallowRef(null), Lo = computed(() => i.countGraphemes ? i.countGraphemes(K.value) : K.value.length), Ro = async (e) => {
2371
+ }), Mo = shallowRef(null), No = shallowRef(null), Po = shallowRef(null), Io = computed(() => i.countGraphemes ? i.countGraphemes(K.value) : K.value.length), Lo = async (e) => {
2367
2372
  let t = e.target.value;
2368
2373
  K.value = t, !g.value && (u("input", t, e), i.maxLength && (i.countGraphemes && i.sliceGraphemes ? (await nextTick(), t = i.sliceGraphemes(K.value, i.maxLength)) : t = K.value.slice(0, i.maxLength)), q(t), I == null || I.inputHandler());
2369
2374
  }, J = async () => {
@@ -2371,33 +2376,33 @@ var _hoisted_1$15 = {
2371
2376
  }, Y = (e) => {
2372
2377
  let t = e.target;
2373
2378
  u("change", t.value, e), I == null || I.changeHandler();
2374
- }, zo = ref(!1), Bo = (e) => {
2375
- zo.value = !1, u("blur", e), I == null || I.blurHandler();
2376
- }, Ho = (e) => {
2377
- zo.value = !0, u("focus", e);
2379
+ }, Ro = ref(!1), zo = (e) => {
2380
+ Ro.value = !1, u("blur", e), I == null || I.blurHandler();
2381
+ }, Vo = (e) => {
2382
+ Ro.value = !0, u("focus", e);
2378
2383
  }, X = () => {
2379
2384
  var e;
2380
- (e = Fo.value) == null || e.focus();
2381
- }, $ = ref(!1), Uo = () => {
2385
+ (e = Po.value) == null || e.focus();
2386
+ }, $ = ref(!1), Ho = () => {
2382
2387
  $.value = !0;
2383
- }, Wo = () => {
2388
+ }, Uo = () => {
2384
2389
  $.value = !1;
2385
- }, Go = computed(() => i.clearable && !H.value && !U.value), Ko = ref(!1), qo = () => {
2386
- Ko.value = !Ko.value;
2387
- }, Jo = computed(() => i.nativeType ? i.nativeType : i.password ? Ko.value ? "text" : "password" : "text"), Yo = useSlots();
2390
+ }, Wo = computed(() => i.clearable && !H.value && !U.value), Go = ref(!1), Ko = () => {
2391
+ Go.value = !Go.value;
2392
+ }, qo = computed(() => i.nativeType ? i.nativeType : i.password ? Go.value ? "text" : "password" : "text"), Jo = useSlots();
2388
2393
  t({
2389
2394
  focus: () => {
2390
2395
  var e;
2391
- (e = Fo.value) == null || e.focus();
2396
+ (e = Po.value) == null || e.focus();
2392
2397
  },
2393
2398
  blur: () => {
2394
2399
  var e;
2395
- (e = Fo.value) == null || e.blur();
2400
+ (e = Po.value) == null || e.blur();
2396
2401
  },
2397
2402
  clear: () => J(),
2398
2403
  select: () => {
2399
2404
  var e;
2400
- (e = Fo.value) == null || e.select();
2405
+ (e = Po.value) == null || e.select();
2401
2406
  }
2402
2407
  }), watch([
2403
2408
  M,
@@ -2407,28 +2412,28 @@ var _hoisted_1$15 = {
2407
2412
  z,
2408
2413
  U,
2409
2414
  H,
2410
- () => Yo,
2415
+ () => Jo,
2411
2416
  useDarkMode(),
2412
- zo,
2417
+ Ro,
2413
2418
  $,
2414
2419
  W,
2415
2420
  G
2416
2421
  ], () => {
2417
- Xo();
2422
+ Yo();
2418
2423
  });
2419
- let Xo = () => {
2420
- let e = canvasPreprocess(No, Po);
2424
+ let Yo = () => {
2425
+ let e = canvasPreprocess(Mo, No);
2421
2426
  if (!e) return;
2422
- let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, L.value, V.value, z.value || "medium", k.value, M.value, N.value), s = W.value === "normal" ? ($.value || zo.value) && !H.value && !U.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(W.value === "error" ? "danger" : W.value, 6), c = calcBorderCornerCenter(o, n, r, a);
2427
+ let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, L.value, V.value, z.value || "medium", k.value, M.value, N.value), s = W.value === "normal" ? ($.value || Ro.value) && !H.value && !U.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(W.value === "error" ? "danger" : W.value, 6), c = calcBorderCornerCenter(o, n, r, a);
2423
2428
  s && drawBorder$12(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, k.value, M.value, N.value, G.value);
2424
2429
  let l = H.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
2425
2430
  l && floodFill(t, Math.round(n / 2), Math.round(r / 2), l);
2426
2431
  };
2427
2432
  return onMounted(() => {
2428
2433
  nextTick(() => {
2429
- Xo();
2434
+ Yo();
2430
2435
  });
2431
- }), useResizeObserver(No, Xo), useWatchGlobalCssVal(Xo), useTransitionEnd(No, Xo), (t, n) => (openBlock(), createElementBlock("div", {
2436
+ }), useResizeObserver(Mo, Yo), useWatchGlobalCssVal(Yo), useTransitionEnd(Mo, Yo), (t, n) => (openBlock(), createElementBlock("div", {
2432
2437
  class: normalizeClass(["pixelium px-input", {
2433
2438
  [`px-input__${unref(z)}`]: !!unref(z),
2434
2439
  [`px-input__${unref(V)}`]: !!unref(V),
@@ -2436,53 +2441,53 @@ var _hoisted_1$15 = {
2436
2441
  "px-input__disabled": !!unref(H)
2437
2442
  }]),
2438
2443
  ref_key: "wrapperRef",
2439
- ref: No,
2444
+ ref: Mo,
2440
2445
  onClick: X,
2441
- onMouseenter: Uo,
2442
- onMouseleave: Wo,
2443
- onFocusout: Bo,
2444
- onFocusin: Ho
2446
+ onMouseenter: Ho,
2447
+ onMouseleave: Uo,
2448
+ onFocusout: zo,
2449
+ onFocusin: Vo
2445
2450
  }, [
2446
- unref(Yo).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$15, [renderSlot(t.$slots, "prefix")])) : createCommentVNode("", !0),
2451
+ unref(Jo).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$15, [renderSlot(t.$slots, "prefix")])) : createCommentVNode("", !0),
2447
2452
  createElementVNode("input", {
2448
2453
  class: "px-input-inner",
2449
2454
  value: unref(K),
2450
2455
  ref_key: "inputRef",
2451
- ref: Fo,
2456
+ ref: Po,
2452
2457
  placeholder: i.placeholder,
2453
2458
  disabled: unref(H) || unref(U),
2454
2459
  autofocus: e.autofocus,
2455
- type: Jo.value,
2456
- onInput: withModifiers(Ro, ["stop"]),
2460
+ type: qo.value,
2461
+ onInput: withModifiers(Lo, ["stop"]),
2457
2462
  onChange: withModifiers(Y, ["stop"]),
2458
2463
  onCompositionstart: n[0] || (n[0] = (...e) => unref(x) && unref(x)(...e)),
2459
2464
  onCompositionend: n[1] || (n[1] = (...e) => unref(w) && unref(w)(...e))
2460
2465
  }, null, 40, _hoisted_2$8),
2461
- Go.value ? (openBlock(), createElementBlock("div", _hoisted_3$8, [$.value && unref(K) ? (openBlock(), createBlock(unref(times_circle_solid_default), {
2466
+ Wo.value ? (openBlock(), createElementBlock("div", _hoisted_3$8, [$.value && unref(K) ? (openBlock(), createBlock(unref(times_circle_solid_default), {
2462
2467
  key: 0,
2463
2468
  class: "px-input-icon",
2464
2469
  onClick: J
2465
2470
  })) : (openBlock(), createElementBlock("div", _hoisted_4$6))])) : createCommentVNode("", !0),
2466
- i.password ? (openBlock(), createElementBlock("div", _hoisted_5$5, [Ko.value ? (openBlock(), createBlock(unref(eye_cross_default), {
2471
+ i.password ? (openBlock(), createElementBlock("div", _hoisted_5$5, [Go.value ? (openBlock(), createBlock(unref(eye_cross_default), {
2467
2472
  key: 1,
2468
2473
  class: "px-input-icon",
2469
- onClick: qo
2474
+ onClick: Ko
2470
2475
  })) : (openBlock(), createBlock(unref(eye_default), {
2471
2476
  key: 0,
2472
2477
  class: "px-input-icon",
2473
- onClick: qo
2478
+ onClick: Ko
2474
2479
  }))])) : createCommentVNode("", !0),
2475
2480
  i.showCount ? (openBlock(), createElementBlock("div", _hoisted_6$3, [renderSlot(t.$slots, "count", {
2476
2481
  value: unref(K),
2477
- count: Lo.value,
2482
+ count: Io.value,
2478
2483
  maxLength: i.maxLength
2479
- }, () => [createElementVNode("span", null, toDisplayString(Lo.value) + toDisplayString(unref(E)(i.maxLength) ? "" : " / " + i.maxLength), 1)])])) : createCommentVNode("", !0),
2484
+ }, () => [createElementVNode("span", null, toDisplayString(Io.value) + toDisplayString(unref(E)(i.maxLength) ? "" : " / " + i.maxLength), 1)])])) : createCommentVNode("", !0),
2480
2485
  i.loading ? (openBlock(), createElementBlock("div", _hoisted_7$2, [createVNode(unref(spinner_third_solid_default), { class: "px-input-icon px-animation__loading" })])) : createCommentVNode("", !0),
2481
- unref(Yo).suffix ? (openBlock(), createElementBlock("div", _hoisted_8$2, [renderSlot(t.$slots, "suffix")])) : createCommentVNode("", !0),
2486
+ unref(Jo).suffix ? (openBlock(), createElementBlock("div", _hoisted_8$2, [renderSlot(t.$slots, "suffix")])) : createCommentVNode("", !0),
2482
2487
  createElementVNode("canvas", {
2483
2488
  class: "px-input-canvas",
2484
2489
  ref_key: "canvasRef",
2485
- ref: Po
2490
+ ref: No
2486
2491
  }, null, 512)
2487
2492
  ], 34));
2488
2493
  }
@@ -2612,7 +2617,7 @@ var minus_default = /* @__PURE__ */ defineComponent({
2612
2617
  ref(0),
2613
2618
  ref(!1),
2614
2619
  ref(!1)
2615
- ], j = inject(INPUT_GROUP_PROVIDE), M = inject(FORM_ITEM_PROVIDE), N = createProvideComputed("borderRadius", [x.value && j, i]), P = createProvideComputed("size", () => [
2620
+ ], j = inject(INPUT_GROUP_PROVIDE, void 0), M = inject(FORM_ITEM_PROVIDE, void 0), N = createProvideComputed("borderRadius", [x.value && j, i]), P = createProvideComputed("size", () => [
2616
2621
  x.value && j,
2617
2622
  i.size && i,
2618
2623
  M,
@@ -2625,7 +2630,7 @@ var minus_default = /* @__PURE__ */ defineComponent({
2625
2630
  x.value && j,
2626
2631
  M,
2627
2632
  i
2628
- ], "or"), V = createProvideComputed("status", [M, i]), ko = computed(() => {
2633
+ ], "or"), V = createProvideComputed("status", [M, i]), Oo = computed(() => {
2629
2634
  if (w.value >= 0) {
2630
2635
  var e;
2631
2636
  return x.value ? (j == null || (e = j.childrenInfo.value.find((e) => e.index === w.value + 1)) == null ? void 0 : e.variant) === "text" : !1;
@@ -2638,7 +2643,7 @@ var minus_default = /* @__PURE__ */ defineComponent({
2638
2643
  r < t && (r = Math.ceil(e / i.step) * i.step), r > n && (r = Math.floor(e / i.step) * i.step), e = r;
2639
2644
  }
2640
2645
  return e;
2641
- }, W = (e) => i.format ? i.format(e) : F(e) || E(e) ? "" : A(i.precision) ? e.toFixed(ke(Math.round(i.precision), 0, 100)) : e + "", G = (e) => i.allowInput ? i.allowInput(e) : e.length ? H.test(e) : !0, K = (e) => i.parse ? i.parse(e) : e.length ? parseFloat(e) : 0, [q, No] = useControlledMode("modelValue", i, u, {
2646
+ }, W = (e) => i.format ? i.format(e) : F(e) || E(e) ? "" : A(i.precision) ? e.toFixed(ke(Math.round(i.precision), 0, 100)) : e + "", G = (e) => i.allowInput ? i.allowInput(e) : e.length ? H.test(e) : !0, K = (e) => i.parse ? i.parse(e) : e.length ? parseFloat(e) : 0, [q, Mo] = useControlledMode("modelValue", i, u, {
2642
2647
  defaultField: "defaultValue",
2643
2648
  transform: (e) => {
2644
2649
  if (!E(e)) {
@@ -2647,74 +2652,74 @@ var minus_default = /* @__PURE__ */ defineComponent({
2647
2652
  }
2648
2653
  return e;
2649
2654
  }
2650
- }), Po = ref(W(q.value)), [Fo, Lo, Ro] = useComposition({ afterComposition: (e) => {
2655
+ }), No = ref(W(q.value)), [Po, Io, Lo] = useComposition({ afterComposition: (e) => {
2651
2656
  nextTick(() => {
2652
2657
  $(e);
2653
2658
  });
2654
- } }), J = shallowRef(null), Y = shallowRef(null), zo = shallowRef(null), Bo = shallowRef(null), Ho = shallowRef(null), X = (e) => {
2655
- Po.value = e;
2659
+ } }), J = shallowRef(null), Y = shallowRef(null), Ro = shallowRef(null), zo = shallowRef(null), Vo = shallowRef(null), X = (e) => {
2660
+ No.value = e;
2656
2661
  };
2657
2662
  watch(q, (e) => {
2658
- Go.value || X(W(e));
2663
+ Wo.value || X(W(e));
2659
2664
  });
2660
2665
  let $ = async (e) => {
2661
2666
  let t = e.target.value;
2662
- if (Fo.value) return;
2667
+ if (Po.value) return;
2663
2668
  if (!G(t)) {
2664
- zo.value && (zo.value.value = Po.value);
2669
+ Ro.value && (Ro.value.value = No.value);
2665
2670
  return;
2666
2671
  }
2667
- Po.value = t;
2672
+ No.value = t;
2668
2673
  let n = U(K(t));
2669
- u("input", n, e), await No(n);
2670
- }, Uo = async () => {
2674
+ u("input", n, e), await Mo(n);
2675
+ }, Ho = async () => {
2671
2676
  let e = U(0);
2672
- await No(e), X(W(q.value)), u("change", e), u("clear", e), M == null || M.changeHandler();
2673
- }, Wo = (e) => {
2677
+ await Mo(e), X(W(q.value)), u("change", e), u("clear", e), M == null || M.changeHandler();
2678
+ }, Uo = (e) => {
2674
2679
  let t = e.target, n = K(t.value);
2675
2680
  X(W(q.value)), u("change", n, e), M == null || M.changeHandler();
2676
- }, Go = ref(!1), Ko = (e) => {
2677
- X(W(q.value)), Go.value = !1, u("blur", e), M == null || M.blurHandler();
2678
- }, qo = (e) => {
2679
- Go.value = !0, u("focus", e);
2680
- }, Jo = computed(() => i.clearable && !L.value && !z.value), Yo = useSlots();
2681
+ }, Wo = ref(!1), Go = (e) => {
2682
+ X(W(q.value)), Wo.value = !1, u("blur", e), M == null || M.blurHandler();
2683
+ }, Ko = (e) => {
2684
+ Wo.value = !0, u("focus", e);
2685
+ }, qo = computed(() => i.clearable && !L.value && !z.value), Jo = useSlots();
2681
2686
  t({
2682
2687
  focus: () => {
2683
2688
  var e;
2684
- (e = zo.value) == null || e.focus();
2689
+ (e = Ro.value) == null || e.focus();
2685
2690
  },
2686
2691
  blur: () => {
2687
2692
  var e;
2688
- (e = zo.value) == null || e.blur();
2693
+ (e = Ro.value) == null || e.blur();
2689
2694
  },
2690
- clear: () => Uo(),
2695
+ clear: () => Ho(),
2691
2696
  select: () => {
2692
2697
  var e;
2693
- (e = zo.value) == null || e.select();
2698
+ (e = Ro.value) == null || e.select();
2694
2699
  }
2695
2700
  });
2696
- let Zo = computed(() => z.value || L.value || !E(q.value) && q.value >= i.max), Qo = computed(() => z.value || L.value || !E(q.value) && q.value <= i.min), $o = async () => {
2697
- if (Zo.value) return;
2701
+ let Xo = computed(() => z.value || L.value || !E(q.value) && q.value >= i.max), Zo = computed(() => z.value || L.value || !E(q.value) && q.value <= i.min), Qo = async () => {
2702
+ if (Xo.value) return;
2698
2703
  let e = q.value;
2699
2704
  E(e) && (e = U(0));
2700
2705
  let t = U(e + i.step);
2701
- await No(t), u("change", t), X(W(q.value)), M == null || M.changeHandler();
2702
- }, es = async () => {
2703
- if (Qo.value) return;
2706
+ await Mo(t), u("change", t), X(W(q.value)), M == null || M.changeHandler();
2707
+ }, $o = async () => {
2708
+ if (Zo.value) return;
2704
2709
  let e = q.value;
2705
2710
  E(e) && (e = U(0));
2706
2711
  let t = U(e - i.step);
2707
- await No(t), u("change", t), X(W(q.value)), M == null || M.changeHandler();
2708
- }, rs = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "both-reverse" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), as = computed(() => i.buttonPlacement === "both-reverse" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), os = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), ss = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "both-reverse" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), cs = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), ls = computed(() => i.buttonPlacement === "both-reverse" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), us = (e) => {
2712
+ await Mo(t), u("change", t), X(W(q.value)), M == null || M.changeHandler();
2713
+ }, ns = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "both-reverse" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), is = computed(() => i.buttonPlacement === "both-reverse" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), as = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "end" || i.buttonPlacement === "end-reverse"), os = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "both-reverse" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), ss = computed(() => i.buttonPlacement === "both" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), cs = computed(() => i.buttonPlacement === "both-reverse" || i.buttonPlacement === "start" || i.buttonPlacement === "start-reverse"), ls = (e) => {
2709
2714
  e.detail > 1 && e.preventDefault();
2710
- }, ds = (e) => {
2715
+ }, us = (e) => {
2711
2716
  var t, n;
2712
- let r = e.target, i = Bo.value.$el, a = Ho.value.$el;
2713
- (t = zo.value) != null && t.contains(r) || a != null && a.contains(r) || i != null && i.contains(r) || (n = zo.value) == null || n.focus();
2714
- }, ps = ref(!1), ms = () => {
2715
- ps.value = !0;
2716
- }, hs = () => {
2717
- ps.value = !1;
2717
+ let r = e.target, i = zo.value.$el, a = Vo.value.$el;
2718
+ (t = Ro.value) != null && t.contains(r) || a != null && a.contains(r) || i != null && i.contains(r) || (n = Ro.value) == null || n.focus();
2719
+ }, fs = ref(!1), ps = () => {
2720
+ fs.value = !0;
2721
+ }, ms = () => {
2722
+ fs.value = !1;
2718
2723
  };
2719
2724
  watch([
2720
2725
  V,
@@ -2723,31 +2728,31 @@ var minus_default = /* @__PURE__ */ defineComponent({
2723
2728
  P,
2724
2729
  z,
2725
2730
  L,
2726
- () => Yo,
2731
+ () => Jo,
2727
2732
  T,
2728
2733
  k,
2729
2734
  useDarkMode(),
2730
- ps,
2731
- Go,
2732
- ko
2735
+ fs,
2736
+ Wo,
2737
+ Oo
2733
2738
  ], () => {
2734
2739
  setTimeout(() => {
2735
- gs();
2740
+ hs();
2736
2741
  });
2737
2742
  });
2738
- let gs = () => {
2743
+ let hs = () => {
2739
2744
  let e = canvasPreprocess(J, Y);
2740
2745
  if (!e) return;
2741
- let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, N.value, I.value, P.value || "medium", x.value, T.value, k.value), s = V.value === "normal" ? (ps.value || Go.value) && !L.value && !z.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(V.value === "error" ? "danger" : V.value, 6), c = calcBorderCornerCenter(o, n, r, a);
2742
- s && drawBorder$11(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, x.value, T.value, k.value, ko.value);
2746
+ let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, N.value, I.value, P.value || "medium", x.value, T.value, k.value), s = V.value === "normal" ? (fs.value || Wo.value) && !L.value && !z.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(V.value === "error" ? "danger" : V.value, 6), c = calcBorderCornerCenter(o, n, r, a);
2747
+ s && drawBorder$11(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, x.value, T.value, k.value, Oo.value);
2743
2748
  let l = L.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
2744
2749
  l && floodFill(t, Math.round(n / 2), Math.round(r / 2), l);
2745
2750
  };
2746
2751
  return onMounted(() => {
2747
2752
  nextTick(() => {
2748
- gs();
2753
+ hs();
2749
2754
  });
2750
- }), useResizeObserver(J, gs), useWatchGlobalCssVal(gs), useTransitionEnd(J, gs), (t, n) => (openBlock(), createElementBlock("div", {
2755
+ }), useResizeObserver(J, hs), useWatchGlobalCssVal(hs), useTransitionEnd(J, hs), (t, n) => (openBlock(), createElementBlock("div", {
2751
2756
  class: normalizeClass(["pixelium px-input-number", {
2752
2757
  [`px-input-number__${unref(P)}`]: !!unref(P),
2753
2758
  [`px-input-number__${unref(I)}`]: !!unref(I),
@@ -2756,73 +2761,73 @@ var minus_default = /* @__PURE__ */ defineComponent({
2756
2761
  }]),
2757
2762
  ref_key: "wrapperRef",
2758
2763
  ref: J,
2759
- onClick: ds,
2760
- onMouseenter: ms,
2761
- onMouseleave: hs,
2762
- onFocusout: Ko,
2763
- onFocusin: qo
2764
+ onClick: us,
2765
+ onMouseenter: ps,
2766
+ onMouseleave: ms,
2767
+ onFocusout: Go,
2768
+ onFocusin: Ko
2764
2769
  }, [
2765
- unref(Yo).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$14, [renderSlot(t.$slots, "prefix")])) : createCommentVNode("", !0),
2766
- ss.value ? (openBlock(), createElementBlock("div", {
2770
+ unref(Jo).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$14, [renderSlot(t.$slots, "prefix")])) : createCommentVNode("", !0),
2771
+ os.value ? (openBlock(), createElementBlock("div", {
2767
2772
  key: 1,
2768
2773
  class: normalizeClass(["px-input-number-setting-prefix-wrapper", i.buttonPlacement === "start-reverse" && "px-input-number-setting-prefix-wrapper__reverse"])
2769
- }, [cs.value ? (openBlock(), createBlock(unref(plus_default), {
2774
+ }, [ss.value ? (openBlock(), createBlock(unref(plus_default), {
2770
2775
  key: 0,
2776
+ class: normalizeClass(["px-input-number-icon", Xo.value && "px-input-number-icon__disabled"]),
2777
+ onClick: Qo,
2778
+ onMousedown: ls,
2779
+ tabindex: unref(L) || unref(z) || Xo.value ? -1 : 0,
2780
+ ref_key: "plusRef",
2781
+ ref: zo
2782
+ }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0), cs.value ? (openBlock(), createBlock(unref(minus_default), {
2783
+ key: 1,
2771
2784
  class: normalizeClass(["px-input-number-icon", Zo.value && "px-input-number-icon__disabled"]),
2772
2785
  onClick: $o,
2773
- onMousedown: us,
2786
+ onMousedown: ls,
2774
2787
  tabindex: unref(L) || unref(z) || Zo.value ? -1 : 0,
2775
- ref_key: "plusRef",
2776
- ref: Bo
2777
- }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0), ls.value ? (openBlock(), createBlock(unref(minus_default), {
2778
- key: 1,
2779
- class: normalizeClass(["px-input-number-icon", Qo.value && "px-input-number-icon__disabled"]),
2780
- onClick: es,
2781
- onMousedown: us,
2782
- tabindex: unref(L) || unref(z) || Qo.value ? -1 : 0,
2783
2788
  ref_key: "minusRef",
2784
- ref: Ho
2789
+ ref: Vo
2785
2790
  }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0)], 2)) : createCommentVNode("", !0),
2786
2791
  createElementVNode("input", {
2787
2792
  class: "px-input-number-inner",
2788
- value: Po.value,
2793
+ value: No.value,
2789
2794
  ref_key: "inputRef",
2790
- ref: zo,
2795
+ ref: Ro,
2791
2796
  placeholder: i.placeholder,
2792
2797
  disabled: unref(L) || unref(z),
2793
2798
  autofocus: e.autofocus,
2794
2799
  onInput: withModifiers($, ["stop"]),
2795
- onChange: withModifiers(Wo, ["stop"]),
2796
- onCompositionstart: n[0] || (n[0] = (...e) => unref(Lo) && unref(Lo)(...e)),
2797
- onCompositionend: n[1] || (n[1] = (...e) => unref(Ro) && unref(Ro)(...e))
2800
+ onChange: withModifiers(Uo, ["stop"]),
2801
+ onCompositionstart: n[0] || (n[0] = (...e) => unref(Io) && unref(Io)(...e)),
2802
+ onCompositionend: n[1] || (n[1] = (...e) => unref(Lo) && unref(Lo)(...e))
2798
2803
  }, null, 40, _hoisted_2$7),
2799
- Jo.value ? (openBlock(), createElementBlock("div", _hoisted_3$7, [ps.value && Po.value ? (openBlock(), createBlock(unref(times_circle_solid_default), {
2804
+ qo.value ? (openBlock(), createElementBlock("div", _hoisted_3$7, [fs.value && No.value ? (openBlock(), createBlock(unref(times_circle_solid_default), {
2800
2805
  key: 0,
2801
2806
  class: "px-input-number-icon",
2802
- onClick: Uo
2807
+ onClick: Ho
2803
2808
  })) : (openBlock(), createElementBlock("div", _hoisted_4$5))])) : createCommentVNode("", !0),
2804
- rs.value ? (openBlock(), createElementBlock("div", {
2809
+ ns.value ? (openBlock(), createElementBlock("div", {
2805
2810
  key: 3,
2806
2811
  class: normalizeClass(["px-input-number-setting-suffix-wrapper", i.buttonPlacement === "end-reverse" && "px-input-number-setting-suffix-wrapper__reverse"])
2807
- }, [as.value ? (openBlock(), createBlock(unref(plus_default), {
2812
+ }, [is.value ? (openBlock(), createBlock(unref(plus_default), {
2808
2813
  key: 0,
2814
+ class: normalizeClass(["px-input-number-icon", Xo.value && "px-input-number-icon__disabled"]),
2815
+ onClick: Qo,
2816
+ onMousedown: ls,
2817
+ tabindex: unref(L) || unref(z) || Xo.value ? -1 : 0,
2818
+ ref_key: "plusRef",
2819
+ ref: zo
2820
+ }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0), as.value ? (openBlock(), createBlock(unref(minus_default), {
2821
+ key: 1,
2809
2822
  class: normalizeClass(["px-input-number-icon", Zo.value && "px-input-number-icon__disabled"]),
2810
2823
  onClick: $o,
2811
- onMousedown: us,
2824
+ onMousedown: ls,
2812
2825
  tabindex: unref(L) || unref(z) || Zo.value ? -1 : 0,
2813
- ref_key: "plusRef",
2814
- ref: Bo
2815
- }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0), os.value ? (openBlock(), createBlock(unref(minus_default), {
2816
- key: 1,
2817
- class: normalizeClass(["px-input-number-icon", Qo.value && "px-input-number-icon__disabled"]),
2818
- onClick: es,
2819
- onMousedown: us,
2820
- tabindex: unref(L) || unref(z) || Qo.value ? -1 : 0,
2821
2826
  ref_key: "minusRef",
2822
- ref: Ho
2827
+ ref: Vo
2823
2828
  }, null, 8, ["tabindex", "class"])) : createCommentVNode("", !0)], 2)) : createCommentVNode("", !0),
2824
2829
  i.loading ? (openBlock(), createElementBlock("div", _hoisted_5$4, [createVNode(unref(spinner_third_solid_default), { class: "px-input-number-icon px-animation__loading" })])) : createCommentVNode("", !0),
2825
- unref(Yo).suffix ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(t.$slots, "suffix")])) : createCommentVNode("", !0),
2830
+ unref(Jo).suffix ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(t.$slots, "suffix")])) : createCommentVNode("", !0),
2826
2831
  createElementVNode("canvas", {
2827
2832
  class: "px-input-number-canvas",
2828
2833
  ref_key: "canvasRef",
@@ -2968,7 +2973,7 @@ var _hoisted_1$13 = [
2968
2973
  "focus"
2969
2974
  ],
2970
2975
  setup(e, { expose: t, emit: n }) {
2971
- let r = e, i = inject(FORM_ITEM_PROVIDE), o = n, [u, g, b] = useComposition({ afterComposition: (e) => {
2976
+ let r = e, i = inject(FORM_ITEM_PROVIDE, void 0), o = n, [u, g, b] = useComposition({ afterComposition: (e) => {
2972
2977
  nextTick(() => {
2973
2978
  G(e);
2974
2979
  });
@@ -2984,25 +2989,25 @@ var _hoisted_1$13 = [
2984
2989
  x.value = t, !u.value && (r.maxLength && (r.countGraphemes && r.sliceGraphemes ? (await nextTick(), t = r.sliceGraphemes(t, r.maxLength)) : t = t.slice(0, r.maxLength)), x.value = t, o("input", t, e), w(t), i == null || i.inputHandler());
2985
2990
  }, K = async () => {
2986
2991
  await w(""), o("change", ""), o("clear", ""), i == null || i.changeHandler();
2987
- }, jo = (e) => {
2992
+ }, Ao = (e) => {
2988
2993
  let t = e.target;
2989
2994
  U(), o("change", t.value, e), i == null || i.changeHandler();
2990
- }, q = ref(!1), No = () => {
2995
+ }, q = ref(!1), Mo = () => {
2991
2996
  r.autoResize && L.value && z.value && (L.value.style.height = z.value + "px");
2992
2997
  };
2993
2998
  watch(z, () => {
2994
- No();
2999
+ Mo();
2995
3000
  });
2996
- let Po = (e) => {
2997
- No(), q.value = !1, o("blur", e), i == null || i.blurHandler();
2998
- }, Fo = (e) => {
2999
- No(), q.value = !0, o("focus", e);
3000
- }, Lo = computed(() => r.clearable && q.value && !T.value && !k.value && !!x.value), Ro = () => {
3001
+ let No = (e) => {
3002
+ Mo(), q.value = !1, o("blur", e), i == null || i.blurHandler();
3003
+ }, Po = (e) => {
3004
+ Mo(), q.value = !0, o("focus", e);
3005
+ }, Io = computed(() => r.clearable && q.value && !T.value && !k.value && !!x.value), Lo = () => {
3001
3006
  var e;
3002
3007
  (e = L.value) == null || e.focus();
3003
3008
  }, J = ref(!1), Y = () => {
3004
3009
  J.value = !0;
3005
- }, zo = () => {
3010
+ }, Ro = () => {
3006
3011
  J.value = !1;
3007
3012
  };
3008
3013
  t({
@@ -3029,22 +3034,22 @@ var _hoisted_1$13 = [
3029
3034
  N
3030
3035
  ], () => {
3031
3036
  setTimeout(() => {
3032
- Ho();
3037
+ Vo();
3033
3038
  });
3034
3039
  });
3035
- let Bo = () => {
3040
+ let zo = () => {
3036
3041
  let e = canvasPreprocess(P, I);
3037
3042
  if (!e) return;
3038
3043
  let { ctx: t, width: n, height: r } = e, i = calcPixelSize(), a = N.value === "normal" ? (J.value || q.value) && !T.value && !k.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(N.value === "error" ? "danger" : N.value, 6), o = T.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
3039
3044
  a && o && draw(t, n, r, a, o, i);
3040
- }, Ho = Ue(Bo, 0, { maxWait: 50 });
3045
+ }, Vo = Ue(zo, 0, { maxWait: 50 });
3041
3046
  return onMounted(() => {
3042
3047
  nextTick(() => {
3043
- Bo();
3048
+ zo();
3044
3049
  }), setTimeout(() => {
3045
- No();
3050
+ Mo();
3046
3051
  });
3047
- }), useResizeObserver(P, Ho), useWatchGlobalCssVal(Ho), useTransitionEnd(P, Bo), (t, n) => (openBlock(), createElementBlock("div", {
3052
+ }), useResizeObserver(P, Vo), useWatchGlobalCssVal(Vo), useTransitionEnd(P, zo), (t, n) => (openBlock(), createElementBlock("div", {
3048
3053
  class: normalizeClass(["pixelium px-textarea", {
3049
3054
  [`px-textarea__${unref(M)}`]: !!unref(M),
3050
3055
  "px-textarea__disabled": !!unref(T),
@@ -3052,11 +3057,11 @@ var _hoisted_1$13 = [
3052
3057
  }]),
3053
3058
  ref_key: "wrapperRef",
3054
3059
  ref: P,
3055
- onClick: Ro,
3060
+ onClick: Lo,
3056
3061
  onMouseenter: Y,
3057
- onMouseleave: zo,
3058
- onFocusout: Po,
3059
- onFocusin: Fo
3062
+ onMouseleave: Ro,
3063
+ onFocusout: No,
3064
+ onFocusin: Po
3060
3065
  }, [
3061
3066
  createElementVNode("textarea", {
3062
3067
  class: "px-textarea-inner",
@@ -3072,12 +3077,12 @@ var _hoisted_1$13 = [
3072
3077
  maxHeight: unref(H) ? unref(H) + "px" : void 0
3073
3078
  }),
3074
3079
  onInput: withModifiers(G, ["stop"]),
3075
- onChange: withModifiers(jo, ["stop"]),
3080
+ onChange: withModifiers(Ao, ["stop"]),
3076
3081
  onCompositionstart: n[0] || (n[0] = (...e) => unref(g) && unref(g)(...e)),
3077
3082
  onCompositionend: n[1] || (n[1] = (...e) => unref(b) && unref(b)(...e))
3078
3083
  }, null, 44, _hoisted_1$13),
3079
3084
  createElementVNode("div", _hoisted_2$6, [
3080
- Lo.value ? (openBlock(), createElementBlock("div", _hoisted_3$6, [createVNode(unref(times_circle_solid_default), {
3085
+ Io.value ? (openBlock(), createElementBlock("div", _hoisted_3$6, [createVNode(unref(times_circle_solid_default), {
3081
3086
  class: "px-textarea-icon",
3082
3087
  onClick: K
3083
3088
  })])) : createCommentVNode("", !0),
@@ -3270,7 +3275,7 @@ var times_default = /* @__PURE__ */ defineComponent({
3270
3275
  }
3271
3276
  },
3272
3277
  setup(e) {
3273
- let t = e, n = inject(FORM_PROVIDE), r = inject(FORM_ITEM_PROVIDE), i = createProvideComputed("disabled", [
3278
+ let t = e, n = inject(FORM_PROVIDE, void 0), r = inject(FORM_ITEM_PROVIDE, void 0), i = createProvideComputed("disabled", [
3274
3279
  r,
3275
3280
  n,
3276
3281
  t
@@ -3331,7 +3336,7 @@ var input_group_label_default = /* @__PURE__ */ defineComponent({
3331
3336
  ref(0),
3332
3337
  ref(!1),
3333
3338
  ref(!1)
3334
- ], p = inject(INPUT_GROUP_PROVIDE), g = inject(FORM_ITEM_PROVIDE), x = createProvideComputed("borderRadius", [i.value && p, n]), w = createProvideComputed("size", () => [
3339
+ ], p = inject(INPUT_GROUP_PROVIDE, void 0), g = inject(FORM_ITEM_PROVIDE, void 0), x = createProvideComputed("borderRadius", [i.value && p, n]), w = createProvideComputed("size", () => [
3335
3340
  i.value && p,
3336
3341
  n.size && n,
3337
3342
  g,
@@ -3539,7 +3544,7 @@ var popup_wrapper_default = /* @__PURE__ */ defineComponent({
3539
3544
  let r = getComputedStyle(e), i = r.boxSizing, a = t.boxSizing, o = parseFloat(r.paddingLeft) + parseFloat(r.paddingRight), s = parseFloat(t.paddingLeft) + parseFloat(t.paddingRight), c = parseFloat(r.borderLeftWidth) + parseFloat(r.borderRightWidth), l = parseFloat(r.width);
3540
3545
  i === "border-box" ? a === "border-box" ? P.value = l : P.value = l - s - n : a === "border-box" ? P.value = l + o + c : P.value = l - s - n + o + c, await nextTick();
3541
3546
  } else P.value = void 0;
3542
- let o = calcPixelSize(), l = Math.max(i.borderRadius || o, o), u = Math.max(0, l - calcWhenLeaveBaseline(o, l) + o) + o, { x: p, y: T, middlewareData: j, placement: To } = await computePosition(e, c.value, {
3547
+ let o = calcPixelSize(), l = Math.max(i.borderRadius || o, o), u = Math.max(0, l - calcWhenLeaveBaseline(o, l) + o) + o, { x: p, y: T, middlewareData: j, placement: wo } = await computePosition(e, c.value, {
3543
3548
  placement: i.placement,
3544
3549
  middleware: [
3545
3550
  offset(i.offset),
@@ -3556,7 +3561,7 @@ var popup_wrapper_default = /* @__PURE__ */ defineComponent({
3556
3561
  top: `${T}px`
3557
3562
  };
3558
3563
  let { x: N, y: I } = j.arrow ?? {};
3559
- k.value = To.split("-")[0], C.value = {
3564
+ k.value = wo.split("-")[0], C.value = {
3560
3565
  left: N ? `${N + r}px` : void 0,
3561
3566
  top: I ? `${I + a}px` : void 0
3562
3567
  }, w.value = N ? N + r : void 0, D.value = I ? I + a : void 0, nextTick(() => {
@@ -3591,7 +3596,7 @@ var popup_wrapper_default = /* @__PURE__ */ defineComponent({
3591
3596
  let K = useDarkMode();
3592
3597
  onMounted(() => {
3593
3598
  nextTick(() => {
3594
- jo(), V(!!i.visible);
3599
+ Ao(), V(!!i.visible);
3595
3600
  });
3596
3601
  }), watch([
3597
3602
  K,
@@ -3603,18 +3608,18 @@ var popup_wrapper_default = /* @__PURE__ */ defineComponent({
3603
3608
  () => i.variant,
3604
3609
  () => i.arrow
3605
3610
  ], () => {
3606
- jo();
3611
+ Ao();
3607
3612
  });
3608
- let jo = () => {
3613
+ let Ao = () => {
3609
3614
  if (!k.value) return;
3610
3615
  let e = canvasPreprocess(c, b);
3611
3616
  if (!e) return;
3612
3617
  let { ctx: t, width: n, height: r } = e, a = calcPixelSize(), o = fillArr(Math.max(i.borderRadius || a, a), 4), s = i.arrow ? a * 2 : 0, l = k.value === "left" || k.value === "right" ? s : 0, u = k.value === "top" || k.value === "bottom" ? s : 0, p = getBorderColor(i.variant), g = calcBorderCornerCenter(o, n, r, a, l, u), x = BORDER_CORNER_RAD_RANGE, C = k.value === "bottom" ? s : 0, T = k.value === "right" ? s : 0;
3613
3618
  p && drawBorder$8(t, n, r, g, o, x, p, a, l, u, C, T);
3614
- let wo = getBackgroundColor(i.variant);
3615
- wo && floodFill(t, Math.round((n - l) / 2 + T), Math.round((r - u) / 2 + C), wo), i.arrow && p && wo && drawArrow(t, n, r, p, wo, a, k.value, N.value, w.value || 0, D.value || 0);
3619
+ let Co = getBackgroundColor(i.variant);
3620
+ Co && floodFill(t, Math.round((n - l) / 2 + T), Math.round((r - u) / 2 + C), Co), i.arrow && p && Co && drawArrow(t, n, r, p, Co, a, k.value, N.value, w.value || 0, D.value || 0);
3616
3621
  };
3617
- return useResizeObserver(c, z), useWatchGlobalCssVal(z), useTransitionEnd(c, jo), (e, t) => (openBlock(), createBlock(popup_wrapper_default, {
3622
+ return useResizeObserver(c, z), useWatchGlobalCssVal(z), useTransitionEnd(c, Ao), (e, t) => (openBlock(), createBlock(popup_wrapper_default, {
3618
3623
  root: i.root,
3619
3624
  zIndex: i.zIndex,
3620
3625
  visible: i.visible,
@@ -3917,7 +3922,7 @@ var popup_default = /* @__PURE__ */ defineComponent({
3917
3922
  C(), b.value = w(e), await D(b.value), g("open", t);
3918
3923
  }
3919
3924
  async function D(e, t = !1) {
3920
- e && (Eo == null || Eo.observe(e)), o.value && !t ? (g("update:visible", !0), await nextTick(() => {}), c.value = !!i.visible) : c.value = !0;
3925
+ e && (To == null || To.observe(e)), o.value && !t ? (g("update:visible", !0), await nextTick(() => {}), c.value = !!i.visible) : c.value = !0;
3921
3926
  }
3922
3927
  async function k(e) {
3923
3928
  if (e.type === "mouseup" || e.type === "touchend") {
@@ -3934,14 +3939,14 @@ var popup_default = /* @__PURE__ */ defineComponent({
3934
3939
  }, M = ref(!1), N = (e) => {
3935
3940
  i.trigger !== "click" && (M.value || k(e));
3936
3941
  }, P = () => {
3937
- inBrowser() && !b.value && u.value && u.value.firstVNode && (Eo == null || Eo.disconnect(), b.value = w(u.value.firstVNode), b.value instanceof HTMLElement && (Eo == null || Eo.observe(b.value)));
3942
+ inBrowser() && !b.value && u.value && u.value.firstVNode && (To == null || To.disconnect(), b.value = w(u.value.firstVNode), b.value instanceof HTMLElement && (To == null || To.observe(b.value)));
3938
3943
  }, I = (e) => {
3939
3944
  e ? (P(), b.value && D(b.value, !0)) : c.value = !1;
3940
3945
  };
3941
3946
  watch(() => i.visible, () => {
3942
3947
  I(!!i.visible);
3943
3948
  });
3944
- let Eo = inBrowser() ? new ResizeObserver(() => {
3949
+ let To = inBrowser() ? new ResizeObserver(() => {
3945
3950
  L();
3946
3951
  }) : null;
3947
3952
  onMounted(() => {
@@ -3959,9 +3964,9 @@ var popup_default = /* @__PURE__ */ defineComponent({
3959
3964
  triggerContent: l,
3960
3965
  updateRenderState: L
3961
3966
  });
3962
- let z = useSlots(), V = (e) => inBrowser() ? b.value instanceof HTMLElement : !1, Do = qe(() => {
3967
+ let z = useSlots(), V = (e) => inBrowser() ? b.value instanceof HTMLElement : !1, Eo = qe(() => {
3963
3968
  L();
3964
- }, 20), ko = () => {
3969
+ }, 20), Oo = () => {
3965
3970
  M.value = !0;
3966
3971
  }, H = () => {
3967
3972
  M.value = !1;
@@ -3973,8 +3978,8 @@ var popup_default = /* @__PURE__ */ defineComponent({
3973
3978
  disabled: i.disabled,
3974
3979
  onClose: k,
3975
3980
  onOpen: T,
3976
- onDrag: Do,
3977
- onDragStart: ko,
3981
+ onDrag: Eo,
3982
+ onDragStart: Oo,
3978
3983
  onDragEnd: H,
3979
3984
  ref: (e) => u.value = e
3980
3985
  }, { default: () => {
@@ -4147,13 +4152,13 @@ var popup_default = /* @__PURE__ */ defineComponent({
4147
4152
  var i;
4148
4153
  let g = t, x = r, [w, j, M] = useComposition({ afterComposition: (e) => {
4149
4154
  nextTick(() => {
4150
- Wo(e);
4155
+ Uo(e);
4151
4156
  });
4152
4157
  } }), N = getCurrentInstance(), P = ref((N == null || (i = N.parent) == null ? void 0 : i.type.name) === "InputGroup"), [I, L, z] = P.value ? useIndexOfChildren(INPUT_GROUP_UPDATE) : [
4153
4158
  ref(0),
4154
4159
  ref(!1),
4155
4160
  ref(!1)
4156
- ], H = inject(INPUT_GROUP_PROVIDE), U = inject(FORM_ITEM_PROVIDE), W = createProvideComputed("borderRadius", [P.value && H, g]), G = createProvideComputed("size", () => [
4161
+ ], H = inject(INPUT_GROUP_PROVIDE, void 0), U = inject(FORM_ITEM_PROVIDE, void 0), W = createProvideComputed("borderRadius", [P.value && H, g]), G = createProvideComputed("size", () => [
4157
4162
  P.value && H,
4158
4163
  g.size && g,
4159
4164
  U,
@@ -4162,62 +4167,62 @@ var popup_default = /* @__PURE__ */ defineComponent({
4162
4167
  P.value && H,
4163
4168
  U,
4164
4169
  g
4165
- ], "or"), Po = createProvideComputed("readonly", [
4170
+ ], "or"), No = createProvideComputed("readonly", [
4166
4171
  P.value && H,
4167
4172
  U,
4168
4173
  g
4169
- ], "or"), Lo = createProvideComputed("status", [U, g]), Ro = computed(() => {
4174
+ ], "or"), Io = createProvideComputed("status", [U, g]), Lo = computed(() => {
4170
4175
  if (I.value >= 0) {
4171
4176
  var e;
4172
4177
  return P.value ? (H == null || (e = H.childrenInfo.value.find((e) => e.index === I.value + 1)) == null ? void 0 : e.variant) === "text" : !1;
4173
4178
  } else return !1;
4174
- }), J = computed(() => G.value === "small" ? "small" : "medium"), [Y, zo] = useControlledMode("modelValue", g, x, {
4179
+ }), J = computed(() => G.value === "small" ? "small" : "medium"), [Y, Ro] = useControlledMode("modelValue", g, x, {
4175
4180
  defaultField: "defaultValue",
4176
4181
  transform: (e) => S(e) ? [...e] : []
4177
- }), [Bo, Ho] = useControlledMode("inputValue", g, x, {
4182
+ }), [zo, Vo] = useControlledMode("inputValue", g, x, {
4178
4183
  defaultField: "defaultInputValue",
4179
4184
  transform: (e) => e || ""
4180
- }), X = shallowRef(null), $ = shallowRef(null), Uo = shallowRef(null), Wo = async (e) => {
4185
+ }), X = shallowRef(null), $ = shallowRef(null), Ho = shallowRef(null), Uo = async (e) => {
4181
4186
  let t = e.target.value;
4182
- Bo.value = t, !w.value && (x("input", t, e), Ho(t));
4183
- }, Go = async () => {
4187
+ zo.value = t, !w.value && (x("input", t, e), Vo(t));
4188
+ }, Wo = async () => {
4184
4189
  let e = [];
4185
- await zo(e), await Ho(""), x("clear", e), x("change", e), x("inputChange", ""), U == null || U.changeHandler();
4186
- }, Ko = async (e, t) => {
4190
+ await Ro(e), await Vo(""), x("clear", e), x("change", e), x("inputChange", ""), U == null || U.changeHandler();
4191
+ }, Go = async (e, t) => {
4187
4192
  let n = Y.value ? [...Y.value] : [], r = n.splice(e, 1);
4188
- await zo(n), x("tagClose", r[0], e, t), x("change", n), U == null || U.changeHandler();
4189
- }, qo = (e) => {
4193
+ await Ro(n), x("tagClose", r[0], e, t), x("change", n), U == null || U.changeHandler();
4194
+ }, Ko = (e) => {
4190
4195
  let t = e.target;
4191
4196
  x("inputChange", t.value, e);
4192
- }, Jo = ref(!1), Yo = async (e) => {
4193
- Jo.value = !1, await Ho(""), x("inputChange", ""), x("blur", e), U == null || U.blurHandler();
4194
- }, Zo = (e) => {
4195
- Jo.value = !0, x("focus", e);
4196
- }, Qo = async (e) => {
4197
- let t = (Bo.value || "").trim();
4197
+ }, qo = ref(!1), Jo = async (e) => {
4198
+ qo.value = !1, await Vo(""), x("inputChange", ""), x("blur", e), U == null || U.blurHandler();
4199
+ }, Xo = (e) => {
4200
+ qo.value = !0, x("focus", e);
4201
+ }, Zo = async (e) => {
4202
+ let t = (zo.value || "").trim();
4198
4203
  if (!t || g.maxLength && Y.value && Y.value.length >= g.maxLength) return;
4199
4204
  let n = Y.value ? [...Y.value] : [];
4200
- n.push(t), await zo(n), await Ho(""), x("tagAdd", t, e), x("change", n), x("inputChange", ""), U == null || U.changeHandler();
4201
- }, es = () => {
4205
+ n.push(t), await Ro(n), await Vo(""), x("tagAdd", t, e), x("change", n), x("inputChange", ""), U == null || U.changeHandler();
4206
+ }, $o = () => {
4202
4207
  var e;
4203
- (e = Uo.value) == null || e.focus();
4204
- }, ts = ref(!1), ns = () => {
4205
- ts.value = !0;
4206
- }, rs = () => {
4207
- ts.value = !1;
4208
- }, is = computed(() => g.clearable && !q.value && !Po.value), as = computed(() => !q.value && !Po.value), os = useSlots();
4208
+ (e = Ho.value) == null || e.focus();
4209
+ }, es = ref(!1), ts = () => {
4210
+ es.value = !0;
4211
+ }, ns = () => {
4212
+ es.value = !1;
4213
+ }, rs = computed(() => g.clearable && !q.value && !No.value), is = computed(() => !q.value && !No.value), as = useSlots();
4209
4214
  n({
4210
4215
  focus: () => {
4211
4216
  var e;
4212
- (e = Uo.value) == null || e.focus();
4217
+ (e = Ho.value) == null || e.focus();
4213
4218
  },
4214
4219
  blur: () => {
4215
4220
  var e;
4216
- (e = Uo.value) == null || e.blur();
4221
+ (e = Ho.value) == null || e.blur();
4217
4222
  },
4218
- clear: () => Go()
4223
+ clear: () => Wo()
4219
4224
  });
4220
- let ss = computed(() => !!g.collapseTags && A(g.maxDisplayTags) && g.maxDisplayTags >= 0), cs = computed(() => Y.value ? ss.value ? Y.value.slice(0, g.maxDisplayTags) : Y.value : []), ls = computed(() => Y.value && ss.value ? Y.value.slice(g.maxDisplayTags) : []), us = computed(() => {
4225
+ let os = computed(() => !!g.collapseTags && A(g.maxDisplayTags) && g.maxDisplayTags >= 0), ss = computed(() => Y.value ? os.value ? Y.value.slice(0, g.maxDisplayTags) : Y.value : []), cs = computed(() => Y.value && os.value ? Y.value.slice(g.maxDisplayTags) : []), ls = computed(() => {
4221
4226
  var e;
4222
4227
  return {
4223
4228
  ...g.popoverProps,
@@ -4233,32 +4238,32 @@ var popup_default = /* @__PURE__ */ defineComponent({
4233
4238
  W,
4234
4239
  K,
4235
4240
  G,
4236
- Po,
4241
+ No,
4237
4242
  q,
4238
- () => os,
4243
+ () => as,
4239
4244
  useDarkMode(),
4240
- Jo,
4241
- ts,
4242
- Lo,
4243
- Ro
4245
+ qo,
4246
+ es,
4247
+ Io,
4248
+ Lo
4244
4249
  ], () => {
4245
4250
  setTimeout(() => {
4246
- ds();
4251
+ us();
4247
4252
  });
4248
4253
  });
4249
- let ds = () => {
4254
+ let us = () => {
4250
4255
  let e = canvasPreprocess(X, $);
4251
4256
  if (!e) return;
4252
- let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, W.value, K.value, G.value || "medium", P.value, L.value, z.value), s = Lo.value === "normal" ? (ts.value || Jo.value) && !q.value && !Po.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(Lo.value === "error" ? "danger" : Lo.value, 6), c = calcBorderCornerCenter(o, n, r, a);
4253
- s && drawBorder$7(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, P.value, L.value, z.value, Ro.value);
4257
+ let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, W.value, K.value, G.value || "medium", P.value, L.value, z.value), s = Io.value === "normal" ? (es.value || qo.value) && !q.value && !No.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(Io.value === "error" ? "danger" : Io.value, 6), c = calcBorderCornerCenter(o, n, r, a);
4258
+ s && drawBorder$7(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, P.value, L.value, z.value, Lo.value);
4254
4259
  let l = q.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
4255
4260
  l && floodFill(t, Math.round(n / 2), Math.round(r / 2), l);
4256
4261
  };
4257
4262
  return onMounted(() => {
4258
4263
  nextTick(() => {
4259
- ds();
4264
+ us();
4260
4265
  });
4261
- }), useResizeObserver(X, ds), useWatchGlobalCssVal(ds), useTransitionEnd(X, ds), (n, r) => {
4266
+ }), useResizeObserver(X, us), useWatchGlobalCssVal(us), useTransitionEnd(X, us), (n, r) => {
4262
4267
  var i;
4263
4268
  return openBlock(), createElementBlock("div", {
4264
4269
  class: normalizeClass(["pixelium px-input-tag", {
@@ -4269,23 +4274,23 @@ var popup_default = /* @__PURE__ */ defineComponent({
4269
4274
  }]),
4270
4275
  ref_key: "wrapperRef",
4271
4276
  ref: X,
4272
- onClick: es,
4273
- onMouseenter: ns,
4274
- onMouseleave: rs,
4275
- onFocusout: Yo,
4276
- onFocusin: Zo
4277
+ onClick: $o,
4278
+ onMouseenter: ts,
4279
+ onMouseleave: ns,
4280
+ onFocusout: Jo,
4281
+ onFocusin: Xo
4277
4282
  }, [
4278
- unref(os).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$10, [renderSlot(n.$slots, "prefix")])) : createCommentVNode("", !0),
4283
+ unref(as).prefix ? (openBlock(), createElementBlock("div", _hoisted_1$10, [renderSlot(n.$slots, "prefix")])) : createCommentVNode("", !0),
4279
4284
  createElementVNode("div", _hoisted_2$5, [
4280
- (openBlock(!0), createElementBlock(Fragment, null, renderList(cs.value, (e, t) => (openBlock(), createBlock(tag_default, mergeProps({
4285
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(ss.value, (e, t) => (openBlock(), createBlock(tag_default, mergeProps({
4281
4286
  key: t,
4282
4287
  size: J.value,
4283
4288
  variant: g.tagVariant,
4284
4289
  theme: g.tagTheme,
4285
- closable: as.value,
4290
+ closable: is.value,
4286
4291
  disabled: unref(q),
4287
4292
  color: g.tagColor
4288
- }, { ref_for: !0 }, g.tagProps, { onClose: (e) => Ko(t, e) }), {
4293
+ }, { ref_for: !0 }, g.tagProps, { onClose: (e) => Go(t, e) }), {
4289
4294
  default: withCtx(() => [renderSlot(n.$slots, "tag", {
4290
4295
  tag: e,
4291
4296
  index: t
@@ -4300,16 +4305,16 @@ var popup_default = /* @__PURE__ */ defineComponent({
4300
4305
  "color",
4301
4306
  "onClose"
4302
4307
  ]))), 128)),
4303
- ls.value.length && ss.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [g.collapseTagsPopover ? (openBlock(), createBlock(popover_default, normalizeProps(mergeProps({ key: 1 }, us.value)), {
4304
- content: withCtx(() => [createElementVNode("div", _hoisted_3$5, [(openBlock(!0), createElementBlock(Fragment, null, renderList(ls.value, (e, t) => (openBlock(), createBlock(tag_default, mergeProps({
4308
+ cs.value.length && os.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [g.collapseTagsPopover ? (openBlock(), createBlock(popover_default, normalizeProps(mergeProps({ key: 1 }, ls.value)), {
4309
+ content: withCtx(() => [createElementVNode("div", _hoisted_3$5, [(openBlock(!0), createElementBlock(Fragment, null, renderList(cs.value, (e, t) => (openBlock(), createBlock(tag_default, mergeProps({
4305
4310
  key: t,
4306
4311
  size: J.value,
4307
4312
  variant: g.tagVariant,
4308
4313
  theme: g.tagTheme,
4309
- closable: as.value,
4314
+ closable: is.value,
4310
4315
  disabled: unref(q),
4311
4316
  color: g.tagColor
4312
- }, { ref_for: !0 }, g.tagProps, { onClose: (e) => Ko(t + Math.floor(g.maxDisplayTags), e) }), {
4317
+ }, { ref_for: !0 }, g.tagProps, { onClose: (e) => Go(t + Math.floor(g.maxDisplayTags), e) }), {
4313
4318
  default: withCtx(() => [renderSlot(n.$slots, "tag", {
4314
4319
  tag: e,
4315
4320
  index: t + Math.floor(g.maxDisplayTags)
@@ -4332,9 +4337,9 @@ var popup_default = /* @__PURE__ */ defineComponent({
4332
4337
  color: g.tagColor
4333
4338
  }, g.tagProps), {
4334
4339
  default: withCtx(() => [renderSlot(n.$slots, "tag", {
4335
- tag: `+${ls.value.length}`,
4340
+ tag: `+${cs.value.length}`,
4336
4341
  index: -1
4337
- }, () => [createTextVNode("+" + toDisplayString(ls.value.length), 1)])]),
4342
+ }, () => [createTextVNode("+" + toDisplayString(cs.value.length), 1)])]),
4338
4343
  _: 3
4339
4344
  }, 16, [
4340
4345
  "size",
@@ -4353,9 +4358,9 @@ var popup_default = /* @__PURE__ */ defineComponent({
4353
4358
  color: g.tagColor
4354
4359
  }, g.tagProps), {
4355
4360
  default: withCtx(() => [renderSlot(n.$slots, "tag", {
4356
- tag: `+${ls.value.length}`,
4361
+ tag: `+${cs.value.length}`,
4357
4362
  index: -1
4358
- }, () => [createTextVNode("+" + toDisplayString(ls.value.length), 1)])]),
4363
+ }, () => [createTextVNode("+" + toDisplayString(cs.value.length), 1)])]),
4359
4364
  _: 3
4360
4365
  }, 16, [
4361
4366
  "size",
@@ -4366,26 +4371,26 @@ var popup_default = /* @__PURE__ */ defineComponent({
4366
4371
  ]))], 64)) : createCommentVNode("", !0),
4367
4372
  createElementVNode("input", {
4368
4373
  class: "px-input-tag-inner",
4369
- value: unref(Bo),
4374
+ value: unref(zo),
4370
4375
  ref_key: "inputRef",
4371
- ref: Uo,
4376
+ ref: Ho,
4372
4377
  placeholder: unref(Y) && unref(Y).length ? "" : g.placeholder,
4373
- disabled: unref(q) || unref(Po),
4378
+ disabled: unref(q) || unref(No),
4374
4379
  autofocus: t.autofocus,
4375
- onInput: withModifiers(Wo, ["stop"]),
4376
- onChange: withModifiers(qo, ["stop"]),
4380
+ onInput: withModifiers(Uo, ["stop"]),
4381
+ onChange: withModifiers(Ko, ["stop"]),
4377
4382
  onCompositionstart: r[0] || (r[0] = (...e) => unref(j) && unref(j)(...e)),
4378
4383
  onCompositionend: r[1] || (r[1] = (...e) => unref(M) && unref(M)(...e)),
4379
- onKeydown: withKeys(Qo, ["enter"])
4384
+ onKeydown: withKeys(Zo, ["enter"])
4380
4385
  }, null, 40, _hoisted_4$3)
4381
4386
  ]),
4382
- is.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [ts.value && (i = unref(Y)) != null && i.length ? (openBlock(), createBlock(unref(times_circle_solid_default), {
4387
+ rs.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [es.value && (i = unref(Y)) != null && i.length ? (openBlock(), createBlock(unref(times_circle_solid_default), {
4383
4388
  key: 0,
4384
4389
  class: "px-input-tag-icon",
4385
- onClick: Go
4390
+ onClick: Wo
4386
4391
  })) : (openBlock(), createElementBlock("div", _hoisted_6$1))])) : createCommentVNode("", !0),
4387
4392
  g.loading ? (openBlock(), createElementBlock("div", _hoisted_7$1, [createVNode(unref(spinner_third_solid_default), { class: "px-input-tag-icon px-animation__loading" })])) : createCommentVNode("", !0),
4388
- unref(os).suffix ? (openBlock(), createElementBlock("div", _hoisted_8$1, [renderSlot(n.$slots, "suffix")])) : createCommentVNode("", !0),
4393
+ unref(as).suffix ? (openBlock(), createElementBlock("div", _hoisted_8$1, [renderSlot(n.$slots, "suffix")])) : createCommentVNode("", !0),
4389
4394
  createElementVNode("canvas", {
4390
4395
  class: "px-input-tag-canvas",
4391
4396
  ref_key: "canvasRef",
@@ -4620,7 +4625,7 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4620
4625
  ], () => {
4621
4626
  I.value = P();
4622
4627
  });
4623
- let Eo = computed(() => {
4628
+ let To = computed(() => {
4624
4629
  let { start: e } = I.value;
4625
4630
  return M(e - 1);
4626
4631
  }), L = () => {
@@ -4681,7 +4686,7 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4681
4686
  }, null), createVNode("div", {
4682
4687
  ref: o,
4683
4688
  class: "px-virtual-list-item",
4684
- style: { transform: `translateY(${Eo.value}px)` }
4689
+ style: { transform: `translateY(${To.value}px)` }
4685
4690
  }, [s.map((n, r) => {
4686
4691
  let i = t + r, a = n.key ?? i, o = n.render, s;
4687
4692
  if (y(o)) s = createVNode("div", null, [o]);
@@ -4834,12 +4839,12 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4834
4839
  ref(0),
4835
4840
  ref(!1),
4836
4841
  ref(!1)
4837
- ], M = inject(INPUT_GROUP_PROVIDE), N = inject(FORM_ITEM_PROVIDE), P = createProvideComputed("borderRadius", [T.value && M, s]), I = createProvideComputed("size", () => [
4842
+ ], M = inject(INPUT_GROUP_PROVIDE, void 0), N = inject(FORM_ITEM_PROVIDE, void 0), P = createProvideComputed("borderRadius", [T.value && M, s]), I = createProvideComputed("size", () => [
4838
4843
  T.value && M,
4839
4844
  s.size && s,
4840
4845
  N,
4841
4846
  s
4842
- ], "nullish", (e) => e || "medium"), Eo = createProvideComputed("shape", [T.value && M, s], "nullish", (e) => e || "rect"), L = createProvideComputed("disabled", [
4847
+ ], "nullish", (e) => e || "medium"), To = createProvideComputed("shape", [T.value && M, s], "nullish", (e) => e || "rect"), L = createProvideComputed("disabled", [
4843
4848
  N,
4844
4849
  T.value && M,
4845
4850
  s
@@ -4847,45 +4852,45 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4847
4852
  N,
4848
4853
  T.value && M,
4849
4854
  s
4850
- ], "or"), V = createProvideComputed("status", [N, s]), Do = computed(() => {
4855
+ ], "or"), V = createProvideComputed("status", [N, s]), Eo = computed(() => {
4851
4856
  if (D.value >= 0) {
4852
4857
  var e;
4853
4858
  return T.value ? (M == null || (e = M.childrenInfo.value.find((e) => e.index === D.value + 1)) == null ? void 0 : e.variant) === "text" : !1;
4854
4859
  } else return !1;
4855
- }), [ko, H] = useControlledMode("modelValue", s, c, {
4860
+ }), [Oo, H] = useControlledMode("modelValue", s, c, {
4856
4861
  defaultField: "defaultValue",
4857
4862
  transform: (e) => e || ""
4858
- }), U = shallowRef(null), Ao = shallowRef(null), G = shallowRef(null), K = async () => {
4863
+ }), U = shallowRef(null), ko = shallowRef(null), G = shallowRef(null), K = async () => {
4859
4864
  if (await nextTick(), s.shouldShowPopover) {
4860
- Uo.value = !!s.shouldShowPopover(ko.value || "", $.value);
4865
+ Ho.value = !!s.shouldShowPopover(Oo.value || "", $.value);
4861
4866
  return;
4862
4867
  }
4863
- ko.value && (!s.showPopoverEmpty && $.value.length || s.showPopoverEmpty) ? Uo.value = !0 : Uo.value = !1;
4868
+ Oo.value && (!s.showPopoverEmpty && $.value.length || s.showPopoverEmpty) ? Ho.value = !0 : Ho.value = !1;
4864
4869
  }, q = async (e) => {
4865
4870
  e.stopPropagation();
4866
4871
  let t = e.target.value;
4867
- ko.value = t, !l.value && (c("input", t, e), N == null || N.inputHandler(), await H(t), K());
4868
- }, No = async () => {
4872
+ Oo.value = t, !l.value && (c("input", t, e), N == null || N.inputHandler(), await H(t), K());
4873
+ }, Mo = async () => {
4869
4874
  await H(""), c("change", ""), c("clear", ""), N == null || N.changeHandler();
4870
- }, Po = (e) => {
4875
+ }, No = (e) => {
4871
4876
  e.stopPropagation();
4872
4877
  let t = e.target;
4873
4878
  c("change", t.value, e), N == null || N.changeHandler();
4874
- }, Fo = ref(!1), Io = (e) => {
4875
- e.stopPropagation(), c("blur", e), Fo.value = !1, N == null || N.blurHandler();
4876
- }, Lo = (e) => {
4877
- e.stopPropagation(), c("focus", e), Fo.value = !0;
4878
- }, Ro = () => {
4879
+ }, Po = ref(!1), Fo = (e) => {
4880
+ e.stopPropagation(), c("blur", e), Po.value = !1, N == null || N.blurHandler();
4881
+ }, Io = (e) => {
4882
+ e.stopPropagation(), c("focus", e), Po.value = !0;
4883
+ }, Lo = () => {
4879
4884
  var e;
4880
4885
  (e = G.value) == null || e.focus();
4881
4886
  }, J = ref(!1), Y = () => {
4882
4887
  J.value = !0;
4883
- }, zo = () => {
4888
+ }, Ro = () => {
4884
4889
  J.value = !1;
4885
- }, Bo = computed(() => s.clearable && !L.value && !z.value), Ho = async (e, t, n) => {
4886
- let r = s.append ? ko.value + e : e;
4887
- await H(r), Uo.value = !1, c("select", r, t, n), c("change", r, n), N == null || N.changeHandler();
4888
- }, X = useSlots(), $ = computed(() => s.filter ? s.filter(ko.value || "", s.options || []) : !ko.value || !ko.value.trim() ? [] : defaultFilter(ko.value, s.options || []));
4890
+ }, zo = computed(() => s.clearable && !L.value && !z.value), Vo = async (e, t, n) => {
4891
+ let r = s.append ? Oo.value + e : e;
4892
+ await H(r), Ho.value = !1, c("select", r, t, n), c("change", r, n), N == null || N.changeHandler();
4893
+ }, X = useSlots(), $ = computed(() => s.filter ? s.filter(Oo.value || "", s.options || []) : !Oo.value || !Oo.value.trim() ? [] : defaultFilter(Oo.value, s.options || []));
4889
4894
  n({
4890
4895
  focus: () => {
4891
4896
  var e;
@@ -4895,70 +4900,70 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4895
4900
  var e;
4896
4901
  (e = G.value) == null || e.blur();
4897
4902
  },
4898
- clear: () => No(),
4903
+ clear: () => Mo(),
4899
4904
  select: () => {
4900
4905
  var e;
4901
4906
  (e = G.value) == null || e.select();
4902
4907
  },
4903
4908
  [GET_ELEMENT_RENDERED]: () => U.value
4904
4909
  });
4905
- let Uo = ref(!1), Wo = (e) => {
4906
- e || (Uo.value = e);
4910
+ let Ho = ref(!1), Uo = (e) => {
4911
+ e || (Ho.value = e);
4907
4912
  };
4908
4913
  watch([
4909
4914
  k,
4910
4915
  j,
4911
4916
  P,
4912
- Eo,
4917
+ To,
4913
4918
  I,
4914
4919
  L,
4915
4920
  () => X,
4916
4921
  useDarkMode(),
4917
- Fo,
4922
+ Po,
4918
4923
  J,
4919
4924
  z,
4920
4925
  V,
4921
- Do
4926
+ Eo
4922
4927
  ], () => {
4923
4928
  setTimeout(() => {
4924
- Go();
4929
+ Wo();
4925
4930
  });
4926
4931
  });
4927
- let Go = () => {
4928
- let e = canvasPreprocess(U, Ao);
4932
+ let Wo = () => {
4933
+ let e = canvasPreprocess(U, ko);
4929
4934
  if (!e) return;
4930
- let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, P.value, Eo.value || "rect", I.value || "medium", T.value, k.value, j.value), s = V.value === "normal" ? (J.value || Fo.value) && !L.value && !z.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(V.value === "error" ? "danger" : V.value, 6), c = calcBorderCornerCenter(o, n, r, a);
4931
- s && drawBorder$6(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, T.value, k.value, j.value, Do.value);
4935
+ let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, P.value, To.value || "rect", I.value || "medium", T.value, k.value, j.value), s = V.value === "normal" ? (J.value || Po.value) && !L.value && !z.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(V.value === "error" ? "danger" : V.value, 6), c = calcBorderCornerCenter(o, n, r, a);
4936
+ s && drawBorder$6(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, T.value, k.value, j.value, Eo.value);
4932
4937
  let l = L.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
4933
4938
  l && floodFill(t, Math.round(n / 2), Math.round(r / 2), l);
4934
4939
  };
4935
4940
  return onMounted(() => {
4936
4941
  nextTick(() => {
4937
- Go();
4942
+ Wo();
4938
4943
  });
4939
- }), useResizeObserver(U, Go), useWatchGlobalCssVal(Go), useTransitionEnd(U, Go), () => {
4944
+ }), useResizeObserver(U, Wo), useWatchGlobalCssVal(Wo), useTransitionEnd(U, Wo), () => {
4940
4945
  let t = createVNode(Fragment, null, [
4941
4946
  X.prefix && createVNode("div", { class: "px-auto-complete-prefix-wrapper" }, [X.prefix()]),
4942
4947
  createVNode("input", {
4943
4948
  ref: G,
4944
4949
  class: "px-auto-complete-inner",
4945
- value: ko.value,
4950
+ value: Oo.value,
4946
4951
  placeholder: s.placeholder,
4947
4952
  disabled: L.value || z.value,
4948
4953
  autofocus: s.autofocus,
4949
4954
  onInput: q,
4950
- onChange: Po,
4955
+ onChange: No,
4951
4956
  onCompositionstart: u,
4952
4957
  onCompositionend: g
4953
4958
  }, null),
4954
- Bo.value && createVNode("div", { class: "px-auto-complete-close-wrapper" }, [J.value && ko.value ? createVNode(times_circle_solid_default, {
4959
+ zo.value && createVNode("div", { class: "px-auto-complete-close-wrapper" }, [J.value && Oo.value ? createVNode(times_circle_solid_default, {
4955
4960
  class: "px-auto-complete-icon",
4956
- onClick: No
4961
+ onClick: Mo
4957
4962
  }, null) : createVNode("div", { class: "px-auto-complete-icon-placeholder" }, null)]),
4958
4963
  s.loading && createVNode("div", { class: "px-auto-complete-loading-wrapper" }, [createVNode(spinner_third_solid_default, { class: "px-auto-complete-icon px-animation__loading" }, null)]),
4959
4964
  X.suffix && createVNode("div", { class: "px-auto-complete-suffix-wrapper" }, [X.suffix()]),
4960
4965
  createVNode("canvas", {
4961
- ref: Ao,
4966
+ ref: ko,
4962
4967
  class: "px-auto-complete-canvas"
4963
4968
  }, null)
4964
4969
  ]), n = {}, r = w == null ? void 0 : w.vnode.scopeId, i = w == null ? void 0 : w.vnode.scopeId;
@@ -4969,8 +4974,8 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4969
4974
  offset: 0,
4970
4975
  "width-equal": !0,
4971
4976
  arrow: !1,
4972
- visible: Uo.value,
4973
- "onUpdate:visible": Wo,
4977
+ visible: Ho.value,
4978
+ "onUpdate:visible": Uo,
4974
4979
  trigger: "click",
4975
4980
  contentStyle: { padding: `${a}px` },
4976
4981
  destroyOnHide: s.optionsDestroyOnHide
@@ -4980,21 +4985,21 @@ var MIN_CHUNK_SIZE = 1e3, virtual_list_default = /* @__PURE__ */ defineComponent
4980
4985
  class: [
4981
4986
  "pixelium px-auto-complete",
4982
4987
  I.value && `px-auto-complete__${I.value}`,
4983
- Eo.value && `px-auto-complete__${Eo.value}`,
4988
+ To.value && `px-auto-complete__${To.value}`,
4984
4989
  { "px-auto-complete__inner": T.value },
4985
4990
  { "px-auto-complete__disabled": L.value }
4986
4991
  ],
4987
- onClick: Ro,
4992
+ onClick: Lo,
4988
4993
  onMouseenter: Y,
4989
- onMouseleave: zo,
4990
- onFocusout: Io,
4991
- onFocusin: Lo,
4994
+ onMouseleave: Ro,
4995
+ onFocusout: Fo,
4996
+ onFocusin: Io,
4992
4997
  ...n,
4993
4998
  ...o
4994
4999
  }, [t]),
4995
5000
  content: () => $.value.length ? createVNode(option_list_default, {
4996
5001
  options: $.value,
4997
- onSelect: Ho,
5002
+ onSelect: Vo,
4998
5003
  virtualScroll: s.virtualScroll,
4999
5004
  virtualListProps: s.virtualListProps
5000
5005
  }, {
@@ -5225,7 +5230,7 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5225
5230
  ref(0),
5226
5231
  ref(!1),
5227
5232
  ref(!1)
5228
- ], N = inject(INPUT_GROUP_PROVIDE), P = inject(FORM_ITEM_PROVIDE), I = createProvideComputed("borderRadius", [D.value && N, s]), Eo = createProvideComputed("size", () => [
5233
+ ], N = inject(INPUT_GROUP_PROVIDE, void 0), P = inject(FORM_ITEM_PROVIDE, void 0), I = createProvideComputed("borderRadius", [D.value && N, s]), To = createProvideComputed("size", () => [
5229
5234
  D.value && N,
5230
5235
  s.size && s,
5231
5236
  P,
@@ -5238,18 +5243,18 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5238
5243
  D.value && N,
5239
5244
  P,
5240
5245
  s
5241
- ], "or"), Do = createProvideComputed("status", [P, s]), ko = computed(() => {
5246
+ ], "or"), Eo = createProvideComputed("status", [P, s]), Oo = computed(() => {
5242
5247
  if (k.value >= 0) {
5243
5248
  var e;
5244
5249
  return D.value ? (N == null || (e = N.childrenInfo.value.find((e) => e.index === k.value + 1)) == null ? void 0 : e.variant) === "text" : !1;
5245
5250
  } else return !1;
5246
- }), H = (e) => $n(e) || en(e) || s.multiple && S(e) && e.length === 0, [U, Ao] = useControlledMode("modelValue", s, c, {
5251
+ }), H = (e) => $n(e) || en(e) || s.multiple && S(e) && e.length === 0, [U, ko] = useControlledMode("modelValue", s, c, {
5247
5252
  defaultField: "defaultValue",
5248
5253
  transform: (e) => s.multiple ? E(e) ? void 0 : S(e) ? [...e] : [e] : e
5249
5254
  }), [G, K] = useControlledMode("inputValue", s, c, {
5250
5255
  defaultField: "defaultInputValue",
5251
5256
  transform: (e) => e || ""
5252
- }), No = computed(() => {
5257
+ }), Mo = computed(() => {
5253
5258
  if (!s.multiple || !s.options.length || H(U.value)) return [];
5254
5259
  let e = /* @__PURE__ */ new Map();
5255
5260
  return s.options.forEach((t) => {
@@ -5259,79 +5264,79 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5259
5264
  });
5260
5265
  else e.set(t.value, t.label);
5261
5266
  }), U.value.map((t) => e.has(t) ? e.get(t) : String(t));
5262
- }), Fo = computed(() => {
5267
+ }), Po = computed(() => {
5263
5268
  if (s.multiple || !s.options.length || H(U.value)) return "";
5264
5269
  let e = String(U.value);
5265
5270
  return s.options.some((t) => y(t) ? U.value === t : "type" in t && t.type === "group" ? t.children.some((t) => y(t) ? U.value === t : t.value === U.value ? (e = t.label, !0) : !1) : t.value === U.value ? (e = t.label, !0) : !1), e;
5266
- }), Io = shallowRef(null), Lo = shallowRef(null), Ro = shallowRef(null), J = shallowRef(null), Y = shallowRef(null), zo = shallowRef(null);
5271
+ }), Fo = shallowRef(null), Io = shallowRef(null), Lo = shallowRef(null), J = shallowRef(null), Y = shallowRef(null), Ro = shallowRef(null);
5267
5272
  watch(() => s.multiple, (e, t) => {
5268
- Ao(e && !t ? [U.value] : U.value[0] || null);
5273
+ ko(e && !t ? [U.value] : U.value[0] || null);
5269
5274
  });
5270
- let Bo = async () => {
5275
+ let zo = async () => {
5271
5276
  if (await nextTick(), s.shouldShowPopover) {
5272
- ps.value = !!s.shouldShowPopover(G.value || "", fs.value);
5277
+ fs.value = !!s.shouldShowPopover(G.value || "", ds.value);
5273
5278
  return;
5274
5279
  }
5275
- ps.value = !0;
5276
- }, Ho = async () => {
5277
- ps.value = !1;
5280
+ fs.value = !0;
5281
+ }, Vo = async () => {
5282
+ fs.value = !1;
5278
5283
  }, X = async (e) => {
5279
5284
  e.stopPropagation();
5280
5285
  let t = e.target.value;
5281
- G.value = t, !l.value && (c("input", t, e), K(t), await c("update:inputValue", t), Bo());
5286
+ G.value = t, !l.value && (c("input", t, e), K(t), await c("update:inputValue", t), zo());
5282
5287
  }, $ = async () => {
5283
5288
  await new Promise((e) => setTimeout(e));
5284
5289
  let e = s.multiple ? [] : null;
5285
- await K(""), await Ao(e), c("change", e), c("clear", e), c("inputChange", ""), P == null || P.changeHandler();
5286
- }, Wo = (e) => {
5290
+ await K(""), await ko(e), c("change", e), c("clear", e), c("inputChange", ""), P == null || P.changeHandler();
5291
+ }, Uo = (e) => {
5287
5292
  e.stopPropagation();
5288
5293
  let t = e.target;
5289
5294
  c("inputChange", t.value, e);
5290
- }, [Go, Ko] = useCancelableDelay(), Jo = ref(!1), Qo = async (e) => {
5291
- z.value || V.value || (Ko(), Jo.value = !0, nextTick(() => {
5295
+ }, [Wo, Go] = useCancelableDelay(), qo = ref(!1), Zo = async (e) => {
5296
+ z.value || V.value || (Go(), qo.value = !0, nextTick(() => {
5292
5297
  if (J.value && s.filterable) {
5293
5298
  if (J.value.focus(), s.multiple) return;
5294
- K(H(U.value) ? G.value || "" : Fo.value);
5299
+ K(H(U.value) ? G.value || "" : Po.value);
5295
5300
  }
5296
- }), Bo(), c("focus", e));
5297
- }, es = async (e) => {
5301
+ }), zo(), c("focus", e));
5302
+ }, $o = async (e) => {
5298
5303
  var t;
5299
5304
  if (z.value || V.value) return;
5300
5305
  let n = e.target;
5301
5306
  if (n instanceof HTMLElement || n instanceof SVGElement) {
5302
5307
  var r;
5303
- if ((r = zo.value) != null && r.$el.contains(n)) return;
5308
+ if ((r = Ro.value) != null && r.$el.contains(n)) return;
5304
5309
  }
5305
- (t = Lo.value) == null || t.focus();
5306
- }, ts = async () => {
5310
+ (t = Io.value) == null || t.focus();
5311
+ }, es = async () => {
5307
5312
  var e, t;
5308
- let n = await Go();
5309
- return n && (Jo.value = !1, Ho(), (e = J.value) == null || e.blur(), (t = Lo.value) == null || t.blur(), setTimeout(async () => {
5313
+ let n = await Wo();
5314
+ return n && (qo.value = !1, Vo(), (e = J.value) == null || e.blur(), (t = Io.value) == null || t.blur(), setTimeout(async () => {
5310
5315
  await K(""), c("inputChange", "");
5311
5316
  }, ANIMATION_DURATION$2), n);
5312
- }, ns = async (e) => {
5313
- await ts() && (c("blur", e), P == null || P.blurHandler());
5314
- }, rs = (e) => {
5317
+ }, ts = async (e) => {
5318
+ await es() && (c("blur", e), P == null || P.blurHandler());
5319
+ }, ns = (e) => {
5315
5320
  var t, n;
5316
5321
  let r = e.relatedTarget;
5317
- r && !((t = Y.value) == null || (t = t.triggerContent) == null || (t = t.content) == null) && t.contains(r) || r && (n = Io.value) != null && n.contains(r) || ns(e);
5318
- }, as = ref(!1), os = () => {
5319
- as.value = !0;
5320
- }, ss = () => {
5321
- as.value = !1;
5322
- }, cs = computed(() => s.clearable && !z.value && !V.value), ls = (e) => {
5322
+ r && !((t = Y.value) == null || (t = t.triggerContent) == null || (t = t.content) == null) && t.contains(r) || r && (n = Fo.value) != null && n.contains(r) || ts(e);
5323
+ }, is = ref(!1), as = () => {
5324
+ is.value = !0;
5325
+ }, os = () => {
5326
+ is.value = !1;
5327
+ }, ss = computed(() => s.clearable && !z.value && !V.value), cs = (e) => {
5323
5328
  if (s.multiple) if (S(U.value)) {
5324
5329
  let t = [...U.value], n = t.findIndex((t) => t === e);
5325
5330
  return n === -1 ? t.push(e) : t.splice(n, 1), t;
5326
5331
  } else return [e];
5327
5332
  else return e;
5328
- }, us = async (e, t, n) => {
5333
+ }, ls = async (e, t, n) => {
5329
5334
  await new Promise((e) => setTimeout(e));
5330
- let r = ls(e);
5331
- await Ao(r), s.multiple || (Jo.value = !1, Ho(), c("select", r, t, n), c("change", r), P == null || P.changeHandler(), setTimeout(async () => {
5335
+ let r = cs(e);
5336
+ await ko(r), s.multiple || (qo.value = !1, Vo(), c("select", r, t, n), c("change", r), P == null || P.changeHandler(), setTimeout(async () => {
5332
5337
  await K("");
5333
5338
  }, ANIMATION_DURATION$2));
5334
- }, ds = useSlots(), fs = computed(() => {
5339
+ }, us = useSlots(), ds = computed(() => {
5335
5340
  let e = s.options || [];
5336
5341
  if (!s.filterable) return e;
5337
5342
  let t = [];
@@ -5351,51 +5356,51 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5351
5356
  n({
5352
5357
  focus: () => {
5353
5358
  var e;
5354
- z.value || V.value || (e = Lo.value) == null || e.focus();
5359
+ z.value || V.value || (e = Io.value) == null || e.focus();
5355
5360
  },
5356
5361
  blur: () => {
5357
- ts();
5362
+ es();
5358
5363
  },
5359
5364
  clear: () => $(),
5360
- [GET_ELEMENT_RENDERED]: () => Io.value
5365
+ [GET_ELEMENT_RENDERED]: () => Fo.value
5361
5366
  });
5362
- let ps = ref(!1), ms = (e) => {
5363
- e || (ps.value = e);
5364
- }, hs = computed(() => H(U.value) && (!s.multiple && !Fo.value || s.multiple)), gs = computed(() => Eo.value === "small" ? "small" : "medium"), _s = computed(() => !z.value && !V.value), vs = async (e, t) => {
5367
+ let fs = ref(!1), ps = (e) => {
5368
+ e || (fs.value = e);
5369
+ }, ms = computed(() => H(U.value) && (!s.multiple && !Po.value || s.multiple)), hs = computed(() => To.value === "small" ? "small" : "medium"), gs = computed(() => !z.value && !V.value), _s = async (e, t) => {
5365
5370
  let n = [...U.value], r = n.findIndex((t) => t === e);
5366
- r !== -1 && (n.splice(r, 1), await Ao(n), c("tagClose", e, t), c("change", n), P == null || P.changeHandler());
5367
- }, ys = computed(() => !!s.collapseTags && A(s.maxDisplayTags) && s.maxDisplayTags >= 0), bs = computed(() => !s.multiple || !s.options.length || E(U.value) ? [] : ys.value ? U.value.slice(0, s.maxDisplayTags) : U.value), xs = computed(() => !s.multiple || !s.options.length || E(U.value) ? [] : ys.value ? U.value.slice(s.maxDisplayTags) : []);
5371
+ r !== -1 && (n.splice(r, 1), await ko(n), c("tagClose", e, t), c("change", n), P == null || P.changeHandler());
5372
+ }, vs = computed(() => !!s.collapseTags && A(s.maxDisplayTags) && s.maxDisplayTags >= 0), ys = computed(() => !s.multiple || !s.options.length || E(U.value) ? [] : vs.value ? U.value.slice(0, s.maxDisplayTags) : U.value), bs = computed(() => !s.multiple || !s.options.length || E(U.value) ? [] : vs.value ? U.value.slice(s.maxDisplayTags) : []);
5368
5373
  watch([
5369
5374
  j,
5370
5375
  M,
5371
5376
  I,
5372
5377
  L,
5373
- Eo,
5378
+ To,
5374
5379
  V,
5375
5380
  z,
5376
- () => ds,
5381
+ () => us,
5377
5382
  useDarkMode(),
5378
- Jo,
5379
- as,
5380
- Do,
5381
- ko
5383
+ qo,
5384
+ is,
5385
+ Eo,
5386
+ Oo
5382
5387
  ], () => {
5383
- Ss();
5388
+ xs();
5384
5389
  });
5385
- let Ss = () => {
5386
- let e = canvasPreprocess(Io, Ro);
5390
+ let xs = () => {
5391
+ let e = canvasPreprocess(Fo, Lo);
5387
5392
  if (!e) return;
5388
- let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, I.value, L.value, Eo.value || "medium", D.value, j.value, M.value), s = Do.value === "normal" ? (as.value || Jo.value) && !z.value && !V.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(Do.value === "error" ? "danger" : Do.value, 6), c = calcBorderCornerCenter(o, n, r, a);
5389
- s && drawBorder$5(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, D.value, j.value, M.value, ko.value);
5393
+ let { ctx: t, width: n, height: r, canvas: i } = e, a = calcPixelSize(), o = getBorderRadius(i, a, I.value, L.value, To.value || "medium", D.value, j.value, M.value), s = Eo.value === "normal" ? (is.value || qo.value) && !z.value && !V.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10) : getGlobalThemeColor(Eo.value === "error" ? "danger" : Eo.value, 6), c = calcBorderCornerCenter(o, n, r, a);
5394
+ s && drawBorder$5(t, n, r, c, o, BORDER_CORNER_RAD_RANGE, s, a, D.value, j.value, M.value, Oo.value);
5390
5395
  let l = z.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
5391
5396
  l && floodFill(t, Math.round(n / 2), Math.round(r / 2), l);
5392
5397
  };
5393
5398
  onMounted(() => {
5394
5399
  nextTick(() => {
5395
- Ss();
5400
+ xs();
5396
5401
  });
5397
- }), useResizeObserver(Io, Ss), useWatchGlobalCssVal(Ss), useTransitionEnd(Io, Ss);
5398
- let Cs = computed(() => {
5402
+ }), useResizeObserver(Fo, xs), useWatchGlobalCssVal(xs), useTransitionEnd(Fo, xs);
5403
+ let Ss = computed(() => {
5399
5404
  var e;
5400
5405
  return {
5401
5406
  ...s.popoverProps,
@@ -5407,72 +5412,72 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5407
5412
  });
5408
5413
  return () => {
5409
5414
  let t = createVNode(Fragment, null, [
5410
- ds.prefix && createVNode("div", { class: "px-select-prefix-wrapper" }, [ds.prefix()]),
5415
+ us.prefix && createVNode("div", { class: "px-select-prefix-wrapper" }, [us.prefix()]),
5411
5416
  createVNode("div", {
5412
5417
  class: "px-select-content",
5413
- ref: Lo,
5418
+ ref: Io,
5414
5419
  tabindex: z.value || V.value ? -1 : 0
5415
5420
  }, [
5416
- s.multiple && bs.value.map((e, t) => createVNode(tag_default, mergeProps({
5421
+ s.multiple && ys.value.map((e, t) => createVNode(tag_default, mergeProps({
5417
5422
  key: e,
5418
- size: gs.value,
5423
+ size: hs.value,
5419
5424
  variant: s.tagVariant,
5420
5425
  theme: s.tagTheme,
5421
- closable: _s.value,
5426
+ closable: gs.value,
5422
5427
  disabled: z.value,
5423
5428
  color: s.tagColor
5424
- }, s.tagProps, { onClose: (t) => vs(e, t) }), { default: () => ds.tag ? ds.tag({
5429
+ }, s.tagProps, { onClose: (t) => _s(e, t) }), { default: () => us.tag ? us.tag({
5425
5430
  value: e,
5426
- label: No.value[t],
5431
+ label: Mo.value[t],
5427
5432
  index: t,
5428
5433
  disabled: z.value,
5429
5434
  readonly: V.value
5430
- }) : No.value[t] })),
5431
- s.multiple && !!xs.value.length && ys.value && createVNode(Fragment, null, [s.collapseTagsPopover ? createVNode(popover_default, Cs.value, {
5435
+ }) : Mo.value[t] })),
5436
+ s.multiple && !!bs.value.length && vs.value && createVNode(Fragment, null, [s.collapseTagsPopover ? createVNode(popover_default, Ss.value, {
5432
5437
  default: () => createVNode(tag_default, mergeProps({
5433
- size: gs.value,
5438
+ size: hs.value,
5434
5439
  variant: s.tagVariant,
5435
5440
  theme: s.tagTheme,
5436
5441
  disabled: z.value,
5437
5442
  color: s.tagColor
5438
- }, s.tagProps), { default: () => ds.tag ? ds.tag({
5443
+ }, s.tagProps), { default: () => us.tag ? us.tag({
5439
5444
  value: null,
5440
- label: `+${xs.value.length}`,
5445
+ label: `+${bs.value.length}`,
5441
5446
  index: -1,
5442
5447
  disabled: z.value,
5443
5448
  readonly: V.value
5444
- }) : `+${xs.value.length}` }),
5445
- content: () => createVNode("div", { class: "px-input-tag-content" }, [xs.value.map((e, t) => createVNode(tag_default, mergeProps({
5449
+ }) : `+${bs.value.length}` }),
5450
+ content: () => createVNode("div", { class: "px-input-tag-content" }, [bs.value.map((e, t) => createVNode(tag_default, mergeProps({
5446
5451
  key: e,
5447
- size: gs.value,
5452
+ size: hs.value,
5448
5453
  variant: s.tagVariant,
5449
5454
  theme: s.tagTheme,
5450
5455
  disabled: z.value,
5451
5456
  color: s.tagColor,
5452
- closable: _s.value
5453
- }, s.tagProps, { onClose: (t) => vs(e, t) }), { default: () => {
5457
+ closable: gs.value
5458
+ }, s.tagProps, { onClose: (t) => _s(e, t) }), { default: () => {
5454
5459
  let n = t + Math.floor(s.maxDisplayTags);
5455
- return ds.tag ? ds.tag({
5460
+ return us.tag ? us.tag({
5456
5461
  value: e,
5457
- label: No.value[n],
5462
+ label: Mo.value[n],
5458
5463
  index: n,
5459
5464
  disabled: z.value,
5460
5465
  readonly: V.value
5461
- }) : No.value[n];
5466
+ }) : Mo.value[n];
5462
5467
  } }))])
5463
5468
  }) : createVNode(tag_default, mergeProps({
5464
- size: gs.value,
5469
+ size: hs.value,
5465
5470
  variant: s.tagVariant,
5466
5471
  theme: s.tagTheme,
5467
5472
  disabled: z.value,
5468
5473
  color: s.tagColor
5469
- }, s.tagProps), { default: () => ds.tag ? ds.tag({
5474
+ }, s.tagProps), { default: () => us.tag ? us.tag({
5470
5475
  value: null,
5471
- label: `+${xs.value.length}`,
5476
+ label: `+${bs.value.length}`,
5472
5477
  index: -1,
5473
5478
  disabled: z.value,
5474
5479
  readonly: V.value
5475
- }) : `+${xs.value.length}` })]),
5480
+ }) : `+${bs.value.length}` })]),
5476
5481
  withDirectives(createVNode("input", {
5477
5482
  tabindex: -1,
5478
5483
  ref: J,
@@ -5480,33 +5485,33 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5480
5485
  value: G.value,
5481
5486
  disabled: z.value || V.value,
5482
5487
  onInput: X,
5483
- onChange: Wo,
5488
+ onChange: Uo,
5484
5489
  onCompositionstart: u,
5485
5490
  onCompositionend: g,
5486
- placeholder: hs.value ? s.placeholder : ""
5487
- }, null), [[vShow, s.filterable && Jo.value]]),
5488
- withDirectives(createVNode("div", { class: { "px-select-placeholder": !0 } }, [s.placeholder]), [[vShow, hs.value && (!s.filterable || !Jo.value)]]),
5491
+ placeholder: ms.value ? s.placeholder : ""
5492
+ }, null), [[vShow, s.filterable && qo.value]]),
5493
+ withDirectives(createVNode("div", { class: { "px-select-placeholder": !0 } }, [s.placeholder]), [[vShow, ms.value && (!s.filterable || !qo.value)]]),
5489
5494
  !s.multiple && withDirectives(createVNode("div", { class: {
5490
5495
  "px-select-label": !0,
5491
5496
  "px-select-label__disabled": z.value
5492
- } }, [ds.label ? ds.label({
5493
- label: Fo.value,
5497
+ } }, [us.label ? us.label({
5498
+ label: Po.value,
5494
5499
  value: U.value,
5495
5500
  disabled: z.value,
5496
5501
  readonly: V.value
5497
- }) : Fo.value]), [[vShow, !hs.value && (!s.filterable || !Jo.value)]])
5502
+ }) : Po.value]), [[vShow, !ms.value && (!s.filterable || !qo.value)]])
5498
5503
  ]),
5499
- cs.value && createVNode("div", { class: "px-select-close-wrapper" }, [as.value && !H(U.value) ? createVNode(times_circle_solid_default, {
5504
+ ss.value && createVNode("div", { class: "px-select-close-wrapper" }, [is.value && !H(U.value) ? createVNode(times_circle_solid_default, {
5500
5505
  class: "px-select-icon",
5501
5506
  onClick: $,
5502
5507
  ref: (e) => {
5503
- zo.value = e;
5508
+ Ro.value = e;
5504
5509
  }
5505
5510
  }, null) : createVNode("div", { class: "px-select-icon-placeholder" }, null)]),
5506
5511
  s.loading && createVNode("div", { class: "px-select-loading-wrapper" }, [createVNode(spinner_third_solid_default, { class: "px-select-icon px-animation__loading" }, null)]),
5507
- ds.suffix && createVNode("div", { class: "px-select-suffix-wrapper" }, [ds.suffix()]),
5512
+ us.suffix && createVNode("div", { class: "px-select-suffix-wrapper" }, [us.suffix()]),
5508
5513
  createVNode("canvas", {
5509
- ref: Ro,
5514
+ ref: Lo,
5510
5515
  class: "px-select-canvas"
5511
5516
  }, null)
5512
5517
  ]), n = {}, r = w == null ? void 0 : w.vnode.scopeId, i = w == null ? void 0 : w.vnode.scopeId;
@@ -5517,38 +5522,38 @@ var ANIMATION_DURATION$2 = 250, select_default = /* @__PURE__ */ defineComponent
5517
5522
  offset: 0,
5518
5523
  "width-equal": !0,
5519
5524
  arrow: !1,
5520
- visible: ps.value,
5521
- "onUpdate:visible": ms,
5525
+ visible: fs.value,
5526
+ "onUpdate:visible": ps,
5522
5527
  trigger: "click",
5523
5528
  contentStyle: { padding: `${a}px` },
5524
5529
  ref: Y,
5525
5530
  destroyOnHide: s.optionsDestroyOnHide
5526
5531
  }, {
5527
5532
  default: () => h("div", mergeProps({
5528
- ref: Io,
5533
+ ref: Fo,
5529
5534
  class: [
5530
5535
  "pixelium px-select",
5531
- Eo.value && `px-select__${Eo.value}`,
5536
+ To.value && `px-select__${To.value}`,
5532
5537
  L.value && `px-select__${L.value}`,
5533
5538
  { "px-select__inner": D.value },
5534
5539
  { "px-select__disabled": z.value }
5535
5540
  ],
5536
- onFocusin: Qo,
5537
- onFocusout: rs,
5538
- onClick: es,
5539
- onMouseenter: os,
5540
- onMouseleave: ss,
5541
+ onFocusin: Zo,
5542
+ onFocusout: ns,
5543
+ onClick: $o,
5544
+ onMouseenter: as,
5545
+ onMouseleave: os,
5541
5546
  ...n
5542
5547
  }, o), [t]),
5543
- content: () => fs.value.length ? createVNode(option_list_default, {
5544
- options: fs.value,
5545
- onSelect: us,
5548
+ content: () => ds.value.length ? createVNode(option_list_default, {
5549
+ options: ds.value,
5550
+ onSelect: ls,
5546
5551
  activeValues: s.multiple ? U.value : [U.value],
5547
5552
  virtualScroll: s.virtualScroll,
5548
5553
  virtualListProps: s.virtualListProps
5549
5554
  }, {
5550
- "group-label": ({ option: e }) => ds["group-label"] ? ds["group-label"]({ option: e }) : e.label,
5551
- option: ({ option: e }) => ds.option ? ds.option({ option: e }) : y(e) ? e : e.label
5555
+ "group-label": ({ option: e }) => us["group-label"] ? us["group-label"]({ option: e }) : e.label,
5556
+ option: ({ option: e }) => us.option ? us.option({ option: e }) : y(e) ? e : e.label
5552
5557
  }) : createVNode("div", { class: "px-select-empty" }, [createVNode(empty_default, null, null)])
5553
5558
  });
5554
5559
  };
@@ -5708,7 +5713,7 @@ var _hoisted_1$7 = [
5708
5713
  a.value = i.src, u.value = i.srcset;
5709
5714
  }
5710
5715
  });
5711
- let wo = (e) => {
5716
+ let Co = (e) => {
5712
5717
  C.value && (b.value = !0, g.value = !1, w("load", C.value, e));
5713
5718
  }, k = (e) => {
5714
5719
  g.value = !0, b.value = !1, C.value && w("error", C.value, e);
@@ -5717,7 +5722,7 @@ var _hoisted_1$7 = [
5717
5722
  height: 0,
5718
5723
  top: 0,
5719
5724
  left: 0
5720
- }), To = (e) => {
5725
+ }), wo = (e) => {
5721
5726
  !(b.value && i.previewable) || !C.value || (M.value = calculateZoomedSize(C.value), x.value = !0, w("preview", e));
5722
5727
  };
5723
5728
  useWindowResizeListener(() => {
@@ -5735,7 +5740,7 @@ var _hoisted_1$7 = [
5735
5740
  [`px-image__${i.objectFit}`]: !!i.objectFit,
5736
5741
  "px-image-previewable": b.value && i.previewable
5737
5742
  }]),
5738
- onClick: To
5743
+ onClick: wo
5739
5744
  }, [
5740
5745
  createElementVNode("img", {
5741
5746
  src: a.value,
@@ -5752,7 +5757,7 @@ var _hoisted_1$7 = [
5752
5757
  class: "px-image-img",
5753
5758
  ref_key: "imgRef",
5754
5759
  ref: C,
5755
- onLoad: wo,
5760
+ onLoad: Co,
5756
5761
  onError: k
5757
5762
  }, null, 44, _hoisted_1$7),
5758
5763
  unref(n).placeholder || unref(n).error ? (openBlock(), createElementBlock("div", _hoisted_2$3, [!b.value && !g.value ? renderSlot(t.$slots, "placeholder", { key: 0 }) : createCommentVNode("", !0), g.value ? renderSlot(t.$slots, "error", { key: 1 }) : createCommentVNode("", !0)])) : createCommentVNode("", !0),
@@ -5988,7 +5993,7 @@ var avatar_default = /* @__PURE__ */ defineComponent({
5988
5993
  contentProps: { default: void 0 }
5989
5994
  },
5990
5995
  setup(e, { expose: t }) {
5991
- let n = e, r = inject(FORM_PROVIDE);
5996
+ let n = e, r = inject(FORM_PROVIDE, void 0);
5992
5997
  r || throwError("FormItem must be used inside Form.");
5993
5998
  let i = createProvideComputed("disabled", [r, n], "or"), g = createProvideComputed("readonly", [r, n], "or"), b = useId(), x = useSlots(), w = [
5994
5999
  "model",
@@ -6007,12 +6012,12 @@ var avatar_default = /* @__PURE__ */ defineComponent({
6007
6012
  r.removeLabelWidth(b);
6008
6013
  });
6009
6014
  let N = null, I = async () => {
6010
- n.field && (on(r.model.value, n.field, N), await nextTick(), Mo());
6015
+ n.field && (on(r.model.value, n.field, N), await nextTick(), jo());
6011
6016
  }, z = () => ({
6012
6017
  field: n.field,
6013
- validate: Fo,
6018
+ validate: Po,
6014
6019
  reset: I,
6015
- clearValidation: Mo
6020
+ clearValidation: jo
6016
6021
  });
6017
6022
  onMounted(() => {
6018
6023
  n.field && (r.registerField(z()), N = f(r.model.value, n.field));
@@ -6026,17 +6031,17 @@ var avatar_default = /* @__PURE__ */ defineComponent({
6026
6031
  let t = n.rule || ((e = r.rules.value) == null ? void 0 : e[n.field]);
6027
6032
  return t ? (S(t) || (t = [t]), t.some((e) => e.required)) : !1;
6028
6033
  }), H = async () => {
6029
- n.field && (await nextTick(), Fo("input"));
6034
+ n.field && (await nextTick(), Po("input"));
6030
6035
  }, U = async () => {
6031
- n.field && (await nextTick(), Fo("blur"));
6036
+ n.field && (await nextTick(), Po("blur"));
6032
6037
  }, W = async () => {
6033
- n.field && (await nextTick(), Fo("change"));
6038
+ n.field && (await nextTick(), Po("change"));
6034
6039
  }, K = (e) => ({
6035
6040
  message: (e == null ? void 0 : e.message) || "",
6036
6041
  level: e != null && e.message && (e == null ? void 0 : e.level) || "normal"
6037
- }), q = ref(K()), Mo = () => {
6042
+ }), q = ref(K()), jo = () => {
6038
6043
  q.value = K();
6039
- }, Po = computed(() => q.value.level);
6044
+ }, No = computed(() => q.value.level);
6040
6045
  provide(FORM_ITEM_PROVIDE, {
6041
6046
  size: r.size,
6042
6047
  disabled: i,
@@ -6044,9 +6049,9 @@ var avatar_default = /* @__PURE__ */ defineComponent({
6044
6049
  changeHandler: W,
6045
6050
  blurHandler: U,
6046
6051
  inputHandler: H,
6047
- status: Po
6052
+ status: No
6048
6053
  });
6049
- let Fo = async (e) => {
6054
+ let Po = async (e) => {
6050
6055
  var t;
6051
6056
  if (!n.field) return q.value = K(), q.value;
6052
6057
  let i = n.rule || ((t = r.rules.value) == null ? void 0 : t[n.field]);
@@ -6121,7 +6126,7 @@ var avatar_default = /* @__PURE__ */ defineComponent({
6121
6126
  }
6122
6127
  return q.value = K(), q.value;
6123
6128
  };
6124
- return t({ validate: Fo }), (t, n) => (openBlock(), createBlock(row_default, mergeProps({
6129
+ return t({ validate: Po }), (t, n) => (openBlock(), createBlock(row_default, mergeProps({
6125
6130
  class: "px-form-item",
6126
6131
  gutter: {
6127
6132
  x: 16,
@@ -6325,7 +6330,7 @@ var _hoisted_1$5 = {
6325
6330
  transform(e) {
6326
6331
  return !!e;
6327
6332
  }
6328
- }), M = inject(FORM_ITEM_PROVIDE), N = createProvideComputed("disabled", [M, n], "or"), P = createProvideComputed("readonly", [M, n], "or"), I = createProvideComputed("size", () => [
6333
+ }), M = inject(FORM_ITEM_PROVIDE, void 0), N = createProvideComputed("disabled", [M, n], "or"), P = createProvideComputed("readonly", [M, n], "or"), I = createProvideComputed("size", () => [
6329
6334
  n.size && n,
6330
6335
  M,
6331
6336
  n
@@ -6342,7 +6347,7 @@ var _hoisted_1$5 = {
6342
6347
  };
6343
6348
  onMounted(() => {
6344
6349
  nextTick(() => {
6345
- Ro(), q();
6350
+ Lo(), q();
6346
6351
  });
6347
6352
  });
6348
6353
  let G = () => {
@@ -6350,9 +6355,9 @@ var _hoisted_1$5 = {
6350
6355
  }, K = ref([0, 0]), q = () => {
6351
6356
  if (K.value[0] === 0 || K.value[1] === 0) return 0;
6352
6357
  let e = calcPixelSize(), t = K.value[1] + 2 * e - 8;
6353
- No.value = 2 + (K.value[0] - t - 4 / 2 - 2) * L.value;
6354
- }, No = ref(0), Po = () => inBrowser() ? L.value > MID_PROGRESS ? n.activeColor ? parseColor(n.activeColor) : N.value ? getGlobalThemeColor("primary", 2) : getGlobalThemeColor("primary", 6) : n.inactiveColor ? parseColor(n.inactiveColor) : N.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 8) : TRANSPARENT_RGBA_COLOR_OBJECT, Fo = computed(() => {
6355
- let e = Po();
6358
+ Mo.value = 2 + (K.value[0] - t - 4 / 2 - 2) * L.value;
6359
+ }, Mo = ref(0), No = () => inBrowser() ? L.value > MID_PROGRESS ? n.activeColor ? parseColor(n.activeColor) : N.value ? getGlobalThemeColor("primary", 2) : getGlobalThemeColor("primary", 6) : n.inactiveColor ? parseColor(n.inactiveColor) : N.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 8) : TRANSPARENT_RGBA_COLOR_OBJECT, Po = computed(() => {
6360
+ let e = No();
6356
6361
  return e ? rgbaColor2string(e) : void 0;
6357
6362
  });
6358
6363
  watch([
@@ -6369,11 +6374,11 @@ var _hoisted_1$5 = {
6369
6374
  N,
6370
6375
  () => n.activeColor,
6371
6376
  () => n.inactiveColor,
6372
- No
6377
+ Mo
6373
6378
  ], () => {
6374
- Ro();
6379
+ Lo();
6375
6380
  });
6376
- let Lo = () => {
6381
+ let Io = () => {
6377
6382
  let e = canvasPreprocess(x, b);
6378
6383
  if (!e) return;
6379
6384
  let { ctx: t, width: r, height: i } = e, a = Math.min(r, i), o = calcPixelSize(), s = getGlobalThemeColor("neutral", 1);
@@ -6381,13 +6386,13 @@ var _hoisted_1$5 = {
6381
6386
  t.fillStyle = rgbaColor2string(s);
6382
6387
  let c = Math.round(a / 2 - o / 2);
6383
6388
  n.shape === "round" ? drawSmoothCircle(t, c, c, c, 0, Math.PI * 2, o) : t.fillRect(0, 0, a, a), floodFill(t, Math.round(c + 1), Math.round(c + 1), s);
6384
- }, Ro = () => {
6389
+ }, Lo = () => {
6385
6390
  let e = canvasPreprocess(w, g);
6386
6391
  if (!e) return;
6387
- let { ctx: t, width: r, height: i, canvas: a } = e, o = calcPixelSize(), s = getBorderRadius(a, o, void 0, n.shape, "medium", !1, !1, !1), c = Po(), l = calcBorderCornerCenter(s, r, i, o);
6388
- c && (drawBorder$3(t, r, i, l, s, BORDER_CORNER_RAD_RANGE, c, o, 0, 0, I.value === "small" && n.shape === "round"), floodFill(t, Math.round(r / 2), Math.round(i / 2), c)), Lo();
6392
+ let { ctx: t, width: r, height: i, canvas: a } = e, o = calcPixelSize(), s = getBorderRadius(a, o, void 0, n.shape, "medium", !1, !1, !1), c = No(), l = calcBorderCornerCenter(s, r, i, o);
6393
+ c && (drawBorder$3(t, r, i, l, s, BORDER_CORNER_RAD_RANGE, c, o, 0, 0, I.value === "small" && n.shape === "round"), floodFill(t, Math.round(r / 2), Math.round(i / 2), c)), Io();
6389
6394
  }, J = () => {
6390
- Ro(), G();
6395
+ Lo(), G();
6391
6396
  };
6392
6397
  return useResizeObserver(w, J), useWatchGlobalCssVal(J), useTransitionEnd(w, J), (e, t) => (openBlock(), createElementBlock("label", {
6393
6398
  class: normalizeClass(["pixelium px-switch", {
@@ -6420,9 +6425,9 @@ var _hoisted_1$5 = {
6420
6425
  ref_key: "switchButtonRef",
6421
6426
  ref: x,
6422
6427
  style: normalizeStyle({
6423
- left: `${No.value}px`,
6424
- fill: Fo.value,
6425
- color: Fo.value
6428
+ left: `${Mo.value}px`,
6429
+ fill: Po.value,
6430
+ color: Po.value
6426
6431
  })
6427
6432
  }, [n.loading ? (openBlock(), createBlock(unref(spinner_third_solid_default), {
6428
6433
  key: 0,
@@ -6638,7 +6643,7 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6638
6643
  "blur"
6639
6644
  ],
6640
6645
  setup(t, { emit: n }) {
6641
- let r = t, i = n, p = inject(FORM_ITEM_PROVIDE), g = createProvideComputed("disabled", [p, r], "or"), b = createProvideComputed("readonly", [p, r], "or"), [x, w] = useControlledMode("modelValue", r, i, {
6646
+ let r = t, i = n, p = inject(FORM_ITEM_PROVIDE, void 0), g = createProvideComputed("disabled", [p, r], "or"), b = createProvideComputed("readonly", [p, r], "or"), [x, w] = useControlledMode("modelValue", r, i, {
6642
6647
  defaultField: "defaultValue",
6643
6648
  transform: (e) => transformModelValue(e, r, i)
6644
6649
  }), k = shallowRef(null), M = shallowRef(null), N = shallowRef(null), I = shallowRef(null), L = shallowRef(null), z = shallowRef(null), H = shallowRef(null), U = shallowRef(null), W = computed(() => Math.max(r.max - r.min, 0)), G = ref({
@@ -6647,8 +6652,8 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6647
6652
  }), K = ref({
6648
6653
  width: 0,
6649
6654
  height: 0
6650
- }), jo = () => {
6651
- let e = is.value;
6655
+ }), Ao = () => {
6656
+ let e = rs.value;
6652
6657
  if (!e) return;
6653
6658
  let t = e.getBoundingClientRect();
6654
6659
  G.value = {
@@ -6663,11 +6668,11 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6663
6668
  width: t.width,
6664
6669
  height: t.height
6665
6670
  };
6666
- }, Po = computed(() => r.range ? A(x.value) ? 0 : W.value > 0 ? (x.value[0] - r.min) / W.value : 0 : 0), Fo = computed(() => W.value === 0 ? 0 : A(x.value) ? (x.value - r.min) / W.value : (x.value[1] - r.min) / W.value), Lo = ref(0), Ro = ref(0), J = ref(0), Y = async () => {
6667
- if (await nextTick(), !r.range) Lo.value = calcThumbLeft(x.value, G.value, K.value, W.value, r);
6671
+ }, No = computed(() => r.range ? A(x.value) ? 0 : W.value > 0 ? (x.value[0] - r.min) / W.value : 0 : 0), Po = computed(() => W.value === 0 ? 0 : A(x.value) ? (x.value - r.min) / W.value : (x.value[1] - r.min) / W.value), Io = ref(0), Lo = ref(0), J = ref(0), Y = async () => {
6672
+ if (await nextTick(), !r.range) Io.value = calcThumbLeft(x.value, G.value, K.value, W.value, r);
6668
6673
  else {
6669
6674
  let e = x.value;
6670
- Ro.value = calcThumbLeft(e[0], G.value, K.value, W.value, r), J.value = calcThumbLeft(e[1], G.value, K.value, W.value, r);
6675
+ Lo.value = calcThumbLeft(e[0], G.value, K.value, W.value, r), J.value = calcThumbLeft(e[1], G.value, K.value, W.value, r);
6671
6676
  }
6672
6677
  };
6673
6678
  watch([
@@ -6681,20 +6686,20 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6681
6686
  ], () => {
6682
6687
  Y();
6683
6688
  }, { deep: !0 }), watch(() => r.range, (e, t) => {
6684
- w(e && !t ? [Vo(r.min), Vo(x.value)] : Vo(x.value[1]));
6689
+ w(e && !t ? [Bo(r.min), Bo(x.value)] : Bo(x.value[1]));
6685
6690
  });
6686
- let zo = computed(() => r.range && S(x.value) ? Math.min(Po.value, Fo.value) : 0), Bo = computed(() => Math.abs(Fo.value - Po.value));
6687
- function Vo(e) {
6691
+ let Ro = computed(() => r.range && S(x.value) ? Math.min(No.value, Po.value) : 0), zo = computed(() => Math.abs(Po.value - No.value));
6692
+ function Bo(e) {
6688
6693
  return clampValue(e, r);
6689
6694
  }
6690
- let Ho = ref(!1), X = ref(null);
6695
+ let Vo = ref(!1), X = ref(null);
6691
6696
  function $(e, t) {
6692
- g.value || b.value || (e.preventDefault(), Ho.value = !0, r.range && t && (X.value = t), document.addEventListener("mousemove", Uo), document.addEventListener("mouseup", qo), document.addEventListener("touchmove", Uo), document.addEventListener("touchend", qo), Go(e), i("dragStart", e));
6697
+ g.value || b.value || (e.preventDefault(), Vo.value = !0, r.range && t && (X.value = t), document.addEventListener("mousemove", Ho), document.addEventListener("mouseup", Ko), document.addEventListener("touchmove", Ho), document.addEventListener("touchend", Ko), Wo(e), i("dragStart", e));
6693
6698
  }
6694
- let Uo = (e) => {
6695
- Ko(e);
6696
- }, Wo = (e, t) => {
6697
- let n = X.value, i = is.value, a;
6699
+ let Ho = (e) => {
6700
+ Go(e);
6701
+ }, Uo = (e, t) => {
6702
+ let n = X.value, i = rs.value, a;
6698
6703
  if (!t) a = r.range ? X.value === "start" ? M.value : X.value === "end" ? N.value : null : k.value;
6699
6704
  else if (!r.range) a = k.value;
6700
6705
  else {
@@ -6706,26 +6711,26 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6706
6711
  thumbEl: a,
6707
6712
  targetType: n
6708
6713
  };
6709
- }, Go = async (e, t = !1, n = void 0) => {
6710
- if (!Ho.value && !t) return;
6711
- let { sliderEl: i, thumbEl: a, targetType: o } = Wo(e, t);
6714
+ }, Wo = async (e, t = !1, n = void 0) => {
6715
+ if (!Vo.value && !t) return;
6716
+ let { sliderEl: i, thumbEl: a, targetType: o } = Uo(e, t);
6712
6717
  if (!i || !a) return;
6713
6718
  let s = n;
6714
6719
  if (en(s) && (s = calcValueFromEvent(e, i, a, W.value, r)), r.range) {
6715
6720
  let e;
6716
- if (S(x.value) ? o === "start" ? e = [s, x.value[1]] : o === "end" && (e = [x.value[0], s]) : o === "start" ? e = [s, Vo(r.min)] : o === "end" && (e = [Vo(r.min), s]), !e) return;
6721
+ if (S(x.value) ? o === "start" ? e = [s, x.value[1]] : o === "end" && (e = [x.value[0], s]) : o === "start" ? e = [s, Bo(r.min)] : o === "end" && (e = [Bo(r.min), s]), !e) return;
6717
6722
  await w(e);
6718
6723
  } else await w(s);
6719
6724
  let c = calcThumbLeft(s, G.value, K.value, W.value, r);
6720
- r.range ? o === "start" ? Ro.value = c : o === "end" && (J.value = c) : Lo.value = c;
6721
- }, Ko = qe(Go, 20);
6722
- function qo(e) {
6723
- Ho.value && (Ho.value = !1, X.value = null, i("change", Rn(x.value)), p == null || p.changeHandler()), document.removeEventListener("mousemove", Uo), document.removeEventListener("mouseup", qo), document.removeEventListener("touchmove", Uo), document.removeEventListener("touchend", qo), i("dragEnd", e);
6725
+ r.range ? o === "start" ? Lo.value = c : o === "end" && (J.value = c) : Io.value = c;
6726
+ }, Go = qe(Wo, 20);
6727
+ function Ko(e) {
6728
+ Vo.value && (Vo.value = !1, X.value = null, i("change", Rn(x.value)), p == null || p.changeHandler()), document.removeEventListener("mousemove", Ho), document.removeEventListener("mouseup", Ko), document.removeEventListener("touchmove", Ho), document.removeEventListener("touchend", Ko), i("dragEnd", e);
6724
6729
  }
6725
6730
  onUnmounted(() => {
6726
- document.removeEventListener("mousemove", Uo), document.removeEventListener("mouseup", qo), document.removeEventListener("touchmove", Uo), document.removeEventListener("touchend", qo);
6731
+ document.removeEventListener("mousemove", Ho), document.removeEventListener("mouseup", Ko), document.removeEventListener("touchmove", Ho), document.removeEventListener("touchend", Ko);
6727
6732
  });
6728
- let Jo = ref([]);
6733
+ let qo = ref([]);
6729
6734
  watch([
6730
6735
  () => r.marks,
6731
6736
  () => r.max,
@@ -6736,55 +6741,55 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6736
6741
  G
6737
6742
  ], () => {
6738
6743
  nextTick(() => {
6739
- Jo.value = updateMarkPoints(G.value, W.value, r);
6744
+ qo.value = updateMarkPoints(G.value, W.value, r);
6740
6745
  });
6741
6746
  }, { deep: !0 });
6742
- let Yo = async (e, t) => {
6743
- g.value || b.value || (await Go(e, !0, t), A(t) && i("markSelect", t, e), i("change", Rn(x.value)), p == null || p.changeHandler());
6744
- }, Qo = (e) => {
6747
+ let Jo = async (e, t) => {
6748
+ g.value || b.value || (await Wo(e, !0, t), A(t) && i("markSelect", t, e), i("change", Rn(x.value)), p == null || p.changeHandler());
6749
+ }, Zo = (e) => {
6745
6750
  if (g.value || b.value) return;
6746
6751
  let t = e.target;
6747
- I.value && I.value.contains(t) || k.value && k.value.contains(t) || M.value && M.value.contains(t) || N.value && N.value.contains(t) || t !== is.value && is.value && is.value.focus();
6752
+ I.value && I.value.contains(t) || k.value && k.value.contains(t) || M.value && M.value.contains(t) || N.value && N.value.contains(t) || t !== rs.value && rs.value && rs.value.focus();
6753
+ }, $o = (e) => {
6754
+ e.target !== rs.value && i("focus", e);
6748
6755
  }, es = (e) => {
6749
- e.target !== is.value && i("focus", e);
6750
- }, ts = (e) => {
6751
- e.target !== is.value && (i("blur", e), p == null || p.blurHandler());
6752
- }, ns = useDarkMode(), rs = shallowRef(null), is = shallowRef(null);
6756
+ e.target !== rs.value && (i("blur", e), p == null || p.blurHandler());
6757
+ }, ts = useDarkMode(), ns = shallowRef(null), rs = shallowRef(null);
6753
6758
  onMounted(() => {
6754
6759
  nextTick(() => {
6755
- as(), jo(), q(), Y(), Jo.value = updateMarkPoints(G.value, W.value, r);
6760
+ is(), Ao(), q(), Y(), qo.value = updateMarkPoints(G.value, W.value, r);
6756
6761
  });
6757
6762
  }), watch([
6758
6763
  g,
6759
- ns,
6764
+ ts,
6765
+ Ro,
6760
6766
  zo,
6761
- Bo,
6762
6767
  () => r.range,
6768
+ Io,
6763
6769
  Lo,
6764
- Ro,
6765
6770
  J,
6766
- Jo,
6771
+ qo,
6767
6772
  x,
6768
6773
  () => r.direction,
6769
6774
  () => r.reverse
6770
6775
  ], () => {
6771
6776
  nextTick(() => {
6772
- as();
6777
+ is();
6773
6778
  });
6774
6779
  }, { deep: !0 });
6775
- let as = () => {
6776
- let e = calcPixelSize(), t = canvasPreprocess(is, rs, r.direction === "vertical" ? e : 0, r.direction === "vertical" ? 0 : e);
6780
+ let is = () => {
6781
+ let e = calcPixelSize(), t = canvasPreprocess(rs, ns, r.direction === "vertical" ? e : 0, r.direction === "vertical" ? 0 : e);
6777
6782
  if (!t) return;
6778
6783
  let { ctx: n, width: i, height: a } = t, o = getGlobalThemeColor("neutral", 10), s = calcBorderCornerCenter(fillArr(e, 4), i, a, e);
6779
6784
  o && drawBorder$2(n, i, a, s, o, e);
6780
6785
  let c = g.value ? getGlobalThemeColor("primary", 2) : getGlobalThemeColor("primary", 6), l = g.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
6781
- c && l && drawRange(n, i, a, zo.value, Bo.value, c, l, e, r.direction, r.reverse);
6786
+ c && l && drawRange(n, i, a, Ro.value, zo.value, c, l, e, r.direction, r.reverse);
6782
6787
  let u = BORDER_CORNER_RAD_RANGE, p = g.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
6783
- p && o && drawThumb(k, L, M, z, N, H, r.range, u, e, p, o), Jo.value.length && drawMark(is, U, u, x.value, r.direction, r.reverse, r.disabled, Jo.value, e);
6784
- }, os = () => {
6785
- as(), jo(), q();
6788
+ p && o && drawThumb(k, L, M, z, N, H, r.range, u, e, p, o), qo.value.length && drawMark(rs, U, u, x.value, r.direction, r.reverse, r.disabled, qo.value, e);
6789
+ }, as = () => {
6790
+ is(), Ao(), q();
6786
6791
  };
6787
- return useResizeObserver(is, os), useWatchGlobalCssVal(os), useTransitionEnd(is, os), (t, n) => {
6792
+ return useResizeObserver(rs, as), useWatchGlobalCssVal(as), useTransitionEnd(rs, as), (t, n) => {
6788
6793
  var i;
6789
6794
  return openBlock(), createElementBlock("div", {
6790
6795
  class: normalizeClass(["pixelium px-slider", {
@@ -6795,19 +6800,19 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6795
6800
  "px-slider__reverse": !!r.reverse
6796
6801
  }]),
6797
6802
  ref_key: "sliderRef",
6798
- ref: is,
6799
- onClick: [withModifiers(Yo, ["self"]), Qo],
6803
+ ref: rs,
6804
+ onClick: [withModifiers(Jo, ["self"]), Zo],
6800
6805
  tabindex: unref(g) || unref(b) ? -1 : 0,
6801
- onFocusin: es,
6802
- onFocusout: ts
6806
+ onFocusin: $o,
6807
+ onFocusout: es
6803
6808
  }, [
6804
6809
  createElementVNode("div", {
6805
6810
  class: "px-slider-mark-wrapper",
6806
6811
  ref_key: "markWrapperRef",
6807
6812
  ref: I
6808
- }, [Jo.value.length ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(Jo.value, (n) => (openBlock(), createElementBlock(Fragment, { key: n.value }, [createElementVNode("div", {
6813
+ }, [qo.value.length ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(qo.value, (n) => (openBlock(), createElementBlock(Fragment, { key: n.value }, [createElementVNode("div", {
6809
6814
  tabindex: unref(g) || unref(b) ? -1 : 0,
6810
- onClick: (e) => Yo(e, n.value),
6815
+ onClick: (e) => Jo(e, n.value),
6811
6816
  class: "px-slider-mark",
6812
6817
  style: normalizeStyle(unref(getMarkStyle)(n.markLeft, r.direction, r.reverse))
6813
6818
  }, [renderSlot(t.$slots, "mark", {
@@ -6815,7 +6820,7 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6815
6820
  label: n.label
6816
6821
  }, () => [createTextVNode(toDisplayString(n.label), 1)])], 12, _hoisted_2), createElementVNode("div", {
6817
6822
  tabindex: unref(g) || unref(b) ? -1 : 0,
6818
- onClick: (e) => Yo(e, n.value),
6823
+ onClick: (e) => Jo(e, n.value),
6819
6824
  class: "px-slider-dot",
6820
6825
  style: normalizeStyle(unref(getDotStyle)(n.left, r.direction, r.reverse))
6821
6826
  }, null, 12, _hoisted_3)], 64))), 128)) : createCommentVNode("", !0)], 512),
@@ -6828,8 +6833,8 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6828
6833
  default: withCtx(() => [createElementVNode("div", {
6829
6834
  class: "px-slider-thumb",
6830
6835
  style: normalizeStyle({
6831
- left: r.direction === "horizontal" ? Lo.value + "px" : void 0,
6832
- bottom: r.direction === "horizontal" ? void 0 : Lo.value + "px"
6836
+ left: r.direction === "horizontal" ? Io.value + "px" : void 0,
6837
+ bottom: r.direction === "horizontal" ? void 0 : Io.value + "px"
6833
6838
  }),
6834
6839
  onMousedown: $,
6835
6840
  onTouchstartPassive: $,
@@ -6847,8 +6852,8 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6847
6852
  key: 1,
6848
6853
  class: "px-slider-thumb",
6849
6854
  style: normalizeStyle({
6850
- left: r.direction === "horizontal" ? Lo.value + "px" : void 0,
6851
- bottom: r.direction === "horizontal" ? void 0 : Lo.value + "px"
6855
+ left: r.direction === "horizontal" ? Io.value + "px" : void 0,
6856
+ bottom: r.direction === "horizontal" ? void 0 : Io.value + "px"
6852
6857
  }),
6853
6858
  onMousedown: $,
6854
6859
  onTouchstartPassive: $,
@@ -6869,8 +6874,8 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6869
6874
  default: withCtx(() => [createElementVNode("div", {
6870
6875
  class: "px-slider-thumb px-slider-thumb-start",
6871
6876
  style: normalizeStyle({
6872
- left: r.direction === "horizontal" ? Ro.value + "px" : void 0,
6873
- bottom: r.direction === "horizontal" ? void 0 : Ro.value + "px"
6877
+ left: r.direction === "horizontal" ? Lo.value + "px" : void 0,
6878
+ bottom: r.direction === "horizontal" ? void 0 : Lo.value + "px"
6874
6879
  }),
6875
6880
  onMousedown: n[0] || (n[0] = (e) => $(e, "start")),
6876
6881
  onTouchstartPassive: n[1] || (n[1] = (e) => $(e, "start")),
@@ -6887,8 +6892,8 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6887
6892
  key: 1,
6888
6893
  class: "px-slider-thumb px-slider-thumb-start",
6889
6894
  style: normalizeStyle({
6890
- left: r.direction === "horizontal" ? Ro.value + "px" : void 0,
6891
- bottom: r.direction === "horizontal" ? void 0 : Ro.value + "px"
6895
+ left: r.direction === "horizontal" ? Lo.value + "px" : void 0,
6896
+ bottom: r.direction === "horizontal" ? void 0 : Lo.value + "px"
6892
6897
  }),
6893
6898
  onMousedown: n[2] || (n[2] = (e) => $(e, "start")),
6894
6899
  onTouchstartPassive: n[3] || (n[3] = (e) => $(e, "start")),
@@ -6941,7 +6946,7 @@ var _hoisted_1$4 = ["tabindex"], _hoisted_2 = ["tabindex", "onClick"], _hoisted_
6941
6946
  }, null, 512)], 44, _hoisted_12))], 64)) : createCommentVNode("", !0),
6942
6947
  createElementVNode("canvas", {
6943
6948
  ref_key: "canvasRef",
6944
- ref: rs,
6949
+ ref: ns,
6945
6950
  class: "px-slider-canvas"
6946
6951
  }, null, 512),
6947
6952
  createElementVNode("canvas", {
@@ -7013,7 +7018,7 @@ var _hoisted_1$3 = [
7013
7018
  let n = ref(null), r = ref(null), i = e, a = t, [o, s] = useControlledMode("modelValue", i, a, {
7014
7019
  defaultField: "defaultValue",
7015
7020
  transform: (e) => !!e
7016
- }), p = inject(FORM_ITEM_PROVIDE, void 0), g = inject(RADIO_GROUP_PROVIDE), b = createProvideComputed("size", () => [
7021
+ }), p = inject(FORM_ITEM_PROVIDE, void 0), g = inject(RADIO_GROUP_PROVIDE, void 0), b = createProvideComputed("size", () => [
7017
7022
  g,
7018
7023
  i.size && i,
7019
7024
  p,
@@ -7046,18 +7051,18 @@ var _hoisted_1$3 = [
7046
7051
  }, z = async (e) => {
7047
7052
  let t = e.target.checked;
7048
7053
  o.value = t, a("input", t, e), await s(t), p == null || p.inputHandler();
7049
- }, V = useDarkMode(), Oo = calcPixelSize(), H = () => {
7054
+ }, V = useDarkMode(), Do = calcPixelSize(), H = () => {
7050
7055
  let e = canvasPreprocess(n, r);
7051
7056
  if (!e) return;
7052
7057
  let { ctx: t, width: i, height: a, canvas: s } = e;
7053
7058
  t.clearRect(0, 0, i, a);
7054
7059
  let c = getGlobalThemeColorString("neutral", 1), l = o.value ? x.value ? getGlobalThemeColorString("primary", 2) : k.value && !w.value ? getGlobalThemeColorString("primary", 5) : getGlobalThemeColorString("primary", 6) : x.value ? getGlobalThemeColorString("neutral", 8) : k.value && !w.value ? getGlobalThemeColorString("primary", 5) : getGlobalThemeColorString("neutral", 10);
7055
- if (T.value === "retro") o.value ? drawPixelTriangle(t, i, a, l, Oo) : drawMaskedPixelTriangle(t, i, a, l, Oo);
7060
+ if (T.value === "retro") o.value ? drawPixelTriangle(t, i, a, l, Do) : drawMaskedPixelTriangle(t, i, a, l, Do);
7056
7061
  else {
7057
- let e = getBorderRadius(s, Oo, void 0, "round", void 0, !1, !1, !1);
7058
- drawBorder$1(t, i, a, calcBorderCornerCenter(e, i, a, Oo), e, BORDER_CORNER_RAD_RANGE, l, Oo);
7059
- let n = Math.min(i, a), r = Math.ceil(n / 2 - Oo / 2) + 1;
7060
- c && floodFill(t, r, r, parseColor(c)), o.value && drawRadioCircleMark(t, n, l, Oo);
7062
+ let e = getBorderRadius(s, Do, void 0, "round", void 0, !1, !1, !1);
7063
+ drawBorder$1(t, i, a, calcBorderCornerCenter(e, i, a, Do), e, BORDER_CORNER_RAD_RANGE, l, Do);
7064
+ let n = Math.min(i, a), r = Math.ceil(n / 2 - Do / 2) + 1;
7065
+ c && floodFill(t, r, r, parseColor(c)), o.value && drawRadioCircleMark(t, n, l, Do);
7061
7066
  }
7062
7067
  };
7063
7068
  return onMounted(() => {
@@ -7126,7 +7131,7 @@ var _hoisted_1$3 = [
7126
7131
  },
7127
7132
  emits: ["update:modelValue", "change"],
7128
7133
  setup(t, { emit: n }) {
7129
- let r = t, i = n, a = inject(FORM_ITEM_PROVIDE), p = createProvideComputed("disabled", [a, r], "or"), g = createProvideComputed("readonly", [a, r], "or"), [b, x] = useControlledMode("modelValue", r, i, {
7134
+ let r = t, i = n, a = inject(FORM_ITEM_PROVIDE, void 0), p = createProvideComputed("disabled", [a, r], "or"), g = createProvideComputed("readonly", [a, r], "or"), [b, x] = useControlledMode("modelValue", r, i, {
7130
7135
  transform: (e) => e,
7131
7136
  defaultField: "defaultValue"
7132
7137
  }), w = createProvideComputed("size", () => [
@@ -7238,7 +7243,7 @@ var check_solid_default = /* @__PURE__ */ defineComponent({
7238
7243
  let n = e, r = t, [i, a] = useControlledMode("modelValue", n, r, {
7239
7244
  defaultField: "defaultValue",
7240
7245
  transform: (e) => !!e
7241
- }), p = inject(FORM_ITEM_PROVIDE), g = inject(CHECKBOX_GROUP_PROVIDE), b = createProvideComputed("size", () => [
7246
+ }), p = inject(FORM_ITEM_PROVIDE, void 0), g = inject(CHECKBOX_GROUP_PROVIDE, void 0), b = createProvideComputed("size", () => [
7242
7247
  g,
7243
7248
  n.size && n,
7244
7249
  p,
@@ -7359,7 +7364,7 @@ var check_solid_default = /* @__PURE__ */ defineComponent({
7359
7364
  let r = t, i = n, [a, p] = useControlledMode("modelValue", r, i, {
7360
7365
  transform: (e) => e || [],
7361
7366
  defaultField: "defaultValue"
7362
- }), g = inject(FORM_ITEM_PROVIDE), b = createProvideComputed("disabled", [g, r], "or"), x = createProvideComputed("readonly", [g, r], "or"), w = (e) => y(e) ? e : e.key ?? e.value, T = createProvideComputed("size", () => [
7367
+ }), g = inject(FORM_ITEM_PROVIDE, void 0), b = createProvideComputed("disabled", [g, r], "or"), x = createProvideComputed("readonly", [g, r], "or"), w = (e) => y(e) ? e : e.key ?? e.value, T = createProvideComputed("size", () => [
7363
7368
  r.size && r,
7364
7369
  g,
7365
7370
  r