@procore/data-table 14.10.0 → 14.12.0

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.
@@ -1,5 +1,5 @@
1
1
  import * as _ag_grid_community_core from '@ag-grid-community/core';
2
- import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
2
+ import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, TabToNextCellParams, CellPosition, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
3
3
  import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
5
  import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
@@ -118,10 +118,12 @@ interface ClientSideFilterProps<TValue = any[] | NumberFilterModel> {
118
118
  onChange?: (values: any[]) => void;
119
119
  onRemove?: () => void;
120
120
  overlayMatchesTriggerWidth?: boolean;
121
+ disabled?: boolean;
121
122
  }
122
123
  interface ServerSideFilterProps {
123
124
  columnDefinition: ColumnDefinition;
124
125
  overlayMatchesTriggerWidth?: boolean;
126
+ disabled?: boolean;
125
127
  }
126
128
  type FilterProps<TValue = any[] | NumberFilterModel> = ClientSideFilterProps<TValue> | ServerSideFilterProps;
127
129
 
@@ -313,12 +315,24 @@ interface MultiSelectCellRendererParams<TValue, OptionValue> {
313
315
  getValue?: (cellValue: TValue) => OptionValue[];
314
316
  typographyProps?: TypographyProps;
315
317
  }
316
- type MultiSelectCellColumnDefinition<TValue = any[], OptionValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof MultiSelectCellRenderer, MultiSelectCellRendererParams<TValue, OptionValue>, never, // editor does not exist
317
- never, // editor does not exist
318
- TFilterOption, TFilterValue, 'multiSelect', MultiSelectBulkEditorParams>;
318
+ type OnSearchParams$1 = {
319
+ data: MultiSelectCellEditorProps['data'];
320
+ event: React__default.ChangeEvent<HTMLInputElement>;
321
+ };
322
+ interface MultiSelectCellEditorParams<TValue> {
323
+ getId?: (cellValue: TValue) => number | string;
324
+ getLabel?: (cellValue: TValue) => string;
325
+ placeholder?: string;
326
+ selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>, offset?: number) => Promise<TValue[]>);
327
+ onSearch?: (params: OnSearchParams$1) => TValue[] | Promise<TValue[]>;
328
+ }
329
+ interface MultiSelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, MultiSelectCellColumnDefinition<TValue>> {
330
+ }
331
+ type MultiSelectCellColumnDefinition<TValue = any[], OptionValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof MultiSelectCellRenderer, MultiSelectCellRendererParams<TValue, OptionValue>, typeof MultiSelectCellEditor, MultiSelectCellEditorParams<TValue>, TFilterOption, TFilterValue, 'multiSelect', MultiSelectBulkEditorParams>;
319
332
  interface MultiSelectCellRendererProps<TValue = any[], OptionValue = any> extends DataTableCellRendererProps<TValue, MultiSelectCellColumnDefinition<TValue, OptionValue>> {
320
333
  }
321
334
  declare const MultiSelectCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
335
+ declare const MultiSelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
322
336
 
323
337
  interface NumberCellRendererParams {
324
338
  typographyProps?: TypographyProps;
@@ -400,12 +414,12 @@ type OnSearchParams = {
400
414
  interface SelectCellEditorParams<TValue> {
401
415
  clearable?: boolean;
402
416
  getId?: (item: TValue) => number | string;
403
- getOptionLabel?: (option: any) => string;
417
+ getOptionLabel?: (option: unknown) => string;
404
418
  placeholder?: string;
405
- selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>) => Promise<TValue[]>);
419
+ selectOptions: TValue[] | ((rowData: Record<string, unknown>) => TValue[]) | ((rowData: Record<string, unknown>, offset?: number) => Promise<TValue[]>);
406
420
  onSearch?: (params: OnSearchParams) => TValue[] | Promise<TValue[]>;
407
421
  }
