@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
9 lines (8 loc) • 1.61 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 y=require("react"),G=require("@progress/kendo-react-common"),O=require("./client/GridSelectionCellInput.js"),C=require("./client/GridSelectionCellContainer.js"),m=require("../utils/index.js");function P(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=P(y),j=e=>{const{className:n,colSpan:t,style:c,ariaColumnIndex:f,rowType:a,cells:S}=e,g=G.classNames("k-table-td",n),r={colSpan:t,style:c,className:g,"aria-colindex":f,role:"gridcell"},i=l.createElement(O.GridSelectionCellInput,{key:1,...e}),s=m.getClientCellProps(e),u=a||"data",o=S;if(o&&o.select&&o.select[u]){const d=o.select[u],b=m.isClientReference(d);return l.createElement(C.GridSelectionCellContainer,{cellProps:s,tdProps:r,isCustom:!0,isClient:b},l.createElement(d,{...s,tdProps:r},i))}const p=a!=="groupHeader"?l.createElement("td",{...r},i):null;return l.createElement(C.GridSelectionCellContainer,{cellProps:s,content:i,tdProps:r},p)};exports.GridSelectionCell=j;