UNPKG

@progress/kendo-react-data-tools

Version:

Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package

27 lines (26 loc) 1.15 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 { ClipboardActionType as t } from "./common.mjs"; class n { constructor(r) { this.copyHandler = (e) => { this.clipboardEvent(t.copy, e); }, this.cutHandler = (e) => { this.clipboardEvent(t.cut, e); }, this.pasteHandler = (e) => { this.clipboardEvent(t.paste, e); }, this.addEventListeners = (e) => { e && (e.addEventListener(t.copy, this.copyHandler), e.addEventListener(t.cut, this.cutHandler), e.addEventListener(t.paste, this.pasteHandler)); }, this.removeEventListeners = (e) => { e && (e.removeEventListener(t.copy, this.copyHandler), e.removeEventListener(t.cut, this.cutHandler), e.removeEventListener(t.paste, this.pasteHandler)); }, this.clipboardEvent = r; } } export { n as ClipboardService };