dhx-chart 7.3.10 → 7.3.12
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/types/ts-grid/sources/Grid.d.ts +1 -1
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +1 -0
- package/codebase/types/ts-grid/sources/types.d.ts +9 -1
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +9 -8
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +6 -0
|
@@ -43,7 +43,7 @@ export declare class Grid extends View implements IGrid {
|
|
|
43
43
|
getCellRect(rowId: Id, colId: Id): ICellRect;
|
|
44
44
|
getColumn(colId: Id): ICol;
|
|
45
45
|
addSpan(spanObj: ISpan): void;
|
|
46
|
-
getSpan(rowId: Id, colId: Id): ISpan
|
|
46
|
+
getSpan(rowId: Id, colId: Id): ISpan;
|
|
47
47
|
removeSpan(rowId: Id, colId: Id): void;
|
|
48
48
|
editCell(rowId: Id, colId: Id, editorType?: EditorType): void;
|
|
49
49
|
editEnd(withoutSave?: boolean): void;
|
|
@@ -10,3 +10,4 @@ export declare function isTooltip(config: IGridConfig, element: ICol | ISpan): b
|
|
|
10
10
|
export declare function isHtmlEnable(config: IGridConfig, col: ICol): boolean;
|
|
11
11
|
export declare function getTotalWidth(columns: ICol[]): number;
|
|
12
12
|
export declare function getTotalHeight(rows: IRow[]): number;
|
|
13
|
+
export declare function scrollFixedColsAndRows(e: WheelEvent): void;
|
|
@@ -230,6 +230,7 @@ export interface ISpan {
|
|
|
230
230
|
css?: string;
|
|
231
231
|
tooltip?: boolean;
|
|
232
232
|
tooltipTemplate?: (spanValue: any, span: ISpan) => string;
|
|
233
|
+
$markCss?: string;
|
|
233
234
|
}
|
|
234
235
|
declare type MarkFunction = (cell: any, columnCells: any[], row: IRow, column: ICol) => string;
|
|
235
236
|
export interface IMark {
|
|
@@ -395,12 +396,19 @@ export interface ISystemEventHandlersMap {
|
|
|
395
396
|
export interface ICellContent {
|
|
396
397
|
element?: any;
|
|
397
398
|
toHtml: (column: ICol, config: IRendererConfig) => any;
|
|
398
|
-
match?: (obj:
|
|
399
|
+
match?: (obj: IMatch) => boolean;
|
|
399
400
|
destroy?: () => void;
|
|
400
401
|
calculate?: (col: any[], roots: any[]) => string | number;
|
|
401
402
|
validate?: (colId: Id, data: any[]) => any[];
|
|
402
403
|
value?: any;
|
|
403
404
|
}
|
|
405
|
+
interface IMatch {
|
|
406
|
+
val: any;
|
|
407
|
+
match: any;
|
|
408
|
+
obj?: any;
|
|
409
|
+
multi?: boolean;
|
|
410
|
+
col?: ICol;
|
|
411
|
+
}
|
|
404
412
|
export interface IContentList {
|
|
405
413
|
[key: string]: ICellContent;
|
|
406
414
|
}
|
|
@@ -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[];
|
|
@@ -26,5 +26,6 @@ export declare function normalizeSpan(span: ISpan, renderConfig: IGridConfig): {
|
|
|
26
26
|
css?: string;
|
|
27
27
|
tooltip?: boolean;
|
|
28
28
|
tooltipTemplate?: (spanValue: any, span: ISpan) => string;
|
|
29
|
+
$markCss?: string;
|
|
29
30
|
};
|
|
30
31
|
export {};
|
package/package.json
CHANGED
package/readme.txt
CHANGED