@progress/kendo-react-scheduler 15.2.0-develop.5 → 15.2.0-develop.6
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/Scheduler.d.ts +2 -2
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +394 -302
- package/components/DateHeaderCell.js +1 -1
- package/components/DateHeaderCell.mjs +23 -20
- package/components/MoreEventsPopover.d.ts +25 -0
- package/components/MoreEventsPopover.js +8 -0
- package/components/MoreEventsPopover.mjs +59 -0
- package/components/SchedulerForm.d.ts +4 -0
- package/components/SchedulerForm.js +1 -1
- package/components/SchedulerForm.mjs +113 -100
- package/components/SchedulerRemoveDialog.d.ts +4 -0
- package/components/SchedulerRemoveDialog.js +1 -1
- package/components/SchedulerRemoveDialog.mjs +29 -29
- package/components/ShowMoreItemsButton.d.ts +1 -0
- package/components/ShowMoreItemsButton.js +1 -1
- package/components/ShowMoreItemsButton.mjs +33 -26
- package/components/header/navigation/NavigationDatePicker.d.ts +9 -1
- package/components/header/navigation/NavigationDatePicker.js +1 -1
- package/components/header/navigation/NavigationDatePicker.mjs +65 -71
- package/components/header/view-selector/ViewSelectorList.d.ts +9 -1
- package/components/header/view-selector/ViewSelectorList.js +1 -1
- package/components/header/view-selector/ViewSelectorList.mjs +35 -51
- package/dist/cdn/js/kendo-react-scheduler.js +1 -1
- package/editors/RemoveRecurrenceConfirmDialog.d.ts +17 -0
- package/editors/RemoveRecurrenceConfirmDialog.js +8 -0
- package/editors/RemoveRecurrenceConfirmDialog.mjs +28 -0
- package/editors/ResourceEditor.d.ts +1 -0
- package/editors/ResourceEditor.js +1 -1
- package/editors/ResourceEditor.mjs +18 -17
- package/editors/SchedulerFormEditor.d.ts +69 -356
- package/editors/SchedulerFormEditor.js +1 -1
- package/editors/SchedulerFormEditor.mjs +360 -227
- package/editors/SchedulerRecurrenceDialog.d.ts +30 -0
- package/editors/SchedulerRecurrenceDialog.js +8 -0
- package/editors/SchedulerRecurrenceDialog.mjs +463 -0
- package/editors/{FilterableComboBox.d.ts → TimezoneDropDownList.d.ts} +2 -2
- package/editors/TimezoneDropDownList.js +8 -0
- package/editors/TimezoneDropDownList.mjs +42 -0
- package/editors/ZonedDateTime.d.ts +2 -0
- package/editors/ZonedDateTime.js +1 -1
- package/editors/ZonedDateTime.mjs +11 -18
- package/editors/ZonedSplitDateTime.d.ts +34 -0
- package/editors/ZonedSplitDateTime.js +8 -0
- package/editors/ZonedSplitDateTime.mjs +72 -0
- package/hooks/index.d.ts +2 -0
- package/hooks/useGroupRowHeightSync.d.ts +10 -0
- package/hooks/useGroupRowHeightSync.js +8 -0
- package/hooks/useGroupRowHeightSync.mjs +84 -0
- package/hooks/useRecurrenceSummary.d.ts +10 -0
- package/hooks/useRecurrenceSummary.js +8 -0
- package/hooks/useRecurrenceSummary.mjs +69 -0
- package/hooks/useSlotExpand.js +1 -1
- package/hooks/useSlotExpand.mjs +55 -45
- package/hooks/useToolbarResponsive.d.ts +22 -0
- package/hooks/useToolbarResponsive.js +8 -0
- package/hooks/useToolbarResponsive.mjs +37 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.js +1 -1
- package/index.mjs +83 -79
- package/items/SchedulerEditItem.js +1 -1
- package/items/SchedulerEditItem.mjs +361 -347
- package/items/SchedulerItem.d.ts +4 -0
- package/items/SchedulerItem.js +1 -1
- package/items/SchedulerItem.mjs +171 -185
- package/items/SchedulerProportionalViewItem.js +1 -1
- package/items/SchedulerProportionalViewItem.mjs +111 -94
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +175 -142
- package/messages/index.d.ts +75 -0
- package/messages/index.js +1 -1
- package/messages/index.mjs +147 -97
- package/models/Item.d.ts +2 -0
- package/models/Occurrence.d.ts +2 -0
- package/models/SchedulerModelFields.d.ts +5 -0
- package/models/SchedulerResource.d.ts +6 -0
- package/models/SchedulerView.d.ts +3 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/services/itemsService.js +1 -1
- package/services/itemsService.mjs +34 -32
- package/services/occurrenceService.js +1 -1
- package/services/occurrenceService.mjs +27 -26
- package/tasks/SchedulerTask.js +1 -1
- package/tasks/SchedulerTask.mjs +26 -26
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +7 -6
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +7 -7
- package/views/day/DayView.js +1 -1
- package/views/day/DayView.mjs +2 -2
- package/views/day/MultiDayView.js +1 -1
- package/views/day/MultiDayView.mjs +2 -2
- package/views/month/MonthView.js +1 -1
- package/views/month/MonthView.mjs +111 -82
- package/views/time/MultiDayTimelineView.js +1 -1
- package/views/time/MultiDayTimelineView.mjs +23 -23
- package/views/time/TimelineView.js +1 -1
- package/views/time/TimelineView.mjs +2 -2
- package/views/week/WeekView.js +1 -1
- package/views/week/WeekView.mjs +5 -5
- package/views/week/WorkWeekView.js +1 -1
- package/views/week/WorkWeekView.mjs +15 -15
- package/editors/FilterableComboBox.js +0 -8
- package/editors/FilterableComboBox.mjs +0 -30
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ZonedSplitDateTimeProps {
|
|
13
|
+
value?: Date | null;
|
|
14
|
+
onChange?: (args: {
|
|
15
|
+
value: Date | null;
|
|
16
|
+
}) => void;
|
|
17
|
+
isAllDay?: boolean;
|
|
18
|
+
connector?: string;
|
|
19
|
+
connectorElement?: React.ReactNode;
|
|
20
|
+
dateId?: string;
|
|
21
|
+
timeId?: string;
|
|
22
|
+
fieldError?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
timeAriaLabel?: string;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*
|
|
30
|
+
* Default Field component for the start/end editors in the new Scheduler form layout.
|
|
31
|
+
* Renders a DatePicker + optional connector label + TimePicker (when not all-day),
|
|
32
|
+
* with timezone conversion matching the ZonedDateTime behavior.
|
|
33
|
+
*/
|
|
34
|
+
export declare const ZonedSplitDateTime: (props: ZonedSplitDateTimeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),s=require("@progress/kendo-react-dateinputs"),T=require("../context/SchedulerContext.js"),d=require("./ZonedDateTime.js");function k(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(r,e,c.get?c:{enumerable:!0,get:()=>n[e]})}}return r.default=n,Object.freeze(r)}const a=k(S),E=n=>{const{value:r,onChange:e,isAllDay:c,connector:m,connectorElement:f,dateId:g,timeId:b,fieldError:h,ariaLabel:D,timeAriaLabel:p}=n,{timezone:l}=T.useSchedulerPropsContext(),t=a.useMemo(()=>r?d.readDateAsLocal(r,l):null,[r,l]),v=a.useCallback(o=>{if(!o.value||!e)return;const i=new Date(o.value);t&&i.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),e({value:d.readDateWithTimezone(i,l)})},[e,t,l]),C=a.useCallback(o=>{if(!o.value||!e)return;const i=new Date(t||new Date);i.setHours(o.value.getHours(),o.value.getMinutes(),0,0),e({value:d.readDateWithTimezone(i,l)})},[e,t,l]),u=!!h;return c?a.createElement(s.DatePicker,{id:g,value:t,onChange:v,valid:!u,ariaLabel:D}):a.createElement(a.Fragment,null,a.createElement(s.DatePicker,{id:g,value:t,onChange:v,valid:!u,ariaLabel:D}),f||m&&a.createElement("span",{className:"k-scheduler-datetime-label"},m),a.createElement(s.TimePicker,{id:b,value:t,onChange:C,valid:!u,ariaLabel:p}))};exports.ZonedSplitDateTime=E;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as a from "react";
|
|
9
|
+
import { DatePicker as d, TimePicker as b } from "@progress/kendo-react-dateinputs";
|
|
10
|
+
import { useSchedulerPropsContext as k } from "../context/SchedulerContext.mjs";
|
|
11
|
+
import { readDateAsLocal as w, readDateWithTimezone as v } from "./ZonedDateTime.mjs";
|
|
12
|
+
const A = (g) => {
|
|
13
|
+
const {
|
|
14
|
+
value: r,
|
|
15
|
+
onChange: t,
|
|
16
|
+
isAllDay: h,
|
|
17
|
+
connector: s,
|
|
18
|
+
connectorElement: D,
|
|
19
|
+
dateId: u,
|
|
20
|
+
timeId: f,
|
|
21
|
+
fieldError: C,
|
|
22
|
+
ariaLabel: c,
|
|
23
|
+
timeAriaLabel: p
|
|
24
|
+
} = g, { timezone: n } = k(), e = a.useMemo(() => r ? w(r, n) : null, [r, n]), m = a.useCallback(
|
|
25
|
+
(l) => {
|
|
26
|
+
if (!l.value || !t)
|
|
27
|
+
return;
|
|
28
|
+
const o = new Date(l.value);
|
|
29
|
+
e && o.setHours(e.getHours(), e.getMinutes(), e.getSeconds()), t({ value: v(o, n) });
|
|
30
|
+
},
|
|
31
|
+
[t, e, n]
|
|
32
|
+
), E = a.useCallback(
|
|
33
|
+
(l) => {
|
|
34
|
+
if (!l.value || !t)
|
|
35
|
+
return;
|
|
36
|
+
const o = new Date(e || /* @__PURE__ */ new Date());
|
|
37
|
+
o.setHours(l.value.getHours(), l.value.getMinutes(), 0, 0), t({ value: v(o, n) });
|
|
38
|
+
},
|
|
39
|
+
[t, e, n]
|
|
40
|
+
), i = !!C;
|
|
41
|
+
return h ? /* @__PURE__ */ a.createElement(
|
|
42
|
+
d,
|
|
43
|
+
{
|
|
44
|
+
id: u,
|
|
45
|
+
value: e,
|
|
46
|
+
onChange: m,
|
|
47
|
+
valid: !i,
|
|
48
|
+
ariaLabel: c
|
|
49
|
+
}
|
|
50
|
+
) : /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
51
|
+
d,
|
|
52
|
+
{
|
|
53
|
+
id: u,
|
|
54
|
+
value: e,
|
|
55
|
+
onChange: m,
|
|
56
|
+
valid: !i,
|
|
57
|
+
ariaLabel: c
|
|
58
|
+
}
|
|
59
|
+
), D || s && /* @__PURE__ */ a.createElement("span", { className: "k-scheduler-datetime-label" }, s), /* @__PURE__ */ a.createElement(
|
|
60
|
+
b,
|
|
61
|
+
{
|
|
62
|
+
id: f,
|
|
63
|
+
value: e,
|
|
64
|
+
onChange: E,
|
|
65
|
+
valid: !i,
|
|
66
|
+
ariaLabel: p
|
|
67
|
+
}
|
|
68
|
+
));
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
A as ZonedSplitDateTime
|
|
72
|
+
};
|
package/hooks/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export * from './usePropOrState';
|
|
9
9
|
export * from './useCellSync.js';
|
|
10
10
|
export * from './useRowSync.js';
|
|
11
|
+
export * from './useGroupRowHeightSync.js';
|
|
11
12
|
export * from './useAsyncMouseEnterLeave';
|
|
12
13
|
export * from './useEditable.js';
|
|
13
14
|
export * from './useSlotExpand.js';
|
|
@@ -15,3 +16,4 @@ export * from './useWorkHours';
|
|
|
15
16
|
export * from './useSchedulerItem.js';
|
|
16
17
|
export * from './use-items-focus.js';
|
|
17
18
|
export * from './use-slots-focus.js';
|
|
19
|
+
export * from './useToolbarResponsive.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const useGroupRowHeightSync: (bodyRef: React.RefObject<HTMLDivElement | null>, inputs?: any[]) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),O=require("@progress/kendo-react-common");function H(r){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(l,n,o.get?o:{enumerable:!0,get:()=>r[n]})}}return l.default=r,Object.freeze(l)}const c=H(v),R=(r,l)=>{const n=c.useRef(0),o=c.useRef(null),[,y]=c.useReducer(e=>e+1,0),m=c.useCallback(()=>{const e=o.current,t=r.current;e&&t&&e.observe(t,{attributes:!0,attributeFilter:["style"],subtree:!0})},[r]),d=c.useCallback(()=>{const e=r.current;if(!e)return null;const t=e.querySelectorAll(":scope > .k-scheduler-group > .k-scheduler-row > .k-group-cell");return t.length<2?null:Array.from(t).map(u=>Array.from(u.querySelectorAll(":scope > .k-scheduler-row")))},[r]),k=c.useCallback(e=>{var p,a,w;(p=o.current)==null||p.disconnect();let t=!1;const u=(w=(a=e[0])==null?void 0:a.length)!=null?w:0;for(let i=0;i<u;i++){for(const f of e){const s=f[i];if(!s)continue;s.querySelectorAll(":scope > .k-slot-cell").forEach(b=>{b.style.removeProperty("height")})}let g=0;for(const f of e){const s=f[i];s&&(g=Math.max(g,s.offsetHeight))}for(const f of e){const s=f[i];if(!s)continue;s.querySelectorAll(":scope > .k-slot-cell").forEach(b=>{b.offsetHeight!==g&&(t=!0),b.style.height=`${g}px`})}}return m(),t},[m]),h=c.useCallback(()=>{const e=d();e&&k(e)&&y()},[d,k,y]);O.useIsomorphicLayoutEffect(h,l);const C=c.useCallback(()=>{clearTimeout(n.current),n.current=window.setTimeout(h,50)},[h]);c.useEffect(()=>{const e=r.current;if(!e)return;o.current&&o.current.disconnect();const t=new MutationObserver(u=>{u.some(a=>a.target instanceof HTMLElement&&a.target.classList.contains("k-slot-cell"))&&C()});return o.current=t,t.observe(e,{attributes:!0,attributeFilter:["style"],subtree:!0}),C(),()=>{clearTimeout(n.current),t.disconnect(),o.current=null}},l)};exports.useGroupRowHeightSync=R;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as r from "react";
|
|
9
|
+
import { useIsomorphicLayoutEffect as S } from "@progress/kendo-react-common";
|
|
10
|
+
const A = (c, b) => {
|
|
11
|
+
const h = r.useRef(0), s = r.useRef(null), [, m] = r.useReducer((e) => e + 1, 0), y = r.useCallback(() => {
|
|
12
|
+
const e = s.current, t = c.current;
|
|
13
|
+
e && t && e.observe(t, {
|
|
14
|
+
attributes: !0,
|
|
15
|
+
attributeFilter: ["style"],
|
|
16
|
+
subtree: !0
|
|
17
|
+
});
|
|
18
|
+
}, [c]), C = r.useCallback(() => {
|
|
19
|
+
const e = c.current;
|
|
20
|
+
if (!e)
|
|
21
|
+
return null;
|
|
22
|
+
const t = e.querySelectorAll(":scope > .k-scheduler-group > .k-scheduler-row > .k-group-cell");
|
|
23
|
+
return t.length < 2 ? null : Array.from(t).map(
|
|
24
|
+
(n) => Array.from(n.querySelectorAll(":scope > .k-scheduler-row"))
|
|
25
|
+
);
|
|
26
|
+
}, [c]), k = r.useCallback((e) => {
|
|
27
|
+
var p, l, w;
|
|
28
|
+
(p = s.current) == null || p.disconnect();
|
|
29
|
+
let t = !1;
|
|
30
|
+
const n = (w = (l = e[0]) == null ? void 0 : l.length) != null ? w : 0;
|
|
31
|
+
for (let u = 0; u < n; u++) {
|
|
32
|
+
for (const a of e) {
|
|
33
|
+
const o = a[u];
|
|
34
|
+
if (!o)
|
|
35
|
+
continue;
|
|
36
|
+
o.querySelectorAll(":scope > .k-slot-cell").forEach((f) => {
|
|
37
|
+
f.style.removeProperty("height");
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
let i = 0;
|
|
41
|
+
for (const a of e) {
|
|
42
|
+
const o = a[u];
|
|
43
|
+
o && (i = Math.max(i, o.offsetHeight));
|
|
44
|
+
}
|
|
45
|
+
for (const a of e) {
|
|
46
|
+
const o = a[u];
|
|
47
|
+
if (!o)
|
|
48
|
+
continue;
|
|
49
|
+
o.querySelectorAll(":scope > .k-slot-cell").forEach((f) => {
|
|
50
|
+
f.offsetHeight !== i && (t = !0), f.style.height = `${i}px`;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return y(), t;
|
|
55
|
+
}, [y]), g = r.useCallback(() => {
|
|
56
|
+
const e = C();
|
|
57
|
+
e && k(e) && m();
|
|
58
|
+
}, [C, k, m]);
|
|
59
|
+
S(g, b);
|
|
60
|
+
const d = r.useCallback(() => {
|
|
61
|
+
clearTimeout(h.current), h.current = window.setTimeout(g, 50);
|
|
62
|
+
}, [g]);
|
|
63
|
+
r.useEffect(() => {
|
|
64
|
+
const e = c.current;
|
|
65
|
+
if (!e)
|
|
66
|
+
return;
|
|
67
|
+
s.current && s.current.disconnect();
|
|
68
|
+
const t = new MutationObserver((n) => {
|
|
69
|
+
n.some(
|
|
70
|
+
(l) => l.target instanceof HTMLElement && l.target.classList.contains("k-slot-cell")
|
|
71
|
+
) && d();
|
|
72
|
+
});
|
|
73
|
+
return s.current = t, t.observe(e, {
|
|
74
|
+
attributes: !0,
|
|
75
|
+
attributeFilter: ["style"],
|
|
76
|
+
subtree: !0
|
|
77
|
+
}), d(), () => {
|
|
78
|
+
clearTimeout(h.current), t.disconnect(), s.current = null;
|
|
79
|
+
};
|
|
80
|
+
}, b);
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
A as useGroupRowHeightSync
|
|
84
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IntlService, LocalizationService } from '@progress/kendo-react-intl';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare function getRecurrenceSummary(recurrenceRule: string | null, start: Date, intl: IntlService, localization: LocalizationService): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("@progress/kendo-date-math"),c=require("../recurrence/common.js"),t=require("../messages/index.js");function Y($,d,y,f){var L,v,O,b,p,C;if(!$)return"";const r=n=>f.toLanguageString(n,t.messages[n]),g=(n,o)=>{const i=o?n:"scheduler.recurrenceEditor"+n;return f.toLanguageString(i,t.messages[i])},e=c.getRule($);if(!e.freq||e.freq==="never")return"";const R=c.getWeekDays(y),W=c.getExtendedWeekDays(y,g),s=c.getWeekDay(W,e,d),q=c.getMonths(y),k=c.getMonth(q,e),S=c.getOffsets(g),m=c.getOffset(S,e),D=c.getMonthDay(e,d),E=c.getRepeatOnRule(e),u=e.interval||1,l=r(t.recurrenceEditorRepeat),T=r(t.recurrenceEditorWeeklyRepeatOn).toLowerCase(),w=r(t.recurrenceEditorMonthlyRepeatOn).toLowerCase(),h=r(t.recurrenceEditorYearlyRepeatOn).toLowerCase(),x=r(t.recurrenceEditorEndLabel).toLowerCase();let a="";switch(e.freq){case"daily":a=`${l} ${u} ${r(t.recurrenceEditorDailyInterval)}`;break;case"weekly":{const o=(e.byWeekDay||[]).map(({day:i})=>{var M;return(M=R.find(I=>I.value===i))==null?void 0:M.text}).filter(Boolean).join(", ");a=`${l} ${u} ${r(t.recurrenceEditorWeeklyInterval)}`,o&&(a+=` ${T} ${o}`);break}case"monthly":{const n=`${l} ${u} ${r(t.recurrenceEditorMonthlyInterval)}`;if(E==="weekday"&&((L=e.byWeekDay)!=null&&L.length)){const o=typeof s.value=="string"?s.text.toLowerCase():s.text;a=`${n} ${w} ${m.text.toLowerCase()} ${o}`}else{const o=(O=(v=e.byMonthDay)==null?void 0:v[0])!=null?O:D;a=`${n} ${w} ${r(t.recurrenceEditorMonthlyDay).toLowerCase()} ${o}`}break}case"yearly":{const n=`${l} ${u} ${r(t.recurrenceEditorYearlyInterval)}`;if(E==="weekday"&&((b=e.byWeekDay)!=null&&b.length)){const o=typeof s.value=="string"?s.text.toLowerCase():s.text;a=`${n} ${h} ${m.text.toLowerCase()} ${o} ${r(t.recurrenceEditorYearlyOf)} ${k.text}`}else{const o=(C=(p=e.byMonthDay)==null?void 0:p[0])!=null?C:D;a=`${n} ${h} ${k.text} ${o}`}break}}return e.count?a+=` ${x} ${r(t.recurrenceEditorEndAfter).toLowerCase()} ${e.count} ${r(t.recurrenceEditorEndOccurrence)}`:e.until&&(a+=` ${x} ${r(t.recurrenceEditorEndOn).toLowerCase()} ${y.formatDate(N.toLocalDate(e.until),"D")}`),a}exports.getRecurrenceSummary=Y;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { toLocalDate as q } from "@progress/kendo-date-math";
|
|
9
|
+
import { getRule as S, getWeekDays as Y, getExtendedWeekDays as j, getWeekDay as z, getMonths as A, getMonth as B, getOffsets as F, getOffset as G, getMonthDay as H, getRepeatOnRule as J } from "../recurrence/common.mjs";
|
|
10
|
+
import { messages as b, recurrenceEditorRepeat as K, recurrenceEditorYearlyInterval as P, recurrenceEditorYearlyRepeatOn as Q, recurrenceEditorMonthlyInterval as U, recurrenceEditorMonthlyRepeatOn as V, recurrenceEditorEndLabel as X, recurrenceEditorWeeklyRepeatOn as Z, recurrenceEditorYearlyOf as _, recurrenceEditorMonthlyDay as ee, recurrenceEditorWeeklyInterval as te, recurrenceEditorDailyInterval as re, recurrenceEditorEndAfter as ne, recurrenceEditorEndOccurrence as oe, recurrenceEditorEndOn as ae } from "../messages/index.mjs";
|
|
11
|
+
function le(i, $, c, u) {
|
|
12
|
+
var h, x, L, p, v, O;
|
|
13
|
+
if (!i)
|
|
14
|
+
return "";
|
|
15
|
+
const t = (r) => u.toLanguageString(r, b[r]), d = (r, n) => {
|
|
16
|
+
const l = n ? r : "scheduler.recurrenceEditor" + r;
|
|
17
|
+
return u.toLanguageString(l, b[l]);
|
|
18
|
+
}, e = S(i);
|
|
19
|
+
if (!e.freq || e.freq === "never")
|
|
20
|
+
return "";
|
|
21
|
+
const W = Y(c), M = j(c, d), a = z(M, e, $), R = A(c), f = B(R, e), T = F(d), g = G(T, e), m = H(e, $), E = J(e), s = e.interval || 1, y = t(K), I = t(Z).toLowerCase(), k = t(V).toLowerCase(), w = t(Q).toLowerCase(), D = t(X).toLowerCase();
|
|
22
|
+
let o = "";
|
|
23
|
+
switch (e.freq) {
|
|
24
|
+
case "daily":
|
|
25
|
+
o = `${y} ${s} ${t(re)}`;
|
|
26
|
+
break;
|
|
27
|
+
case "weekly": {
|
|
28
|
+
const n = (e.byWeekDay || []).map(({ day: l }) => {
|
|
29
|
+
var C;
|
|
30
|
+
return (C = W.find((N) => N.value === l)) == null ? void 0 : C.text;
|
|
31
|
+
}).filter(Boolean).join(", ");
|
|
32
|
+
o = `${y} ${s} ${t(te)}`, n && (o += ` ${I} ${n}`);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
case "monthly": {
|
|
36
|
+
const r = `${y} ${s} ${t(U)}`;
|
|
37
|
+
if (E === "weekday" && ((h = e.byWeekDay) != null && h.length)) {
|
|
38
|
+
const n = typeof a.value == "string" ? a.text.toLowerCase() : a.text;
|
|
39
|
+
o = `${r} ${k} ${g.text.toLowerCase()} ${n}`;
|
|
40
|
+
} else {
|
|
41
|
+
const n = (L = (x = e.byMonthDay) == null ? void 0 : x[0]) != null ? L : m;
|
|
42
|
+
o = `${r} ${k} ${t(ee).toLowerCase()} ${n}`;
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
case "yearly": {
|
|
47
|
+
const r = `${y} ${s} ${t(P)}`;
|
|
48
|
+
if (E === "weekday" && ((p = e.byWeekDay) != null && p.length)) {
|
|
49
|
+
const n = typeof a.value == "string" ? a.text.toLowerCase() : a.text;
|
|
50
|
+
o = `${r} ${w} ${g.text.toLowerCase()} ${n} ${t(
|
|
51
|
+
_
|
|
52
|
+
)} ${f.text}`;
|
|
53
|
+
} else {
|
|
54
|
+
const n = (O = (v = e.byMonthDay) == null ? void 0 : v[0]) != null ? O : m;
|
|
55
|
+
o = `${r} ${w} ${f.text} ${n}`;
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return e.count ? o += ` ${D} ${t(ne).toLowerCase()} ${e.count} ${t(
|
|
61
|
+
oe
|
|
62
|
+
)}` : e.until && (o += ` ${D} ${t(ae).toLowerCase()} ${c.formatDate(
|
|
63
|
+
q(e.until),
|
|
64
|
+
"D"
|
|
65
|
+
)}`), o;
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
le as getRecurrenceSummary
|
|
69
|
+
};
|
package/hooks/useSlotExpand.js
CHANGED
|
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),g=require("../views/common/utils.js"),q=require("../constants/index.js"),B=require("@progress/kendo-react-common"),C=require("../context/SchedulerContext.js");function M(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,l.get?l:{enumerable:!0,get:()=>e[s]})}}return n.default=e,Object.freeze(n)}const a=M(k),P=(e,n)=>{const s=a.useRef(void 0),l=a.useRef(0),y=C.useSchedulerElementContext(),H=()=>{if(!e.current)return;const o=e.current.element;o&&(l.current=o.clientHeight)},p=a.useCallback(()=>{if(!n||!e.current)return;const o=e.current.element,v=e.current.props;if(!o)return;const d=g.getPadding(o),t=new Map;let m=!1;const c=v.items.filter(r=>r._ref.current);c.forEach(r=>{var x,O,R,S,E;if(!r._ref.current)return;const{height:f}=g.getRect(r._ref.current.element),u=(R=(O=(x=r._ref.current)==null?void 0:x._order)!=null?O:r.order)!=null?R:-1;(S=r._ref.current.element)!=null&&S.style.top&&(m=!0),((E=t.get(u))!=null?E:0)<f&&t.set(u,f)});let i,_;if(!m||t.size===0){o.style.minHeight="";return}else{const r=Math.max(...Array.from(t.keys()));_=r+1;const f=Math.max(...Array.from(t.values()));i=0;for(let u=0;u<=r;u++)i+=t.has(u)?t.get(u):f}const j=typeof n=="object"&&n.offsetTop?n.offsetTop:0;let b=typeof n=="object"&&n.offsetBottom?n.offsetBottom:0;if(b>0){const r=o.querySelector(".k-more-events");if(r){const f=parseFloat(window.getComputedStyle(r).bottom)||0;b=r.offsetHeight+f}}const w=_*q.BORDER_WIDTH*2+i-d+j+b;c.length?w>l.current-d&&g.setRect(o,{height:w},!0):o&&(o.style.minHeight="")},[n,e]),h=a.useCallback(()=>{s.current!==void 0&&window.cancelAnimationFrame(s.current),s.current=window.requestAnimationFrame(()=>{p()})},[p]);B.useIsomorphicLayoutEffect(H,[]),a.useEffect(p,[e,e.current&&e.current.props,n]),a.useEffect(()=>{if(!e.current)return;const d=e.current.props.items.filter(t=>t._ref.current).map(t=>{if(!t._ref.current||!t._ref.current.element||!y.current)return;const m=window.ResizeObserver,c=m&&new m(h);c&&c.observe(t._ref.current.element);const i=new MutationObserver(h);return i.observe(t._ref.current.element,{attributes:!0,attributeFilter:["style"]}),()=>{c&&c.disconnect(),i.disconnect()}});return()=>{d.forEach(t=>t&&t())}},[h,y,e])};exports.useSlotExpand=P;
|
package/hooks/useSlotExpand.mjs
CHANGED
|
@@ -5,69 +5,79 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
import { getRect as
|
|
8
|
+
import * as f from "react";
|
|
9
|
+
import { getPadding as k, getRect as C, setRect as z } from "../views/common/utils.mjs";
|
|
10
10
|
import { BORDER_WIDTH as A } from "../constants/index.mjs";
|
|
11
|
-
import { useIsomorphicLayoutEffect as
|
|
12
|
-
import { useSchedulerElementContext as
|
|
13
|
-
const
|
|
14
|
-
const l =
|
|
15
|
-
if (!
|
|
11
|
+
import { useIsomorphicLayoutEffect as F } from "@progress/kendo-react-common";
|
|
12
|
+
import { useSchedulerElementContext as M } from "../context/SchedulerContext.mjs";
|
|
13
|
+
const j = (r, o) => {
|
|
14
|
+
const l = f.useRef(void 0), b = f.useRef(0), g = M(), B = () => {
|
|
15
|
+
if (!r.current)
|
|
16
16
|
return;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
}, p =
|
|
20
|
-
if (!o || !
|
|
17
|
+
const n = r.current.element;
|
|
18
|
+
n && (b.current = n.clientHeight);
|
|
19
|
+
}, p = f.useCallback(() => {
|
|
20
|
+
if (!o || !r.current)
|
|
21
21
|
return;
|
|
22
|
-
const
|
|
23
|
-
if (!
|
|
22
|
+
const n = r.current.element, v = r.current.props;
|
|
23
|
+
if (!n)
|
|
24
24
|
return;
|
|
25
|
-
const n = /* @__PURE__ */ new Map();
|
|
26
|
-
let
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
var
|
|
25
|
+
const a = k(n), e = /* @__PURE__ */ new Map();
|
|
26
|
+
let m = !1;
|
|
27
|
+
const s = v.items.filter((t) => t._ref.current);
|
|
28
|
+
s.forEach((t) => {
|
|
29
|
+
var _, x, R, H, E;
|
|
30
30
|
if (!t._ref.current)
|
|
31
31
|
return;
|
|
32
|
-
const { height:
|
|
33
|
-
(
|
|
32
|
+
const { height: u } = C(t._ref.current.element), c = (R = (x = (_ = t._ref.current) == null ? void 0 : _._order) != null ? x : t.order) != null ? R : -1;
|
|
33
|
+
(H = t._ref.current.element) != null && H.style.top && (m = !0), ((E = e.get(c)) != null ? E : 0) < u && e.set(c, u);
|
|
34
34
|
});
|
|
35
|
-
let
|
|
36
|
-
if (!
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
let i, w;
|
|
36
|
+
if (!m || e.size === 0) {
|
|
37
|
+
n.style.minHeight = "";
|
|
38
|
+
return;
|
|
39
|
+
} else {
|
|
40
|
+
const t = Math.max(...Array.from(e.keys()));
|
|
41
|
+
w = t + 1;
|
|
42
|
+
const u = Math.max(...Array.from(e.values()));
|
|
43
|
+
i = 0;
|
|
44
|
+
for (let c = 0; c <= t; c++)
|
|
45
|
+
i += e.has(c) ? e.get(c) : u;
|
|
46
|
+
}
|
|
47
|
+
const O = typeof o == "object" && o.offsetTop ? o.offsetTop : 0;
|
|
48
|
+
let h = typeof o == "object" && o.offsetBottom ? o.offsetBottom : 0;
|
|
49
|
+
if (h > 0) {
|
|
50
|
+
const t = n.querySelector(".k-more-events");
|
|
51
|
+
if (t) {
|
|
52
|
+
const u = parseFloat(window.getComputedStyle(t).bottom) || 0;
|
|
53
|
+
h = t.offsetHeight + u;
|
|
54
|
+
}
|
|
45
55
|
}
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, [o,
|
|
56
|
+
const y = w * A * 2 + i - a + O + h;
|
|
57
|
+
s.length ? y > b.current - a && z(n, { height: y }, !0) : n && (n.style.minHeight = "");
|
|
58
|
+
}, [o, r]), d = f.useCallback(() => {
|
|
49
59
|
l.current !== void 0 && window.cancelAnimationFrame(l.current), l.current = window.requestAnimationFrame(() => {
|
|
50
60
|
p();
|
|
51
61
|
});
|
|
52
62
|
}, [p]);
|
|
53
|
-
|
|
54
|
-
if (!
|
|
63
|
+
F(B, []), f.useEffect(p, [r, r.current && r.current.props, o]), f.useEffect(() => {
|
|
64
|
+
if (!r.current)
|
|
55
65
|
return;
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
66
|
+
const a = r.current.props.items.filter((e) => e._ref.current).map((e) => {
|
|
67
|
+
if (!e._ref.current || !e._ref.current.element || !g.current)
|
|
58
68
|
return;
|
|
59
|
-
const
|
|
60
|
-
s && s.observe(
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
s && s.disconnect(),
|
|
69
|
+
const m = window.ResizeObserver, s = m && new m(d);
|
|
70
|
+
s && s.observe(e._ref.current.element);
|
|
71
|
+
const i = new MutationObserver(d);
|
|
72
|
+
return i.observe(e._ref.current.element, { attributes: !0, attributeFilter: ["style"] }), () => {
|
|
73
|
+
s && s.disconnect(), i.disconnect();
|
|
64
74
|
};
|
|
65
75
|
});
|
|
66
76
|
return () => {
|
|
67
|
-
|
|
77
|
+
a.forEach((e) => e && e());
|
|
68
78
|
};
|
|
69
|
-
}, [
|
|
79
|
+
}, [d, g, r]);
|
|
70
80
|
};
|
|
71
81
|
export {
|
|
72
|
-
|
|
82
|
+
j as useSlotExpand
|
|
73
83
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Observes the toolbar container width and returns a numeric collapse level (0–3).
|
|
11
|
+
*
|
|
12
|
+
* Level 0: Full layout — all elements visible, SegmentedControl for views.
|
|
13
|
+
* Level 1: SegmentedControl → MenuButton (+ k-separator). "New Event" still has text.
|
|
14
|
+
* Level 2: "New Event" → icon-only, "Today" hidden, k-separator removed, date shortened.
|
|
15
|
+
* Level 3: Prev/Next ButtonGroup hidden.
|
|
16
|
+
*
|
|
17
|
+
* Uses scrollWidth > offsetWidth to detect overflow and finds the optimal level
|
|
18
|
+
* in a single synchronous pass (matching the Angular Scheduler approach).
|
|
19
|
+
*
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare const useToolbarResponsive: (containerRef: React.RefObject<HTMLElement | null>) => number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),i=require("react-dom");function d(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const e=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(s,n,e.get?e:{enumerable:!0,get:()=>r[n]})}}return s.default=r,Object.freeze(s)}const u=d(b),v=3,O=r=>{const[s,n]=u.useState(0),e=u.useRef(0),o=u.useRef(!1);return u.useEffect(()=>{const t=r.current;if(!t||typeof ResizeObserver=="undefined")return;const l={childList:!0,subtree:!0,characterData:!0},f=()=>{if(!(o.current||t.offsetWidth===0)){for(o.current=!0,c.disconnect();e.current>0;)if(e.current--,i.flushSync(()=>n(e.current)),t.scrollWidth>t.offsetWidth){e.current++,i.flushSync(()=>n(e.current));break}for(;t.scrollWidth>t.offsetWidth&&e.current<v;)e.current++,i.flushSync(()=>n(e.current));c.observe(t,l),o.current=!1}},a=new ResizeObserver(f);a.observe(t);const c=new MutationObserver(f);return c.observe(t,l),()=>{a.disconnect(),c.disconnect()}},[r]),s};exports.useToolbarResponsive=O;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as s from "react";
|
|
9
|
+
import { flushSync as u } from "react-dom";
|
|
10
|
+
const v = 3, b = (o) => {
|
|
11
|
+
const [a, n] = s.useState(0), r = s.useRef(0), c = s.useRef(!1);
|
|
12
|
+
return s.useEffect(() => {
|
|
13
|
+
const e = o.current;
|
|
14
|
+
if (!e || typeof ResizeObserver == "undefined")
|
|
15
|
+
return;
|
|
16
|
+
const i = { childList: !0, subtree: !0, characterData: !0 }, f = () => {
|
|
17
|
+
if (!(c.current || e.offsetWidth === 0)) {
|
|
18
|
+
for (c.current = !0, t.disconnect(); r.current > 0; )
|
|
19
|
+
if (r.current--, u(() => n(r.current)), e.scrollWidth > e.offsetWidth) {
|
|
20
|
+
r.current++, u(() => n(r.current));
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
for (; e.scrollWidth > e.offsetWidth && r.current < v; )
|
|
24
|
+
r.current++, u(() => n(r.current));
|
|
25
|
+
t.observe(e, i), c.current = !1;
|
|
26
|
+
}
|
|
27
|
+
}, l = new ResizeObserver(f);
|
|
28
|
+
l.observe(e);
|
|
29
|
+
const t = new MutationObserver(f);
|
|
30
|
+
return t.observe(e, i), () => {
|
|
31
|
+
l.disconnect(), t.disconnect();
|
|
32
|
+
};
|
|
33
|
+
}, [o]), a;
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
b as useToolbarResponsive
|
|
37
|
+
};
|
package/index.d.mts
CHANGED
|
@@ -27,9 +27,12 @@ import { SchedulerEditTask, schedulerEditTaskDefaultProps, SchedulerEditTaskProp
|
|
|
27
27
|
import { SchedulerDrag, schedulerDragDefaultProps, SchedulerDragProps } from './views/common/SchedulerDrag.js';
|
|
28
28
|
import { SchedulerResize, schedulerResizeDefaultProps, SchedulerResizeProps } from './views/common/SchedulerResize.js';
|
|
29
29
|
import { SchedulerForm, schedulerFormDefaultProps, SchedulerFormHandle, SchedulerFormProps, SchedulerFormStateChangeEvent } from './components/SchedulerForm.js';
|
|
30
|
-
import { SchedulerFormEditor, schedulerFormEditorDefaultProps, SchedulerFormEditorHandle, SchedulerFormEditorProps } from './editors/SchedulerFormEditor.js';
|
|
30
|
+
import { SchedulerFormEditor, schedulerFormEditorDefaultProps, SchedulerFormEditorHandle, SchedulerFormEditorProps, RecurrenceButtonTextTemplateProps, RecurrenceEditorHintTemplateProps } from './editors/SchedulerFormEditor.js';
|
|
31
|
+
import { RecurrenceRule } from '@progress/kendo-recurrence';
|
|
31
32
|
import { SchedulerOccurrenceDialog, SchedulerOccurrenceDialogHandle, SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogStateChangeEvent } from './components/SchedulerOccurrenceDialog.js';
|
|
32
33
|
import { SchedulerRemoveDialog, SchedulerRemoveDialogHandle, SchedulerRemoveDialogProps, SchedulerRemoveDialogStateChangeEvent } from './components/SchedulerRemoveDialog.js';
|
|
34
|
+
import { SchedulerRecurrenceDialog, SchedulerRecurrenceDialogProps } from './editors/SchedulerRecurrenceDialog.js';
|
|
35
|
+
import { RemoveRecurrenceConfirmDialog, RemoveRecurrenceConfirmDialogProps } from './editors/RemoveRecurrenceConfirmDialog.js';
|
|
33
36
|
import { SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle } from './components/header/SchedulerHeader.js';
|
|
34
37
|
import { DateHeaderCell, dateHeaderCellDefaultProps, DateHeaderCellHandle, DateHeaderCellProps } from './components/DateHeaderCell.js';
|
|
35
38
|
import { TimeHeaderCell, timeHeaderCellDefaultProps, TimeHeaderCellHandle, TimeHeaderCellProps } from './components/TimeHeaderCell.js';
|
|
@@ -45,4 +48,4 @@ import { SchedulerItemShowOccurrenceDialogAction, SHOW_OCCURRENCE_DIALOG_ACTION
|
|
|
45
48
|
import { SchedulerItemShowRemoveDialogAction, SHOW_REMOVE_DIALOG_ACTION } from './items/hooks/use-show-remove-item-dialog.js';
|
|
46
49
|
import { SchedulerSlotsSelectAction, SLOTS_SELECT_ACTION } from './hooks/use-slots-selection.js';
|
|
47
50
|
import { SchedulerGroup, SchedulerResource, SchedulerItemMouseEvent, SchedulerItemFocusEvent, SchedulerSlotMouseEvent, DataItem, SchedulerModelFields, DateRange, SchedulerRangeArgs, SchedulerRange, EditableProp, BaseEvent, ItemDragEvent, ViewChangeEvent, SchedulerItemKeyboardEvent, SchedulerItemDragEvent, SchedulerTaskMouseEvent, SchedulerSlotFocusEvent, SchedulerSlotKeyboardEvent, Fields, Group, Occurrence, Range, Resource, SchedulerHandle, SchedulerView, SchedulerViewDateRangeArgs, SchedulerViewDateRangeFunction, SchedulerViewProps, Slot } from './models/index.js';
|
|
48
|
-
export { Scheduler, SchedulerProps, AgendaView, TimelineView, DayView, WeekView, WorkWeekView, MonthView, AgendaViewProps, TimelineViewProps, DayViewProps, WeekViewProps, WorkWeekViewProps, MonthViewProps, SchedulerDataChangeEvent, SchedulerDateChangeEvent, SchedulerViewChangeEvent, SchedulerEditItemStateChangeEvent, SchedulerFormStateChangeEvent, SchedulerOccurrenceDialogStateChangeEvent, SchedulerRemoveDialogStateChangeEvent, DataAction, DATA_ACTION, SchedulerPropsContext, useSchedulerPropsContext, SchedulerPropsContextType, SchedulerViewsContext, useSchedulerViewsContext, SchedulerViewsContextType, SchedulerFieldsContext, useSchedulerFieldsContext, SchedulerFieldsContextType, SchedulerGroupsContext, useSchedulerGroupsContext, SchedulerGroupsContextType, SchedulerDateRangeContext, useSchedulerDateRangeContext, SchedulerDateRangeContextType, SchedulerOrientationContext, useSchedulerOrientationContext, SchedulerOrientationContextType, SchedulerDateContext, useSchedulerDateContext, SchedulerDateContextType, SchedulerActiveViewContext, useSchedulerActiveViewContext, SchedulerActiveViewContextType, SchedulerDataContext, useSchedulerDataContext, SchedulerDataContextType, SchedulerItem, SchedulerItemProps, SchedulerItemHandle, SchedulerItemContent, SchedulerItemContentProps, SchedulerViewItem, SchedulerViewItemProps, SchedulerViewItemHandle, SchedulerEditItem, SchedulerEditItemProps, SchedulerEditItemState, SchedulerEditItemAction, SchedulerEditItemHandle, SchedulerSlot, SchedulerSlotProps, SchedulerSlotHandle, SchedulerViewSlot, SchedulerViewSlotProps, SchedulerViewSlotHandle, SchedulerSlotExpandableConfig, SchedulerProportionalViewItem, SchedulerEditSlot, SchedulerEditSlotProps, SchedulerEditSlotHandle, SchedulerTask, SchedulerTaskProps, SchedulerTaskHandle, SchedulerViewTask, SchedulerViewTaskProps, SchedulerViewTaskHandle, SchedulerEditTask, SchedulerEditTaskProps, SchedulerEditTaskHandle, SchedulerDrag, SchedulerDragProps, SchedulerResize, SchedulerResizeProps, SchedulerForm, SchedulerFormHandle, SchedulerFormProps, SchedulerFormEditor, SchedulerFormEditorProps, SchedulerFormEditorHandle, SchedulerOccurrenceDialog, SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogHandle, SchedulerRemoveDialog, SchedulerRemoveDialogProps, SchedulerRemoveDialogHandle, SchedulerEditItemFormItemContext, useSchedulerEditItemFormItemContext, SchedulerEditItemFormItemContextType, SchedulerEditItemDragItemContext, useSchedulerEditItemDragItemContext, SchedulerEditItemDragItemContextType, SchedulerEditItemRemoveItemContext, useSchedulerEditItemRemoveItemContext, SchedulerEditItemRemoveItemContextType, SchedulerEditItemResizeItemContext, useSchedulerEditItemResizeItemContext, SchedulerEditItemResizeItemContextType, SchedulerEditItemShowRemoveDialogContext, useSchedulerEditItemShowRemoveDialogContext, SchedulerEditItemShowRemoveDialogContextType, SchedulerEditItemShowOccurrenceDialogContext, useSchedulerEditItemShowOccurrenceDialogContext, SchedulerEditItemShowOccurrenceDialogContextType, SchedulerEditItemPropsContext, useSchedulerEditItemPropsContext, SchedulerEditItemPropsContextType, SchedulerEditSlotFormItemContext, useSchedulerEditSlotFormItemContext, SchedulerEditSlotFormItemContextType, SchedulerEditSlotPropsContext, useSchedulerEditSlotPropsContext, SchedulerEditSlotPropsContextType, SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle, SchedulerFooter, SchedulerFooterProps, SchedulerFooterHandle, DateHeaderCell, DateHeaderCellHandle, DateHeaderCellProps, TimeHeaderCell, TimeHeaderCellHandle, TimeHeaderCellProps, DRAG_ITEM_ACTION, SchedulerItemDragItemAction, ITEMS_FOCUS_ACTION, SchedulerItemsFocusAction, ITEMS_SELECT_ACTION, SchedulerItemsSelectAction, REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction, RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction, SERIES_ACTION, SchedulerItemSeriesAction, SHOW_OCCURRENCE_DIALOG_ACTION, SchedulerItemShowOccurrenceDialogAction, SHOW_REMOVE_DIALOG_ACTION, SchedulerItemShowRemoveDialogAction, SLOTS_FOCUS_ACTION, SchedulerSlotsFocusAction, SLOTS_SELECT_ACTION, SchedulerSlotsSelectAction, SchedulerResource, SchedulerGroup, SchedulerItemFocusEvent, SchedulerSlotMouseEvent, SchedulerItemMouseEvent, DataItem, SchedulerModelFields, DateRange, SchedulerRangeArgs, SchedulerRange, EditableProp, BaseEvent, ItemDragEvent, ViewChangeEvent, SchedulerItemKeyboardEvent, SchedulerItemDragEvent, SchedulerTaskMouseEvent, SchedulerSlotFocusEvent, SchedulerSlotKeyboardEvent, Fields, Group, Occurrence, Range, Resource, SchedulerHandle, SchedulerView, SchedulerViewDateRangeArgs, SchedulerViewDateRangeFunction, SchedulerViewProps, Slot, schedulerDefaultProps, agendaViewDefaultProps, timeLineViewDefaultProps, dayViewDefaultProps, weekViewDefaultProps, workWeekDefaultProps, monthViewDefaultProps, schedulerFormEditorDefaultProps, schedulerResizeDefaultProps, schedulerDragDefaultProps, schedulerViewTaskDefaultProps, schedulerEditTaskDefaultProps, schedulerViewSlotDefaultProps, schedulerSlotDefaultProps, schedulerEditSlotDefaultProps, schedulerViewItemDefaultProps, schedulerProportionalViewItemDefaultProps, schedulerEditItemDefaultProps, timeHeaderCellDefaultProps, schedulerFormDefaultProps, dateHeaderCellDefaultProps };
|
|
51
|
+
export { Scheduler, SchedulerProps, AgendaView, TimelineView, DayView, WeekView, WorkWeekView, MonthView, AgendaViewProps, TimelineViewProps, DayViewProps, WeekViewProps, WorkWeekViewProps, MonthViewProps, SchedulerDataChangeEvent, SchedulerDateChangeEvent, SchedulerViewChangeEvent, SchedulerEditItemStateChangeEvent, SchedulerFormStateChangeEvent, SchedulerOccurrenceDialogStateChangeEvent, SchedulerRemoveDialogStateChangeEvent, DataAction, DATA_ACTION, SchedulerPropsContext, useSchedulerPropsContext, SchedulerPropsContextType, SchedulerViewsContext, useSchedulerViewsContext, SchedulerViewsContextType, SchedulerFieldsContext, useSchedulerFieldsContext, SchedulerFieldsContextType, SchedulerGroupsContext, useSchedulerGroupsContext, SchedulerGroupsContextType, SchedulerDateRangeContext, useSchedulerDateRangeContext, SchedulerDateRangeContextType, SchedulerOrientationContext, useSchedulerOrientationContext, SchedulerOrientationContextType, SchedulerDateContext, useSchedulerDateContext, SchedulerDateContextType, SchedulerActiveViewContext, useSchedulerActiveViewContext, SchedulerActiveViewContextType, SchedulerDataContext, useSchedulerDataContext, SchedulerDataContextType, SchedulerItem, SchedulerItemProps, SchedulerItemHandle, SchedulerItemContent, SchedulerItemContentProps, SchedulerViewItem, SchedulerViewItemProps, SchedulerViewItemHandle, SchedulerEditItem, SchedulerEditItemProps, SchedulerEditItemState, SchedulerEditItemAction, SchedulerEditItemHandle, SchedulerSlot, SchedulerSlotProps, SchedulerSlotHandle, SchedulerViewSlot, SchedulerViewSlotProps, SchedulerViewSlotHandle, SchedulerSlotExpandableConfig, SchedulerProportionalViewItem, SchedulerEditSlot, SchedulerEditSlotProps, SchedulerEditSlotHandle, SchedulerTask, SchedulerTaskProps, SchedulerTaskHandle, SchedulerViewTask, SchedulerViewTaskProps, SchedulerViewTaskHandle, SchedulerEditTask, SchedulerEditTaskProps, SchedulerEditTaskHandle, SchedulerDrag, SchedulerDragProps, SchedulerResize, SchedulerResizeProps, SchedulerForm, SchedulerFormHandle, SchedulerFormProps, SchedulerFormEditor, SchedulerFormEditorProps, SchedulerFormEditorHandle, RecurrenceButtonTextTemplateProps, RecurrenceEditorHintTemplateProps, RecurrenceRule, SchedulerOccurrenceDialog, SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogHandle, SchedulerRemoveDialog, SchedulerRemoveDialogProps, SchedulerRemoveDialogHandle, SchedulerRecurrenceDialog, SchedulerRecurrenceDialogProps, RemoveRecurrenceConfirmDialog, RemoveRecurrenceConfirmDialogProps, SchedulerEditItemFormItemContext, useSchedulerEditItemFormItemContext, SchedulerEditItemFormItemContextType, SchedulerEditItemDragItemContext, useSchedulerEditItemDragItemContext, SchedulerEditItemDragItemContextType, SchedulerEditItemRemoveItemContext, useSchedulerEditItemRemoveItemContext, SchedulerEditItemRemoveItemContextType, SchedulerEditItemResizeItemContext, useSchedulerEditItemResizeItemContext, SchedulerEditItemResizeItemContextType, SchedulerEditItemShowRemoveDialogContext, useSchedulerEditItemShowRemoveDialogContext, SchedulerEditItemShowRemoveDialogContextType, SchedulerEditItemShowOccurrenceDialogContext, useSchedulerEditItemShowOccurrenceDialogContext, SchedulerEditItemShowOccurrenceDialogContextType, SchedulerEditItemPropsContext, useSchedulerEditItemPropsContext, SchedulerEditItemPropsContextType, SchedulerEditSlotFormItemContext, useSchedulerEditSlotFormItemContext, SchedulerEditSlotFormItemContextType, SchedulerEditSlotPropsContext, useSchedulerEditSlotPropsContext, SchedulerEditSlotPropsContextType, SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle, SchedulerFooter, SchedulerFooterProps, SchedulerFooterHandle, DateHeaderCell, DateHeaderCellHandle, DateHeaderCellProps, TimeHeaderCell, TimeHeaderCellHandle, TimeHeaderCellProps, DRAG_ITEM_ACTION, SchedulerItemDragItemAction, ITEMS_FOCUS_ACTION, SchedulerItemsFocusAction, ITEMS_SELECT_ACTION, SchedulerItemsSelectAction, REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction, RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction, SERIES_ACTION, SchedulerItemSeriesAction, SHOW_OCCURRENCE_DIALOG_ACTION, SchedulerItemShowOccurrenceDialogAction, SHOW_REMOVE_DIALOG_ACTION, SchedulerItemShowRemoveDialogAction, SLOTS_FOCUS_ACTION, SchedulerSlotsFocusAction, SLOTS_SELECT_ACTION, SchedulerSlotsSelectAction, SchedulerResource, SchedulerGroup, SchedulerItemFocusEvent, SchedulerSlotMouseEvent, SchedulerItemMouseEvent, DataItem, SchedulerModelFields, DateRange, SchedulerRangeArgs, SchedulerRange, EditableProp, BaseEvent, ItemDragEvent, ViewChangeEvent, SchedulerItemKeyboardEvent, SchedulerItemDragEvent, SchedulerTaskMouseEvent, SchedulerSlotFocusEvent, SchedulerSlotKeyboardEvent, Fields, Group, Occurrence, Range, Resource, SchedulerHandle, SchedulerView, SchedulerViewDateRangeArgs, SchedulerViewDateRangeFunction, SchedulerViewProps, Slot, schedulerDefaultProps, agendaViewDefaultProps, timeLineViewDefaultProps, dayViewDefaultProps, weekViewDefaultProps, workWeekDefaultProps, monthViewDefaultProps, schedulerFormEditorDefaultProps, schedulerResizeDefaultProps, schedulerDragDefaultProps, schedulerViewTaskDefaultProps, schedulerEditTaskDefaultProps, schedulerViewSlotDefaultProps, schedulerSlotDefaultProps, schedulerEditSlotDefaultProps, schedulerViewItemDefaultProps, schedulerProportionalViewItemDefaultProps, schedulerEditItemDefaultProps, timeHeaderCellDefaultProps, schedulerFormDefaultProps, dateHeaderCellDefaultProps };
|