@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.59 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 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 r=require("react"),s=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),d=require("./GridPinDropdownButton.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const g=u(r),m=e=>{var n;let t=null,l=null;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){const a=e.unstyled,i=(n=a==null?void 0:a.uGrid)!=null?n:c.uGrid,o=c.classNames(i.td({selected:e.isSelected,highlighted:e.isHighlighted,sorted:e.isSorted,alt:e.isAlt}),e.className);t={colSpan:e.colSpan,style:e.style,className:o,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[s.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},l=g.createElement(d.GridPinDropdownButton,{dataItem:e.dataItem})}return{tdProps:t,content:l}},f=e=>{var t,l;return(l=(t=e.cells)==null?void 0:t.pin)==null?void 0:l[e.rowType||"data"]};exports.getCustomCell=f;exports.getPinCellTdProps=m;