UNPKG

@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.58 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),f=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-common");function g(e){const r=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(r,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=g(m),s=t.forwardRef((e,r)=>{const{as:a=o.as,...l}=e,n=t.useRef(null),c=t.useRef(null),u=f.useInternationalization(),d=t.useMemo(()=>i.classNames("k-scheduler-cell k-heading-cell",e.className),[e.className]);return t.useImperativeHandle(c,()=>({element:n.current&&n.current.element?n.current.element:n.current,props:e})),t.useImperativeHandle(r,()=>c.current),t.createElement(a,{ref:a!==o.as?void 0:n,...l,className:d},t.createElement("span",{className:"k-link k-nav-day"},u.formatDate(e.date,e.format?e.format:o.format)))}),o={as:t.forwardRef(({as:e,format:r,start:a,end:l,...n},c)=>t.createElement("div",{...n,ref:c})),format:"d"};s.displayName="KendoReactSchedulerDateHeaderCell";exports.DateHeaderCell=s;exports.dateHeaderCellDefaultProps=o;