UNPKG

@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.6 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),i=require("../utils/index.js"),f=require("@progress/kendo-react-common"),d=require("./client/FooterCellContainer.js");function b(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const l=b(C),g=t=>{const{column:e,index:o,cells:n}=t,r={colSpan:e.colSpan!==1?e.colSpan:void 0,className:f.classNames("k-table-td",e.locked&&e.left!==void 0?"k-grid-footer-sticky":""),role:"gridcell","aria-colindex":e.ariaColumnIndex},a={field:e.field,ariaColumnIndex:e.ariaColumnIndex,...r},s=i.clientColumn(e),c=i.resolveCells(n,e.cells);if(c&&c.footerCell){const u=c.footerCell,m=i.isClientReference(u);return l.createElement(d.FooterCellContainer,{key:o,id:t.id,tdProps:r,isCustom:!0,isClient:m,column:s},l.createElement(u,{...a,tdProps:r,index:o}))}return l.createElement(d.FooterCellContainer,{key:o,id:t.id,column:s},e.footerCell&&l.createElement(e.footerCell,{...a})||l.createElement("td",{...r}))};exports.FooterCell=g;