@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
31 lines (30 loc) • 1.02 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
*-------------------------------------------------------------------------------------------
*/
import * as e from "react";
import { filterBy as m } from "@progress/kendo-data-query";
import { ComboBox as f } from "@progress/kendo-react-dropdowns";
const x = (r) => {
const { onChange: a, data: o, validationMessage: C, visited: h, touched: u, modified: b, ...n } = r, [i, l] = e.useState(o), s = e.useCallback((t) => a(t), [a]), c = e.useCallback((t) => {
const d = m(o || [], t.filter);
l(d);
}, []);
return /* @__PURE__ */ e.createElement(
f,
{
style: { width: "100%" },
data: i,
filterable: !0,
onFilterChange: c,
onChange: s,
...n
}
);
};
export {
x as FilterableComboBox
};