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

45 lines (44 loc) 1.18 kB
/** * @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 i from "react"; import r from "prop-types"; import { DatePicker as o } from "@progress/kendo-react-dateinputs"; const t = class t extends i.Component { constructor() { super(...arguments), this.onChange = (e) => { this.props.onFilterChange.call(void 0, { nextFilter: { ...this.props.filter, value: e.value } }); }; } /** * @hidden */ render() { const e = this.props.filter; return /* @__PURE__ */ i.createElement( o, { value: e.value || null, onChange: this.onChange, ariaLabel: this.props.ariaLabel, tabIndex: -1 } ); } }; t.propTypes = { filter: r.object.isRequired, onFilterChange: r.func.isRequired, ariaLabel: r.string }; let a = t; export { a as DateFilter };