@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
42 lines (41 loc) • 1.7 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
*-------------------------------------------------------------------------------------------
*/
"use client";
import * as e from "react";
import { GridColumnMenuFilterCell as a } from "./GridColumnMenuFilterCell.mjs";
import { GridContext as C } from "../utils/GridContext.mjs";
import { ButtonGroup as f, Button as u } from "@progress/kendo-react-buttons";
const x = (d) => {
const { firstFilterProps: s, hideSecondFilter: g, secondFilterProps: p, logicValue: t, logicData: l, onLogicChange: i } = d, m = e.useContext(C), c = (t == null ? void 0 : t.operator) === "and", o = l.find((r) => r.operator === "and"), n = l.find((r) => r.operator === "or");
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(a, { ...s }), !g && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(
u,
{
type: "button",
value: "and",
size: m.mobileMode ? "large" : "medium",
togglable: !0,
selected: c,
onClick: i
},
o == null ? void 0 : o.text
), /* @__PURE__ */ e.createElement(
u,
{
type: "button",
value: "or",
size: m.mobileMode ? "large" : "medium",
togglable: !0,
selected: !c,
onClick: i
},
n == null ? void 0 : n.text
)), /* @__PURE__ */ e.createElement(a, { ...p })));
};
export {
x as GridColumnMenuFilterUI
};