@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
33 lines (32 loc) • 1.3 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as e from "react";
import { getClientCellProps as m, isClientReference as C } from "../../utils/index.mjs";
import { GridEditCellEditor as p } from "./GridEditCellEditor.mjs";
import { GridEditCellServerContainer as i } from "./GridEditCellServerContainer.mjs";
import { getEditCellTdProps as d, getCustomCell as E } from "./utils.mjs";
const g = (s) => {
const { cellProps: l } = s, { tdProps: t } = d(l), r = m(l), n = /* @__PURE__ */ e.createElement(p, { cellProps: r }), o = E(l);
if (o) {
const c = C(o);
return /* @__PURE__ */ e.createElement(
i,
{
cellProps: r,
tdProps: t,
isCustom: !0,
isClient: c
},
/* @__PURE__ */ e.createElement(o, { ...r, tdProps: t }, n)
);
}
return /* @__PURE__ */ e.createElement(i, { cellProps: r, tdProps: t }, /* @__PURE__ */ e.createElement("td", { ...t }, n));
};
export {
g as GridEditCellServer
};