@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.53 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 i=require("react"),d=require("@progress/kendo-react-intl"),f=require("@progress/kendo-react-common");function g(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const t=g(i),s=t.forwardRef((e,n)=>{const{as:a=o.as,...l}=e,r=t.useRef(null),c=t.useRef(null),u=d.useInternationalization(),m=t.useMemo(()=>f.classNames("k-scheduler-cell k-heading-cell",e.className),[e.className]);return t.useImperativeHandle(c,()=>({element:r.current&&r.current.element?r.current.element:r.current,props:e})),t.useImperativeHandle(n,()=>c.current),t.createElement(a,{ref:a!==o.as?void 0:r,...l,className:m},u.formatDate(e.date,e.format?e.format:o.format))}),o={as:t.forwardRef(({as:e,format:n,start:a,end:l,...r},c)=>t.createElement("div",{...r,ref:c})),format:"t"};s.displayName="KendoReactSchedulerTimeHeaderCell";exports.TimeHeaderCell=s;exports.timeHeaderCellDefaultProps=o;