408
- interface SelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, SelectCellColumnDefinition<TValue>> {
422
+ interface SelectCellEditorProps<TValue = unknown> extends DataTableCellEditorProps<TValue, SelectCellColumnDefinition<TValue>> {
409
423
  }
410
424
  declare const SelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
411
425
 
@@ -574,6 +588,10 @@ interface TableApi {
574
588
  * @private
575
589
  */
576
590
  getCellEditorInstances: () => ICellEditor[];
591
+ /**
592
+ * Returns an array of transformed visible row nodes
593
+ */
594
+ getVisibleRowNodes: () => RowNode[];
577
595
  /**
578
596
  * Get the sorted leaf and group nodes remaining after filtering. Note: This only works for tables using the client side row model.
579
597
  */
@@ -648,7 +666,7 @@ interface TableApi {
648
666
  */
649
667
  setIsRowSelectable?(isRowSelectableFunc: IsRowSelectable): void;
650
668
  }
651
- type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
669
+ type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getVisibleRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
652
670
  type AgDomLayout = 'normal' | 'autoHeight' | 'print' | undefined;
653
671
  interface IsRowSelectable {
654
672
  (node: RowNode): boolean;
@@ -719,6 +737,8 @@ interface DetailRowConfig<TRow = any> {
719
737
  autoGroupColumnDefinition?: ColumnDefinition;
720
738
  columnDefinitions: ColumnDefinition[];
721
739
  getDetailRowData: (params: GetDetailRowDataParams<TRow>) => void;
740
+ groupDefaultExpanded?: boolean;
741
+ groupsAlwaysExpanded?: boolean;
722
742
  height?: 'auto' | number;
723
743
  isExpandable?: (rowData: TRow) => boolean;
724
744
  customFooters?: CustomFooterConfig[];
@@ -937,6 +957,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
937
957
  getGroupRowAgg?: (nodes: RowNode[], currentGroupsValues: string[]) => TRow;
938
958
  getRowNodeId?: (data: TRow) => any;
939
959
  getSubtotalLabel?: (columnDefinition: ColumnDefinition, rowData: TRow, value: string | number) => string;
960
+ groupsAlwaysExpanded?: boolean;
940
961
  groupDefaultExpanded?: number;
941
962
  groupIncludeFooter?: boolean;
942
963
  groupSelectsChildren?: boolean;
@@ -992,6 +1013,10 @@ interface TableProps<TRow = any, TBottomRow = any> {
992
1013
  suppressResetColumnsOption?: boolean;
993
1014
  suppressRowClickSelection?: boolean;
994
1015
  stickyExpandedGroupRows?: boolean;
1016
+ /**
1017
+ * Allows overriding the default behaviour for when user hits Tab key when a cell is focused
1018
+ */
1019
+ tabToNextCell?: (params: TabToNextCellParams<any, any>) => CellPosition | null;
995
1020
  }
996
1021
  type AggregationFunction<TValue> = (params: {
997
1022
  columnDefinition: ColumnDefinition;
@@ -1059,6 +1084,10 @@ interface ValueValidatorParams<TValue = any> {
1059
1084
  interface FrameworkComponents {
1060
1085
  [key: string]: React.ComponentType<any>;
1061
1086
  }
1087
+ interface TableFrameworkComponents {
1088
+ base: FrameworkComponents;
1089
+ detail: FrameworkComponents;
1090
+ }
1062
1091
  interface PinnedBottomRow extends Record<string, any> {
1063
1092
  footerId: 'grandTotal' | string;
1064
1093
  isAggData?: boolean;
@@ -1427,4 +1456,4 @@ declare const waitForAsyncCondition: (condition: Function, maxAttempts?: number,
1427
1456
  */
1428
1457
  declare const UNSAFE_useTableContext: () => InternalTableContext;
1429
1458
 
1430
- export { type AgDomLayout, type AgGetDetailRowDataParams, type AgSort, type AggregationFunction, type AnalyticEvent, _default$2 as Analytics, AnalyticsBulkClient, type AnalyticsBulkConfig, type AnalyticsClient, type AnalyticsConfig$1 as AnalyticsConfig, type AvatarStackItemFilter, type BooleanCellColumnDefinition, BooleanCellEditor, type BooleanCellEditorProps, BooleanCellRenderer, type BooleanCellRendererProps, type ButtonsCellColumnDefinition, ButtonsCellRenderer, type CSVExportConfig, type CellValueChangeParams, _default$1 as ClientSideDataTable, type ClientSideDataTableProps, type ColumnConfig, type ColumnDefinition, type ColumnGroupStateConfig, type CompanyCellColumnDefinition, CompanyCellRenderer, type CompanyCellRendererProps, type ContextPanelApi, type ContextPanelContent, type CurrencyCellColumnDefinition, CurrencyCellEditor, type CurrencyCellEditorProps, CurrencyCellRenderer, type CurrencyCellRendererProps, type CustomBulkEditorFields, type CustomEditorCell, type CustomFilter, type CustomFooterConfig, type CustomRendererCell, type DTExcelFormats, type DataTableCellEditorProps, type DataTableCellRendererProps, type DataTableConfig, type DataTableProps, type DataTableTranslations, type DateCellColumnDefinition, DateCellEditor, type DateCellEditorProps, DateCellRenderer, type DateCellRendererProps, DateFilterRenderer, type DateFilterSelectionType, QuickDateFilterRenderer as DateQuickFilterRenderer, type DateTimeCellColumnDefinition, DateTimeCellEditor, DateTimeCellRenderer, type DetailRowConfig, type EmptyRendererProps, type ExcelExportConfig, type ExtendedColDef, type FilterGroup, type FrameworkComponents, type GetDetailRowDataParams, type GetRowHeightWithFooters, GrandTotalsLabelRenderer, type GranularPartial, type GranularRequired, type GroupCellColumnDefinition, GroupCellRenderer, type HTMLStringExportConfig, type ISearchState, type IServerFilter, type IsEditableParams, type IsRowSelectable, type LinkCellColumnDefinition, LinkCellRenderer, type LinkCellRendererProps, type LocationColumnDefinition, type LocationFilterOpt, LocationFilterRenderer, LocationQuickFilterRenderer, type MultiSelectCellColumnDefinition, MultiSelectCellRenderer, type MultiSelectCellRendererProps, MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer, type NestedColumnDefinition, type NumberCellColumnDefinition, NumberCellEditor, type NumberCellEditorProps, NumberCellRenderer, type NumberCellRendererProps, NumberFilterRenderer, type PartialTableApi, type PeopleCellColumnDefinition, PeopleCellRenderer, type PeopleCellRendererProps, type PercentCellColumnDefinition, PercentCellEditor, type PercentCellEditorProps, PercentCellRenderer, type PercentCellRendererProps, PersonCellRenderer, type PillCellColumnDefinition, PillCellRenderer, type PillCellRendererProps, PillSelectCellEditor, type PillSelectCellEditorProps, type PinnedBottomRow, type RefreshServerSideDataParams, type RowActionsConfig, type RowActivePredicateParams, type RowGroupToggledEvent, type RowNode, type RowSelectablePredicateParams, type RowSelectionRef, SelectAllState, type SelectCellColumnDefinition, SelectCellEditor, type SelectCellEditorProps, SelectCellRenderer, type SelectCellRendererProps, _default as ServerSideDataTable, type DataTableProps as ServerSideDataTableProps, type ServerSideGetRowsParams, type ServerSideGetRowsRequest, type ServerSideParamsOptions, SingleSelectQuickFilterRenderer, type SortModel, type SuccessParams, type TableApi, type TablePanelProps, type TableProps, type TextAreaCellColumnDefinition, type TextAreaCellEditorProps, type TextAreaCellRendererProps, type TextCellColumnDefinition, TextCellEditor, type TextCellEditorProps, TextCellRenderer, type TextCellRendererProps, UNSAFE_useTableContext, type UpdateServerSideDataSourceParams, type ValueGetterParams, type ValueParserParams, type ValueSetterParams, type ValueValidator, type ValueValidatorParams, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };
1459
+ export { type AgDomLayout, type AgGetDetailRowDataParams, type AgSort, type AggregationFunction, type AnalyticEvent, _default$2 as Analytics, AnalyticsBulkClient, type AnalyticsBulkConfig, type AnalyticsClient, type AnalyticsConfig$1 as AnalyticsConfig, type AvatarStackItemFilter, type BooleanCellColumnDefinition, BooleanCellEditor, type BooleanCellEditorProps, BooleanCellRenderer, type BooleanCellRendererProps, type ButtonsCellColumnDefinition, ButtonsCellRenderer, type CSVExportConfig, type CellValueChangeParams, _default$1 as ClientSideDataTable, type ClientSideDataTableProps, type ColumnConfig, type ColumnDefinition, type ColumnGroupStateConfig, type CompanyCellColumnDefinition, CompanyCellRenderer, type CompanyCellRendererProps, type ContextPanelApi, type ContextPanelContent, type CurrencyCellColumnDefinition, CurrencyCellEditor, type CurrencyCellEditorProps, CurrencyCellRenderer, type CurrencyCellRendererProps, type CustomBulkEditorFields, type CustomEditorCell, type CustomFilter, type CustomFooterConfig, type CustomRendererCell, type DTExcelFormats, type DataTableCellEditorProps, type DataTableCellRendererProps, type DataTableConfig, type DataTableProps, type DataTableTranslations, type DateCellColumnDefinition, DateCellEditor, type DateCellEditorProps, DateCellRenderer, type DateCellRendererProps, DateFilterRenderer, type DateFilterSelectionType, QuickDateFilterRenderer as DateQuickFilterRenderer, type DateTimeCellColumnDefinition, DateTimeCellEditor, DateTimeCellRenderer, type DetailRowConfig, type EmptyRendererProps, type ExcelExportConfig, type ExtendedColDef, type FilterGroup, type FrameworkComponents, type GetDetailRowDataParams, type GetRowHeightWithFooters, GrandTotalsLabelRenderer, type GranularPartial, type GranularRequired, type GroupCellColumnDefinition, GroupCellRenderer, type HTMLStringExportConfig, type ISearchState, type IServerFilter, type IsEditableParams, type IsRowSelectable, type LinkCellColumnDefinition, LinkCellRenderer, type LinkCellRendererProps, type LocationColumnDefinition, type LocationFilterOpt, LocationFilterRenderer, LocationQuickFilterRenderer, type MultiSelectCellColumnDefinition, MultiSelectCellEditor, MultiSelectCellRenderer, type MultiSelectCellRendererProps, MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer, type NestedColumnDefinition, type NumberCellColumnDefinition, NumberCellEditor, type NumberCellEditorProps, NumberCellRenderer, type NumberCellRendererProps, NumberFilterRenderer, type PartialTableApi, type PeopleCellColumnDefinition, PeopleCellRenderer, type PeopleCellRendererProps, type PercentCellColumnDefinition, PercentCellEditor, type PercentCellEditorProps, PercentCellRenderer, type PercentCellRendererProps, PersonCellRenderer, type PillCellColumnDefinition, PillCellRenderer, type PillCellRendererProps, PillSelectCellEditor, type PillSelectCellEditorProps, type PinnedBottomRow, type RefreshServerSideDataParams, type RowActionsConfig, type RowActivePredicateParams, type RowGroupToggledEvent, type RowNode, type RowSelectablePredicateParams, type RowSelectionRef, SelectAllState, type SelectCellColumnDefinition, SelectCellEditor, type SelectCellEditorProps, SelectCellRenderer, type SelectCellRendererProps, _default as ServerSideDataTable, type DataTableProps as ServerSideDataTableProps, type ServerSideGetRowsParams, type ServerSideGetRowsRequest, type ServerSideParamsOptions, SingleSelectQuickFilterRenderer, type SortModel, type SuccessParams, type TableApi, type TableFrameworkComponents, type TablePanelProps, type TableProps, type TextAreaCellColumnDefinition, type TextAreaCellEditorProps, type TextAreaCellRendererProps, type TextCellColumnDefinition, TextCellEditor, type TextCellEditorProps, TextCellRenderer, type TextCellRendererProps, UNSAFE_useTableContext, type UpdateServerSideDataSourceParams, type ValueGetterParams, type ValueParserParams, type ValueSetterParams, type ValueValidator, type ValueValidatorParams, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };
@@ -1,5 +1,5 @@
1
1
  import * as _ag_grid_community_core from '@ag-grid-community/core';
2
- import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
2
+ import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, TabToNextCellParams, CellPosition, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
3
3
  import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
5
  import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
@@ -118,10 +118,12 @@ interface ClientSideFilterProps<TValue = any[] | NumberFilterModel> {
118
118
  onChange?: (values: any[]) => void;
119
119
  onRemove?: () => void;
120
120
  overlayMatchesTriggerWidth?: boolean;
121
+ disabled?: boolean;
121
122
  }
122
123
  interface ServerSideFilterProps {
123
124
  columnDefinition: ColumnDefinition;
124
125
  overlayMatchesTriggerWidth?: boolean;
126
+ disabled?: boolean;
125
127
  }
126
128
  type FilterProps<TValue = any[] | NumberFilterModel> = ClientSideFilterProps<TValue> | ServerSideFilterProps;
127
129
 
@@ -313,12 +315,24 @@ interface MultiSelectCellRendererParams<TValue, OptionValue> {
313
315
  getValue?: (cellValue: TValue) => OptionValue[];
314
316
  typographyProps?: TypographyProps;
315
317
  }
316
- type MultiSelectCellColumnDefinition<TValue = any[], OptionValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof MultiSelectCellRenderer, MultiSelectCellRendererParams<TValue, OptionValue>, never, // editor does not exist
317
- never, // editor does not exist
318
- TFilterOption, TFilterValue, 'multiSelect', MultiSelectBulkEditorParams>;
318
+ type OnSearchParams$1 = {
319
+ data: MultiSelectCellEditorProps['data'];
320
+ event: React__default.ChangeEvent<HTMLInputElement>;
321
+ };
322
+ interface MultiSelectCellEditorParams<TValue> {
323
+ getId?: (cellValue: TValue) => number | string;
324
+ getLabel?: (cellValue: TValue) => string;
325
+ placeholder?: string;
326
+ selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>, offset?: number) => Promise<TValue[]>);
327
+ onSearch?: (params: OnSearchParams$1) => TValue[] | Promise<TValue[]>;
328
+ }
329
+ interface MultiSelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, MultiSelectCellColumnDefinition<TValue>> {
330
+ }
331
+ type MultiSelectCellColumnDefinition<TValue = any[], OptionValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof MultiSelectCellRenderer, MultiSelectCellRendererParams<TValue, OptionValue>, typeof MultiSelectCellEditor, MultiSelectCellEditorParams<TValue>, TFilterOption, TFilterValue, 'multiSelect', MultiSelectBulkEditorParams>;
319
332
  interface MultiSelectCellRendererProps<TValue = any[], OptionValue = any> extends DataTableCellRendererProps<TValue, MultiSelectCellColumnDefinition<TValue, OptionValue>> {
320
333
  }
321
334
  declare const MultiSelectCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
335
+ declare const MultiSelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
322
336
 
323
337
  interface NumberCellRendererParams {
324
338
  typographyProps?: TypographyProps;
@@ -400,12 +414,12 @@ type OnSearchParams = {
400
414
  interface SelectCellEditorParams<TValue> {
401
415
  clearable?: boolean;
402
416
  getId?: (item: TValue) => number | string;
403
- getOptionLabel?: (option: any) => string;
417
+ getOptionLabel?: (option: unknown) => string;
404
418
  placeholder?: string;
405
- selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>) => Promise<TValue[]>);
419
+ selectOptions: TValue[] | ((rowData: Record<string, unknown>) => TValue[]) | ((rowData: Record<string, unknown>, offset?: number) => Promise<TValue[]>);
406
420
  onSearch?: (params: OnSearchParams) => TValue[] | Promise<TValue[]>;
407
421
  }
408
- interface SelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, SelectCellColumnDefinition<TValue>> {
422
+ interface SelectCellEditorProps<TValue = unknown> extends DataTableCellEditorProps<TValue, SelectCellColumnDefinition<TValue>> {
409
423
  }
410
424
  declare const SelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
411
425
 
@@ -574,6 +588,10 @@ interface TableApi {
574
588
  * @private
575
589
  */
576
590
  getCellEditorInstances: () => ICellEditor[];
591
+ /**
592
+ * Returns an array of transformed visible row nodes
593
+ */
594
+ getVisibleRowNodes: () => RowNode[];
577
595
  /**
578
596
  * Get the sorted leaf and group nodes remaining after filtering. Note: This only works for tables using the client side row model.
579
597
  */
@@ -648,7 +666,7 @@ interface TableApi {
648
666
  */
649
667
  setIsRowSelectable?(isRowSelectableFunc: IsRowSelectable): void;
650
668
  }
651
- type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
669
+ type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getVisibleRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
652
670
  type AgDomLayout = 'normal' | 'autoHeight' | 'print' | undefined;
653
671
  interface IsRowSelectable {
654
672
  (node: RowNode): boolean;
@@ -719,6 +737,8 @@ interface DetailRowConfig<TRow = any> {
719
737
  autoGroupColumnDefinition?: ColumnDefinition;
720
738
  columnDefinitions: ColumnDefinition[];
721
739
  getDetailRowData: (params: GetDetailRowDataParams<TRow>) => void;
740
+ groupDefaultExpanded?: boolean;
741
+ groupsAlwaysExpanded?: boolean;
722
742
  height?: 'auto' | number;
723
743
  isExpandable?: (rowData: TRow) => boolean;
724
744
  customFooters?: CustomFooterConfig[];
@@ -937,6 +957,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
937
957
  getGroupRowAgg?: (nodes: RowNode[], currentGroupsValues: string[]) => TRow;
938
958
  getRowNodeId?: (data: TRow) => any;
939
959
  getSubtotalLabel?: (columnDefinition: ColumnDefinition, rowData: TRow, value: string | number) => string;
960
+ groupsAlwaysExpanded?: boolean;
940
961
  groupDefaultExpanded?: number;
941
962
  groupIncludeFooter?: boolean;
942
963
  groupSelectsChildren?: boolean;
@@ -992,6 +1013,10 @@ interface TableProps<TRow = any, TBottomRow = any> {
992
1013
  suppressResetColumnsOption?: boolean;
993
1014
  suppressRowClickSelection?: boolean;
994
1015
  stickyExpandedGroupRows?: boolean;
1016
+ /**
1017
+ * Allows overriding the default behaviour for when user hits Tab key when a cell is focused
1018
+ */
1019
+ tabToNextCell?: (params: TabToNextCellParams<any, any>) => CellPosition | null;
995
1020
  }
996
1021
  type AggregationFunction<TValue> = (params: {
997
1022
  columnDefinition: ColumnDefinition;
@@ -1059,6 +1084,10 @@ interface ValueValidatorParams<TValue = any> {
1059
1084
  interface FrameworkComponents {
1060
1085
  [key: string]: React.ComponentType<any>;
1061
1086
  }
1087
+ interface TableFrameworkComponents {
1088
+ base: FrameworkComponents;
1089
+ detail: FrameworkComponents;
1090
+ }
1062
1091
  interface PinnedBottomRow extends Record<string, any> {
1063
1092
  footerId: 'grandTotal' | string;
1064
1093
  isAggData?: boolean;
@@ -1427,4 +1456,4 @@ declare const waitForAsyncCondition: (condition: Function, maxAttempts?: number,
1427
1456
  */
1428
1457
  declare const UNSAFE_useTableContext: () => InternalTableContext;
1429
1458
 
1430
- export { type AgDomLayout, type AgGetDetailRowDataParams, type AgSort, type AggregationFunction, type AnalyticEvent, _default$2 as Analytics, AnalyticsBulkClient, type AnalyticsBulkConfig, type AnalyticsClient, type AnalyticsConfig$1 as AnalyticsConfig, type AvatarStackItemFilter, type BooleanCellColumnDefinition, BooleanCellEditor, type BooleanCellEditorProps, BooleanCellRenderer, type BooleanCellRendererProps, type ButtonsCellColumnDefinition, ButtonsCellRenderer, type CSVExportConfig, type CellValueChangeParams, _default$1 as ClientSideDataTable, type ClientSideDataTableProps, type ColumnConfig, type ColumnDefinition, type ColumnGroupStateConfig, type CompanyCellColumnDefinition, CompanyCellRenderer, type CompanyCellRendererProps, type ContextPanelApi, type ContextPanelContent, type CurrencyCellColumnDefinition, CurrencyCellEditor, type CurrencyCellEditorProps, CurrencyCellRenderer, type CurrencyCellRendererProps, type CustomBulkEditorFields, type CustomEditorCell, type CustomFilter, type CustomFooterConfig, type CustomRendererCell, type DTExcelFormats, type DataTableCellEditorProps, type DataTableCellRendererProps, type DataTableConfig, type DataTableProps, type DataTableTranslations, type DateCellColumnDefinition, DateCellEditor, type DateCellEditorProps, DateCellRenderer, type DateCellRendererProps, DateFilterRenderer, type DateFilterSelectionType, QuickDateFilterRenderer as DateQuickFilterRenderer, type DateTimeCellColumnDefinition, DateTimeCellEditor, DateTimeCellRenderer, type DetailRowConfig, type EmptyRendererProps, type ExcelExportConfig, type ExtendedColDef, type FilterGroup, type FrameworkComponents, type GetDetailRowDataParams, type GetRowHeightWithFooters, GrandTotalsLabelRenderer, type GranularPartial, type GranularRequired, type GroupCellColumnDefinition, GroupCellRenderer, type HTMLStringExportConfig, type ISearchState, type IServerFilter, type IsEditableParams, type IsRowSelectable, type LinkCellColumnDefinition, LinkCellRenderer, type LinkCellRendererProps, type LocationColumnDefinition, type LocationFilterOpt, LocationFilterRenderer, LocationQuickFilterRenderer, type MultiSelectCellColumnDefinition, MultiSelectCellRenderer, type MultiSelectCellRendererProps, MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer, type NestedColumnDefinition, type NumberCellColumnDefinition, NumberCellEditor, type NumberCellEditorProps, NumberCellRenderer, type NumberCellRendererProps, NumberFilterRenderer, type PartialTableApi, type PeopleCellColumnDefinition, PeopleCellRenderer, type PeopleCellRendererProps, type PercentCellColumnDefinition, PercentCellEditor, type PercentCellEditorProps, PercentCellRenderer, type PercentCellRendererProps, PersonCellRenderer, type PillCellColumnDefinition, PillCellRenderer, type PillCellRendererProps, PillSelectCellEditor, type PillSelectCellEditorProps, type PinnedBottomRow, type RefreshServerSideDataParams, type RowActionsConfig, type RowActivePredicateParams, type RowGroupToggledEvent, type RowNode, type RowSelectablePredicateParams, type RowSelectionRef, SelectAllState, type SelectCellColumnDefinition, SelectCellEditor, type SelectCellEditorProps, SelectCellRenderer, type SelectCellRendererProps, _default as ServerSideDataTable, type DataTableProps as ServerSideDataTableProps, type ServerSideGetRowsParams, type ServerSideGetRowsRequest, type ServerSideParamsOptions, SingleSelectQuickFilterRenderer, type SortModel, type SuccessParams, type TableApi, type TablePanelProps, type TableProps, type TextAreaCellColumnDefinition, type TextAreaCellEditorProps, type TextAreaCellRendererProps, type TextCellColumnDefinition, TextCellEditor, type TextCellEditorProps, TextCellRenderer, type TextCellRendererProps, UNSAFE_useTableContext, type UpdateServerSideDataSourceParams, type ValueGetterParams, type ValueParserParams, type ValueSetterParams, type ValueValidator, type ValueValidatorParams, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };
1459
+ export { type AgDomLayout, type AgGetDetailRowDataParams, type AgSort, type AggregationFunction, type AnalyticEvent, _default$2 as Analytics, AnalyticsBulkClient, type AnalyticsBulkConfig, type AnalyticsClient, type AnalyticsConfig$1 as AnalyticsConfig, type AvatarStackItemFilter, type BooleanCellColumnDefinition, BooleanCellEditor, type BooleanCellEditorProps, BooleanCellRenderer, type BooleanCellRendererProps, type ButtonsCellColumnDefinition, ButtonsCellRenderer, type CSVExportConfig, type CellValueChangeParams, _default$1 as ClientSideDataTable, type ClientSideDataTableProps, type ColumnConfig, type ColumnDefinition, type ColumnGroupStateConfig, type CompanyCellColumnDefinition, CompanyCellRenderer, type CompanyCellRendererProps, type ContextPanelApi, type ContextPanelContent, type CurrencyCellColumnDefinition, CurrencyCellEditor, type CurrencyCellEditorProps, CurrencyCellRenderer, type CurrencyCellRendererProps, type CustomBulkEditorFields, type CustomEditorCell, type CustomFilter, type CustomFooterConfig, type CustomRendererCell, type DTExcelFormats, type DataTableCellEditorProps, type DataTableCellRendererProps, type DataTableConfig, type DataTableProps, type DataTableTranslations, type DateCellColumnDefinition, DateCellEditor, type DateCellEditorProps, DateCellRenderer, type DateCellRendererProps, DateFilterRenderer, type DateFilterSelectionType, QuickDateFilterRenderer as DateQuickFilterRenderer, type DateTimeCellColumnDefinition, DateTimeCellEditor, DateTimeCellRenderer, type DetailRowConfig, type EmptyRendererProps, type ExcelExportConfig, type ExtendedColDef, type FilterGroup, type FrameworkComponents, type GetDetailRowDataParams, type GetRowHeightWithFooters, GrandTotalsLabelRenderer, type GranularPartial, type GranularRequired, type GroupCellColumnDefinition, GroupCellRenderer, type HTMLStringExportConfig, type ISearchState, type IServerFilter, type IsEditableParams, type IsRowSelectable, type LinkCellColumnDefinition, LinkCellRenderer, type LinkCellRendererProps, type LocationColumnDefinition, type LocationFilterOpt, LocationFilterRenderer, LocationQuickFilterRenderer, type MultiSelectCellColumnDefinition, MultiSelectCellEditor, MultiSelectCellRenderer, type MultiSelectCellRendererProps, MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer, type NestedColumnDefinition, type NumberCellColumnDefinition, NumberCellEditor, type NumberCellEditorProps, NumberCellRenderer, type NumberCellRendererProps, NumberFilterRenderer, type PartialTableApi, type PeopleCellColumnDefinition, PeopleCellRenderer, type PeopleCellRendererProps, type PercentCellColumnDefinition, PercentCellEditor, type PercentCellEditorProps, PercentCellRenderer, type PercentCellRendererProps, PersonCellRenderer, type PillCellColumnDefinition, PillCellRenderer, type PillCellRendererProps, PillSelectCellEditor, type PillSelectCellEditorProps, type PinnedBottomRow, type RefreshServerSideDataParams, type RowActionsConfig, type RowActivePredicateParams, type RowGroupToggledEvent, type RowNode, type RowSelectablePredicateParams, type RowSelectionRef, SelectAllState, type SelectCellColumnDefinition, SelectCellEditor, type SelectCellEditorProps, SelectCellRenderer, type SelectCellRendererProps, _default as ServerSideDataTable, type DataTableProps as ServerSideDataTableProps, type ServerSideGetRowsParams, type ServerSideGetRowsRequest, type ServerSideParamsOptions, SingleSelectQuickFilterRenderer, type SortModel, type SuccessParams, type TableApi, type TableFrameworkComponents, type TablePanelProps, type TableProps, type TextAreaCellColumnDefinition, type TextAreaCellEditorProps, type TextAreaCellRendererProps, type TextCellColumnDefinition, TextCellEditor, type TextCellEditorProps, TextCellRenderer, type TextCellRendererProps, UNSAFE_useTableContext, type UpdateServerSideDataSourceParams, type ValueGetterParams, type ValueParserParams, type ValueSetterParams, type ValueValidator, type ValueValidatorParams, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };