dhx-chart 8.0.0 → 8.0.1
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/types/ts-combobox/sources/Combobox.d.ts +2 -0
- package/codebase/types/ts-data/sources/types.d.ts +2 -1
- package/codebase/types/ts-grid/sources/Selection.d.ts +20 -22
- package/codebase/types/ts-grid/sources/types.d.ts +6 -4
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +8 -8
- package/codebase/types/ts-grid/sources/ui/render.d.ts +1 -1
- package/codebase/types/ts-list/sources/types.d.ts +2 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +50 -43
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNode } from "../../ts-common/dom";
|
|
1
2
|
import { IEventSystem } from "../../ts-common/events";
|
|
2
3
|
import { View } from "../../ts-common/view";
|
|
3
4
|
import { DataCollection, DataEvents, IDataEventsHandlersMap } from "../../ts-data";
|
|
@@ -6,6 +7,7 @@ import { List } from "../../ts-list";
|
|
|
6
7
|
import { Popup } from "../../ts-popup";
|
|
7
8
|
import { Id, IHandlers } from "../../ts-common/types";
|
|
8
9
|
import { ComboboxEvents, ICombobox, IComboboxConfig, IComboboxEventHandlersMap, State } from "./types";
|
|
10
|
+
export declare const $template: VNode;
|
|
9
11
|
export declare class Combobox extends View implements ICombobox {
|
|
10
12
|
data: DataCollection;
|
|
11
13
|
config: IComboboxConfig;
|
|
@@ -94,7 +94,7 @@ export interface IDataCollection<T extends IDataItem = IDataItem> {
|
|
|
94
94
|
forEach(callback: DataCallback<T>): void;
|
|
95
95
|
save(url: IDataProxy | string): void;
|
|
96
96
|
isSaved(): boolean;
|
|
97
|
-
getRawData(from: number, to: number, order?: T[], mode?: number): T[];
|
|
97
|
+
getRawData(from: number, to: number, order?: T[] | null, mode?: number): T[];
|
|
98
98
|
}
|
|
99
99
|
export interface IDataChangeStack {
|
|
100
100
|
order: IDataChange[];
|
|
@@ -249,6 +249,7 @@ export interface IDragInfo {
|
|
|
249
249
|
source: Id[];
|
|
250
250
|
target: Id;
|
|
251
251
|
dropPosition?: DropPosition;
|
|
252
|
+
dragItem?: "row" | "column";
|
|
252
253
|
}
|
|
253
254
|
export declare type DragMode = "target" | "both" | "source";
|
|
254
255
|
export declare type DropBehaviour = "child" | "sibling" | "complex";
|
|
@@ -1,33 +1,31 @@
|
|
|
1
|
+
import { VNode } from "../../ts-common/dom";
|
|
1
2
|
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
-
import { ICell, IGrid, ISelection, IRow, ICol,
|
|
3
|
+
import { ICell, IGrid, ISelection, IRow, ICol, GridSelectionEvents, IGridSelectionEventsHandlersMap, ISelectionConfig } from "./types";
|
|
3
4
|
import { Id } from "../../ts-common/types";
|
|
4
5
|
export declare class Selection implements ISelection {
|
|
5
6
|
events: IEventSystem<GridSelectionEvents, IGridSelectionEventsHandlersMap>;
|
|
6
7
|
config: ISelectionConfig;
|
|
7
|
-
|
|
8
|
+
private _grid;
|
|
8
9
|
private _gridId;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected _multiselection: boolean;
|
|
10
|
+
private _selectedCell;
|
|
11
|
+
private _selectedCells;
|
|
12
|
+
private _type;
|
|
13
|
+
private _multiselection;
|
|
14
14
|
constructor(grid: IGrid, config?: ISelectionConfig, events?: IEventSystem<any>, gridId?: Id);
|
|
15
|
-
setCell(row?:
|
|
16
|
-
|
|
15
|
+
setCell(row?: IRow | Id, col?: ICol | Id, ctrlUp?: boolean, shiftUp?: boolean): void;
|
|
16
|
+
removeCell(rowId?: Id, colId?: Id): void;
|
|
17
|
+
getCell(): ICell | void;
|
|
17
18
|
getCells(): ICell[];
|
|
18
|
-
toHTML(): any;
|
|
19
19
|
disable(): void;
|
|
20
20
|
enable(): void;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
y: number;
|
|
32
|
-
};
|
|
21
|
+
toHTML(): VNode | VNode[];
|
|
22
|
+
private _setCell;
|
|
23
|
+
private _removeCell;
|
|
24
|
+
private _removeCells;
|
|
25
|
+
private _init;
|
|
26
|
+
private _toHTML;
|
|
27
|
+
private _isUnselected;
|
|
28
|
+
private _findIndex;
|
|
29
|
+
private _setBrowserFocus;
|
|
30
|
+
private _getReverseScrollState;
|
|
33
31
|
}
|
|
@@ -7,6 +7,7 @@ import { Combobox } from "../../ts-combobox";
|
|
|
7
7
|
import { IHandlers, Id } from "../../ts-common/types";
|
|
8
8
|
import { ScrollView } from "../../ts-common/ScrollView";
|
|
9
9
|
import { ICalendarConfig } from "../../ts-calendar";
|
|
10
|
+
import { VNode } from "../../ts-common/dom";
|
|
10
11
|
export interface IGridConfig extends IDragConfig {
|
|
11
12
|
columns?: ICol[];
|
|
12
13
|
spans?: ISpan[];
|
|
@@ -74,6 +75,8 @@ export interface IGridConfig extends IDragConfig {
|
|
|
74
75
|
export interface IScrollBarWidth {
|
|
75
76
|
x: number;
|
|
76
77
|
y: number;
|
|
78
|
+
xState: boolean;
|
|
79
|
+
yState: boolean;
|
|
77
80
|
}
|
|
78
81
|
interface ICellObj {
|
|
79
82
|
col: ICol;
|
|
@@ -486,7 +489,6 @@ export interface ISizes {
|
|
|
486
489
|
export interface ICell {
|
|
487
490
|
row: IRow;
|
|
488
491
|
column: ICol;
|
|
489
|
-
$preventedUnselect?: boolean;
|
|
490
492
|
}
|
|
491
493
|
export interface IRow {
|
|
492
494
|
id?: Id;
|
|
@@ -508,13 +510,13 @@ export interface ISelectionConfig {
|
|
|
508
510
|
}
|
|
509
511
|
export interface ISelection {
|
|
510
512
|
config?: ISelectionConfig;
|
|
511
|
-
setCell(rowId?: Id, colId?: Id, ctrlUp?: boolean, shiftUp?: boolean): void;
|
|
512
|
-
getCell(): ICell;
|
|
513
|
+
setCell(rowId?: IRow | Id, colId?: ICol | Id, ctrlUp?: boolean, shiftUp?: boolean): void;
|
|
514
|
+
getCell(): ICell | void;
|
|
513
515
|
getCells(): ICell[];
|
|
514
516
|
removeCell(rowId?: Id, colId?: Id): void;
|
|
515
517
|
disable(): void;
|
|
516
518
|
enable(): void;
|
|
517
|
-
toHTML():
|
|
519
|
+
toHTML(): VNode | VNode[];
|
|
518
520
|
}
|
|
519
521
|
export declare enum GridSelectionEvents {
|
|
520
522
|
beforeUnSelect = "beforeUnSelect",
|
|
@@ -3,14 +3,14 @@ declare type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | Gri
|
|
|
3
3
|
declare type touchEvents = GridSystemEvents.cellTouchEnd | GridSystemEvents.cellTouchMove;
|
|
4
4
|
declare function handleMouse(rowStart: number, colStart: number, conf: IRendererConfig, type: mouseEvents & touchEvents, e: any): void;
|
|
5
5
|
export declare function getHandlers(row: number, column: number, conf: IRendererConfig): {
|
|
6
|
-
onclick: (number |
|
|
7
|
-
onmouseover: (number |
|
|
8
|
-
onmousedown: (number |
|
|
9
|
-
ondblclick: (number |
|
|
10
|
-
oncontextmenu: (number |
|
|
11
|
-
ontouchstart: (number |
|
|
12
|
-
ontouchmove: (number |
|
|
13
|
-
ontouchend: (number |
|
|
6
|
+
onclick: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
7
|
+
onmouseover: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
8
|
+
onmousedown: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
9
|
+
ondblclick: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
10
|
+
oncontextmenu: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
11
|
+
ontouchstart: (number | IRendererConfig | GridEvents | typeof handleMouse)[];
|
|
12
|
+
ontouchmove: (number | IRendererConfig | GridSystemEvents | typeof handleMouse)[];
|
|
13
|
+
ontouchend: (number | IRendererConfig | GridSystemEvents | typeof handleMouse)[];
|
|
14
14
|
};
|
|
15
15
|
export declare function getTreeCell(content: any, row: any, col: ICol, conf: IRendererConfig): any;
|
|
16
16
|
export declare function getCells(conf: IRendererConfig): any[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, Split, IScrollBarWidth } from "../types";
|
|
2
2
|
export declare const BORDERS = 2;
|
|
3
|
-
export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig): IScrollBarWidth;
|
|
3
|
+
export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig, customScroll?: boolean): IScrollBarWidth;
|
|
4
4
|
export declare function getRenderConfig(obj: any, data: IRow[], wrapperSizes: any): IRendererConfig;
|
|
5
5
|
export declare function getEvents(config: IRendererConfig, mode?: Split): {};
|
|
6
6
|
export declare function render(vm: any, obj: IGrid, htmlEvents: any, selection: any, uid: string): any;
|
|
@@ -3,6 +3,7 @@ import { IEventSystem } from "../../ts-common/events";
|
|
|
3
3
|
import { IHandlers, SelectionEvents, ISelectionEventsHandlersMap, Id } from "../../ts-common/types";
|
|
4
4
|
import { IKeyManager } from "../../ts-common/KeyManager";
|
|
5
5
|
import { ScrollView } from "../../ts-common/ScrollView";
|
|
6
|
+
import { VNode } from "../../ts-common/dom";
|
|
6
7
|
export declare type MultiselectionMode = "click" | "ctrlClick";
|
|
7
8
|
export interface IListConfig extends IDragConfig {
|
|
8
9
|
template?: (obj: IDataItem) => string;
|
|
@@ -22,6 +23,7 @@ export interface IListConfig extends IDragConfig {
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
htmlEnable?: boolean;
|
|
26
|
+
$template?: (obj: IDataItem) => VNode;
|
|
25
27
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
26
28
|
editing?: boolean;
|
|
27
29
|
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,48 +1,55 @@
|
|
|
1
|
-
Version 8.0.
|
|
2
|
-
----------------------------
|
|
3
|
-
|
|
4
|
-
Version 7.3.14 (January 17, 2023)
|
|
5
|
-
----------------------------
|
|
6
|
-
|
|
7
|
-
Version 7.3.13 (December 14, 2022)
|
|
8
|
-
----------------------------
|
|
9
|
-
|
|
10
|
-
Version 7.3.12 (November 17, 2022)
|
|
11
|
-
----------------------------
|
|
12
|
-
|
|
13
|
-
Version 7.3.11 (November 3, 2022)
|
|
14
|
-
----------------------------
|
|
15
|
-
|
|
16
|
-
Version 7.3.10 (October 18, 2022)
|
|
17
|
-
----------------------------
|
|
18
|
-
|
|
19
|
-
Version 7.3.9 (September 26, 2022)
|
|
20
|
-
----------------------------
|
|
21
|
-
|
|
22
|
-
Version 7.3.8 (September 19, 2022)
|
|
23
|
-
----------------------------
|
|
24
|
-
|
|
25
|
-
Version 7.3.7 (September 5, 2022)
|
|
26
|
-
----------------------------
|
|
27
|
-
|
|
28
|
-
Version 7.3.6 (August 8, 2022)
|
|
29
|
-
----------------------------
|
|
30
|
-
|
|
31
|
-
Version 7.3.5 (July 7, 2022)
|
|
32
|
-
----------------------------
|
|
33
|
-
|
|
34
|
-
Version 7.3.4 (June 7, 2022)
|
|
35
|
-
----------------------------
|
|
36
|
-
|
|
37
|
-
Version 7.3.3 (April 25, 2022)
|
|
38
|
-
----------------------------
|
|
39
|
-
|
|
40
|
-
Version 7.3.2 (April 4, 2022)
|
|
41
|
-
----------------------------
|
|
42
|
-
|
|
43
|
-
Version 7.3.1 (March 17, 2022)
|
|
1
|
+
Version 8.0.1 (March 13, 2023)
|
|
44
2
|
----------------------------
|
|
45
3
|
|
|
4
|
+
Version 8.0.0 (February 24, 2023)
|
|
5
|
+
|
|
6
|
+
### New functionality
|
|
7
|
+
|
|
8
|
+
- New Calendar heatmap chart (Pro version)
|
|
9
|
+
- The ability to export the Chart data to PDF and PNG
|
|
10
|
+
|
|
11
|
+
Version 7.3.14 (January 17, 2023)
|
|
12
|
+
----------------------------
|
|
13
|
+
|
|
14
|
+
Version 7.3.13 (December 14, 2022)
|
|
15
|
+
----------------------------
|
|
16
|
+
|
|
17
|
+
Version 7.3.12 (November 17, 2022)
|
|
18
|
+
----------------------------
|
|
19
|
+
|
|
20
|
+
Version 7.3.11 (November 3, 2022)
|
|
21
|
+
----------------------------
|
|
22
|
+
|
|
23
|
+
Version 7.3.10 (October 18, 2022)
|
|
24
|
+
----------------------------
|
|
25
|
+
|
|
26
|
+
Version 7.3.9 (September 26, 2022)
|
|
27
|
+
----------------------------
|
|
28
|
+
|
|
29
|
+
Version 7.3.8 (September 19, 2022)
|
|
30
|
+
----------------------------
|
|
31
|
+
|
|
32
|
+
Version 7.3.7 (September 5, 2022)
|
|
33
|
+
----------------------------
|
|
34
|
+
|
|
35
|
+
Version 7.3.6 (August 8, 2022)
|
|
36
|
+
----------------------------
|
|
37
|
+
|
|
38
|
+
Version 7.3.5 (July 7, 2022)
|
|
39
|
+
----------------------------
|
|
40
|
+
|
|
41
|
+
Version 7.3.4 (June 7, 2022)
|
|
42
|
+
----------------------------
|
|
43
|
+
|
|
44
|
+
Version 7.3.3 (April 25, 2022)
|
|
45
|
+
----------------------------
|
|
46
|
+
|
|
47
|
+
Version 7.3.2 (April 4, 2022)
|
|
48
|
+
----------------------------
|
|
49
|
+
|
|
50
|
+
Version 7.3.1 (March 17, 2022)
|
|
51
|
+
----------------------------
|
|
52
|
+
|
|
46
53
|
Version 7.3.0 (January 19, 2022)
|
|
47
54
|
----------------------------
|
|
48
55
|
|