@progress/kendo-react-grid 9.2.0-develop.2 → 9.2.0-develop.4
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/Grid.js +2 -2
- package/Grid.mjs +49 -48
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +1 -1
- package/GridNoRecords.js +1 -1
- package/GridNoRecords.mjs +1 -1
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +1 -1
- package/LICENSE.md +1 -1
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +1 -1
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +1 -1
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +1 -1
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +1 -1
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +1 -1
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +1 -1
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +1 -1
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +1 -1
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +1 -1
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +1 -1
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +1 -1
- package/columnMenu/GridColumnMenuColumnsList.js +1 -1
- package/columnMenu/GridColumnMenuColumnsList.mjs +1 -1
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +1 -1
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +1 -1
- package/columnMenu/GridColumnMenuFilterUI.js +1 -1
- package/columnMenu/GridColumnMenuFilterUI.mjs +1 -1
- package/columnMenu/GridColumnMenuGroup.js +1 -1
- package/columnMenu/GridColumnMenuGroup.mjs +1 -1
- package/columnMenu/GridColumnMenuItem.js +1 -1
- package/columnMenu/GridColumnMenuItem.mjs +1 -1
- package/columnMenu/GridColumnMenuItemContent.js +1 -1
- package/columnMenu/GridColumnMenuItemContent.mjs +1 -1
- package/columnMenu/GridColumnMenuItemGroup.js +1 -1
- package/columnMenu/GridColumnMenuItemGroup.mjs +1 -1
- package/columnMenu/GridColumnMenuSort.js +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +1 -1
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +1 -1
- package/constants/index.js +1 -1
- package/constants/index.mjs +1 -1
- package/dist/cdn/js/kendo-react-grid.js +2 -2
- package/drag/ColumnDraggable.js +1 -1
- package/drag/ColumnDraggable.mjs +1 -1
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +1 -1
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +1 -1
- package/drag/GroupingIndicator.js +1 -1
- package/drag/GroupingIndicator.mjs +1 -1
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +1 -1
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +1 -1
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +1 -1
- package/header/GridHeaderCell.js +1 -1
- package/header/GridHeaderCell.mjs +1 -1
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +1 -1
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +1 -1
- package/header/Header.js +1 -1
- package/header/Header.mjs +1 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/interfaces/GridSortSettings.js +1 -1
- package/interfaces/GridSortSettings.mjs +1 -1
- package/messages/index.js +1 -1
- package/messages/index.mjs +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +1 -1
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +1 -1
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +1 -1
- package/utils/index.js +1 -1
- package/utils/index.mjs +1 -1
package/Grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tn=require("react"),o=require("prop-types"),s=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-data-tools"),nn=require("./cells/GridSelectionCell.js"),rn=require("./cells/GridHierarchyCell.js"),an=require("./cells/GridEditCell.js"),ln=require("./header/Header.js"),on=require("./header/HeaderRow.js"),cn=require("./header/FilterRow.js"),dn=require("./header/GroupPanel.js"),sn=require("./footer/Footer.js"),un=require("@progress/kendo-react-intl"),ue=require("./messages/index.js"),fn=require("./VirtualScroll.js"),it=require("./VirtualScrollFixed.js"),gn=require("./drag/ColumnResize.js"),mn=require("./drag/CommonDragLogic.js"),v=require("./utils/index.js"),bn=require("./cells/GridCell.js"),dt=require("./cells/GridGroupCell.js"),hn=require("./rows/GridRow.js"),Cn=require("./header/GridHeaderSelectionCell.js"),vn=require("./GridNoRecords.js"),st=require("./filterCommon.js"),Rn=require("./footer/FooterRow.js"),yn=require("./paging/GridPagerSettings.js"),ut=require("./package-metadata.js"),wn=require("./cells/GridDetailCell.js"),En=require("./cells/GridDetailHierarchyCell.js"),In=require("./constants/index.js");function Sn(t){const V=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const N in t)if(N!=="default"){const w=Object.getOwnPropertyDescriptor(t,N);Object.defineProperty(V,N,w.get?w:{enumerable:!0,get:()=>t[N]})}}return V.default=t,Object.freeze(V)}const r=Sn(tn),Te=r.forwardRef((t,V)=>{var rt,at,lt,ot;const N=s.useId();s.validatePackage(ut.packageMetadata);const w=()=>{var e;if(s.canUseDOM)return((e=p())==null?void 0:e.ownerDocument)||document},F=()=>(t.id||N)+"-role-element-id",B=()=>{const e=g.current.filter(n=>n.declarationIndex>=0&&n.parentIndex===-1);return v.sanitizeColumns(e)},p=()=>D.current,fe=r.useCallback(e=>{var l;if(!c.current||!((l=c.current)!=null&&l.container)||t.scrollable==="none")return;z.current&&z.current.disconnect();const{rowIndex:n}=e,a=p();if(t.scrollable==="virtual")c.current.askedSkip=n,c.current.container.scroll(0,Math.round(c.current.askedSkip/c.current.total*c.current.container.scrollHeight));else if(a){const i=n<1?a.querySelector("tbody > tr:nth-child(1)"):a.querySelector(`tbody > tr:nth-child(${n+1})`);i&&U.current&&(U.current.scrollTop=i.offsetTop)}},[t.scrollable]),Ge=r.useCallback(e=>{const n={rowIndex:Se.current};e.forEach(a=>{a.isIntersecting||fe(n)})},[fe]),[,ge]=r.useReducer(e=>!e,!0),Fe=e=>JSON.stringify(e.map(n=>({id:n.id,field:n.field,title:n.title,children:n.children}))),W=r.useMemo(()=>r.Children.toArray(t.children),[t.children]),ft=()=>Fe(W)===Fe(g.current),gt=()=>{ft()||ge()},me=(e,n,a)=>{if(t.onContextMenu){const l={target:S.current,syntheticEvent:e,nativeEvent:e.nativeEvent,dataItem:n,field:a};t.onContextMenu.call(void 0,l)}},Oe=()=>{const{data:e,total:n}=t;return Array.isArray(e)?e.length===n:e?n===e.total:!1},mt=()=>{const{rowHeight:e,detailRowHeight:n,detail:a,expandField:l,groupable:i}=t,f=Oe(),d=e!==void 0&&e>0,C=n!==void 0&&n>0,k=i===!0||typeof i=="object"&&i.enabled!==!1;return!d||k&&!f||!!(a&&l)&&(!C||!f)?fn.VirtualScroll:it.VirtualScrollFixed},bt=(e,n)=>{if(c.current){if(c.current.fixedScroll=t.fixedScroll||!1,c.current.PageChange=ee,c.current.realSkip=t.skip||0,c.current.pageSize=(t.take!==void 0?t.take:t.pageSize)||0,c.current.scrollableVirtual=t.scrollable==="virtual",c.current.total=e,c.current.propsSkip=(t.skip||0)+(t.scrollable==="virtual"?c.current.topCacheCount+(c.current.attendedSkip-(t.skip||0)):0),t.rowHeight!==void 0&&t.rowHeight>0&&!n){const a=t.rowHeight*e;c.current.containerHeight=v.firefox?Math.min(v.firefoxMaxHeight,a):a}else c.current.containerHeight=1533915;if(c.current.containerRef=U,c.current.tableBodyRef=j,c.current.table=I.current,le.current=void 0,c.current instanceof it.VirtualScrollFixed){const{rowHeight:a=0,detail:l,expandField:i}=t;let{detailRowHeight:f=0}=t;f=l&&i?f:a,Oe()?(c.current.total=R.current.length,le.current=R.current.slice(c.current.realSkip,c.current.realSkip+c.current.pageSize),c.current.rowHeightService=new s.RowHeightService(R.current.length,a,f,R.current)):c.current.rowHeightService=new s.RowHeightService(e,a,f);const d=c.current.rowHeightService.totalHeight();c.current.containerHeight=v.firefox?Math.min(v.firefoxMaxHeight,d):d}}},Ae=()=>(we.current||(we.current=s.getScrollbarWidth()||void 0),we.current),ht=e=>{var l;if(e.target!==e.currentTarget)return;clearTimeout(Ie.current),c.current&&(c.current.table=I.current);const n=e.currentTarget.scrollLeft,a=e.currentTarget.scrollTop;t.columnVirtualization&&(!((l=c.current)!=null&&l.scrollableVirtual)||a===Ee.current)&&(Ie.current=window.setTimeout(()=>{ge()},0)),q.current&&q.current.setScrollLeft(n),_.current&&_.current.setScrollLeft(n),c.current&&a!==Ee.current&&c.current.scrollHandler(e),s.dispatchEvent(t.onScroll,e,S.current,void 0),Ee.current=a},Me=e=>{if(u.tableKeyboardNavigation.onKeyDown(e,{navigatable:t.navigatable||!1,contextStateRef:H,navigationStateRef:O,onNavigationAction:Ct,columns:B()}),u.tableKeyboardNavigation.onGetSnapshotBeforeUpdate({document:w(),contextStateRef:H,navigationStateRef:O}),t.onKeyDown){const{mode:n,cell:a}=u.getSelectionOptions(t.selectable),l={dataItems:re(),mode:n,cell:a,componentId:F(),selectedField:t.selectedField,...E(e)};t.onKeyDown.call(void 0,l)}},Ke=e=>{u.tableKeyboardNavigation.onFocus(e,{navigatable:!!t.navigatable,contextStateRef:H})},Ct=e=>{if(e.action==="moveToNextPage"&&St(e.event),e.action==="moveToPrevPage"&&kt(e.event),e.focusElement&&e.action==="reorderToRight"){const n=parseInt(e.focusElement.ariaColIndex,10)-1;n<g.current.length-1&&be(n,n+1,e.event)}if(e.focusElement&&e.action==="reorderToLeft"){const n=parseInt(e.focusElement.ariaColIndex,10)-1;n>0&&be(n,n-1,e.event)}if(t.onNavigationAction){const n={focusElement:e.focusElement,...E(e.event)};t.onNavigationAction.call(void 0,n)}},vt=(e,n)=>{t.onRowClick&&e.target.nodeName==="TD"&&t.onRowClick.call(void 0,{dataItem:n.dataItem,...E(e)})},Rt=(e,n)=>{t.onRowDoubleClick&&e.target.nodeName==="TD"&&t.onRowDoubleClick.call(void 0,{dataItem:n.dataItem,...E(e)})},yt=e=>{if(e.field===t.expandField||t.group&&e.field===void 0){t.onExpandChange&&t.onExpandChange.call(void 0,{...E(e.syntheticEvent),dataItem:e.dataItem,dataIndex:e.dataIndex,value:e.value});return}t.onItemChange&&t.onItemChange.call(void 0,{...E(e.syntheticEvent),dataItem:e.dataItem,dataIndex:e.dataIndex,field:e.field,value:e.value})},wt=e=>{if(t.onSelectionChange){const{event:n,dataItem:a,dataIndex:l,columnIndex:i}=e,{mode:f,cell:d}=u.getSelectionOptions(t.selectable),C={...E(n.syntheticEvent),dataItem:a,startColIndex:i,endColIndex:i,startRowIndex:l,endRowIndex:l,dataItems:re(),altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,mode:f,cell:d,isDrag:!1,componentId:F(),selectedField:t.selectedField||""};t.onSelectionChange.call(void 0,C)}},Et=e=>{t.onHeaderSelectionChange&&t.onHeaderSelectionChange.call(void 0,{field:e.field,nativeEvent:e.syntheticEvent&&e.syntheticEvent.nativeEvent,syntheticEvent:e.syntheticEvent,target:S.current,dataItems:re(),selectedField:t.selectedField})},ze=e=>{if(t.onSelectionChange){const n=Le()[e.startRowIndex],a=Le()[e.endRowIndex],l={syntheticEvent:void 0,target:S.current,selectedField:t.selectedField||"",componentId:F(),dataItems:re(),dataItem:null,startDataItem:n,endDataItem:a,...e};t.onSelectionChange.call(void 0,l)}},ee=(e,n,a)=>{ne(t.onPageChange,{page:e},{skip:e.skip,take:e.take},n,a)},It=()=>{let e=t.total||0;return Array.isArray(t.data)?e=e||t.data.length:t.data&&(e=e||t.data.total),e},St=e=>{const n=t.take||0,a=(t.skip||0)+n,l=It();a<l&&ee({skip:a,take:n},e)},kt=e=>{const n=t.take||0,a=(t.skip||0)-n;a>=0&&ee({skip:a,take:n},e)},xt=e=>{ee({skip:e.skip,take:e.take},e.syntheticEvent,e.targetEvent)},Nt=(e,n)=>{ne(t.onSortChange,{sort:e},{sort:e,...t.scrollable==="virtual"?{skip:0}:{}},n)},Pe=(e,n)=>{ne(t.onFilterChange,{filter:e},{filter:e||void 0,skip:0},n)},te=(e,n)=>{const a=n.nativeEvent?n:{nativeEvent:n.nativeEvent||n.originalEvent};e.length===0&&t.navigatable&&(ve.current=!0),ne(t.onGroupChange,{group:e},{group:e,skip:0},a)},ne=(e,n,a,l,i)=>{const f=t.onDataStateChange;if(e){const d={...E(l),...n,targetEvent:i};e.call(void 0,d)}else f&&f.call(void 0,{...E(l),targetEvent:i||{},dataState:{...qt(),...a}})},be=(e,n,a)=>{const l=g.current[e],i=l.depth,f=m=>{do m++;while(m<g.current.length&&g.current[m].depth>i);return m},d=g.current.splice(e,f(e)-e);g.current.splice(e<n?f(n-d.length):n,0,...d),g.current.filter(m=>m.declarationIndex>=0).forEach((m,L)=>m.orderIndex=L);const C=g.current[e].locked&&g.current[n].locked;u.updateLeft(P.current,g.current,C||ce.current),u.updateRight(P.current,g.current,C||ce.current),Ce.current&&(ce.current=!1,Ce.current=!1);const k=B();if(ge(),t.onColumnReorder){const m={target:S.current,columns:k,columnId:l.id,nativeEvent:a};t.onColumnReorder.call(void 0,m)}},Ht=(e,n,a)=>{if(t.group===void 0)return;const l=t.group.slice();l.splice(n,0,...l.splice(e,1)),te(l,a)},qe=(e,n,a)=>{const l=g.current[e].field;if(!l)return;const i=(t.group||[]).slice();i.splice(n,0,{field:l}),te(i,a)},Dt=(e,n)=>{const a=b.current.getCurrentGroupsLength;qe(e,a,n)},he=()=>{let e=0;if(!y.current.colGroupMain)return;const n=y.current.colGroupMain.children;for(let a=0;a<n.length;a++){const l=n[a].width;if(!l)return;e+=parseFloat(l.toString())}e=Math.round(e),q.current&&q.current.setWidth(e),_.current&&_.current.setWidth(e),I.current&&(I.current.style.width=e+"px")},Tt=(e,n)=>{if(t.onClipboard){if(!Gt()||!e)return;t.onClipboard.call(void 0,{type:e,nativeEvent:n,columns:g.current,dataItemKey:t.dataItemKey||"",...typeof t.clipboard!="boolean"?t.clipboard:{}})}},Gt=()=>{var i,f,d;if(!s.canUseDOM)return!1;const e=s.getActiveElement(w()),n=e?e.matches(".k-table-td")?e:(i=w())==null?void 0:i.body:(f=w())==null?void 0:f.body,a=n.closest(".k-grid-container"),l=n&&((d=D.current)==null?void 0:d.contains(n));return!!(n&&l&&a)},Ft=(e,n,a,l,i,f)=>{he(),ce.current=!0,Ce.current=!0,t.onColumnResize&&t.onColumnResize.call(void 0,{columns:B(),nativeEvent:l,targetColumnId:f,index:e,newWidth:n,oldWidth:a,end:i,target:S.current})},Ot=(e,n,a,l,i)=>{const f=[],d=v.flatData(f,e,n,{index:a},l!==void 0,i);return{flattedData:f,resolvedGroupsCount:d}},At=(e,n)=>{const a=e.filter(l=>l&&l.type&&l.type.displayName==="KendoReactGridColumn");return v.readColumns(a,B(),{prevId:0,idPrefix:n})},Mt=e=>e.filter(n=>s.canUseDOM&&n&&n.media?window.matchMedia(n.media).matches:n),Kt=(e,n)=>{const a=u.tableKeyboardNavigationTools.getIdPrefix(O),l=At(e,a),i=Mt(l);g.current=i,g.current.length===0&&(g.current=v.autoGenerateColumns(t.data,t.group,t.expandField,{prevId:0,idPrefix:a})),zt(g.current,n),P.current=u.mapColumns(g.current,!0),y.current.columns=g.current,b.current.columns=g.current},zt=(e,n)=>{t.selectedField&&e.filter(i=>i.field===t.selectedField).forEach(i=>{i.width=i.width||"50px",i.cell=i.cell||nn.GridSelectionCell,i.headerCell=i.headerCell||Cn.GridHeaderSelectionCell});const a={id:"",resizable:!0,width:"32px",title:" ",declarationIndex:-1,orderIndex:-1,children:[],parentIndex:-1,depth:0,colSpan:0,rowSpan:0,left:0,right:0,index:0,rightBorder:!1,ariaColumnIndex:0,isAccessible:!0};let l=0;t.expandField&&t.onExpandChange&&t.detail&&(e.unshift({...a,cell:rn.GridHierarchyCell,field:t.expandField,headerClassName:s.classNames(h.hierarchyCell({}))}),l++);for(let i=0;i<n;i++)e.unshift({...a,isAccessible:!1,cell:dt.GridGroupCell,field:"value",locked:t.lockGroups}),l++;e.slice(l).forEach(i=>i.parentIndex>=0&&(i.parentIndex+=l))},Pt=e=>{const n=g.current.find(l=>l.field===e),a=n&&(n.title||n.field);return a===void 0?e:a},qt=()=>({filter:t.filter,sort:t.sort,skip:t.skip,take:t.take!==void 0?t.take:t.pageSize,group:t.group}),E=e=>({nativeEvent:e&&e.nativeEvent,syntheticEvent:e,target:S.current}),re=()=>R.current.filter(e=>e.rowType==="data").map(e=>e.dataItem),Le=()=>(le.current||R.current).filter(e=>e.rowType==="data").map(e=>e.dataItem),Lt=()=>{var e,n,a;if(j.current&&((e=j.current)==null?void 0:e.getElementsByClassName("k-grid-edit-row").length)>0){ye.current=!1,(n=document.activeElement)!=null&&n.closest(".k-grid-edit-row")?Re.current=document.activeElement:Re.current=void 0;const l=Array.from((a=j.current)==null?void 0:a.getElementsByClassName("k-grid-edit-row"));l.length>ke.current.length?oe.current=l.filter(i=>!ke.current.includes(i))[0]:l.length===1&&(oe.current=l[0],ye.current=!0),ke.current=l}},b=r.useRef(),H=r.useRef(),O=r.useRef(),ae=r.useRef(),c=r.useRef(),y=r.useRef(),z=r.useRef(null),R=r.useRef([]),le=r.useRef(),g=r.useRef([]),P=r.useRef([[]]),Ce=r.useRef(!1),ve=r.useRef(!1),oe=r.useRef(),Re=r.useRef(),ye=r.useRef(!1),ce=r.useRef(!0),we=r.useRef(),Ee=r.useRef(0),Ie=r.useRef(),Se=r.useRef(),ke=r.useRef([]),_=r.useRef(null),q=r.useRef(null),Ve=r.useRef(null),D=r.useRef(null),I=r.useRef(null),U=r.useRef(null),j=r.useRef(null),ie=r.useRef(null),Vt=un.useLocalization(),xe=s.useUnstyled(),h=xe&&xe.uGrid?xe.uGrid:s.uGrid,Bt=s.shouldShowValidationUI(ut.packageMetadata),A=s.useDir(D);r.useMemo(()=>{u.tableKeyboardNavigation.onConstructor({navigatable:!!t.navigatable,contextStateRef:H,navigationStateRef:O,idPrefix:F()})},[]),r.useMemo(()=>{var a;(a=c.current)==null||a.reset();const e=t.groupable===!0||typeof t.groupable=="object"&&t.groupable.enabled!==!1,n=mt();c.current=new n(e||t.rowHeight===void 0||t.rowHeight===0)},[t.scrollable,t.total,t.filter,t.group,t.groupable,t.sort,t.rowHeight]),r.useEffect(()=>(t.clipboard&&(ae.current=new u.ClipboardService(Tt),ae.current.addEventListeners(w())),()=>{ae.current&&ae.current.removeEventListeners(w())}),[t.onClipboard,t.clipboard]),r.useMemo(()=>{y.current=new gn.ColumnResize(Ft)},[t.onColumnResize]),r.useMemo(()=>{b.current=new mn.CommonDragLogic(be,Ht,qe)},[t.onColumnReorder,t.onGroupChange,t.group,t.groupable]),r.useEffect(()=>(t.columnVirtualization&&!window.navigator.userAgent.match(In.SAFARI_REGEX)&&(ie.current&&(ie.current.style.display="block"),I.current&&(I.current.style.display="block")),he(),s.setScrollbarWidth(Ae()),u.tableKeyboardNavigation.onComponentDidMount({scope:D.current||void 0,contextStateRef:H,navigationStateRef:O}),()=>{clearTimeout(Ie.current)}),[]),r.useEffect(()=>{var e;he(),s.setScrollbarWidth(Ae()),(e=c.current)!=null&&e.tableTransform&&c.current.table&&(c.current.table.style.transform=c.current.tableTransform,c.current.tableTransform=""),Lt(),u.tableKeyboardNavigation.onComponentDidUpdate({scope:D.current||void 0,contextStateRef:H,navigationStateRef:O,focusFirst:ve.current,newEditableRow:oe.current,singleEditRow:ye.current,lastActiveElement:Re.current,navigatable:t.navigatable}),ve.current=!1,oe.current=void 0}),r.useEffect(()=>{if(s.canUseDOM){const e={rootMargin:"0px",threshold:.9};z.current=window.IntersectionObserver&&new window.IntersectionObserver(Ge,e)||null}},[Ge]),r.useEffect(()=>{let e;return s.canUseDOM&&window.ResizeObserver&&(e=new window.ResizeObserver(gt),e.observe(D.current)),()=>{e==null||e.disconnect()}},[]);const S=r.useRef(null);r.useImperativeHandle(S,()=>({get element(){return p()},props:t,get columns(){return B()},scrollIntoView:e=>{var l;if(!((l=c.current)!=null&&l.container)||t.scrollable==="none")return;const{rowIndex:n}=e;Se.current=n;const a=p();if(z.current&&a){z.current.disconnect();const i=a.querySelector(`[absolute-row-index="${Se.current}"]`);i?z.current.observe(i):fe(e)}},fitColumns:e=>{y.current.dblClickHandler(null,e)}})),r.useImperativeHandle(V,()=>S.current);let M=t.total||0;const $=u.tableKeyboardNavigationTools.getIdPrefix(O),{size:T="medium"}=t;let Ne=[];Array.isArray(t.data)?(Ne=t.data,M=M||t.data.length):t.data&&(Ne=t.data.data,M=M||t.data.total);const Wt=typeof t.groupable=="object"&&t.groupable.footer||"none",J=t.scrollable==="virtual",{resolvedGroupsCount:_t,flattedData:Ut}=Ot(Ne,Wt,t.skip||0,t.group,t.expandField);R.current=Ut;const X=t.groupable===!0||typeof t.groupable=="object"&&t.groupable.enabled!==!1;y.current.resizable=t.resizable||!1,b.current.reorderable=t.reorderable||!1,b.current.groupable=X;const jt=t.selectable&&t.selectable.drag?"none":void 0;bt(M,X),Kt(W,_t);const Be=W.map(e=>e&&e.type&&e.type.displayName==="KendoReactGridToolbar"?r.cloneElement(e,{...e.props,ariaControls:F()}):null),We=W.filter(e=>e&&e.type&&e.type.displayName==="KendoReactGridNoRecords"),_e=W.filter(e=>e&&e.type&&e.type.displayName==="KendoReactGridStatusBar"),G=g.current.filter(e=>e.children.length===0),Ue=X&&r.createElement(dn.GroupPanel,{group:t.group||[],groupChange:te,pressHandler:b.current.pressHandler,dragHandler:b.current.dragHandler,releaseHandler:b.current.releaseHandler,refCallback:b.current.refGroupPanelDiv,resolveTitle:Pt,ariaControls:F(),onContextMenu:me}),je=r.createElement(ln.Header,{size:T,columnResize:y.current,staticHeaders:t.scrollable!=="none",scrollableDataElement:()=>{var e;return((e=c.current)==null?void 0:e.container)||null},draggable:t.reorderable||X,ref:q,elemRef:Ve,headerRow:r.createElement(on.HeaderRow,{cells:t.cells,sort:t.sort,sortable:t.sortable,sortChange:Nt,group:t.group||[],groupable:X,groupChange:te,filter:t.filter,filterable:t.filterable,filterOperators:t.filterOperators||st.operators,filterChange:Pe,columnMenu:t.columnMenu,columnMenuIcon:t.columnMenuIcon,selectionChange:Et,columns:g.current,columnResize:y.current,pressHandler:b.current.pressHandler,dragHandler:b.current.dragHandler,releaseHandler:b.current.releaseHandler,columnsMap:P.current,cellRender:t.headerCellRender,isRtl:A==="rtl",dragClue:b.current.dragClueRef,headerRef:Ve,containerRef:U,navigatable:!!t.navigatable,columnGroupChange:Dt}),filterRow:t.filterable&&r.createElement(cn.FilterRow,{cells:t.cells,size:T,columns:g.current,filter:t.filter,filterOperators:t.filterOperators||st.operators,filterChange:Pe,sort:t.sort,cellRender:t.filterCellRender,isRtl:A==="rtl",navigatable:!!t.navigatable,ariaRowIndex:P.current.length+1})||void 0,cols:G.map((e,n)=>r.createElement("col",{key:n.toString(),width:v.getColumnWidth(e)}))}),$t=c.current&&c.current.container&&c.current.container.scrollLeft||0,Jt=parseFloat(((t.style||{}).width||"").toString()),{colSpans:Xt,hiddenColumns:Yt}=u.tableColumnsVirtualization({enabled:t.columnVirtualization,columns:G,tableViewPortWidth:Jt,scrollLeft:$t}),Qt=(e,n,a,l)=>{let i=!1;const f=t.selectedField?v.getNestedValue(t.selectedField,e.dataItem):void 0;return{row:G.map((d,C)=>{if(Yt[C])return null;const k=d.id?d.id:C,m=s.classNames(h.contentSticky({locked:d.locked}),d.className),L=d.left!==void 0?A!=="rtl"?{left:d.left,right:d.right}:{left:d.right,right:d.left}:{};let Q=!1;if(d.editable&&t.editField){const x=v.getNestedValue(t.editField,e.dataItem);x&&(x===!0||x===d.field)&&(i=!0,Q=!0)}const K=d.cell||Q&&an.GridEditCell||bn.GridCell,De=t.expandField&&t.detail&&d.field===t.expandField;return r.createElement(K,{onContextMenu:me,key:k,locked:t.lockGroups,id:u.tableKeyboardNavigationTools.generateNavigatableId(`${n}-${String(C)}`,$,De||e.rowType==="groupHeader"||e.rowType==="groupFooter"||d.field==="value"?"nodata":"cell"),colSpan:Xt[C],dataItem:e.dataItem,field:d.field,editor:d.editor,format:d.format,className:m,render:t.cellRender,cells:v.resolveCells(t.cells,d.cells),onChange:yt,selectionChange:t.onSelectionChange?x=>{wt({event:x,dataItem:e.dataItem,dataIndex:a,columnIndex:C})}:void 0,columnIndex:C,columnsCount:G.length,rowType:e.rowType,level:e.level,expanded:e.expanded,dataIndex:e.dataIndex,style:L,ariaColumnIndex:d.ariaColumnIndex,isSelected:Array.isArray(f)&&f.indexOf(C)>-1,isSorted:!!v.isSorted(d.field,t.sort),isAlt:l})}),isInEdit:i,isSelected:typeof f=="boolean"&&f}};let $e=0;if(J&&c.current)for(let e=0;e<c.current.topCacheCount+c.current.attendedSkip-(t.skip||0);e++){const n=R.current.shift();if(n)R.current.push(n),$e++,n.rowType==="groupHeader"&&e--;else break}const Je=e=>e>=R.current.length-$e;let Xe=((rt=c.current)==null?void 0:rt.realSkip)||0;const de=[];let He=!1;const Ye=P.current.length+(t.filterable?1:0)+1;let Y=0;if(R.current.length){let e=-1,n=0;(le.current||R.current).forEach((a,l)=>{var L,Q;a.rowType==="data"&&(Xe++,e++);const i=Xe%2===0,f=t.dataItemKey&&s.getter(t.dataItemKey)(a.dataItem),d=l+(((L=c.current)==null?void 0:L.realSkip)||0),C=f||"ai"+d,k=C+"_1",m=Qt(a,C,e,i);if(Y=d+Ye+n,de.push(r.createElement(hn.GridRow,{key:C,dataItem:a.dataItem,isAltRow:i,isInEdit:m.isInEdit,rowType:a.rowType,isHidden:Je(l),onClick:K=>vt(K,a),onDoubleClick:K=>Rt(K,a),selectedField:t.selectedField,rowHeight:t.rowHeight,render:t.rowRender,ariaRowIndex:Y,absoluteRowIndex:d,dataIndex:(Q=c.current)!=null&&Q.scrollableVirtual&&!t.groupable?d:e,isSelected:m.isSelected},m.row)),t.detail&&a.rowType==="data"&&a.expanded){const K=G.length-(t.expandField?1:0)-(t.group?t.group.length:0)||1;n++,Y=d+Ye+n,de.push(r.createElement("tr",{key:k,className:s.classNames(h.detailTr({isAlt:i})),style:{visibility:Je(l)?"hidden":"",height:t.detailRowHeight},role:"row","aria-rowindex":Y},t.group&&t.group.map((De,x)=>{var ct;const Z=(ct=m==null?void 0:m.row[x])==null?void 0:ct.props.style,en=Z?A!=="rtl"?{left:Z.left,right:Z.right}:{left:Z.right,right:Z.left}:{};return r.createElement(dt.GridGroupCell,{id:"",dataIndex:a.dataIndex,field:De.field,dataItem:a.dataItem,key:x,style:en,ariaColumnIndex:1+x,isSelected:!1,locked:t.lockGroups,isRtl:A==="rtl",cells:t.cells})}),t.expandField&&r.createElement(En.GridDetailHierarchyCell,{id:u.tableKeyboardNavigationTools.generateNavigatableId(`${k}-dhcell`,$)}),r.createElement(wn.GridDetailCell,{onContextMenu:me,dataItem:a.dataItem,dataIndex:a.dataIndex,colSpan:K,ariaColIndex:2+(t.group?t.group.length:0),detail:t.detail,id:u.tableKeyboardNavigationTools.generateNavigatableId(`${k}-dcell`,$)})))}})}else He=!0;const Zt=()=>{const e=q.current;return e&&e.table()&&e.table().clientWidth},Qe=()=>r.createElement("div",{key:"no-records",className:s.classNames(h.noRecords({})),style:{width:Zt()}},r.createElement("div",{className:s.classNames(h.noRecordsTemplate({})),[u.KEYBOARD_NAV_DATA_ID]:u.tableKeyboardNavigationTools.generateNavigatableId("no-records",$)},We.length?We:r.createElement(vn.GridNoRecords,null))),Ze={size:T,onPageChange:xt,total:M,dir:A,skip:((at=c.current)==null?void 0:at.propsSkip)||0,take:(t.take!==void 0?t.take:t.pageSize)||10,messagesMap:ue.pagerMessagesMap,...yn.normalize(t.pageable||{})},pe=t.pager?r.createElement(t.pager,{...Ze}):r.createElement(u.Pager,{className:s.classNames(h.pager({})),...Ze}),pt=(e,n)=>r.createElement("col",{key:n.toString(),width:v.getColumnWidth(e)}),et=(lt=t.cells)!=null&<.footerCell||g.current.some(e=>{var n;return!!(e.footerCell||(n=e.cells)!=null&&n.footerCell)})?r.createElement(sn.Footer,{size:T,columnResize:y.current,staticHeaders:t.scrollable!=="none",ref:_,row:r.createElement(Rn.FooterRow,{cells:t.cells,idPrefix:$,columns:g.current,isRtl:A==="rtl",ariaRowIndex:Y+1}),cols:G.map(pt)}):null,tt=r.createElement("colgroup",{ref:e=>{y.current.colGroupMain=e}},G.map((e,n)=>r.createElement("col",{key:n.toString(),className:v.isSorted(e.field,t.sort)?s.classNames(h.sorted({})):void 0,width:v.getColumnWidth(e)}))),nt=b.current.reorderable||b.current.groupable;if(t.scrollable==="none")return r.createElement(u.TableKeyboardNavigationContext.Provider,{value:H.current},r.createElement("div",{id:t.id||N,style:t.style,className:s.classNames(h.wrapper({size:T}),t.className),ref:D,"aria-label":t.ariaLabel,onKeyDown:Me,onFocus:Ke,...u.tableKeyboardNavigationScopeAttributes},Be,Ue,r.createElement(u.TableSelection,{selectable:t.selectable,onRelease:ze,childRef:e=>{I.current=e,ie.current=e}},r.createElement("table",{ref:ie,className:s.classNames(h.table({size:T}))},tt,je,r.createElement("tbody",{role:"rowgroup",className:s.classNames(h.tbody({})),...u.tableKeyboardNavigationBodyAttributes},de),et)),He&&Qe(),nt&&r.createElement(r.Fragment,null,r.createElement(u.DropClue,{ref:b.current.refDropElementClue}),r.createElement(u.DragClue,{ref:b.current.refDragElementClue}))),_e,t.pageable&&pe);let se=t.style||{};return J&&(se.height||(se=Object.assign({},se,{height:"450px"}))),r.createElement(u.TableKeyboardNavigationContext.Provider,{value:H.current},r.createElement("div",{id:t.id||N,style:se,className:s.classNames(h.wrapper({size:T,virtual:J}),t.className),ref:D,"aria-label":t.ariaLabel,onKeyDown:Me,onFocus:Ke,...u.tableKeyboardNavigationScopeAttributes},Be,Ue,r.createElement("div",{className:s.classNames(h.ariaRoot({})),role:"grid","aria-colcount":G.length,"aria-rowcount":M,id:F(),"aria-label":Vt.toLanguageString(ue.gridAriaLabel,ue.messages[ue.gridAriaLabel])},je,r.createElement("div",{className:s.classNames(h.container({})),role:"presentation"},r.createElement("div",{ref:U,className:s.classNames(h.content({})),onScroll:ht,role:"presentation"},r.createElement("div",{className:s.classNames(h.tableWrap({})),role:"presentation"},r.createElement(u.TableSelection,{selectable:t.selectable,onRelease:ze,childRef:e=>{I.current=e}},r.createElement("table",{ref:I,className:s.classNames(h.table({size:T})),role:"presentation",style:{userSelect:jt}},tt,r.createElement("tbody",{className:s.classNames(h.tbody({})),ref:j,role:"rowgroup",...u.tableKeyboardNavigationBodyAttributes},de))),He&&Qe()),J&&r.createElement("div",{className:s.classNames(h.heightContainer({})),role:"presentation"},r.createElement("div",{style:J?{height:((ot=c.current)==null?void 0:ot.containerHeight)+"px"}:{}})))),et,nt&&r.createElement(r.Fragment,null,r.createElement(u.DropClue,{ref:b.current.refDropElementClue}),r.createElement(u.DragClue,{ref:b.current.refDragElementClue})),Bt&&r.createElement(s.WatermarkOverlay,null)),_e,t.pageable&&pe))}),kn={data:o.oneOfType([o.array,o.shape({data:o.array,total:o.number})]),sortable:o.oneOfType([o.bool,o.shape({mode:o.oneOf(["single","multiple"]),allowUnsort:o.bool})]),onSortChange:o.func,sort:o.array,filterable:o.bool,filter:o.any,onFilterChange:o.func,pageable:o.oneOfType([o.bool,o.shape({buttonCount:o.number,responsive:o.bool,info:o.bool,type:o.oneOf(["numeric","input"]),pageSizes:o.oneOfType([o.bool,o.arrayOf(o.oneOfType([o.string,o.number]))]),previousNext:o.bool})]),pageSize:o.number,onPageChange:o.func,total:o.number,skip:o.number,take:o.number,fixedScroll:o.bool,onExpandChange:o.func,expandField:o.string,selectedField:o.string,onSelectionChange:o.func,onHeaderSelectionChange:o.func,resizable:o.bool,reorderable:o.bool,group:o.any,groupable:o.oneOfType([o.bool,o.shape({enabled:o.bool,footer:o.oneOf(["always","visible","none"])})]),onGroupChange:o.func,onRowClick:o.func,onRowDoubleClick:o.func,onItemChange:o.func,editField:o.string,scrollable:o.oneOf(["none","scrollable","virtual"]),rowHeight:o.number,detailRowHeight:o.number,detail:o.any,style:o.object,onDataStateChange:o.func,onColumnResize:o.func,onColumnReorder:o.func,dataItemKey:o.string,navigatable:o.oneOfType([o.bool,o.shape({mode:o.oneOf(["incell","inline","popup"])})]),size:o.oneOf(["small","medium"])};Te.displayName="KendoReactGrid";Te.propTypes=kn;exports.Grid=Te;
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tn=require("react"),o=require("prop-types"),s=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-data-tools"),nn=require("./cells/GridSelectionCell.js"),rn=require("./cells/GridHierarchyCell.js"),an=require("./cells/GridEditCell.js"),ln=require("./header/Header.js"),on=require("./header/HeaderRow.js"),cn=require("./header/FilterRow.js"),dn=require("./header/GroupPanel.js"),sn=require("./footer/Footer.js"),un=require("@progress/kendo-react-intl"),ue=require("./messages/index.js"),fn=require("./VirtualScroll.js"),it=require("./VirtualScrollFixed.js"),gn=require("./drag/ColumnResize.js"),mn=require("./drag/CommonDragLogic.js"),v=require("./utils/index.js"),bn=require("./cells/GridCell.js"),dt=require("./cells/GridGroupCell.js"),hn=require("./rows/GridRow.js"),Cn=require("./header/GridHeaderSelectionCell.js"),vn=require("./GridNoRecords.js"),st=require("./filterCommon.js"),Rn=require("./footer/FooterRow.js"),yn=require("./paging/GridPagerSettings.js"),ut=require("./package-metadata.js"),wn=require("./cells/GridDetailCell.js"),En=require("./cells/GridDetailHierarchyCell.js"),In=require("./constants/index.js");function Sn(t){const V=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const N in t)if(N!=="default"){const y=Object.getOwnPropertyDescriptor(t,N);Object.defineProperty(V,N,y.get?y:{enumerable:!0,get:()=>t[N]})}}return V.default=t,Object.freeze(V)}const r=Sn(tn),Te=r.forwardRef((t,V)=>{var rt,at,lt,ot;const N=s.useId();s.validatePackage(ut.packageMetadata);const y=()=>{var e;if(s.canUseDOM)return((e=p())==null?void 0:e.ownerDocument)||document},G=()=>(t.id||N)+"-role-element-id",B=()=>{const e=g.current.filter(n=>n.declarationIndex>=0&&n.parentIndex===-1);return v.sanitizeColumns(e)},p=()=>O.current,fe=r.useCallback(e=>{var l;if(!c.current||!((l=c.current)!=null&&l.container)||t.scrollable==="none")return;z.current&&z.current.disconnect();const{rowIndex:n}=e,a=p();if(t.scrollable==="virtual")c.current.askedSkip=n,c.current.container.scroll(0,Math.round(c.current.askedSkip/c.current.total*c.current.container.scrollHeight));else if(a){const i=n<1?a.querySelector("tbody > tr:nth-child(1)"):a.querySelector(`tbody > tr:nth-child(${n+1})`);i&&U.current&&(U.current.scrollTop=i.offsetTop)}},[t.scrollable]),Ge=r.useCallback(e=>{const n={rowIndex:Se.current};e.forEach(a=>{a.isIntersecting||fe(n)})},[fe]),[,ge]=r.useReducer(e=>!e,!0),Fe=e=>JSON.stringify(e.map(n=>({id:n.id,field:n.field,title:n.title,children:n.children}))),W=r.useMemo(()=>r.Children.toArray(t.children),[t.children]),ft=()=>Fe(W)===Fe(g.current),gt=()=>{ft()||ge()},me=(e,n,a)=>{if(t.onContextMenu){const l={target:S.current,syntheticEvent:e,nativeEvent:e.nativeEvent,dataItem:n,field:a};t.onContextMenu.call(void 0,l)}},Oe=()=>{const{data:e,total:n}=t;return Array.isArray(e)?e.length===n:e?n===e.total:!1},mt=()=>{const{rowHeight:e,detailRowHeight:n,detail:a,expandField:l,groupable:i}=t,f=Oe(),d=e!==void 0&&e>0,C=n!==void 0&&n>0,k=i===!0||typeof i=="object"&&i.enabled!==!1;return!d||k&&!f||!!(a&&l)&&(!C||!f)?fn.VirtualScroll:it.VirtualScrollFixed},bt=(e,n)=>{if(c.current){if(c.current.fixedScroll=t.fixedScroll||!1,c.current.PageChange=ee,c.current.realSkip=t.skip||0,c.current.pageSize=(t.take!==void 0?t.take:t.pageSize)||0,c.current.scrollableVirtual=t.scrollable==="virtual",c.current.total=e,c.current.propsSkip=(t.skip||0)+(t.scrollable==="virtual"?c.current.topCacheCount+(c.current.attendedSkip-(t.skip||0)):0),t.rowHeight!==void 0&&t.rowHeight>0&&!n){const a=t.rowHeight*e;c.current.containerHeight=v.firefox?Math.min(v.firefoxMaxHeight,a):a}else c.current.containerHeight=1533915;if(c.current.containerRef=U,c.current.tableBodyRef=j,c.current.table=I.current,le.current=void 0,c.current instanceof it.VirtualScrollFixed){const{rowHeight:a=0,detail:l,expandField:i}=t;let{detailRowHeight:f=0}=t;f=l&&i?f:a,Oe()?(c.current.total=R.current.length,le.current=R.current.slice(c.current.realSkip,c.current.realSkip+c.current.pageSize),c.current.rowHeightService=new s.RowHeightService(R.current.length,a,f,R.current)):c.current.rowHeightService=new s.RowHeightService(e,a,f);const d=c.current.rowHeightService.totalHeight();c.current.containerHeight=v.firefox?Math.min(v.firefoxMaxHeight,d):d}}},Ae=()=>(we.current||(we.current=s.getScrollbarWidth()||void 0),we.current),ht=e=>{var l;if(e.target!==e.currentTarget)return;clearTimeout(Ie.current),c.current&&(c.current.table=I.current);const n=e.currentTarget.scrollLeft,a=e.currentTarget.scrollTop;t.columnVirtualization&&(!((l=c.current)!=null&&l.scrollableVirtual)||a===Ee.current)&&(Ie.current=window.setTimeout(()=>{ge()},0)),q.current&&q.current.setScrollLeft(n),_.current&&_.current.setScrollLeft(n),c.current&&a!==Ee.current&&c.current.scrollHandler(e),s.dispatchEvent(t.onScroll,e,S.current,void 0),Ee.current=a},Me=e=>{if(u.tableKeyboardNavigation.onKeyDown(e,{navigatable:t.navigatable||!1,contextStateRef:H,navigationStateRef:F,onNavigationAction:Ct,columns:B()}),u.tableKeyboardNavigation.onGetSnapshotBeforeUpdate({document:y(),contextStateRef:H,navigationStateRef:F}),t.onKeyDown){const{mode:n,cell:a}=u.getSelectionOptions(t.selectable),l={dataItems:re(),mode:n,cell:a,componentId:G(),selectedField:t.selectedField,...E(e)};t.onKeyDown.call(void 0,l)}},Ke=e=>{u.tableKeyboardNavigation.onFocus(e,{navigatable:!!t.navigatable,contextStateRef:H})},Ct=e=>{if(e.action==="moveToNextPage"&&St(e.event),e.action==="moveToPrevPage"&&kt(e.event),e.focusElement&&e.action==="reorderToRight"){const n=parseInt(e.focusElement.ariaColIndex,10)-1;n<g.current.length-1&&be(n,n+1,e.event)}if(e.focusElement&&e.action==="reorderToLeft"){const n=parseInt(e.focusElement.ariaColIndex,10)-1;n>0&&be(n,n-1,e.event)}if(t.onNavigationAction){const n={focusElement:e.focusElement,...E(e.event)};t.onNavigationAction.call(void 0,n)}},vt=(e,n)=>{t.onRowClick&&e.target.nodeName==="TD"&&t.onRowClick.call(void 0,{dataItem:n.dataItem,...E(e)})},Rt=(e,n)=>{t.onRowDoubleClick&&e.target.nodeName==="TD"&&t.onRowDoubleClick.call(void 0,{dataItem:n.dataItem,...E(e)})},yt=e=>{if(e.field===t.expandField||t.group&&e.field===void 0){t.onExpandChange&&t.onExpandChange.call(void 0,{...E(e.syntheticEvent),dataItem:e.dataItem,dataIndex:e.dataIndex,value:e.value});return}t.onItemChange&&t.onItemChange.call(void 0,{...E(e.syntheticEvent),dataItem:e.dataItem,dataIndex:e.dataIndex,field:e.field,value:e.value})},wt=e=>{if(t.onSelectionChange){const{event:n,dataItem:a,dataIndex:l,columnIndex:i}=e,{mode:f,cell:d}=u.getSelectionOptions(t.selectable),C={...E(n.syntheticEvent),dataItem:a,startColIndex:i,endColIndex:i,startRowIndex:l,endRowIndex:l,dataItems:re(),altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,mode:f,cell:d,isDrag:!1,componentId:G(),selectedField:t.selectedField||""};t.onSelectionChange.call(void 0,C)}},Et=e=>{t.onHeaderSelectionChange&&t.onHeaderSelectionChange.call(void 0,{field:e.field,nativeEvent:e.syntheticEvent&&e.syntheticEvent.nativeEvent,syntheticEvent:e.syntheticEvent,target:S.current,dataItems:re(),selectedField:t.selectedField})},ze=e=>{if(t.onSelectionChange){const n=Le()[e.startRowIndex],a=Le()[e.endRowIndex],l={syntheticEvent:void 0,target:S.current,selectedField:t.selectedField||"",componentId:G(),dataItems:re(),dataItem:null,startDataItem:n,endDataItem:a,...e};t.onSelectionChange.call(void 0,l)}},ee=(e,n,a)=>{ne(t.onPageChange,{page:e},{skip:e.skip,take:e.take},n,a)},It=()=>{let e=t.total||0;return Array.isArray(t.data)?e=e||t.data.length:t.data&&(e=e||t.data.total),e},St=e=>{const n=t.take||0,a=(t.skip||0)+n,l=It();a<l&&ee({skip:a,take:n},e)},kt=e=>{const n=t.take||0,a=(t.skip||0)-n;a>=0&&ee({skip:a,take:n},e)},xt=e=>{ee({skip:e.skip,take:e.take},e.syntheticEvent,e.targetEvent)},Nt=(e,n)=>{ne(t.onSortChange,{sort:e},{sort:e,...t.scrollable==="virtual"?{skip:0}:{}},n)},Pe=(e,n)=>{ne(t.onFilterChange,{filter:e},{filter:e||void 0,skip:0},n)},te=(e,n)=>{const a=n.nativeEvent?n:{nativeEvent:n.nativeEvent||n.originalEvent};e.length===0&&t.navigatable&&(ve.current=!0),ne(t.onGroupChange,{group:e},{group:e,skip:0},a)},ne=(e,n,a,l,i)=>{const f=t.onDataStateChange;if(e){const d={...E(l),...n,targetEvent:i};e.call(void 0,d)}else f&&f.call(void 0,{...E(l),targetEvent:i||{},dataState:{...qt(),...a}})},be=(e,n,a)=>{const l=g.current[e],i=l.depth,f=m=>{do m++;while(m<g.current.length&&g.current[m].depth>i);return m},d=g.current.splice(e,f(e)-e);g.current.splice(e<n?f(n-d.length):n,0,...d),g.current.filter(m=>m.declarationIndex>=0).forEach((m,L)=>m.orderIndex=L);const C=g.current[e].locked&&g.current[n].locked;u.updateLeft(P.current,g.current,C||ce.current),u.updateRight(P.current,g.current,C||ce.current),Ce.current&&(ce.current=!1,Ce.current=!1);const k=B();if(ge(),t.onColumnReorder){const m={target:S.current,columns:k,columnId:l.id,nativeEvent:a};t.onColumnReorder.call(void 0,m)}},Ht=(e,n,a)=>{if(t.group===void 0)return;const l=t.group.slice();l.splice(n,0,...l.splice(e,1)),te(l,a)},qe=(e,n,a)=>{const l=g.current[e].field;if(!l)return;const i=(t.group||[]).slice();i.splice(n,0,{field:l}),te(i,a)},Dt=(e,n)=>{const a=b.current.getCurrentGroupsLength;qe(e,a,n)},he=()=>{let e=0;if(!w.current.colGroupMain)return;const n=w.current.colGroupMain.children;for(let a=0;a<n.length;a++){const l=n[a].width;if(!l)return;e+=parseFloat(l.toString())}e=Math.round(e),q.current&&q.current.setWidth(e),_.current&&_.current.setWidth(e),I.current&&(I.current.style.width=e+"px")},Tt=(e,n)=>{if(t.onClipboard){if(!Gt()||!e)return;t.onClipboard.call(void 0,{type:e,nativeEvent:n,columns:g.current,dataItemKey:t.dataItemKey||"",...typeof t.clipboard!="boolean"?t.clipboard:{}})}},Gt=()=>{var i,f,d;if(!s.canUseDOM)return!1;const e=s.getActiveElement(y()),n=e?e.matches(".k-table-td")?e:(i=y())==null?void 0:i.body:(f=y())==null?void 0:f.body,a=n.closest(".k-grid-container"),l=n&&((d=O.current)==null?void 0:d.contains(n));return!!(n&&l&&a)},Ft=(e,n,a,l,i,f)=>{he(),ce.current=!0,Ce.current=!0,t.onColumnResize&&t.onColumnResize.call(void 0,{columns:B(),nativeEvent:l,targetColumnId:f,index:e,newWidth:n,oldWidth:a,end:i,target:S.current})},Ot=(e,n,a,l,i)=>{const f=[],d=v.flatData(f,e,n,{index:a},l!==void 0,i);return{flattedData:f,resolvedGroupsCount:d}},At=(e,n)=>{const a=e.filter(l=>l&&l.type&&l.type.displayName==="KendoReactGridColumn");return v.readColumns(a,B(),{prevId:0,idPrefix:n})},Mt=e=>e.filter(n=>s.canUseDOM&&n&&n.media?window.matchMedia(n.media).matches:n),Kt=(e,n)=>{const a=u.tableKeyboardNavigationTools.getIdPrefix(F),l=At(e,a),i=Mt(l);g.current=i,g.current.length===0&&(g.current=v.autoGenerateColumns(t.data,t.group,t.expandField,{prevId:0,idPrefix:a})),zt(g.current,n),P.current=u.mapColumns(g.current,!0),w.current.columns=g.current,b.current.columns=g.current},zt=(e,n)=>{t.selectedField&&e.filter(i=>i.field===t.selectedField).forEach(i=>{i.width=i.width||"50px",i.cell=i.cell||nn.GridSelectionCell,i.headerCell=i.headerCell||Cn.GridHeaderSelectionCell});const a={id:"",resizable:!0,width:"32px",title:" ",declarationIndex:-1,orderIndex:-1,children:[],parentIndex:-1,depth:0,colSpan:0,rowSpan:0,left:0,right:0,index:0,rightBorder:!1,ariaColumnIndex:0,isAccessible:!0};let l=0;t.expandField&&t.onExpandChange&&t.detail&&(e.unshift({...a,cell:rn.GridHierarchyCell,field:t.expandField,headerClassName:s.classNames(h.hierarchyCell({}))}),l++);for(let i=0;i<n;i++)e.unshift({...a,isAccessible:!1,cell:dt.GridGroupCell,field:"value",locked:t.lockGroups}),l++;e.slice(l).forEach(i=>i.parentIndex>=0&&(i.parentIndex+=l))},Pt=e=>{const n=g.current.find(l=>l.field===e),a=n&&(n.title||n.field);return a===void 0?e:a},qt=()=>({filter:t.filter,sort:t.sort,skip:t.skip,take:t.take!==void 0?t.take:t.pageSize,group:t.group}),E=e=>({nativeEvent:e&&e.nativeEvent,syntheticEvent:e,target:S.current}),re=()=>R.current.filter(e=>e.rowType==="data").map(e=>e.dataItem),Le=()=>(le.current||R.current).filter(e=>e.rowType==="data").map(e=>e.dataItem),Lt=()=>{var e,n,a;if(j.current&&((e=j.current)==null?void 0:e.getElementsByClassName("k-grid-edit-row").length)>0){ye.current=!1,(n=document.activeElement)!=null&&n.closest(".k-grid-edit-row")?Re.current=document.activeElement:Re.current=void 0;const l=Array.from((a=j.current)==null?void 0:a.getElementsByClassName("k-grid-edit-row"));l.length>ke.current.length?oe.current=l.filter(i=>!ke.current.includes(i))[0]:l.length===1&&(oe.current=l[0],ye.current=!0),ke.current=l}},b=r.useRef(),H=r.useRef(),F=r.useRef(),ae=r.useRef(),c=r.useRef(),w=r.useRef(),z=r.useRef(null),R=r.useRef([]),le=r.useRef(),g=r.useRef([]),P=r.useRef([[]]),Ce=r.useRef(!1),ve=r.useRef(!1),oe=r.useRef(),Re=r.useRef(),ye=r.useRef(!1),ce=r.useRef(!0),we=r.useRef(),Ee=r.useRef(0),Ie=r.useRef(),Se=r.useRef(),ke=r.useRef([]),_=r.useRef(null),q=r.useRef(null),Ve=r.useRef(null),O=r.useRef(null),I=r.useRef(null),U=r.useRef(null),j=r.useRef(null),ie=r.useRef(null),Vt=un.useLocalization(),xe=s.useUnstyled(),h=xe&&xe.uGrid?xe.uGrid:s.uGrid,Bt=s.shouldShowValidationUI(ut.packageMetadata),A=s.useDir(O);r.useMemo(()=>{u.tableKeyboardNavigation.onConstructor({navigatable:!!t.navigatable,contextStateRef:H,navigationStateRef:F,idPrefix:G()})},[]),r.useMemo(()=>{var a;(a=c.current)==null||a.reset();const e=t.groupable===!0||typeof t.groupable=="object"&&t.groupable.enabled!==!1,n=mt();c.current=new n(e||t.rowHeight===void 0||t.rowHeight===0)},[t.scrollable,t.total,t.filter,t.group,t.groupable,t.sort,t.rowHeight]),r.useEffect(()=>(t.clipboard&&(ae.current=new u.ClipboardService(Tt),ae.current.addEventListeners(y())),()=>{ae.current&&ae.current.removeEventListeners(y())}),[t.onClipboard,t.clipboard]),r.useMemo(()=>{w.current=new gn.ColumnResize(Ft)},[t.onColumnResize]),r.useMemo(()=>{b.current=new mn.CommonDragLogic(be,Ht,qe)},[t.onColumnReorder,t.onGroupChange,t.group,t.groupable]),r.useEffect(()=>(t.columnVirtualization&&!window.navigator.userAgent.match(In.SAFARI_REGEX)&&(ie.current&&(ie.current.style.display="block"),I.current&&(I.current.style.display="block")),he(),s.setScrollbarWidth(Ae()),u.tableKeyboardNavigation.onComponentDidMount({scope:O.current||void 0,contextStateRef:H,navigationStateRef:F}),()=>{clearTimeout(Ie.current)}),[]),r.useEffect(()=>{var e;he(),s.setScrollbarWidth(Ae()),(e=c.current)!=null&&e.tableTransform&&c.current.table&&(c.current.table.style.transform=c.current.tableTransform,c.current.tableTransform=""),Lt(),u.tableKeyboardNavigation.onComponentDidUpdate({scope:O.current||void 0,contextStateRef:H,navigationStateRef:F,focusFirst:ve.current,newEditableRow:oe.current,singleEditRow:ye.current,lastActiveElement:Re.current,navigatable:t.navigatable}),ve.current=!1,oe.current=void 0}),r.useEffect(()=>{if(s.canUseDOM){const e={rootMargin:"0px",threshold:.9};z.current=window.IntersectionObserver&&new window.IntersectionObserver(Ge,e)||null}},[Ge]),r.useEffect(()=>{var n;let e;return s.canUseDOM&&window.ResizeObserver&&(e=new window.ResizeObserver(gt),e.observe((n=y())==null?void 0:n.body)),()=>{e==null||e.disconnect()}},[]);const S=r.useRef(null);r.useImperativeHandle(S,()=>({get element(){return p()},props:t,get columns(){return B()},scrollIntoView:e=>{var l;if(!((l=c.current)!=null&&l.container)||t.scrollable==="none")return;const{rowIndex:n}=e;Se.current=n;const a=p();if(z.current&&a){z.current.disconnect();const i=a.querySelector(`[absolute-row-index="${Se.current}"]`);i?z.current.observe(i):fe(e)}},fitColumns:e=>{w.current.dblClickHandler(null,e)}})),r.useImperativeHandle(V,()=>S.current);let M=t.total||0;const $=u.tableKeyboardNavigationTools.getIdPrefix(F),{size:D="medium"}=t;let Ne=[];Array.isArray(t.data)?(Ne=t.data,M=M||t.data.length):t.data&&(Ne=t.data.data,M=M||t.data.total);const Wt=typeof t.groupable=="object"&&t.groupable.footer||"none",J=t.scrollable==="virtual",{resolvedGroupsCount:_t,flattedData:Ut}=Ot(Ne,Wt,t.skip||0,t.group,t.expandField);R.current=Ut;const X=t.groupable===!0||typeof t.groupable=="object"&&t.groupable.enabled!==!1;w.current.resizable=t.resizable||!1,b.current.reorderable=t.reorderable||!1,b.current.groupable=X;const jt=t.selectable&&t.selectable.drag?"none":void 0;bt(M,X),Kt(W,_t);const Be=W.map(e=>e&&e.type&&e.type.displayName==="KendoReactGridToolbar"?r.cloneElement(e,{...e.props,ariaControls:G()}):null),We=W.filter(e=>e&&e.type&&e.type.displayName==="KendoReactGridNoRecords"),_e=W.filter(e=>e&&e.type&&e.type.displayName==="KendoReactGridStatusBar"),T=g.current.filter(e=>e.children.length===0),Ue=X&&r.createElement(dn.GroupPanel,{group:t.group||[],groupChange:te,pressHandler:b.current.pressHandler,dragHandler:b.current.dragHandler,releaseHandler:b.current.releaseHandler,refCallback:b.current.refGroupPanelDiv,resolveTitle:Pt,ariaControls:G(),onContextMenu:me}),je=r.createElement(ln.Header,{size:D,columnResize:w.current,staticHeaders:t.scrollable!=="none",scrollableDataElement:()=>{var e;return((e=c.current)==null?void 0:e.container)||null},draggable:t.reorderable||X,ref:q,elemRef:Ve,headerRow:r.createElement(on.HeaderRow,{cells:t.cells,sort:t.sort,sortable:t.sortable,sortChange:Nt,group:t.group||[],groupable:X,groupChange:te,filter:t.filter,filterable:t.filterable,filterOperators:t.filterOperators||st.operators,filterChange:Pe,columnMenu:t.columnMenu,columnMenuIcon:t.columnMenuIcon,selectionChange:Et,columns:g.current,columnResize:w.current,pressHandler:b.current.pressHandler,dragHandler:b.current.dragHandler,releaseHandler:b.current.releaseHandler,columnsMap:P.current,cellRender:t.headerCellRender,isRtl:A==="rtl",dragClue:b.current.dragClueRef,headerRef:Ve,containerRef:U,navigatable:!!t.navigatable,columnGroupChange:Dt}),filterRow:t.filterable&&r.createElement(cn.FilterRow,{cells:t.cells,size:D,columns:g.current,filter:t.filter,filterOperators:t.filterOperators||st.operators,filterChange:Pe,sort:t.sort,cellRender:t.filterCellRender,isRtl:A==="rtl",navigatable:!!t.navigatable,ariaRowIndex:P.current.length+1})||void 0,cols:T.map((e,n)=>r.createElement("col",{key:n.toString(),width:v.getColumnWidth(e)}))}),$t=c.current&&c.current.container&&c.current.container.scrollLeft||0,Jt=parseFloat(((t.style||{}).width||"").toString()),{colSpans:Xt,hiddenColumns:Yt}=u.tableColumnsVirtualization({enabled:t.columnVirtualization,columns:T,tableViewPortWidth:Jt,scrollLeft:$t}),Qt=(e,n,a,l)=>{let i=!1;const f=t.selectedField?v.getNestedValue(t.selectedField,e.dataItem):void 0;return{row:T.map((d,C)=>{if(Yt[C])return null;const k=d.id?d.id:C,m=s.classNames(h.contentSticky({locked:d.locked}),d.className),L=d.left!==void 0?A!=="rtl"?{left:d.left,right:d.right}:{left:d.right,right:d.left}:{};let Q=!1;if(d.editable&&t.editField){const x=v.getNestedValue(t.editField,e.dataItem);x&&(x===!0||x===d.field)&&(i=!0,Q=!0)}const K=d.cell||Q&&an.GridEditCell||bn.GridCell,De=t.expandField&&t.detail&&d.field===t.expandField;return r.createElement(K,{onContextMenu:me,key:k,locked:t.lockGroups,id:u.tableKeyboardNavigationTools.generateNavigatableId(`${n}-${String(C)}`,$,De||e.rowType==="groupHeader"||e.rowType==="groupFooter"||d.field==="value"?"nodata":"cell"),colSpan:Xt[C],dataItem:e.dataItem,field:d.field,editor:d.editor,format:d.format,className:m,render:t.cellRender,cells:v.resolveCells(t.cells,d.cells),onChange:yt,selectionChange:t.onSelectionChange?x=>{wt({event:x,dataItem:e.dataItem,dataIndex:a,columnIndex:C})}:void 0,columnIndex:C,columnsCount:T.length,rowType:e.rowType,level:e.level,expanded:e.expanded,dataIndex:e.dataIndex,style:L,ariaColumnIndex:d.ariaColumnIndex,isSelected:Array.isArray(f)&&f.indexOf(C)>-1,isSorted:!!v.isSorted(d.field,t.sort),isAlt:l})}),isInEdit:i,isSelected:typeof f=="boolean"&&f}};let $e=0;if(J&&c.current)for(let e=0;e<c.current.topCacheCount+c.current.attendedSkip-(t.skip||0);e++){const n=R.current.shift();if(n)R.current.push(n),$e++,n.rowType==="groupHeader"&&e--;else break}const Je=e=>e>=R.current.length-$e;let Xe=((rt=c.current)==null?void 0:rt.realSkip)||0;const de=[];let He=!1;const Ye=P.current.length+(t.filterable?1:0)+1;let Y=0;if(R.current.length){let e=-1,n=0;(le.current||R.current).forEach((a,l)=>{var L,Q;a.rowType==="data"&&(Xe++,e++);const i=Xe%2===0,f=t.dataItemKey&&s.getter(t.dataItemKey)(a.dataItem),d=l+(((L=c.current)==null?void 0:L.realSkip)||0),C=f||"ai"+d,k=C+"_1",m=Qt(a,C,e,i);if(Y=d+Ye+n,de.push(r.createElement(hn.GridRow,{key:C,dataItem:a.dataItem,isAltRow:i,isInEdit:m.isInEdit,rowType:a.rowType,isHidden:Je(l),onClick:K=>vt(K,a),onDoubleClick:K=>Rt(K,a),selectedField:t.selectedField,rowHeight:t.rowHeight,render:t.rowRender,ariaRowIndex:Y,absoluteRowIndex:d,dataIndex:(Q=c.current)!=null&&Q.scrollableVirtual&&!t.groupable?d:e,isSelected:m.isSelected},m.row)),t.detail&&a.rowType==="data"&&a.expanded){const K=T.length-(t.expandField?1:0)-(t.group?t.group.length:0)||1;n++,Y=d+Ye+n,de.push(r.createElement("tr",{key:k,className:s.classNames(h.detailTr({isAlt:i})),style:{visibility:Je(l)?"hidden":"",height:t.detailRowHeight},role:"row","aria-rowindex":Y},t.group&&t.group.map((De,x)=>{var ct;const Z=(ct=m==null?void 0:m.row[x])==null?void 0:ct.props.style,en=Z?A!=="rtl"?{left:Z.left,right:Z.right}:{left:Z.right,right:Z.left}:{};return r.createElement(dt.GridGroupCell,{id:"",dataIndex:a.dataIndex,field:De.field,dataItem:a.dataItem,key:x,style:en,ariaColumnIndex:1+x,isSelected:!1,locked:t.lockGroups,isRtl:A==="rtl",cells:t.cells})}),t.expandField&&r.createElement(En.GridDetailHierarchyCell,{id:u.tableKeyboardNavigationTools.generateNavigatableId(`${k}-dhcell`,$)}),r.createElement(wn.GridDetailCell,{onContextMenu:me,dataItem:a.dataItem,dataIndex:a.dataIndex,colSpan:K,ariaColIndex:2+(t.group?t.group.length:0),detail:t.detail,id:u.tableKeyboardNavigationTools.generateNavigatableId(`${k}-dcell`,$)})))}})}else He=!0;const Zt=()=>{const e=q.current;return e&&e.table()&&e.table().clientWidth},Qe=()=>r.createElement("div",{key:"no-records",className:s.classNames(h.noRecords({})),style:{width:Zt()}},r.createElement("div",{className:s.classNames(h.noRecordsTemplate({})),[u.KEYBOARD_NAV_DATA_ID]:u.tableKeyboardNavigationTools.generateNavigatableId("no-records",$)},We.length?We:r.createElement(vn.GridNoRecords,null))),Ze={size:D,onPageChange:xt,total:M,dir:A,skip:((at=c.current)==null?void 0:at.propsSkip)||0,take:(t.take!==void 0?t.take:t.pageSize)||10,messagesMap:ue.pagerMessagesMap,...yn.normalize(t.pageable||{})},pe=t.pager?r.createElement(t.pager,{...Ze}):r.createElement(u.Pager,{className:s.classNames(h.pager({})),...Ze}),pt=(e,n)=>r.createElement("col",{key:n.toString(),width:v.getColumnWidth(e)}),et=(lt=t.cells)!=null&<.footerCell||g.current.some(e=>{var n;return!!(e.footerCell||(n=e.cells)!=null&&n.footerCell)})?r.createElement(sn.Footer,{size:D,columnResize:w.current,staticHeaders:t.scrollable!=="none",ref:_,row:r.createElement(Rn.FooterRow,{cells:t.cells,idPrefix:$,columns:g.current,isRtl:A==="rtl",ariaRowIndex:Y+1}),cols:T.map(pt)}):null,tt=r.createElement("colgroup",{ref:e=>{w.current.colGroupMain=e}},T.map((e,n)=>r.createElement("col",{key:n.toString(),className:v.isSorted(e.field,t.sort)?s.classNames(h.sorted({})):void 0,width:v.getColumnWidth(e)}))),nt=b.current.reorderable||b.current.groupable;if(t.scrollable==="none")return r.createElement(u.TableKeyboardNavigationContext.Provider,{value:H.current},r.createElement("div",{id:t.id||N,style:t.style,className:s.classNames(h.wrapper({size:D}),t.className),ref:O,"aria-label":t.ariaLabel,onKeyDown:Me,onFocus:Ke,...u.tableKeyboardNavigationScopeAttributes},Be,Ue,r.createElement(u.TableSelection,{selectable:t.selectable,onRelease:ze,childRef:e=>{I.current=e,ie.current=e}},r.createElement("table",{ref:ie,className:s.classNames(h.table({size:D}))},tt,je,r.createElement("tbody",{role:"rowgroup",className:s.classNames(h.tbody({})),...u.tableKeyboardNavigationBodyAttributes},de),et)),He&&Qe(),nt&&r.createElement(r.Fragment,null,r.createElement(u.DropClue,{ref:b.current.refDropElementClue}),r.createElement(u.DragClue,{ref:b.current.refDragElementClue}))),_e,t.pageable&&pe);let se=t.style||{};return J&&(se.height||(se=Object.assign({},se,{height:"450px"}))),r.createElement(u.TableKeyboardNavigationContext.Provider,{value:H.current},r.createElement("div",{id:t.id||N,style:se,className:s.classNames(h.wrapper({size:D,virtual:J}),t.className),ref:O,"aria-label":t.ariaLabel,onKeyDown:Me,onFocus:Ke,...u.tableKeyboardNavigationScopeAttributes},Be,Ue,r.createElement("div",{className:s.classNames(h.ariaRoot({})),role:"grid","aria-colcount":T.length,"aria-rowcount":M,id:G(),"aria-label":Vt.toLanguageString(ue.gridAriaLabel,ue.messages[ue.gridAriaLabel])},je,r.createElement("div",{className:s.classNames(h.container({})),role:"presentation"},r.createElement("div",{ref:U,className:s.classNames(h.content({})),onScroll:ht,role:"presentation"},r.createElement("div",{className:s.classNames(h.tableWrap({})),role:"presentation"},r.createElement(u.TableSelection,{selectable:t.selectable,onRelease:ze,childRef:e=>{I.current=e}},r.createElement("table",{ref:I,className:s.classNames(h.table({size:D})),role:"presentation",style:{userSelect:jt}},tt,r.createElement("tbody",{className:s.classNames(h.tbody({})),ref:j,role:"rowgroup",...u.tableKeyboardNavigationBodyAttributes},de))),He&&Qe()),J&&r.createElement("div",{className:s.classNames(h.heightContainer({})),role:"presentation"},r.createElement("div",{style:J?{height:((ot=c.current)==null?void 0:ot.containerHeight)+"px"}:{}})))),et,nt&&r.createElement(r.Fragment,null,r.createElement(u.DropClue,{ref:b.current.refDropElementClue}),r.createElement(u.DragClue,{ref:b.current.refDragElementClue})),Bt&&r.createElement(s.WatermarkOverlay,null)),_e,t.pageable&&pe))}),kn={data:o.oneOfType([o.array,o.shape({data:o.array,total:o.number})]),sortable:o.oneOfType([o.bool,o.shape({mode:o.oneOf(["single","multiple"]),allowUnsort:o.bool})]),onSortChange:o.func,sort:o.array,filterable:o.bool,filter:o.any,onFilterChange:o.func,pageable:o.oneOfType([o.bool,o.shape({buttonCount:o.number,responsive:o.bool,info:o.bool,type:o.oneOf(["numeric","input"]),pageSizes:o.oneOfType([o.bool,o.arrayOf(o.oneOfType([o.string,o.number]))]),previousNext:o.bool})]),pageSize:o.number,onPageChange:o.func,total:o.number,skip:o.number,take:o.number,fixedScroll:o.bool,onExpandChange:o.func,expandField:o.string,selectedField:o.string,onSelectionChange:o.func,onHeaderSelectionChange:o.func,resizable:o.bool,reorderable:o.bool,group:o.any,groupable:o.oneOfType([o.bool,o.shape({enabled:o.bool,footer:o.oneOf(["always","visible","none"])})]),onGroupChange:o.func,onRowClick:o.func,onRowDoubleClick:o.func,onItemChange:o.func,editField:o.string,scrollable:o.oneOf(["none","scrollable","virtual"]),rowHeight:o.number,detailRowHeight:o.number,detail:o.any,style:o.object,onDataStateChange:o.func,onColumnResize:o.func,onColumnReorder:o.func,dataItemKey:o.string,navigatable:o.oneOfType([o.bool,o.shape({mode:o.oneOf(["incell","inline","popup"])})]),size:o.oneOf(["small","medium"])};Te.displayName="KendoReactGrid";Te.propTypes=kn;exports.Grid=Te;
|
package/Grid.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
@@ -41,14 +41,14 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
41
41
|
var nt, rt, at, lt;
|
|
42
42
|
const ue = Rn();
|
|
43
43
|
Cn(St);
|
|
44
|
-
const
|
|
44
|
+
const H = () => {
|
|
45
45
|
var e;
|
|
46
46
|
if (Q)
|
|
47
47
|
return ((e = Z()) == null ? void 0 : e.ownerDocument) || document;
|
|
48
48
|
}, T = () => (t.id || ue) + "-role-element-id", V = () => {
|
|
49
49
|
const e = s.current.filter((n) => n.declarationIndex >= 0 && n.parentIndex === -1);
|
|
50
50
|
return Xn(e);
|
|
51
|
-
}, Z = () =>
|
|
51
|
+
}, Z = () => N.current, se = r.useCallback(
|
|
52
52
|
(e) => {
|
|
53
53
|
var l;
|
|
54
54
|
if (!c.current || !((l = c.current) != null && l.container) || t.scrollable === "none")
|
|
@@ -133,7 +133,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
133
133
|
onNavigationAction: Gt,
|
|
134
134
|
columns: V()
|
|
135
135
|
}), K.onGetSnapshotBeforeUpdate({
|
|
136
|
-
document:
|
|
136
|
+
document: H(),
|
|
137
137
|
contextStateRef: S,
|
|
138
138
|
navigationStateRef: D
|
|
139
139
|
}), t.onKeyDown) {
|
|
@@ -358,7 +358,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
358
358
|
var i, u, d;
|
|
359
359
|
if (!Q)
|
|
360
360
|
return !1;
|
|
361
|
-
const e = Hn(
|
|
361
|
+
const e = Hn(H()), n = e ? e.matches(".k-table-td") ? e : (i = H()) == null ? void 0 : i.body : (u = H()) == null ? void 0 : u.body, a = n.closest(".k-grid-container"), l = n && ((d = N.current) == null ? void 0 : d.contains(n));
|
|
362
362
|
return !!(n && l && a);
|
|
363
363
|
}, qt = (e, n, a, l, i, u) => {
|
|
364
364
|
he(), oe.current = !0, be.current = !0, t.onColumnResize && t.onColumnResize.call(void 0, {
|
|
@@ -453,7 +453,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
453
453
|
(i) => !Se.current.includes(i)
|
|
454
454
|
)[0] : l.length === 1 && (le.current = l[0], ve.current = !0), Se.current = l;
|
|
455
455
|
}
|
|
456
|
-
}, g = r.useRef(), S = r.useRef(), D = r.useRef(), re = r.useRef(), c = r.useRef(), C = r.useRef(), z = r.useRef(null), R = r.useRef([]), ae = r.useRef(), s = r.useRef([]), M = r.useRef([[]]), be = r.useRef(!1), Re = r.useRef(!1), le = r.useRef(), Ce = r.useRef(), ve = r.useRef(!1), oe = r.useRef(!0), ye = r.useRef(), we = r.useRef(0), Ee = r.useRef(), Ie = r.useRef(), Se = r.useRef([]), W = r.useRef(null), O = r.useRef(null), Ve = r.useRef(null),
|
|
456
|
+
}, g = r.useRef(), S = r.useRef(), D = r.useRef(), re = r.useRef(), c = r.useRef(), C = r.useRef(), z = r.useRef(null), R = r.useRef([]), ae = r.useRef(), s = r.useRef([]), M = r.useRef([[]]), be = r.useRef(!1), Re = r.useRef(!1), le = r.useRef(), Ce = r.useRef(), ve = r.useRef(!1), oe = r.useRef(!0), ye = r.useRef(), we = r.useRef(0), Ee = r.useRef(), Ie = r.useRef(), Se = r.useRef([]), W = r.useRef(null), O = r.useRef(null), Ve = r.useRef(null), N = r.useRef(null), y = r.useRef(null), _ = r.useRef(null), U = r.useRef(null), ce = r.useRef(null), nn = _n(), ke = vn(), m = ke && ke.uGrid ? ke.uGrid : yn, rn = wn(St), F = En(N);
|
|
457
457
|
r.useMemo(() => {
|
|
458
458
|
K.onConstructor({
|
|
459
459
|
navigatable: !!t.navigatable,
|
|
@@ -466,14 +466,14 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
466
466
|
(a = c.current) == null || a.reset();
|
|
467
467
|
const e = t.groupable === !0 || typeof t.groupable == "object" && t.groupable.enabled !== !1, n = Dt();
|
|
468
468
|
c.current = new n(e || t.rowHeight === void 0 || t.rowHeight === 0);
|
|
469
|
-
}, [t.scrollable, t.total, t.filter, t.group, t.groupable, t.sort, t.rowHeight]), r.useEffect(() => (t.clipboard && (re.current = new Tn($t), re.current.addEventListeners(
|
|
470
|
-
re.current && re.current.removeEventListeners(
|
|
469
|
+
}, [t.scrollable, t.total, t.filter, t.group, t.groupable, t.sort, t.rowHeight]), r.useEffect(() => (t.clipboard && (re.current = new Tn($t), re.current.addEventListeners(H())), () => {
|
|
470
|
+
re.current && re.current.removeEventListeners(H());
|
|
471
471
|
}), [t.onClipboard, t.clipboard]), r.useMemo(() => {
|
|
472
472
|
C.current = new qn(qt);
|
|
473
473
|
}, [t.onColumnResize]), r.useMemo(() => {
|
|
474
474
|
g.current = new Jn(me, _t, Ke);
|
|
475
475
|
}, [t.onColumnReorder, t.onGroupChange, t.group, t.groupable]), r.useEffect(() => (t.columnVirtualization && !window.navigator.userAgent.match(ir) && (ce.current && (ce.current.style.display = "block"), y.current && (y.current.style.display = "block")), he(), ct(Ae()), K.onComponentDidMount({
|
|
476
|
-
scope:
|
|
476
|
+
scope: N.current || void 0,
|
|
477
477
|
contextStateRef: S,
|
|
478
478
|
navigationStateRef: D
|
|
479
479
|
}), () => {
|
|
@@ -481,7 +481,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
481
481
|
}), []), r.useEffect(() => {
|
|
482
482
|
var e;
|
|
483
483
|
he(), ct(Ae()), (e = c.current) != null && e.tableTransform && c.current.table && (c.current.table.style.transform = c.current.tableTransform, c.current.tableTransform = ""), tn(), K.onComponentDidUpdate({
|
|
484
|
-
scope:
|
|
484
|
+
scope: N.current || void 0,
|
|
485
485
|
contextStateRef: S,
|
|
486
486
|
navigationStateRef: D,
|
|
487
487
|
focusFirst: Re.current,
|
|
@@ -499,8 +499,9 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
499
499
|
z.current = window.IntersectionObserver && new window.IntersectionObserver(Ne, e) || null;
|
|
500
500
|
}
|
|
501
501
|
}, [Ne]), r.useEffect(() => {
|
|
502
|
+
var n;
|
|
502
503
|
let e;
|
|
503
|
-
return Q && window.ResizeObserver && (e = new window.ResizeObserver(Tt), e.observe(
|
|
504
|
+
return Q && window.ResizeObserver && (e = new window.ResizeObserver(Tt), e.observe((n = H()) == null ? void 0 : n.body)), () => {
|
|
504
505
|
e == null || e.disconnect();
|
|
505
506
|
};
|
|
506
507
|
}, []);
|
|
@@ -533,10 +534,10 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
533
534
|
}
|
|
534
535
|
})
|
|
535
536
|
), r.useImperativeHandle(xt, () => w.current);
|
|
536
|
-
let
|
|
537
|
-
const $ = L.getIdPrefix(D), { size:
|
|
537
|
+
let G = t.total || 0;
|
|
538
|
+
const $ = L.getIdPrefix(D), { size: k = "medium" } = t;
|
|
538
539
|
let xe = [];
|
|
539
|
-
Array.isArray(t.data) ? (xe = t.data,
|
|
540
|
+
Array.isArray(t.data) ? (xe = t.data, G = G || t.data.length) : t.data && (xe = t.data.data, G = G || t.data.total);
|
|
540
541
|
const an = typeof t.groupable == "object" && t.groupable.footer || "none", j = t.scrollable === "virtual", { resolvedGroupsCount: ln, flattedData: on } = Jt(
|
|
541
542
|
xe,
|
|
542
543
|
an,
|
|
@@ -548,12 +549,12 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
548
549
|
const q = t.groupable === !0 || typeof t.groupable == "object" && t.groupable.enabled !== !1;
|
|
549
550
|
C.current.resizable = t.resizable || !1, g.current.reorderable = t.reorderable || !1, g.current.groupable = q;
|
|
550
551
|
const cn = t.selectable && t.selectable.drag ? "none" : void 0;
|
|
551
|
-
Nt(
|
|
552
|
+
Nt(G, q), Qt(B, ln);
|
|
552
553
|
const Be = B.map((e) => e && e.type && e.type.displayName === "KendoReactGridToolbar" ? r.cloneElement(e, { ...e.props, ariaControls: T() }) : null), We = B.filter(
|
|
553
554
|
(e) => e && e.type && e.type.displayName === "KendoReactGridNoRecords"
|
|
554
555
|
), _e = B.filter(
|
|
555
556
|
(e) => e && e.type && e.type.displayName === "KendoReactGridStatusBar"
|
|
556
|
-
),
|
|
557
|
+
), x = s.current.filter((e) => e.children.length === 0), Ue = q && /* @__PURE__ */ r.createElement(
|
|
557
558
|
Bn,
|
|
558
559
|
{
|
|
559
560
|
group: t.group || [],
|
|
@@ -569,7 +570,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
569
570
|
), $e = /* @__PURE__ */ r.createElement(
|
|
570
571
|
Kn,
|
|
571
572
|
{
|
|
572
|
-
size:
|
|
573
|
+
size: k,
|
|
573
574
|
columnResize: C.current,
|
|
574
575
|
staticHeaders: t.scrollable !== "none",
|
|
575
576
|
scrollableDataElement: () => {
|
|
@@ -603,7 +604,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
603
604
|
releaseHandler: g.current.releaseHandler,
|
|
604
605
|
columnsMap: M.current,
|
|
605
606
|
cellRender: t.headerCellRender,
|
|
606
|
-
isRtl:
|
|
607
|
+
isRtl: F === "rtl",
|
|
607
608
|
dragClue: g.current.dragClueRef,
|
|
608
609
|
headerRef: Ve,
|
|
609
610
|
containerRef: _,
|
|
@@ -615,41 +616,41 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
615
616
|
Vn,
|
|
616
617
|
{
|
|
617
618
|
cells: t.cells,
|
|
618
|
-
size:
|
|
619
|
+
size: k,
|
|
619
620
|
columns: s.current,
|
|
620
621
|
filter: t.filter,
|
|
621
622
|
filterOperators: t.filterOperators || It,
|
|
622
623
|
filterChange: Pe,
|
|
623
624
|
sort: t.sort,
|
|
624
625
|
cellRender: t.filterCellRender,
|
|
625
|
-
isRtl:
|
|
626
|
+
isRtl: F === "rtl",
|
|
626
627
|
navigatable: !!t.navigatable,
|
|
627
628
|
ariaRowIndex: M.current.length + 1
|
|
628
629
|
}
|
|
629
630
|
) || void 0,
|
|
630
|
-
cols:
|
|
631
|
+
cols: x.map((e, n) => /* @__PURE__ */ r.createElement("col", { key: n.toString(), width: De(e) }))
|
|
631
632
|
}
|
|
632
633
|
), dn = c.current && c.current.container && c.current.container.scrollLeft || 0, un = parseFloat(((t.style || {}).width || "").toString()), { colSpans: sn, hiddenColumns: fn } = Dn({
|
|
633
634
|
enabled: t.columnVirtualization,
|
|
634
|
-
columns:
|
|
635
|
+
columns: x,
|
|
635
636
|
tableViewPortWidth: un,
|
|
636
637
|
scrollLeft: dn
|
|
637
638
|
}), gn = (e, n, a, l) => {
|
|
638
639
|
let i = !1;
|
|
639
640
|
const u = t.selectedField ? wt(t.selectedField, e.dataItem) : void 0;
|
|
640
641
|
return {
|
|
641
|
-
row:
|
|
642
|
+
row: x.map((d, h) => {
|
|
642
643
|
if (fn[h])
|
|
643
644
|
return null;
|
|
644
|
-
const E = d.id ? d.id : h, f = b(m.contentSticky({ locked: d.locked }), d.className), P = d.left !== void 0 ?
|
|
645
|
+
const E = d.id ? d.id : h, f = b(m.contentSticky({ locked: d.locked }), d.className), P = d.left !== void 0 ? F !== "rtl" ? { left: d.left, right: d.right } : { left: d.right, right: d.left } : {};
|
|
645
646
|
let X = !1;
|
|
646
647
|
if (d.editable && t.editField) {
|
|
647
648
|
const I = wt(t.editField, e.dataItem);
|
|
648
649
|
I && (I === !0 || I === d.field) && (i = !0, X = !0);
|
|
649
650
|
}
|
|
650
|
-
const
|
|
651
|
+
const A = d.cell || X && Pn || er, Te = t.expandField && t.detail && d.field === t.expandField;
|
|
651
652
|
return /* @__PURE__ */ r.createElement(
|
|
652
|
-
|
|
653
|
+
A,
|
|
653
654
|
{
|
|
654
655
|
onContextMenu: ge,
|
|
655
656
|
key: E,
|
|
@@ -677,7 +678,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
677
678
|
});
|
|
678
679
|
} : void 0,
|
|
679
680
|
columnIndex: h,
|
|
680
|
-
columnsCount:
|
|
681
|
+
columnsCount: x.length,
|
|
681
682
|
rowType: e.rowType,
|
|
682
683
|
level: e.level,
|
|
683
684
|
expanded: e.expanded,
|
|
@@ -725,8 +726,8 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
725
726
|
isInEdit: f.isInEdit,
|
|
726
727
|
rowType: a.rowType,
|
|
727
728
|
isHidden: qe(l),
|
|
728
|
-
onClick: (
|
|
729
|
-
onDoubleClick: (
|
|
729
|
+
onClick: (A) => At(A, a),
|
|
730
|
+
onDoubleClick: (A) => zt(A, a),
|
|
730
731
|
selectedField: t.selectedField,
|
|
731
732
|
rowHeight: t.rowHeight,
|
|
732
733
|
render: t.rowRender,
|
|
@@ -738,7 +739,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
738
739
|
f.row
|
|
739
740
|
)
|
|
740
741
|
), t.detail && a.rowType === "data" && a.expanded) {
|
|
741
|
-
const
|
|
742
|
+
const A = x.length - (t.expandField ? 1 : 0) - (t.group ? t.group.length : 0) || 1;
|
|
742
743
|
n++, J = d + Xe + n, ie.push(
|
|
743
744
|
/* @__PURE__ */ r.createElement(
|
|
744
745
|
"tr",
|
|
@@ -754,7 +755,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
754
755
|
},
|
|
755
756
|
t.group && t.group.map((Te, I) => {
|
|
756
757
|
var ot;
|
|
757
|
-
const Y = (ot = f == null ? void 0 : f.row[I]) == null ? void 0 : ot.props.style, bn = Y ?
|
|
758
|
+
const Y = (ot = f == null ? void 0 : f.row[I]) == null ? void 0 : ot.props.style, bn = Y ? F !== "rtl" ? { left: Y.left, right: Y.right } : { left: Y.right, right: Y.left } : {};
|
|
758
759
|
return /* @__PURE__ */ r.createElement(
|
|
759
760
|
Et,
|
|
760
761
|
{
|
|
@@ -767,7 +768,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
767
768
|
ariaColumnIndex: 1 + I,
|
|
768
769
|
isSelected: !1,
|
|
769
770
|
locked: t.lockGroups,
|
|
770
|
-
isRtl:
|
|
771
|
+
isRtl: F === "rtl",
|
|
771
772
|
cells: t.cells
|
|
772
773
|
}
|
|
773
774
|
);
|
|
@@ -784,7 +785,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
784
785
|
onContextMenu: ge,
|
|
785
786
|
dataItem: a.dataItem,
|
|
786
787
|
dataIndex: a.dataIndex,
|
|
787
|
-
colSpan:
|
|
788
|
+
colSpan: A,
|
|
788
789
|
ariaColIndex: 2 + (t.group ? t.group.length : 0),
|
|
789
790
|
detail: t.detail,
|
|
790
791
|
id: L.generateNavigatableId(`${E}-dcell`, $)
|
|
@@ -807,10 +808,10 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
807
808
|
},
|
|
808
809
|
We.length ? We : /* @__PURE__ */ r.createElement(rr, null)
|
|
809
810
|
)), Qe = {
|
|
810
|
-
size:
|
|
811
|
+
size: k,
|
|
811
812
|
onPageChange: Bt,
|
|
812
|
-
total:
|
|
813
|
-
dir:
|
|
813
|
+
total: G,
|
|
814
|
+
dir: F,
|
|
814
815
|
skip: ((rt = c.current) == null ? void 0 : rt.propsSkip) || 0,
|
|
815
816
|
take: (t.take !== void 0 ? t.take : t.pageSize) || 10,
|
|
816
817
|
messagesMap: Un,
|
|
@@ -821,7 +822,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
821
822
|
}) ? /* @__PURE__ */ r.createElement(
|
|
822
823
|
Wn,
|
|
823
824
|
{
|
|
824
|
-
size:
|
|
825
|
+
size: k,
|
|
825
826
|
columnResize: C.current,
|
|
826
827
|
staticHeaders: t.scrollable !== "none",
|
|
827
828
|
ref: W,
|
|
@@ -831,11 +832,11 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
831
832
|
cells: t.cells,
|
|
832
833
|
idPrefix: $,
|
|
833
834
|
columns: s.current,
|
|
834
|
-
isRtl:
|
|
835
|
+
isRtl: F === "rtl",
|
|
835
836
|
ariaRowIndex: J + 1
|
|
836
837
|
}
|
|
837
838
|
),
|
|
838
|
-
cols:
|
|
839
|
+
cols: x.map(hn)
|
|
839
840
|
}
|
|
840
841
|
) : null, et = /* @__PURE__ */ r.createElement(
|
|
841
842
|
"colgroup",
|
|
@@ -844,7 +845,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
844
845
|
C.current.colGroupMain = e;
|
|
845
846
|
}
|
|
846
847
|
},
|
|
847
|
-
|
|
848
|
+
x.map((e, n) => /* @__PURE__ */ r.createElement(
|
|
848
849
|
"col",
|
|
849
850
|
{
|
|
850
851
|
key: n.toString(),
|
|
@@ -859,8 +860,8 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
859
860
|
{
|
|
860
861
|
id: t.id || ue,
|
|
861
862
|
style: t.style,
|
|
862
|
-
className: b(m.wrapper({ size:
|
|
863
|
-
ref:
|
|
863
|
+
className: b(m.wrapper({ size: k }), t.className),
|
|
864
|
+
ref: N,
|
|
864
865
|
"aria-label": t.ariaLabel,
|
|
865
866
|
onKeyDown: ze,
|
|
866
867
|
onFocus: Me,
|
|
@@ -877,7 +878,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
877
878
|
y.current = e, ce.current = e;
|
|
878
879
|
}
|
|
879
880
|
},
|
|
880
|
-
/* @__PURE__ */ r.createElement("table", { ref: ce, className: b(m.table({ size:
|
|
881
|
+
/* @__PURE__ */ r.createElement("table", { ref: ce, className: b(m.table({ size: k })) }, et, $e, /* @__PURE__ */ r.createElement(
|
|
881
882
|
"tbody",
|
|
882
883
|
{
|
|
883
884
|
role: "rowgroup",
|
|
@@ -898,12 +899,12 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
898
899
|
style: de,
|
|
899
900
|
className: b(
|
|
900
901
|
m.wrapper({
|
|
901
|
-
size:
|
|
902
|
+
size: k,
|
|
902
903
|
virtual: j
|
|
903
904
|
}),
|
|
904
905
|
t.className
|
|
905
906
|
),
|
|
906
|
-
ref:
|
|
907
|
+
ref: N,
|
|
907
908
|
"aria-label": t.ariaLabel,
|
|
908
909
|
onKeyDown: ze,
|
|
909
910
|
onFocus: Me,
|
|
@@ -916,8 +917,8 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
916
917
|
{
|
|
917
918
|
className: b(m.ariaRoot({})),
|
|
918
919
|
role: "grid",
|
|
919
|
-
"aria-colcount":
|
|
920
|
-
"aria-rowcount":
|
|
920
|
+
"aria-colcount": x.length,
|
|
921
|
+
"aria-rowcount": G,
|
|
921
922
|
id: T(),
|
|
922
923
|
"aria-label": nn.toLanguageString(bt, $n[bt])
|
|
923
924
|
},
|
|
@@ -945,7 +946,7 @@ const kt = r.forwardRef((t, xt) => {
|
|
|
945
946
|
ref: y,
|
|
946
947
|
className: b(
|
|
947
948
|
m.table({
|
|
948
|
-
size:
|
|
949
|
+
size: k
|
|
949
950
|
})
|
|
950
951
|
),
|
|
951
952
|
role: "presentation",
|
package/GridColumn.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/GridColumn.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/GridNoRecords.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/GridNoRecords.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/GridToolbar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/GridToolbar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/LICENSE.md
CHANGED
|
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**End User Lic
|
|
|
8
8
|
|
|
9
9
|
All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
|
|
10
10
|
|
|
11
|
-
*Copyright ©
|
|
11
|
+
*Copyright © 2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
|
package/StatusBar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/StatusBar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/VirtualScroll.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/VirtualScroll.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/VirtualScrollFixed.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/VirtualScrollFixed.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/cells/GridCell.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
package/cells/GridCell.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|