UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

10 lines (9 loc) 1.41 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 client"; "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("../../utils/GridContext.js"),l=require("../../drag/ColumnDraggable.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=d(c),i=e=>{const r=t.useContext(o.GridContext);return r.dragLogicRef.current.pressHandler&&t.createElement(l.ColumnDraggable,{ariaRowIndex:e.ariaRowIndex,pressHandler:r.dragLogicRef.current.pressHandler,dragHandler:r.dragLogicRef.current.dragHandler,releaseHandler:r.dragLogicRef.current.releaseHandler,dragClue:r.dragLogicRef.current.dragClue,headerRef:r.headerElementRef,containerRef:r.containerElementRef},e.children)||t.createElement("tr",{className:e.className,role:"row","aria-rowindex":e.ariaRowIndex},e.children)};exports.HeaderRowDraggable=i;