@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
9 lines (8 loc) • 1.31 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;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;