Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aim-data-grid

Package Overview
Dependencies
Maintainers
0
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aim-data-grid - npm Package Compare versions

Comparing version 1.2.8-beta.9 to 1.2.8-beta.10

6

dist/cjs/internal/data-grid/render/data-grid-render.lines.js

@@ -237,2 +237,3 @@ "use strict";

}
// 这一段逻辑保留,忘记什么作用了
// let freezeStartX = 0.5;

@@ -282,3 +283,6 @@ // let freezeEndX = 0.5;

const ty = y + translateY;
if (ty >= minY && ty <= maxY - 1 && horizontalBorder(c.sourceIndex, row)) {
if (ty >= minY &&
ty <= maxY - 1 &&
row < rows - freezeTrailingRows &&
horizontalBorder(c.sourceIndex, row)) {
const rowTheme = getRowThemeOverride?.(row);

@@ -285,0 +289,0 @@ toDraw.push({

import { type BooleanCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const booleanCellRenderer: InternalCellRenderer<BooleanCell>;
//# sourceMappingURL=boolean-cell.d.ts.map
import { type BubbleCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const bubbleCellRenderer: InternalCellRenderer<BubbleCell>;
//# sourceMappingURL=bubble-cell.d.ts.map

@@ -92,1 +92,2 @@ import type React from "react";

export {};
//# sourceMappingURL=cell-types.d.ts.map
import { type DrilldownCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const drilldownCellRenderer: InternalCellRenderer<DrilldownCell>;
//# sourceMappingURL=drilldown-cell.d.ts.map

@@ -5,1 +5,2 @@ import { type BaseGridCell, type ImageCell } from "../internal/data-grid/data-grid-types.js";

export declare function drawImage(args: BaseDrawArgs, data: readonly string[], rounding: number, contentAlign?: BaseGridCell["contentAlign"]): void;
//# sourceMappingURL=image-cell.d.ts.map
import { type InnerGridCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const AllCellRenderers: InternalCellRenderer<InnerGridCell>[];
//# sourceMappingURL=index.d.ts.map
import { type LoadingCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const loadingCellRenderer: InternalCellRenderer<LoadingCell>;
//# sourceMappingURL=loading-cell.d.ts.map
import { type MarkdownCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const markdownCellRenderer: InternalCellRenderer<MarkdownCell>;
//# sourceMappingURL=markdown-cell.d.ts.map
import { type MarkerCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const markerCellRenderer: InternalCellRenderer<MarkerCell>;
//# sourceMappingURL=marker-cell.d.ts.map
import { type NewRowCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const newRowCellRenderer: InternalCellRenderer<NewRowCell>;
//# sourceMappingURL=new-row-cell.d.ts.map
import { type NumberCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const numberCellRenderer: InternalCellRenderer<NumberCell>;
//# sourceMappingURL=number-cell.d.ts.map
import { type ProtectedCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const protectedCellRenderer: InternalCellRenderer<ProtectedCell>;
//# sourceMappingURL=protected-cell.d.ts.map
import { type RowIDCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const rowIDCellRenderer: InternalCellRenderer<RowIDCell>;
//# sourceMappingURL=row-id-cell.d.ts.map
import { type TextCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const textCellRenderer: InternalCellRenderer<TextCell>;
//# sourceMappingURL=text-cell.d.ts.map
import { type UriCell } from "../internal/data-grid/data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";
export declare const uriCellRenderer: InternalCellRenderer<UriCell>;
//# sourceMappingURL=uri-cell.d.ts.map

@@ -11,1 +11,2 @@ declare class Lazy<T> {

export {};
//# sourceMappingURL=browser-detect.d.ts.map

@@ -15,1 +15,2 @@ import { CellSet } from "../internal/data-grid/cell-set.js";

export default ImageWindowLoaderImpl;
//# sourceMappingURL=image-window-loader.d.ts.map

@@ -7,1 +7,2 @@ import type { GridKeyEventArgs } from "../internal/data-grid/event-args.js";

export {};
//# sourceMappingURL=is-hotkey.d.ts.map

@@ -20,1 +20,2 @@ import type { FillHandleDirection, Rectangle } from "../internal/data-grid/data-grid-types.js";

export {};
//# sourceMappingURL=math.d.ts.map

@@ -20,1 +20,2 @@ import type { Item, Rectangle } from "../internal/data-grid/data-grid-types.js";

}
//# sourceMappingURL=render-state-provider.d.ts.map

@@ -11,1 +11,2 @@ import { type MutableRefObject } from "react";

export {};
//# sourceMappingURL=resize-detector.d.ts.map

@@ -8,1 +8,2 @@ import * as React from "react";

export declare const DataEditorAll: React.ForwardRefExoticComponent<DataEditorAllProps & React.RefAttributes<DataEditorRef>>;
//# sourceMappingURL=data-editor-all.d.ts.map

@@ -20,1 +20,2 @@ import { type GridCell, BooleanEmpty, BooleanIndeterminate } from "../internal/data-grid/data-grid-types.js";

export {};
//# sourceMappingURL=copy-paste.d.ts.map

@@ -16,1 +16,2 @@ import type { DataGridSearchProps } from "../internal/data-grid-search/data-grid-search.js";

export declare function toggleBoolean(data: boolean | null | undefined): boolean | null | undefined;
//# sourceMappingURL=data-editor-fns.d.ts.map

@@ -62,1 +62,2 @@ export type Keybind = boolean | string;

export {};
//# sourceMappingURL=data-editor-keybindings.d.ts.map

@@ -529,1 +529,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=data-editor.d.ts.map

@@ -12,1 +12,2 @@ import React from "react";

export {};
//# sourceMappingURL=group-rename.d.ts.map

@@ -21,1 +21,2 @@ import type { Item } from "../internal/data-grid/data-grid-types.js";

export declare function getRowGroupingForPath(rowGrouping: readonly RowGroup[], path: readonly number[]): RowGroup;
//# sourceMappingURL=row-grouping-api.d.ts.map

@@ -82,1 +82,2 @@ import type { Theme } from "../common/styles.js";

export {};
//# sourceMappingURL=row-grouping.d.ts.map
import React from "react";
import type { GridMouseCellEventArgs } from "../internal/data-grid/event-args.js";
export declare function useAutoscroll(scrollDirection: GridMouseCellEventArgs["scrollEdge"] | undefined, scrollRef: React.MutableRefObject<HTMLDivElement | null>, onScroll?: () => void): void;
//# sourceMappingURL=use-autoscroll.d.ts.map

@@ -7,1 +7,2 @@ import type { DataGridSearchProps } from "../internal/data-grid-search/data-grid-search.js";

export {};
//# sourceMappingURL=use-cells-for-selection.d.ts.map

@@ -11,1 +11,2 @@ import type { FullTheme } from "../common/styles.js";

};
//# sourceMappingURL=use-column-sizer.d.ts.map

@@ -9,1 +9,2 @@ import * as React from "react";

};
//# sourceMappingURL=use-initial-scroll-offset.d.ts.map

@@ -22,1 +22,2 @@ import { type Theme } from "../common/styles.js";

export {};
//# sourceMappingURL=use-rem-adjuster.d.ts.map

@@ -19,1 +19,2 @@ import { type Rectangle, type Item } from "../internal/data-grid/data-grid-types.js";

};
//# sourceMappingURL=visible-region.d.ts.map

@@ -51,1 +51,2 @@ export type { OverlayImageEditorProps } from "./internal/data-grid-overlay-editor/private/image-overlay-editor.js";

export { DataEditorAll as default } from "./data-editor-all.js";
//# sourceMappingURL=index.d.ts.map

@@ -14,1 +14,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=click-outside-container.d.ts.map

@@ -10,1 +10,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=data-grid-container.d.ts.map

@@ -61,1 +61,2 @@ import * as React from "react";

export default DataGridDnd;
//# sourceMappingURL=data-grid-dnd.d.ts.map

@@ -10,1 +10,2 @@ /// <reference types="react" resolution-mode="require"/>

export {};
//# sourceMappingURL=data-grid-overlay-editor-style.d.ts.map

@@ -32,1 +32,2 @@ import * as React from "react";

export default DataGridOverlayEditor;
//# sourceMappingURL=data-grid-overlay-editor.d.ts.map
/// <reference types="react" resolution-mode="require"/>
export declare const BubblesOverlayEditorStyle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
//# sourceMappingURL=bubbles-overlay-editor-style.d.ts.map

@@ -7,1 +7,2 @@ import * as React from "react";

export default BubblesOverlayEditor;
//# sourceMappingURL=bubbles-overlay-editor.d.ts.map

@@ -8,1 +8,2 @@ import type { DrilldownCellData } from "../../data-grid/data-grid-types.js";

export default DrilldownOverlayEditor;
//# sourceMappingURL=drilldown-overlay-editor.d.ts.map

@@ -7,1 +7,2 @@ /// <reference types="react" resolution-mode="require"/>

export {};
//# sourceMappingURL=markdown-overlay-editor-style.d.ts.map

@@ -14,1 +14,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=markdown-overlay-editor.d.ts.map
/// <reference types="react" resolution-mode="require"/>
export declare const NumberOverlayEditorStyle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
//# sourceMappingURL=number-overlay-editor-style.d.ts.map

@@ -17,1 +17,2 @@ import * as React from "react";

export default NumberOverlayEditor;
//# sourceMappingURL=number-overlay-editor.d.ts.map
/// <reference types="react" resolution-mode="require"/>
export declare const UriOverlayEditorStyle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
//# sourceMappingURL=uri-overlay-editor-style.d.ts.map

@@ -13,1 +13,2 @@ import * as React from "react";

export default UriOverlayEditor;
//# sourceMappingURL=uri-overlay-editor.d.ts.map

@@ -8,1 +8,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=use-stay-on-screen.d.ts.map
/// <reference types="react" resolution-mode="require"/>
export declare const SearchWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
//# sourceMappingURL=data-grid-search-style.d.ts.map

@@ -41,1 +41,2 @@ import * as React from "react";

export default DataGridSearch;
//# sourceMappingURL=data-grid-search.d.ts.map

@@ -26,1 +26,2 @@ import type { Item } from "./data-grid-types.js";

export {};
//# sourceMappingURL=animation-manager.d.ts.map

@@ -17,1 +17,2 @@ import type { Item, Rectangle } from "./data-grid-types.js";

}
//# sourceMappingURL=cell-set.d.ts.map

@@ -38,1 +38,2 @@ import type { Theme } from "../../common/styles.js";

}
//# sourceMappingURL=data-grid-sprites.d.ts.map

@@ -443,1 +443,2 @@ import type { Theme } from "../../common/styles.js";

export {};
//# sourceMappingURL=data-grid-types.d.ts.map

@@ -239,1 +239,2 @@ import * as React from "react";

export default _default;
//# sourceMappingURL=data-grid.d.ts.map

@@ -118,1 +118,2 @@ /// <reference types="react" resolution-mode="require"/>

export declare function mouseEventArgsAreEqual(args: GridMouseEventArgs | undefined, other: GridMouseEventArgs | undefined): boolean;
//# sourceMappingURL=event-args.d.ts.map

@@ -9,1 +9,2 @@ import type { CellSet } from "./cell-set.js";

}
//# sourceMappingURL=image-window-loader-interface.d.ts.map

@@ -61,1 +61,2 @@ import type { FullTheme } from "../../../common/styles.js";

export {};
//# sourceMappingURL=data-grid-lib.d.ts.map

@@ -20,1 +20,2 @@ import { type Rectangle } from "../data-grid-types.js";

export declare function computeCanBlit(current: DrawGridArg, last: DrawGridArg | undefined): boolean | number;
//# sourceMappingURL=data-grid-render.blit.d.ts.map

@@ -37,1 +37,2 @@ /// <reference types="react" resolution-mode="require"/>

export declare function drawCell(ctx: CanvasRenderingContext2D, cell: InnerGridCell, col: number, row: number, isLastCol: boolean, isLastRow: boolean, x: number, y: number, w: number, h: number, highlighted: boolean, theme: FullTheme, finalCellFillColor: string, imageLoader: ImageWindowLoader, spriteManager: SpriteManager, hoverAmount: number, hoverInfo: HoverInfo | undefined, hyperWrapping: boolean, frameTime: number, drawCellCallback: DrawCellCallback | undefined, lastPrep: PrepResult | undefined, enqueue: EnqueueCallback | undefined, renderStateProvider: RenderStateProvider, getCellRenderer: GetCellRendererCallback, overrideCursor: (cursor: React.CSSProperties["cursor"]) => void): PrepResult | undefined;
//# sourceMappingURL=data-grid-render.cells.d.ts.map
import type { DrawGridArg } from "./draw-grid-arg.js";
export declare function drawGrid(arg: DrawGridArg, lastArg: DrawGridArg | undefined): void;
//# sourceMappingURL=data-grid-render.d.ts.map

@@ -38,1 +38,2 @@ /// <reference types="react" resolution-mode="require"/>

export {};
//# sourceMappingURL=data-grid-render.header.d.ts.map

@@ -10,1 +10,2 @@ import { type Rectangle, CompactSelection } from "../data-grid-types.js";

export declare function drawGridLines(ctx: CanvasRenderingContext2D, effectiveCols: readonly MappedGridColumn[], cellYOffset: number, translateX: number, translateY: number, width: number, height: number, drawRegions: Rectangle[] | undefined, spans: Rectangle[] | undefined, groupHeaderHeight: number, totalHeaderHeight: number, getRowHeight: (row: number) => number, getRowThemeOverride: GetRowThemeCallback | undefined, verticalBorder: (col: number) => boolean, horizontalBorder: (col: number, row: number) => boolean, freezeTrailingRows: number, rows: number, theme: FullTheme, verticalOnly?: boolean, isHeader?: boolean): void;
//# sourceMappingURL=data-grid-render.lines.d.ts.map

@@ -11,1 +11,2 @@ import { type Item, type Rectangle } from "../data-grid-types.js";

export declare function getSpanBounds(span: Item, cellX: number, cellY: number, cellW: number, cellH: number, column: MappedGridColumn, allColumns: readonly MappedGridColumn[]): [Rectangle | undefined, Rectangle | undefined];
//# sourceMappingURL=data-grid-render.walk.d.ts.map

@@ -8,1 +8,2 @@ import { type GridSelection, type InnerGridCell, type Item } from "../data-grid-types.js";

export declare function drawFillHandle(ctx: CanvasRenderingContext2D, width: number, height: number, cellYOffset: number, translateX: number, translateY: number, effectiveCols: readonly MappedGridColumn[], allColumns: readonly MappedGridColumn[], theme: FullTheme, totalHeaderHeight: number, selectedCell: GridSelection, getRowHeight: (row: number) => number, getCellContent: (cell: Item) => InnerGridCell, freezeTrailingRows: number, hasAppendRow: boolean, fillHandle: boolean, rows: number): (() => void) | undefined;
//# sourceMappingURL=data-grid.render.rings.d.ts.map
import type { Theme } from "../../../index.js";
import { BooleanEmpty, BooleanIndeterminate, type BaseGridCell } from "../data-grid-types.js";
export declare function drawCheckbox(ctx: CanvasRenderingContext2D, theme: Theme, checked: boolean | BooleanEmpty | BooleanIndeterminate, x: number, y: number, width: number, height: number, highlighted: boolean, hoverX?: number, hoverY?: number, maxSize?: number, alignment?: BaseGridCell["contentAlign"], style?: "circle" | "square", border?: boolean): void;
//# sourceMappingURL=draw-checkbox.d.ts.map

@@ -5,1 +5,2 @@ /// <reference types="react" resolution-mode="require"/>

export declare function drawEditHoverIndicator(ctx: CanvasRenderingContext2D, theme: FullTheme, effectTheme: HoverEffectTheme | undefined, displayData: string, rect: Rectangle, hoverAmount: number, overrideCursor: ((cursor: React.CSSProperties["cursor"] | undefined) => void) | undefined): void;
//# sourceMappingURL=draw-edit-hover-indicator.d.ts.map

@@ -80,1 +80,2 @@ /// <reference types="react" resolution-mode="require"/>

}
//# sourceMappingURL=draw-grid-arg.d.ts.map

@@ -53,1 +53,2 @@ import type { SpriteProps } from "../../common/utils.js";

export type HeaderIconMap = Readonly<typeof sprites>;
//# sourceMappingURL=sprites.d.ts.map

@@ -5,1 +5,2 @@ import { type Item } from "./data-grid-types.js";

export declare function useAnimationQueue(draw: (items: CellSet) => void): EnqueueCallback;
//# sourceMappingURL=use-animation-queue.d.ts.map

@@ -7,1 +7,2 @@ import { CompactSelection, type GridSelection, type Slice } from "./data-grid-types.js";

export {};
//# sourceMappingURL=use-selection-behavior.d.ts.map

@@ -5,1 +5,2 @@ /// <reference types="react" resolution-mode="require"/>

export declare const GrowingEntryStyle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
//# sourceMappingURL=growing-entry-style.d.ts.map

@@ -12,1 +12,2 @@ import * as React from "react";

export {};
//# sourceMappingURL=growing-entry.d.ts.map

@@ -26,1 +26,2 @@ import type { Rectangle } from "../../index.js";

export {};
//# sourceMappingURL=infinite-scroller.d.ts.map

@@ -57,1 +57,2 @@ import * as React from "react";

export default GridScroller;
//# sourceMappingURL=scrolling-data-grid.d.ts.map
declare const useKineticScroll: (isEnabled: boolean, callback: (scrollLeft: number, scrollTop: number) => void, targetScroller: React.MutableRefObject<HTMLDivElement | null>) => void;
export default useKineticScroll;
//# sourceMappingURL=use-kinetic-scroll.d.ts.map

@@ -233,2 +233,3 @@ /* eslint-disable sonarjs/no-duplicate-string */

}
// 这一段逻辑保留,忘记什么作用了
// let freezeStartX = 0.5;

@@ -278,3 +279,6 @@ // let freezeEndX = 0.5;

const ty = y + translateY;
if (ty >= minY && ty <= maxY - 1 && horizontalBorder(c.sourceIndex, row)) {
if (ty >= minY &&
ty <= maxY - 1 &&
row < rows - freezeTrailingRows &&
horizontalBorder(c.sourceIndex, row)) {
const rowTheme = getRowThemeOverride?.(row);

@@ -281,0 +285,0 @@ toDraw.push({

2

package.json
{
"name": "aim-data-grid",
"version": "1.2.8-beta.9",
"version": "1.2.8-beta.10",
"description": "React data grid for beautifully displaying and editing large amounts of data with amazing performance.",

@@ -5,0 +5,0 @@ "sideEffects": [

@@ -352,2 +352,3 @@ /* eslint-disable sonarjs/no-duplicate-string */

// 这一段逻辑保留,忘记什么作用了
// let freezeStartX = 0.5;

@@ -402,3 +403,8 @@ // let freezeEndX = 0.5;

const ty = y + translateY;
if (ty >= minY && ty <= maxY - 1 && horizontalBorder(c.sourceIndex, row)) {
if (
ty >= minY &&
ty <= maxY - 1 &&
row < rows - freezeTrailingRows &&
horizontalBorder(c.sourceIndex, row)
) {
const rowTheme = getRowThemeOverride?.(row);

@@ -405,0 +411,0 @@ toDraw.push({

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc