dhx-chart 9.2.3 → 9.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -446,7 +446,7 @@ export interface IContent {
|
|
|
446
446
|
}
|
|
447
447
|
export interface IHeader extends IContent {
|
|
448
448
|
content?: TContentFilter;
|
|
449
|
-
filterConfig?: IComboFilterConfig;
|
|
449
|
+
filterConfig?: IComboFilterConfig | IInputFilterConfig;
|
|
450
450
|
customFilter?: (item: any, input: string) => boolean;
|
|
451
451
|
headerSort?: boolean;
|
|
452
452
|
sortAs?: SortFunction;
|
|
@@ -605,6 +605,9 @@ export interface IComboFilterConfig {
|
|
|
605
605
|
virtual?: boolean;
|
|
606
606
|
multiselection?: boolean;
|
|
607
607
|
}
|
|
608
|
+
export interface IInputFilterConfig {
|
|
609
|
+
placeholder?: string;
|
|
610
|
+
}
|
|
608
611
|
export interface IComboFilterConfig {
|
|
609
612
|
data?: DataCollection<any> | any[];
|
|
610
613
|
readonly?: boolean;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { VNode } from "../../../../ts-common/dom";
|
|
2
2
|
import { IEventSystem } from "../../../../ts-common/events";
|
|
3
3
|
import { Id } from "../../../../ts-common/types";
|
|
4
|
-
import { IBaseHandlersMap, IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig } from "../../types";
|
|
4
|
+
import { IBaseHandlersMap, IHeaderFilter, HeaderFilterEvent, ICol, IRendererConfig, IInputFilterConfig } from "../../types";
|
|
5
5
|
export declare class InputFilter implements IHeaderFilter {
|
|
6
6
|
column: ICol;
|
|
7
7
|
config: IRendererConfig;
|
|
8
8
|
value: string;
|
|
9
9
|
id: Id;
|
|
10
10
|
events: IEventSystem<HeaderFilterEvent>;
|
|
11
|
+
filterConfig: IInputFilterConfig;
|
|
11
12
|
protected _handlers: IBaseHandlersMap;
|
|
12
13
|
protected _inputDelay: any;
|
|
13
14
|
private _isFocused;
|
|
14
|
-
constructor(column: any, config: any, id: any, value: any);
|
|
15
|
+
constructor(column: any, config: any, id: any, value: any, conf: any);
|
|
15
16
|
toHTML(): VNode;
|
|
16
17
|
getFilter(): any;
|
|
17
18
|
setValue(value: string, silent?: boolean): void;
|
package/package.json
CHANGED
package/readme.txt
CHANGED