aim-data-grid
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -39,2 +39,3 @@ import React from "react"; | ||
lineHeight: number; | ||
filterHeaderBg?: string; | ||
} | ||
@@ -41,0 +42,0 @@ /** @category Theme */ |
@@ -318,2 +318,3 @@ import * as React from "react"; | ||
readonly getCellContent: (cell: Item) => GridCell; | ||
readonly getFilterCellContent?: (cell: number) => GridCell; | ||
/** | ||
@@ -412,2 +413,4 @@ * Determines if row selection requires a modifier key to enable multi-selection or not. In auto mode it adapts to | ||
readonly scaleToRem?: boolean; | ||
readonly showFilter?: boolean; | ||
readonly filterHeight?: number; | ||
} | ||
@@ -414,0 +417,0 @@ declare type ScrollToFn = (col: number | { |
@@ -21,3 +21,3 @@ import type { Theme } from "../common/styles"; | ||
export declare function getColumnIndexForX(targetX: number, effectiveColumns: readonly MappedGridColumn[], translateX?: number): number; | ||
export declare function getRowIndexForY(targetY: number, height: number, hasGroups: boolean, headerHeight: number, groupHeaderHeight: number, rows: number, rowHeight: number | ((index: number) => number), cellYOffset: number, translateY: number, lastRowSticky: boolean): number | undefined; | ||
export declare function getRowIndexForY(targetY: number, height: number, hasGroups: boolean, headerHeight: number, groupHeaderHeight: number, filterHeight: number, rows: number, rowHeight: number | ((index: number) => number), cellYOffset: number, translateY: number, lastRowSticky: boolean): number | undefined; | ||
/** @category Drawing */ | ||
@@ -50,4 +50,4 @@ export declare function measureTextCached(s: string, ctx: CanvasRenderingContext2D, font?: string): TextMetrics; | ||
export declare function roundedPoly(ctx: CanvasRenderingContext2D, points: Point[], radiusAll: number): void; | ||
export declare function computeBounds(col: number, row: number, width: number, height: number, groupHeaderHeight: number, totalHeaderHeight: number, cellXOffset: number, cellYOffset: number, translateX: number, translateY: number, rows: number, freezeColumns: number, lastRowSticky: boolean, mappedColumns: readonly MappedGridColumn[], rowHeight: number | ((index: number) => number)): Rectangle; | ||
export declare function computeBounds(col: number, row: number, width: number, height: number, groupHeaderHeight: number, totalHeaderHeight: number, filterHeight: number, cellXOffset: number, cellYOffset: number, translateX: number, translateY: number, rows: number, freezeColumns: number, lastRowSticky: boolean, mappedColumns: readonly MappedGridColumn[], rowHeight: number | ((index: number) => number)): Rectangle; | ||
export {}; | ||
//# sourceMappingURL=data-grid-lib.d.ts.map |
@@ -50,2 +50,4 @@ /// <reference types="react" /> | ||
readonly height: number; | ||
readonly showFilter: boolean; | ||
readonly filterHeight: number; | ||
readonly cellXOffset: number; | ||
@@ -75,2 +77,3 @@ readonly cellYOffset: number; | ||
readonly getCellContent: (cell: Item) => InnerGridCell; | ||
readonly getFilterCellContent: (cell: number) => InnerGridCell; | ||
readonly getGroupDetails: GroupDetailsCallback; | ||
@@ -77,0 +80,0 @@ readonly getRowThemeOverride: GetRowThemeCallback | undefined; |
@@ -20,3 +20,3 @@ import type { Theme } from "../common/styles"; | ||
/** @category Types */ | ||
export declare type GridMouseEventArgs = GridMouseCellEventArgs | GridMouseHeaderEventArgs | GridMouseOutOfBoundsEventArgs | GridMouseGroupHeaderEventArgs; | ||
export declare type GridMouseEventArgs = GridMouseCellEventArgs | GridMouseHeaderEventArgs | GridMouseOutOfBoundsEventArgs | GridMouseGroupHeaderEventArgs | GridMouseFilterHeaderEventArgs; | ||
interface PreventableEvent { | ||
@@ -80,2 +80,11 @@ preventDefault: () => void; | ||
/** @category Types */ | ||
export declare const filterHeaderKind: "filterHeader"; | ||
/** @category Types */ | ||
export interface GridMouseFilterHeaderEventArgs extends BaseGridMouseEventArgs, PositionableMouseEventArgs { | ||
readonly kind: typeof filterHeaderKind; | ||
readonly location: readonly [number, -1]; | ||
readonly bounds: Rectangle; | ||
readonly group: string; | ||
} | ||
/** @category Types */ | ||
export declare const groupHeaderKind: "group-header"; | ||
@@ -82,0 +91,0 @@ /** @category Types */ |
@@ -10,2 +10,4 @@ import * as React from "react"; | ||
readonly height: number; | ||
readonly showFilter: boolean; | ||
readonly filterHeight: number; | ||
readonly cellXOffset: number; | ||
@@ -47,2 +49,3 @@ readonly cellYOffset: number; | ||
readonly getCellContent: (cell: Item, forceStrict?: boolean) => InnerGridCell; | ||
readonly getFilterCellContent?: (col: number, forceStrict?: boolean) => InnerGridCell; | ||
/** | ||
@@ -49,0 +52,0 @@ * Provides additional details about groups to extend group functionality. |
{ | ||
"name": "aim-data-grid", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "React data grid for beautifully displaying and editing large amounts of data with amazing performance.", | ||
@@ -5,0 +5,0 @@ "sideEffects": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3080471
171
28982