@procore/data-table 14.4.2 → 14.4.3-next.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.
Files changed (122) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Analytics/Analytics.d.ts +18 -0
  3. package/dist/Analytics/Client.d.ts +10 -0
  4. package/dist/Analytics/index.d.ts +2 -0
  5. package/dist/Analytics/types.d.ts +21 -0
  6. package/dist/BulkActions/BulkActions.d.ts +10 -0
  7. package/dist/BulkActions/BulkEditActionButton.d.ts +6 -0
  8. package/dist/CellRenderers/AutoGroupCell.d.ts +15 -0
  9. package/dist/CellRenderers/BooleanCell.d.ts +18 -0
  10. package/dist/CellRenderers/ButtonsCell.d.ts +8 -0
  11. package/dist/CellRenderers/Cells.d.ts +19 -0
  12. package/dist/CellRenderers/CompanyCell.d.ts +15 -0
  13. package/dist/CellRenderers/CurrencyCell.d.ts +23 -0
  14. package/dist/CellRenderers/DataTableCell.d.ts +67 -0
  15. package/dist/CellRenderers/DateCell.d.ts +23 -0
  16. package/dist/CellRenderers/DateTimeCell.d.ts +21 -0
  17. package/dist/CellRenderers/FullWidthCell.d.ts +5 -0
  18. package/dist/CellRenderers/GrandTotalsLabel.d.ts +5 -0
  19. package/dist/CellRenderers/GroupCell.d.ts +34 -0
  20. package/dist/CellRenderers/InlineEditWrapper.d.ts +35 -0
  21. package/dist/CellRenderers/InlineError.d.ts +10 -0
  22. package/dist/CellRenderers/LinkCell.d.ts +13 -0
  23. package/dist/CellRenderers/MultiSelectCell.d.ts +20 -0
  24. package/dist/CellRenderers/NumberCell.d.ts +21 -0
  25. package/dist/CellRenderers/PeopleCell.d.ts +18 -0
  26. package/dist/CellRenderers/PercentCell.d.ts +23 -0
  27. package/dist/CellRenderers/PersonCell.d.ts +17 -0
  28. package/dist/CellRenderers/PillCell.d.ts +22 -0
  29. package/dist/CellRenderers/RowActionsCell.d.ts +16 -0
  30. package/dist/CellRenderers/RowCheckbox.d.ts +9 -0
  31. package/dist/CellRenderers/SelectCell.d.ts +27 -0
  32. package/dist/CellRenderers/TextAreaCell.d.ts +18 -0
  33. package/dist/CellRenderers/TextCell.d.ts +18 -0
  34. package/dist/CellRenderers/index.d.ts +16 -0
  35. package/dist/ClientSideDataTable.d.ts +25 -0
  36. package/dist/DataTable.d.ts +36 -0
  37. package/dist/EmptyState.d.ts +12 -0
  38. package/dist/FilterRenderers/ClientSideFilter.d.ts +11 -0
  39. package/dist/FilterRenderers/DateFilterRenderer.d.ts +47 -0
  40. package/dist/FilterRenderers/LocationFilterRenderer.d.ts +9 -0
  41. package/dist/FilterRenderers/MultiSelectFilterRenderer.d.ts +7 -0
  42. package/dist/FilterRenderers/NumberFilterRenderer.d.ts +23 -0
  43. package/dist/FilterRenderers/ServerSideFilter.d.ts +3 -0
  44. package/dist/FilterRenderers/index.d.ts +114 -0
  45. package/dist/FilterRenderers/useServerSideFilter.d.ts +16 -0
  46. package/dist/FilterRenderers/useServerSideFilterStorage.d.ts +3 -0
  47. package/dist/FilterRenderers/utils.d.ts +7 -0
  48. package/dist/GenericHeader/GenericColumnGroupHeader.d.ts +15 -0
  49. package/dist/GenericHeader/GenericHeader.d.ts +27 -0
  50. package/dist/Panels/BulkEdit.d.ts +65 -0
  51. package/dist/Panels/Configuration.d.ts +8 -0
  52. package/dist/Panels/Filters.d.ts +10 -0
  53. package/dist/Panels/StyledPanelSection.d.ts +4 -0
  54. package/dist/Panels/helpers.d.ts +12 -0
  55. package/dist/Panels/useContextPanel.d.ts +2 -0
  56. package/dist/QuickControls/ConfigPanelButton.d.ts +2 -0
  57. package/dist/QuickControls/EmptyResultsControlTooltip.d.ts +6 -0
  58. package/dist/QuickControls/FiltersPanelToggleButton.d.ts +9 -0
  59. package/dist/QuickControls/QuickControls.d.ts +8 -0
  60. package/dist/QuickControls/QuickFilters.d.ts +12 -0
  61. package/dist/QuickControls/RowGroupSelector.d.ts +5 -0
  62. package/dist/QuickControls/Search.d.ts +9 -0
  63. package/dist/QuickControls/ServerSideSearch.d.ts +13 -0
  64. package/dist/QuickFilterRenderers/DateQuickFilterRenderer.d.ts +30 -0
  65. package/dist/QuickFilterRenderers/LocationQuickFilterRenderer.d.ts +4 -0
  66. package/dist/QuickFilterRenderers/MultiSelectQuickFilterRenderer.d.ts +7 -0
  67. package/dist/QuickFilterRenderers/QuickFilterLabel.d.ts +13 -0
  68. package/dist/QuickFilterRenderers/SingleSelectQuickFilterRenderer.d.ts +19 -0
  69. package/dist/QuickFilterRenderers/SuperSelectFilterPreset.d.ts +8 -0
  70. package/dist/QuickFilterRenderers/index.d.ts +4 -0
  71. package/dist/QuickFilterRenderers/types.d.ts +16 -0
  72. package/dist/QuickFilterRenderers/utils.d.ts +6 -0
  73. package/dist/ServerSideDataTable.d.ts +25 -0
  74. package/dist/constants.d.ts +21 -0
  75. package/dist/icons.d.ts +1 -0
  76. package/dist/index.d.ts +24 -0
  77. package/dist/index.js +220 -0
  78. package/dist/index.js.LICENSE.txt +60 -0
  79. package/dist/state/useFilterState.d.ts +36 -0
  80. package/dist/state/useRowSelectionState.d.ts +8 -0
  81. package/dist/types.d.ts +684 -0
  82. package/dist/utils/ContactItem.d.ts +12 -0
  83. package/dist/utils/RadioList.d.ts +12 -0
  84. package/dist/utils/addSubcomponents.d.ts +3 -0
  85. package/dist/utils/adjustRowDragIcon.d.ts +2 -0
  86. package/dist/utils/aggData.d.ts +3 -0
  87. package/dist/utils/aggregationFunctions.d.ts +2 -0
  88. package/dist/utils/buildDetailRows.d.ts +14 -0
  89. package/dist/utils/cellHelpers.d.ts +25 -0
  90. package/dist/utils/columnDefHelpers.d.ts +10 -0
  91. package/dist/utils/columnMenuHelpers.d.ts +11 -0
  92. package/dist/utils/companyOptionRenderer.d.ts +3 -0
  93. package/dist/utils/findNode.d.ts +6 -0
  94. package/dist/utils/generateHTMLString.d.ts +23 -0
  95. package/dist/utils/genericAnalyticsClient.d.ts +19 -0
  96. package/dist/utils/getCellValueTypographyProps.d.ts +5 -0
  97. package/dist/utils/getRootRowNode.d.ts +2 -0
  98. package/dist/utils/helpers.d.ts +14 -0
  99. package/dist/utils/internalTableContext.d.ts +45 -0
  100. package/dist/utils/isEmptyValue.d.ts +1 -0
  101. package/dist/utils/logger.d.ts +5 -0
  102. package/dist/utils/pagination.d.ts +5 -0
  103. package/dist/utils/personOptionRenderer.d.ts +3 -0
  104. package/dist/utils/rowSelectionHelpers.d.ts +54 -0
  105. package/dist/utils/serverSideSharedTestHelpers.d.ts +237 -0
  106. package/dist/utils/setSiblingGroupsRowSelection.d.ts +2 -0
  107. package/dist/utils/sort.d.ts +7 -0
  108. package/dist/utils/sortFilters.d.ts +2 -0
  109. package/dist/utils/test/i18n.d.ts +4 -0
  110. package/dist/utils/transformers.d.ts +25 -0
  111. package/dist/utils/translations.d.ts +1990 -0
  112. package/dist/utils/useTableApi.d.ts +14 -0
  113. package/dist/utils/waitForAsyncCondition.d.ts +1 -0
  114. package/package.json +9 -9
  115. package/dist/legacy/index.d.mts +0 -1399
  116. package/dist/legacy/index.d.ts +0 -1399
  117. package/dist/legacy/index.js +0 -88330
  118. package/dist/legacy/index.mjs +0 -88271
  119. package/dist/modern/index.d.mts +0 -1399
  120. package/dist/modern/index.d.ts +0 -1399
  121. package/dist/modern/index.js +0 -88100
  122. package/dist/modern/index.mjs +0 -88041
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface RadioListProps {
3
+ getId: (option: any) => any;
4
+ getLabel: (option: any) => any;
5
+ getOptions: () => Promise<boolean>;
6
+ label: string;
7
+ loading: boolean;
8
+ name: string;
9
+ options: any[] | undefined;
10
+ }
11
+ export declare function RadioList({ getId, getLabel, getOptions, label, loading, name, options, }: RadioListProps): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const addSubcomponents: <Subcomponents extends {
2
+ [key: string]: any;
3
+ }, Parent extends Record<string, any>>(subs: Subcomponents, parent: Parent) => Parent & Subcomponents;
@@ -0,0 +1,2 @@
1
+ import { ColumnApi, GridApi } from '@ag-grid-community/core';
2
+ export declare function adjustRowDragIcon(gridApi: GridApi, columnApi: ColumnApi): void;
@@ -0,0 +1,3 @@
1
+ import { GridApi } from '@ag-grid-community/core';
2
+ import { CustomFooterConfig, PinnedBottomRow } from '../types';
3
+ export declare function buildPinnedBottomRows(gridApi?: GridApi | null, customFooters?: CustomFooterConfig[]): PinnedBottomRow[];
@@ -0,0 +1,2 @@
1
+ import { IAggFunc } from '@ag-grid-community/core';
2
+ export declare const sum: IAggFunc;
@@ -0,0 +1,14 @@
1
+ import { AgGridReactProps } from '@ag-grid-community/react';
2
+ import { DetailRowConfig, ExtendedColDef, FrameworkComponents, GetRowHeightWithFooters } from '../types';
3
+ export declare const buildDetailRowsConfig: ({ detailRowConfig, detailRowConfigs, defaultColDef, frameworkComponents, getRowHeight, emptyStateRenderer, detailRowSelectionEnabled: detailRowSelectionEnabled_, enableGroupEditAndValidation, enableDynamicRowHeight, isServerSideRowModel, }: {
4
+ detailRowConfig?: DetailRowConfig<any> | undefined;
5
+ detailRowConfigs?: DetailRowConfig<any>[] | undefined;
6
+ defaultColDef: ExtendedColDef;
7
+ frameworkComponents: FrameworkComponents;
8
+ getRowHeight: GetRowHeightWithFooters;
9
+ emptyStateRenderer?: import("react").FunctionComponent<{}> | undefined;
10
+ detailRowSelectionEnabled?: boolean | undefined;
11
+ enableGroupEditAndValidation: boolean;
12
+ enableDynamicRowHeight: boolean;
13
+ isServerSideRowModel: boolean;
14
+ }) => AgGridReactProps<any>;
@@ -0,0 +1,25 @@
1
+ import { GridApi, ICellEditorParams, ICellRendererParams, IRowNode } from '@ag-grid-community/core';
2
+ import React from 'react';
3
+ import { MenuDropdownOption } from '../GenericHeader/GenericHeader';
4
+ import { ColumnDefinition, FrameworkComponents, RowSelectablePredicateParams, SelectAllState, TableProps } from '../types';
5
+ export declare function withDataTableEditor(Component: React.ForwardRefExoticComponent<any>, editorType: 'input' | 'select' | 'date' | 'textarea'): React.ForwardRefExoticComponent<ICellEditorParams>;
6
+ export declare function withDataTableRenderer(Component: React.ComponentType<any>, editorType?: 'input' | 'select' | 'date' | 'textarea'): React.FC<ICellRendererParams>;
7
+ type GroupNodes = {
8
+ first: IRowNode | null;
9
+ firstLoading: IRowNode | null;
10
+ last: IRowNode | null;
11
+ };
12
+ export declare function getGroupNodes(params: ICellRendererParams): GroupNodes;
13
+ export declare const DefaultFrameworkComponents: FrameworkComponents;
14
+ export declare function getFrameworkComponents(headerMenuConfig: {
15
+ suppressResetColumnsOption: boolean;
16
+ suppressExpandGroupsButton: boolean;
17
+ showExpandableMenuOptions: boolean;
18
+ columnHeaderMenuOptions: MenuDropdownOption[];
19
+ }, onSelectAll?: (param: SelectAllState.All | SelectAllState.None) => void, selectionSSREnabled?: boolean): FrameworkComponents;
20
+ export declare function getCurrentRows(gridApi?: GridApi, useCurrentPageOnly?: boolean): IRowNode<any>[];
21
+ export declare function bulkEditingGenerallyEnabled(columnDefinitions: ColumnDefinition[]): boolean;
22
+ export declare function isRowSelectionEnabledForRow(rowSelectionEnabled: (params: RowSelectablePredicateParams) => boolean, node: IRowNode): boolean;
23
+ export declare function isBulkEditingEnabledForRow(colDef: ColumnDefinition, node: IRowNode): boolean;
24
+ export declare function rowSelectedEnabledForAnyRows(rowSelectionEnabled: TableProps['rowSelectionEnabled'], columnDefinitions: ColumnDefinition[], gridApi?: GridApi): boolean;
25
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ColDef, ColGroupDef } from '@ag-grid-community/core';
2
+ import { ColumnDefinition, DataTableProps, ExtendedColDef, NestedColumnDefinition } from '../types';
3
+ type ColType = ExtendedColDef | ColGroupDef;
4
+ type ColDefinition = ColType & {
5
+ groupInfo?: NestedColumnDefinition;
6
+ };
7
+ export declare function toGroupedCols(colDefs?: ColDefinition[]): ColType[];
8
+ export declare function flattenColumnDefinitions(columnDefinitions: DataTableProps['columnDefinitions']): ColumnDefinition[];
9
+ export declare function flattenColDefs(colDefs?: (ColDef | ColGroupDef)[]): ExtendedColDef[];
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { I18njs } from '@procore/core-i18n-js';
2
+ import type { DropdownFlyoutOption } from '@procore/core-react';
3
+ import React from 'react';
4
+ import { GenericHeaderParams, MenuDropdownOption } from '../GenericHeader/GenericHeader';
5
+ import { SelectAllState } from '../types';
6
+ export declare function withMenuProps(defaultMenuConfig: {
7
+ suppressExpandGroupsButton: boolean;
8
+ suppressResetColumnsOption: boolean;
9
+ columnHeaderMenuOptions?: MenuDropdownOption[];
10
+ }, onSelectAll?: (param: SelectAllState.All | SelectAllState.None) => void, selectionSSREnabled?: boolean): React.FC<GenericHeaderParams>;
11
+ export declare const getMainMenuItems: (props: GenericHeaderParams, I18n: I18njs) => DropdownFlyoutOption[];
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CompanyBulkEditorParams } from '../Panels/BulkEdit';
3
+ export declare function companyOptionRenderer(editorParams: CompanyBulkEditorParams): (option: any, optionProps: any) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { GridApi, IRowNode } from '@ag-grid-community/core';
2
+ /**
3
+ * @description Since GridApi#forEachNode is not very performant,
4
+ * we can utilize throw-catch to break the loop when we are ready
5
+ */
6
+ export declare function findNode(predicate: (node: IRowNode) => boolean, gridApi: GridApi): null;
@@ -0,0 +1,23 @@
1
+ import { ColumnApi, GridApi } from '@ag-grid-community/core';
2
+ import React from 'react';
3
+ export interface ExportPageFormat {
4
+ pageWidthInInches: number;
5
+ pageHeightInInches?: number;
6
+ marginInPixels?: {
7
+ top: number;
8
+ left: number;
9
+ bottom: number;
10
+ right: number;
11
+ };
12
+ }
13
+ export interface Config {
14
+ header?: React.FunctionComponent;
15
+ gridApi: GridApi;
16
+ columnApi: ColumnApi;
17
+ tableContainer: HTMLElement;
18
+ preserveColumnWidths?: boolean;
19
+ pageFormat?: ExportPageFormat;
20
+ showTableHeaderOnEveryPage?: boolean;
21
+ totalRowCount?: number;
22
+ }
23
+ export declare function generateHTMLString({ columnApi, gridApi, header: Header, tableContainer, preserveColumnWidths, pageFormat, showTableHeaderOnEveryPage, totalRowCount, }: Config): Promise<string>;
@@ -0,0 +1,19 @@
1
+ interface RequestInfo extends RequestInit {
2
+ headers: Record<string, any>;
3
+ }
4
+ export interface AnalyticsConfig {
5
+ bodyParams?: Record<string, any>;
6
+ client: (endpoint: string, request: RequestInfo) => void;
7
+ endpoint: string;
8
+ headers?: Record<string, any>;
9
+ trackEvent: (event: string, properties: Record<string, any>) => void;
10
+ }
11
+ export default class Analytics {
12
+ bodyParams: Record<string, any>;
13
+ client: (endpoint: string, request: RequestInfo) => void;
14
+ endpoint: string;
15
+ headers: Object;
16
+ constructor({ bodyParams, client, endpoint, headers, }: AnalyticsConfig);
17
+ trackEvent(event: string, properties?: Record<string, any>): void;
18
+ }
19
+ export {};
@@ -0,0 +1,5 @@
1
+ import { Typography } from '@procore/core-react';
2
+ import { ComponentProps } from 'react';
3
+ type TypographyProps = ComponentProps<typeof Typography>;
4
+ export declare function getCellValueTypographyProps(typographyProps?: TypographyProps): Omit<TypographyProps, 'children'>;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IRowNode } from '@ag-grid-community/core';
2
+ export declare function getRootRowNode(rowNode: IRowNode): IRowNode | null;
@@ -0,0 +1,14 @@
1
+ import { CheckboxSelectionCallbackParams, ColumnApi, GridApi, HeaderCheckboxSelectionCallbackParams, IRowNode } from '@ag-grid-community/core';
2
+ import React from 'react';
3
+ import { ColumnDefinition, NestedColumnDefinition, RowNode } from '../types';
4
+ export declare const Spinner: ({ loading, ...rest }: {
5
+ [key: string]: any;
6
+ loading: boolean;
7
+ }) => React.ReactElement;
8
+ export declare function getFilteredLeafChildren(node: RowNode | IRowNode): IRowNode[];
9
+ export declare function isNestedColumnDefinition(Column: ColumnDefinition | NestedColumnDefinition): Column is NestedColumnDefinition;
10
+ export declare function isNestedColDef(colDef: ColumnDefinition | NestedColumnDefinition): colDef is NestedColumnDefinition;
11
+ export declare function getLeafColDefs(columnDefinitions: Array<ColumnDefinition | NestedColumnDefinition>): ColumnDefinition[];
12
+ export declare function isFirstColumn(params: HeaderCheckboxSelectionCallbackParams<any> | CheckboxSelectionCallbackParams<any>): boolean;
13
+ export declare function getCheckboxColumn(columnApi: ColumnApi | undefined): import("@ag-grid-community/core").Column<any> | null;
14
+ export declare function removeEventListenerFromGrid(event: string, listener: Function, gridApi?: GridApi): void;
@@ -0,0 +1,45 @@
1
+ import { ColumnApi, GridApi } from '@ag-grid-community/core';
2
+ import React from 'react';
3
+ import { IFilterStorage } from '../FilterRenderers';
4
+ import { useFilterState } from '../state/useFilterState';
5
+ import { AnalyticsConfig } from '../Analytics/types';
6
+ import { GrandTotalsLabelRendererProps } from '../CellRenderers/GrandTotalsLabel';
7
+ import { RowSize } from '../constants';
8
+ import { ISearchStorage } from '../QuickControls/ServerSideSearch';
9
+ import { ColumnDefinition, ContextPanelApi, CustomBulkEditorFields, DataTableConfig, DataTableProps, FilterGroup, GetRowHeightWithFooters, RowSelectionRef, TableApi, UpdateServerSideDataSourceParams } from '../types';
10
+ export interface InternalTableContext {
11
+ analytics?: AnalyticsConfig;
12
+ columnApi?: ColumnApi;
13
+ columnDefinitions: ColumnDefinition[];
14
+ contextPanel: ContextPanelApi;
15
+ customBulkEditorFields?: CustomBulkEditorFields;
16
+ enableDynamicRowHeight: boolean;
17
+ enableCellTextSelection: boolean;
18
+ enableGroupEditAndValidation: boolean;
19
+ filterGroups?: FilterGroup[];
20
+ getRowHeight: GetRowHeightWithFooters;
21
+ getRowId?: DataTableProps['getRowId'];
22
+ gridApi?: GridApi;
23
+ grandTotalsLabelInnerRenderer?: React.FunctionComponent<GrandTotalsLabelRendererProps>;
24
+ initialTableConfig?: DataTableConfig;
25
+ filterState: ReturnType<typeof useFilterState>;
26
+ filterStorage: IFilterStorage;
27
+ onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
28
+ onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
29
+ updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
30
+ onTableConfigChange: () => void;
31
+ rowHeight: RowSize;
32
+ rowSelectionRef?: React.MutableRefObject<RowSelectionRef>;
33
+ searchStorage: ISearchStorage;
34
+ selectedGroupIndex?: string | null;
35
+ setColumnApi: (columnApi: ColumnApi) => void;
36
+ setGridApi: (gridApi: GridApi) => void;
37
+ setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
38
+ tableRef: React.RefObject<TableApi> | null;
39
+ getColumnDefinition: (field: string) => ColumnDefinition | undefined;
40
+ totalRowCount: number;
41
+ setTotalRowCount: React.Dispatch<React.SetStateAction<number>>;
42
+ setSelectedGroupIndex?: React.Dispatch<React.SetStateAction<string | null>>;
43
+ }
44
+ export declare const InternalTableContext: React.Context<InternalTableContext>;
45
+ export declare const useInternalTableContext: () => InternalTableContext;
@@ -0,0 +1 @@
1
+ export declare const isEmptyValue: (value?: boolean | string | number | null | Array<any> | object) => boolean;
@@ -0,0 +1,5 @@
1
+ export declare const logger: {
2
+ log: (...data: any[]) => void;
3
+ warn: (...data: any[]) => void;
4
+ error: (...data: any[]) => void;
5
+ };
@@ -0,0 +1,5 @@
1
+ import type { PaginationHookConfig } from '@procore/core-react';
2
+ export declare const getPaginationPageStartEnd: ({ activePage, items: totalItems, perPage, }: Omit<PaginationHookConfig, 'onSelectPage'>) => {
3
+ end: number;
4
+ start: number;
5
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { PersonBulkEditorParams } from '../Panels/BulkEdit';
3
+ export declare function personOptionRenderer(editorParams: PersonBulkEditorParams): (option: any, optionProps: any) => React.JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { IRowNode } from '@ag-grid-community/core';
2
+ export declare const rowSelectionState: {
3
+ readonly indeterminate: "indeterminate";
4
+ readonly selected: "selected";
5
+ readonly unselected: "unselected";
6
+ };
7
+ export type RowSelectionState = (typeof rowSelectionState)[keyof typeof rowSelectionState];
8
+ export interface AffectedRows {
9
+ [id: string]: {
10
+ node: IRowNode;
11
+ selectedState: RowSelectionState;
12
+ };
13
+ }
14
+ interface ParentChildrenMap {
15
+ [parentId: string]: {
16
+ childRows: IRowNode[];
17
+ selected?: boolean;
18
+ selectedChildRows: Set<IRowNode>;
19
+ };
20
+ }
21
+ export declare function isNodeRootLevelOfGrid(node: IRowNode | null): boolean;
22
+ export declare function getNodeParents(node: IRowNode, parents: IRowNode[]): IRowNode[];
23
+ /**
24
+ * Recursive function to build array of child nodes that should be selected
25
+ *
26
+ * @param baseNode the original node clicked
27
+ * @param nextNode the current node being considered
28
+ * @param parentChildrenMap map with parent/child relationships
29
+ * @returns array of child nodes to change selection state of
30
+ */
31
+ export declare function getChildrenToSelect(baseNode: IRowNode, nextNode: IRowNode, parentChildrenMap: ParentChildrenMap): IRowNode[];
32
+ /**
33
+ * APPROACH: using selectionChanged
34
+ *
35
+ * 1. no grouping, selection
36
+ * - in this case, skip; let checkbox handle as it were / no changes needed
37
+ *
38
+ * 2. grouping
39
+ * 2a. leaf node selected/deselected
40
+ * - compare event api selected nodes to existing api selected nodes to find affected
41
+ * - do indeterminate/selected/unselected logic on parents up the chain
42
+ *
43
+ * 2b. group node selected/deselected
44
+ * - compare event api selected nodes to existing api selected nodes to find selection
45
+ * - do indeterminate/selected/unselected logic on parents up the chain
46
+ * - find all children, probably recursively?
47
+ * - select/deselect all children
48
+ * - need to select/deselect here for deselecting parent while we have knowledge of parent selection change
49
+ *
50
+ * 3. initial render (i.e expanding when previously closed)
51
+ * - if parent is selected, select self
52
+ */
53
+ export declare function getAffectedRows(currentRows: IRowNode[], selectionNode: IRowNode, affectedRows: AffectedRows): AffectedRows;
54
+ export {};
@@ -0,0 +1,237 @@
1
+ /// <reference types="react" />
2
+ import { NumberCellColumnDefinition, SelectCellColumnDefinition, TextCellColumnDefinition } from '../types';
3
+ export type TrimsType = {
4
+ displayName: string;
5
+ key: number;
6
+ };
7
+ export declare const trims: TrimsType[];
8
+ export declare const rows: {
9
+ make: string;
10
+ model: string;
11
+ year: number;
12
+ price: string;
13
+ color: string;
14
+ VIN: string;
15
+ trim: TrimsType;
16
+ }[];
17
+ export declare function yearColumnDefinition(def?: Partial<NumberCellColumnDefinition>): NumberCellColumnDefinition;
18
+ export declare function modelColumnDefinition(def?: Partial<TextCellColumnDefinition>): TextCellColumnDefinition;
19
+ export declare function makeColumnDefinition(def?: Partial<TextCellColumnDefinition<string, string, string>>): TextCellColumnDefinition<string, string, string>;
20
+ export declare function priceColumnDefinition(def?: Partial<TextCellColumnDefinition>): {
21
+ aggFunc?: string | import("../types").AggregationFunction<string> | undefined;
22
+ bulkEditable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
23
+ bulkEditEditor?: string | undefined;
24
+ bulkEditEditorParams?: any;
25
+ children?: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
26
+ date: Date;
27
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>[] | import("../types").ExtendedColDef[] | undefined;
28
+ groupId?: string | undefined;
29
+ cellEditor?: import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>> | undefined;
30
+ cellEditorParams?: import("../CellRenderers/TextCell").TextCellEditorParams | undefined;
31
+ cellCSVFormatter?: ((value: string) => string) | undefined;
32
+ cellExcelFormatter?: ((value: string) => string) | undefined;
33
+ cellExcelDataType?: string | undefined;
34
+ cellRenderer: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
35
+ cellRendererParams?: import("../CellRenderers/TextCell").TextCellRendererParams | undefined;
36
+ cellRendererSelector?: ((params?: import("@ag-grid-community/core").ICellRendererParams<any, any, any> | undefined) => {
37
+ component: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
38
+ params: import("../CellRenderers/TextCell").TextCellRendererParams;
39
+ }) | undefined;
40
+ columnGroupName?: string | undefined;
41
+ comparator?: ((a: any, b: any) => number) | undefined;
42
+ editable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
43
+ enableRowGroup?: boolean | undefined;
44
+ field: string;
45
+ filterRenderer?: import("react").FunctionComponent<import("../FilterRenderers").FilterComponentProps<any, any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel>> | undefined;
46
+ filterProps?: Omit<import("../FilterRenderers").IFilterProps<any, string | number> | import("../FilterRenderers").IDateFilterProps<any, string | number> | import("../FilterRenderers").ILocationFilterProps<any, string | number> | import("../FilterRenderers").INumberFilterProps<{
47
+ id: import("@ag-grid-community/core/dist/esm/es6/filter/provided/simpleFilter").ISimpleFilterModelType | "any_value" | "no_value" | null | undefined;
48
+ label: string;
49
+ }, string | number>, "columnDefinition"> | undefined;
50
+ quickFilterRenderer?: import("react").FunctionComponent<import("../QuickFilterRenderers/types").ClientSideFilterProps<any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel> | import("../QuickFilterRenderers/types").ServerSideFilterProps> | undefined;
51
+ flex?: number | undefined;
52
+ getStringFormattedValue?: ((value: string) => string) | undefined;
53
+ getFilterKeyCreator?: ((params: import("@ag-grid-community/core").KeyCreatorParams<any, any>) => string) | undefined;
54
+ headerName: string;
55
+ columnHeaderParams?: {
56
+ menuOptions?: import("../GenericHeader/GenericHeader").MenuDropdownOption[] | undefined;
57
+ headerNode?: ((props: {
58
+ columnDefinition: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
59
+ date: Date;
60
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>;
61
+ }) => import("react").ReactNode) | undefined;
62
+ } | undefined;
63
+ hidden?: boolean | undefined;
64
+ initialIsPinned?: import("../constants").PinColumnSide | undefined;
65
+ initialSort?: import("../constants").ColumnSort | undefined;
66
+ lockPinned?: boolean | undefined;
67
+ lockVisible?: boolean | undefined;
68
+ marryChildren?: boolean | undefined;
69
+ maxWidth?: number | undefined;
70
+ minWidth?: number | undefined;
71
+ onCellValueChanged?: ((params: import("../types").CellValueChangeParams<string>) => void) | undefined;
72
+ pinned?: import("../constants").PinColumnSide | undefined;
73
+ resizable?: boolean | undefined;
74
+ rightAlign?: boolean | undefined;
75
+ rowGroup?: boolean | undefined;
76
+ sortable: boolean;
77
+ suppressMenu?: boolean | undefined;
78
+ suppressMovable?: boolean | undefined;
79
+ suppressSizeToFit?: boolean | undefined;
80
+ valueGetter?: ((params: import("../types").ValueGetterParams) => string) | undefined;
81
+ valueParser?: ((params: import("../types").ValueParserParams) => string) | undefined;
82
+ valueSetter?: ((params: import("../types").ValueSetterParams) => boolean) | undefined;
83
+ valueValidator?: import("../types").ValueValidator<string> | undefined;
84
+ width?: number | undefined;
85
+ autoHeight?: boolean | undefined;
86
+ wrapText?: boolean | undefined;
87
+ lockPosition?: boolean | "left" | "right" | undefined;
88
+ };
89
+ export declare function colorColumnDefinition(def?: Partial<TextCellColumnDefinition>): {
90
+ aggFunc?: string | import("../types").AggregationFunction<string> | undefined;
91
+ bulkEditable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
92
+ bulkEditEditor?: string | undefined;
93
+ bulkEditEditorParams?: any;
94
+ children?: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
95
+ date: Date;
96
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>[] | import("../types").ExtendedColDef[] | undefined;
97
+ groupId?: string | undefined;
98
+ cellEditor?: import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>> | undefined;
99
+ cellEditorParams?: import("../CellRenderers/TextCell").TextCellEditorParams | undefined;
100
+ cellCSVFormatter?: ((value: string) => string) | undefined;
101
+ cellExcelFormatter?: ((value: string) => string) | undefined;
102
+ cellExcelDataType?: string | undefined;
103
+ cellRenderer: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
104
+ cellRendererParams?: import("../CellRenderers/TextCell").TextCellRendererParams | undefined;
105
+ cellRendererSelector?: ((params?: import("@ag-grid-community/core").ICellRendererParams<any, any, any> | undefined) => {
106
+ component: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
107
+ params: import("../CellRenderers/TextCell").TextCellRendererParams;
108
+ }) | undefined;
109
+ columnGroupName?: string | undefined;
110
+ comparator?: ((a: any, b: any) => number) | undefined;
111
+ editable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
112
+ enableRowGroup?: boolean | undefined;
113
+ field: string;
114
+ filterRenderer: import("react").FunctionComponent<import("../FilterRenderers").FilterComponentProps<any, any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel>> | ((props: import("../FilterRenderers").FilterComponentProps<any, any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel>) => import("react").JSX.Element | null);
115
+ filterProps?: Omit<import("../FilterRenderers").IFilterProps<any, string | number> | import("../FilterRenderers").IDateFilterProps<any, string | number> | import("../FilterRenderers").ILocationFilterProps<any, string | number> | import("../FilterRenderers").INumberFilterProps<{
116
+ id: import("@ag-grid-community/core/dist/esm/es6/filter/provided/simpleFilter").ISimpleFilterModelType | "any_value" | "no_value" | null | undefined;
117
+ label: string;
118
+ }, string | number>, "columnDefinition"> | undefined;
119
+ quickFilterRenderer?: import("react").FunctionComponent<import("../QuickFilterRenderers/types").ClientSideFilterProps<any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel> | import("../QuickFilterRenderers/types").ServerSideFilterProps> | undefined;
120
+ flex?: number | undefined;
121
+ getStringFormattedValue?: ((value: string) => string) | undefined;
122
+ getFilterKeyCreator?: ((params: import("@ag-grid-community/core").KeyCreatorParams<any, any>) => string) | undefined;
123
+ headerName: string;
124
+ columnHeaderParams?: {
125
+ menuOptions?: import("../GenericHeader/GenericHeader").MenuDropdownOption[] | undefined;
126
+ headerNode?: ((props: {
127
+ columnDefinition: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
128
+ date: Date;
129
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>;
130
+ }) => import("react").ReactNode) | undefined;
131
+ } | undefined;
132
+ hidden?: boolean | undefined;
133
+ initialIsPinned?: import("../constants").PinColumnSide | undefined;
134
+ initialSort?: import("../constants").ColumnSort | undefined;
135
+ lockPinned?: boolean | undefined;
136
+ lockVisible?: boolean | undefined;
137
+ marryChildren?: boolean | undefined;
138
+ maxWidth?: number | undefined;
139
+ minWidth?: number | undefined;
140
+ onCellValueChanged?: ((params: import("../types").CellValueChangeParams<string>) => void) | undefined;
141
+ pinned?: import("../constants").PinColumnSide | undefined;
142
+ resizable?: boolean | undefined;
143
+ rightAlign?: boolean | undefined;
144
+ rowGroup?: boolean | undefined;
145
+ sortable?: boolean | undefined;
146
+ suppressMenu?: boolean | undefined;
147
+ suppressMovable?: boolean | undefined;
148
+ suppressSizeToFit?: boolean | undefined;
149
+ valueGetter?: ((params: import("../types").ValueGetterParams) => string) | undefined;
150
+ valueParser?: ((params: import("../types").ValueParserParams) => string) | undefined;
151
+ valueSetter?: ((params: import("../types").ValueSetterParams) => boolean) | undefined;
152
+ valueValidator?: import("../types").ValueValidator<string> | undefined;
153
+ width?: number | undefined;
154
+ autoHeight?: boolean | undefined;
155
+ wrapText?: boolean | undefined;
156
+ lockPosition?: boolean | "left" | "right" | undefined;
157
+ };
158
+ export declare function vinColumnDefinition(def?: Partial<TextCellColumnDefinition>): {
159
+ aggFunc?: string | import("../types").AggregationFunction<string> | undefined;
160
+ bulkEditable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
161
+ bulkEditEditor?: string | undefined;
162
+ bulkEditEditorParams?: any;
163
+ children?: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
164
+ date: Date;
165
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>[] | import("../types").ExtendedColDef[] | undefined;
166
+ groupId?: string | undefined;
167
+ cellEditor?: import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>> | undefined;
168
+ cellEditorParams?: import("../CellRenderers/TextCell").TextCellEditorParams | undefined;
169
+ cellCSVFormatter?: ((value: string) => string) | undefined;
170
+ cellExcelFormatter?: ((value: string) => string) | undefined;
171
+ cellExcelDataType?: string | undefined;
172
+ cellRenderer: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
173
+ cellRendererParams?: import("../CellRenderers/TextCell").TextCellRendererParams | undefined;
174
+ cellRendererSelector?: ((params?: import("@ag-grid-community/core").ICellRendererParams<any, any, any> | undefined) => {
175
+ component: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
176
+ params: import("../CellRenderers/TextCell").TextCellRendererParams;
177
+ }) | undefined;
178
+ columnGroupName?: string | undefined;
179
+ comparator?: ((a: any, b: any) => number) | undefined;
180
+ editable?: boolean | ((params: import("../types").IsEditableParams) => boolean) | undefined;
181
+ enableRowGroup?: boolean | undefined;
182
+ field: string;
183
+ filterRenderer?: import("react").FunctionComponent<import("../FilterRenderers").FilterComponentProps<any, any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel>> | undefined;
184
+ filterProps?: Omit<import("../FilterRenderers").IFilterProps<any, string | number> | import("../FilterRenderers").IDateFilterProps<any, string | number> | import("../FilterRenderers").ILocationFilterProps<any, string | number> | import("../FilterRenderers").INumberFilterProps<{
185
+ id: import("@ag-grid-community/core/dist/esm/es6/filter/provided/simpleFilter").ISimpleFilterModelType | "any_value" | "no_value" | null | undefined;
186
+ label: string;
187
+ }, string | number>, "columnDefinition"> | undefined;
188
+ quickFilterRenderer?: import("react").FunctionComponent<import("../QuickFilterRenderers/types").ClientSideFilterProps<any[] | import("../FilterRenderers/NumberFilterRenderer").NumberFilterModel> | import("../QuickFilterRenderers/types").ServerSideFilterProps> | undefined;
189
+ flex?: number | undefined;
190
+ getStringFormattedValue?: ((value: string) => string) | undefined;
191
+ getFilterKeyCreator?: ((params: import("@ag-grid-community/core").KeyCreatorParams<any, any>) => string) | undefined;
192
+ headerName: string;
193
+ columnHeaderParams?: {
194
+ menuOptions?: import("../GenericHeader/GenericHeader").MenuDropdownOption[] | undefined;
195
+ headerNode?: ((props: {
196
+ columnDefinition: import("../types").ColumnDefinition<any, import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>, any, import("react").ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any>>, any, any, string | number | import("../types").LocationFilterOpt | {
197
+ date: Date;
198
+ } | import("../FilterRenderers/NumberFilterRenderer").NumberFilterValue, string, any>;
199
+ }) => import("react").ReactNode) | undefined;
200
+ } | undefined;
201
+ hidden: boolean;
202
+ initialIsPinned?: import("../constants").PinColumnSide | undefined;
203
+ initialSort?: import("../constants").ColumnSort | undefined;
204
+ lockPinned?: boolean | undefined;
205
+ lockVisible?: boolean | undefined;
206
+ marryChildren?: boolean | undefined;
207
+ maxWidth?: number | undefined;
208
+ minWidth?: number | undefined;
209
+ onCellValueChanged?: ((params: import("../types").CellValueChangeParams<string>) => void) | undefined;
210
+ pinned?: import("../constants").PinColumnSide | undefined;
211
+ resizable?: boolean | undefined;
212
+ rightAlign?: boolean | undefined;
213
+ rowGroup?: boolean | undefined;
214
+ sortable?: boolean | undefined;
215
+ suppressMenu?: boolean | undefined;
216
+ suppressMovable?: boolean | undefined;
217
+ suppressSizeToFit?: boolean | undefined;
218
+ valueGetter?: ((params: import("../types").ValueGetterParams) => string) | undefined;
219
+ valueParser?: ((params: import("../types").ValueParserParams) => string) | undefined;
220
+ valueSetter?: ((params: import("../types").ValueSetterParams) => boolean) | undefined;
221
+ valueValidator?: import("../types").ValueValidator<string> | undefined;
222
+ width?: number | undefined;
223
+ autoHeight?: boolean | undefined;
224
+ wrapText?: boolean | undefined;
225
+ lockPosition?: boolean | "left" | "right" | undefined;
226
+ };
227
+ export declare function trimColumnDefinition(def?: Partial<SelectCellColumnDefinition>): SelectCellColumnDefinition<TrimsType, TrimsType, TrimsType['key']>;
228
+ export declare function warrantyColumnDefinition(def?: Partial<any>): {
229
+ field: string;
230
+ cellRenderer: import("react").FC<import("@ag-grid-community/core").ICellRendererParams<any, any, any>>;
231
+ filterRenderer: (props: import("../FilterRenderers").FilterComponentProps<{
232
+ date: Date;
233
+ }, {
234
+ date: Date;
235
+ }[]>) => import("react").JSX.Element | null;
236
+ headerName: string;
237
+ };
@@ -0,0 +1,2 @@
1
+ import { GridApi } from '@ag-grid-community/core';
2
+ export declare function setSiblingGroupsRowSelection(groupIndex: string | null, gridApi?: GridApi): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @description A curried function to sort A->Z an object array by an attribute
3
+ * @param attr - string
4
+ * @returns Function
5
+ * @example array.sort(sortByAttrAsc('label'))
6
+ */
7
+ export declare function sortByAttrAsc(attr: string): (a: any, b: any) => 0 | 1 | -1;
@@ -0,0 +1,2 @@
1
+ import { ColumnDefinition } from '../types';
2
+ export declare function sortColumnDefinitionsByFilterIndex(colDef1: ColumnDefinition, colDef2: ColumnDefinition): 0 | 1 | -1;
@@ -0,0 +1,4 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare function TestI18nProvider(props: {
3
+ children: ReactNode;
4
+ }): React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { ColDef, ColGroupDef, ColumnState, ExcelStyle, ICellRendererParams, IRowNode as AGRowNode, IRowNode, IServerSideGetRowsRequest } from '@ag-grid-community/core';
2
+ import { IServerFilter } from '../FilterRenderers';
3
+ import { ColumnConfig, ColumnDefinition, DTExcelFormats, ExtendedColDef, ISearchState, NestedColumnDefinition, RowNode, ServerSideGetRowsRequest, ServerSideParamsOptions } from '../types';
4
+ export declare const DEFAULT_AUTO_GROUP_COLUMN_DEFINITION: {
5
+ headerName: string;
6
+ cellRendererSelector(params: ICellRendererParams): {
7
+ component: import("react").FunctionComponent<import("../CellRenderers/GrandTotalsLabel").GrandTotalsLabelRendererProps> | undefined;
8
+ };
9
+ lockPosition: boolean;
10
+ };
11
+ export type RowSelectableFunc = (node: IRowNode) => boolean;
12
+ export declare function transformToColumnDefinition<TColumnDefinition extends ColumnDefinition = ColumnDefinition>(colDef?: ExtendedColDef | ColGroupDef): TColumnDefinition;
13
+ export declare function transformToExcelStyles(excelDataFormats?: DTExcelFormats[]): ExcelStyle[] | undefined;
14
+ export declare function serializeNode(node: AGRowNode): RowNode;
15
+ /**
16
+ *
17
+ * @param colDefinition Data Table Column Definition
18
+ * @returns ag grid colDef
19
+ */
20
+ export declare function transformToColDef(colDefinition: ColumnDefinition | NestedColumnDefinition, enableGroupEditAndValidation: boolean, enableDynamicRowHeight: boolean): ColGroupDef | ExtendedColDef;
21
+ export declare function transformToColState({ colId, hide, pinned, width, sort, sortIndex, rowGroup, rowGroupIndex, }: ColumnState): ColumnConfig;
22
+ export declare function transformToAgGridColState({ field, hidden, pinned, width, sort, sortIndex, rowGroup, rowGroupIndex, }: ColumnConfig): ColumnState;
23
+ export declare function transformServerSideRequestObj(request: IServerSideGetRowsRequest, filtersState: IServerFilter[], searchValue: ISearchState): ServerSideGetRowsRequest;
24
+ export declare function getServerSideParams(request: IServerSideGetRowsRequest, filtersState: IServerFilter[], searchValue: ISearchState, options?: ServerSideParamsOptions): URLSearchParams;
25
+ export declare function getDecoratedAutoGroupColDef(columnDefinition: ColumnDefinition | undefined, enableGroupEditAndValidation: boolean, enableDynamicRowHeight: boolean, isRowSelectable: RowSelectableFunc, siblingGroupsRowSelectionDisabled: boolean | undefined): ColDef<any, any>;