@dhtmlx/grid 9.3.5 → 9.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/README.md +1 -1
- package/codebase/grid.min.js +3 -3
- package/codebase/grid.min.js.map +1 -1
- package/codebase/types/ts-grid/sources/Grid.d.ts +13 -0
- package/codebase/types/ts-grid/sources/helpers/PrefixSums.d.ts +13 -0
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +2 -0
- package/codebase/types/ts-grid/sources/types.d.ts +5 -0
- package/codebase/types/ts-grid/sources/ui/editors/CheckboxEditor.d.ts +0 -1
- package/package.json +1 -1
- package/whatsnew.txt +16 -0
|
@@ -4,6 +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, TSortDir } from "../../ts-data";
|
|
6
6
|
import { Exporter } from "./modules/Exporter";
|
|
7
|
+
import { PrefixSums } from "./helpers/PrefixSums";
|
|
7
8
|
import { ISelection } from "./modules/Selection";
|
|
8
9
|
import { EditorType, GridEvents, IAdjustBy, ICellRect, ICol, ICoords, IEventHandlersMap, IGrid, IGridConfig, IRow, IScrollState, ISpan, GridSystemEvents, ISystemEventHandlersMap, IColumnsWidth, SortFunction, IAdjustColumns, IDirection, IFooter, IHeader, INormalizeColumnsParams, ISummaryList, ISortingStates } from "./types";
|
|
9
10
|
import { IContentList, IHeaderFilter } from "./ui/content";
|
|
@@ -26,6 +27,15 @@ export declare class Grid extends View implements IGrid {
|
|
|
26
27
|
protected _sortingStates: ISortingStates;
|
|
27
28
|
protected _activeFilters: object;
|
|
28
29
|
protected _dropManager: any;
|
|
30
|
+
protected _cachedSizes: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
} | null;
|
|
34
|
+
protected _resizeObserver: ResizeObserver | null;
|
|
35
|
+
protected _rowHeights: PrefixSums;
|
|
36
|
+
protected _colWidths: PrefixSums;
|
|
37
|
+
protected _rowHeightsRebuild: boolean;
|
|
38
|
+
private _observedEl;
|
|
29
39
|
private _filterData;
|
|
30
40
|
private _hiddenFilters;
|
|
31
41
|
private _commonSummary;
|
|
@@ -33,6 +43,8 @@ export declare class Grid extends View implements IGrid {
|
|
|
33
43
|
constructor(container: HTMLElement | string | null, config?: IGridConfig);
|
|
34
44
|
destructor(): void;
|
|
35
45
|
setColumns(columns: ICol[]): void;
|
|
46
|
+
protected _rebuildRowHeights(data?: IRow[]): void;
|
|
47
|
+
protected _rebuildColWidths(): void;
|
|
36
48
|
addRowCss(rowId: Id, css: string): void;
|
|
37
49
|
removeRowCss(rowId: Id, css: string): void;
|
|
38
50
|
addCellCss(rowId: Id, colId: Id, css: string): void;
|
|
@@ -97,6 +109,7 @@ export declare class Grid extends View implements IGrid {
|
|
|
97
109
|
protected _showColumn(column: ICol): void;
|
|
98
110
|
protected _setSummary(): void;
|
|
99
111
|
protected _init(): void;
|
|
112
|
+
protected _observeResize(element: HTMLElement): void;
|
|
100
113
|
private _applyMethod;
|
|
101
114
|
private _canDataParse;
|
|
102
115
|
private _attachDataCollection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class PrefixSums {
|
|
2
|
+
private _prefix;
|
|
3
|
+
private _length;
|
|
4
|
+
constructor();
|
|
5
|
+
ensureCapacity(maxCount: number): Float64Array;
|
|
6
|
+
setLength(length: number): void;
|
|
7
|
+
totalSize(): number;
|
|
8
|
+
rangeSize(from: number, to: number): number;
|
|
9
|
+
itemSize(visibleIndex: number): number;
|
|
10
|
+
findIndex(target: number): number;
|
|
11
|
+
get length(): number;
|
|
12
|
+
reset(): void;
|
|
13
|
+
}
|
|
@@ -2,6 +2,8 @@ import { IContainerConfig } from "../../../ts-common/core";
|
|
|
2
2
|
import { ICol, IColumnsWidth, IGridConfig, IRow, AdjustTargetType, TOption, IScrollState, IVisibleRange, ISizes } from "./../types";
|
|
3
3
|
import { Id } from "../../../ts-common/types";
|
|
4
4
|
export declare function getTotalRowHeight(row: IRow): number;
|
|
5
|
+
export declare function rowsHeight(config: IGridConfig, rows: IRow[], from: number, to: number): number;
|
|
6
|
+
export declare function colsWidth(config: IGridConfig, cols: ICol[], from: number, to: number): number;
|
|
5
7
|
export declare function normalizeArray(obj: any, name: string): void;
|
|
6
8
|
export declare function measureTextHeight({ text, width, lineHeight, font, htmlEnable, }: {
|
|
7
9
|
text?: string;
|
|
@@ -13,6 +13,7 @@ import { ITreeGrid, ITreeGridConfig } from "../../ts-treegrid";
|
|
|
13
13
|
import { ISelection } from "./modules/Selection";
|
|
14
14
|
import { IProCell, IViewConstructor } from "../../ts-layout";
|
|
15
15
|
import { IRange, IRangeConfig } from "./modules/Range";
|
|
16
|
+
import { PrefixSums } from "./helpers/PrefixSums";
|
|
16
17
|
import { IBlockSelection, IBlockSelectionConfig } from "./modules/BlockSelection";
|
|
17
18
|
import { IClipboard, IClipboardConfig } from "./modules/Clipboard";
|
|
18
19
|
import { IHistory, IHistoryConfig } from "./modules/History";
|
|
@@ -148,6 +149,9 @@ export interface IGridConfig extends IDragConfig {
|
|
|
148
149
|
$footerHeightMap?: number[];
|
|
149
150
|
$totalWidth?: number;
|
|
150
151
|
$totalHeight?: number;
|
|
152
|
+
$rowHeights?: PrefixSums;
|
|
153
|
+
$colWidths?: PrefixSums;
|
|
154
|
+
$filteredColumns?: ICol[];
|
|
151
155
|
$positions?: IPositions;
|
|
152
156
|
$colspans?: boolean;
|
|
153
157
|
$footer?: boolean;
|
|
@@ -214,6 +218,7 @@ export interface IRendererConfig extends Required<IProGridConfig> {
|
|
|
214
218
|
[colId: string]: ISummaryList;
|
|
215
219
|
};
|
|
216
220
|
$renderFrom?: RenderFrom;
|
|
221
|
+
$isDragging?: boolean;
|
|
217
222
|
_events?: IEventSystem<GridSystemEvents>;
|
|
218
223
|
}
|
|
219
224
|
export declare enum GridEvents {
|
|
@@ -11,7 +11,6 @@ export declare class CheckboxEditor implements IEditor {
|
|
|
11
11
|
protected _checkbox: HTMLInputElement;
|
|
12
12
|
protected _input: HTMLInputElement;
|
|
13
13
|
protected _checked: boolean;
|
|
14
|
-
protected _parent: HTMLElement;
|
|
15
14
|
constructor(row: IRow, col: ICol, config: IRendererConfig);
|
|
16
15
|
endEdit(): void;
|
|
17
16
|
toHTML(): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhtmlx/grid",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.7",
|
|
4
4
|
"description": "DHTMLX Grid - JavaScript data grid library. GPL v2 edition for GPL-compatible open-source projects; commercial licenses are available for proprietary and production use.",
|
|
5
5
|
"keywords": ["dhtmlx","grid","datagrid","table","treegrid","data-table","javascript","typescript"],
|
|
6
6
|
"homepage":"https://docs.dhtmlx.com/suite/grid/",
|
package/whatsnew.txt
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# Version 9.3.7 (July 29, 2026)
|
|
2
|
+
|
|
3
|
+
### Updates
|
|
4
|
+
|
|
5
|
+
- Significant performance optimizations: improved FPS and scroll smoothness when handling large datasets due to optimized internal rendering and virtualization logic.
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- Fixed the issue where the `numberMask` would reset the value to 0 if it started with a leading zero during editing.
|
|
10
|
+
|
|
11
|
+
# Version 9.3.6 (July 24, 2026)
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
- Fixed the checkbox click interaction in columns with `type: "boolean"`, ensuring the state toggles correctly on user click.
|
|
16
|
+
|
|
1
17
|
# Version 9.3.5 (July 1, 2026)
|
|
2
18
|
|
|
3
19
|
### Updates
|