@progress/kendo-react-grid 9.4.0-develop.18 → 9.4.0-develop.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GridComponent.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("react"),d=require("@progress/kendo-react-common"),mt=require("@progress/kendo-data-query"),b=require("@progress/kendo-react-data-tools"),bt=require("./cells/GridSelectionCell.js"),Ct=require("./cells/GridHierarchyCell.js"),yt=require("./cells/GridEditCell.js"),ht=require("./header/Header.js"),wt=require("./header/HeaderRow.js"),Gt=require("./header/FilterRow.js"),St=require("./header/GroupPanel.js"),Et=require("./footer/Footer.js"),s=require("./utils/index.js"),Rt=require("./cells/GridCell.js"),He=require("./cells/GridGroupCell.js"),It=require("./rows/GridRow.js"),vt=require("./header/GridHeaderSelectionCell.js"),Pe=require("./components/noRecords/GridNoRecords.js"),Ke=require("./filterCommon.js"),xt=require("./footer/FooterRow.js"),Nt=require("./paging/GridPagerSettings.js"),kt=require("./package-metadata.js"),qt=require("./cells/GridDetailCell.js"),Ft=require("./cells/GridDetailHierarchyCell.js"),Ve=require("./components/noRecords/GridNoRecordsContainer.js"),Dt=require("./GridWatermarkOverlay.js"),Oe=require("./GridClientWrapper.js"),Tt=require("./components/colGroup/GridColGroup.js"),Ht=require("./components/table/GridTable.js"),Ae=require("./components/GridDropClue.js"),Be=require("./components/GridDragClue.js"),Le=require("./components/table/GridTableBody.js"),Pt=require("./components/PagerContainer.js"),Kt=require("./components/table/GridTableScrollable.js"),_e=require("./components/GridElementContainer.js"),Vt=require("./components/GridContainerElementContainer.js"),Ot=require("./components/VirtualScrollHeightContainer.js"),ze=require("@progress/kendo-react-intl"),te=require("./messages/index.js"),$=require("./VirtualScrollFixed.js"),At=require("./VirtualScroll.js"),Bt=require("./components/GridCustomCellClientContainer.js"),Lt=require("./components/GridDraggableRowsContainer.js"),_t=require("./cells/GridRowReorderCell.js"),zt=require("./header/client/GridHeaderRowReorderCell.js"),Me=require("./components/GridLoader.js");function Mt(e){const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const C in e)if(C!=="default"){const S=Object.getOwnPropertyDescriptor(e,C);Object.defineProperty(k,C,S.get?S:{enumerable:!0,get:()=>e[C]})}}return k.default=e,Object.freeze(k)}const a=Mt(ft),We=a.forwardRef((e,k)=>{var Se,Ee,Re,Ie,ve,xe,Ne;const C=e.id+"-role-element-id",S=e.navigatable?C:"";d.validatePackage(kt.packageMetadata);const je=(t,n,g,o,i,l,c)=>{const u=[],w=s.flatData(u,E,t,{index:n},g!==void 0,o,i,l,tt.defaultExpand,c);return{flattedData:u,resolvedGroupsCount:w}},$e=t=>{const n=t.filter(i=>i&&i.type&&i.type.displayName==="KendoReactGridColumn"),g=m.current.filter(i=>i.declarationIndex>=0&&i.parentIndex===-1),o=s.sanitizeColumns(g);return s.readColumns(n,o,{prevId:0,idPrefix:S})},Ue=t=>t.filter(n=>d.canUseDOM&&n&&n.media?window.matchMedia(n.media).matches:n),Qe=(t,n)=>{var i;const g=$e(t),o=Ue(g);m.current=o,m.current.length===0&&(m.current=s.autoGenerateColumns(E,e.group,{column:(i=V.column)!=null?i:e.expandField},{prevId:0,idPrefix:S})),Je(m.current,n),q=s.mapColumns(m.current,!0),le.current=m.current.map(s.clientColumn)},Je=(t,n)=>{var i;t.filter(l=>e.selectedField&&l.field===e.selectedField||l.columnType==="checkbox").forEach(l=>{l.width=l.width||"50px",l.cell=l.cell||bt.GridSelectionCell,l._type="edit",l.headerCell=l.headerCell||vt.GridHeaderSelectionCell}),D!==void 0&&t.filter(l=>l.columnType==="reorder").forEach(l=>{l.width=l.width||"50px",l.cell=l.cell||_t.GridRowReorderCell,l.headerCell=l.headerCell||zt.GridHeaderRowReorderCell,l.sortable=!1,l.filterable=!1,l.editable=!1});const g={id:"",resizable:!0,width:"32px",title:" ",declarationIndex:-1,orderIndex:-1,children:[],parentIndex:-1,depth:0,colSpan:0,headerColSpan:0,rowSpan:0,left:0,right:0,index:0,rightBorder:!1,ariaColumnIndex:0,isAccessible:!0};let o=0;(e.expandField||V.enabled)&&e.detail&&(t.unshift({...g,_type:"expand",cell:Ct.GridHierarchyCell,field:(i=V.column)!=null?i:e.expandField,headerClassName:d.classNames(f.hierarchyCell({}))}),o++);for(let l=0;l<n;l++)t.unshift({...g,isAccessible:!1,cell:He.GridGroupCell,field:"value",locked:e.lockGroups}),o++;t.slice(o).forEach(l=>{l.parentIndex>=0&&(l.parentIndex+=o),l.rowSpannable=l.rowSpannable!==void 0?s.getRowSpanOptions(l.rowSpannable):ne})},ae=()=>E.length===e.total,Xe=()=>{const{rowHeight:t,detailRowHeight:n,detail:g,expandField:o}=e,i=ae(),l=t!==void 0&&t>0,c=n!==void 0&&n>0;return!l||K&&!i||!!(g&&o)&&(!c||!i)?At.VirtualScroll:$.VirtualScrollFixed},U=()=>e.isClient?m:le,Ye=(t,n,g,o,i,l)=>{let c=s.getColSpan(t,n);if(e.columnVirtualization&&t.colSpan===1)return{colSpan:l,colsToSkip:i};let u=g.length-1===o,w=g.length-o;return e.columnVirtualization&&(u=h.length-1===o,w=h.length-o),c>1&&!u?i=c-1:c=1,w<=c&&!u&&(c=w),{colSpan:c,colsToSkip:i}};let Q,y=[],_;const m=e.columnsRef||{current:[]},le={current:[]};let q=[[]];const Ze=e.scrollLeftRef||{current:0},z=e.localization||new ze.LocalizationService,pe=e.intl||new ze.IntlService("en"),F=e.unstyled,f=F&&F.uGrid?F.uGrid:d.uGrid,D=typeof e.rowReorderable=="object"?e.rowReorderable.enabled:e.rowReorderable,T=e.autoProcessData===!0?{group:!0,sort:!0,filter:!0,search:!0,page:!0}:e.autoProcessData;let E,N;if(Array.isArray(e.data)?(E=e.data,N=(Se=e.total)!=null?Se:E.length):(E=((Ee=e.data)==null?void 0:Ee.data)||[],N=(ve=(Ie=e.total)!=null?Ie:(Re=e.data)==null?void 0:Re.total)!=null?ve:E.length),T){const{data:t,total:n}=mt.process(E,{group:T.group?e.group:void 0,sort:T.sort?e.sort:void 0,filter:b.combineFilters(T.filter?e.filter:void 0,T.search?e.search:void 0),...T.page?{take:e.take,skip:e.skip}:{}});E=t,N=(xe=e.total)!=null?xe:n}const{size:I="medium"}=e,et=typeof e.groupable=="object"&&e.groupable.footer||"none",H=e.scrollable==="virtual",K=e.groupable===!0||typeof e.groupable=="object"&&e.groupable.enabled!==!1,V=b.getDetailExpandableOptions(!!e.detail),tt=b.getGroupExpandableOptions(typeof e.groupable=="object"&&e.groupable.enabled!==!1?e.groupable.expandable:e.groupable),{resolvedGroupsCount:at,flattedData:lt}=je(et,e.skip||0,e.group,e.expandField,e.detailExpand,e.groupExpand,e.dataItemKey);y=lt;const J=Xe();J===$.VirtualScrollFixed&&ae()&&(_=y.slice(e.skip||0,(e.skip||0)+((e.take!==void 0?e.take:e.pageSize)||0)));const re=b.getSelectionOptions(e.selectable||!!e.selectedField),ne=s.getRowSpanOptions(e.rowSpannable),rt=re&&re.drag?"none":void 0,M=a.Children.toArray(e.children);Qe(M,at);const ie=M.map(t=>t&&t.type&&t.type.displayName==="KendoReactGridToolbar"?a.cloneElement(t,{...t.props,ariaControls:C}):null),W=M.filter(t=>t&&t.type&&t.type.displayName==="KendoReactGridNoRecords"),oe=M.filter(t=>t&&t.type&&t.type.displayName==="KendoReactGridStatusBar"),h=m.current.filter(t=>t.children.length===0),de=K&&a.createElement(St.GroupPanel,{columns:U().current,group:e.group||[],ariaControls:C}),ce=a.createElement(ht.Header,{size:I,staticHeaders:e.scrollable!=="none",draggable:e.reorderable||K,headerRow:a.createElement(wt.HeaderRow,{cells:e.cells,sort:e.sort,sortable:e.sortable,group:e.group||[],groupable:K,filter:e.filter,filterable:e.filterable,filterOperators:e.filterOperators||Ke.operators,columnMenu:e.columnMenu,columnMenuIcon:e.columnMenuIcon,columns:m.current,columnsMap:q,cellRender:e.headerCellRender,navigatable:!!e.navigatable,localization:z,unstyled:F,headerSelectionValue:!!(e.select&&y.filter(t=>t.rowType==="data").every(t=>e.select&&e.dataItemKey&&d.getter(e.dataItemKey)(t.dataItem)!==void 0?e.select[d.getter(e.dataItemKey)(t.dataItem)]:void 0))}),filterRow:e.filterable&&a.createElement(Gt.FilterRow,{cells:e.cells,size:I,columns:m.current,filter:e.filter,filterOperators:e.filterOperators||Ke.operators,sort:e.sort,cellRender:e.filterCellRender,navigatable:!!e.navigatable,ariaRowIndex:q.length+1,localization:z})||void 0,cols:h.map((t,n)=>a.createElement("col",{key:n.toString(),width:s.getColumnWidth(t)}))}),nt=Ze.current||0,it=parseFloat(((e.style||{}).width||"").toString()),ot=(t,n,g,o,i)=>{let l=!1;const c=e.selectedField?s.getNestedValue(e.selectedField,t.dataItem):e.select&&e.dataItemKey&&d.getter(e.dataItemKey)(t.dataItem)!==void 0?e.select[d.getter(e.dataItemKey)(t.dataItem)]:void 0;let u=0;const{colSpans:w,hiddenColumns:P}=b.tableColumnsVirtualization({enabled:e.columnVirtualization,columns:h,tableViewPortWidth:it,scrollLeft:nt,getColSpan:s.getColSpan,dataItem:t.dataItem}),v=h.filter((r,G)=>!P[G]);return{row:h.map((r,G)=>{var qe,Fe,De,Te;if(P[G])return null;if(u>0)return u--,null;let R;if((qe=r.rowSpannable)!=null&&qe.enabled&&t.rowType==="data"&&r.field&&i){const x=r.field?(De=(Fe=r.rowSpannable).valueGetter)==null?void 0:De.call(Fe,t.dataItem,r.field):null;R={value:x,count:1},i[r.field]&&((Te=i[r.field])==null?void 0:Te.value)===x&&i[r.field]!==null?(i[r.field].count++,R.count=null):i[r.field]=R}const{colSpan:A,colsToSkip:Z}=Ye(r,t.dataItem,v,G,u,w[G]);u=Z;const B=r.id?r.id:G,st=d.classNames(f.contentSticky({locked:r.locked}),r.className),ut=r.left!==void 0?{left:r.left,right:r.right}:{};let ke=!1;if(r.editable&&(e.editable||e.editField)){const x=e.editField?s.getNestedValue(e.editField,t.dataItem):e.edit&&e.dataItemKey?e.edit[d.getter(e.dataItemKey)(t.dataItem)]:void 0,ee=typeof x=="boolean"?x:Array.isArray(x)?x.indexOf(r.field)>-1:r.field!==void 0&&x===r.field;ee&&r.columnType==="data"&&(ee===!0||ee===r.field)&&(l=!0,ke=!0)}const p=r.cell||ke&&yt.GridEditCell||Rt.GridCell,gt=e.expandField&&e.detail&&r.field===e.expandField||r._type==="expand",L={locked:e.lockGroups,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${n}-${String(G)}`,S,gt||t.rowType==="groupHeader"||t.rowType==="groupFooter"||r.field==="value"?"nodata":"cell"),colSpan:A,dataItem:t.dataItem,field:r.field,editor:r.editor,format:r.format,columnType:r.columnType,rowReorderable:D,className:st,render:e.cellRender,cells:s.resolveCells(e.cells,r.cells),columnIndex:G,columnsCount:h.length,rowType:t.rowType,level:t.level,expanded:t.expanded,dataIndex:t.dataIndex,rowDataIndex:g,columnPosition:ut,style:{},ariaColumnIndex:r.ariaColumnIndex,isSelected:(r==null?void 0:r._type)==="edit"?c:Array.isArray(c)&&c.indexOf(G)>-1,isSorted:!!s.isSorted(r.field,e.sort),isInEdit:l,isAlt:o,unstyled:F,group:t.group,localization:z,intl:pe,_rowSpan:R};return r.cell?a.createElement(Bt.GridCustomCellClientContainer,{key:B,isClient:s.isClientReference(p),dataItem:L.dataItem,rowDataIndex:L.rowDataIndex,columnIndex:L.columnIndex},a.createElement(p,{...L})):a.createElement(p,{key:B,...L})}),isInEdit:l,isSelected:typeof c=="boolean"&&c}};let se=0;if(H&&Q)for(let t=0;t<Q.topCacheCount+Q.attendedSkip-(e.skip||0);t++){const n=y.shift();if(n)y.push(n),se++,n.rowType==="groupHeader"&&t--;else break}const ue=t=>t>=y.length-se;let ge=e.skip||0;const X=[],fe=!y.length,me=q.length+(e.filterable?1:0)+1;let O=0;if(y.length){let t=-1,n=0;const g=ne.enabled?{}:void 0;(_||y).forEach((o,i)=>{o.rowType==="data"&&(ge++,t++);const l=ge%2===0,c=e.dataItemKey&&d.getter(e.dataItemKey)(o.dataItem),u=i+(e.skip||0),w=c||"ai"+u,P=w+"_1",v=ot(o,w,t,l,g);if(O=u+me+n,X.push(a.createElement(It.GridRow,{key:w,dataItem:o.dataItem,isAltRow:l,isInEdit:v.isInEdit,rowType:o.rowType,isRowReorderable:D,isHidden:ue(i),onClick:null,onDoubleClick:null,selectedField:e.selectedField,rowHeight:e.rowHeight,render:e.rowRender,ariaRowIndex:O,absoluteRowIndex:u,dataIndex:H&&!e.groupable?u:t,isSelected:v.isSelected},v.row)),e.detail&&o.rowType==="data"&&o.expanded){const r=h.length-(e.expandField||V.enabled?1:0)-(e.group?e.group.length:0)||1;n++,O=u+me+n,X.push(a.createElement("tr",{key:P,className:d.classNames(f.detailTr({isAlt:l})),style:{visibility:ue(i)?"hidden":"",height:e.detailRowHeight},role:"row","aria-rowindex":O},e.group&&e.group.map((G,R)=>{var B;const A=(B=v==null?void 0:v.row[R])==null?void 0:B.props.style,Z=A?{left:A.left,right:A.right}:{};return a.createElement(He.GridGroupCell,{id:"",dataIndex:o.dataIndex,field:G.field,dataItem:o.dataItem,key:R,columnPosition:Z,style:{},ariaColumnIndex:1+R,isSelected:!1,locked:e.lockGroups,cells:e.cells,group:o.group})}),(e.expandField||V.enabled)&&a.createElement(Ft.GridDetailHierarchyCell,{unstyled:F,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${P}-dhcell`,S)}),a.createElement(qt.GridDetailCell,{dataItem:o.dataItem,dataIndex:o.dataIndex,colSpan:r,ariaColIndex:2+(e.group?e.group.length:0),detail:e.detail,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${P}-dcell`,S)})))}})}const be={size:I,total:N,skip:e.skip||0,take:(e.take!==void 0?e.take:e.pageSize)||10,...Nt.normalize(e.pageable||{})},Ce=a.createElement(Pt.PagerContainer,null,e.pager?a.createElement(e.pager,{...be}):a.createElement(b.Pager,{className:d.classNames(f.pager({})),...be})),dt=(t,n)=>a.createElement("col",{key:n.toString(),width:s.getColumnWidth(t)}),ct=(Ne=e.cells)!=null&&Ne.footerCell||m.current.some(t=>{var n;return!!(t.footerCell||(n=t.cells)!=null&&n.footerCell)})?a.createElement(Et.Footer,{size:I,staticHeaders:e.scrollable!=="none",row:a.createElement(xt.FooterRow,{cells:e.cells,idPrefix:S,columns:m.current,ariaRowIndex:O+1}),cols:h.map(dt)}):null,ye=a.createElement(Tt.GridColGroup,null,h.map((t,n)=>a.createElement("col",{key:n.toString(),className:s.isSorted(t.field,e.sort)?d.classNames(f.sorted({})):void 0,width:s.getColumnWidth(t)}))),he=e.reorderable||K,{detail:Wt,cells:jt,...we}=e,Ge=a.createElement("tbody",{role:"rowgroup",className:d.classNames(f.tbody({})),...b.tableKeyboardNavigationBodyAttributes},X);let Y=Ge;if(D&&(Y=a.createElement(Lt.GridReorderableRowsContainer,{unstyled:f,columns:m.current,rowReorderSettings:e.rowReorderable},Ge)),e.scrollable==="none")return a.createElement(Oe.GridClientWrapper,{gridRef:k,gridProps:we,columnsRef:U(),columnsMapRef:q,dataRef:y,slicedData:_,isFixedVirtualScroll:J===$.VirtualScrollFixed,id:C,total:N,detailExpandable:!!e.detail},a.createElement(_e.GridElementContainer,null,a.createElement("div",{id:e.id,style:e.style,className:d.classNames(f.wrapper({size:I}),e.className),"aria-label":e.ariaLabel,...b.tableKeyboardNavigationScopeAttributes},ie,de,a.createElement(Ht.GridTable,{selectable:e.selectable,className:d.classNames(f.table({size:I}))},ye,ce,a.createElement(Le.GridTableBody,{rowReorderable:D},Y)),fe&&a.createElement(Ve.GridNoRecordsContainer,null,W.length?W:a.createElement(Pe.GridNoRecords,null)),he&&a.createElement(a.Fragment,null,a.createElement(Ae.GridDropClue,null),a.createElement(Be.GridDragClue,null)))),oe,e.pageable&&Ce,a.createElement(Me.GridLoader,{loader:e.loader,showLoader:e.showLoader}));let j=e.style||{};return H&&(j.height||(j=Object.assign({},j,{height:"450px"}))),a.createElement(Oe.GridClientWrapper,{gridRef:k,gridProps:we,columnsRef:U(),columnsMapRef:q,dataRef:y,slicedData:_,isFixedVirtualScroll:J===$.VirtualScrollFixed,id:C,total:N,detailExpandable:!!e.detail},a.createElement(_e.GridElementContainer,null,a.createElement("div",{id:e.id,style:j,className:d.classNames(f.wrapper({size:I,virtual:H}),e.className),"aria-label":e.ariaLabel,...b.tableKeyboardNavigationScopeAttributes},ie,de,a.createElement("div",{className:d.classNames(f.ariaRoot({})),role:"grid","aria-colcount":h.length,"aria-rowcount":N,id:C,"aria-label":z.toLanguageString(te.gridAriaLabel,te.messages[te.gridAriaLabel])},ce,a.createElement("div",{className:d.classNames(f.container({})),role:"presentation"},a.createElement(Vt.GridContainerElementContainer,null,a.createElement("div",{className:d.classNames(f.content({})),role:"presentation"},a.createElement("div",{className:d.classNames(f.tableWrap({})),role:"presentation"},a.createElement(Kt.GridTableScrollable,{selectable:e.selectable,tableClassName:d.classNames(f.table({size:I})),tableStyle:{userSelect:rt}},ye,a.createElement(Le.GridTableBody,{rowReorderable:D},Y)),fe&&a.createElement(Ve.GridNoRecordsContainer,null,W.length?W:a.createElement(Pe.GridNoRecords,null))),H&&a.createElement("div",{className:d.classNames(f.heightContainer({})),role:"presentation"},a.createElement(Ot.VirtualScrollHeightContainer,{isVirtualScroll:H}))))),ct,he&&a.createElement(a.Fragment,null,a.createElement(Ae.GridDropClue,null),a.createElement(Be.GridDragClue,null)),a.createElement(Dt.GridWatermarkOverlay,null)),oe,e.pageable&&Ce,a.createElement(Me.GridLoader,{loader:e.loader,showLoader:e.showLoader}))))});We.displayName="KendoReactGridComponent";exports.GridComponent=We;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("react"),d=require("@progress/kendo-react-common"),mt=require("@progress/kendo-data-query"),b=require("@progress/kendo-react-data-tools"),bt=require("./cells/GridSelectionCell.js"),Ct=require("./cells/GridHierarchyCell.js"),yt=require("./cells/GridEditCell.js"),ht=require("./header/Header.js"),wt=require("./header/HeaderRow.js"),Gt=require("./header/FilterRow.js"),St=require("./header/GroupPanel.js"),Et=require("./footer/Footer.js"),s=require("./utils/index.js"),Rt=require("./cells/GridCell.js"),He=require("./cells/GridGroupCell.js"),It=require("./rows/GridRow.js"),vt=require("./header/GridHeaderSelectionCell.js"),Pe=require("./components/noRecords/GridNoRecords.js"),Ke=require("./filterCommon.js"),xt=require("./footer/FooterRow.js"),Nt=require("./paging/GridPagerSettings.js"),kt=require("./package-metadata.js"),qt=require("./cells/GridDetailCell.js"),Ft=require("./cells/GridDetailHierarchyCell.js"),Ve=require("./components/noRecords/GridNoRecordsContainer.js"),Dt=require("./GridWatermarkOverlay.js"),Oe=require("./GridClientWrapper.js"),Tt=require("./components/colGroup/GridColGroup.js"),Ht=require("./components/table/GridTable.js"),Ae=require("./components/GridDropClue.js"),Be=require("./components/GridDragClue.js"),Le=require("./components/table/GridTableBody.js"),Pt=require("./components/PagerContainer.js"),Kt=require("./components/table/GridTableScrollable.js"),_e=require("./components/GridElementContainer.js"),Vt=require("./components/GridContainerElementContainer.js"),Ot=require("./components/VirtualScrollHeightContainer.js"),ze=require("@progress/kendo-react-intl"),te=require("./messages/index.js"),$=require("./VirtualScrollFixed.js"),At=require("./VirtualScroll.js"),Bt=require("./components/GridCustomCellClientContainer.js"),Lt=require("./components/GridDraggableRowsContainer.js"),_t=require("./cells/GridRowReorderCell.js"),zt=require("./header/client/GridHeaderRowReorderCell.js"),Me=require("./components/GridLoader.js");function Mt(e){const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const C in e)if(C!=="default"){const S=Object.getOwnPropertyDescriptor(e,C);Object.defineProperty(k,C,S.get?S:{enumerable:!0,get:()=>e[C]})}}return k.default=e,Object.freeze(k)}const a=Mt(ft),We=a.forwardRef((e,k)=>{var Se,Ee,Re,Ie,ve,xe,Ne;const C=e.id+"-role-element-id",S=e.navigatable?C:"";d.validatePackage(kt.packageMetadata);const je=(t,n,g,o,i,l,c)=>{const u=[],w=s.flatData(u,E,t,{index:n},g!==void 0,o,i,l,tt.defaultExpand,c);return{flattedData:u,resolvedGroupsCount:w}},$e=t=>{const n=t.filter(i=>i&&i.type&&i.type.displayName==="KendoReactGridColumn"),g=m.current.filter(i=>i.declarationIndex>=0&&i.parentIndex===-1),o=s.sanitizeColumns(g);return s.readColumns(n,o,{prevId:0,idPrefix:S})},Ue=t=>t.filter(n=>d.canUseDOM&&n&&n.media?window.matchMedia(n.media).matches:n),Qe=(t,n)=>{var i;const g=$e(t),o=Ue(g);m.current=o,m.current.length===0&&(m.current=s.autoGenerateColumns(E,e.group,{column:(i=V.column)!=null?i:e.expandField},{prevId:0,idPrefix:S})),Je(m.current,n),q=s.mapColumns(m.current,!0),le.current=m.current.map(s.clientColumn)},Je=(t,n)=>{var i;t.filter(l=>e.selectedField&&l.field===e.selectedField||l.columnType==="checkbox").forEach(l=>{l.width=l.width||"50px",l.cell=l.cell||bt.GridSelectionCell,l._type="edit",l.headerCell=l.headerCell||vt.GridHeaderSelectionCell}),D!==void 0&&t.filter(l=>l.columnType==="reorder").forEach(l=>{l.width=l.width||"50px",l.cell=l.cell||_t.GridRowReorderCell,l.headerCell=l.headerCell||zt.GridHeaderRowReorderCell,l.sortable=!1,l.filterable=!1,l.editable=!1});const g={id:"",resizable:!0,width:"32px",title:" ",declarationIndex:-1,orderIndex:-1,children:[],parentIndex:-1,depth:0,colSpan:0,headerColSpan:0,rowSpan:0,left:0,right:0,index:0,rightBorder:!1,ariaColumnIndex:0,isAccessible:!0};let o=0;(e.expandField||V.enabled)&&e.detail&&(t.unshift({...g,_type:"expand",cell:Ct.GridHierarchyCell,field:(i=V.column)!=null?i:e.expandField,headerClassName:d.classNames(f.hierarchyCell({}))}),o++);for(let l=0;l<n;l++)t.unshift({...g,isAccessible:!1,cell:He.GridGroupCell,field:"value",locked:e.lockGroups}),o++;t.slice(o).forEach(l=>{l.parentIndex>=0&&(l.parentIndex+=o),l.rowSpannable=l.rowSpannable!==void 0?s.getRowSpanOptions(l.rowSpannable):ne})},ae=()=>E.length===e.total,Xe=()=>{const{rowHeight:t,detailRowHeight:n,detail:g,expandField:o}=e,i=ae(),l=t!==void 0&&t>0,c=n!==void 0&&n>0;return!l||K&&!i||!!(g&&o)&&(!c||!i)?At.VirtualScroll:$.VirtualScrollFixed},U=()=>e.isClient?m:le,Ye=(t,n,g,o,i,l)=>{let c=s.getColSpan(t,n);if(e.columnVirtualization&&t.colSpan===1)return{colSpan:l,colsToSkip:i};let u=g.length-1===o,w=g.length-o;return e.columnVirtualization&&(u=h.length-1===o,w=h.length-o),c>1&&!u?i=c-1:c=1,w<=c&&!u&&(c=w),{colSpan:c,colsToSkip:i}};let Q,y=[],_;const m=e.columnsRef||{current:[]},le={current:[]};let q=[[]];const Ze=e.scrollLeftRef||{current:0},z=e.localization||new ze.LocalizationService,pe=e.intl||new ze.IntlService("en"),F=e.unstyled,f=F&&F.uGrid?F.uGrid:d.uGrid,D=typeof e.rowReorderable=="object"?e.rowReorderable.enabled:e.rowReorderable,T=e.autoProcessData===!0?{group:!0,sort:!0,filter:!0,search:!0,page:!0}:e.autoProcessData;let E,N;if(Array.isArray(e.data)?(E=e.data,N=(Se=e.total)!=null?Se:E.length):(E=((Ee=e.data)==null?void 0:Ee.data)||[],N=(ve=(Ie=e.total)!=null?Ie:(Re=e.data)==null?void 0:Re.total)!=null?ve:E.length),T){const{data:t,total:n}=mt.process(E,{group:T.group?e.group:void 0,sort:T.sort?e.sort:void 0,filter:b.combineFilters(T.filter?e.filter:void 0,T.search?e.search:void 0),...T.page?{take:e.take,skip:e.skip}:{}});E=t,N=(xe=e.total)!=null?xe:n}const{size:I="medium"}=e,et=typeof e.groupable=="object"&&e.groupable.footer||"none",H=e.scrollable==="virtual",K=e.groupable===!0||typeof e.groupable=="object"&&e.groupable.enabled!==!1,V=b.getDetailExpandableOptions(!!e.detail),tt=b.getGroupExpandableOptions(typeof e.groupable=="object"&&e.groupable.enabled!==!1?e.groupable.expandable:e.groupable),{resolvedGroupsCount:at,flattedData:lt}=je(et,e.skip||0,e.group,e.expandField,e.detailExpand,e.groupExpand,e.dataItemKey);y=lt;const J=Xe();J===$.VirtualScrollFixed&&ae()&&(_=y.slice(e.skip||0,(e.skip||0)+((e.take!==void 0?e.take:e.pageSize)||0)));const re=b.getSelectionOptions(e.selectable||!!e.selectedField),ne=s.getRowSpanOptions(e.rowSpannable),rt=re&&re.drag?"none":void 0,M=a.Children.toArray(e.children);Qe(M,at);const ie=M.map(t=>t&&t.type&&t.type.displayName==="KendoReactGridToolbar"?a.cloneElement(t,{...t.props,ariaControls:C}):null),W=M.filter(t=>t&&t.type&&t.type.displayName==="KendoReactGridNoRecords"),oe=M.filter(t=>t&&t.type&&t.type.displayName==="KendoReactGridStatusBar"),h=m.current.filter(t=>t.children.length===0),de=K&&a.createElement(St.GroupPanel,{columns:U().current,group:e.group||[],ariaControls:C}),ce=a.createElement(ht.Header,{size:I,staticHeaders:e.scrollable!=="none",draggable:e.reorderable||K,headerRow:a.createElement(wt.HeaderRow,{cells:e.cells,sort:e.sort,sortable:e.sortable,group:e.group||[],groupable:K,filter:e.filter,filterable:e.filterable,filterOperators:e.filterOperators||Ke.operators,columnMenu:e.columnMenu,columnMenuIcon:e.columnMenuIcon,columns:m.current,columnsMap:q,cellRender:e.headerCellRender,navigatable:!!e.navigatable,localization:z,unstyled:F,headerSelectionValue:!!(e.select&&y.filter(t=>t.rowType==="data").every(t=>e.select&&e.dataItemKey&&d.getter(e.dataItemKey)(t.dataItem)!==void 0?e.select[d.getter(e.dataItemKey)(t.dataItem)]:void 0))}),filterRow:e.filterable&&a.createElement(Gt.FilterRow,{cells:e.cells,size:I,columns:m.current,filter:e.filter,filterOperators:e.filterOperators||Ke.operators,sort:e.sort,cellRender:e.filterCellRender,navigatable:!!e.navigatable,ariaRowIndex:q.length+1,localization:z})||void 0,cols:h.map((t,n)=>a.createElement("col",{key:n.toString(),width:s.getColumnWidth(t)}))}),nt=Ze.current||0,it=parseFloat(((e.style||{}).width||"").toString()),ot=(t,n,g,o,i)=>{let l=!1;const c=e.selectedField?s.getNestedValue(e.selectedField,t.dataItem):e.select&&e.dataItemKey&&d.getter(e.dataItemKey)(t.dataItem)!==void 0?e.select[d.getter(e.dataItemKey)(t.dataItem)]:void 0;let u=0;const{colSpans:w,hiddenColumns:P}=b.tableColumnsVirtualization({enabled:e.columnVirtualization,columns:h,tableViewPortWidth:it,scrollLeft:nt,getColSpan:s.getColSpan,dataItem:t.dataItem}),v=h.filter((r,G)=>!P[G]);return{row:h.map((r,G)=>{var qe,Fe,De,Te;if(P[G])return null;if(u>0)return u--,null;let R;if((qe=r.rowSpannable)!=null&&qe.enabled&&t.rowType==="data"&&r.field&&i){const x=r.field?(De=(Fe=r.rowSpannable).valueGetter)==null?void 0:De.call(Fe,t.dataItem,r.field):null;R={value:x,count:1},i[r.field]&&((Te=i[r.field])==null?void 0:Te.value)===x&&i[r.field]!==null?(i[r.field].count++,R.count=null):i[r.field]=R}const{colSpan:A,colsToSkip:Z}=Ye(r,t.dataItem,v,G,u,w[G]);u=Z;const B=r.id?r.id:G,st=d.classNames(f.contentSticky({locked:r.locked}),r.className),ut=r.left!==void 0?{left:r.left,right:r.right}:{};let ke=!1;if(r.editable&&(e.editable||e.editField)){const x=e.editField?s.getNestedValue(e.editField,t.dataItem):e.edit&&e.dataItemKey?e.edit[d.getter(e.dataItemKey)(t.dataItem)]:void 0,ee=typeof x=="boolean"?x:Array.isArray(x)?x.indexOf(r.field)>-1:r.field!==void 0&&x===r.field;ee&&r.columnType==="data"&&(ee===!0||ee===r.field)&&(l=!0,ke=!0)}const p=r.cell||ke&&yt.GridEditCell||Rt.GridCell,gt=e.expandField&&e.detail&&r.field===e.expandField||r._type==="expand",L={locked:e.lockGroups,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${n}-${String(G)}`,S,gt||t.rowType==="groupHeader"||t.rowType==="groupFooter"||r.field==="value"?"nodata":"cell"),colSpan:A,dataItem:t.dataItem,field:r.field,editor:r.editor,format:r.format,columnType:r.columnType,rowReorderable:D,className:st,render:e.cellRender,cells:s.resolveCells(e.cells,r.cells),columnIndex:G,columnsCount:h.length,rowType:t.rowType,level:t.level,expanded:t.expanded,dataIndex:t.dataIndex,rowDataIndex:g,columnPosition:ut,style:{},ariaColumnIndex:r.ariaColumnIndex,isSelected:(r==null?void 0:r._type)==="edit"?c:Array.isArray(c)&&c.indexOf(G)>-1,isSorted:!!s.isSorted(r.field,e.sort),isInEdit:l,isAlt:o,unstyled:F,group:t.group,localization:z,intl:pe,_rowSpan:R};return r.cell?a.createElement(Bt.GridCustomCellClientContainer,{key:B,isClient:s.isClientReference(p),dataItem:L.dataItem,rowDataIndex:L.rowDataIndex,columnIndex:L.columnIndex},a.createElement(p,{...L})):a.createElement(p,{key:B,...L})}),isInEdit:l,isSelected:typeof c=="boolean"&&c}};let se=0;if(H&&Q)for(let t=0;t<Q.topCacheCount+Q.attendedSkip-(e.skip||0);t++){const n=y.shift();if(n)y.push(n),se++,n.rowType==="groupHeader"&&t--;else break}const ue=t=>t>=y.length-se;let ge=e.skip||0;const X=[],fe=!y.length,me=q.length+(e.filterable?1:0)+1;let O=0;if(y.length){let t=-1,n=0;const g=ne.enabled?{}:void 0;(_||y).forEach((o,i)=>{o.rowType==="data"&&(ge++,t++);const l=ge%2===0,c=e.dataItemKey&&d.getter(e.dataItemKey)(o.dataItem),u=i+(e.skip||0),w=c||"ai"+u,P=w+"_1",v=ot(o,w,t,l,g);if(O=u+me+n,X.push(a.createElement(It.GridRow,{key:w,dataItem:o.dataItem,isAltRow:l,isInEdit:v.isInEdit,rowType:o.rowType,isRowReorderable:D,isHidden:ue(i),onClick:null,onDoubleClick:null,selectedField:e.selectedField,rowHeight:e.rowHeight,render:e.rowRender,ariaRowIndex:O,absoluteRowIndex:u,dataIndex:H&&!e.groupable?u:t,isSelected:v.isSelected,rows:e.rows},v.row)),e.detail&&o.rowType==="data"&&o.expanded){const r=h.length-(e.expandField||V.enabled?1:0)-(e.group?e.group.length:0)||1;n++,O=u+me+n,X.push(a.createElement("tr",{key:P,className:d.classNames(f.detailTr({isAlt:l})),style:{visibility:ue(i)?"hidden":"",height:e.detailRowHeight},role:"row","aria-rowindex":O},e.group&&e.group.map((G,R)=>{var B;const A=(B=v==null?void 0:v.row[R])==null?void 0:B.props.style,Z=A?{left:A.left,right:A.right}:{};return a.createElement(He.GridGroupCell,{id:"",dataIndex:o.dataIndex,field:G.field,dataItem:o.dataItem,key:R,columnPosition:Z,style:{},ariaColumnIndex:1+R,isSelected:!1,locked:e.lockGroups,cells:e.cells,group:o.group})}),(e.expandField||V.enabled)&&a.createElement(Ft.GridDetailHierarchyCell,{unstyled:F,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${P}-dhcell`,S)}),a.createElement(qt.GridDetailCell,{dataItem:o.dataItem,dataIndex:o.dataIndex,colSpan:r,ariaColIndex:2+(e.group?e.group.length:0),detail:e.detail,id:b.tableKeyboardNavigationTools.generateNavigatableId(`${P}-dcell`,S)})))}})}const be={size:I,total:N,skip:e.skip||0,take:(e.take!==void 0?e.take:e.pageSize)||10,...Nt.normalize(e.pageable||{})},Ce=a.createElement(Pt.PagerContainer,null,e.pager?a.createElement(e.pager,{...be}):a.createElement(b.Pager,{className:d.classNames(f.pager({})),...be})),dt=(t,n)=>a.createElement("col",{key:n.toString(),width:s.getColumnWidth(t)}),ct=(Ne=e.cells)!=null&&Ne.footerCell||m.current.some(t=>{var n;return!!(t.footerCell||(n=t.cells)!=null&&n.footerCell)})?a.createElement(Et.Footer,{size:I,staticHeaders:e.scrollable!=="none",row:a.createElement(xt.FooterRow,{cells:e.cells,idPrefix:S,columns:m.current,ariaRowIndex:O+1}),cols:h.map(dt)}):null,ye=a.createElement(Tt.GridColGroup,null,h.map((t,n)=>a.createElement("col",{key:n.toString(),className:s.isSorted(t.field,e.sort)?d.classNames(f.sorted({})):void 0,width:s.getColumnWidth(t)}))),he=e.reorderable||K,{detail:Wt,cells:jt,rows:$t,...we}=e,Ge=a.createElement("tbody",{role:"rowgroup",className:d.classNames(f.tbody({})),...b.tableKeyboardNavigationBodyAttributes},X);let Y=Ge;if(D&&(Y=a.createElement(Lt.GridReorderableRowsContainer,{unstyled:f,columns:m.current,rowReorderSettings:e.rowReorderable},Ge)),e.scrollable==="none")return a.createElement(Oe.GridClientWrapper,{gridRef:k,gridProps:we,columnsRef:U(),columnsMapRef:q,dataRef:y,slicedData:_,isFixedVirtualScroll:J===$.VirtualScrollFixed,id:C,total:N,detailExpandable:!!e.detail},a.createElement(_e.GridElementContainer,null,a.createElement("div",{id:e.id,style:e.style,className:d.classNames(f.wrapper({size:I}),e.className),"aria-label":e.ariaLabel,...b.tableKeyboardNavigationScopeAttributes},ie,de,a.createElement(Ht.GridTable,{selectable:e.selectable,className:d.classNames(f.table({size:I}))},ye,ce,a.createElement(Le.GridTableBody,{rowReorderable:D},Y)),fe&&a.createElement(Ve.GridNoRecordsContainer,null,W.length?W:a.createElement(Pe.GridNoRecords,null)),he&&a.createElement(a.Fragment,null,a.createElement(Ae.GridDropClue,null),a.createElement(Be.GridDragClue,null)))),oe,e.pageable&&Ce,a.createElement(Me.GridLoader,{loader:e.loader,showLoader:e.showLoader}));let j=e.style||{};return H&&(j.height||(j=Object.assign({},j,{height:"450px"}))),a.createElement(Oe.GridClientWrapper,{gridRef:k,gridProps:we,columnsRef:U(),columnsMapRef:q,dataRef:y,slicedData:_,isFixedVirtualScroll:J===$.VirtualScrollFixed,id:C,total:N,detailExpandable:!!e.detail},a.createElement(_e.GridElementContainer,null,a.createElement("div",{id:e.id,style:j,className:d.classNames(f.wrapper({size:I,virtual:H}),e.className),"aria-label":e.ariaLabel,...b.tableKeyboardNavigationScopeAttributes},ie,de,a.createElement("div",{className:d.classNames(f.ariaRoot({})),role:"grid","aria-colcount":h.length,"aria-rowcount":N,id:C,"aria-label":z.toLanguageString(te.gridAriaLabel,te.messages[te.gridAriaLabel])},ce,a.createElement("div",{className:d.classNames(f.container({})),role:"presentation"},a.createElement(Vt.GridContainerElementContainer,null,a.createElement("div",{className:d.classNames(f.content({})),role:"presentation"},a.createElement("div",{className:d.classNames(f.tableWrap({})),role:"presentation"},a.createElement(Kt.GridTableScrollable,{selectable:e.selectable,tableClassName:d.classNames(f.table({size:I})),tableStyle:{userSelect:rt}},ye,a.createElement(Le.GridTableBody,{rowReorderable:D},Y)),fe&&a.createElement(Ve.GridNoRecordsContainer,null,W.length?W:a.createElement(Pe.GridNoRecords,null))),H&&a.createElement("div",{className:d.classNames(f.heightContainer({})),role:"presentation"},a.createElement(Ot.VirtualScrollHeightContainer,{isVirtualScroll:H}))))),ct,he&&a.createElement(a.Fragment,null,a.createElement(Ae.GridDropClue,null),a.createElement(Be.GridDragClue,null)),a.createElement(Dt.GridWatermarkOverlay,null)),oe,e.pageable&&Ce,a.createElement(Me.GridLoader,{loader:e.loader,showLoader:e.showLoader}))))});We.displayName="KendoReactGridComponent";exports.GridComponent=We;
package/GridComponent.mjs CHANGED
@@ -17,19 +17,19 @@ import { HeaderRow as Kt } from "./header/HeaderRow.mjs";
17
17
  import { FilterRow as Ht } from "./header/FilterRow.mjs";
18
18
  import { GroupPanel as At } from "./header/GroupPanel.mjs";
19
19
  import { Footer as Pt } from "./footer/Footer.mjs";
20
- import { getRowSpanOptions as Ae, getColumnWidth as ee, isSorted as Pe, flatData as Bt, autoGenerateColumns as Vt, mapColumns as Lt, clientColumn as Ot, getNestedValue as Be, getColSpan as Ve, resolveCells as zt, isClientReference as _t, sanitizeColumns as Mt, readColumns as Wt } from "./utils/index.mjs";
20
+ import { getRowSpanOptions as Ae, getColumnWidth as ee, isSorted as Pe, flatData as Bt, autoGenerateColumns as Vt, mapColumns as Lt, clientColumn as Ot, getNestedValue as Be, getColSpan as Ve, resolveCells as _t, isClientReference as zt, sanitizeColumns as Mt, readColumns as Wt } from "./utils/index.mjs";
21
21
  import { GridCell as jt } from "./cells/GridCell.mjs";
22
22
  import { GridGroupCell as Le } from "./cells/GridGroupCell.mjs";
23
23
  import { GridRow as $t } from "./rows/GridRow.mjs";
24
24
  import { GridHeaderSelectionCell as Ut } from "./header/GridHeaderSelectionCell.mjs";
25
25
  import { GridNoRecords as Oe } from "./components/noRecords/GridNoRecords.mjs";
26
- import { operators as ze } from "./filterCommon.mjs";
26
+ import { operators as _e } from "./filterCommon.mjs";
27
27
  import { FooterRow as Jt } from "./footer/FooterRow.mjs";
28
28
  import { normalize as Qt } from "./paging/GridPagerSettings.mjs";
29
29
  import { packageMetadata as Xt } from "./package-metadata.mjs";
30
30
  import { GridDetailCell as Yt } from "./cells/GridDetailCell.mjs";
31
31
  import { GridDetailHierarchyCell as Zt } from "./cells/GridDetailHierarchyCell.mjs";
32
- import { GridNoRecordsContainer as _e } from "./components/noRecords/GridNoRecordsContainer.mjs";
32
+ import { GridNoRecordsContainer as ze } from "./components/noRecords/GridNoRecordsContainer.mjs";
33
33
  import { GridWatermarkOverlay as qt } from "./GridWatermarkOverlay.mjs";
34
34
  import { GridClientWrapper as Me } from "./GridClientWrapper.mjs";
35
35
  import { GridColGroup as pt } from "./components/colGroup/GridColGroup.mjs";
@@ -147,7 +147,7 @@ const fl = l.forwardRef((e, te) => {
147
147
  let U, g = [], O;
148
148
  const f = e.columnsRef || { current: [] }, ae = { current: [] };
149
149
  let G = [[]];
150
- const lt = e.scrollLeftRef || { current: 0 }, z = e.localization || new nl(), at = e.intl || new il("en"), k = e.unstyled, m = k && k.uGrid ? k.uGrid : Ct, N = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
150
+ const lt = e.scrollLeftRef || { current: 0 }, _ = e.localization || new nl(), at = e.intl || new il("en"), k = e.unstyled, m = k && k.uGrid ? k.uGrid : Ct, N = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
151
151
  group: !0,
152
152
  sort: !0,
153
153
  filter: !0,
@@ -187,9 +187,9 @@ const fl = l.forwardRef((e, te) => {
187
187
  e.skip || 0,
188
188
  (e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
189
189
  ));
190
- const re = St(e.selectable || !!e.selectedField), ne = Ae(e.rowSpannable), dt = re && re.drag ? "none" : void 0, _ = l.Children.toArray(e.children);
191
- qe(_, it);
192
- const ie = _.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: S }) : null), M = _.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), oe = _.filter(
190
+ const re = St(e.selectable || !!e.selectedField), ne = Ae(e.rowSpannable), dt = re && re.drag ? "none" : void 0, z = l.Children.toArray(e.children);
191
+ qe(z, it);
192
+ const ie = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: S }) : null), M = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), oe = z.filter(
193
193
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
194
194
  ), b = f.current.filter((t) => t.children.length === 0), de = H && /* @__PURE__ */ l.createElement(At, { columns: $().current, group: e.group || [], ariaControls: S }), ce = /* @__PURE__ */ l.createElement(
195
195
  Tt,
@@ -207,14 +207,14 @@ const fl = l.forwardRef((e, te) => {
207
207
  groupable: H,
208
208
  filter: e.filter,
209
209
  filterable: e.filterable,
210
- filterOperators: e.filterOperators || ze,
210
+ filterOperators: e.filterOperators || _e,
211
211
  columnMenu: e.columnMenu,
212
212
  columnMenuIcon: e.columnMenuIcon,
213
213
  columns: f.current,
214
214
  columnsMap: G,
215
215
  cellRender: e.headerCellRender,
216
216
  navigatable: !!e.navigatable,
217
- localization: z,
217
+ localization: _,
218
218
  unstyled: k,
219
219
  headerSelectionValue: !!(e.select && g.filter((t) => t.rowType === "data").every(
220
220
  (t) => e.select && e.dataItemKey && K(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[K(e.dataItemKey)(t.dataItem)] : void 0
@@ -228,12 +228,12 @@ const fl = l.forwardRef((e, te) => {
228
228
  size: E,
229
229
  columns: f.current,
230
230
  filter: e.filter,
231
- filterOperators: e.filterOperators || ze,
231
+ filterOperators: e.filterOperators || _e,
232
232
  sort: e.sort,
233
233
  cellRender: e.filterCellRender,
234
234
  navigatable: !!e.navigatable,
235
235
  ariaRowIndex: G.length + 1,
236
- localization: z
236
+ localization: _
237
237
  }
238
238
  ) || void 0,
239
239
  cols: b.map((t, n) => /* @__PURE__ */ l.createElement("col", { key: n.toString(), width: ee(t) }))
@@ -293,7 +293,7 @@ const fl = l.forwardRef((e, te) => {
293
293
  rowReorderable: N,
294
294
  className: gt,
295
295
  render: e.cellRender,
296
- cells: zt(e.cells, r.cells),
296
+ cells: _t(e.cells, r.cells),
297
297
  columnIndex: h,
298
298
  columnsCount: b.length,
299
299
  rowType: t.rowType,
@@ -310,7 +310,7 @@ const fl = l.forwardRef((e, te) => {
310
310
  isAlt: o,
311
311
  unstyled: k,
312
312
  group: t.group,
313
- localization: z,
313
+ localization: _,
314
314
  intl: at,
315
315
  _rowSpan: w
316
316
  };
@@ -318,7 +318,7 @@ const fl = l.forwardRef((e, te) => {
318
318
  cl,
319
319
  {
320
320
  key: V,
321
- isClient: _t(Z),
321
+ isClient: zt(Z),
322
322
  dataItem: L.dataItem,
323
323
  rowDataIndex: L.rowDataIndex,
324
324
  columnIndex: L.columnIndex
@@ -368,7 +368,8 @@ const fl = l.forwardRef((e, te) => {
368
368
  ariaRowIndex: P,
369
369
  absoluteRowIndex: c,
370
370
  dataIndex: D && !e.groupable ? c : t,
371
- isSelected: I.isSelected
371
+ isSelected: I.isSelected,
372
+ rows: e.rows
372
373
  },
373
374
  I.row
374
375
  )
@@ -463,7 +464,7 @@ const fl = l.forwardRef((e, te) => {
463
464
  className: Pe(t.field, e.sort) ? u(m.sorted({})) : void 0,
464
465
  width: ee(t)
465
466
  }
466
- ))), Ce = e.reorderable || H, { detail: gl, cells: bl, ...we } = e, Ee = /* @__PURE__ */ l.createElement(
467
+ ))), Ce = e.reorderable || H, { detail: gl, cells: bl, rows: yl, ...we } = e, Ee = /* @__PURE__ */ l.createElement(
467
468
  "tbody",
468
469
  {
469
470
  role: "rowgroup",
@@ -517,7 +518,7 @@ const fl = l.forwardRef((e, te) => {
517
518
  ce,
518
519
  /* @__PURE__ */ l.createElement($e, { rowReorderable: N }, X)
519
520
  ),
520
- fe && /* @__PURE__ */ l.createElement(_e, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null)),
521
+ fe && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null)),
521
522
  Ce && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(We, null), /* @__PURE__ */ l.createElement(je, null))
522
523
  )),
523
524
  oe,
@@ -564,7 +565,7 @@ const fl = l.forwardRef((e, te) => {
564
565
  "aria-colcount": b.length,
565
566
  "aria-rowcount": R,
566
567
  id: S,
567
- "aria-label": z.toLanguageString(Je, ol[Je])
568
+ "aria-label": _.toLanguageString(Je, ol[Je])
568
569
  },
569
570
  ce,
570
571
  /* @__PURE__ */ l.createElement("div", { className: u(m.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(al, null, /* @__PURE__ */ l.createElement("div", { className: u(m.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: u(m.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
@@ -580,7 +581,7 @@ const fl = l.forwardRef((e, te) => {
580
581
  },
581
582
  he,
582
583
  /* @__PURE__ */ l.createElement($e, { rowReorderable: N }, X)
583
- ), fe && /* @__PURE__ */ l.createElement(_e, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null))), D && /* @__PURE__ */ l.createElement(
584
+ ), fe && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null))), D && /* @__PURE__ */ l.createElement(
584
585
  "div",
585
586
  {
586
587
  className: u(m.heightContainer({})),