@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
55 lines (54 loc) • 1.68 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use client";
import * as e from "react";
import { GridColGroup as s } from "../components/colGroup/GridColGroup.mjs";
const u = ({ groupLevelCount: t, colGroupRef: r }) => /* @__PURE__ */ e.createElement(s, { colGroupRef: r }, Array.from({ length: t }, (a, o) => /* @__PURE__ */ e.createElement("col", { key: `group-col-${o}`, className: "k-group-col" })), /* @__PURE__ */ e.createElement("col", null));
u.displayName = "KendoReactStackedModeColGroup";
const y = ({
detailRowId: t,
className: r,
isHidden: a,
detailRowHeight: o,
ariaRowIndex: c,
groupLevelCount: l,
dataItem: d,
dataIndex: n,
detail: m,
id: i,
DetailCell: p
}) => /* @__PURE__ */ e.createElement(
"tr",
{
key: t,
className: r,
style: {
visibility: a ? "hidden" : "",
height: o
},
role: "row",
"aria-rowindex": c
},
Array.from({ length: l }, (g, k) => /* @__PURE__ */ e.createElement("td", { key: `group-cell-${t}-${k}`, className: "k-table-group-td k-group-cell k-table-td" })),
/* @__PURE__ */ e.createElement(
p,
{
dataItem: d,
dataIndex: n,
colSpan: 1,
ariaColIndex: 1 + l,
detail: m,
id: i
}
)
);
y.displayName = "KendoReactStackedModeDetailRow";
export {
u as StackedModeColGroup,
y as StackedModeDetailRow
};