yuyeon 0.3.0-rc.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yuyeon.js CHANGED
@@ -722,13 +722,13 @@ const Nr = "YSpinnerRing", Va = /* @__PURE__ */ V({
722
722
  disabled: e.disabled ? !0 : void 0
723
723
  }, {
724
724
  default: () => {
725
- var x, C;
725
+ var x, C, w;
726
726
  return [d("span", {
727
727
  class: ["y-button__content"]
728
- }, [e.loading && d(Va, W({
728
+ }, [e.loading && (n.loading ? (x = n.loading) == null ? void 0 : x.call(n) : d(Va, W({
729
729
  width: "24",
730
730
  height: "24"
731
- }), null), (x = n.default) == null ? void 0 : x.call(n)]), (C = n.append) == null ? void 0 : C.call(n)];
731
+ }), null)), (C = n.default) == null ? void 0 : C.call(n)]), (w = n.append) == null ? void 0 : w.call(n)];
732
732
  }
733
733
  }), [[Mt("plate-wave"), !e.noWave && !e.loading]]);
734
734
  }), {
@@ -8757,8 +8757,9 @@ const Gi = F({
8757
8757
  const v = p != null ? Number(p) : n.getYear(o.value);
8758
8758
  return n.startOfYear(n.setYear(n.date(), v));
8759
8759
  }, (p) => n.getYear(p)), s = G(e, "month", void 0, (p) => {
8760
- const v = p != null ? Number(p) : n.getMonth(o.value), h = n.setYear(n.date(), n.getYear(c.value));
8761
- return n.setMonth(h, v);
8760
+ const v = p != null ? Number(p) : n.getMonth(o.value);
8761
+ let h = n.setYear(n.date(), n.getYear(c.value));
8762
+ return h = n.startOfMonth(h), n.setMonth(h, v);
8762
8763
  }, (p) => n.getMonth(p)), u = k(() => {
8763
8764
  const p = n.getWeekArray(s.value), v = p.flat(), h = 6 * 7;
8764
8765
  if (v.length < h) {
@@ -9082,8 +9083,8 @@ const Gi = F({
9082
9083
  const s = Number(e.year);
9083
9084
  isNaN(s) || (o.value = s);
9084
9085
  const u = k(() => {
9085
- const v = a.setYear(a.date(), +o.value);
9086
- return a.setMonth(v, +l.value);
9086
+ const v = a.startOfMonth(a.date());
9087
+ return a.setYear(v, +o.value), a.setMonth(v, +l.value);
9087
9088
  }), g = k(() => a.format(u.value, "month")), m = k(() => a.format(u.value, "year"));
9088
9089
  function x() {
9089
9090
  r.value = r.value === "month" ? "date" : "month";