dhx-chart 8.1.0 → 8.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/chart.min.js +3 -3
- package/codebase/types/ts-grid/sources/Grid.d.ts +3 -2
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +1 -3
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +2 -2
- package/codebase/types/ts-grid/sources/types.d.ts +8 -0
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +1 -1
- package/codebase/types/ts-layout/sources/Cell.d.ts +1 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +6 -0
|
@@ -4,7 +4,7 @@ import { Id, ITouchParam } from "../../ts-common/types";
|
|
|
4
4
|
import { View } from "../../ts-common/view";
|
|
5
5
|
import { DataEvents, DragEvents, IDataCollection, IDataEventsHandlersMap, IDataItem, IDragEventsHandlersMap } from "../../ts-data";
|
|
6
6
|
import { Exporter } from "./Exporter";
|
|
7
|
-
import { Dirs, EditorType, GridEvents, IAdjustBy, ICellRect, ICol, IContentList, ICoords, IEventHandlersMap, IGrid, IGridConfig, IRow, IScrollState, ISelection, ISpan, GridSystemEvents, ISystemEventHandlersMap, IColumnsWidth, ISortingState, SortFunction, IHeaderFilter } from "./types";
|
|
7
|
+
import { Dirs, EditorType, GridEvents, IAdjustBy, ICellRect, ICol, IContentList, ICoords, IEventHandlersMap, IGrid, IGridConfig, IRow, IScrollState, ISelection, ISpan, GridSystemEvents, ISystemEventHandlersMap, IColumnsWidth, ISortingState, SortFunction, IHeaderFilter, IAdjustColumns } from "./types";
|
|
8
8
|
export declare class Grid extends View implements IGrid {
|
|
9
9
|
version: string;
|
|
10
10
|
data: IDataCollection;
|
|
@@ -64,7 +64,7 @@ export declare class Grid extends View implements IGrid {
|
|
|
64
64
|
protected _checkFilters(): void;
|
|
65
65
|
protected _adjustColumns(): void;
|
|
66
66
|
protected _prepareData(data: IDataItem[] | IDataCollection): any[] | IDataItem[];
|
|
67
|
-
protected _adjustColumnsWidth(rows
|
|
67
|
+
protected _adjustColumnsWidth({ rows, cols, adjust, }: IAdjustColumns): IColumnsWidth;
|
|
68
68
|
protected _prepareColumnData(data: any, type: "header" | "footer"): IRow[];
|
|
69
69
|
protected _dragStart(event: any): void;
|
|
70
70
|
protected _getRowGhost(ids: Id[]): HTMLDivElement;
|
|
@@ -78,4 +78,5 @@ export declare class Grid extends View implements IGrid {
|
|
|
78
78
|
private _render;
|
|
79
79
|
private _initHotKey;
|
|
80
80
|
private _normalizeConfig;
|
|
81
|
+
private _autoScroll;
|
|
81
82
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICol, IRow, ISpan } from "./../types";
|
|
1
|
+
import { ICol, IRow } from "./../types";
|
|
3
2
|
export declare function getWidth(columns: ICol[], colspan: number, index: number): number;
|
|
4
3
|
export declare function getHeight(dataRows: IRow[], rowspan: number, index: number): number;
|
|
5
|
-
export declare function getSpan(rowId: Id, colId: Id, conf: any): ISpan;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IContainerConfig } from "../../../ts-common/core";
|
|
2
|
-
import { ICol, IColumnsWidth, IGridConfig,
|
|
2
|
+
import { ICol, IColumnsWidth, IGridConfig, IRow, colType, TOption } from "./../types";
|
|
3
3
|
export declare function normalizeColumns({ columns, htmlEnable }: IGridConfig, configChanged?: boolean): void;
|
|
4
4
|
export declare function countColumns(config: IGridConfig, columns: ICol[]): number;
|
|
5
|
-
export declare function calculatePositions(width: number, height: number, scroll: any, conf:
|
|
5
|
+
export declare function calculatePositions(width: number, height: number, scroll: any, conf: IGridConfig, data: IRow[]): {
|
|
6
6
|
xStart: number;
|
|
7
7
|
xEnd: number;
|
|
8
8
|
yStart: number;
|
|
@@ -104,6 +104,8 @@ interface IFixedRows {
|
|
|
104
104
|
export interface IRendererConfig extends IGridConfig {
|
|
105
105
|
scroll?: IScrollState;
|
|
106
106
|
datacollection: any;
|
|
107
|
+
columns?: ICol[];
|
|
108
|
+
filteredColumns?: ICol[];
|
|
107
109
|
currentColumns?: ICol[];
|
|
108
110
|
currentRows?: IRow[];
|
|
109
111
|
fixedColumns?: IFixedColumns;
|
|
@@ -515,6 +517,12 @@ export declare type IDirection = "horizontal" | "vertical";
|
|
|
515
517
|
export declare type IDragType = "row" | "column" | "both";
|
|
516
518
|
export declare type AdjustTargetType = "data" | "header" | "footer";
|
|
517
519
|
export declare type IAdjustBy = AdjustTargetType | boolean;
|
|
520
|
+
export interface IAdjustColumns {
|
|
521
|
+
rows: IRow[];
|
|
522
|
+
cols: ICol[];
|
|
523
|
+
totalCols?: ICol[];
|
|
524
|
+
adjust?: IAdjustBy;
|
|
525
|
+
}
|
|
518
526
|
export interface ISelectionConfig {
|
|
519
527
|
disabled?: boolean;
|
|
520
528
|
}
|
|
@@ -14,7 +14,7 @@ export declare class ComboFilter implements IHeaderFilter {
|
|
|
14
14
|
protected initFilter(): void;
|
|
15
15
|
protected initHandlers(): void;
|
|
16
16
|
getFilter(): Combobox;
|
|
17
|
-
setValue(value
|
|
17
|
+
setValue(value?: string | string[]): void;
|
|
18
18
|
clear(): void;
|
|
19
19
|
focus(): void;
|
|
20
20
|
blur(): void;
|
package/package.json
CHANGED
package/readme.txt
CHANGED