@progress/kendo-react-scheduler 16.3.0-develop.2 → 16.3.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/NOTICE.txt +19 -19
- package/dist/cdn/js/kendo-react-scheduler.js +1 -1
- package/hooks/useSlotExpand.d.ts +2 -1
- package/hooks/useSlotExpand.js +1 -1
- package/hooks/useSlotExpand.mjs +107 -49
- package/items/SchedulerViewItem.js +1 -1
- package/items/SchedulerViewItem.mjs +59 -59
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/slots/SchedulerViewSlot.js +1 -1
- package/slots/SchedulerViewSlot.mjs +7 -7
- package/views/agenda/AgendaView.js +1 -1
- package/views/agenda/AgendaView.mjs +32 -30
package/hooks/useSlotExpand.d.ts
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
import { Item } from '../models/index.js';
|
|
8
9
|
import { SchedulerSlotHandle } from '../slots/SchedulerSlot.js';
|
|
9
10
|
import { SchedulerSlotExpandableConfig } from '../slots/SchedulerViewSlot.js';
|
|
10
11
|
import * as React from 'react';
|
|
11
12
|
/** @hidden */
|
|
12
|
-
export declare const useSlotExpand: (slot: React.RefObject<SchedulerSlotHandle | null>, config?: boolean | SchedulerSlotExpandableConfig) => void;
|
|
13
|
+
export declare const useSlotExpand: (slot: React.RefObject<SchedulerSlotHandle | null>, config?: boolean | SchedulerSlotExpandableConfig, style?: React.CSSProperties, items?: Item[]) => void;
|
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 z=require("react"),w=require("../views/common/utils.js"),I=require("../constants/index.js"),D=require("../context/SchedulerContext.js");function C(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const f=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,f.get?f:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const v=C(z),F=e=>{const r=new Map;Array.from(e.querySelectorAll(".k-resource-row")).filter(t=>!t.classList.contains("k-resource-cell")).forEach(t=>{var p;const n=t.getAttribute("data-depth-index"),c=t.getAttribute("data-resource-index");if(n===null||c===null)return;const l=`${n}:${c}`;r.set(l,Math.max((p=r.get(l))!=null?p:0,t.clientHeight-I.BORDER_WIDTH))});const f=[];Array.from(e.querySelectorAll(".k-resource-cell")).forEach(t=>{const n=t.getAttribute("data-depth-index"),c=t.getAttribute("data-resource-index");if(n===null||c===null)return;const l=r.get(`${n}:${c}`);if(l===void 0)return;const p=Math.round(l-w.getPadding(t));f.push({cell:t,height:p,minHeight:p>0?`${p}px`:""})}),f.forEach(({cell:t,height:n,minHeight:c})=>{t.style.minHeight!==c&&w.setRect(t,{height:n},!0)})},E=new Set;let x;const T=e=>{E.add(e),x===void 0&&(x=window.requestAnimationFrame(()=>{x=void 0;const r=Array.from(E);E.clear();const s=new Set;r.map(h=>{try{return h()}catch{return}}).forEach(h=>{if(!h)return;const{element:t,minHeight:n}=h,c=n&&n>0?`${n}px`:"";if(t.style.minHeight!==c){w.setRect(t,{height:n!=null?n:0},!0);const l=t.closest(".k-scheduler-layout");l&&s.add(l)}}),s.forEach(F)}))},K=e=>{E.delete(e),E.size===0&&x!==void 0&&(window.cancelAnimationFrame(x),x=void 0)},N=(e,r,s,f)=>{const h=D.useSchedulerElementContext(),t=!!r,n=typeof r=="object"&&r.offsetTop?r.offsetTop:0,c=typeof r=="object"&&r.offsetBottom?r.offsetBottom:0,l=f!=null?f:e.current&&e.current.props.items,p=l?JSON.stringify(l.map(i=>{var d,u;return[i.uid,i.isRecurring&&(u=(d=i.originalStart)==null?void 0:d.getTime())!=null?u:null]})):"",P=s?`${s.padding}|${s.paddingTop}|${s.paddingBottom}`:"",b=v.useCallback(()=>{if(!t||!e.current)return;const i=e.current.element,d=e.current.props;if(!i)return;const u=w.getPadding(i),o=new Map;let y=!1;const m=d.items.filter(a=>a._ref.current);m.forEach(a=>{var A,H,k,M,$;if(!a._ref.current)return;const{height:R}=w.getRect(a._ref.current.element),O=(k=(H=(A=a._ref.current)==null?void 0:A._order)!=null?H:a.order)!=null?k:-1;(M=a._ref.current.element)!=null&&M.style.top&&(y=!0),(($=o.get(O))!=null?$:0)<R&&o.set(O,R)});let g;if(!y||o.size===0)return{element:i,minHeight:null};const _=Math.max(...Array.from(o.keys())),j=_+1,q=Math.max(...Array.from(o.values()));g=0;for(let a=0;a<=_;a++)g+=o.has(a)?o.get(a):q;const B=j*I.BORDER_WIDTH*2+g-u+n+c;return{element:i,minHeight:m.length?B:null}},[t,c,n,e]),S=v.useCallback(()=>{T(b)},[b]);v.useEffect(()=>{var i;if(!t){const d=e.current;if(d!=null&&d.element){const u=(i=d.props.style)==null?void 0:i.minHeight;d.element.style.minHeight=typeof u=="number"?`${u}px`:u!=null?u:""}return}return T(b),()=>K(b)},[b,t,e,p,P]),v.useEffect(()=>{if(!t||!e.current)return;const u=e.current.props.items.filter(o=>o._ref.current).map(o=>{if(!o._ref.current||!o._ref.current.element||!h.current)return;const y=window.ResizeObserver,m=y&&new y(S);m&&m.observe(o._ref.current.element);const g=new MutationObserver(S);return g.observe(o._ref.current.element,{attributes:!0,attributeFilter:["style"]}),()=>{m&&m.disconnect(),g.disconnect()}});return()=>{u.forEach(o=>o&&o())}},[t,S,h,e,p])};exports.useSlotExpand=N;
|
package/hooks/useSlotExpand.mjs
CHANGED
|
@@ -5,67 +5,125 @@
|
|
|
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 { getPadding as
|
|
10
|
-
import { BORDER_WIDTH as
|
|
11
|
-
import { useSchedulerElementContext as
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
8
|
+
import * as w from "react";
|
|
9
|
+
import { getPadding as O, getRect as q, setRect as B } from "../views/common/utils.mjs";
|
|
10
|
+
import { BORDER_WIDTH as T } from "../constants/index.mjs";
|
|
11
|
+
import { useSchedulerElementContext as j } from "../context/SchedulerContext.mjs";
|
|
12
|
+
const D = (t) => {
|
|
13
|
+
const o = /* @__PURE__ */ new Map();
|
|
14
|
+
Array.from(t.querySelectorAll(".k-resource-row")).filter(
|
|
15
|
+
(e) => !e.classList.contains("k-resource-cell")
|
|
16
|
+
).forEach((e) => {
|
|
17
|
+
var f;
|
|
18
|
+
const r = e.getAttribute("data-depth-index"), s = e.getAttribute("data-resource-index");
|
|
19
|
+
if (r === null || s === null)
|
|
15
20
|
return;
|
|
16
|
-
const
|
|
17
|
-
|
|
21
|
+
const a = `${r}:${s}`;
|
|
22
|
+
o.set(a, Math.max((f = o.get(a)) != null ? f : 0, e.clientHeight - T));
|
|
23
|
+
});
|
|
24
|
+
const m = [];
|
|
25
|
+
Array.from(t.querySelectorAll(".k-resource-cell")).forEach((e) => {
|
|
26
|
+
const r = e.getAttribute("data-depth-index"), s = e.getAttribute("data-resource-index");
|
|
27
|
+
if (r === null || s === null)
|
|
18
28
|
return;
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
const a = o.get(`${r}:${s}`);
|
|
30
|
+
if (a === void 0)
|
|
31
|
+
return;
|
|
32
|
+
const f = Math.round(a - O(e));
|
|
33
|
+
m.push({ cell: e, height: f, minHeight: f > 0 ? `${f}px` : "" });
|
|
34
|
+
}), m.forEach(({ cell: e, height: r, minHeight: s }) => {
|
|
35
|
+
e.style.minHeight !== s && B(e, { height: r }, !0);
|
|
36
|
+
});
|
|
37
|
+
}, E = /* @__PURE__ */ new Set();
|
|
38
|
+
let x;
|
|
39
|
+
const I = (t) => {
|
|
40
|
+
E.add(t), x === void 0 && (x = window.requestAnimationFrame(() => {
|
|
41
|
+
x = void 0;
|
|
42
|
+
const o = Array.from(E);
|
|
43
|
+
E.clear();
|
|
44
|
+
const d = /* @__PURE__ */ new Set();
|
|
45
|
+
o.map((p) => {
|
|
46
|
+
try {
|
|
47
|
+
return p();
|
|
48
|
+
} catch {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}).forEach((p) => {
|
|
52
|
+
if (!p)
|
|
53
|
+
return;
|
|
54
|
+
const { element: e, minHeight: r } = p, s = r && r > 0 ? `${r}px` : "";
|
|
55
|
+
if (e.style.minHeight !== s) {
|
|
56
|
+
B(e, { height: r != null ? r : 0 }, !0);
|
|
57
|
+
const a = e.closest(".k-scheduler-layout");
|
|
58
|
+
a && d.add(a);
|
|
59
|
+
}
|
|
60
|
+
}), d.forEach(D);
|
|
61
|
+
}));
|
|
62
|
+
}, K = (t) => {
|
|
63
|
+
E.delete(t), E.size === 0 && x !== void 0 && (window.cancelAnimationFrame(x), x = void 0);
|
|
64
|
+
}, W = (t, o, d, m) => {
|
|
65
|
+
const p = j(), e = !!o, r = typeof o == "object" && o.offsetTop ? o.offsetTop : 0, s = typeof o == "object" && o.offsetBottom ? o.offsetBottom : 0, a = m != null ? m : t.current && t.current.props.items, f = a ? JSON.stringify(
|
|
66
|
+
a.map((c) => {
|
|
67
|
+
var l, i;
|
|
68
|
+
return [c.uid, c.isRecurring && (i = (l = c.originalStart) == null ? void 0 : l.getTime()) != null ? i : null];
|
|
69
|
+
})
|
|
70
|
+
) : "", z = d ? `${d.padding}|${d.paddingTop}|${d.paddingBottom}` : "", y = w.useCallback(() => {
|
|
71
|
+
if (!e || !t.current)
|
|
72
|
+
return;
|
|
73
|
+
const c = t.current.element, l = t.current.props;
|
|
74
|
+
if (!c)
|
|
75
|
+
return;
|
|
76
|
+
const i = O(c), n = /* @__PURE__ */ new Map();
|
|
77
|
+
let b = !1;
|
|
78
|
+
const h = l.items.filter((u) => u._ref.current);
|
|
79
|
+
h.forEach((u) => {
|
|
80
|
+
var R, S, $, k, M;
|
|
81
|
+
if (!u._ref.current)
|
|
25
82
|
return;
|
|
26
|
-
const { height:
|
|
27
|
-
(
|
|
83
|
+
const { height: H } = q(u._ref.current.element), _ = ($ = (S = (R = u._ref.current) == null ? void 0 : R._order) != null ? S : u.order) != null ? $ : -1;
|
|
84
|
+
(k = u._ref.current.element) != null && k.style.top && (b = !0), ((M = n.get(_)) != null ? M : 0) < H && n.set(_, H);
|
|
28
85
|
});
|
|
29
|
-
let
|
|
30
|
-
if (!
|
|
31
|
-
|
|
86
|
+
let g;
|
|
87
|
+
if (!b || n.size === 0)
|
|
88
|
+
return { element: c, minHeight: null };
|
|
89
|
+
const A = Math.max(...Array.from(n.keys())), C = A + 1, F = Math.max(...Array.from(n.values()));
|
|
90
|
+
g = 0;
|
|
91
|
+
for (let u = 0; u <= A; u++)
|
|
92
|
+
g += n.has(u) ? n.get(u) : F;
|
|
93
|
+
const P = C * T * 2 + g - i + r + s;
|
|
94
|
+
return { element: c, minHeight: h.length ? P : null };
|
|
95
|
+
}, [e, s, r, t]), v = w.useCallback(() => {
|
|
96
|
+
I(y);
|
|
97
|
+
}, [y]);
|
|
98
|
+
w.useEffect(() => {
|
|
99
|
+
var c;
|
|
100
|
+
if (!e) {
|
|
101
|
+
const l = t.current;
|
|
102
|
+
if (l != null && l.element) {
|
|
103
|
+
const i = (c = l.props.style) == null ? void 0 : c.minHeight;
|
|
104
|
+
l.element.style.minHeight = typeof i == "number" ? `${i}px` : i != null ? i : "";
|
|
105
|
+
}
|
|
32
106
|
return;
|
|
33
|
-
} else {
|
|
34
|
-
const t = Math.max(...Array.from(e.keys()));
|
|
35
|
-
v = t + 1;
|
|
36
|
-
const a = Math.max(...Array.from(e.values()));
|
|
37
|
-
u = 0;
|
|
38
|
-
for (let c = 0; c <= t; c++)
|
|
39
|
-
u += e.has(c) ? e.get(c) : a;
|
|
40
107
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const O = v * A * 2 + u - d + E + _;
|
|
45
|
-
s.length ? z(o, { height: O }, !0) : o && (o.style.minHeight = "");
|
|
46
|
-
}, [n, r]), l = f.useCallback(() => {
|
|
47
|
-
m.current !== void 0 && window.cancelAnimationFrame(m.current), m.current = window.requestAnimationFrame(() => {
|
|
48
|
-
p();
|
|
49
|
-
});
|
|
50
|
-
}, [p]);
|
|
51
|
-
f.useEffect(p, [r, r.current && r.current.props, n]), f.useEffect(() => {
|
|
52
|
-
if (!r.current)
|
|
108
|
+
return I(y), () => K(y);
|
|
109
|
+
}, [y, e, t, f, z]), w.useEffect(() => {
|
|
110
|
+
if (!e || !t.current)
|
|
53
111
|
return;
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
112
|
+
const i = t.current.props.items.filter((n) => n._ref.current).map((n) => {
|
|
113
|
+
if (!n._ref.current || !n._ref.current.element || !p.current)
|
|
56
114
|
return;
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
|
|
115
|
+
const b = window.ResizeObserver, h = b && new b(v);
|
|
116
|
+
h && h.observe(n._ref.current.element);
|
|
117
|
+
const g = new MutationObserver(v);
|
|
118
|
+
return g.observe(n._ref.current.element, { attributes: !0, attributeFilter: ["style"] }), () => {
|
|
119
|
+
h && h.disconnect(), g.disconnect();
|
|
62
120
|
};
|
|
63
121
|
});
|
|
64
122
|
return () => {
|
|
65
|
-
|
|
123
|
+
i.forEach((n) => n && n());
|
|
66
124
|
};
|
|
67
|
-
}, [
|
|
125
|
+
}, [e, v, p, t, f]);
|
|
68
126
|
};
|
|
69
127
|
export {
|
|
70
|
-
|
|
128
|
+
W as useSlotExpand
|
|
71
129
|
};
|
|
@@ -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 Ee=require("react"),Se=require("./SchedulerItem.js"),q=require("../utils/index.js"),K=require("../views/common/utils.js"),F=require("../constants/index.js"),De=require("@progress/kendo-react-intl"),ie=require("./SchedulerItemContent.js"),H=require("@progress/kendo-react-common"),w=require("@progress/kendo-svg-icons"),be=require("../hooks/useEditable.js"),ce=require("../context/SchedulerViewContext.js"),He=require("../context/SchedulerContext.js"),Ae=require("../hooks/useRowSync.js");function ze(e){const _=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const x in e)if(x!=="default"){const P=Object.getOwnPropertyDescriptor(e,x);Object.defineProperty(_,x,P.get?P:{enumerable:!0,get:()=>e[x]})}}return _.default=e,Object.freeze(_)}const t=ze(Ee),L=1,J=25,oe=t.forwardRef((e,_)=>{const{item:x,_ref:P,itemRef:le,...se}=e,Y=t.useRef(void 0),R=t.useRef(void 0),m=t.useRef(null),Q=t.useRef(null),X=t.useRef(null),ue=be.useEditable(e.editable);t.useImperativeHandle(Q,()=>({props:e,element:m.current&&m.current.element})),t.useImperativeHandle(_,()=>Q.current),t.useImperativeHandle(P,()=>m.current),t.useImperativeHandle(le,()=>m.current);const de=x||ae.item,W=De.useInternationalization(),[me]=ce.useSchedulerViewItemsContext(),[fe]=ce.useSchedulerViewSlotsContext(),C=He.useSchedulerElementContext(),[he,$]=t.useState(!0),[ge,Z]=t.useState(!1),f=t.useRef(e.order),p=t.useRef(0),ee=t.useRef(!1),V=H.useDir(C),ve=t.useMemo(()=>{var n,r;return e.isAllDay?(n=e.title)!=null?n:"":`(${W.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd)}): ${(r=e.title)!=null?r:""}`},[W,e.isAllDay,e.title,e.zonedEnd,e.zonedStart]);let A;e.isRecurring&&!e.isException?A="recurring":!e.isRecurring&&e.isException&&(A="non-recurring");const we=t.useMemo(()=>W.format("{0:t} – {1:t}",e.zonedStart,e.zonedEnd),[W,e.zonedStart,e.zonedEnd]),te=(n,r)=>{let l=1;return n.forEach(c=>{const s=r.filter(z=>G(c.current.props,z.props));s.length>l&&(l=s.length)}),l},Ie=(n,r)=>n.map(c=>r.filter(s=>G(c.current.props,s.props))),Re=(n,r,l,c=!1)=>{var j;const s=r.filter(i=>i.props.order!==null&&i.props.order!==void 0).map(i=>{let a=i.props.start,u=i.props.end;if(i.props.isAllDay||c){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());const E=new Date(u.getFullYear(),u.getMonth(),u.getDate());u=E.getTime()<=a.getTime()?new Date(a.getFullYear(),a.getMonth(),a.getDate()+1):E}return{order:i.props.order,start:a,end:u}}),z=Array.from(new Set(s.map(i=>i.order))).sort((i,a)=>i-a),I=new Map;for(const i of s)I.has(i.order)||I.set(i.order,[]),I.get(i.order).push({start:i.start,end:i.end});const O=[],y=new Map;for(const i of z){const a=I.get(i);let u=-1,E=0;y.forEach((g,N)=>{if(N>=i)return;const S=I.get(N);if(!S)return;a.some(M=>S.some(o=>q.intersects(o.start,o.end,M.start,M.end,l)))&&g+1>E&&(E=g+1)});for(let g=E;g<O.length;g++)if(a.every(S=>O[g].every(T=>!q.intersects(T.start,T.end,S.start,S.end,l)))){u=g;break}u===-1&&(u=O.length,O.push([])),O[u].push(...a),y.set(i,u)}return(j=y.get(n))!=null?j:n},G=(n,r)=>q.intersects(n.start,n.end,r.start,r.end)&&n.group.index===r.group.index&&n.range.index===r.range.index&&(n.range.isAllDay===void 0||r.range.isAllDay===void 0||n.range.isAllDay===r.range.isAllDay)&&(e.ignoreIsAllDay||n.isAllDay===r.isAllDay),B=()=>{var g,N,S,T,M;const n=(fe||[]).filter(o=>o.current&&G(o.current.props,e)),r=m.current&&m.current.element,l=q.first(n);if(n.length===0){$(!1);return}if(!l.current||!r)return;const c=K.getRect(l.current.element),s=[],z=[],I=[];(me||[]).forEach(o=>{o.current&&(o.current.props.dragHint?z.push(o.current):o.current.props.resizeHint?I.push(o.current):s.push(o.current))});const O=e.dragHint||e.resizeHint?q.calculateOrder(m.current,e.dragHint?z:I,n,e.ignoreIsAllDay):(g=e.order)!=null?g:0;if(!e.vertical&&!(e.dragHint||e.resizeHint)&&e.order!==null&&e.order!==void 0){const D=(e.ignoreIsAllDay?s:s.filter(k=>k.props.isAllDay)).filter(k=>k.props.group.index===e.group.index),h=(N=e.style)==null?void 0:N.height,b=typeof h=="number"?h:parseFloat(h),d=h!=null&&Number.isNaN(b),v=!!e.ignoreIsAllDay,U=v?!0:!d;f.current=Re(e.order,D,U,v)}else f.current=O;let y=e.dragHint||e.resizeHint?te(n,e.dragHint?z:I):te(n,s);const j=Ie(n,s);let i=0;const a=!e.vertical&&f.current!==null;if(j.forEach(o=>{let D=0;o.forEach(h=>{if(!a){const b=K.getRect(h.element);h.props.order!==null&&h.props.order!==void 0&&h.props.order<f.current&&(D=b.top+b.height-c.top-F.BORDER_WIDTH*f.current+L)}}),D>i&&(i=D)}),a){const o=(S=e.style)==null?void 0:S.height,D=typeof o=="number"?o:parseFloat(o);if(o==null)i=f.current*(J+L);else if(!Number.isNaN(D))i=f.current*(D+L);else{const h=(e.ignoreIsAllDay?s:s.filter(d=>d.props.isAllDay)).filter(d=>d.props.group.index===e.group.index&&d.element!==r&&(!e.ignoreIsAllDay||!l.current||q.intersects(d.props.start,d.props.end,l.current.props.start,l.current.props.end))),b=new Map;h.forEach(d=>{var k,re;const v=d._order;if(v==null||v>=f.current)return;const U=((k=d.element)==null?void 0:k.offsetHeight)||J;b.set(v,Math.max((re=b.get(v))!=null?re:0,U))}),i=Array.from(b.values()).reduce((d,v)=>d+v+L,0)}}if(n.length===0){$(!1);return}const u=ue.add?20:0;c.width=e.vertical?c.width/y-F.BORDER_WIDTH-u/y:c.width*n.length-F.BORDER_WIDTH,e.vertical?c.height=c.height*n.length-F.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&y<=1||(c.height=(M=(T=e.style)==null?void 0:T.height)!=null?M:J),c.left=e.vertical?c.left+f.current*c.width+F.BORDER_WIDTH*f.current:c.left;const E=!e.vertical&&e.slotHeaderOffset||0;c.top=e.vertical?c.top:c.top+i+F.BORDER_WIDTH*f.current+E,p.current=y,K.setRect(r,c),(ee.current||e.dragHint||e.resizeHint)&&Z(!0),$(!0)},ne=t.useCallback(n=>{const r=n&&n[0],l=X.current;Y.current!==void 0&&window.cancelAnimationFrame(Y.current),l&&r&&(l.width!==r.contentRect.width||l.height!==r.contentRect.height)&&(Y.current=window.requestAnimationFrame(()=>{B()})),X.current={width:r.contentRect.width,height:r.contentRect.height}},[B]);t.useEffect(()=>(B(),R.current!==void 0&&window.cancelAnimationFrame(R.current),R.current=window.requestAnimationFrame(()=>{R.current=window.requestAnimationFrame(()=>{R.current=void 0,B(),ee.current=!0,Z(!0)})}),()=>{R.current!==void 0&&(window.cancelAnimationFrame(R.current),R.current=void 0)}));const ye=m.current&&m.current.element?m.current.element.closest(".k-scheduler-layout"):null;return Ae.useRowSync({element:ye,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell",syncHeight:e.isLast}),t.useEffect(()=>{if(!C.current)return;const n=window.ResizeObserver,r=n&&new n(ne);return r&&r.observe(C.current),()=>{r&&r.disconnect()}},[ne,C]),t.createElement(de,{...se,_ref:m,_maxSiblingsPerSlot:p,_order:f,itemRef:m,style:{visibility:ge?void 0:"hidden",display:he?void 0:"none",...e.style}},!e.resizeHint&&t.createElement(t.Fragment,null,e.tail&&!e.vertical&&t.createElement("span",{className:"k-event-continuation"},t.createElement(H.IconWrap,{name:V==="rtl"?"chevron-right":"chevron-left",icon:V==="rtl"?w.chevronRightIcon:w.chevronLeftIcon})),t.createElement("div",{title:ve},e.tail&&e.vertical&&t.createElement("span",{className:"k-event-continuation"},t.createElement(H.IconWrap,{name:"chevron-up",icon:w.chevronUpIcon})),t.createElement(ie.SchedulerItemContent,{className:"k-event-title"},e.title),t.createElement(ie.SchedulerItemContent,{className:"k-event-time"},A==="recurring"&&t.createElement("span",{className:"k-event-recurrence-icon"},t.createElement(H.IconWrap,{name:"arrow-rotate-cw",icon:w.arrowRotateCwIcon})),A==="non-recurring"&&t.createElement("span",{className:"k-event-recurrence-icon"},t.createElement(H.IconWrap,{name:"arrows-no-repeat",icon:w.arrowsNoRepeatIcon})),we),e.head&&e.vertical&&t.createElement("span",{className:"k-event-continuation"},t.createElement(H.IconWrap,{name:"chevron-down",icon:w.chevronDownIcon}))),A&&t.createElement("span",{className:"k-event-recurrence-icon"},t.createElement(H.IconWrap,{name:A==="recurring"?"arrow-rotate-cw":"arrows-no-repeat",icon:A==="recurring"?w.arrowRotateCwIcon:w.arrowsNoRepeatIcon})),e.head&&!e.vertical&&t.createElement("span",{className:"k-event-continuation"},t.createElement(H.IconWrap,{name:V==="rtl"?"chevron-left":"chevron-right",icon:V==="rtl"?w.chevronLeftIcon:w.chevronRightIcon}))))}),ae={item:Se.SchedulerItem};oe.displayName="KendoReactSchedulerViewItem";exports.SchedulerViewItem=oe;exports.schedulerViewItemDefaultProps=ae;
|
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as t from "react";
|
|
9
|
-
import { SchedulerItem as
|
|
10
|
-
import { first as
|
|
11
|
-
import { getRect as
|
|
9
|
+
import { SchedulerItem as Re } from "./SchedulerItem.mjs";
|
|
10
|
+
import { first as Se, calculateOrder as Ae, intersects as V } from "../utils/index.mjs";
|
|
11
|
+
import { getRect as p, setRect as De } from "../views/common/utils.mjs";
|
|
12
12
|
import { BORDER_WIDTH as k } from "../constants/index.mjs";
|
|
13
|
-
import { useInternationalization as
|
|
14
|
-
import { SchedulerItemContent as
|
|
15
|
-
import { useDir as
|
|
16
|
-
import { chevronRightIcon as
|
|
17
|
-
import { useEditable as
|
|
18
|
-
import { useSchedulerViewItemsContext as
|
|
19
|
-
import { useSchedulerElementContext as
|
|
20
|
-
import { useRowSync as
|
|
21
|
-
const q = 1, G = 25,
|
|
22
|
-
(e,
|
|
23
|
-
const { item:
|
|
24
|
-
t.useImperativeHandle(U, () => ({ props: e, element: m.current && m.current.element })), t.useImperativeHandle(
|
|
25
|
-
const
|
|
13
|
+
import { useInternationalization as He } from "@progress/kendo-react-intl";
|
|
14
|
+
import { SchedulerItemContent as ee } from "./SchedulerItemContent.mjs";
|
|
15
|
+
import { useDir as be, IconWrap as z } from "@progress/kendo-react-common";
|
|
16
|
+
import { chevronRightIcon as te, chevronLeftIcon as re, chevronUpIcon as ze, arrowRotateCwIcon as ne, arrowsNoRepeatIcon as ie, chevronDownIcon as xe } from "@progress/kendo-svg-icons";
|
|
17
|
+
import { useEditable as Ne } from "../hooks/useEditable.mjs";
|
|
18
|
+
import { useSchedulerViewItemsContext as Fe, useSchedulerViewSlotsContext as ke } from "../context/SchedulerViewContext.mjs";
|
|
19
|
+
import { useSchedulerElementContext as Me } from "../context/SchedulerContext.mjs";
|
|
20
|
+
import { useRowSync as Te } from "../hooks/useRowSync.mjs";
|
|
21
|
+
const q = 1, G = 25, Oe = t.forwardRef(
|
|
22
|
+
(e, oe) => {
|
|
23
|
+
const { item: ce, _ref: le, itemRef: ae, ...se } = e, W = t.useRef(void 0), y = t.useRef(void 0), m = t.useRef(null), U = t.useRef(null), $ = t.useRef(null), ue = Ne(e.editable);
|
|
24
|
+
t.useImperativeHandle(U, () => ({ props: e, element: m.current && m.current.element })), t.useImperativeHandle(oe, () => U.current), t.useImperativeHandle(le, () => m.current), t.useImperativeHandle(ae, () => m.current);
|
|
25
|
+
const de = ce || Pe.item, T = He(), [me] = Fe(), [fe] = ke(), O = Me(), [he, B] = t.useState(!0), [ge, K] = t.useState(!1), f = t.useRef(e.order), j = t.useRef(0), J = t.useRef(!1), P = be(O), ve = t.useMemo(
|
|
26
26
|
() => {
|
|
27
27
|
var r, n;
|
|
28
28
|
return e.isAllDay ? (r = e.title) != null ? r : "" : `(${T.format("{0:t} - {1:t}", e.zonedStart, e.zonedEnd)}): ${(n = e.title) != null ? n : ""}`;
|
|
@@ -31,17 +31,17 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
31
31
|
);
|
|
32
32
|
let D;
|
|
33
33
|
e.isRecurring && !e.isException ? D = "recurring" : !e.isRecurring && e.isException && (D = "non-recurring");
|
|
34
|
-
const
|
|
34
|
+
const we = t.useMemo(
|
|
35
35
|
() => T.format("{0:t} – {1:t}", e.zonedStart, e.zonedEnd),
|
|
36
36
|
[T, e.zonedStart, e.zonedEnd]
|
|
37
|
-
),
|
|
37
|
+
), Q = (r, n) => {
|
|
38
38
|
let a = 1;
|
|
39
39
|
return r.forEach((o) => {
|
|
40
40
|
const s = n.filter((H) => L(o.current.props, H.props));
|
|
41
41
|
s.length > a && (a = s.length);
|
|
42
42
|
}), a;
|
|
43
|
-
},
|
|
44
|
-
var
|
|
43
|
+
}, ye = (r, n) => r.map((o) => n.filter((s) => L(o.current.props, s.props))), Ee = (r, n, a, o = !1) => {
|
|
44
|
+
var C;
|
|
45
45
|
const s = n.filter((i) => i.props.order !== null && i.props.order !== void 0).map((i) => {
|
|
46
46
|
let l = i.props.start, u = i.props.end;
|
|
47
47
|
if (i.props.isAllDay || o) {
|
|
@@ -65,14 +65,14 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
65
65
|
return;
|
|
66
66
|
l.some(
|
|
67
67
|
(M) => R.some(
|
|
68
|
-
(c) =>
|
|
68
|
+
(c) => V(c.start, c.end, M.start, M.end, a)
|
|
69
69
|
)
|
|
70
70
|
) && g + 1 > I && (I = g + 1);
|
|
71
71
|
});
|
|
72
72
|
for (let g = I; g < b.length; g++)
|
|
73
73
|
if (l.every(
|
|
74
74
|
(R) => b[g].every(
|
|
75
|
-
(N) => !
|
|
75
|
+
(N) => !V(
|
|
76
76
|
N.start,
|
|
77
77
|
N.end,
|
|
78
78
|
R.start,
|
|
@@ -86,23 +86,23 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
86
86
|
}
|
|
87
87
|
u === -1 && (u = b.length, b.push([])), b[u].push(...l), E.set(i, u);
|
|
88
88
|
}
|
|
89
|
-
return (
|
|
90
|
-
}, L = (r, n) =>
|
|
89
|
+
return (C = E.get(r)) != null ? C : r;
|
|
90
|
+
}, L = (r, n) => V(r.start, r.end, n.start, n.end) && r.group.index === n.group.index && r.range.index === n.range.index && // When slotDuration equals a full day, both daySlots and timeSlots have isAllDay=true,
|
|
91
91
|
// so we need to also check range.isAllDay to distinguish between them.
|
|
92
92
|
(r.range.isAllDay === void 0 || n.range.isAllDay === void 0 || r.range.isAllDay === n.range.isAllDay) && (e.ignoreIsAllDay || r.isAllDay === n.isAllDay), _ = () => {
|
|
93
93
|
var g, x, R, N, M;
|
|
94
|
-
const r = (
|
|
94
|
+
const r = (fe || []).filter((c) => c.current && L(c.current.props, e)), n = m.current && m.current.element, a = Se(r);
|
|
95
95
|
if (r.length === 0) {
|
|
96
96
|
B(!1);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
if (!a.current || !n)
|
|
100
100
|
return;
|
|
101
|
-
const o =
|
|
102
|
-
(
|
|
101
|
+
const o = p(a.current.element), s = [], H = [], w = [];
|
|
102
|
+
(me || []).forEach((c) => {
|
|
103
103
|
c.current && (c.current.props.dragHint ? H.push(c.current) : c.current.props.resizeHint ? w.push(c.current) : s.push(c.current));
|
|
104
104
|
});
|
|
105
|
-
const b = e.dragHint || e.resizeHint ?
|
|
105
|
+
const b = e.dragHint || e.resizeHint ? Ae(
|
|
106
106
|
m.current,
|
|
107
107
|
e.dragHint ? H : w,
|
|
108
108
|
r,
|
|
@@ -110,7 +110,7 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
110
110
|
) : (g = e.order) != null ? g : 0;
|
|
111
111
|
if (!e.vertical && !(e.dragHint || e.resizeHint) && e.order !== null && e.order !== void 0) {
|
|
112
112
|
const S = (e.ignoreIsAllDay ? s : s.filter((F) => F.props.isAllDay)).filter((F) => F.props.group.index === e.group.index), h = (x = e.style) == null ? void 0 : x.height, A = typeof h == "number" ? h : parseFloat(h), d = h != null && Number.isNaN(A), v = !!e.ignoreIsAllDay, Y = v ? !0 : !d;
|
|
113
|
-
f.current =
|
|
113
|
+
f.current = Ee(
|
|
114
114
|
e.order,
|
|
115
115
|
S,
|
|
116
116
|
Y,
|
|
@@ -118,15 +118,15 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
118
118
|
);
|
|
119
119
|
} else
|
|
120
120
|
f.current = b;
|
|
121
|
-
let E = e.dragHint || e.resizeHint ?
|
|
122
|
-
const
|
|
121
|
+
let E = e.dragHint || e.resizeHint ? Q(r, e.dragHint ? H : w) : Q(r, s);
|
|
122
|
+
const C = ye(r, s);
|
|
123
123
|
let i = 0;
|
|
124
124
|
const l = !e.vertical && f.current !== null;
|
|
125
|
-
if (
|
|
125
|
+
if (C.forEach((c) => {
|
|
126
126
|
let S = 0;
|
|
127
127
|
c.forEach((h) => {
|
|
128
128
|
if (!l) {
|
|
129
|
-
const A =
|
|
129
|
+
const A = p(h.element);
|
|
130
130
|
h.props.order !== null && h.props.order !== void 0 && h.props.order < f.current && (S = A.top + A.height - o.top - k * f.current + q);
|
|
131
131
|
}
|
|
132
132
|
}), S > i && (i = S);
|
|
@@ -138,7 +138,7 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
138
138
|
i = f.current * (S + q);
|
|
139
139
|
else {
|
|
140
140
|
const h = (e.ignoreIsAllDay ? s : s.filter((d) => d.props.isAllDay)).filter(
|
|
141
|
-
(d) => d.props.group.index === e.group.index && d.element !== n && (!e.ignoreIsAllDay || !a.current ||
|
|
141
|
+
(d) => d.props.group.index === e.group.index && d.element !== n && (!e.ignoreIsAllDay || !a.current || V(
|
|
142
142
|
d.props.start,
|
|
143
143
|
d.props.end,
|
|
144
144
|
a.current.props.start,
|
|
@@ -146,12 +146,12 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
146
146
|
))
|
|
147
147
|
), A = /* @__PURE__ */ new Map();
|
|
148
148
|
h.forEach((d) => {
|
|
149
|
-
var F,
|
|
149
|
+
var F, Z;
|
|
150
150
|
const v = d._order;
|
|
151
151
|
if (v == null || v >= f.current)
|
|
152
152
|
return;
|
|
153
153
|
const Y = ((F = d.element) == null ? void 0 : F.offsetHeight) || G;
|
|
154
|
-
A.set(v, Math.max((
|
|
154
|
+
A.set(v, Math.max((Z = A.get(v)) != null ? Z : 0, Y));
|
|
155
155
|
}), i = Array.from(A.values()).reduce((d, v) => d + v + q, 0);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -159,11 +159,11 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
159
159
|
B(!1);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const u =
|
|
162
|
+
const u = ue.add ? 20 : 0;
|
|
163
163
|
o.width = e.vertical ? o.width / E - k - u / E : o.width * r.length - k, e.vertical ? o.height = o.height * r.length - k : (e.resizeHint || e.dragHint) && E <= 1 || (o.height = (M = (N = e.style) == null ? void 0 : N.height) != null ? M : G), o.left = e.vertical ? o.left + f.current * o.width + k * f.current : o.left;
|
|
164
164
|
const I = !e.vertical && e.slotHeaderOffset || 0;
|
|
165
|
-
o.top = e.vertical ? o.top : o.top + i + k * f.current + I,
|
|
166
|
-
},
|
|
165
|
+
o.top = e.vertical ? o.top : o.top + i + k * f.current + I, j.current = E, De(n, o), (J.current || e.dragHint || e.resizeHint) && K(!0), B(!0);
|
|
166
|
+
}, X = t.useCallback(
|
|
167
167
|
(r) => {
|
|
168
168
|
const n = r && r[0], a = $.current;
|
|
169
169
|
W.current !== void 0 && window.cancelAnimationFrame(W.current), a && n && (a.width !== n.contentRect.width || a.height !== n.contentRect.height) && (W.current = window.requestAnimationFrame(() => {
|
|
@@ -174,14 +174,14 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
174
174
|
);
|
|
175
175
|
t.useEffect(() => (_(), y.current !== void 0 && window.cancelAnimationFrame(y.current), y.current = window.requestAnimationFrame(() => {
|
|
176
176
|
y.current = window.requestAnimationFrame(() => {
|
|
177
|
-
y.current = void 0, _();
|
|
177
|
+
y.current = void 0, _(), J.current = !0, K(!0);
|
|
178
178
|
});
|
|
179
179
|
}), () => {
|
|
180
180
|
y.current !== void 0 && (window.cancelAnimationFrame(y.current), y.current = void 0);
|
|
181
181
|
}));
|
|
182
|
-
const
|
|
183
|
-
return
|
|
184
|
-
element:
|
|
182
|
+
const Ie = m.current && m.current.element ? m.current.element.closest(".k-scheduler-layout") : null;
|
|
183
|
+
return Te({
|
|
184
|
+
element: Ie,
|
|
185
185
|
selector: ".k-resource-row",
|
|
186
186
|
horizontalAttribute: "data-depth-index",
|
|
187
187
|
verticalAttribute: "data-resource-index",
|
|
@@ -190,21 +190,21 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
190
190
|
}), t.useEffect(() => {
|
|
191
191
|
if (!O.current)
|
|
192
192
|
return;
|
|
193
|
-
const r = window.ResizeObserver, n = r && new r(
|
|
193
|
+
const r = window.ResizeObserver, n = r && new r(X);
|
|
194
194
|
return n && n.observe(O.current), () => {
|
|
195
195
|
n && n.disconnect();
|
|
196
196
|
};
|
|
197
|
-
}, [
|
|
198
|
-
|
|
197
|
+
}, [X, O]), /* @__PURE__ */ t.createElement(
|
|
198
|
+
de,
|
|
199
199
|
{
|
|
200
|
-
...
|
|
200
|
+
...se,
|
|
201
201
|
_ref: m,
|
|
202
|
-
_maxSiblingsPerSlot:
|
|
202
|
+
_maxSiblingsPerSlot: j,
|
|
203
203
|
_order: f,
|
|
204
204
|
itemRef: m,
|
|
205
205
|
style: {
|
|
206
|
-
visibility:
|
|
207
|
-
display:
|
|
206
|
+
visibility: ge ? void 0 : "hidden",
|
|
207
|
+
display: he ? void 0 : "none",
|
|
208
208
|
...e.style
|
|
209
209
|
}
|
|
210
210
|
},
|
|
@@ -212,28 +212,28 @@ const q = 1, G = 25, Te = t.forwardRef(
|
|
|
212
212
|
z,
|
|
213
213
|
{
|
|
214
214
|
name: P === "rtl" ? "chevron-right" : "chevron-left",
|
|
215
|
-
icon: P === "rtl" ?
|
|
215
|
+
icon: P === "rtl" ? te : re
|
|
216
216
|
}
|
|
217
|
-
)), /* @__PURE__ */ t.createElement("div", { title:
|
|
217
|
+
)), /* @__PURE__ */ t.createElement("div", { title: ve }, e.tail && e.vertical && /* @__PURE__ */ t.createElement("span", { className: "k-event-continuation" }, /* @__PURE__ */ t.createElement(z, { name: "chevron-up", icon: ze })), /* @__PURE__ */ t.createElement(ee, { className: "k-event-title" }, e.title), /* @__PURE__ */ t.createElement(ee, { className: "k-event-time" }, D === "recurring" && /* @__PURE__ */ t.createElement("span", { className: "k-event-recurrence-icon" }, /* @__PURE__ */ t.createElement(z, { name: "arrow-rotate-cw", icon: ne })), D === "non-recurring" && /* @__PURE__ */ t.createElement("span", { className: "k-event-recurrence-icon" }, /* @__PURE__ */ t.createElement(z, { name: "arrows-no-repeat", icon: ie })), we), e.head && e.vertical && /* @__PURE__ */ t.createElement("span", { className: "k-event-continuation" }, /* @__PURE__ */ t.createElement(z, { name: "chevron-down", icon: xe }))), D && /* @__PURE__ */ t.createElement("span", { className: "k-event-recurrence-icon" }, /* @__PURE__ */ t.createElement(
|
|
218
218
|
z,
|
|
219
219
|
{
|
|
220
220
|
name: D === "recurring" ? "arrow-rotate-cw" : "arrows-no-repeat",
|
|
221
|
-
icon: D === "recurring" ?
|
|
221
|
+
icon: D === "recurring" ? ne : ie
|
|
222
222
|
}
|
|
223
223
|
)), e.head && !e.vertical && /* @__PURE__ */ t.createElement("span", { className: "k-event-continuation" }, /* @__PURE__ */ t.createElement(
|
|
224
224
|
z,
|
|
225
225
|
{
|
|
226
226
|
name: P === "rtl" ? "chevron-left" : "chevron-right",
|
|
227
|
-
icon: P === "rtl" ?
|
|
227
|
+
icon: P === "rtl" ? re : te
|
|
228
228
|
}
|
|
229
229
|
)))
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
),
|
|
233
|
-
item:
|
|
232
|
+
), Pe = {
|
|
233
|
+
item: Re
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
Oe.displayName = "KendoReactSchedulerViewItem";
|
|
236
236
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
Oe as SchedulerViewItem,
|
|
238
|
+
Pe as schedulerViewItemDefaultProps
|
|
239
239
|
};
|
package/package-metadata.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 e=Object.freeze({name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1793357757,version:"16.3.0-develop.21",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -6,7 +6,7 @@ export const packageMetadata = Object.freeze({
|
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCode: 'KENDOUIREACT',
|
|
8
8
|
productCodes: ['KENDOUIREACT'],
|
|
9
|
-
publishDate:
|
|
10
|
-
version: '16.3.0-develop.
|
|
9
|
+
publishDate: 1793357757,
|
|
10
|
+
version: '16.3.0-develop.21',
|
|
11
11
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui'
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-scheduler",
|
|
3
|
-
"version": "16.3.0-develop.
|
|
3
|
+
"version": "16.3.0-develop.21",
|
|
4
4
|
"description": "React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"@progress/kendo-data-query": "^1.7.2",
|
|
29
29
|
"@progress/kendo-date-math": "^1.4.1",
|
|
30
30
|
"@progress/kendo-drawing": "^1.25.5",
|
|
31
|
-
"@progress/kendo-licensing": "^1.
|
|
32
|
-
"@progress/kendo-react-buttons": "16.3.0-develop.
|
|
33
|
-
"@progress/kendo-react-common": "16.3.0-develop.
|
|
34
|
-
"@progress/kendo-react-dateinputs": "16.3.0-develop.
|
|
35
|
-
"@progress/kendo-react-dialogs": "16.3.0-develop.
|
|
36
|
-
"@progress/kendo-react-dropdowns": "16.3.0-develop.
|
|
37
|
-
"@progress/kendo-react-form": "16.3.0-develop.
|
|
38
|
-
"@progress/kendo-react-inputs": "16.3.0-develop.
|
|
39
|
-
"@progress/kendo-react-intl": "16.3.0-develop.
|
|
40
|
-
"@progress/kendo-react-popup": "16.3.0-develop.
|
|
41
|
-
"@progress/kendo-react-tooltip": "16.3.0-develop.
|
|
31
|
+
"@progress/kendo-licensing": "^1.12.0",
|
|
32
|
+
"@progress/kendo-react-buttons": "16.3.0-develop.21",
|
|
33
|
+
"@progress/kendo-react-common": "16.3.0-develop.21",
|
|
34
|
+
"@progress/kendo-react-dateinputs": "16.3.0-develop.21",
|
|
35
|
+
"@progress/kendo-react-dialogs": "16.3.0-develop.21",
|
|
36
|
+
"@progress/kendo-react-dropdowns": "16.3.0-develop.21",
|
|
37
|
+
"@progress/kendo-react-form": "16.3.0-develop.21",
|
|
38
|
+
"@progress/kendo-react-inputs": "16.3.0-develop.21",
|
|
39
|
+
"@progress/kendo-react-intl": "16.3.0-develop.21",
|
|
40
|
+
"@progress/kendo-react-popup": "16.3.0-develop.21",
|
|
41
|
+
"@progress/kendo-react-tooltip": "16.3.0-develop.21",
|
|
42
42
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
43
43
|
"react": "^18.0.0 || ^19.0.0",
|
|
44
44
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"package": {
|
|
114
114
|
"productName": "KendoReact",
|
|
115
115
|
"productCode": "KENDOUIREACT",
|
|
116
|
-
"publishDate":
|
|
116
|
+
"publishDate": 1793357757,
|
|
117
117
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -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 S=require("react"),f=require("./SchedulerSlot.js"),p=require("../hooks/useSlotExpand.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,o.get?o:{enumerable:!0,get:()=>e[l]})}}return r.default=e,Object.freeze(r)}const t=b(S),s=t.forwardRef((e,r)=>{var u;const{slot:l,_ref:o,...d}=e,i=l||a.slot,c=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(c,()=>({props:e})),t.useImperativeHandle(o,()=>n.current),t.useImperativeHandle(r,()=>c.current),p.useSlotExpand(n,(u=e.expandable)!=null?u:a.expandable),t.createElement(i,{...d,_ref:n})}),a={slot:f.SchedulerSlot,expandable:!1};s.displayName="KendoReactSchedulerViewSlot";exports.SchedulerViewSlot=s;exports.schedulerViewSlotDefaultProps=a;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),f=require("./SchedulerSlot.js"),p=require("../hooks/useSlotExpand.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,o.get?o:{enumerable:!0,get:()=>e[l]})}}return r.default=e,Object.freeze(r)}const t=b(S),s=t.forwardRef((e,r)=>{var u;const{slot:l,_ref:o,...d}=e,i=l||a.slot,c=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(c,()=>({props:e})),t.useImperativeHandle(o,()=>n.current),t.useImperativeHandle(r,()=>c.current),p.useSlotExpand(n,(u=e.expandable)!=null?u:a.expandable,e.style,e.items),t.createElement(i,{...d,_ref:n})}),a={slot:f.SchedulerSlot,expandable:!1};s.displayName="KendoReactSchedulerViewSlot";exports.SchedulerViewSlot=s;exports.schedulerViewSlotDefaultProps=a;
|