@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) • 2.67 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 p=require("react"),n=require("../utils/index.js");function v(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(c,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return c.default=t,Object.freeze(c)}const e=v(p),x=e.createContext({});x.displayName="SchedulerViewPropsContext";const l=e.createContext([]),I=()=>e.useContext(l);l.displayName="SchedulerViewRangesContext";const r=e.createContext([[],n.noop]),P=()=>e.useContext(r);r.displayName="SchedulerViewSlotsContext";const u=e.createContext([[],n.noop]),y=()=>e.useContext(u);u.displayName="SchedulerViewItemsContext";const d=e.createContext([[],n.noop]),g=()=>e.useContext(d);d.displayName="SchedulerViewSelectedSlotsContext";const i=e.createContext([[],n.noop]),f=()=>e.useContext(i);i.displayName="SchedulerViewSelectedItemsContext";const S=e.createContext([[],n.noop]),F=()=>e.useContext(S);S.displayName="SchedulerViewFocusedItemsContext";const a=e.createContext([[],n.noop]),N=()=>e.useContext(a);a.displayName="SchedulerViewFocusedSlotsContext";const b=({children:t,props:c,ranges:o,slots:s,items:C,selectedSlots:w,selectedItems:h,focusedItems:V,focusedSlots:m})=>e.createElement(x.Provider,{value:c},e.createElement(l.Provider,{value:o},e.createElement(r.Provider,{value:s},e.createElement(u.Provider,{value:C},e.createElement(d.Provider,{value:w},e.createElement(i.Provider,{value:h},e.createElement(S.Provider,{value:V},e.createElement(a.Provider,{value:m},t))))))));exports.SchedulerViewContext=b;exports.SchedulerViewFocusedItemsContext=S;exports.SchedulerViewFocusedSlotsContext=a;exports.SchedulerViewItemsContext=u;exports.SchedulerViewPropsContext=x;exports.SchedulerViewRangesContext=l;exports.SchedulerViewSelectedItemsContext=i;exports.SchedulerViewSelectedSlotsContext=d;exports.SchedulerViewSlotsContext=r;exports.useSchedulerViewFocusedItemsContext=F;exports.useSchedulerViewFocusedSlotsContext=N;exports.useSchedulerViewItemsContext=y;exports.useSchedulerViewRangesContext=I;exports.useSchedulerViewSelectedItemsContext=f;exports.useSchedulerViewSelectedSlotsContext=g;exports.useSchedulerViewSlotsContext=P;