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

ag-grid-community

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-community - npm Package Compare versions

Comparing version 28.1.0 to 28.1.1

15

dist/lib/columns/columnModel.d.ts

@@ -10,2 +10,3 @@ import { ColumnGroup } from '../entities/columnGroup';

import { RowNode } from '../entities/rowNode';
import { ISizeColumnsToFitParams } from '../gridApi';
export interface ColumnResizeSet {

@@ -65,4 +66,2 @@ columns: Column[];

private rowModel;
private columnApi;
private gridApi;
private sortController;

@@ -96,3 +95,5 @@ private columnDefFactory;

private viewportColumns;
private headerViewportColumns;
private viewportColumnsCenter;
private headerViewportColumnsCenter;
private viewportRowLeft;

@@ -128,3 +129,2 @@ private viewportRowRight;

private columnDefs;
private colDefVersion;
private flexColsCalculatedAtLestOnce;

@@ -134,3 +134,2 @@ init(): void;

onDefaultColDefChanged(): void;
getColDefVersion(): number;
setColumnDefs(columnDefs: (ColDef | ColGroupDef)[], source?: ColumnEventType): void;

@@ -178,3 +177,4 @@ private createColumnsFromColumnDefs;

getAriaColumnIndex(col: Column): number;
private isColumnInViewport;
private isColumnInHeaderViewport;
private isColumnInRowViewport;
getDisplayedColumnsLeftWidth(): number;

@@ -333,5 +333,4 @@ getDisplayedColumnsRightWidth(): number;

getVirtualHeaderGroupRow(type: ColumnPinnedType, dept: number): IHeaderColumn[];
private extractViewportRows;
private calculateHeaderRows;
private extractViewport;
private filterOutColumnsWithinViewport;
refreshFlexedColumns(params?: {

@@ -345,3 +344,3 @@ resizingCols?: Column[];

}): Column[];
sizeColumnsToFit(gridWidth: any, source?: ColumnEventType, silent?: boolean): void;
sizeColumnsToFit(gridWidth: any, source?: ColumnEventType, silent?: boolean, params?: ISizeColumnsToFitParams): void;
private buildDisplayedTrees;

@@ -348,0 +347,0 @@ private updateDisplayedMap;

@@ -21,2 +21,3 @@ import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "../../main";

extractRowCellValue(column: Column, index: number, accumulatedRowIndex: number, type: string, node: RowNode): any;
private shouldRenderGroupSummaryCell;
private getHeaderName;

@@ -23,0 +24,0 @@ private createValueForGroupNode;

@@ -6,4 +6,2 @@ import { BeanStub } from "../context/beanStub";

private loggerFactory;
private columnApi;
private gridApi;
private mouseEventService;

@@ -10,0 +8,0 @@ private currentDragParams;

@@ -578,2 +578,4 @@ import { CellClickedEvent, CellContextMenuEvent, CellDoubleClickedEvent } from "../events";

export interface CellClassParams<TData = any, TValue = any> extends RowClassParams<TData> {
/** Column for this callback */
column: Column;
/** The colDef associated with the column for this cell */

@@ -580,0 +582,0 @@ colDef: ColDef<TData>;

@@ -20,2 +20,3 @@ import { IHeaderColumn } from "./iHeaderColumn";

static EVENT_SORT_CHANGED: string;
static EVENT_COL_DEF_CHANGED: string;
static EVENT_MENU_VISIBLE_CHANGED: string;

@@ -27,5 +28,2 @@ static EVENT_ROW_GROUP_CHANGED: string;

private columnUtils;
private columnApi;
private gridApi;
private context;
private readonly colId;

@@ -32,0 +30,0 @@ private colDef;

import { RowNode, RowPinnedType } from './entities/rowNode';
import { Column, ColumnPinnedType } from './entities/column';
import { ColDef } from './entities/colDef';
import { GridApi } from './gridApi';
import { ColumnApi } from './columns/columnApi';
import { ProvidedColumnGroup } from './entities/providedColumnGroup';

@@ -14,2 +12,3 @@ import { FilterRequestSource } from './filter/filterManager';

import { AgChartThemeOverrides } from "./interfaces/iAgChartOptions";
import { AgGridCommon } from './interfaces/iCommon';
export { Events } from './eventKeys';

@@ -28,2 +27,4 @@ export interface ModelUpdatedEvent<TData = any> extends AgGridEvent<TData> {

newPage: boolean;
/** true if all we did is changed row height, data still the same, no need to clear the undo/redo stacks */
keepUndoRedoStack?: boolean;
}

@@ -44,5 +45,3 @@ export interface PaginationChangedEvent<TData = any> extends AgGridEvent<TData> {

}
export interface AgGridEvent<TData> extends AgEvent {
api: GridApi<TData>;
columnApi: ColumnApi;
export interface AgGridEvent<TData> extends AgGridCommon<TData>, AgEvent {
}

@@ -115,6 +114,6 @@ export interface ToolPanelVisibleChangedEvent<TData = any> extends AgGridEvent<TData> {

}
export interface ColumnPanelItemDragStartEvent extends AgEvent {
export interface ColumnPanelItemDragStartEvent<TData = any> extends AgGridEvent<TData> {
column: Column | ProvidedColumnGroup;
}
export interface ColumnPanelItemDragEndEvent extends AgEvent {
export interface ColumnPanelItemDragEndEvent<TData = any> extends AgGridEvent<TData> {
}

@@ -326,4 +325,2 @@ export interface DragEvent<TData = any> extends AgGridEvent<TData> {

rowPinned: RowPinnedType;
/** The context as provided on `gridOptions.context` */
context: any;
/** If event was due to browser event (eg click), this is the browser event */

@@ -434,11 +431,11 @@ event?: Event | null;

}
export interface StoreUpdatedEvent extends AgEvent {
export interface StoreUpdatedEvent<TData = any> extends AgGridEvent<TData> {
}
export interface LeftPinnedWidthChangedEvent extends AgEvent {
export interface LeftPinnedWidthChangedEvent<TData = any> extends AgGridEvent<TData> {
}
export interface RightPinnedWidthChangedEvent extends AgEvent {
export interface RightPinnedWidthChangedEvent<TData = any> extends AgGridEvent<TData> {
}
export interface RowContainerHeightChanged extends AgEvent {
export interface RowContainerHeightChanged<TData = any> extends AgGridEvent<TData> {
}
export interface DisplayedRowsChangedEvent extends AgEvent {
export interface DisplayedRowsChangedEvent<TData = any> extends AgGridEvent<TData> {
}

@@ -1,6 +0,6 @@

import { LoggerFactory } from "./logger";
import { AgEvent } from "./events";
import { GridOptionsWrapper } from "./gridOptionsWrapper";
import { IEventEmitter } from "./interfaces/iEventEmitter";
import { GridOptionsWrapper } from "./gridOptionsWrapper";
import { AgEvent } from "./events";
import { IFrameworkOverrides } from "./interfaces/iFrameworkOverrides";
import { LoggerFactory } from "./logger";
export declare class EventService implements IEventEmitter {

@@ -12,2 +12,3 @@ private allSyncListeners;

private frameworkOverrides;
private gridOptionsWrapper?;
private asyncFunctionsQueue;

@@ -14,0 +15,0 @@ private scheduled;

@@ -13,4 +13,2 @@ import { AgPromise } from '../utils';

private rowModel;
private columnApi;
private gridApi;
private userComponentFactory;

@@ -17,0 +15,0 @@ private rowRenderer;

@@ -16,4 +16,2 @@ import { BeanStub } from "./context/beanStub";

private readonly headerNavigationService;
private readonly columnApi;
private readonly gridApi;
private readonly rowRenderer;

@@ -20,0 +18,0 @@ private readonly rowPositionUtils;

@@ -7,3 +7,3 @@ import { AlignedGridsService } from "./alignedGridsService";

import { Column } from "./entities/column";
import { ChartRef, GetChartToolbarItems, GetContextMenuItems, GetMainMenuItems, GetRowIdFunc, GetRowNodeIdFunc, GetServerSideGroupKey, IsApplyServerSideTransaction, IsRowMaster, IsRowSelectable, IsServerSideGroup, RowClassParams, ServerSideGroupLevelParams } from "./entities/gridOptions";
import { ChartRef, GetChartToolbarItems, GetContextMenuItems, GetMainMenuItems, GetRowIdFunc, GetRowNodeIdFunc, GetServerSideGroupKey, IsApplyServerSideTransaction, IsRowMaster, IsRowSelectable, IsServerSideGroup, RowClassParams, RowGroupingDisplayType, ServerSideGroupLevelParams } from "./entities/gridOptions";
import { GetGroupRowAggParams, GetServerSideGroupLevelParamsParams, InitialGroupOrderComparatorParams, IsFullWidthRowParams, IsServerSideGroupOpenByDefaultParams, NavigateToNextCellParams, NavigateToNextHeaderParams, PaginationNumberFormatterParams, PostProcessPopupParams, PostSortRowsParams, ProcessRowParams, RowHeightParams, TabToNextCellParams, TabToNextHeaderParams } from "./entities/iCallbackParams";

@@ -120,2 +120,18 @@ import { RowNode, RowPinnedType } from "./entities/rowNode";

}
export interface ISizeColumnsToFitParams {
/** Defines a default minimum width for every column (does not override the column minimum width) */
defaultMinWidth?: number;
/** Defines a default maximum width for every column (does not override the column maximum width) */
defaultMaxWidth?: number;
/** Provides a minimum and/or maximum width to specific columns */
columnLimits?: IColumnLimit[];
}
export interface IColumnLimit {
/** Selector for the column to which these dimension limits will apply */
key: Column | string;
/** Defines a minimum width for this column (does not override the column minimum width) */
minWidth?: number;
/** Defines a maximum width for this column (does not override the column maximum width) */
maxWidth?: number;
}
export declare function unwrapUserComp<T>(comp: T): T;

@@ -206,2 +222,8 @@ export declare class GridApi<TData = any> {

setServerSideDatasource(datasource: IServerSideDatasource): void;
/**
* Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.
*
* Note this purges all the cached data and reloads all the rows of the grid.
* */
setCacheBlockSize(blockSize: number): void;
/** Set new datasource for Infinite Row Model. */

@@ -350,4 +372,6 @@ setDatasource(datasource: IDatasource): void;

recomputeAggregates(): void;
/** Sets columns to adjust in size to fit the grid horizontally. */
sizeColumnsToFit(): void;
/**
* Sets columns to adjust in size to fit the grid horizontally.
**/
sizeColumnsToFit(params?: ISizeColumnsToFitParams): void;
/** Show the 'loading' overlay. */

@@ -563,2 +587,3 @@ showLoadingOverlay(): void;

setGroupRemoveLowestSingleChildren(value: boolean): void;
setGroupDisplayType(value: RowGroupingDisplayType): void;
/** Tells the grid a row height has changed. To be used after calling `rowNode.setRowHeight(newHeight)`. */

@@ -565,0 +590,0 @@ onRowHeightChanged(): void;

@@ -8,2 +8,3 @@ import { BeanStub } from "../context/beanStub";

import { IRowModel } from "../interfaces/iRowModel";
import { ISizeColumnsToFitParams } from "../gridApi";
export declare enum RowAnimationCssClasses {

@@ -87,5 +88,5 @@ ANIMATION_ON = "ag-row-animation",

private setStickyTopOffsetTop;
sizeColumnsToFit(nextTimeout?: number): void;
sizeColumnsToFit(params?: ISizeColumnsToFitParams, nextTimeout?: number): void;
addScrollEventListener(listener: () => void): void;
removeScrollEventListener(listener: () => void): void;
}

@@ -7,4 +7,2 @@ import { BeanStub } from "../context/beanStub";

private animationFrameService;
private columnApi;
private gridApi;
private paginationProxy;

@@ -11,0 +9,0 @@ private rowModel;

@@ -9,8 +9,5 @@ import { CellPosition } from "../entities/cellPosition";

export declare class NavigationService extends BeanStub {
private readonly columnApi;
private readonly gridApi;
private mouseEventService;
private paginationProxy;
private focusService;
private animationFrameService;
private rangeService;

@@ -17,0 +14,0 @@ private columnModel;

@@ -33,4 +33,2 @@ import { DraggingEvent, DragSourceType, DropTarget } from "../dragAndDrop/dragAndDropService";

private rangeService;
private columnApi;
private gridApi;
private clientSideRowModel;

@@ -37,0 +35,0 @@ private eContainer;

@@ -8,4 +8,2 @@ import { BeanStub } from "../context/beanStub";

export declare class ScrollVisibleService extends BeanStub {
private columnApi;
private gridApi;
ctrlsService: CtrlsService;

@@ -12,0 +10,0 @@ private horizontalScrollShowing;

@@ -7,4 +7,2 @@ import { BeanStub } from "../context/beanStub";

private scrollVisibleService;
private columnApi;
private gridApi;
private centerContainerCtrl;

@@ -11,0 +9,0 @@ private gridBodyCtrl;

@@ -14,4 +14,2 @@ import { FocusService } from "../focusService";

export declare class GridCtrl extends BeanStub {
private readonly columnApi;
private readonly gridApi;
protected readonly focusService: FocusService;

@@ -18,0 +16,0 @@ private readonly resizeObserverService;

@@ -25,2 +25,3 @@ import { ColumnApi } from './columns/columnApi';

static PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN: 'groupRemoveLowestSingleChildren';
static PROP_GROUP_DISPLAY_TYPE: 'groupDisplayType';
static PROP_PIVOT_HEADER_HEIGHT: 'pivotHeaderHeight';

@@ -78,2 +79,4 @@ static PROP_SUPPRESS_CLIPBOARD_PASTE: 'suppressClipboardPaste';

static PROP_GET_SERVER_SIDE_GROUP_KEY: 'getServerSideGroupKey';
static PROP_AUTO_GROUP_COLUMN_DEF: 'autoGroupColumnDef';
static PROP_DEFAULT_COL_DEF: 'defaultColDef';
private readonly gridOptions;

@@ -80,0 +83,0 @@ private readonly eventService;

@@ -26,3 +26,2 @@ import { UserCompDetails } from "../../../components/framework/userComponentFactory";

private readonly columnApi;
private colDefVersion;
private comp;

@@ -59,3 +58,3 @@ private column;

removeDragSource(): void;
private onNewColumnsLoaded;
private onColDefChanged;
private updateState;

@@ -62,0 +61,0 @@ addRefreshFunction(func: () => void): void;

@@ -38,2 +38,3 @@ import { BeanStub } from "../../context/beanStub";

setHorizontalScroll(offset: number): void;
private resetScrollLeft;
private setupPinnedWidth;

@@ -40,0 +41,0 @@ getHeaderCtrlForColumn(column: Column): HeaderCellCtrl | undefined;

@@ -238,2 +238,7 @@ export declare type FontStyle = 'normal' | 'italic' | 'oblique';

}
export interface AgChartLegendLabelFormatterParams {
id: string;
itemId: any;
value: string;
}
export interface AgChartLegendLabelOptions {

@@ -253,3 +258,3 @@ /** If the label text exceeds the maximum length, it will be truncated and an ellipsis will be appended to indicate this. */

/** Function used to render legend labels. Where `id` is a series ID, `itemId` is component ID within a series, such as a field name or an item index. */
formatter?: (id: string, itemId: any, value: string) => string;
formatter?: (params: AgChartLegendLabelFormatterParams) => string;
}

@@ -269,3 +274,5 @@ export interface AgChartLegendItemOptions {

export interface AgChartLegendClickEvent {
/** Legend item id - based on series id. */
/** Series id */
seriesId: string;
/** Legend item id - usually yKey value for cartesian series. */
itemId: string;

@@ -530,2 +537,4 @@ /** Whether the legend item is currently enabled or not. */

fill?: CssColor;
/** The opacity of the fill for the highlighted item. */
fillOpacity?: Opacity;
/** The stroke colour of a marker when tapped or hovered over. Use `undefined` for no highlight. */

@@ -567,3 +576,3 @@ stroke?: CssColor;

}
export interface AgBaseSeriesListeners {
export interface AgBaseSeriesListeners<DatumType> {
/** The listener to call when a node (marker, column, bar, tile or a pie slice) in the series is clicked. */

@@ -573,3 +582,3 @@ nodeClick: (params: {

series: any;
datum: any;
datum: DatumType;
xKey: string;

@@ -579,5 +588,5 @@ yKey: string;

}
export interface AgBaseSeriesOptions {
export interface AgBaseSeriesOptions<DatumType, ListenerDatumType = DatumType> {
/** The data to use when rendering the series. If this is not supplied, data must be set on the chart instead. */
data?: any[];
data?: DatumType[];
/** Whether or not to display the series. */

@@ -590,5 +599,3 @@ visible?: boolean;

/** A map of event names to event listeners. */
listeners?: AgBaseSeriesListeners | {
[key: string]: Function;
};
listeners?: AgBaseSeriesListeners<ListenerDatumType>;
/** Configuration for series markers and series line highlighting when a marker / data point or a legend item is hovered over. */

@@ -598,30 +605,51 @@ highlightStyle?: AgSeriesHighlightStyle;

export interface AgTooltipRendererResult {
/** Title text for the tooltip header. */
title?: string;
/** Content text for the tooltip body. */
content?: string;
}
export interface AgSeriesTooltipRendererParams {
/** Datum from the series data array that the tooltip is being rendered for. */
readonly datum: any;
/** Series title or yName depending on series configuration. */
readonly title?: string;
/** Series primary colour, as selected from the active theme, series options or formatter. */
readonly color?: CssColor;
}
export interface AgCartesianSeriesTooltipRendererParams extends AgSeriesTooltipRendererParams {
/** xKey as specified on series options. */
readonly xKey: string;
/** xValue as read from series data via the xKey property. */
readonly xValue?: any;
/** xName as specified on series options. */
readonly xName?: string;
/** yKey as specified on series options. */
readonly yKey: string;
/** yValue as read from series data via the yKey property. */
readonly yValue?: any;
/** yName as specified on series options. */
readonly yName?: string;
}
export interface AgPolarSeriesTooltipRendererParams extends AgSeriesTooltipRendererParams {
/** angleKey as specified on series options. */
readonly angleKey: string;
/** angleValue as read from series data via the angleKey property. */
readonly angleValue?: any;
/** angleName as specified on series options. */
readonly angleName?: string;
/** radiusKey as specified on series options. */
readonly radiusKey?: string;
/** radiusValue as read from series data via the radiusKey property. */
readonly radiusValue?: any;
/** radiusName as specified on series options. */
readonly radiusName?: string;
}
export interface AgScatterSeriesTooltipRendererParams extends AgCartesianSeriesTooltipRendererParams {
/** sizeKey as specified on series options. */
readonly sizeKey?: string;
/** sizeName as specified on series options. */
readonly sizeName?: string;
/** labelKey as specified on series options. */
readonly labelKey?: string;
/** labelName as specified on series options. */
readonly labelName?: string;

@@ -649,4 +677,4 @@ }

}
export interface AgSeriesMarkerFormatterParams {
datum: any;
export interface AgSeriesMarkerFormatterParams<DatumType> {
datum: DatumType;
fill?: CssColor;

@@ -658,3 +686,3 @@ stroke?: CssColor;

}
export interface AgCartesianSeriesMarkerFormatterParams extends AgSeriesMarkerFormatterParams {
export interface AgCartesianSeriesMarkerFormatterParams<DatumType> extends AgSeriesMarkerFormatterParams<DatumType> {
xKey: string;

@@ -669,8 +697,8 @@ yKey: string;

}
export declare type AgCartesianSeriesMarkerFormatter = (params: AgCartesianSeriesMarkerFormatterParams) => AgCartesianSeriesMarkerFormat | undefined;
export interface AgCartesianSeriesMarker extends AgSeriesMarker {
export declare type AgCartesianSeriesMarkerFormatter<DatumType> = (params: AgCartesianSeriesMarkerFormatterParams<DatumType>) => AgCartesianSeriesMarkerFormat | undefined;
export interface AgCartesianSeriesMarker<DatumType> extends AgSeriesMarker {
/** Function used to return formatting for individual markers, based on the supplied information. If the current marker is highlighted, the `highlighted` property will be set to `true`; make sure to check this if you want to differentiate between the highlighted and un-highlighted states. */
formatter?: AgCartesianSeriesMarkerFormatter;
formatter?: AgCartesianSeriesMarkerFormatter<DatumType>;
}
export interface AgAreaSeriesMarker extends AgCartesianSeriesMarker {
export interface AgAreaSeriesMarker<DatumType> extends AgCartesianSeriesMarker<DatumType> {
}

@@ -681,6 +709,6 @@ export interface AgSeriesTooltip {

}
export interface AgLineSeriesLabelOptions extends AgChartLabelOptions {
export interface AgLineSeriesLabelOptions<DatumType> extends AgChartLabelOptions {
/** Function used to turn 'yKey' values into text to be displayed by a label. By default the values are simply stringified. */
formatter?: (params: {
value: any;
value: DatumType;
}) => string;

@@ -694,5 +722,5 @@ }

/** Configuration for line series. */
export interface AgLineSeriesOptions extends AgBaseSeriesOptions {
export interface AgLineSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
type?: 'line';
marker?: AgCartesianSeriesMarker;
marker?: AgCartesianSeriesMarker<DatumType>;
/** The key to use to retrieve x-values from the data. */

@@ -719,3 +747,3 @@ xKey?: string;

/** Configuration for the labels shown on top of data points. */
label?: AgLineSeriesLabelOptions;
label?: AgLineSeriesLabelOptions<DatumType>;
/** Series-specific tooltip configuration. */

@@ -730,3 +758,3 @@ tooltip?: AgLineSeriesTooltip;

}
export interface AgScatterSeriesMarker extends AgCartesianSeriesMarker {
export interface AgScatterSeriesMarker<DatumType> extends AgCartesianSeriesMarker<DatumType> {
/** If sizeKey is used, explicitly specifies the extent of the domain of it's values. */

@@ -736,7 +764,7 @@ domain?: [number, number];

/** Configuration for scatter/bubble series. */
export interface AgScatterSeriesOptions extends AgBaseSeriesOptions {
export interface AgScatterSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
/** Configuration for the treemap series. */
type?: 'scatter';
/** Configuration for the markers used in the series. */
marker?: AgScatterSeriesMarker;
marker?: AgScatterSeriesMarker<DatumType>;
/** Configuration for the labels shown on top of data points. */

@@ -779,13 +807,13 @@ label?: AgScatterSeriesLabelOptions;

}
export interface AgAreaSeriesLabelOptions extends AgChartLabelOptions {
export interface AgAreaSeriesLabelOptions<DatumType> extends AgChartLabelOptions {
/** Function used to turn 'yKey' values into text to be displayed by a label. By default the values are simply stringified. */
formatter?: (params: {
value: any;
value: DatumType;
}) => string;
}
/** Configuration for area series. */
export interface AgAreaSeriesOptions extends AgBaseSeriesOptions {
export interface AgAreaSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
type?: 'area';
/** Configuration for the markers used in the series. */
marker?: AgAreaSeriesMarker;
marker?: AgAreaSeriesMarker<DatumType>;
/** The number to normalise the area stacks to. For example, if `normalizedTo` is set to `100`, the stacks will all be scaled proportionally so that their total height is always 100. */

@@ -841,3 +869,3 @@ normalizedTo?: number;

/** Configuration for the labels shown on top of data points. */
label?: AgAreaSeriesLabelOptions;
label?: AgAreaSeriesLabelOptions<DatumType>;
/** Series-specific tooltip configuration. */

@@ -855,4 +883,4 @@ tooltip?: AgAreaSeriesTooltip;

}
export interface AgBarSeriesFormatterParams {
readonly datum: any;
export interface AgBarSeriesFormatterParams<DatumType> {
readonly datum: DatumType;
readonly fill?: CssColor;

@@ -875,3 +903,3 @@ readonly stroke?: CssColor;

/** Configuration for bar/column series. */
export interface AgBarSeriesOptions extends AgBaseSeriesOptions {
export interface AgBarSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
type?: 'bar' | 'column';

@@ -939,8 +967,8 @@ /** Whether to show different y-values as separate bars (grouped) or not (stacked). */

/** Function used to return formatting for individual bars/columns, based on the given parameters. If the current bar/column is highlighted, the `highlighted` property will be set to `true`; make sure to check this if you want to differentiate between the highlighted and un-highlighted states. */
formatter?: (params: AgBarSeriesFormatterParams) => AgBarSeriesFormat;
formatter?: (params: AgBarSeriesFormatterParams<DatumType>) => AgBarSeriesFormat;
}
export interface AgHistogramSeriesLabelOptions extends AgChartLabelOptions {
export interface AgHistogramSeriesLabelOptions<DatumType> extends AgChartLabelOptions {
/** Function used to turn 'yKey' values into text to be displayed by a label. By default the values are simply stringified. */
formatter?: (params: {
value: number;
value: DatumType;
}) => string;

@@ -952,4 +980,10 @@ }

}
export interface AgHistogramBinDatum<DatumType> {
data: DatumType[];
aggregatedValue: number;
frequency: number;
domain: [number, number];
}
/** Configuration for histogram series. */
export interface AgHistogramSeriesOptions extends AgBaseSeriesOptions {
export interface AgHistogramSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType, AgHistogramBinDatum<DatumType>> {
type?: 'histogram';

@@ -989,7 +1023,7 @@ /** The colour of the fill for the histogram bars. */

/** Configuration for the labels shown on bars. */
label?: AgHistogramSeriesLabelOptions;
label?: AgHistogramSeriesLabelOptions<DatumType>;
/** Series-specific tooltip configuration. */
tooltip?: AgHistogramSeriesTooltip;
}
export interface AgPieSeriesLabelOptions extends AgChartLabelOptions {
export interface AgPieSeriesLabelOptions<DatumType> extends AgChartLabelOptions {
/** Distance in pixels between the callout line and the label text. */

@@ -999,5 +1033,8 @@ offset?: PixelSize;

minAngle?: number;
formatter?: (params: {
value: DatumType;
}) => string;
}
export interface AgPieSeriesFormatterParams {
readonly datum: any;
export interface AgPieSeriesFormatterParams<DatumType> {
readonly datum: DatumType;
readonly fill?: CssColor;

@@ -1031,3 +1068,3 @@ readonly stroke?: CssColor;

/** Configuration for pie/doughnut series. */
export interface AgPieSeriesOptions extends AgBaseSeriesOptions {
export interface AgPieSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
type?: 'pie';

@@ -1037,3 +1074,3 @@ /** Configuration for the series title. */

/** Configuration for the labels used for the segments. */
label?: AgPieSeriesLabelOptions;
label?: AgPieSeriesLabelOptions<DatumType>;
/** Configuration for the callouts used with the labels for the segments. */

@@ -1081,6 +1118,8 @@ callout?: AgPieSeriesCalloutOptions;

tooltip?: AgPieSeriesTooltip;
formatter?: (params: AgPieSeriesFormatterParams) => AgPieSeriesFormat;
formatter?: (params: AgPieSeriesFormatterParams<DatumType>) => AgPieSeriesFormat;
}
export interface AgPieSeriesTooltipRendererParams extends AgPolarSeriesTooltipRendererParams {
/** labelKey as specified on series options. */
labelKey?: string;
/** labelName as specified on series options. */
labelName?: string;

@@ -1092,6 +1131,6 @@ }

}
export interface AgTreemapNodeDatum {
datum: any;
parent?: AgTreemapNodeDatum;
children?: AgTreemapNodeDatum[];
export interface AgTreemapNodeDatum<DatumType> {
datum: DatumType;
parent?: AgTreemapNodeDatum<DatumType>;
children?: AgTreemapNodeDatum<DatumType>[];
depth: number;

@@ -1103,4 +1142,4 @@ colorValue: number;

}
export interface AgTreemapSeriesTooltipRendererParams {
datum: AgTreemapNodeDatum;
export interface AgTreemapSeriesTooltipRendererParams<DatumType> {
datum: AgTreemapNodeDatum<DatumType>;
sizeKey: string;

@@ -1111,5 +1150,5 @@ labelKey: string;

}
export interface AgTreemapSeriesTooltip extends AgSeriesTooltip {
export interface AgTreemapSeriesTooltip<DatumType> extends AgSeriesTooltip {
/** Function used to create the content for tooltips. */
renderer?: (params: AgTreemapSeriesTooltipRendererParams) => string | AgTooltipRendererResult;
renderer?: (params: AgTreemapSeriesTooltipRendererParams<DatumType>) => string | AgTooltipRendererResult;
}

@@ -1127,3 +1166,3 @@ export interface AgTreemapSeriesLabelsOptions {

/** Configuration for the treemap series. */
export interface AgTreemapSeriesOptions extends AgBaseSeriesOptions {
export interface AgTreemapSeriesOptions<DatumType = any> extends AgBaseSeriesOptions<DatumType> {
type?: 'treemap';

@@ -1149,3 +1188,3 @@ /** The label configuration for the top-level tiles. */

/** Series-specific tooltip configuration. */
tooltip?: AgTreemapSeriesTooltip;
tooltip?: AgTreemapSeriesTooltip<DatumType>;
/** The amount of padding in pixels inside of each treemap tile. Increasing `nodePadding` will reserve more space for parent labels. */

@@ -1152,0 +1191,0 @@ nodePadding?: PixelSize;

@@ -53,2 +53,3 @@ import { IRowModel } from './iRowModel';

afterColumnsChanged?: boolean;
keepUndoRedoStack?: boolean;
}

@@ -14,2 +14,3 @@ import { IRowModel } from "./iRowModel";

forEachNodeAfterFilterAndSort(callback: (node: RowNode, index: number) => void): void;
resetRootStore(): void;
}

@@ -16,0 +17,0 @@ export interface IServerSideTransactionManager {

@@ -7,4 +7,2 @@ import { RowBounds } from "../interfaces/iRowModel";

private rowModel;
private columnApi;
private gridApi;
private active;

@@ -11,0 +9,0 @@ private paginateChildRows;

@@ -1,6 +0,4 @@

import { RowNode } from "../entities/rowNode";
import { RowNode, RowPinnedType } from "../entities/rowNode";
import { BeanStub } from "../context/beanStub";
export declare class PinnedRowModel extends BeanStub {
private columnApi;
private gridApi;
private beans;

@@ -10,5 +8,5 @@ private pinnedTopRows;

init(): void;
isEmpty(floating: string): boolean;
isRowsToRender(floating: string): boolean;
getRowAtPixel(pixel: number, floating: string): number;
isEmpty(floating: RowPinnedType): boolean;
isRowsToRender(floating: RowPinnedType): boolean;
getRowAtPixel(pixel: number, floating: RowPinnedType): number;
setPinnedTopRowData(rowData: any[] | undefined): void;

@@ -15,0 +13,0 @@ setPinnedBottomRowData(rowData: any[] | undefined): void;

@@ -155,3 +155,3 @@ import { Beans } from "./../beans";

onColumnHover(): void;
onNewColumnsLoaded(): void;
onColDefChanged(): void;
private setWrapText;

@@ -158,0 +158,0 @@ dispatchCellContextMenuEvent(event: Event | null): void;

@@ -0,6 +1,4 @@

import { BeanStub } from "../context/beanStub";
import { Column } from "../entities/column";
import { BeanStub } from "../context/beanStub";
export declare class ColumnHoverService extends BeanStub {
private columnApi;
private gridApi;
private selectedColumns;

@@ -7,0 +5,0 @@ setMouseOver(columns: Column[]): void;

@@ -21,4 +21,2 @@ import { RowCtrl } from "./row/rowCtrl";

private focusService;
private columnApi;
private gridApi;
private beans;

@@ -44,2 +42,3 @@ private rowContainerHeightService;

private stickyRowFeature;
private dataFirstRenderedFired;
private postConstruct;

@@ -74,3 +73,2 @@ private initialise;

stopEditing(cancel?: boolean): void;
private onNewColumnsLoaded;
getAllCellCtrls(): CellCtrl[];

@@ -77,0 +75,0 @@ private getAllRowCtrls;

@@ -6,4 +6,2 @@ import { RowNode } from "./entities/rowNode";

private rowModel;
private columnApi;
private gridApi;
private selectedNodes;

@@ -10,0 +8,0 @@ private logger;

@@ -14,4 +14,2 @@ import { BeanStub } from "./context/beanStub";

private columnModel;
private columnApi;
private gridApi;
progressSort(column: Column, multiSort: boolean, source: ColumnEventType): void;

@@ -18,0 +16,0 @@ setSortForColumn(column: Column, sort: 'asc' | 'desc' | null, multiSort: boolean, source: ColumnEventType): void;

@@ -1,2 +0,2 @@

// Type definitions for ag-grid-community v28.1.0
// Type definitions for ag-grid-community v28.1.1
// Project: https://www.ag-grid.com/

@@ -3,0 +3,0 @@ // Definitions by: Niall Crosby <https://github.com/ag-grid/>

{
"name": "ag-grid-community",
"version": "28.1.0",
"version": "28.1.1",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -5,0 +5,0 @@ "main": "./dist/ag-grid-community.cjs.js",

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

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

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