@innosolutions/inno-calendar 1.0.69 → 1.0.70
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/{agenda-widget-QSVTdgaz.js → agenda-widget-GRHaHwQ2.js} +38 -35
- package/dist/agenda-widget-GRHaHwQ2.js.map +1 -0
- package/dist/agenda-widget-TLJuxen3.cjs +2 -0
- package/dist/agenda-widget-TLJuxen3.cjs.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/views/timeline-view.d.ts.map +1 -1
- package/dist/core/context/inno-calendar-provider.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/core/types.d.ts +16 -9
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/{slot-selection-context-CjS_VIPj.js → slot-selection-context-D6zo91K_.js} +121 -114
- package/dist/slot-selection-context-D6zo91K_.js.map +1 -0
- package/dist/slot-selection-context-DvTn_R-Z.cjs +2 -0
- package/dist/slot-selection-context-DvTn_R-Z.cjs.map +1 -0
- package/dist/{tailwind-calendar-KJ1XJ4gr.cjs → tailwind-calendar-BA7v_Wgx.cjs} +2 -2
- package/dist/{tailwind-calendar-KJ1XJ4gr.cjs.map → tailwind-calendar-BA7v_Wgx.cjs.map} +1 -1
- package/dist/{tailwind-calendar-B6qsueM3.js → tailwind-calendar-Bh1yB1jf.js} +2 -2
- package/dist/{tailwind-calendar-B6qsueM3.js.map → tailwind-calendar-Bh1yB1jf.js.map} +1 -1
- package/dist/{week-view-B1KsZsC3.js → week-view-BbtTpJTU.js} +2 -2
- package/dist/{week-view-B1KsZsC3.js.map → week-view-BbtTpJTU.js.map} +1 -1
- package/dist/{week-view-Dv-Uz0eT.cjs → week-view-D1wefMb8.cjs} +2 -2
- package/dist/{week-view-Dv-Uz0eT.cjs.map → week-view-D1wefMb8.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/agenda-widget-BJroIHYG.cjs +0 -2
- package/dist/agenda-widget-BJroIHYG.cjs.map +0 -1
- package/dist/agenda-widget-QSVTdgaz.js.map +0 -1
- package/dist/slot-selection-context-CjS_VIPj.js.map +0 -1
- package/dist/slot-selection-context-CmE-aWgt.cjs +0 -2
- package/dist/slot-selection-context-CmE-aWgt.cjs.map +0 -1
|
@@ -2,8 +2,8 @@ import { jsx as e, jsxs as r, Fragment as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { g as ct, u as kt, C as Nt } from "./use-calendar--JnbGA3L.js";
|
|
3
3
|
import { useCallback as B, useState as le, useEffect as he, forwardRef as We, useRef as ae, useMemo as re, useLayoutEffect as dt, useImperativeHandle as Dt } from "react";
|
|
4
4
|
import { c as f } from "./index-DtaLkIY8.js";
|
|
5
|
-
import { P as ut, p as ht, o as mt, z as pe, I as Ct, J as Mt, B as Me, K as Et, L as Ye, x as xe, F as ve, y as we, k as Lt, C as St, M as Ke, A as Tt, W as
|
|
6
|
-
import { j as At, D as jt, I as Pt, e as Wt, S as _t } from "./slot-selection-context-
|
|
5
|
+
import { P as ut, p as ht, o as mt, z as pe, I as Ct, J as Mt, B as Me, K as Et, L as Ye, x as xe, F as ve, y as we, k as Lt, C as St, M as Ke, A as Tt, W as It, c as Ht, N as zt } from "./week-view-BbtTpJTU.js";
|
|
6
|
+
import { j as At, D as jt, I as Pt, e as Wt, S as _t } from "./slot-selection-context-D6zo91K_.js";
|
|
7
7
|
import { aG as ue, b2 as _e, L as ft, as as $t, a2 as Ft, ad as Ot, o as gt, Y as Bt } from "./position-utils-BzmOPdvQ.js";
|
|
8
8
|
function Rt({ view: t, className: n = "" }) {
|
|
9
9
|
return /* @__PURE__ */ e(
|
|
@@ -32,7 +32,7 @@ function Rt({ view: t, className: n = "" }) {
|
|
|
32
32
|
function qe({ view: t, className: n }) {
|
|
33
33
|
return /* @__PURE__ */ e(Rt, { view: t, className: n });
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ir(t) {
|
|
36
36
|
const {
|
|
37
37
|
events: n,
|
|
38
38
|
resources: a,
|
|
@@ -150,7 +150,7 @@ function Vt({ className: t }) {
|
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ie({ className: t }) {
|
|
154
154
|
return /* @__PURE__ */ e(
|
|
155
155
|
"svg",
|
|
156
156
|
{
|
|
@@ -325,7 +325,7 @@ const Qt = {
|
|
|
325
325
|
acceptAllEvents: "Accept all events",
|
|
326
326
|
deleteConfirmTitle: "Delete Event",
|
|
327
327
|
deleteConfirmDescription: "Are you sure you want to delete this event? This action cannot be undone."
|
|
328
|
-
},
|
|
328
|
+
}, He = We(
|
|
329
329
|
({ onClick: t, label: n, children: a, className: o, variant: s = "ghost", ...l }, p) => /* @__PURE__ */ r(xe, { children: [
|
|
330
330
|
/* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ e(
|
|
331
331
|
"button",
|
|
@@ -347,7 +347,7 @@ const Qt = {
|
|
|
347
347
|
/* @__PURE__ */ e(we, { side: "bottom", className: "text-xs", children: n })
|
|
348
348
|
] })
|
|
349
349
|
);
|
|
350
|
-
|
|
350
|
+
He.displayName = "IconButton";
|
|
351
351
|
function Zt({ src: t, alt: n, initials: a, className: o, isClient: s }) {
|
|
352
352
|
const [l, p] = le(!1);
|
|
353
353
|
return /* @__PURE__ */ e(
|
|
@@ -403,7 +403,7 @@ function Ge({
|
|
|
403
403
|
className: f(b && "grayscale")
|
|
404
404
|
}
|
|
405
405
|
),
|
|
406
|
-
b || c ? /* @__PURE__ */ e("div", { className: "absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full bg-white dark:bg-zinc-900 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-3 w-3 rounded-full bg-red-100 dark:bg-red-900/50 flex items-center justify-center", children: /* @__PURE__ */ e(Pe, { className: "h-2 w-2 text-red-600 dark:text-red-400 stroke-[3]" }) }) }) : h ? /* @__PURE__ */ e("div", { className: "absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full bg-white dark:bg-zinc-900 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-3 w-3 rounded-full bg-green-100 dark:bg-green-900/50 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
406
|
+
b || c ? /* @__PURE__ */ e("div", { className: "absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full bg-white dark:bg-zinc-900 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-3 w-3 rounded-full bg-red-100 dark:bg-red-900/50 flex items-center justify-center", children: /* @__PURE__ */ e(Pe, { className: "h-2 w-2 text-red-600 dark:text-red-400 stroke-[3]" }) }) }) : h ? /* @__PURE__ */ e("div", { className: "absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full bg-white dark:bg-zinc-900 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-3 w-3 rounded-full bg-green-100 dark:bg-green-900/50 flex items-center justify-center", children: /* @__PURE__ */ e(Ie, { className: "h-2 w-2 text-green-600 dark:text-green-400 stroke-[3]" }) }) }) : null
|
|
407
407
|
] }),
|
|
408
408
|
/* @__PURE__ */ r("div", { className: "!h-fit min-w-0 gap-0", children: [
|
|
409
409
|
/* @__PURE__ */ e("div", { className: "gap-0", children: /* @__PURE__ */ e(
|
|
@@ -578,10 +578,10 @@ function Je({
|
|
|
578
578
|
return a ? /* @__PURE__ */ e("div", { className: "flex h-48 items-center justify-center", children: /* @__PURE__ */ e(Ee, { className: "h-6 w-6 text-zinc-400" }) }) : /* @__PURE__ */ r(pe, { delayDuration: 300, children: [
|
|
579
579
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-0.5 p-3", children: [
|
|
580
580
|
/* @__PURE__ */ e("div", { className: "flex items-start justify-end gap-0.5", children: z ? z({ onClose: o }) : /* @__PURE__ */ r(ke, { children: [
|
|
581
|
-
Y && H && s && /* @__PURE__ */ e(
|
|
582
|
-
Y && w && p && /* @__PURE__ */ e(
|
|
581
|
+
Y && H && s && /* @__PURE__ */ e(He, { onClick: Ne, label: n.edit, children: /* @__PURE__ */ e(Ut, { className: "h-[18px] w-[18px]" }) }),
|
|
582
|
+
Y && w && p && /* @__PURE__ */ e(He, { onClick: te, label: n.cancel, children: /* @__PURE__ */ e(Vt, { className: "h-[18px] w-[18px]" }) }),
|
|
583
583
|
b && l && /* @__PURE__ */ e(
|
|
584
|
-
|
|
584
|
+
He,
|
|
585
585
|
{
|
|
586
586
|
onClick: ce,
|
|
587
587
|
label: n.delete,
|
|
@@ -589,7 +589,7 @@ function Je({
|
|
|
589
589
|
children: /* @__PURE__ */ e(pt, { className: "h-[18px] w-[18px]" })
|
|
590
590
|
}
|
|
591
591
|
),
|
|
592
|
-
/* @__PURE__ */ e(
|
|
592
|
+
/* @__PURE__ */ e(He, { onClick: o, label: n.close, children: /* @__PURE__ */ e(Pe, { className: "h-[18px] w-[18px]" }) })
|
|
593
593
|
] }) }),
|
|
594
594
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r("div", { className: "flex items-start gap-2", children: [
|
|
595
595
|
/* @__PURE__ */ e(
|
|
@@ -730,7 +730,7 @@ function Je({
|
|
|
730
730
|
},
|
|
731
731
|
disabled: F,
|
|
732
732
|
children: F ? /* @__PURE__ */ e(Ee, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ r(ke, { children: [
|
|
733
|
-
y && /* @__PURE__ */ e(
|
|
733
|
+
y && /* @__PURE__ */ e(Ie, { className: "h-3.5 w-3.5" }),
|
|
734
734
|
n.going
|
|
735
735
|
] })
|
|
736
736
|
}
|
|
@@ -758,13 +758,13 @@ function Je({
|
|
|
758
758
|
),
|
|
759
759
|
onClick: () => h(t),
|
|
760
760
|
children: [
|
|
761
|
-
/* @__PURE__ */ e(
|
|
761
|
+
/* @__PURE__ */ e(Ie, { className: "h-3.5 w-3.5 mr-2 text-green-600" }),
|
|
762
762
|
n.acceptThisEvent
|
|
763
763
|
]
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
/* @__PURE__ */ r(Ye, { onClick: () => h(t), children: [
|
|
767
|
-
/* @__PURE__ */ e(
|
|
767
|
+
/* @__PURE__ */ e(Ie, { className: "h-3.5 w-3.5 mr-2 text-green-600" }),
|
|
768
768
|
n.acceptAllEvents
|
|
769
769
|
] })
|
|
770
770
|
] })
|
|
@@ -782,7 +782,7 @@ function Je({
|
|
|
782
782
|
},
|
|
783
783
|
disabled: F,
|
|
784
784
|
children: F ? /* @__PURE__ */ e(Ee, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ r(ke, { children: [
|
|
785
|
-
y && /* @__PURE__ */ e(
|
|
785
|
+
y && /* @__PURE__ */ e(Ie, { className: "h-3.5 w-3.5" }),
|
|
786
786
|
n.going
|
|
787
787
|
] })
|
|
788
788
|
}
|
|
@@ -841,7 +841,7 @@ function Je({
|
|
|
841
841
|
)
|
|
842
842
|
] });
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Hr({
|
|
845
845
|
event: t,
|
|
846
846
|
children: n,
|
|
847
847
|
open: a,
|
|
@@ -1063,7 +1063,7 @@ function Te({
|
|
|
1063
1063
|
enableDrag: $ = !0,
|
|
1064
1064
|
resourceColumnConfig: F
|
|
1065
1065
|
}) {
|
|
1066
|
-
const R = F?.variant ?? "
|
|
1066
|
+
const R = F?.variant ?? "marquee", I = F?.showAvatar ?? "auto", L = ae(null), W = At(), [z, X] = le(null), M = ae(!1), [_, A] = le(null), K = s ?? /* @__PURE__ */ new Date(), q = !0, Y = v?.from ?? ln, g = v?.to ?? cn, C = g - Y, u = re(() => {
|
|
1067
1067
|
const i = new Date(K);
|
|
1068
1068
|
if (t === 1 || t === 3)
|
|
1069
1069
|
return i.setHours(0, 0, 0, 0), i;
|
|
@@ -1475,15 +1475,18 @@ function Te({
|
|
|
1475
1475
|
S?.resourceHeader
|
|
1476
1476
|
),
|
|
1477
1477
|
children: [
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1478
|
+
(() => {
|
|
1479
|
+
const x = !!i.user.avatar;
|
|
1480
|
+
return I === !0 || I === "auto" && x ? /* @__PURE__ */ e(
|
|
1481
|
+
fn,
|
|
1482
|
+
{
|
|
1483
|
+
className: "size-7",
|
|
1484
|
+
src: i.user.avatar,
|
|
1485
|
+
alt: i.user.name,
|
|
1486
|
+
fallback: dn(i.user.name)
|
|
1487
|
+
}
|
|
1488
|
+
) : null;
|
|
1489
|
+
})(),
|
|
1487
1490
|
R === "marquee" ? /* @__PURE__ */ e(
|
|
1488
1491
|
vn,
|
|
1489
1492
|
{
|
|
@@ -1766,7 +1769,7 @@ function Tn() {
|
|
|
1766
1769
|
}
|
|
1767
1770
|
);
|
|
1768
1771
|
}
|
|
1769
|
-
function
|
|
1772
|
+
function In() {
|
|
1770
1773
|
return /* @__PURE__ */ e(
|
|
1771
1774
|
"svg",
|
|
1772
1775
|
{
|
|
@@ -1783,7 +1786,7 @@ function Hn() {
|
|
|
1783
1786
|
}
|
|
1784
1787
|
);
|
|
1785
1788
|
}
|
|
1786
|
-
function
|
|
1789
|
+
function Hn() {
|
|
1787
1790
|
return /* @__PURE__ */ e(
|
|
1788
1791
|
"svg",
|
|
1789
1792
|
{
|
|
@@ -1994,7 +1997,7 @@ function zn({
|
|
|
1994
1997
|
onPointerUp: _,
|
|
1995
1998
|
onPointerLeave: _,
|
|
1996
1999
|
tabIndex: o.canLeft ? 0 : -1,
|
|
1997
|
-
children: /* @__PURE__ */ e(
|
|
2000
|
+
children: /* @__PURE__ */ e(In, {})
|
|
1998
2001
|
}
|
|
1999
2002
|
),
|
|
2000
2003
|
/* @__PURE__ */ e(
|
|
@@ -2031,7 +2034,7 @@ function zn({
|
|
|
2031
2034
|
onPointerUp: _,
|
|
2032
2035
|
onPointerLeave: _,
|
|
2033
2036
|
tabIndex: o.canRight ? 0 : -1,
|
|
2034
|
-
children: /* @__PURE__ */ e(
|
|
2037
|
+
children: /* @__PURE__ */ e(Hn, {})
|
|
2035
2038
|
}
|
|
2036
2039
|
),
|
|
2037
2040
|
/* @__PURE__ */ e(
|
|
@@ -2212,7 +2215,7 @@ function jn({
|
|
|
2212
2215
|
switch (M) {
|
|
2213
2216
|
case "day":
|
|
2214
2217
|
return /* @__PURE__ */ e(
|
|
2215
|
-
|
|
2218
|
+
Ht,
|
|
2216
2219
|
{
|
|
2217
2220
|
events: m,
|
|
2218
2221
|
date: A,
|
|
@@ -2228,7 +2231,7 @@ function jn({
|
|
|
2228
2231
|
);
|
|
2229
2232
|
case "week":
|
|
2230
2233
|
return /* @__PURE__ */ e(
|
|
2231
|
-
|
|
2234
|
+
It,
|
|
2232
2235
|
{
|
|
2233
2236
|
events: m,
|
|
2234
2237
|
date: A,
|
|
@@ -4104,9 +4107,9 @@ function Rr({
|
|
|
4104
4107
|
export {
|
|
4105
4108
|
Br as A,
|
|
4106
4109
|
jr as B,
|
|
4107
|
-
|
|
4110
|
+
Ir as C,
|
|
4108
4111
|
_r as D,
|
|
4109
|
-
|
|
4112
|
+
Hr as E,
|
|
4110
4113
|
zr as I,
|
|
4111
4114
|
Fr as S,
|
|
4112
4115
|
Te as T,
|
|
@@ -4118,4 +4121,4 @@ export {
|
|
|
4118
4121
|
$r as b,
|
|
4119
4122
|
Ar as c
|
|
4120
4123
|
};
|
|
4121
|
-
//# sourceMappingURL=agenda-widget-
|
|
4124
|
+
//# sourceMappingURL=agenda-widget-GRHaHwQ2.js.map
|