@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.65 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 }) => /* @__PURE__ */ e.createElement(s, null, Array.from({ length: t }, (l, r) => /* @__PURE__ */ e.createElement("col", { key: `group-col-${r}`, className: "k-group-col" })), /* @__PURE__ */ e.createElement("col", null));
u.displayName = "KendoReactStackedModeColGroup";
const y = ({
detailRowId: t,
className: l,
isHidden: r,
detailRowHeight: a,
ariaRowIndex: c,
groupLevelCount: o,
dataItem: n,
dataIndex: d,
detail: m,
id: i,
DetailCell: p
}) => /* @__PURE__ */ e.createElement(
"tr",
{
key: t,
className: l,
style: {
visibility: r ? "hidden" : "",
height: a
},
role: "row",
"aria-rowindex": c
},
Array.from({ length: o }, (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: n,
dataIndex: d,
colSpan: 1,
ariaColIndex: 1 + o,
detail: m,
id: i
}
)
);
y.displayName = "KendoReactStackedModeDetailRow";
export {
u as StackedModeColGroup,
y as StackedModeDetailRow
};