1 |
|
2 |
|
3 |
|
4 | import { SerializedFilter } from "../interfaces/iFilter";
|
5 | import { Comparator, FilterConditionType, ScalarBaseFilter } from "./baseFilter";
|
6 | import { INumberFilterParams } from "./textFilter";
|
7 | export interface SerializedNumberFilter extends SerializedFilter {
|
8 | filter: number;
|
9 | filterTo: number;
|
10 | type: string;
|
11 | }
|
12 | export declare class NumberFilter extends ScalarBaseFilter<number, INumberFilterParams, SerializedNumberFilter> {
|
13 | private eNumberToPanel;
|
14 | private eNumberToConditionPanel;
|
15 | filterNumber: any;
|
16 | filterNumberTo: any;
|
17 | filterNumberCondition: any;
|
18 | filterNumberConditionTo: any;
|
19 | private eFilterToTextField;
|
20 | private eFilterToConditionText;
|
21 | private eFilterTextField;
|
22 | private eFilterTextConditionField;
|
23 | static LESS_THAN: string;
|
24 | modelFromFloatingFilter(from: string): SerializedNumberFilter;
|
25 | getApplicableFilterTypes(): string[];
|
26 | bodyTemplate(type: FilterConditionType): string;
|
27 | initialiseFilterBodyUi(type: FilterConditionType): void;
|
28 | private addFilterChangedEventListeners(type, filterElement, filterToElement);
|
29 | afterGuiAttached(): void;
|
30 | comparator(): Comparator<number>;
|
31 | private onTextFieldsChanged(type, filterElement, filterToElement);
|
32 | filterValues(type: FilterConditionType): number | number[];
|
33 | private asNumber(value);
|
34 | private stringToFloat(value);
|
35 | setFilter(filter: any, type: FilterConditionType): void;
|
36 | setFilterTo(filter: any, type: FilterConditionType): void;
|
37 | getFilter(type: FilterConditionType): any;
|
38 | serialize(type: FilterConditionType): SerializedNumberFilter;
|
39 | parse(model: SerializedNumberFilter, type: FilterConditionType): void;
|
40 | refreshFilterBodyUi(type: FilterConditionType): void;
|
41 | resetState(): void;
|
42 | setType(filterType: string, type: FilterConditionType): void;
|
43 | }
|