@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.27 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
*-------------------------------------------------------------------------------------------
*/
"use client";
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),l=require("../GridClientWrapper.js"),r=require("../utils/index.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=c(o),u=e=>{const t=a.useContext(l.GridContext);if(t.isClient||e.isClient){const n=t.getCellPositionStyle(e.columnPosition);return e.children&&r.cloneReactElement(e.children,{style:{...e.style,...n},onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:i=>{t.selectionChange({event:i,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}})}return e.children};exports.GridCustomCellClientContainer=u;