loon-bulma-react 2026.0.63 → 2026.0.64
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/index.js +19 -9
- package/dist/styles/calendar.scss +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16102,8 +16102,8 @@ function yy({ events: e, onEventClick: n, options: r, calendarType: i }) {
|
|
|
16102
16102
|
t.useEffect(() => {
|
|
16103
16103
|
o(e.slice(4));
|
|
16104
16104
|
}, [e]);
|
|
16105
|
-
function l() {
|
|
16106
|
-
c(!s);
|
|
16105
|
+
function l(e) {
|
|
16106
|
+
e.stopPropagation(), c(!s);
|
|
16107
16107
|
}
|
|
16108
16108
|
return /* @__PURE__ */ x(t.Fragment, { children: [s && a.map((e) => e.allDay ? /* @__PURE__ */ b(hy, {
|
|
16109
16109
|
desc: (e) => /* @__PURE__ */ b(_y, {
|
|
@@ -16290,15 +16290,25 @@ function wy({ weekNr: e }) {
|
|
|
16290
16290
|
//#region lib/components/Calendar/Month/MonthView.tsx
|
|
16291
16291
|
function Ty({ viewDate: e, options: n = {}, onEventClick: r, onDayClick: i, events: a = [] }) {
|
|
16292
16292
|
function o(e) {
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16293
|
+
function t(e) {
|
|
16294
|
+
return o.filter((t) => py(e.startOf("day"), e.endOf("day"), t)).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e._startDateTime.valueOf() - t._startDateTime.valueOf());
|
|
16295
|
+
}
|
|
16296
|
+
let r = e.startOf("month").startOf("week").startOf("day"), i = e.endOf("month").endOf("week").plus({ days: 1 }).startOf("day"), o = a.map((e) => my(e, n)).filter((e) => py(r, i, e)), c = r.clone(), l = [];
|
|
16297
|
+
for (; c < i;) {
|
|
16298
|
+
if (s.has(c.weekDay)) {
|
|
16299
|
+
let e = t(c);
|
|
16300
|
+
l.push([c, e]);
|
|
16298
16301
|
}
|
|
16299
|
-
|
|
16302
|
+
c = c.plus({ days: 1 });
|
|
16300
16303
|
}
|
|
16301
|
-
|
|
16304
|
+
if (l.length % s.size < 6) {
|
|
16305
|
+
let e = i.clone();
|
|
16306
|
+
for (let n = 0; n < 7; n++) if (e = e.plus({ days: 1 }), s.has(e.weekDay)) {
|
|
16307
|
+
let n = t(e);
|
|
16308
|
+
l.push([e, n]);
|
|
16309
|
+
}
|
|
16310
|
+
}
|
|
16311
|
+
return l;
|
|
16302
16312
|
}
|
|
16303
16313
|
let s = n?.visibleDays && n?.visibleDays?.size !== 0 ? n?.visibleDays : /* @__PURE__ */ new Set([
|
|
16304
16314
|
1,
|