@progress/kendo-react-gantt
Version:
React Gantt enables the display of self-referencing tabular data with many features. KendoReact Gantt package
9 lines (8 loc) • 1.74 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 l=require("react"),i=require("@progress/kendo-react-common");function u(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const e=u(l),r=e.createContext([{current:{}},i.noop]),C=()=>e.useContext(r);r.displayName="KendoReactGanttViewContext";const c=e.createContext(0),x=()=>e.useContext(c);c.displayName="KendoReactGanttViewTimelineWidthContext";const s=e.createContext({onDependencyHandlePress:i.noop,onDependencyHandleDrag:i.noop,onDependencyHandleRelease:i.noop,isEnabled:!1,draggedId:null}),p=()=>e.useContext(s);s.displayName="KendoReactGanttViewDependencyDragContext";const d=({children:t,tasksStore:a,timelineWidth:n,dependencyDrag:o})=>e.createElement(r.Provider,{value:a},e.createElement(c.Provider,{value:n},e.createElement(s.Provider,{value:o},t)));d.displayName="KendoReactGanttViewContext";exports.GanttViewContext=d;exports.GanttViewDependencyDragContext=s;exports.GanttViewTasksContext=r;exports.GanttViewTimelineWidthContext=c;exports.useGanttViewDependencyDragContext=p;exports.useGanttViewTasksContext=C;exports.useGanttViewTimelineWidthContext=x;