dhx-chart 8.3.13 → 8.4.0
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.css +1 -1
- package/codebase/chart.min.js +3 -3
- package/codebase/chart.min.js.map +1 -1
- package/codebase/types/ts-chart/sources/types.d.ts +1 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +5 -0
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +3 -2
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +5 -7
- package/codebase/types/ts-grid/sources/types.d.ts +16 -7
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +1 -1
- package/codebase/types/ts-grid/sources/ui/render.d.ts +3 -3
- package/codebase/types/ts-layout/sources/Cell.d.ts +2 -0
- package/codebase/types/ts-list/sources/List.d.ts +2 -1
- package/codebase/types/ts-list/sources/types.d.ts +2 -1
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +64 -54
|
@@ -78,6 +78,7 @@ export interface ISeriaConfig {
|
|
|
78
78
|
showText?: boolean;
|
|
79
79
|
showTextRotate?: number | string;
|
|
80
80
|
showTextTemplate?: (points: any) => string;
|
|
81
|
+
valueTemplate?: (value: number) => string;
|
|
81
82
|
tooltip?: boolean;
|
|
82
83
|
tooltipType?: TooltipType;
|
|
83
84
|
tooltipTemplate?: (points: any[]) => string;
|
|
@@ -24,6 +24,11 @@ export interface IComboboxConfig {
|
|
|
24
24
|
value?: Id | Id[];
|
|
25
25
|
newOptions?: boolean;
|
|
26
26
|
htmlEnable?: boolean;
|
|
27
|
+
eventHandlers?: {
|
|
28
|
+
[eventName: string]: {
|
|
29
|
+
[className: string]: (event: Event, id: Id) => void | boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
27
32
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
28
33
|
cellHeight?: number;
|
|
29
34
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ICell, ICol, IGrid, IRow } from "./../types";
|
|
1
|
+
import { ICell, ICol, IGrid, IRow, ISpan } from "./../types";
|
|
2
2
|
import { Id } from "../../../ts-common/types";
|
|
3
3
|
export declare function getWidth(columns: ICol[], colspan: number, index: number): number;
|
|
4
|
-
export declare function getHeight(
|
|
4
|
+
export declare function getHeight(rows: IRow[], span: ISpan): number;
|
|
5
5
|
export declare function getReducedColspan(columns: ICol[], colId: Id, colspan: number): number;
|
|
6
|
+
export declare function getReducedRowspan(initialRows: IRow[], currRows: IRow[], rowIndex: number, span: ISpan): number;
|
|
6
7
|
export declare function normalizeCell(cell: ICell, grid: IGrid): ICell;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICellCss, ICol, IFooter, IGridConfig, IHeader, IRow, ISpan } from "../types";
|
|
1
|
+
import { ICellCss, ICol, IFooter, IGridConfig, IGridTooltipConfig, IHeader, IRow, ISpan } from "../types";
|
|
2
|
+
import { ITooltipConfig } from "../../../ts-message";
|
|
2
3
|
export declare function transpose(arr: any[][], transform?: any): any[][];
|
|
3
4
|
export declare function getStyleByClass(cssClass: string, targetClass: string, def: ICellCss, container?: HTMLElement): ICellCss;
|
|
4
5
|
export declare function removeHTMLTags(str: string): string;
|
|
@@ -6,13 +7,10 @@ export declare function isCssSupport(property: string, value: string): boolean;
|
|
|
6
7
|
export declare function isRowEmpty(row: IRow): boolean;
|
|
7
8
|
export declare function isSortable(config: IGridConfig, col: ICol): boolean;
|
|
8
9
|
export declare function isAutoWidth(config: IGridConfig, col?: ICol): boolean;
|
|
9
|
-
export declare function showTooltip(
|
|
10
|
-
node: any;
|
|
11
|
-
value: any;
|
|
12
|
-
htmlEnable?: boolean;
|
|
13
|
-
}): void;
|
|
10
|
+
export declare function showTooltip(value: any, config: ITooltipConfig): void;
|
|
14
11
|
export declare function isContentTooltip(config: IGridConfig, col: ICol, cell: any, type: "footer" | "header"): boolean;
|
|
15
|
-
export declare function
|
|
12
|
+
export declare function getTooltipConfig(config: IGridConfig, col?: ICol, cell?: IHeader | IFooter | ISpan, type?: "footer" | "header"): IGridTooltipConfig;
|
|
13
|
+
export declare function isTooltip(config: IGridConfig, element: ICol | ISpan): boolean | IGridTooltipConfig;
|
|
16
14
|
export declare function isHtmlEnable(config: IGridConfig, col: ICol, content?: IHeader | IFooter): boolean;
|
|
17
15
|
export declare function getTotalWidth(columns: ICol[]): number;
|
|
18
16
|
export declare function getTotalHeight(rows: IRow[]): number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IEventSystem } from "../../ts-common/events";
|
|
2
2
|
import { IKeyManager } from "../../ts-common/KeyManager";
|
|
3
3
|
import { IAlign } from "../../ts-common/html";
|
|
4
|
+
import { Position } from "../../ts-message";
|
|
4
5
|
import { IDataCollection, IDragConfig, ICsvDriverConfig, IDataItem, IDragInfo, DataCollection } from "../../ts-data";
|
|
5
6
|
import { Exporter } from "./Exporter";
|
|
6
7
|
import { Combobox } from "../../ts-combobox";
|
|
@@ -31,9 +32,9 @@ export interface IGridConfig extends IDragConfig {
|
|
|
31
32
|
autoEmptyRow?: boolean;
|
|
32
33
|
resizable?: boolean;
|
|
33
34
|
htmlEnable?: boolean;
|
|
34
|
-
tooltip?: boolean;
|
|
35
|
-
headerTooltip?: boolean;
|
|
36
|
-
footerTooltip?: boolean;
|
|
35
|
+
tooltip?: boolean | IGridTooltipConfig;
|
|
36
|
+
headerTooltip?: boolean | IGridTooltipConfig;
|
|
37
|
+
footerTooltip?: boolean | IGridTooltipConfig;
|
|
37
38
|
rowHeight?: number;
|
|
38
39
|
headerRowHeight?: number;
|
|
39
40
|
footerRowHeight?: number;
|
|
@@ -82,6 +83,14 @@ export interface IGridConfig extends IDragConfig {
|
|
|
82
83
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
83
84
|
splitAt?: number;
|
|
84
85
|
}
|
|
86
|
+
export interface IGridTooltipConfig {
|
|
87
|
+
force?: boolean;
|
|
88
|
+
showDelay?: number;
|
|
89
|
+
hideDelay?: number;
|
|
90
|
+
margin?: number;
|
|
91
|
+
position?: Position;
|
|
92
|
+
css?: string;
|
|
93
|
+
}
|
|
85
94
|
export interface IScrollBarWidth {
|
|
86
95
|
x: number;
|
|
87
96
|
y: number;
|
|
@@ -244,7 +253,7 @@ export interface ICol {
|
|
|
244
253
|
adjust?: IAdjustBy;
|
|
245
254
|
autoWidth?: boolean;
|
|
246
255
|
align?: IAlign;
|
|
247
|
-
tooltip?: boolean;
|
|
256
|
+
tooltip?: boolean | IGridTooltipConfig;
|
|
248
257
|
tooltipTemplate?: (cellValue: any, row: IRow, col: ICol) => string;
|
|
249
258
|
gravity?: number;
|
|
250
259
|
$cellCss?: {
|
|
@@ -253,7 +262,7 @@ export interface ICol {
|
|
|
253
262
|
$uniqueData?: any[];
|
|
254
263
|
$activeFilterData?: any[];
|
|
255
264
|
$width?: number;
|
|
256
|
-
$
|
|
265
|
+
$fixedWidth?: boolean;
|
|
257
266
|
$customOptions?: any;
|
|
258
267
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
259
268
|
dateFormat?: string;
|
|
@@ -275,7 +284,7 @@ export interface IContent {
|
|
|
275
284
|
rowspan?: number;
|
|
276
285
|
css?: string;
|
|
277
286
|
align?: IAlign;
|
|
278
|
-
tooltip?: boolean;
|
|
287
|
+
tooltip?: boolean | IGridTooltipConfig;
|
|
279
288
|
htmlEnable?: boolean;
|
|
280
289
|
}
|
|
281
290
|
export interface IHeader extends IContent {
|
|
@@ -306,7 +315,7 @@ export interface ISpan {
|
|
|
306
315
|
colspan?: number;
|
|
307
316
|
text?: string | number;
|
|
308
317
|
css?: string;
|
|
309
|
-
tooltip?: boolean;
|
|
318
|
+
tooltip?: boolean | IGridTooltipConfig;
|
|
310
319
|
tooltipTemplate?: (spanValue: any, span: ISpan) => string;
|
|
311
320
|
$rowsVisibility?: number[];
|
|
312
321
|
$colsVisibility?: number[];
|
|
@@ -27,7 +27,7 @@ export declare function normalizeSpan(span: ISpan, config: IGridConfig, data: ID
|
|
|
27
27
|
colspan?: number;
|
|
28
28
|
text?: string | number;
|
|
29
29
|
css?: string;
|
|
30
|
-
tooltip?: boolean;
|
|
30
|
+
tooltip?: boolean | import("../types").IGridTooltipConfig;
|
|
31
31
|
tooltipTemplate?: (spanValue: any, span: ISpan) => string;
|
|
32
32
|
};
|
|
33
33
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth } from "../types";
|
|
1
|
+
import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth, ICol } from "../types";
|
|
2
2
|
export declare const BORDERS = 2;
|
|
3
3
|
export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig, customScroll?: boolean, sizes?: {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
}): IScrollBarWidth;
|
|
7
|
-
export declare function getCurrFixedCols(config: IGridConfig, split: Split.left | Split.right):
|
|
7
|
+
export declare function getCurrFixedCols(config: IGridConfig, split: Split.left | Split.right): ICol[];
|
|
8
8
|
export declare function getRenderConfig(obj: any, data: IRow[], wrapperSizes: any): IRendererConfig;
|
|
9
9
|
export declare function getElementSizes(element: HTMLElement | any): {
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
12
|
};
|
|
13
|
-
export declare function applyAutoWidth(config: IGridConfig, wrapperSizes: any,
|
|
13
|
+
export declare function applyAutoWidth(config: IGridConfig, wrapperSizes: any, scrollViewConfig?: boolean): void;
|
|
14
14
|
export declare function render(vm: any, obj: IGrid, htmlEvents: any, selection: any, uid: string): any;
|
|
15
15
|
export declare function proRender(vm: any, obj: IProGrid, htmlEvents: any, selection: any, uid: string): any;
|
|
@@ -16,6 +16,7 @@ export declare class Cell extends View implements ICell {
|
|
|
16
16
|
protected _resizerHandlers: any;
|
|
17
17
|
protected _progress: boolean;
|
|
18
18
|
protected _stopProgressDefault: boolean;
|
|
19
|
+
protected _theme: string;
|
|
19
20
|
private _isLastFlexCell;
|
|
20
21
|
private _afterWindowResized;
|
|
21
22
|
constructor(parent: string | HTMLElement | ILayout, config: ICellConfig);
|
|
@@ -38,6 +39,7 @@ export declare class Cell extends View implements ICell {
|
|
|
38
39
|
progressHide(): void;
|
|
39
40
|
isVisibleProgress(): boolean;
|
|
40
41
|
toVDOM(nodes?: any[]): any;
|
|
42
|
+
protected _saveTheme(): void;
|
|
41
43
|
protected _getProgressBar(): any;
|
|
42
44
|
protected _getCss(_content?: boolean): string;
|
|
43
45
|
protected _initHandlers(): void;
|
|
@@ -14,7 +14,7 @@ export declare class List extends View implements IList {
|
|
|
14
14
|
selection: ISelection;
|
|
15
15
|
keyManager: IKeyManager;
|
|
16
16
|
protected _handlers: IHandlers;
|
|
17
|
-
protected _focus: Id;
|
|
17
|
+
protected _focus: Id | undefined;
|
|
18
18
|
protected _edited: Id;
|
|
19
19
|
protected _events: IHandlers;
|
|
20
20
|
private _topOffset;
|
|
@@ -35,6 +35,7 @@ export declare class List extends View implements IList {
|
|
|
35
35
|
editEnd(value: any, id?: Id): void;
|
|
36
36
|
getFocusItem(): any;
|
|
37
37
|
setFocus(id: Id): void;
|
|
38
|
+
resetFocus(): void;
|
|
38
39
|
getFocus(): Id;
|
|
39
40
|
destructor(): void;
|
|
40
41
|
scrollTo(id: Id): void;
|
|
@@ -48,7 +48,7 @@ export interface IListEventHandlersMap {
|
|
|
48
48
|
[ListEvents.itemMouseOver]: (id: Id, e: Event) => void;
|
|
49
49
|
[ListEvents.doubleClick]: (id: Id, e: Event) => void;
|
|
50
50
|
[ListEvents.itemRightClick]: (id: Id, e: MouseEvent) => void;
|
|
51
|
-
[ListEvents.focusChange]: (focusIndex
|
|
51
|
+
[ListEvents.focusChange]: (focusIndex?: number, id?: Id) => void;
|
|
52
52
|
[ListEvents.beforeEditStart]: (id: Id) => void | boolean;
|
|
53
53
|
[ListEvents.afterEditStart]: (id: Id) => void;
|
|
54
54
|
[ListEvents.beforeEditEnd]: (value: string, id: Id) => void | boolean;
|
|
@@ -70,6 +70,7 @@ export interface IList<T extends IDataItem = any> {
|
|
|
70
70
|
editItem(id: Id): void;
|
|
71
71
|
getFocusItem(): T;
|
|
72
72
|
setFocus(id: Id): void;
|
|
73
|
+
resetFocus(): void;
|
|
73
74
|
getFocus(): Id;
|
|
74
75
|
scrollTo(id: Id): void;
|
|
75
76
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,57 +1,67 @@
|
|
|
1
|
-
Version 8.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
# Version 8.4 (July 16, 2024)
|
|
2
|
+
|
|
3
|
+
### New functionality
|
|
4
|
+
|
|
5
|
+
- The ability to specify a template for showing percent values for data items on the Pie, Pie3D and Donut charts
|
|
6
|
+
- The ability to add the header/footer for an exported PNG/PDF file
|
|
7
|
+
|
|
8
|
+
Version 8.3.14 (July 8, 2024)
|
|
9
|
+
----------------------------
|
|
10
|
+
|
|
11
|
+
Version 8.3.13 (June 24, 2024)
|
|
12
|
+
----------------------------
|
|
13
|
+
|
|
14
|
+
Version 8.3.12 (May 17, 2024)
|
|
15
|
+
----------------------------
|
|
16
|
+
|
|
17
|
+
Version 8.3.11 (May 8, 2024)
|
|
18
|
+
----------------------------
|
|
19
|
+
|
|
20
|
+
Version 8.3.10 (April 3, 2024)
|
|
21
|
+
----------------------------
|
|
22
|
+
|
|
23
|
+
Version 8.3.9 (March 18, 2024)
|
|
24
|
+
----------------------------
|
|
25
|
+
|
|
26
|
+
Version 8.3.8 (February 26, 2024)
|
|
27
|
+
----------------------------
|
|
28
|
+
|
|
29
|
+
Version 8.3.7 (February 13, 2024)
|
|
30
|
+
----------------------------
|
|
31
|
+
|
|
32
|
+
Version 8.3.6 (January 24, 2024)
|
|
33
|
+
----------------------------
|
|
34
|
+
|
|
35
|
+
Version 8.3.5 (January 11, 2024)
|
|
36
|
+
----------------------------
|
|
37
|
+
|
|
38
|
+
Version 8.3.4 (January 4, 2024)
|
|
39
|
+
----------------------------
|
|
40
|
+
|
|
41
|
+
Version 8.3.3 (December 7, 2023)
|
|
42
|
+
----------------------------
|
|
43
|
+
|
|
44
|
+
Version 8.3.2 (December 4, 2023)
|
|
45
|
+
----------------------------
|
|
46
|
+
|
|
47
|
+
Version 8.3.1 (November 14, 2023)
|
|
48
|
+
----------------------------
|
|
49
|
+
|
|
50
|
+
Version 8.3.0 (October 23, 2023)
|
|
51
|
+
----------------------------
|
|
52
|
+
|
|
53
|
+
Version 8.2.7 (October 19, 2023)
|
|
54
|
+
----------------------------
|
|
55
|
+
|
|
56
|
+
Version 8.2.6 (October 12, 2023)
|
|
57
|
+
----------------------------
|
|
58
|
+
|
|
59
|
+
Version 8.2.5 (October 12, 2023)
|
|
60
|
+
----------------------------
|
|
61
|
+
|
|
62
|
+
Version 8.2.4 (October 4, 2023)
|
|
63
|
+
----------------------------
|
|
64
|
+
|
|
55
65
|
# Version 8.2.3 (September 26, 2023)
|
|
56
66
|
|
|
57
67
|
### Fixes
|