UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

87 lines (86 loc) 2.9 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { LocalizationService, IntlService } from '@progress/kendo-react-intl'; import { GridFilterOperators } from './interfaces/GridFilterOperators.js'; import { GridFilterOperator } from './interfaces/GridFilterOperator.js'; import { CompositeFilterDescriptor, FilterDescriptor } from '@progress/kendo-data-query'; import * as React from 'react'; /** * @hidden */ export declare const filterLogicList: { text: string; operator: string; }[]; /** * The text of the filter operators displayed in the filter menu. */ export declare const operators: GridFilterOperators; /** * @hidden */ export declare const IsUnaryFilter: (operator: string) => boolean; /** * @hidden */ export declare const operatorMap: (iterable: Array<any>, service: LocalizationService) => { text: string; operator: any; }[]; /** * @hidden */ export declare const defaultBooleanOperator: string; /** * The value of the filter operators displayed in the boolean filter menu. */ export declare const booleanFilterValues: ({ text: string; operator: string; } | { text: string; operator: boolean; })[]; /** * @hidden */ export declare const defaultHideSecondFilter: { text: boolean; numeric: boolean; date: boolean; boolean: boolean; }; /** * Normalize data for calling onChange. */ export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any) => void; /** * @hidden */ export declare const getDefaultOperator: (filterOperators: GridFilterOperators | GridFilterOperator[], filterType?: string) => any; /** * @hidden */ export declare const getFilterType: (filterType: 'text' | 'numeric' | 'boolean' | 'date' | undefined) => "boolean" | "text" | "date" | "numeric"; /** * Normalize data for calling onChange. */ export declare const cellBoolDropdownChange: (event: any, onChange: Function) => void; /** * Normalize data for calling onChange. */ export declare const cellOperatorChange: (event: any, currentValue: any, onChange: Function) => void; /** * Parse date values in the filter descriptors. * If the value is a string, it will be parsed to a Date object using the provided */ export declare const parseFilterDates: (newFilter: CompositeFilterDescriptor | FilterDescriptor, intl?: IntlService) => void; /** * Combine two filter descriptors into one, merging filters with the same field. */ export declare const combineSmartFilters: (filter: CompositeFilterDescriptor, existingFilter?: CompositeFilterDescriptor) => CompositeFilterDescriptor | null;