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.36 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 i=require("react"),s=require("../../utils/GridContext.js"),c=require("@progress/kendo-react-data-tools"),u=require("@progress/kendo-react-intl"),r=require("../../messages/index.js"),l=require("../hooks.js");function d(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const g=d(i),b=e=>{const o=u.useLocalization(),t=g.useContext(s.GridContext),n=c.useTableKeyboardNavigation(e.id),a=l.useContextMenuHandler(e.dataItem,e.field);return{"aria-label":o.toLanguageString(r.gridRowReorderAriaLabel,r.messages[r.gridRowReorderAriaLabel]),...n,onMouseDown:()=>e.rowReorderable?t.activeDragRowDataItemRef.current=e.dataItem:null,onContextMenu:a}};exports.useRowReorderCellClientTdProps=b;