dhx-suite 9.1.0 → 9.1.2
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.css +1 -1
- package/codebase/suite.min.js +3 -3
- package/codebase/suite.min.js.map +1 -1
- package/codebase/types/ts-chart/sources/series/Bar.d.ts +1 -1
- package/codebase/types/ts-chart/sources/series/Line.d.ts +1 -1
- package/codebase/types/ts-chart/sources/series/ScaleSeria.d.ts +1 -0
- package/codebase/types/ts-chart/sources/series/Spline.d.ts +1 -1
- package/codebase/types/ts-common/core.d.ts +5 -1
- package/codebase/types/ts-common/dom.d.ts +1 -0
- package/codebase/types/ts-common/html.d.ts +4 -0
- package/codebase/types/ts-data/sources/helpers.d.ts +2 -1
- package/codebase/types/ts-data/sources/treecollection.d.ts +5 -1
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +6 -2
- package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
- package/codebase/types/ts-grid/sources/ui/editors/ComboboxEditor.d.ts +1 -0
- package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +1 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +23 -0
|
@@ -16,7 +16,7 @@ export default class Bar extends ScaleSeria {
|
|
|
16
16
|
class: string;
|
|
17
17
|
transform: string;
|
|
18
18
|
};
|
|
19
|
-
protected _getForm(points: PointData[],
|
|
19
|
+
protected _getForm(points: PointData[], _width: number, height: number, prev: PointData[]): object;
|
|
20
20
|
protected _getText(item: any): any;
|
|
21
21
|
protected _setDefaults(config: ISeriaConfig): void;
|
|
22
22
|
}
|
|
@@ -2,6 +2,6 @@ import { ISeriaConfig, PointData, SvgElement } from "../types";
|
|
|
2
2
|
import ScaleSeria from "./ScaleSeria";
|
|
3
3
|
export default class Line extends ScaleSeria {
|
|
4
4
|
paint(width: number, height: number): SvgElement;
|
|
5
|
-
protected _getForm(points: PointData[], config: any,
|
|
5
|
+
protected _getForm(points: PointData[], config: any, width: number, height: number): object;
|
|
6
6
|
protected _setDefaults(config: ISeriaConfig): void;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PointData } from "../types";
|
|
2
2
|
import Line from "./Line";
|
|
3
3
|
export default class Spline extends Line {
|
|
4
|
-
protected _getForm(points: PointData[], config: any,
|
|
4
|
+
protected _getForm(points: PointData[], config: any, width: number, height: number): object;
|
|
5
5
|
}
|
|
@@ -32,5 +32,9 @@ export interface IContainerConfig {
|
|
|
32
32
|
export declare const getStringWidth: (value: string, config?: IContainerConfig) => number;
|
|
33
33
|
export declare const rgbToHex: (color: string) => string;
|
|
34
34
|
export declare function getCloneObject(obj: any): any;
|
|
35
|
-
export declare function getTextLines(ctx
|
|
35
|
+
export declare function getTextLines({ ctx, text, maxWidth }: {
|
|
36
|
+
ctx: any;
|
|
37
|
+
text: any;
|
|
38
|
+
maxWidth: any;
|
|
39
|
+
}): string[];
|
|
36
40
|
export {};
|
|
@@ -21,3 +21,4 @@ export declare function resizer(handler: any): any;
|
|
|
21
21
|
export declare function resizeHandler(container: any, handler: any): any;
|
|
22
22
|
export declare function awaitRedraw(): Promise<void>;
|
|
23
23
|
export declare function setTheme(theme: TTheme, container: string | HTMLElement): void;
|
|
24
|
+
export declare function getViewHeight(view: VNode, width: number): number;
|
|
@@ -67,4 +67,8 @@ export declare function getLabelStyle(config: any): false | {
|
|
|
67
67
|
export declare function getPageInlineCss(): string;
|
|
68
68
|
export declare function getPageLinksCss(exportStyles?: string[]): string;
|
|
69
69
|
export declare function getElementFromPoint(e: MouseEvent | TouchEvent): Element | null;
|
|
70
|
+
export declare function getNodeOffset(node1: HTMLElement, node2: HTMLElement): {
|
|
71
|
+
left: number;
|
|
72
|
+
top: number;
|
|
73
|
+
};
|
|
70
74
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAnyObj } from "../../ts-common/types";
|
|
1
|
+
import { IAnyObj, Id } from "../../ts-common/types";
|
|
2
2
|
import { DataProxy } from "./dataproxy";
|
|
3
3
|
import { IFilterCallback, IFilterMode, IDataCollection, IDataItem, ITreeCollection, DataDriver, IDataDriver, IFilter } from "./types";
|
|
4
4
|
export declare function isEqualObj(a: any, b: any): boolean;
|
|
@@ -13,3 +13,4 @@ export declare function copyWithoutInner(obj: IAnyObj, forbidden?: IAnyObj): IAn
|
|
|
13
13
|
export declare function isTreeCollection(obj: IDataCollection<any> | ITreeCollection<any> | IDataItem[]): obj is ITreeCollection<any>;
|
|
14
14
|
export declare function hasJsonOrArrayStructure(str: any): boolean;
|
|
15
15
|
export declare function isOnlyPermanentFilters(filters: IFilter): boolean;
|
|
16
|
+
export declare function throwMoveWarning(id: Id, exists?: boolean): null;
|
|
@@ -2,12 +2,15 @@ import { IEventSystem } from "../../ts-common/events";
|
|
|
2
2
|
import { DataCollection } from "./datacollection";
|
|
3
3
|
import { DataCallback, DataEvents, IDataCollection, IDataItem, ITreeCollection, IFilterCallback, IFilterMode, IFilterComplexMode, ITreeFilterConfig, DataDriver, ISortMode, IDataDriver, IUpdateObject, ISortConfig } from "./types";
|
|
4
4
|
import { Id } from "../../ts-common/types";
|
|
5
|
+
export declare function addToOrder(store: any, obj: object, parent: Id, index: number): void;
|
|
5
6
|
export declare class TreeCollection<T extends IDataItem = IDataItem> extends DataCollection<T> implements ITreeCollection<T> {
|
|
6
7
|
protected _childs: {
|
|
7
8
|
[id: string]: T[];
|
|
8
9
|
};
|
|
9
10
|
protected _root: Id;
|
|
10
|
-
|
|
11
|
+
protected _initChilds: {
|
|
12
|
+
[id: string]: T[];
|
|
13
|
+
};
|
|
11
14
|
constructor(config?: any, events?: IEventSystem<DataEvents>);
|
|
12
15
|
add(newItem: IDataItem, index?: number, parent?: Id): Id;
|
|
13
16
|
add(newItem: IDataItem[], index?: number, parent?: Id): Id[];
|
|
@@ -42,6 +45,7 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
42
45
|
protected _setParent(item: IDataItem, parent: Id): void;
|
|
43
46
|
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
44
47
|
protected _move(id: Id, index: number, target?: ITreeCollection | IDataCollection, targetId?: Id, key?: number): Id;
|
|
48
|
+
protected _moveItem(id: any, targetId: any, index: any): void;
|
|
45
49
|
protected _reset(config: {
|
|
46
50
|
id?: Id;
|
|
47
51
|
grouping: any;
|
|
@@ -11,8 +11,12 @@ export declare function measureTextHeight({ text, width, lineHeight, font, htmlE
|
|
|
11
11
|
}): number;
|
|
12
12
|
export declare function countColumns(config: IGridConfig, columns: ICol[]): number;
|
|
13
13
|
export declare function calculateVisibleRange(viewPortSize: ISizes, scroll: IScrollState, config: IGridConfig, data: IRow[]): IRange;
|
|
14
|
-
export declare function getUnique(arr: any[], name: string, multiselection: boolean): any[];
|
|
15
|
-
export declare const getMaxRowHeight: (
|
|
14
|
+
export declare function getUnique(arr: any[], name: string, multiselection: boolean, editorType: ICol["editorType"]): any[];
|
|
15
|
+
export declare const getMaxRowHeight: ({ cols, row, config, }: {
|
|
16
|
+
row: IRow;
|
|
17
|
+
cols: ICol[];
|
|
18
|
+
config?: IContainerConfig;
|
|
19
|
+
}) => number;
|
|
16
20
|
export declare const getCalculatedRowHeight: (height: number, config?: {
|
|
17
21
|
rowHeight: number;
|
|
18
22
|
verticalOffset?: number;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Version 9.1.2 (March 17, 2025)
|
|
2
|
+
|
|
3
|
+
### Fixes
|
|
4
|
+
|
|
5
|
+
- Chart. The default CSS classes aren't applied to the series of the `splineArea` chart type
|
|
6
|
+
- Combobox. Incorrect calculation of the popup position on filtering options
|
|
7
|
+
- Grid. Impossibility to set the left border for the first cells
|
|
8
|
+
- Grid. Incorrect displaying of a row dragged by the frozen part
|
|
9
|
+
- Grid. The script error that occurred while hovering over a span in the "tree" mode
|
|
10
|
+
- TreeCollection. The `move` method doesn't move child elements of an item between collections
|
|
11
|
+
- TreeCollection. After moving elements in `_order` there are duplicates of moved elements
|
|
12
|
+
|
|
13
|
+
# Version 9.1.1. (February 24, 2025)
|
|
14
|
+
|
|
15
|
+
### Fixes
|
|
16
|
+
|
|
17
|
+
- Combobox. Adding a new option in the "multiselection" mode opens the popup list
|
|
18
|
+
- Form. The problem with updating the value of the `preMessage` property of the Textarea control
|
|
19
|
+
- Grid. After editing grouped data with the `adjust:true` option in the Grid configuration, the adjustable cell width is reset on ungrouping data
|
|
20
|
+
- Grid. The issue with using a sub-row when the `dhx.scrollViewConfig.enable` configuration option is set to *true*
|
|
21
|
+
- Grid. An error caused by the use of options containing commas in the "combobox" editor
|
|
22
|
+
- Grid. Incorrect calculation of the row `autoHeight`, if the length of a word in a cell exceeds the column width
|
|
23
|
+
|
|
1
24
|
# Version 9.1 (February 18, 2025)
|
|
2
25
|
|
|
3
26
|
### Breaking changes
|