ag-grid-community 33.2.4 → 33.3.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.
- package/LICENSE.txt +1 -1
- package/dist/ag-grid-community.js +2799 -1373
- package/dist/ag-grid-community.min.js +1 -1
- package/dist/ag-grid-community.min.noStyle.js +1 -1
- package/dist/ag-grid-community.noStyle.js +2775 -1349
- package/dist/package/main.cjs.js +8919 -7704
- package/dist/package/main.cjs.min.js +32 -33
- package/dist/package/main.esm.min.mjs +32 -33
- package/dist/package/main.esm.mjs +8919 -7704
- package/dist/package/package.json +34 -3
- package/dist/types/package.json +34 -3
- package/dist/types/src/api/coreApi.d.ts +2 -0
- package/dist/types/src/api/gridApi.d.ts +663 -147
- package/dist/types/src/clientSideRowModel/clientSideRowModel.d.ts +2 -6
- package/dist/types/src/columnMove/columnDrag/moveColumnFeature.d.ts +1 -0
- package/dist/types/src/columns/columnFactoryUtils.d.ts +12 -4
- package/dist/types/src/columns/columnGroups/columnGroupService.d.ts +3 -4
- package/dist/types/src/columns/columnGroups/columnGroupUtils.d.ts +3 -0
- package/dist/types/src/columns/columnKeyCreator.d.ts +4 -1
- package/dist/types/src/columns/columnModel.d.ts +13 -1
- package/dist/types/src/columns/columnViewportService.d.ts +1 -1
- package/dist/types/src/columns/selectionColService.d.ts +13 -2
- package/dist/types/src/components/framework/userCompUtils.d.ts +1 -1
- package/dist/types/src/context/context.d.ts +6 -4
- package/dist/types/src/dragAndDrop/rowDragFeature.d.ts +19 -3
- package/dist/types/src/edit/cell-editing.css-GENERATED.d.ts +1 -1
- package/dist/types/src/entities/agProvidedColumnGroup.d.ts +1 -0
- package/dist/types/src/entities/colDef.d.ts +79 -13
- package/dist/types/src/entities/gridOptions.d.ts +250 -16
- package/dist/types/src/entities/rowNode.d.ts +6 -0
- package/dist/types/src/entities/rowNodeUtils.d.ts +3 -1
- package/dist/types/src/environment.d.ts +3 -5
- package/dist/types/src/eventService.d.ts +1 -1
- package/dist/types/src/eventTypes.d.ts +2 -2
- package/dist/types/src/events.d.ts +14 -0
- package/dist/types/src/export/baseGridSerializingSession.d.ts +2 -6
- package/dist/types/src/filter/column-filters.css-GENERATED.d.ts +1 -1
- package/dist/types/src/filter/filterManager.d.ts +2 -1
- package/dist/types/src/filter/filterMenuFactory.d.ts +3 -2
- package/dist/types/src/filter/provided/iSimpleFilter.d.ts +1 -1
- package/dist/types/src/filter/provided/number/iNumberFilter.d.ts +1 -1
- package/dist/types/src/gridBodyComp/gridBodyCtrl.d.ts +1 -0
- package/dist/types/src/gridBodyComp/gridBodyScrollFeature.d.ts +3 -1
- package/dist/types/src/gridOptionsService.d.ts +7 -0
- package/dist/types/src/gridOptionsUtils.d.ts +2 -1
- package/dist/types/src/headerRendering/cells/abstractCell/abstractHeaderCellComp.d.ts +1 -1
- package/dist/types/src/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.d.ts +1 -1
- package/dist/types/src/headerRendering/cells/column/headerCellCtrl.d.ts +1 -1
- package/dist/types/src/headerRendering/cells/column/headerComp.d.ts +11 -101
- package/dist/types/src/headerRendering/cells/columnGroup/headerGroupComp.d.ts +24 -1
- package/dist/types/src/headerRendering/gridHeaderCtrl.d.ts +1 -1
- package/dist/types/src/interfaces/agFieldParams.d.ts +1 -1
- package/dist/types/src/interfaces/gridState.d.ts +8 -0
- package/dist/types/src/interfaces/groupCellRenderer.d.ts +1 -1
- package/dist/types/src/interfaces/iClientSideRowModel.d.ts +2 -3
- package/dist/types/src/interfaces/iDragItem.d.ts +3 -1
- package/dist/types/src/interfaces/iFind.d.ts +1 -4
- package/dist/types/src/interfaces/iFooterService.d.ts +4 -0
- package/dist/types/src/interfaces/iFrameworkEventListenerService.d.ts +7 -2
- package/dist/types/src/interfaces/iHeader.d.ts +90 -0
- package/dist/types/src/interfaces/iMenuFactory.d.ts +2 -2
- package/dist/types/src/interfaces/iModule.d.ts +3 -0
- package/dist/types/src/interfaces/iPinnedRowModel.d.ts +51 -0
- package/dist/types/src/interfaces/iRowNode.d.ts +4 -1
- package/dist/types/src/interfaces/iSetFilter.d.ts +1 -1
- package/dist/types/src/interfaces/iShowRowGroupColsValueService.d.ts +13 -0
- package/dist/types/src/interfaces/masterDetail.d.ts +2 -2
- package/dist/types/src/interfaces/menuItem.d.ts +1 -1
- package/dist/types/src/interfaces/rowNumbers.d.ts +11 -0
- package/dist/types/src/localEventService.d.ts +1 -0
- package/dist/types/src/main-umd-noStyles.d.ts +1 -0
- package/dist/types/src/main.d.ts +20 -15
- package/dist/types/src/misc/state/stateService.d.ts +2 -0
- package/dist/types/src/misc/state/stateUtils.d.ts +22 -0
- package/dist/types/src/misc/touchService.d.ts +2 -1
- package/dist/types/src/modules/moduleRegistry.d.ts +3 -1
- package/dist/types/src/pinnedRowModel/manualPinnedRow.css-GENERATED.d.ts +1 -0
- package/dist/types/src/pinnedRowModel/manualPinnedRowModel.d.ts +43 -0
- package/dist/types/src/pinnedRowModel/manualPinnedRowUtils.d.ts +34 -0
- package/dist/types/src/pinnedRowModel/pinnedRowApi.d.ts +2 -1
- package/dist/types/src/pinnedRowModel/pinnedRowModel.d.ts +17 -19
- package/dist/types/src/pinnedRowModel/pinnedRowModule.d.ts +1 -1
- package/dist/types/src/pinnedRowModel/pinnedRowUtils.d.ts +6 -0
- package/dist/types/src/pinnedRowModel/staticPinnedRowModel.d.ts +39 -0
- package/dist/types/src/propertyKeys.d.ts +1 -1
- package/dist/types/src/rendering/cell/cellComp.d.ts +1 -1
- package/dist/types/src/rendering/cell/cellCtrl.d.ts +9 -3
- package/dist/types/src/rendering/cell/cellFlashService.d.ts +6 -1
- package/dist/types/src/rendering/cssClassManager.d.ts +1 -4
- package/dist/types/src/rendering/row/rowAutoHeightService.d.ts +5 -0
- package/dist/types/src/rendering/row/rowCtrl.d.ts +3 -1
- package/dist/types/src/rendering/rowRenderer.d.ts +2 -1
- package/dist/types/src/selection/baseSelectionService.d.ts +1 -0
- package/dist/types/src/selection/rowRangeSelectionContext.d.ts +9 -5
- package/dist/types/src/selection/selectAllFeature.d.ts +0 -2
- package/dist/types/src/selection/selectionService.d.ts +3 -1
- package/dist/types/src/sort/sortIndicatorComp.d.ts +6 -6
- package/dist/types/src/theming/core/core-css.d.ts +24 -0
- package/dist/types/src/theming/core/core.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/alpine/icon-set-alpine.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/balham/icon-set-balham.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/material/icon-set-material.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/input-style/input-style-base.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/input-style/input-style-bordered.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/input-style/input-style-underlined.css-GENERATED.d.ts +1 -1
- package/dist/types/src/theming/parts/theme/material-adjustments.css-GENERATED.d.ts +1 -1
- package/dist/types/src/utils/dom.d.ts +2 -2
- package/dist/types/src/utils/icon.d.ts +2 -2
- package/dist/types/src/utils/string.d.ts +6 -1
- package/dist/types/src/validation/errorMessages/errorText.d.ts +16 -1
- package/dist/types/src/validation/rules/colDefValidations.d.ts +2 -1
- package/dist/types/src/validation/rules/gridOptionsValidations.d.ts +2 -0
- package/dist/types/src/validation/validationService.d.ts +2 -3
- package/dist/types/src/validation/validationTypes.d.ts +8 -6
- package/dist/types/src/valueService/valueService.d.ts +4 -14
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/widgets/agAbstractField.d.ts +1 -1
- package/dist/types/src/widgets/component.d.ts +4 -5
- package/package.json +34 -3
- package/styles/_css-content.scss +227 -21
- package/styles/_icon-font-codes.scss +4 -0
- package/styles/ag-grid-no-native-widgets.css +109 -6
- package/styles/ag-grid-no-native-widgets.min.css +3 -3
- package/styles/ag-grid.css +109 -6
- package/styles/ag-grid.min.css +3 -3
- package/styles/ag-theme-alpine.css +1 -1
- package/styles/ag-theme-alpine.min.css +1 -1
- package/styles/ag-theme-balham.css +1 -1
- package/styles/ag-theme-balham.min.css +1 -1
- package/styles/ag-theme-material.css +1 -1
- package/styles/ag-theme-material.min.css +1 -1
- package/styles/ag-theme-quartz.css +1 -1
- package/styles/ag-theme-quartz.min.css +1 -1
- package/styles/agGridAlpineFont.css +1 -1
- package/styles/agGridAlpineFont.min.css +1 -1
- package/styles/agGridBalhamFont.css +1 -1
- package/styles/agGridBalhamFont.min.css +1 -1
- package/styles/agGridClassicFont.css +1 -1
- package/styles/agGridClassicFont.min.css +1 -1
- package/styles/agGridMaterialFont.css +1 -1
- package/styles/agGridMaterialFont.min.css +1 -1
- package/styles/agGridQuartzFont.css +1 -1
- package/styles/agGridQuartzFont.min.css +1 -1
- package/dist/types/src/validation/rules/menuItemValidations.d.ts +0 -3
|
@@ -72,6 +72,12 @@ export declare class RowNode<TData = any> implements IEventEmitter<RowNodeEventT
|
|
|
72
72
|
* If re-naming this property, you must also update `IGNORED_SIBLING_PROPERTIES`
|
|
73
73
|
*/
|
|
74
74
|
rowPinned: RowPinnedType;
|
|
75
|
+
/**
|
|
76
|
+
* If using manual row pinning, a reference to the sibling node.
|
|
77
|
+
* If this node is in the pinned section, `pinnedSibling` will be the source row.
|
|
78
|
+
* If this node is in the main viewport, `pinnedSibling` will be the pinned row.
|
|
79
|
+
*/
|
|
80
|
+
pinnedSibling?: RowNode<TData>;
|
|
75
81
|
/** When true, this row will appear in the top */
|
|
76
82
|
sticky: boolean;
|
|
77
83
|
/** If row is pinned, then pinnedRowTop is used rather than rowTop */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { BeanCollection } from '../context/context';
|
|
1
2
|
import type { AgEventType } from '../eventTypes';
|
|
2
3
|
import type { RowEvent } from '../events';
|
|
3
4
|
import type { GridOptionsService } from '../gridOptionsService';
|
|
4
|
-
import
|
|
5
|
+
import { RowNode } from './rowNode';
|
|
5
6
|
export declare function _createGlobalRowEvent<T extends AgEventType>(rowNode: RowNode, gos: GridOptionsService, type: T): RowEvent<T>;
|
|
7
|
+
export declare function _createRowNodeSibling(rowNode: RowNode, beans: BeanCollection): RowNode;
|
|
@@ -18,17 +18,15 @@ export declare class Environment extends BeanStub implements NamedBean {
|
|
|
18
18
|
private eParamsStyle;
|
|
19
19
|
private globalCSS;
|
|
20
20
|
postConstruct(): void;
|
|
21
|
+
getPinnedRowBorderWidth(): number;
|
|
22
|
+
getRowBorderWidth(): number;
|
|
21
23
|
getDefaultRowHeight(): number;
|
|
22
24
|
getDefaultHeaderHeight(): number;
|
|
23
25
|
getDefaultCellHorizontalPadding(): number;
|
|
24
|
-
|
|
25
|
-
getDefaultRowGroupIndentSize(): number;
|
|
26
|
-
getCellPaddingLeft(): number;
|
|
27
|
-
getCellPaddingRight(): number;
|
|
26
|
+
private getCellPaddingLeft;
|
|
28
27
|
getCellPadding(): number;
|
|
29
28
|
getDefaultColumnMinWidth(): number;
|
|
30
29
|
getDefaultListItemHeight(): number;
|
|
31
|
-
getRowBorderWidth(): number;
|
|
32
30
|
applyThemeClasses(el: HTMLElement): void;
|
|
33
31
|
refreshRowHeightVariable(): number;
|
|
34
32
|
addGlobalCSS(css: string, debugId: string): void;
|
|
@@ -5,7 +5,7 @@ import type { AgEventListener, AgGlobalEventListener, AllEventsWithoutGridCommon
|
|
|
5
5
|
import type { IEventEmitter } from './interfaces/iEventEmitter';
|
|
6
6
|
export declare class EventService extends BeanStub<AgEventType> implements NamedBean, IEventEmitter<AgEventType> {
|
|
7
7
|
beanName: "eventSvc";
|
|
8
|
-
private readonly
|
|
8
|
+
private readonly globalSvc;
|
|
9
9
|
postConstruct(): void;
|
|
10
10
|
addEventListener<TEventType extends AgEventType>(eventType: TEventType, listener: AgEventListener<any, any, TEventType>, async?: boolean): void;
|
|
11
11
|
removeEventListener<TEventType extends AgEventType>(eventType: TEventType, listener: AgEventListener<any, any, TEventType>, async?: boolean): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** EVENTS that should be exposed via code generation for the framework components. */
|
|
2
|
-
export declare const _PUBLIC_EVENTS: readonly ["columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", "pivotMaxColumnsExceeded", "columnRowGroupChanged", "expandOrCollapseAll", "columnPivotChanged", "gridColumnsChanged", "columnValueChanged", "columnMoved", "columnVisible", "columnPinned", "columnGroupOpened", "columnResized", "displayedColumnsChanged", "virtualColumnsChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "asyncTransactionsFlushed", "rowGroupOpened", "rowDataUpdated", "pinnedRowDataChanged", "rangeSelectionChanged", "cellSelectionChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "toolPanelVisibleChanged", "toolPanelSizeChanged", "modelUpdated", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellClicked", "cellDoubleClicked", "cellMouseDown", "cellContextMenu", "cellValueChanged", "cellEditRequest", "rowValueChanged", "headerFocused", "cellFocused", "rowSelected", "selectionChanged", "tooltipShow", "tooltipHide", "cellKeyDown", "cellMouseOver", "cellMouseOut", "filterChanged", "filterModified", "filterOpened", "advancedFilterBuilderVisibleChanged", "sortChanged", "virtualRowRemoved", "rowClicked", "rowDoubleClicked", "gridReady", "gridPreDestroyed", "gridSizeChanged", "viewportChanged", "firstDataRendered", "dragStarted", "dragStopped", "dragCancelled", "rowEditingStarted", "rowEditingStopped", "cellEditingStarted", "cellEditingStopped", "bodyScroll", "bodyScrollEnd", "paginationChanged", "componentStateChanged", "storeRefreshed", "stateUpdated", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "findChanged"];
|
|
2
|
+
export declare const _PUBLIC_EVENTS: readonly ["columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", "pivotMaxColumnsExceeded", "columnRowGroupChanged", "expandOrCollapseAll", "columnPivotChanged", "gridColumnsChanged", "columnValueChanged", "columnMoved", "columnVisible", "columnPinned", "columnGroupOpened", "columnResized", "displayedColumnsChanged", "virtualColumnsChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "asyncTransactionsFlushed", "rowGroupOpened", "rowDataUpdated", "pinnedRowDataChanged", "pinnedRowsChanged", "rangeSelectionChanged", "cellSelectionChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "toolPanelVisibleChanged", "toolPanelSizeChanged", "modelUpdated", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellClicked", "cellDoubleClicked", "cellMouseDown", "cellContextMenu", "cellValueChanged", "cellEditRequest", "rowValueChanged", "headerFocused", "cellFocused", "rowSelected", "selectionChanged", "tooltipShow", "tooltipHide", "cellKeyDown", "cellMouseOver", "cellMouseOut", "filterChanged", "filterModified", "filterOpened", "advancedFilterBuilderVisibleChanged", "sortChanged", "virtualRowRemoved", "rowClicked", "rowDoubleClicked", "gridReady", "gridPreDestroyed", "gridSizeChanged", "viewportChanged", "firstDataRendered", "dragStarted", "dragStopped", "dragCancelled", "rowEditingStarted", "rowEditingStopped", "cellEditingStarted", "cellEditingStopped", "bodyScroll", "bodyScrollEnd", "paginationChanged", "componentStateChanged", "storeRefreshed", "stateUpdated", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "findChanged", "rowResizeStarted", "rowResizeEnded"];
|
|
3
3
|
/** Exclude the following internal events from code generation to prevent exposing these events via framework components */
|
|
4
4
|
export declare const _INTERNAL_EVENTS: readonly ["scrollbarWidthChanged", "keyShortcutChangedCellStart", "keyShortcutChangedCellEnd", "pinnedHeightChanged", "cellFocusCleared", "fullWidthRowFocused", "checkboxChanged", "heightScaleChanged", "suppressMovableColumns", "suppressMenuHide", "suppressFieldDotNotation", "columnPanelItemDragStart", "columnPanelItemDragEnd", "bodyHeightChanged", "columnContainerWidthChanged", "displayedColumnsWidthChanged", "scrollVisibilityChanged", "scrollGapChanged", "columnHoverChanged", "flashCells", "paginationPixelOffsetChanged", "displayedRowsChanged", "leftPinnedWidthChanged", "rightPinnedWidthChanged", "rowContainerHeightChanged", "headerHeightChanged", "columnGroupHeaderHeightChanged", "columnHeaderHeightChanged", "gridStylesChanged", "storeUpdated", "filterDestroyed", "rowDataUpdateStarted", "rowCountReady", "advancedFilterEnabledChanged", "dataTypesInferred", "fieldValueChanged", "fieldPickerValueSelected", "richSelectListRowSelected", "sideBarUpdated", "alignedGridScroll", "alignedGridColumn", "gridOptionsChanged", "chartTitleEdit", "recalculateRowBounds", "stickyTopOffsetChanged", "overlayExclusiveChanged", "beforeRefreshModel", "rowNodeDataChanged"];
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const _GET_ALL_EVENTS: () => readonly ["columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", "pivotMaxColumnsExceeded", "columnRowGroupChanged", "expandOrCollapseAll", "columnPivotChanged", "gridColumnsChanged", "columnValueChanged", "columnMoved", "columnVisible", "columnPinned", "columnGroupOpened", "columnResized", "displayedColumnsChanged", "virtualColumnsChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "asyncTransactionsFlushed", "rowGroupOpened", "rowDataUpdated", "pinnedRowDataChanged", "pinnedRowsChanged", "rangeSelectionChanged", "cellSelectionChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "toolPanelVisibleChanged", "toolPanelSizeChanged", "modelUpdated", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellClicked", "cellDoubleClicked", "cellMouseDown", "cellContextMenu", "cellValueChanged", "cellEditRequest", "rowValueChanged", "headerFocused", "cellFocused", "rowSelected", "selectionChanged", "tooltipShow", "tooltipHide", "cellKeyDown", "cellMouseOver", "cellMouseOut", "filterChanged", "filterModified", "filterOpened", "advancedFilterBuilderVisibleChanged", "sortChanged", "virtualRowRemoved", "rowClicked", "rowDoubleClicked", "gridReady", "gridPreDestroyed", "gridSizeChanged", "viewportChanged", "firstDataRendered", "dragStarted", "dragStopped", "dragCancelled", "rowEditingStarted", "rowEditingStopped", "cellEditingStarted", "cellEditingStopped", "bodyScroll", "bodyScrollEnd", "paginationChanged", "componentStateChanged", "storeRefreshed", "stateUpdated", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "findChanged", "rowResizeStarted", "rowResizeEnded", "scrollbarWidthChanged", "keyShortcutChangedCellStart", "keyShortcutChangedCellEnd", "pinnedHeightChanged", "cellFocusCleared", "fullWidthRowFocused", "checkboxChanged", "heightScaleChanged", "suppressMovableColumns", "suppressMenuHide", "suppressFieldDotNotation", "columnPanelItemDragStart", "columnPanelItemDragEnd", "bodyHeightChanged", "columnContainerWidthChanged", "displayedColumnsWidthChanged", "scrollVisibilityChanged", "scrollGapChanged", "columnHoverChanged", "flashCells", "paginationPixelOffsetChanged", "displayedRowsChanged", "leftPinnedWidthChanged", "rightPinnedWidthChanged", "rowContainerHeightChanged", "headerHeightChanged", "columnGroupHeaderHeightChanged", "columnHeaderHeightChanged", "gridStylesChanged", "storeUpdated", "filterDestroyed", "rowDataUpdateStarted", "rowCountReady", "advancedFilterEnabledChanged", "dataTypesInferred", "fieldValueChanged", "fieldPickerValueSelected", "richSelectListRowSelected", "sideBarUpdated", "alignedGridScroll", "alignedGridColumn", "gridOptionsChanged", "chartTitleEdit", "recalculateRowBounds", "stickyTopOffsetChanged", "overlayExclusiveChanged", "beforeRefreshModel", "rowNodeDataChanged"];
|
|
6
6
|
export type AgPublicEventType = (typeof _PUBLIC_EVENTS)[number];
|
|
7
7
|
export type AgInternalEventType = (typeof _INTERNAL_EVENTS)[number];
|
|
8
8
|
export type AgEventType = AgPublicEventType | AgInternalEventType;
|
|
@@ -43,6 +43,7 @@ export type AgEventTypeParams<TData = any, TContext = any> = BuildEventTypeMap<A
|
|
|
43
43
|
rowGroupOpened: RowGroupOpenedEvent<TData, TContext>;
|
|
44
44
|
rowDataUpdated: RowDataUpdatedEvent<TData, TContext>;
|
|
45
45
|
pinnedRowDataChanged: PinnedRowDataChangedEvent<TData, TContext>;
|
|
46
|
+
pinnedRowsChanged: PinnedRowsChangedEvent<TData, TContext>;
|
|
46
47
|
rangeSelectionChanged: RangeSelectionChangedEvent<TData, TContext>;
|
|
47
48
|
cellSelectionChanged: CellSelectionChangedEvent<TData, TContext>;
|
|
48
49
|
chartCreated: ChartCreatedEvent<TData, TContext>;
|
|
@@ -116,6 +117,8 @@ export type AgEventTypeParams<TData = any, TContext = any> = BuildEventTypeMap<A
|
|
|
116
117
|
rowDragEnd: RowDragEndEvent<TData, TContext>;
|
|
117
118
|
rowDragCancel: RowDragCancelEvent<TData, TContext>;
|
|
118
119
|
findChanged: FindChangedEvent<TData, TContext>;
|
|
120
|
+
rowResizeStarted: RowResizeStartedEvent<TData, TContext>;
|
|
121
|
+
rowResizeEnded: RowResizeEndedEvent<TData, TContext>;
|
|
119
122
|
beforeRefreshModel: BeforeRefreshModelEvent<TData, TContext>;
|
|
120
123
|
scrollbarWidthChanged: ScrollbarWidthChangedEvent<TData, TContext>;
|
|
121
124
|
keyShortcutChangedCellStart: KeyShortcutChangedCellStartEvent<TData, TContext>;
|
|
@@ -253,6 +256,8 @@ export interface PinnedRowDataChangedEvent<TData = any, TContext = any> extends
|
|
|
253
256
|
}
|
|
254
257
|
export interface PinnedHeightChangedEvent<TData = any, TContext = any> extends AgGlobalEvent<'pinnedHeightChanged', TData, TContext> {
|
|
255
258
|
}
|
|
259
|
+
export interface PinnedRowsChangedEvent<TData = any, TContext = any> extends AgGlobalEvent<'pinnedRowsChanged', TData, TContext> {
|
|
260
|
+
}
|
|
256
261
|
/**
|
|
257
262
|
* - `api` - from API method
|
|
258
263
|
* - `apiSelectAll` - from API methods `selectAll`/`deselectAll`
|
|
@@ -382,6 +387,15 @@ export interface GridSizeChangedEvent<TData = any, TContext = any> extends AgGlo
|
|
|
382
387
|
export interface PivotMaxColumnsExceededEvent<TData = any, TContext = any> extends AgGlobalEvent<'pivotMaxColumnsExceeded', TData, TContext> {
|
|
383
388
|
message: string;
|
|
384
389
|
}
|
|
390
|
+
interface RowResizeEvent<TData = any, TContext = any, T extends AgEventType = any> extends AgGlobalEvent<T, TData, TContext> {
|
|
391
|
+
node: IRowNode<TData>;
|
|
392
|
+
event: MouseEvent | Touch;
|
|
393
|
+
rowHeight: number;
|
|
394
|
+
}
|
|
395
|
+
export interface RowResizeStartedEvent<TData = any, TContext = any> extends RowResizeEvent<TData, TContext, 'rowResizeStarted'> {
|
|
396
|
+
}
|
|
397
|
+
export interface RowResizeEndedEvent<TData = any, TContext = any> extends RowResizeEvent<TData, TContext, 'rowResizeEnded'> {
|
|
398
|
+
}
|
|
385
399
|
export interface RowDragEvent<TData = any, TContext = any, T extends AgEventType = any> extends AgGlobalEvent<T, TData, TContext> {
|
|
386
400
|
/** The row node getting dragged. Also the node that started the drag when multi-row dragging. */
|
|
387
401
|
node: IRowNode<TData>;
|
|
@@ -17,21 +17,17 @@ export declare abstract class BaseGridSerializingSession<T> implements GridSeria
|
|
|
17
17
|
processHeaderCallback?: (params: ProcessHeaderForExportParams) => string;
|
|
18
18
|
processGroupHeaderCallback?: (params: ProcessGroupHeaderForExportParams) => string;
|
|
19
19
|
processRowGroupCallback?: (params: ProcessRowGroupForExportParams) => string;
|
|
20
|
-
private groupColumns;
|
|
21
20
|
constructor(config: GridSerializingParams);
|
|
22
21
|
abstract addCustomContent(customContent: T): void;
|
|
23
22
|
abstract onNewHeaderGroupingRow(): RowSpanningAccumulator;
|
|
24
23
|
abstract onNewHeaderRow(): RowAccumulator;
|
|
25
24
|
abstract onNewBodyRow(node?: RowNode): RowAccumulator;
|
|
26
25
|
abstract parse(): string;
|
|
27
|
-
prepare(
|
|
26
|
+
prepare(_columnsToExport: AgColumn[]): void;
|
|
28
27
|
extractHeaderValue(column: AgColumn): string;
|
|
29
|
-
extractRowCellValue(column: AgColumn,
|
|
28
|
+
extractRowCellValue(column: AgColumn, currentColumnIndex: number, accumulatedRowIndex: number, type: string, node: RowNode): {
|
|
30
29
|
value: any;
|
|
31
30
|
valueFormatted?: string | null;
|
|
32
31
|
};
|
|
33
|
-
private shouldRenderGroupSummaryCell;
|
|
34
32
|
private getHeaderName;
|
|
35
|
-
private createValueForGroupNode;
|
|
36
|
-
private processCell;
|
|
37
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const columnFiltersCSS = ".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input [disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";
|
|
1
|
+
export declare const columnFiltersCSS = ".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";
|
|
@@ -8,6 +8,7 @@ import type { RowNode } from '../entities/rowNode';
|
|
|
8
8
|
import type { FilterChangedEventSourceType } from '../events';
|
|
9
9
|
import type { AdvancedFilterModel } from '../interfaces/advancedFilterModel';
|
|
10
10
|
import type { FilterModel, IFilter, IFilterComp, IFilterParams } from '../interfaces/iFilter';
|
|
11
|
+
import type { IRowNode } from '../interfaces/iRowNode';
|
|
11
12
|
import type { UserCompDetails } from '../interfaces/iUserCompDetails';
|
|
12
13
|
import type { FilterWrapper } from './columnFilterService';
|
|
13
14
|
export declare class FilterManager extends BeanStub implements NamedBean {
|
|
@@ -46,7 +47,7 @@ export declare class FilterManager extends BeanStub implements NamedBean {
|
|
|
46
47
|
isAggregateQuickFilterPresent(): boolean;
|
|
47
48
|
private isNonAggregateQuickFilterPresent;
|
|
48
49
|
private shouldApplyQuickFilterAfterAgg;
|
|
49
|
-
doesRowPassOtherFilters(filterToSkip: IFilterComp, node:
|
|
50
|
+
doesRowPassOtherFilters(filterToSkip: IFilterComp, node: IRowNode): boolean;
|
|
50
51
|
doesRowPassAggregateFilters(params: {
|
|
51
52
|
rowNode: RowNode;
|
|
52
53
|
filterInstanceToSkip?: IFilterComp;
|
|
@@ -2,6 +2,7 @@ import type { NamedBean } from '../context/bean';
|
|
|
2
2
|
import { BeanStub } from '../context/beanStub';
|
|
3
3
|
import type { BeanCollection } from '../context/context';
|
|
4
4
|
import type { AgColumn } from '../entities/agColumn';
|
|
5
|
+
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
|
5
6
|
import type { ContainerType } from '../interfaces/iAfterGuiAttachedParams';
|
|
6
7
|
import type { IMenuFactory } from '../interfaces/iMenuFactory';
|
|
7
8
|
export declare class FilterMenuFactory extends BeanStub implements NamedBean, IMenuFactory {
|
|
@@ -12,8 +13,8 @@ export declare class FilterMenuFactory extends BeanStub implements NamedBean, IM
|
|
|
12
13
|
private tabListener;
|
|
13
14
|
private activeMenu?;
|
|
14
15
|
hideActiveMenu(): void;
|
|
15
|
-
showMenuAfterMouseEvent(column: AgColumn | undefined, mouseEvent: MouseEvent | Touch, containerType: ContainerType, onClosedCallback?: () => void): void;
|
|
16
|
-
showMenuAfterButtonClick(column: AgColumn | undefined, eventSource: HTMLElement, containerType: ContainerType, onClosedCallback?: () => void): void;
|
|
16
|
+
showMenuAfterMouseEvent(column: AgColumn | AgProvidedColumnGroup | undefined, mouseEvent: MouseEvent | Touch, containerType: ContainerType, onClosedCallback?: () => void): void;
|
|
17
|
+
showMenuAfterButtonClick(column: AgColumn | AgProvidedColumnGroup | undefined, eventSource: HTMLElement, containerType: ContainerType, onClosedCallback?: () => void): void;
|
|
17
18
|
private showPopup;
|
|
18
19
|
private trapFocusWithin;
|
|
19
20
|
private dispatchVisibleChangedEvent;
|
|
@@ -58,7 +58,7 @@ export interface ISimpleFilterParams extends IProvidedFilterParams {
|
|
|
58
58
|
*/
|
|
59
59
|
numAlwaysVisibleConditions?: number;
|
|
60
60
|
/**
|
|
61
|
-
* Placeholder text for the filter textbox
|
|
61
|
+
* Placeholder text for the filter textbox.
|
|
62
62
|
*/
|
|
63
63
|
filterPlaceholder?: FilterPlaceholderFunction | string;
|
|
64
64
|
}
|
|
@@ -8,7 +8,7 @@ export interface NumberFilterModel extends ISimpleFilterModel {
|
|
|
8
8
|
/**
|
|
9
9
|
* The number value(s) associated with the filter.
|
|
10
10
|
* Custom filters can have no values (hence both are optional).
|
|
11
|
-
* Range filter has two values (from and to).
|
|
11
|
+
* Range filter has two values (from and to), where `filter` acts as a `from` value.
|
|
12
12
|
*/
|
|
13
13
|
filter?: number | null;
|
|
14
14
|
/**
|
|
@@ -50,6 +50,7 @@ export declare class GridBodyCtrl extends BeanStub {
|
|
|
50
50
|
scrollFeature: GridBodyScrollFeature;
|
|
51
51
|
setComp(comp: IGridBodyComp, eGridBody: HTMLElement, eBodyViewport: HTMLElement, eTop: HTMLElement, eBottom: HTMLElement, eStickyTop: HTMLElement, eStickyBottom: HTMLElement): void;
|
|
52
52
|
private addEventListeners;
|
|
53
|
+
private toggleRowResizeStyles;
|
|
53
54
|
private onGridColumnsChanged;
|
|
54
55
|
private onScrollVisibilityChanged;
|
|
55
56
|
private setGridRootRole;
|
|
@@ -9,6 +9,7 @@ export declare class GridBodyScrollFeature extends BeanStub {
|
|
|
9
9
|
private ctrlsSvc;
|
|
10
10
|
private animationFrameSvc?;
|
|
11
11
|
private visibleCols;
|
|
12
|
+
private clearRetryListenerFncs;
|
|
12
13
|
wireBeans(beans: BeanCollection): void;
|
|
13
14
|
private enableRtl;
|
|
14
15
|
private lastScrollSource;
|
|
@@ -65,7 +66,8 @@ export declare class GridBodyScrollFeature extends BeanStub {
|
|
|
65
66
|
scrollHorizontally(pixels: number): number;
|
|
66
67
|
scrollToTop(): void;
|
|
67
68
|
ensureNodeVisible<TData = any>(comparator: TData | IRowNode<TData> | ((row: IRowNode<TData>) => boolean), position?: 'top' | 'bottom' | 'middle' | null): void;
|
|
68
|
-
ensureIndexVisible(index: number, position?: 'top' | 'bottom' | 'middle' | null): void;
|
|
69
|
+
ensureIndexVisible(index: number, position?: 'top' | 'bottom' | 'middle' | null, retry?: number): void;
|
|
70
|
+
private clearRetryListeners;
|
|
69
71
|
ensureColumnVisible(key: any, position?: 'auto' | 'start' | 'middle' | 'end'): void;
|
|
70
72
|
private getPositionedHorizontalScroll;
|
|
71
73
|
private isColumnOutsideViewport;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { NamedBean } from './context/bean';
|
|
2
2
|
import { BeanStub } from './context/beanStub';
|
|
3
3
|
import type { BeanCollection } from './context/context';
|
|
4
|
+
import type { ColDef, ColGroupDef } from './entities/colDef';
|
|
4
5
|
import type { GridOptions } from './entities/gridOptions';
|
|
5
6
|
import type { AgEventType } from './eventTypes';
|
|
6
7
|
import type { AgEvent } from './events';
|
|
@@ -62,9 +63,12 @@ export declare class GridOptionsService extends BeanStub implements NamedBean {
|
|
|
62
63
|
private domDataKey;
|
|
63
64
|
/** This is only used for the main DOM element */
|
|
64
65
|
readonly gridInstanceId: number;
|
|
66
|
+
private gridReadyFired;
|
|
67
|
+
private queueEvents;
|
|
65
68
|
private get gridOptionsContext();
|
|
66
69
|
private propEventSvc;
|
|
67
70
|
postConstruct(): void;
|
|
71
|
+
destroy(): void;
|
|
68
72
|
/**
|
|
69
73
|
* Get the raw value of the GridOptions property provided.
|
|
70
74
|
* @param property
|
|
@@ -97,6 +101,9 @@ export declare class GridOptionsService extends BeanStub implements NamedBean {
|
|
|
97
101
|
getDomDataKey(): string;
|
|
98
102
|
/** Prefer _addGridCommonParams from gridOptionsUtils for bundle size savings */
|
|
99
103
|
addGridCommonParams<T extends AgGridCommon<TData, TContext>, TData = any, TContext = any>(params: WithoutGridCommon<T>): T;
|
|
104
|
+
private validateOptions;
|
|
105
|
+
private validateGridOptions;
|
|
106
|
+
validateColDef(colDef: ColDef | ColGroupDef, colId: string, skipInferenceCheck?: boolean): void;
|
|
100
107
|
assertModuleRegistered<TId extends keyof MissingModuleErrors, TShowMessageAtCallLocation = MissingModuleErrors[TId]>(moduleName: ValidationModuleName | ValidationModuleName[], reasonOrId: string | TId): boolean;
|
|
101
108
|
getModuleErrorParams(): {
|
|
102
109
|
gridScoped: boolean;
|
|
@@ -33,10 +33,11 @@ export declare function _isAnimateRows(gos: GridOptionsService): NonNullable<boo
|
|
|
33
33
|
export declare function _isGroupRowsSticky(gos: GridOptionsService): boolean;
|
|
34
34
|
export declare function _isColumnsSortingCoupledToGroup(gos: GridOptionsService): boolean;
|
|
35
35
|
export declare function _getGroupAggFiltering(gos: GridOptionsService): ((params: WithoutGridCommon<GetGroupAggFilteringParams>) => boolean) | undefined;
|
|
36
|
-
export declare function _getGrandTotalRow(gos: GridOptionsService): '
|
|
36
|
+
export declare function _getGrandTotalRow(gos: GridOptionsService): GridOptions['grandTotalRow'];
|
|
37
37
|
export declare function _getGroupTotalRowCallback(gos: GridOptionsService): (params: WithoutGridCommon<GetGroupIncludeFooterParams>) => 'top' | 'bottom' | undefined;
|
|
38
38
|
export declare function _isGroupMultiAutoColumn(gos: GridOptionsService): boolean;
|
|
39
39
|
export declare function _isGroupUseEntireRow(gos: GridOptionsService, pivotMode: boolean): boolean;
|
|
40
|
+
export declare function _isFullWidthGroupRow(gos: GridOptionsService, node: RowNode, pivotMode: boolean): boolean;
|
|
40
41
|
export declare function _getRowIdCallback<TData = any>(gos: GridOptionsService): ((params: WithoutGridCommon<ExtractParamsFromCallback<GetRowIdFunc<TData>>>) => ExtractReturnTypeFromCallback<GetRowIdFunc<TData>>) | undefined;
|
|
41
42
|
export declare function _canSkipShowingRowGroup(gos: GridOptionsService, node: RowNode): boolean;
|
|
42
43
|
export declare function _getMaxConcurrentDatasourceRequests(gos: GridOptionsService): number | undefined;
|
|
@@ -3,6 +3,6 @@ import { Component } from '../../../widgets/component';
|
|
|
3
3
|
import type { AbstractHeaderCellCtrl } from './abstractHeaderCellCtrl';
|
|
4
4
|
export declare abstract class AbstractHeaderCellComp<T extends AbstractHeaderCellCtrl> extends Component {
|
|
5
5
|
protected ctrl: T;
|
|
6
|
-
constructor(template:
|
|
6
|
+
constructor(template: ElementParams, ctrl: T);
|
|
7
7
|
getCtrl(): T;
|
|
8
8
|
}
|
|
@@ -8,7 +8,7 @@ import type { HeaderClassParams, HeaderStyle } from '../../../entities/colDef';
|
|
|
8
8
|
import type { BrandedType } from '../../../interfaces/brandedType';
|
|
9
9
|
import type { HeaderRowCtrl } from '../../row/headerRowCtrl';
|
|
10
10
|
export interface IAbstractHeaderCellComp {
|
|
11
|
-
|
|
11
|
+
toggleCss(cssClassName: string, on: boolean): void;
|
|
12
12
|
setUserStyles(styles: HeaderStyle): void;
|
|
13
13
|
}
|
|
14
14
|
export interface IHeaderResizeFeature {
|
|
@@ -2,11 +2,11 @@ import type { ResizeFeature } from '../../../columnResize/resizeFeature';
|
|
|
2
2
|
import type { BeanStub } from '../../../context/beanStub';
|
|
3
3
|
import type { AgColumn } from '../../../entities/agColumn';
|
|
4
4
|
import type { HeaderClassParams } from '../../../entities/colDef';
|
|
5
|
+
import type { IHeader } from '../../../interfaces/iHeader';
|
|
5
6
|
import type { UserCompDetails } from '../../../interfaces/iUserCompDetails';
|
|
6
7
|
import type { ColumnSortState } from '../../../utils/aria';
|
|
7
8
|
import type { IAbstractHeaderCellComp } from '../abstractCell/abstractHeaderCellCtrl';
|
|
8
9
|
import { AbstractHeaderCellCtrl } from '../abstractCell/abstractHeaderCellCtrl';
|
|
9
|
-
import type { IHeader } from './headerComp';
|
|
10
10
|
export interface IHeaderCellComp extends IAbstractHeaderCellComp {
|
|
11
11
|
setWidth(width: string): void;
|
|
12
12
|
setAriaSort(sort?: ColumnSortState): void;
|
|
@@ -1,109 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Column } from '../../../interfaces/iColumn';
|
|
3
|
-
import type { AgGridCommon } from '../../../interfaces/iCommon';
|
|
4
|
-
import type { IComponent } from '../../../interfaces/iComponent';
|
|
1
|
+
import type { IHeaderComp, IHeaderParams } from '../../../interfaces/iHeader';
|
|
5
2
|
import { Component } from '../../../widgets/component';
|
|
6
|
-
export interface IHeaderParams<TData = any, TContext = any> extends AgGridCommon<TData, TContext> {
|
|
7
|
-
/** The column the header is for. */
|
|
8
|
-
column: Column;
|
|
9
|
-
/**
|
|
10
|
-
* The name to display for the column.
|
|
11
|
-
* If the column is using a headerValueGetter, the displayName will take this into account.
|
|
12
|
-
*/
|
|
13
|
-
displayName: string;
|
|
14
|
-
/**
|
|
15
|
-
* Whether sorting is enabled for the column.
|
|
16
|
-
* Only put sort logic into your header if this is true.
|
|
17
|
-
*/
|
|
18
|
-
enableSorting: boolean | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Whether menu is enabled for the column.
|
|
21
|
-
* Only display a menu button in your header if this is true.
|
|
22
|
-
*/
|
|
23
|
-
enableMenu: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Whether filter button should be displayed in the header (for new column menu).
|
|
26
|
-
*/
|
|
27
|
-
enableFilterButton: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether filter icon should be displayed in the header (for legacy tabbed column menu).
|
|
30
|
-
*/
|
|
31
|
-
enableFilterIcon: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Callback to request the grid to show the column menu.
|
|
34
|
-
* Pass in the html element of the column menu button to have the
|
|
35
|
-
* grid position the menu over the button.
|
|
36
|
-
* If provided, the grid will call `onClosedCallback` when the menu is closed.
|
|
37
|
-
*/
|
|
38
|
-
showColumnMenu: (source: HTMLElement, onClosedCallback?: () => void) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Callback to request the grid to show the column menu.
|
|
41
|
-
* Similar to `showColumnMenu`, but will position the menu next to the provided `mouseEvent`.
|
|
42
|
-
* If provided, the grid will call `onClosedCallback` when the menu is closed.
|
|
43
|
-
*/
|
|
44
|
-
showColumnMenuAfterMouseClick: (mouseEvent: MouseEvent | Touch, onClosedCallback?: () => void) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Callback to request the grid to show the filter.
|
|
47
|
-
* Pass in the html element of the filter button to have the
|
|
48
|
-
* grid position the menu over the button.
|
|
49
|
-
*/
|
|
50
|
-
showFilter: (source: HTMLElement) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Callback to progress the sort for this column.
|
|
53
|
-
* The grid will decide the next sort direction eg ascending, descending or 'no sort'.
|
|
54
|
-
* Pass `multiSort=true` if you want to do a multi sort (eg user has Shift held down when they click).
|
|
55
|
-
*/
|
|
56
|
-
progressSort: (multiSort?: boolean) => void;
|
|
57
|
-
/**
|
|
58
|
-
* Callback to set the sort for this column.
|
|
59
|
-
* Pass the sort direction to use ignoring the current sort eg one of 'asc', 'desc' or null (for no sort).
|
|
60
|
-
* Pass `multiSort=true` if you want to do a multi sort (eg user has Shift held down when they click)
|
|
61
|
-
*/
|
|
62
|
-
setSort: (sort: SortDirection, multiSort?: boolean) => void;
|
|
63
|
-
/** Custom header template if provided to `headerComponentParams`, otherwise will be `undefined`. See [Header Templates](https://www.ag-grid.com/javascript-data-grid/column-headers/#header-templates) */
|
|
64
|
-
template?: string;
|
|
65
|
-
/** The component to use for inside the header (replaces the text value and leaves the remainder of the Grid's original component). */
|
|
66
|
-
innerHeaderComponent?: any;
|
|
67
|
-
/** Additional params to customise to the `innerHeaderComponent`. */
|
|
68
|
-
innerHeaderComponentParams?: any;
|
|
69
|
-
/**
|
|
70
|
-
* The header the grid provides.
|
|
71
|
-
* The custom header component is a child of the grid provided header.
|
|
72
|
-
* The grid's header component is what contains the grid managed functionality such as resizing, keyboard navigation etc.
|
|
73
|
-
* This is provided should you want to make changes to this cell,
|
|
74
|
-
* eg add ARIA tags, or add keyboard event listener (as focus goes here when navigating to the header).
|
|
75
|
-
*/
|
|
76
|
-
eGridHeader: HTMLElement;
|
|
77
|
-
/**
|
|
78
|
-
* Sets a tooltip to the main element of this component.
|
|
79
|
-
* @param value The value to be displayed by the tooltip
|
|
80
|
-
* @param shouldDisplayTooltip A function returning a boolean that allows the tooltip to be displayed conditionally. This option does not work when `enableBrowserTooltips={true}`.
|
|
81
|
-
*/
|
|
82
|
-
setTooltip: (value: string, shouldDisplayTooltip?: () => boolean) => void;
|
|
83
|
-
}
|
|
84
|
-
export interface IHeader {
|
|
85
|
-
/** Get the header to refresh. Gets called whenever Column Defs are updated. */
|
|
86
|
-
refresh(params: IHeaderParams): boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface IHeaderComp extends IHeader, IComponent<IHeaderParams> {
|
|
89
|
-
}
|
|
90
|
-
export interface IInnerHeaderComponent<TData = any, TContext = any, TParams extends Readonly<IHeaderParams<TData, TContext>> = IHeaderParams<TData, TContext>> extends IComponent<TParams>, IHeader {
|
|
91
|
-
}
|
|
92
3
|
export declare class HeaderComp extends Component implements IHeaderComp {
|
|
93
|
-
private eFilter
|
|
4
|
+
private eFilter?;
|
|
94
5
|
eFilterButton?: HTMLElement;
|
|
95
|
-
private eSortIndicator
|
|
6
|
+
private eSortIndicator?;
|
|
96
7
|
eMenu?: HTMLElement;
|
|
97
|
-
private eLabel
|
|
98
|
-
private eText
|
|
8
|
+
private eLabel?;
|
|
9
|
+
private eText?;
|
|
99
10
|
/**
|
|
100
|
-
* Selectors for custom headers templates
|
|
11
|
+
* Selectors for custom headers templates, i.e when the ag-sort-indicator is not present.
|
|
101
12
|
*/
|
|
102
|
-
private readonly eSortOrder
|
|
103
|
-
private readonly eSortAsc
|
|
104
|
-
private readonly eSortDesc
|
|
105
|
-
private readonly eSortMixed
|
|
106
|
-
private readonly eSortNone
|
|
13
|
+
private readonly eSortOrder?;
|
|
14
|
+
private readonly eSortAsc?;
|
|
15
|
+
private readonly eSortDesc?;
|
|
16
|
+
private readonly eSortMixed?;
|
|
17
|
+
private readonly eSortNone?;
|
|
107
18
|
params: IHeaderParams;
|
|
108
19
|
private currentDisplayName;
|
|
109
20
|
private currentTemplate;
|
|
@@ -128,7 +39,6 @@ export declare class HeaderComp extends Component implements IHeaderComp {
|
|
|
128
39
|
private setupFilterIcon;
|
|
129
40
|
private setupFilterButton;
|
|
130
41
|
private configureFilter;
|
|
131
|
-
private onFilterChangedIcon;
|
|
132
42
|
private onFilterChangedButton;
|
|
133
43
|
getAnchorElementForMenu(isFilter?: boolean): HTMLElement;
|
|
134
44
|
destroy(): void;
|
|
@@ -18,10 +18,33 @@ export interface IHeaderGroupParams<TData = any, TContext = any> extends AgGridC
|
|
|
18
18
|
* @param shouldDisplayTooltip A function returning a boolean that allows the tooltip to be displayed conditionally. This option does not work when `enableBrowserTooltips={true}`.
|
|
19
19
|
*/
|
|
20
20
|
setTooltip: (value: string, shouldDisplayTooltip?: () => boolean) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Callback to request the grid to show the column menu.
|
|
23
|
+
* Pass in an html element to have the
|
|
24
|
+
* grid position the menu over the element.
|
|
25
|
+
* If provided, the grid will call `onClosedCallback` when the menu is closed.
|
|
26
|
+
* Note that this only works with the new column menu.
|
|
27
|
+
*/
|
|
28
|
+
showColumnMenu: (source: HTMLElement, onClosedCallback?: () => void) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Callback to request the grid to show the column menu.
|
|
31
|
+
* Similar to `showColumnMenu`, but will position the menu next to the provided `mouseEvent`.
|
|
32
|
+
* If provided, the grid will call `onClosedCallback` when the menu is closed.
|
|
33
|
+
* Note that this only works with the new column menu.
|
|
34
|
+
*/
|
|
35
|
+
showColumnMenuAfterMouseClick: (mouseEvent: MouseEvent | Touch, onClosedCallback?: () => void) => void;
|
|
21
36
|
/** The component to use for inside the header group (replaces the text value and leaves the remainder of the Grid's original component). */
|
|
22
37
|
innerHeaderGroupComponent?: any;
|
|
23
38
|
/** Additional params to customise to the `innerHeaderGroupComponent`. */
|
|
24
39
|
innerHeaderGroupComponentParams?: any;
|
|
40
|
+
/**
|
|
41
|
+
* The header the grid provides.
|
|
42
|
+
* The custom group header component is a child of the grid provided header.
|
|
43
|
+
* The grid's header component is what contains the grid managed functionality such as resizing, keyboard navigation etc.
|
|
44
|
+
* This is provided should you want to make changes to this cell,
|
|
45
|
+
* eg add ARIA tags, or add keyboard event listener (as focus goes here when navigating to the header).
|
|
46
|
+
*/
|
|
47
|
+
eGridHeader: HTMLElement;
|
|
25
48
|
}
|
|
26
49
|
export interface IHeaderGroup {
|
|
27
50
|
}
|
|
@@ -30,7 +53,7 @@ export interface IHeaderGroupComp extends IHeaderGroup, IComponent<IHeaderGroupP
|
|
|
30
53
|
export interface IInnerHeaderGroupComponent<TData = any, TContext = any, TParams extends Readonly<IHeaderGroupParams<TData, TContext>> = IHeaderGroupParams<TData, TContext>> extends IComponent<TParams>, IHeaderGroup {
|
|
31
54
|
}
|
|
32
55
|
export declare class HeaderGroupComp extends Component implements IHeaderGroupComp {
|
|
33
|
-
|
|
56
|
+
params: IHeaderGroupParams;
|
|
34
57
|
private readonly agOpened;
|
|
35
58
|
private readonly agClosed;
|
|
36
59
|
private readonly agLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BeanStub } from '../context/beanStub';
|
|
2
2
|
export interface IGridHeaderComp {
|
|
3
|
-
|
|
3
|
+
toggleCss(cssClassName: string, on: boolean): void;
|
|
4
4
|
setHeightAndMinHeight(height: string): void;
|
|
5
5
|
}
|
|
6
6
|
export declare class GridHeaderCtrl extends BeanStub {
|
|
@@ -37,7 +37,7 @@ export interface AgFieldParams extends AgLabelParams {
|
|
|
37
37
|
export interface AgInputFieldParams extends AgFieldParams {
|
|
38
38
|
inputName?: string;
|
|
39
39
|
inputWidth?: number | 'flex';
|
|
40
|
-
template?:
|
|
40
|
+
template?: ElementParams;
|
|
41
41
|
}
|
|
42
42
|
export interface AgCheckboxParams extends AgInputFieldParams {
|
|
43
43
|
readOnly?: boolean;
|
|
@@ -106,6 +106,12 @@ export interface ColumnGroupState {
|
|
|
106
106
|
export interface RowGroupExpansionState {
|
|
107
107
|
expandedRowGroupIds: string[];
|
|
108
108
|
}
|
|
109
|
+
export interface RowPinningState {
|
|
110
|
+
/** Row IDs of rows pinned to the top container */
|
|
111
|
+
top: string[];
|
|
112
|
+
/** Row IDs of rows pinned to the bottom container */
|
|
113
|
+
bottom: string[];
|
|
114
|
+
}
|
|
109
115
|
export interface GridState {
|
|
110
116
|
/** Grid version number */
|
|
111
117
|
version?: string;
|
|
@@ -127,6 +133,8 @@ export interface GridState {
|
|
|
127
133
|
focusedCell?: FocusedCellState;
|
|
128
134
|
/** Includes current page */
|
|
129
135
|
pagination?: PaginationState;
|
|
136
|
+
/** Includes currently manually pinned rows */
|
|
137
|
+
rowPinning?: RowPinningState;
|
|
130
138
|
/** Includes current pivot mode and pivot columns (column state) */
|
|
131
139
|
pivot?: PivotState;
|
|
132
140
|
/** Includes currently selected cell ranges */
|
|
@@ -60,7 +60,7 @@ export interface IGroupCellRenderer {
|
|
|
60
60
|
setCheckboxSpacing(add: boolean): void;
|
|
61
61
|
setExpandedDisplayed(value: boolean): void;
|
|
62
62
|
setContractedDisplayed(value: boolean): void;
|
|
63
|
-
|
|
63
|
+
toggleCss(cssClassName: string, on: boolean): void;
|
|
64
64
|
}
|
|
65
65
|
export interface IGroupCellRendererCtrl {
|
|
66
66
|
init(comp: IGroupCellRenderer, eGui: HTMLElement, eCheckbox: HTMLElement, eExpanded: HTMLElement, eContracted: HTMLElement, compClass: any, params: GroupCellRendererParams): void;
|
|
@@ -23,9 +23,8 @@ export interface IClientSideRowModel<TData = any> extends IRowModel {
|
|
|
23
23
|
flushAsyncTransactions(): void;
|
|
24
24
|
doAggregate(changedPath?: ChangedPath): void;
|
|
25
25
|
getTopLevelNodes(): RowNode[] | null;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
getHighlightPosition(pixel: number, rowNode?: RowNode): RowHighlightPosition;
|
|
26
|
+
clearHighlight(): void;
|
|
27
|
+
highlightRow(rowNode: RowNode, highlight: RowHighlightPosition): void;
|
|
29
28
|
getLastHighlightedRowNode(): RowNode | null;
|
|
30
29
|
isRowDataLoaded(): boolean;
|
|
31
30
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAggFunc } from '../entities/colDef';
|
|
2
|
-
import type { Column } from './iColumn';
|
|
2
|
+
import type { Column, ColumnPinnedType } from './iColumn';
|
|
3
3
|
import type { IRowNode } from './iRowNode';
|
|
4
4
|
export interface DragItem<TValue = any> {
|
|
5
5
|
/**
|
|
@@ -17,6 +17,8 @@ export interface DragItem<TValue = any> {
|
|
|
17
17
|
visibleState?: {
|
|
18
18
|
[key: string]: boolean;
|
|
19
19
|
};
|
|
20
|
+
/** The pinned type of the container that created the Drag Item */
|
|
21
|
+
containerType?: ColumnPinnedType;
|
|
20
22
|
/** When dragging columns, this contains the pivot state of the columns. This is only populated/used in column tool panel */
|
|
21
23
|
pivotState?: {
|
|
22
24
|
[key: string]: {
|