export*from"@vaadin/grid/vaadin-grid.js";import{forwardRef as c,useLayoutEffect as g,useRef as G}from"react";import{Grid as m}from"@vaadin/grid/vaadin-grid.js";import*as l from"react";import{createComponent as p}from"./utils/createComponent.js";var s={onActiveItemChanged:"active-item-changed",onCellActivate:"cell-activate",onCellFocus:"cell-focus",onColumnReorder:"column-reorder",onColumnResize:"column-resize",onDataProviderChanged:"data-provider-changed",onExpandedItemsChanged:"expanded-items-changed",onGridDragend:"grid-dragend",onGridDragstart:"grid-dragstart",onGridDrop:"grid-drop",onItemToggle:"item-toggle",onLoadingChanged:"loading-changed",onSelectedItemsChanged:"selected-items-changed",onSizeChanged:"size-changed"},r=p({elementClass:m,events:s,react:l,tagName:"vaadin-grid"});import{useModelRenderer as E}from"./renderers/useModelRenderer.js";import v from"./utils/useMergedRefs.js";import{jsxs as R}from"react/jsx-runtime";function u(e,n){let[o,a]=E(e.rowDetailsRenderer,{renderMode:"microtask"}),t=G(null),d=v(t,n);return g(()=>{t.current.recalculateColumnWidths=function(...i){queueMicrotask(()=>{Object.getPrototypeOf(this).recalculateColumnWidths.call(this,...i)})}},[]),R(r,{...e,ref:d,rowDetailsRenderer:a,children:[e.children,o]})}var D=c(u);export{D as Grid,m as GridElement};
//# sourceMappingURL=Grid.js.map
