dhx-suite 9.2.4 → 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/suite.min.js +3 -3
- package/codebase/suite.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/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +12 -0
|
@@ -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;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
- Grid. Improved performance of adding and removing data via the add() and remove() methods when the adjust configuration is enabled
|
|
11
|
+
- Grid. The issue where the combo filter with enabled `multiselection` displayed all options ignoring other active filters is fixed
|
|
12
|
+
|
|
1
13
|
# Version 9.2.4 (November 17, 2025)
|
|
2
14
|
|
|
3
15
|
### Fixes
|