UNPKG

@progress/kendo-react-pivotgrid

Version:

React PivotGrid (also called Pivot Table) can be data-bound to an OLAP service and customized extensively. KendoReact PivotGrid package

36 lines (35 loc) 1.5 kB
/** * @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 { useCustomComponent as l, classNames as f, useMouse as d, IconWrap as g } from "@progress/kendo-react-common"; import { useLocalization as I } from "@progress/kendo-react-intl"; import { gearIcon as v } from "@progress/kendo-svg-icons"; import { configuratorButtonLabel as a, messages as p } from "../messages/index.mjs"; const C = e.forwardRef((t, r) => { const o = e.useRef(null), n = e.useRef(null), c = I(); e.useImperativeHandle(o, () => ({ props: t, element: n.current })), e.useImperativeHandle( r, () => o.current ); const [s, i] = l( t.icon || N.icon ), m = e.useMemo( () => f("k-pivotgrid-configurator-button", t.className), [t.className] ), u = d( t, o ); return /* @__PURE__ */ e.createElement("div", { ref: n, id: t.id, className: m, tabIndex: t.tabIndex, ...u }, /* @__PURE__ */ e.createElement("span", null, c.toLanguageString(a, p[a]), /* @__PURE__ */ e.createElement(s, { name: "gear", icon: v, ...i }))); }), N = { icon: g }; C.displayName = "KendoReactPivotGridConfiguratorButton"; export { C as PivotGridConfiguratorButton };