dhx-chart 9.2.3 → 9.2.5
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.
- package/codebase/chart.min.js +3 -3
- package/codebase/chart.min.js.map +1 -1
- package/codebase/types/ts-data/sources/datacollection.d.ts +7 -2
- package/codebase/types/ts-data/sources/treecollection.d.ts +13 -5
- package/codebase/types/ts-data/sources/types.d.ts +5 -5
- package/codebase/types/ts-grid/sources/Grid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/types.d.ts +4 -1
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +3 -2
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +25 -12
|
@@ -75,8 +75,13 @@ export declare class DataCollection<T extends IDataItem = IDataItem> implements
|
|
|
75
75
|
getMetaMap(obj: T): any;
|
|
76
76
|
setRange(from: number, to: number): void;
|
|
77
77
|
getRawData(from: number, to: number, order?: T[], mode?: number): T[];
|
|
78
|
-
protected _add(newItem
|
|
79
|
-
|
|
78
|
+
protected _add({ newItem, index, order, batch, }: {
|
|
79
|
+
newItem: IDataItem;
|
|
80
|
+
batch: IDataItem[];
|
|
81
|
+
order?: number;
|
|
82
|
+
index?: number;
|
|
83
|
+
}): Id;
|
|
84
|
+
protected _remove(id: Id, batch: Id[], index?: number): void;
|
|
80
85
|
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
81
86
|
protected _move(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number, newId?: Id): Id;
|
|
82
87
|
protected _addCore(obj: IDataItem, index?: number): Id;
|
|
@@ -4,11 +4,11 @@ import { DataCallback, DataEvents, IDataCollection, IDataItem, ITreeCollection,
|
|
|
4
4
|
import { Id } from "../../ts-common/types";
|
|
5
5
|
export declare function addToOrder(store: any, obj: object, parent: Id, index: number): void;
|
|
6
6
|
export declare class TreeCollection<T extends IDataItem = IDataItem> extends DataCollection<T> implements ITreeCollection<T> {
|
|
7
|
-
protected
|
|
7
|
+
protected _children: {
|
|
8
8
|
[id: string]: T[];
|
|
9
9
|
};
|
|
10
10
|
protected _root: Id;
|
|
11
|
-
protected
|
|
11
|
+
protected _initChildren: {
|
|
12
12
|
[id: string]: T[];
|
|
13
13
|
};
|
|
14
14
|
constructor(config?: any, events?: IEventSystem<DataEvents>);
|
|
@@ -41,7 +41,13 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
41
41
|
map(callback: DataCallback<T>, parent?: Id, direct?: boolean): any[];
|
|
42
42
|
getRawData(from: number, to: number, order?: T[], mode?: number, parent?: Id): T[];
|
|
43
43
|
protected flatten(input: T[]): T[];
|
|
44
|
-
protected _add(newItem
|
|
44
|
+
protected _add({ newItem, index, parent, order, batch, }: {
|
|
45
|
+
newItem: IDataItem;
|
|
46
|
+
batch: IDataItem[];
|
|
47
|
+
index: number;
|
|
48
|
+
parent: Id;
|
|
49
|
+
order?: number;
|
|
50
|
+
}): Id;
|
|
45
51
|
protected _setParent(item: IDataItem, parent: Id): void;
|
|
46
52
|
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
47
53
|
protected _move(id: Id, index: number, target?: ITreeCollection | IDataCollection, targetId?: Id, key?: number): Id;
|
|
@@ -50,11 +56,13 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
50
56
|
id?: Id;
|
|
51
57
|
grouping: any;
|
|
52
58
|
}): void;
|
|
53
|
-
protected _removeCore(id:
|
|
59
|
+
protected _removeCore(id: Id): void;
|
|
60
|
+
private _removeFromParentList;
|
|
61
|
+
private _removeChildren;
|
|
62
|
+
private _removeFromOrders;
|
|
54
63
|
protected _addToOrder(_order: any, obj: any, index: number): void;
|
|
55
64
|
protected _parse_data(data: any, parent?: Id): void;
|
|
56
65
|
protected _parseItem(item: any): void;
|
|
57
|
-
private _fastDeleteChilds;
|
|
58
66
|
private _recursiveFilter;
|
|
59
67
|
private _serialize;
|
|
60
68
|
private _applyFilter;
|
|
@@ -262,12 +262,12 @@ export declare enum DataEvents {
|
|
|
262
262
|
}
|
|
263
263
|
export interface IDataEventsHandlersMap {
|
|
264
264
|
[key: string]: (...args: any[]) => any;
|
|
265
|
-
[DataEvents.change]: (id?: Id, status?: Statuses, updatedItem?:
|
|
265
|
+
[DataEvents.change]: (id?: Id, status?: Statuses, updatedItem?: IDataItem) => void;
|
|
266
266
|
[DataEvents.filter]: (filter?: IFilter) => void;
|
|
267
|
-
[DataEvents.
|
|
268
|
-
[DataEvents.
|
|
269
|
-
[DataEvents.
|
|
270
|
-
[DataEvents.
|
|
267
|
+
[DataEvents.beforeAdd]: (newItem: IDataItem, batch: IDataItem[], index: number) => boolean | void;
|
|
268
|
+
[DataEvents.afterAdd]: (newItem: IDataItem, batch: IDataItem[], index: number) => void;
|
|
269
|
+
[DataEvents.beforeRemove]: (removedItem: IDataItem, batch: IDataItem[], index: number) => boolean | void;
|
|
270
|
+
[DataEvents.afterRemove]: (removedItem: IDataItem, batch: IDataItem[], index: number) => void;
|
|
271
271
|
[DataEvents.removeAll]: () => void;
|
|
272
272
|
[DataEvents.dataRequest]: (from: number, to: number) => void;
|
|
273
273
|
[DataEvents.load]: () => void;
|
|
@@ -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
package/whatsnew.txt
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
Version 9.2.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
# Version 9.2.5 (November 28, 2025)
|
|
2
|
+
|
|
3
|
+
### Updates
|
|
4
|
+
|
|
5
|
+
- DataCollection. The `beforeAdd`, `afterAdd`, `beforeRemove`, and `afterRemove` events are updated to include the `batch` and `index` parameters for handling batch operations
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- TreeCollection. The issue where the `items` property of a parent object returned by the `getItem()` and `find()` methods included a removed child item is fixed
|
|
10
|
+
|
|
11
|
+
Version 9.2.4 (November 17, 2025)
|
|
12
|
+
----------------------------
|
|
13
|
+
|
|
14
|
+
Version 9.2.3 (October 21, 2025)
|
|
15
|
+
----------------------------
|
|
16
|
+
|
|
17
|
+
Version 9.2.2 (October 1, 2025)
|
|
18
|
+
----------------------------
|
|
19
|
+
|
|
20
|
+
Version 9.2.1 (September 1, 2025)
|
|
21
|
+
----------------------------
|
|
22
|
+
|
|
23
|
+
Version 9.2.0 (July 15, 2025)
|
|
24
|
+
----------------------------
|
|
25
|
+
|
|
13
26
|
# Version 9.1.6 (June 23, 2025)
|
|
14
27
|
|
|
15
28
|
### Fixes
|