dhx-chart 8.3.5 → 8.3.7
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-common/core.d.ts +1 -1
- package/codebase/types/ts-grid/sources/Grid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/types.d.ts +4 -1
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +4 -1
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +6 -0
|
@@ -8,7 +8,7 @@ interface IOBj {
|
|
|
8
8
|
export declare function copy(source: IOBj, withoutInner?: boolean): IOBj;
|
|
9
9
|
export declare function naturalSort(arr: any): any[];
|
|
10
10
|
export declare function findIndex<T = any>(arr: T[], predicate: (obj: T) => boolean): number;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function isExistValue(target: number | string, value: number | string): boolean;
|
|
12
12
|
export declare function singleOuterClick(fn: (e: MouseEvent) => boolean): void;
|
|
13
13
|
export declare function detectWidgetClick(widgetId: string, cb: (inner: boolean) => void): () => void;
|
|
14
14
|
export declare function unwrapBox<T>(box: T | T[]): T;
|
|
@@ -78,6 +78,7 @@ export declare class Grid extends View implements IGrid {
|
|
|
78
78
|
didMount: () => void;
|
|
79
79
|
};
|
|
80
80
|
protected _normalizeDataType(): void;
|
|
81
|
+
protected _applyLocalFilter(beforePrepareData?: boolean): void;
|
|
81
82
|
private _canDataParse;
|
|
82
83
|
private _init;
|
|
83
84
|
private _attachDataCollection;
|
|
@@ -107,12 +107,13 @@ interface IFixedRows {
|
|
|
107
107
|
top: IRow[];
|
|
108
108
|
bottom: IRow[];
|
|
109
109
|
}
|
|
110
|
-
export interface IRendererConfig extends IGridConfig {
|
|
110
|
+
export interface IRendererConfig extends Required<IGridConfig> {
|
|
111
111
|
scroll?: IScrollState;
|
|
112
112
|
datacollection: any;
|
|
113
113
|
filteredColumns?: ICol[];
|
|
114
114
|
currentColumns?: ICol[];
|
|
115
115
|
currentRows?: IRow[];
|
|
116
|
+
currentSpans?: ISpan[];
|
|
116
117
|
fixedColumns?: IFixedColumns;
|
|
117
118
|
fixedRows?: IFixedRows;
|
|
118
119
|
firstColId?: Id;
|
|
@@ -308,6 +309,8 @@ export interface ISpan {
|
|
|
308
309
|
tooltipTemplate?: (spanValue: any, span: ISpan) => string;
|
|
309
310
|
$markCss?: string;
|
|
310
311
|
$type?: colType;
|
|
312
|
+
$rowsVisibility?: number[];
|
|
313
|
+
$colsVisibility?: number[];
|
|
311
314
|
}
|
|
312
315
|
export interface IComboFilterConfig {
|
|
313
316
|
data?: DataCollection<any> | any[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GridEvents, GridSystemEvents, ICol, ICoords, IGridConfig, IRendererConfig, ISpan, Split } from "../types";
|
|
2
|
+
import { IDataCollection, IDataItem } from "../../../ts-data";
|
|
2
3
|
type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | GridEvents.cellMouseDown | GridEvents.cellDblClick | GridEvents.cellRightClick;
|
|
3
4
|
type touchEvents = GridSystemEvents.cellTouchEnd | GridSystemEvents.cellTouchMove;
|
|
4
5
|
declare function handleMouse(rowStart: number, colStart: number, conf: IRendererConfig, type: mouseEvents & touchEvents, e: any): void;
|
|
@@ -16,9 +17,11 @@ export declare function getTreeCell(content: any, row: any, col: ICol, conf: IRe
|
|
|
16
17
|
export declare function getCells(conf: IRendererConfig): any[];
|
|
17
18
|
export declare function getSpans(config: IRendererConfig, mode?: Split): any[];
|
|
18
19
|
export declare function getShifts(conf: IRendererConfig): ICoords;
|
|
19
|
-
export declare function normalizeSpan(span: ISpan, config: IGridConfig): {
|
|
20
|
+
export declare function normalizeSpan(span: ISpan, config: IGridConfig, data: IDataCollection<IDataItem>): {
|
|
20
21
|
$renderFrom: string[];
|
|
21
22
|
$type: any;
|
|
23
|
+
$rowsVisibility: number[];
|
|
24
|
+
$colsVisibility: number[];
|
|
22
25
|
row: import("../../../ts-common/types").Id;
|
|
23
26
|
column: import("../../../ts-common/types").Id;
|
|
24
27
|
rowspan?: number;
|
package/package.json
CHANGED
package/readme.txt
CHANGED