@progress/kendo-react-scheduler 9.0.0-develop.2 → 9.0.0-develop.21
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/README.md +28 -28
- package/Scheduler.mjs +42 -65
- package/components/BaseView.mjs +1 -10
- package/components/CurrentTimeMarket.mjs +31 -46
- package/components/DateHeaderCell.mjs +2 -8
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +46 -24
- package/components/SchedulerOccurrenceDialog.mjs +5 -7
- package/components/SchedulerRemoveDialog.mjs +42 -31
- package/components/ShowMoreItemsButton.mjs +30 -32
- package/components/TimeHeaderCell.mjs +2 -8
- package/components/footer/SchedulerFooter.js +1 -1
- package/components/footer/SchedulerFooter.mjs +20 -21
- package/components/footer/bussiness-hours/BussinessHours.mjs +15 -16
- package/components/header/SchedulerHeader.mjs +18 -19
- package/components/header/navigation/NavigationDatePicker.mjs +12 -43
- package/components/header/navigation/SchedulerNavigation.mjs +15 -16
- package/components/header/view-selector/SchedulerViewSelector.mjs +15 -16
- package/components/header/view-selector/ViewSelectorItem.mjs +3 -6
- package/components/header/view-selector/ViewSelectorList.mjs +4 -7
- package/context/SchedulerContext.mjs +10 -2
- package/context/SchedulerEditItemContext.mjs +20 -4
- package/context/SchedulerEditSlotContext.mjs +4 -6
- package/context/SchedulerEditTaskContext.mjs +3 -1
- package/dist/cdn/js/kendo-react-scheduler.js +1 -1
- package/editors/FilterableComboBox.mjs +4 -10
- package/editors/SchedulerFormEditor.mjs +218 -297
- package/editors/ZonedDateTime.mjs +14 -27
- package/hooks/use-items-focus.mjs +2 -12
- package/hooks/use-items-selection.mjs +2 -12
- package/hooks/use-slots-focus.mjs +9 -1
- package/hooks/useCellSync.js +1 -1
- package/hooks/useCellSync.mjs +8 -9
- package/hooks/useRowSync.js +1 -1
- package/hooks/useRowSync.mjs +7 -5
- package/hooks/useSchedulerItem.js +1 -1
- package/hooks/useSchedulerItem.mjs +21 -16
- package/hooks/useSchedulerSlot.mjs +8 -10
- package/hooks/useSlotExpand.mjs +14 -21
- package/index.d.mts +88 -43
- package/index.d.ts +88 -43
- package/items/SchedulerEditItem.mjs +576 -471
- package/items/SchedulerItem.mjs +294 -304
- package/items/SchedulerItemContent.mjs +6 -10
- package/items/SchedulerProportionalViewItem.js +1 -1
- package/items/SchedulerProportionalViewItem.mjs +115 -111
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +112 -108
- package/items/hooks/use-show-occurrence-dialog.mjs +5 -1
- package/package-metadata.mjs +1 -1
- package/package.json +11 -11
- package/recurrence/RecurrenceEditor.js +1 -1
- package/recurrence/RecurrenceEditor.mjs +73 -92
- package/recurrence/RecurrenceFrequencyEditor.mjs +10 -18
- package/recurrence/RecurrenceRepeatOnWeekEditor.js +1 -1
- package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +7 -4
- package/recurrence/common.js +1 -1
- package/recurrence/common.mjs +45 -34
- package/services/itemsService.mjs +8 -9
- package/services/occurrenceService.mjs +1 -3
- package/slots/SchedulerEditSlot.mjs +111 -133
- package/slots/SchedulerSlot.mjs +148 -154
- package/slots/SchedulerViewSlot.mjs +7 -5
- package/tasks/SchedulerEditTask.mjs +108 -129
- package/tasks/SchedulerTask.mjs +39 -47
- package/tasks/SchedulerViewTask.mjs +8 -6
- package/utils/index.js +1 -1
- package/utils/index.mjs +99 -96
- package/views/agenda/AgendaView.mjs +50 -66
- package/views/common/HorizontalResourceIterator.mjs +33 -3
- package/views/common/VerticalResourceIterator.mjs +8 -1
- package/views/common/utils.js +1 -1
- package/views/common/utils.mjs +35 -34
- package/views/day/DayViewRowContent.mjs +3 -6
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +156 -187
- package/views/month/MonthView.mjs +18 -28
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +41 -90
- package/views/time/TimelineViewAllEventsRowContent.mjs +8 -1
- package/views/week/WeekView.mjs +1 -8
- package/views/week/WorkWeekView.mjs +1 -8
|
@@ -13,37 +13,48 @@ import { useLocalization as E } from "@progress/kendo-react-intl";
|
|
|
13
13
|
import { editorCancel as s, messages as l, editorDelete as m, deleteConfirmation as u, deleteDialogTitle as g } from "../messages/index.mjs";
|
|
14
14
|
import { canUseDOM as y } from "@progress/kendo-react-common";
|
|
15
15
|
import { Button as d } from "@progress/kendo-react-buttons";
|
|
16
|
-
const z = e.forwardRef(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
16
|
+
const z = e.forwardRef(
|
|
17
|
+
(c, f) => {
|
|
18
|
+
const { onClose: a, onCancel: n, onConfirm: r } = c, i = e.useRef(null);
|
|
19
|
+
e.useImperativeHandle(i, () => ({ props: c })), e.useImperativeHandle(
|
|
20
|
+
f,
|
|
21
|
+
() => i.current
|
|
22
|
+
);
|
|
23
|
+
const t = E(), C = t.toLanguageString(s, l[s]), v = t.toLanguageString(m, l[m]), p = t.toLanguageString(u, l[u]), D = t.toLanguageString(g, l[g]), R = e.useCallback(
|
|
24
|
+
({ syntheticEvent: o }) => {
|
|
25
|
+
if (!a)
|
|
26
|
+
return;
|
|
27
|
+
const h = {
|
|
28
|
+
syntheticEvent: o,
|
|
29
|
+
value: null,
|
|
30
|
+
target: i.current
|
|
31
|
+
};
|
|
32
|
+
a.call(void 0, h);
|
|
33
|
+
},
|
|
34
|
+
[a]
|
|
35
|
+
), M = e.useCallback(
|
|
36
|
+
(o) => {
|
|
37
|
+
n && n.call(void 0, {
|
|
38
|
+
syntheticEvent: o,
|
|
39
|
+
value: null
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
[n]
|
|
43
|
+
), S = e.useCallback(
|
|
44
|
+
(o) => {
|
|
45
|
+
r && r.call(void 0, {
|
|
46
|
+
syntheticEvent: o,
|
|
47
|
+
value: null
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
[r]
|
|
51
|
+
);
|
|
52
|
+
return y ? k.createPortal(
|
|
53
|
+
/* @__PURE__ */ e.createElement(L, { title: D, onClose: R }, p, /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(d, { onClick: M }, C), /* @__PURE__ */ e.createElement(d, { onClick: S }, v))),
|
|
54
|
+
document && document.body
|
|
55
|
+
) : null;
|
|
56
|
+
}
|
|
57
|
+
);
|
|
47
58
|
z.displayName = "KendoReactSchedulerRemoveDialog";
|
|
48
59
|
export {
|
|
49
60
|
z as SchedulerRemoveDialog
|
|
@@ -11,38 +11,36 @@ import { Button as s } from "@progress/kendo-react-buttons";
|
|
|
11
11
|
import { useLocalization as u } from "@progress/kendo-react-intl";
|
|
12
12
|
import { moreEvents as r, messages as f } from "../messages/index.mjs";
|
|
13
13
|
import { moreHorizontalIcon as d } from "@progress/kendo-svg-icons";
|
|
14
|
-
const k = e.forwardRef(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
n,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
);
|
|
45
|
-
});
|
|
14
|
+
const k = e.forwardRef(
|
|
15
|
+
(t, l) => {
|
|
16
|
+
const n = e.useRef(null), o = e.useRef(null), a = u();
|
|
17
|
+
e.useImperativeHandle(n, () => ({
|
|
18
|
+
element: o.current && o.current.element,
|
|
19
|
+
...t
|
|
20
|
+
})), e.useImperativeHandle(l, () => n.current);
|
|
21
|
+
const c = e.useCallback(
|
|
22
|
+
(i) => {
|
|
23
|
+
!t.onClick || !n.current || t.onClick.call(void 0, {
|
|
24
|
+
target: n.current,
|
|
25
|
+
syntheticEvent: i
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
[n, t.slot, t.onClick]
|
|
29
|
+
), m = a.toLanguageString(r, f[r]);
|
|
30
|
+
return /* @__PURE__ */ e.createElement(
|
|
31
|
+
s,
|
|
32
|
+
{
|
|
33
|
+
ref: o,
|
|
34
|
+
tabIndex: -1,
|
|
35
|
+
className: "k-more-events",
|
|
36
|
+
onClick: c,
|
|
37
|
+
"aria-label": m,
|
|
38
|
+
icon: "more-horizontal",
|
|
39
|
+
svgIcon: d
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
46
44
|
k.displayName = "KendoReactSchedulerShowMoreItemsButton";
|
|
47
45
|
export {
|
|
48
46
|
k as ShowMoreItemsButton
|
|
@@ -10,10 +10,7 @@ import * as e from "react";
|
|
|
10
10
|
import { useInternationalization as u } from "@progress/kendo-react-intl";
|
|
11
11
|
import { classNames as f } from "@progress/kendo-react-common";
|
|
12
12
|
const i = e.forwardRef((t, m) => {
|
|
13
|
-
const {
|
|
14
|
-
as: n = l.as,
|
|
15
|
-
...s
|
|
16
|
-
} = t, a = e.useRef(null), r = e.useRef(null), c = u(), o = e.useMemo(
|
|
13
|
+
const { as: n = l.as, ...s } = t, a = e.useRef(null), r = e.useRef(null), c = u(), o = e.useMemo(
|
|
17
14
|
() => f("k-scheduler-cell k-heading-cell", t.className),
|
|
18
15
|
[t.className]
|
|
19
16
|
);
|
|
@@ -27,10 +24,7 @@ const i = e.forwardRef((t, m) => {
|
|
|
27
24
|
...s,
|
|
28
25
|
className: o
|
|
29
26
|
},
|
|
30
|
-
c.formatDate(
|
|
31
|
-
t.date,
|
|
32
|
-
t.format ? t.format : l.format
|
|
33
|
-
)
|
|
27
|
+
c.formatDate(t.date, t.format ? t.format : l.format)
|
|
34
28
|
);
|
|
35
29
|
}), l = {
|
|
36
30
|
as: e.forwardRef(({ as: t, format: m, start: n, end: s, ...a }, r) => /* @__PURE__ */ e.createElement("div", { ...a, ref: r })),
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),i=require("@progress/kendo-react-common"),f=require("@progress/kendo-react-buttons");function b(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const t=b(d),s=t.forwardRef((e,n)=>{const{className:r,style:o,...u}=e,c=t.useRef(null),a=t.useRef(null);t.useImperativeHandle(c,()=>({element:a.current,props:e})),t.useImperativeHandle(n,()=>c.current);const m=t.useMemo(()=>i.classNames("k-scheduler-footer",e.className),[e.className]);return t.createElement(f.Toolbar,{ref:l=>{l&&(a.current=l.element)},className:m,style:{boxShadow:"none",...o},...u},e.children)});s.displayName="KendoReactSchedulerFooter";exports.SchedulerFooter=s;
|
|
@@ -9,27 +9,26 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { classNames as m } from "@progress/kendo-react-common";
|
|
11
11
|
import { Toolbar as u } from "@progress/kendo-react-buttons";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
className:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
const f = e.forwardRef(
|
|
13
|
+
(t, a) => {
|
|
14
|
+
const { className: d, style: l, ...n } = t, r = e.useRef(null), o = e.useRef(null);
|
|
15
|
+
e.useImperativeHandle(r, () => ({ element: o.current, props: t })), e.useImperativeHandle(a, () => r.current);
|
|
16
|
+
const c = e.useMemo(() => m("k-scheduler-footer", t.className), [t.className]);
|
|
17
|
+
return /* @__PURE__ */ e.createElement(
|
|
18
|
+
u,
|
|
19
|
+
{
|
|
20
|
+
ref: (s) => {
|
|
21
|
+
s && (o.current = s.element);
|
|
22
|
+
},
|
|
23
|
+
className: c,
|
|
24
|
+
style: { boxShadow: "none", ...l },
|
|
25
|
+
...n
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
);
|
|
32
|
-
});
|
|
27
|
+
t.children
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
f.displayName = "KendoReactSchedulerFooter";
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
f as SchedulerFooter
|
|
35
34
|
};
|
|
@@ -9,23 +9,22 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { ToolbarItem as m } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { classNames as o } from "@progress/kendo-react-common";
|
|
12
|
-
const i = e.forwardRef(
|
|
13
|
-
|
|
14
|
-
className: a,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const i = e.forwardRef(
|
|
13
|
+
(r, s) => {
|
|
14
|
+
const { className: a, ...l } = r, t = e.useRef(null);
|
|
15
|
+
return e.useImperativeHandle(s, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
|
|
16
|
+
m,
|
|
17
|
+
{
|
|
18
|
+
ref: (n) => {
|
|
19
|
+
n && (t.current = n.element);
|
|
20
|
+
},
|
|
21
|
+
className: o("k-scheduler-navigation", a),
|
|
22
|
+
...l
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
28
|
-
});
|
|
24
|
+
r.children
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
29
28
|
export {
|
|
30
29
|
i as BusinessHours
|
|
31
30
|
};
|
|
@@ -9,26 +9,25 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { classNames as o } from "@progress/kendo-react-common";
|
|
11
11
|
import { Toolbar as u } from "@progress/kendo-react-buttons";
|
|
12
|
-
const d = e.forwardRef(
|
|
13
|
-
|
|
14
|
-
className: t,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
const d = e.forwardRef(
|
|
13
|
+
(r, s) => {
|
|
14
|
+
const { className: t, ...c } = r, a = e.useRef(null), l = e.useRef(null);
|
|
15
|
+
e.useImperativeHandle(l, () => ({ element: a.current, props: r })), e.useImperativeHandle(s, () => l.current);
|
|
16
|
+
const m = e.useMemo(() => o("k-scheduler-toolbar", t), [t]);
|
|
17
|
+
return /* @__PURE__ */ e.createElement(
|
|
18
|
+
u,
|
|
19
|
+
{
|
|
20
|
+
id: r.id,
|
|
21
|
+
ref: (n) => {
|
|
22
|
+
n && (a.current = n.element);
|
|
23
|
+
},
|
|
24
|
+
className: m,
|
|
25
|
+
...c
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
});
|
|
27
|
+
r.children
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
32
31
|
d.displayName = "KendoReactSchedulerHeader";
|
|
33
32
|
export {
|
|
34
33
|
d as SchedulerHeader
|
|
@@ -19,10 +19,7 @@ import { toUTCDateTime as G } from "../../../utils/index.mjs";
|
|
|
19
19
|
const J = e.forwardRef((s, b) => {
|
|
20
20
|
var k;
|
|
21
21
|
const u = e.useRef(null), i = e.useRef(null);
|
|
22
|
-
e.useImperativeHandle(
|
|
23
|
-
b,
|
|
24
|
-
() => u.current
|
|
25
|
-
);
|
|
22
|
+
e.useImperativeHandle(b, () => u.current);
|
|
26
23
|
const { timezone: d } = L(), x = S.fromLocalDate(s.value, d), z = U(x), m = Y(), n = _(m), [E, F] = e.useState("desktop"), [a, f] = e.useState(!1), [C, g] = e.useState(!1), p = A(), { dateFormat: R, shortDateFormat: w } = Z(), t = j(), [c] = q(), l = t.end.getTime() - t.start.getTime() > V * 27, M = p.format(
|
|
27
24
|
R,
|
|
28
25
|
l ? c : t.zonedStart,
|
|
@@ -31,22 +28,13 @@ const J = e.forwardRef((s, b) => {
|
|
|
31
28
|
w,
|
|
32
29
|
l ? c : t.zonedStart,
|
|
33
30
|
l ? c : t.zonedEnd.addDays(-1)
|
|
34
|
-
), B = e.useCallback(
|
|
35
|
-
()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
g(!0);
|
|
42
|
-
},
|
|
43
|
-
[]
|
|
44
|
-
), P = e.useCallback(
|
|
45
|
-
() => {
|
|
46
|
-
f(!1), g(!1);
|
|
47
|
-
},
|
|
48
|
-
[]
|
|
49
|
-
), y = e.useCallback(
|
|
31
|
+
), B = e.useCallback(() => {
|
|
32
|
+
f(!a);
|
|
33
|
+
}, [a]), I = e.useCallback(() => {
|
|
34
|
+
g(!0);
|
|
35
|
+
}, []), P = e.useCallback(() => {
|
|
36
|
+
f(!1), g(!1);
|
|
37
|
+
}, []), y = e.useCallback(
|
|
50
38
|
(o) => {
|
|
51
39
|
if (s.onChange) {
|
|
52
40
|
const r = S.fromUTCDate(G(o.value), d);
|
|
@@ -67,12 +55,9 @@ const J = e.forwardRef((s, b) => {
|
|
|
67
55
|
return r && r.observe(m.current), () => {
|
|
68
56
|
o && r.disconnect();
|
|
69
57
|
};
|
|
70
|
-
}, [h, m, n]), e.useEffect(
|
|
71
|
-
()
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
[C, a]
|
|
75
|
-
);
|
|
58
|
+
}, [h, m, n]), e.useEffect(() => {
|
|
59
|
+
a && C && i.current && i.current.focus();
|
|
60
|
+
}, [C, a]);
|
|
76
61
|
const { onFocus: v, onBlur: D } = H({ onFocus: I, onBlur: P });
|
|
77
62
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
78
63
|
O,
|
|
@@ -89,23 +74,7 @@ const J = e.forwardRef((s, b) => {
|
|
|
89
74
|
onClick: B
|
|
90
75
|
},
|
|
91
76
|
E === "desktop" ? M : T
|
|
92
|
-
), /* @__PURE__ */ e.createElement(
|
|
93
|
-
W,
|
|
94
|
-
{
|
|
95
|
-
anchor: (k = u.current) == null ? void 0 : k.element,
|
|
96
|
-
show: a
|
|
97
|
-
},
|
|
98
|
-
/* @__PURE__ */ e.createElement(
|
|
99
|
-
N,
|
|
100
|
-
{
|
|
101
|
-
ref: i,
|
|
102
|
-
onFocus: v,
|
|
103
|
-
onBlur: D,
|
|
104
|
-
onChange: y,
|
|
105
|
-
value: z
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
));
|
|
77
|
+
), /* @__PURE__ */ e.createElement(W, { anchor: (k = u.current) == null ? void 0 : k.element, show: a }, /* @__PURE__ */ e.createElement(N, { ref: i, onFocus: v, onBlur: D, onChange: y, value: z })));
|
|
109
78
|
});
|
|
110
79
|
J.displayName = "KendoReactSchedulerNavigationDatePicker";
|
|
111
80
|
export {
|
|
@@ -9,23 +9,22 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { ToolbarItem as m } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { classNames as o } from "@progress/kendo-react-common";
|
|
12
|
-
const s = e.forwardRef(
|
|
13
|
-
|
|
14
|
-
className: n,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const s = e.forwardRef(
|
|
13
|
+
(r, l) => {
|
|
14
|
+
const { className: n, ...c } = r, t = e.useRef(null);
|
|
15
|
+
return e.useImperativeHandle(l, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
|
|
16
|
+
m,
|
|
17
|
+
{
|
|
18
|
+
ref: (a) => {
|
|
19
|
+
a && (t.current = a.element);
|
|
20
|
+
},
|
|
21
|
+
className: o(n),
|
|
22
|
+
...c
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
28
|
-
});
|
|
24
|
+
r.children
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
29
28
|
s.displayName = "KendoReactSchedulerSchedulerNavigation";
|
|
30
29
|
export {
|
|
31
30
|
s as SchedulerNavigation
|
|
@@ -9,23 +9,22 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { ToolbarItem as n } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { classNames as o } from "@progress/kendo-react-common";
|
|
12
|
-
const s = e.forwardRef(
|
|
13
|
-
|
|
14
|
-
className: a,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const s = e.forwardRef(
|
|
13
|
+
(r, c) => {
|
|
14
|
+
const { className: a, ...m } = r, t = e.useRef(null);
|
|
15
|
+
return e.useImperativeHandle(c, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
|
|
16
|
+
n,
|
|
17
|
+
{
|
|
18
|
+
ref: (l) => {
|
|
19
|
+
l && (t.current = l.element);
|
|
20
|
+
},
|
|
21
|
+
className: o("k-scheduler-views", a),
|
|
22
|
+
...m
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
28
|
-
});
|
|
24
|
+
r.children
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
29
28
|
s.displayName = "KendoReactSchedulerViewSelector";
|
|
30
29
|
export {
|
|
31
30
|
s as SchedulerViewSelector
|
|
@@ -14,12 +14,9 @@ const s = (e) => {
|
|
|
14
14
|
const [l, i] = u(), o = m(), n = t.useMemo(
|
|
15
15
|
() => typeof e.view.title == "function" ? e.view.title.call(void 0, o) : e.view.title,
|
|
16
16
|
[e.view.title, o]
|
|
17
|
-
), a = t.useCallback(
|
|
18
|
-
()
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
[i, e.view.name]
|
|
22
|
-
);
|
|
17
|
+
), a = t.useCallback(() => {
|
|
18
|
+
e.view.name && i(e.view.name);
|
|
19
|
+
}, [i, e.view.name]);
|
|
23
20
|
return /* @__PURE__ */ t.createElement(
|
|
24
21
|
c,
|
|
25
22
|
{
|
|
@@ -31,13 +31,10 @@ const V = t.forwardRef(() => {
|
|
|
31
31
|
}, []), /* @__PURE__ */ t.createElement(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
className: b(
|
|
35
|
-
"k-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"k-scheduler-tools": o === "mobile"
|
|
39
|
-
}
|
|
40
|
-
),
|
|
34
|
+
className: b("k-toolbar-button-group k-button-group k-button-group-solid", {
|
|
35
|
+
"k-scheduler-views": o === "desktop",
|
|
36
|
+
"k-scheduler-tools": o === "mobile"
|
|
37
|
+
}),
|
|
41
38
|
role: "group",
|
|
42
39
|
ref: s
|
|
43
40
|
},
|
|
@@ -18,11 +18,19 @@ const r = e.createContext([]), I = () => e.useContext(r);
|
|
|
18
18
|
r.displayName = "SchedulerViewsContext";
|
|
19
19
|
const a = e.createContext(R), U = () => e.useContext(a);
|
|
20
20
|
a.displayName = "SchedulerFieldsContext";
|
|
21
|
-
const c = e.createContext({
|
|
21
|
+
const c = e.createContext({
|
|
22
|
+
dateFormat: "{0:D}",
|
|
23
|
+
shortDateFormat: "{0:d}"
|
|
24
|
+
}), M = () => e.useContext(c);
|
|
22
25
|
c.displayName = "SchedulerDateFormatContext";
|
|
23
26
|
const l = e.createContext([A]), T = () => e.useContext(l);
|
|
24
27
|
l.displayName = "SchedulerGroupsContext";
|
|
25
|
-
const u = e.createContext({
|
|
28
|
+
const u = e.createContext({
|
|
29
|
+
start: /* @__PURE__ */ new Date(),
|
|
30
|
+
end: /* @__PURE__ */ new Date(),
|
|
31
|
+
zonedStart: i.fromLocalDate(/* @__PURE__ */ new Date()),
|
|
32
|
+
zonedEnd: i.fromLocalDate(/* @__PURE__ */ new Date())
|
|
33
|
+
}), Z = () => e.useContext(u);
|
|
26
34
|
u.displayName = "SchedulerDateRangeContext";
|
|
27
35
|
const s = e.createContext(null), _ = () => e.useContext(s);
|
|
28
36
|
s.displayName = "SchedulerOrientationContext";
|
|
@@ -10,13 +10,29 @@ import * as e from "react";
|
|
|
10
10
|
import { noop as t } from "@progress/kendo-react-common";
|
|
11
11
|
const o = e.createContext([null]), S = () => e.useContext(o);
|
|
12
12
|
o.displayName = "SchedulerEditItemPropsContext";
|
|
13
|
-
const r = e.createContext([
|
|
13
|
+
const r = e.createContext([
|
|
14
|
+
null,
|
|
15
|
+
t,
|
|
16
|
+
t
|
|
17
|
+
]), v = () => e.useContext(r);
|
|
14
18
|
r.displayName = "SchedulerEditItemFormItemContext";
|
|
15
|
-
const n = e.createContext([
|
|
19
|
+
const n = e.createContext([
|
|
20
|
+
null,
|
|
21
|
+
t,
|
|
22
|
+
t
|
|
23
|
+
]), p = () => e.useContext(n);
|
|
16
24
|
n.displayName = "SchedulerEditItemDragItemContext";
|
|
17
|
-
const c = e.createContext([
|
|
25
|
+
const c = e.createContext([
|
|
26
|
+
null,
|
|
27
|
+
t,
|
|
28
|
+
t
|
|
29
|
+
]), P = () => e.useContext(c);
|
|
18
30
|
c.displayName = "SchedulerEditItemResizeItemContext";
|
|
19
|
-
const l = e.createContext([
|
|
31
|
+
const l = e.createContext([
|
|
32
|
+
null,
|
|
33
|
+
t,
|
|
34
|
+
t
|
|
35
|
+
]), R = () => e.useContext(l);
|
|
20
36
|
l.displayName = "SchedulerEditItemRemoveItemContext";
|
|
21
37
|
const m = e.createContext([!1, t, t]), g = () => e.useContext(m);
|
|
22
38
|
m.displayName = "SchedulerEditItemShowRemoveDialogContext";
|
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
const t = e.createContext([null]), c = () => e.useContext(t);
|
|
11
11
|
t.displayName = "SchedulerEditSlotPropsContext";
|
|
12
|
-
const o = e.createContext([
|
|
12
|
+
const o = e.createContext([
|
|
13
|
+
null
|
|
14
|
+
]), d = () => e.useContext(o);
|
|
13
15
|
o.displayName = "SchedulerEditSlotFormItemContext";
|
|
14
|
-
const u = ({
|
|
15
|
-
props: r,
|
|
16
|
-
form: l,
|
|
17
|
-
children: n
|
|
18
|
-
}) => /* @__PURE__ */ e.createElement(t.Provider, { value: r }, /* @__PURE__ */ e.createElement(o.Provider, { value: l }, n));
|
|
16
|
+
const u = ({ props: r, form: l, children: n }) => /* @__PURE__ */ e.createElement(t.Provider, { value: r }, /* @__PURE__ */ e.createElement(o.Provider, { value: l }, n));
|
|
19
17
|
export {
|
|
20
18
|
u as SchedulerEditSlotContext,
|
|
21
19
|
o as SchedulerEditSlotFormItemContext,
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
|
-
const o = e.createContext([
|
|
10
|
+
const o = e.createContext([
|
|
11
|
+
null
|
|
12
|
+
]), r = e.createContext([!1]), c = e.createContext([!1]), a = (t) => /* @__PURE__ */ e.createElement(o.Provider, { value: t.remove }, /* @__PURE__ */ e.createElement(r.Provider, { value: t.showRemoveDialog }, /* @__PURE__ */ e.createElement(c.Provider, { value: t.showOccurrenceDialog }, t.children)));
|
|
11
13
|
export {
|
|
12
14
|
a as SchedulerEditTaskContext,
|
|
13
15
|
o as SchedulerEditTaskRemoveItemContext,
|