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

37 lines (36 loc) 1.11 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 s } 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(s, { value: e.value || null, onChange: this.onChange, ariaLabel: this.props.ariaLabel }); } }; t.propTypes = { filter: r.object.isRequired, onFilterChange: r.func.isRequired, ariaLabel: r.string }; let o = t; export { o as DateFilter };