ag-grid-community 32.0.2 → 32.2.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/README.md +503 -85
- package/dist/ag-grid-community.js +9676 -6678
- 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 +9577 -6573
- package/dist/package/main.cjs.js +9425 -6504
- package/dist/package/main.cjs.min.js +81 -70
- package/dist/package/main.esm.min.mjs +92 -81
- package/dist/package/main.esm.mjs +9424 -6503
- package/dist/package/package.json +34 -7
- package/dist/types/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +16 -3
- package/dist/types/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +27 -7
- package/dist/types/client-side-row-model/clientSideRowModel/clientSideRowModelApi.d.ts +1 -0
- package/dist/types/client-side-row-model/clientSideRowModel/immutableService.d.ts +2 -1
- package/dist/types/client-side-row-model/clientSideRowModel/sortService.d.ts +1 -0
- package/dist/types/client-side-row-model/clientSideRowModelModule.d.ts +3 -4
- package/dist/types/client-side-row-model/version.d.ts +1 -1
- package/dist/types/core/alignedGridsModule.d.ts +1 -2
- package/dist/types/core/alignedGridsService.d.ts +1 -0
- package/dist/types/core/api/apiFunctionService.d.ts +6 -5
- package/dist/types/core/api/apiModule.d.ts +10 -11
- package/dist/types/core/api/apiUtils.d.ts +1 -1
- package/dist/types/core/api/gridApi.d.ts +621 -523
- package/dist/types/core/api/gridApiFunctions.d.ts +255 -0
- package/dist/types/core/api/sharedApiModule.d.ts +2 -3
- package/dist/types/core/api/ssrmInfiniteSharedApi.d.ts +1 -0
- package/dist/types/core/columns/columnEventDispatcher.d.ts +6 -4
- package/dist/types/core/columns/columnFactory.d.ts +6 -1
- package/dist/types/core/columns/columnModel.d.ts +11 -4
- package/dist/types/core/columns/columnModule.d.ts +2 -3
- package/dist/types/core/columns/columnUtils.d.ts +1 -0
- package/dist/types/core/columns/columnViewportService.d.ts +1 -0
- package/dist/types/core/columns/controlsColService.d.ts +11 -0
- package/dist/types/core/columns/dataTypeService.d.ts +3 -10
- package/dist/types/core/components/componentUtil.d.ts +2 -2
- package/dist/types/core/components/emptyBean.d.ts +21 -0
- package/dist/types/core/components/framework/componentTypes.d.ts +1 -0
- package/dist/types/core/components/framework/frameworkComponentWrapper.d.ts +1 -2
- package/dist/types/core/components/framework/userComponentFactory.d.ts +3 -1
- package/dist/types/core/components/framework/userComponentRegistry.d.ts +3 -1
- package/dist/types/core/context/beanStub.d.ts +2 -3
- package/dist/types/core/context/context.d.ts +8 -3
- package/dist/types/core/ctrlsService.d.ts +9 -6
- package/dist/types/core/dragAndDrop/dragAndDropImageComponent.d.ts +24 -0
- package/dist/types/core/dragAndDrop/dragAndDropService.d.ts +22 -10
- package/dist/types/core/dragAndDrop/dragModule.d.ts +1 -2
- package/dist/types/core/dragAndDrop/dragService.d.ts +4 -0
- package/dist/types/core/edit/cellEditors/simpleCellEditor.d.ts +2 -2
- package/dist/types/core/edit/editModule.d.ts +9 -10
- package/dist/types/core/edit/editService.d.ts +1 -1
- package/dist/types/core/edit/rowEditService.d.ts +1 -1
- package/dist/types/core/entities/agColumn.d.ts +4 -2
- package/dist/types/core/entities/agColumnGroup.d.ts +5 -0
- package/dist/types/core/entities/colDef.d.ts +26 -16
- package/dist/types/core/entities/dataType.d.ts +7 -0
- package/dist/types/core/entities/gridOptions.d.ts +248 -13
- package/dist/types/core/entities/rowNode.d.ts +69 -25
- package/dist/types/core/environment.d.ts +7 -4
- package/dist/types/core/eventService.d.ts +3 -3
- package/dist/types/core/eventTypes.d.ts +3 -3
- package/dist/types/core/events.d.ts +58 -12
- package/dist/types/core/filter/columnFilterService.d.ts +3 -1
- package/dist/types/core/filter/filterManager.d.ts +2 -0
- package/dist/types/core/filter/filterModule.d.ts +13 -14
- package/dist/types/core/filter/provided/iScalarFilter.d.ts +2 -0
- package/dist/types/core/filter/provided/providedFilter.d.ts +1 -1
- package/dist/types/core/focusService.d.ts +12 -2
- package/dist/types/core/grid.d.ts +10 -1
- package/dist/types/core/gridBodyComp/abstractFakeScrollComp.d.ts +3 -2
- package/dist/types/core/gridBodyComp/gridBodyCtrl.d.ts +8 -1
- package/dist/types/core/gridBodyComp/gridBodyScrollFeature.d.ts +10 -5
- package/dist/types/core/gridBodyComp/navigationService.d.ts +3 -1
- package/dist/types/core/gridBodyComp/rowContainer/rowContainerCtrl.d.ts +7 -3
- package/dist/types/core/gridBodyComp/rowDragFeature.d.ts +3 -2
- package/dist/types/core/gridBodyComp/scrollVisibleService.d.ts +10 -2
- package/dist/types/core/gridComp/gridCtrl.d.ts +5 -1
- package/dist/types/core/gridCoreModule.d.ts +2 -8
- package/dist/types/core/gridOptionsService.d.ts +10 -38
- package/dist/types/core/gridOptionsUtils.d.ts +54 -0
- package/dist/types/core/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.d.ts +9 -6
- package/dist/types/core/headerRendering/cells/column/headerCellCtrl.d.ts +7 -6
- package/dist/types/core/headerRendering/cells/column/selectAllFeature.d.ts +6 -0
- package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellComp.d.ts +1 -0
- package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellCtrl.d.ts +6 -1
- package/dist/types/core/headerRendering/cells/floatingFilter/headerFilterCellCtrl.d.ts +2 -1
- package/dist/types/core/headerRendering/columnDrag/bodyDropPivotTarget.d.ts +1 -0
- package/dist/types/core/headerRendering/columnDrag/bodyDropTarget.d.ts +2 -0
- package/dist/types/core/headerRendering/columnDrag/moveColumnFeature.d.ts +21 -4
- package/dist/types/core/headerRendering/columnMoveHelper.d.ts +20 -10
- package/dist/types/core/headerRendering/gridHeaderCtrl.d.ts +1 -0
- package/dist/types/core/headerRendering/row/headerRowCtrl.d.ts +4 -8
- package/dist/types/core/headerRendering/rowContainer/headerRowContainerCtrl.d.ts +8 -8
- package/dist/types/core/interfaces/IRangeService.d.ts +3 -2
- package/dist/types/core/interfaces/IServerSideStore.d.ts +1 -1
- package/dist/types/core/interfaces/gridState.d.ts +28 -9
- package/dist/types/core/interfaces/iAdvancedFilterCtrl.d.ts +5 -1
- package/dist/types/core/interfaces/iCallbackParams.d.ts +5 -2
- package/dist/types/core/interfaces/iCellEditor.d.ts +4 -0
- package/dist/types/core/interfaces/iClientSideRowModel.d.ts +2 -6
- package/dist/types/core/interfaces/iColumn.d.ts +5 -1
- package/dist/types/core/interfaces/iExcelCreator.d.ts +69 -36
- package/dist/types/core/interfaces/iFrameworkOverrides.d.ts +6 -4
- package/dist/types/core/interfaces/iMenuFactory.d.ts +2 -1
- package/dist/types/core/interfaces/iModule.d.ts +10 -1
- package/dist/types/core/interfaces/iRowNode.d.ts +9 -2
- package/dist/types/core/interfaces/iRowNodeStage.d.ts +1 -3
- package/dist/types/core/interfaces/masterDetail.d.ts +2 -0
- package/dist/types/core/main.d.ts +11 -9
- package/dist/types/core/misc/menuService.d.ts +4 -2
- package/dist/types/core/misc/resizeObserverService.d.ts +0 -4
- package/dist/types/core/misc/state/stateModelMigration.d.ts +2 -0
- package/dist/types/core/misc/state/stateModule.d.ts +3 -4
- package/dist/types/core/misc/state/stateService.d.ts +2 -2
- package/dist/types/core/pagination/pageSizeSelector/pageSizeSelectorComp.d.ts +3 -1
- package/dist/types/core/pagination/paginationComp.d.ts +5 -4
- package/dist/types/core/pagination/paginationModule.d.ts +3 -4
- package/dist/types/core/pinnedRowModel/pinnedRowModel.d.ts +11 -9
- package/dist/types/core/pinnedRowModel/pinnedRowModule.d.ts +1 -2
- package/dist/types/core/propertyKeys.d.ts +2 -1
- package/dist/types/core/rendering/ariaAnnouncementService.d.ts +6 -1
- package/dist/types/core/rendering/cell/cellCtrl.d.ts +13 -10
- package/dist/types/core/rendering/cell/cellRangeFeature.d.ts +1 -1
- package/dist/types/core/rendering/columnAnimationService.d.ts +1 -0
- package/dist/types/core/rendering/columnHoverService.d.ts +1 -0
- package/dist/types/core/rendering/features/stickyRowFeature.d.ts +1 -0
- package/dist/types/core/rendering/overlays/loadingOverlayComponent.d.ts +1 -1
- package/dist/types/core/rendering/overlays/noRowsOverlayComponent.d.ts +1 -1
- package/dist/types/core/rendering/overlays/overlayModule.d.ts +1 -2
- package/dist/types/core/rendering/overlays/overlayService.d.ts +14 -1
- package/dist/types/core/rendering/overlays/overlayWrapperComponent.d.ts +6 -1
- package/dist/types/core/rendering/renderModule.d.ts +1 -2
- package/dist/types/core/rendering/row/rowComp.d.ts +0 -2
- package/dist/types/core/rendering/row/rowCtrl.d.ts +10 -8
- package/dist/types/core/rendering/rowRenderer.d.ts +1 -0
- package/dist/types/core/rowNodeCache/rowNodeBlockModule.d.ts +1 -2
- package/dist/types/core/selection/selectionService.d.ts +3 -2
- package/dist/types/core/syncService.d.ts +0 -1
- package/dist/types/core/utils/dom.d.ts +1 -1
- package/dist/types/core/utils/function.d.ts +2 -2
- package/dist/types/core/utils/icon.d.ts +76 -1
- package/dist/types/core/validation/apiFunctionValidator.d.ts +0 -1
- package/dist/types/core/validation/rules/gridOptionsValidations.d.ts +3 -0
- package/dist/types/core/validation/rules/selectionValidations.d.ts +3 -0
- package/dist/types/core/validation/validationService.d.ts +1 -4
- package/dist/types/core/validation/validationTypes.d.ts +2 -2
- package/dist/types/core/valueService/valueService.d.ts +6 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/core/widgets/popupService.d.ts +1 -1
- package/dist/types/core/widgets/tooltipStateManager.d.ts +1 -0
- package/dist/types/csv-export/csvExportModule.d.ts +3 -4
- package/dist/types/csv-export/version.d.ts +1 -1
- package/dist/types/infinite-row-model/infiniteRowModel/infiniteRowModel.d.ts +1 -1
- package/dist/types/infinite-row-model/infiniteRowModel/infiniteRowModelApi.d.ts +0 -1
- package/dist/types/infinite-row-model/infiniteRowModelModule.d.ts +3 -4
- package/dist/types/infinite-row-model/version.d.ts +1 -1
- package/package.json +34 -7
- package/styles/_css-content.scss +332 -114
- package/styles/ag-grid-no-native-widgets.css +71 -36
- package/styles/ag-grid-no-native-widgets.min.css +3 -3
- package/styles/ag-grid.css +71 -36
- package/styles/ag-grid.min.css +3 -3
- package/styles/ag-theme-alpine-no-font.css +18 -5
- package/styles/ag-theme-alpine-no-font.min.css +1 -1
- package/styles/ag-theme-alpine.css +18 -5
- package/styles/ag-theme-alpine.min.css +1 -1
- package/styles/ag-theme-balham-no-font.css +18 -0
- package/styles/ag-theme-balham-no-font.min.css +1 -1
- package/styles/ag-theme-balham.css +18 -0
- package/styles/ag-theme-balham.min.css +1 -1
- package/styles/ag-theme-material-no-font.css +41 -6
- package/styles/ag-theme-material-no-font.min.css +1 -1
- package/styles/ag-theme-material.css +41 -6
- package/styles/ag-theme-material.min.css +1 -1
- package/styles/ag-theme-quartz-no-font.css +18 -10
- package/styles/ag-theme-quartz-no-font.min.css +1 -1
- package/styles/ag-theme-quartz.css +18 -10
- package/styles/ag-theme-quartz.min.css +1 -1
- package/dist/types/core/utils/rowNode.d.ts +0 -14
- package/gulpfile.js +0 -34
- package/webpackBuild.sh +0 -17
|
@@ -15,6 +15,7 @@ import type { ColumnMoveService } from '../columns/columnMoveService';
|
|
|
15
15
|
import type { ColumnNameService } from '../columns/columnNameService';
|
|
16
16
|
import type { ColumnSizeService } from '../columns/columnSizeService';
|
|
17
17
|
import type { ColumnViewportService } from '../columns/columnViewportService';
|
|
18
|
+
import type { IControlsColService } from '../columns/controlsColService';
|
|
18
19
|
import type { DataTypeService } from '../columns/dataTypeService';
|
|
19
20
|
import type { FuncColsService } from '../columns/funcColsService';
|
|
20
21
|
import type { PivotResultColsService } from '../columns/pivotResultColsService';
|
|
@@ -111,13 +112,16 @@ export interface ContextParams extends GenericContextParams<BeanName, BeanCollec
|
|
|
111
112
|
export interface SingletonBean extends GenericSingletonBean<BeanName, BeanCollection> {
|
|
112
113
|
}
|
|
113
114
|
export type ControllerName = 'headerFilterCell' | 'detailCellRenderer' | 'groupCellRendererCtrl';
|
|
114
|
-
export type UserComponentName = 'agColumnHeader' | 'agColumnGroupHeader' | 'agSortIndicator' | 'agAnimateShowChangeCellRenderer' | 'agAnimateSlideCellRenderer' | 'agLoadingCellRenderer' | 'agSkeletonCellRenderer' | 'agCheckboxCellRenderer' | 'agLoadingOverlay' | 'agNoRowsOverlay' | 'agTooltipComponent' | 'agReadOnlyFloatingFilter' | 'agTextColumnFilter' | 'agNumberColumnFilter' | 'agDateColumnFilter' | 'agDateInput' | 'agTextColumnFloatingFilter' | 'agNumberColumnFloatingFilter' | 'agDateColumnFloatingFilter' | 'agMultiColumnFilter' | 'agMultiColumnFloatingFilter' | 'agGroupColumnFilter' | 'agGroupColumnFloatingFilter' | 'agSetColumnFilter' | 'agSetColumnFloatingFilter' | 'agCellEditor' | 'agSelectCellEditor' | 'agTextCellEditor' | 'agNumberCellEditor' | 'agDateCellEditor' | 'agDateStringCellEditor' | 'agCheckboxCellEditor' | 'agLargeTextCellEditor' | 'agRichSelect' | 'agRichSelectCellEditor' | 'agMenuItem' | 'agColumnsToolPanel' | 'agFiltersToolPanel' | 'agGroupRowRenderer' | 'agGroupCellRenderer' | 'agDetailCellRenderer' | 'agSparklineCellRenderer' | 'agAggregationComponent' | 'agSelectedRowCountComponent' | 'agTotalRowCountComponent' | 'agFilteredRowCountComponent' | 'agTotalAndFilteredRowCountComponent';
|
|
115
|
+
export type UserComponentName = 'agDragAndDropImage' | 'agColumnHeader' | 'agColumnGroupHeader' | 'agSortIndicator' | 'agAnimateShowChangeCellRenderer' | 'agAnimateSlideCellRenderer' | 'agLoadingCellRenderer' | 'agSkeletonCellRenderer' | 'agCheckboxCellRenderer' | 'agLoadingOverlay' | 'agNoRowsOverlay' | 'agTooltipComponent' | 'agReadOnlyFloatingFilter' | 'agTextColumnFilter' | 'agNumberColumnFilter' | 'agDateColumnFilter' | 'agDateInput' | 'agTextColumnFloatingFilter' | 'agNumberColumnFloatingFilter' | 'agDateColumnFloatingFilter' | 'agMultiColumnFilter' | 'agMultiColumnFloatingFilter' | 'agGroupColumnFilter' | 'agGroupColumnFloatingFilter' | 'agSetColumnFilter' | 'agSetColumnFloatingFilter' | 'agCellEditor' | 'agSelectCellEditor' | 'agTextCellEditor' | 'agNumberCellEditor' | 'agDateCellEditor' | 'agDateStringCellEditor' | 'agCheckboxCellEditor' | 'agLargeTextCellEditor' | 'agRichSelect' | 'agRichSelectCellEditor' | 'agMenuItem' | 'agColumnsToolPanel' | 'agFiltersToolPanel' | 'agGroupRowRenderer' | 'agGroupCellRenderer' | 'agDetailCellRenderer' | 'agSparklineCellRenderer' | 'agAggregationComponent' | 'agSelectedRowCountComponent' | 'agTotalRowCountComponent' | 'agFilteredRowCountComponent' | 'agTotalAndFilteredRowCountComponent';
|
|
115
116
|
export interface NamedClass<TName = string> {
|
|
116
117
|
classImp: new (...args: []) => object;
|
|
117
118
|
name: TName;
|
|
118
119
|
}
|
|
119
120
|
export type ControllerMeta = NamedClass<ControllerName>;
|
|
120
|
-
export type ComponentMeta = NamedClass<UserComponentName
|
|
121
|
+
export type ComponentMeta = NamedClass<UserComponentName> & {
|
|
122
|
+
/** Default params for provided components */
|
|
123
|
+
params?: any;
|
|
124
|
+
};
|
|
121
125
|
export interface CoreBeanCollection {
|
|
122
126
|
context: Context;
|
|
123
127
|
resizeObserverService: ResizeObserverService;
|
|
@@ -172,6 +176,7 @@ export interface CoreBeanCollection {
|
|
|
172
176
|
columnFactory: ColumnFactory;
|
|
173
177
|
pivotResultColsService: PivotResultColsService;
|
|
174
178
|
autoColService?: IAutoColService;
|
|
179
|
+
controlsColService?: IControlsColService;
|
|
175
180
|
columnDefFactory: ColumnDefFactory;
|
|
176
181
|
columnGroupStateService: ColumnGroupStateService;
|
|
177
182
|
columnEventDispatcher: ColumnEventDispatcher;
|
|
@@ -246,4 +251,4 @@ export declare class Context extends GenericContext<BeanName, BeanCollection> {
|
|
|
246
251
|
destroy(): void;
|
|
247
252
|
getGridId(): string;
|
|
248
253
|
}
|
|
249
|
-
export type BeanName = 'advancedFilterExpressionService' | 'advancedFilterService' | 'advancedSettingsMenuFactory' | 'aggFuncService' | '
|
|
254
|
+
export type BeanName = 'advancedFilterExpressionService' | 'advancedFilterService' | 'advancedSettingsMenuFactory' | 'aggFuncService' | 'agComponentUtils' | 'aggregationStage' | 'alignedGridsService' | 'animationFrameService' | 'apiFunctionService' | 'ariaAnnouncementService' | 'apiEventService' | 'autoColService' | 'autoWidthCalculator' | 'beans' | 'cellEditorFactory' | 'cellNavigationService' | 'cellPositionUtils' | 'cellRendererFactory' | 'cellRendererService' | 'changeDetectionService' | 'chartColumnService' | 'chartCrossFilterService' | 'chartMenuItemMapper' | 'chartMenuListFactory' | 'chartMenuService' | 'chartTranslationService' | 'chartService' | 'clipboardService' | 'columnAutosizeService' | 'columnChooserFactory' | 'columnController' | 'columnDefFactory' | 'columnDropZonesService' | 'columnEditorFactory' | 'columnEventDispatcher' | 'columnFilterService' | 'columnGetStateService' | 'columnSizeService' | 'columnFactory' | 'columnAnimationService' | 'columnHoverService' | 'columnMenuFactory' | 'columnModel' | 'columnMoveService' | 'columnPositionService' | 'columnNameService' | 'columnViewportService' | 'columnGroupStateService' | 'columnApplyStateService' | 'columnUtils' | 'pivotResultColsService' | 'componentMetadataProvider' | 'context' | 'contextMenuFactory' | 'controlsColService' | 'ctrlsFactory' | 'ctrlsService' | 'csvCreator' | 'dataTypeService' | 'visibleColsService' | 'detailGridApiService' | 'dragAndDropService' | 'dragService' | 'editService' | 'excelCreator' | 'enterpriseMenuFactory' | 'environment' | 'eventService' | 'eGridDiv' | 'expansionService' | 'expressionService' | 'filterAggregatesStage' | 'filterManager' | 'filterMenuFactory' | 'filterStage' | 'flattenStage' | 'focusService' | 'funcColsService' | 'frameworkComponentWrapper' | 'frameworkOverrides' | 'globalEventListener' | 'globalSyncEventListener' | 'gridApi' | 'gridDestroyService' | 'gridOptions' | 'gos' | 'gridOptionsWrapper' | 'gridSerializer' | 'groupStage' | 'headerNavigationService' | 'headerPositionUtils' | 'horizontalResizeService' | 'immutableService' | 'lazyBlockLoadingService' | 'licenseManager' | 'localeService' | 'loggerFactory' | 'menuItemMapper' | 'menuService' | 'menuUtils' | 'modelItemUtils' | 'mouseEventService' | 'navigationService' | 'overlayService' | 'paginationAutoPageSizeService' | 'paginationService' | 'pinnedRowModel' | 'pinnedWidthService' | 'pivotColDefService' | 'pivotStage' | 'popupService' | 'quickFilterService' | 'rangeService' | 'resizeObserverService' | 'pageBoundsListener' | 'pageBoundsService' | 'renderStatusService' | 'rowContainerHeightService' | 'rowCssClassCalculator' | 'rowEditService' | 'rowModel' | 'rowNodeBlockLoader' | 'rowNodeEventThrottle' | 'rowModelHelperService' | 'rowNodeSorter' | 'rowPositionUtils' | 'rowRenderer' | 'scrollVisibleService' | 'selectableService' | 'selectionController' | 'selectionHandleFactory' | 'selectionService' | 'showRowGroupColsService' | 'sideBarService' | 'sortController' | 'sortService' | 'sortStage' | 'sparklineTooltipSingleton' | 'ssrmBlockUtils' | 'ssrmExpandListener' | 'ssrmFilterListener' | 'ssrmListenerUtils' | 'ssrmNodeManager' | 'ssrmSortService' | 'ssrmStoreFactory' | 'ssrmStoreUtils' | 'ssrmTransactionManager' | 'stateService' | 'statusBarService' | 'stylingService' | 'syncService' | 'templateService' | 'toolPanelColDefService' | 'undoRedoService' | 'userComponentFactory' | 'userComponentRegistry' | 'valueCache' | 'valueService' | 'validationLogger' | 'validationService';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NamedBean } from './context/bean';
|
|
2
2
|
import { BeanStub } from './context/beanStub';
|
|
3
|
+
import type { BeanCollection } from './context/context';
|
|
3
4
|
import type { FakeHScrollComp } from './gridBodyComp/fakeHScrollComp';
|
|
4
5
|
import type { FakeVScrollComp } from './gridBodyComp/fakeVScrollComp';
|
|
5
6
|
import type { GridBodyCtrl } from './gridBodyComp/gridBodyCtrl';
|
|
@@ -34,19 +35,21 @@ interface ReadyParams {
|
|
|
34
35
|
rightHeader: HeaderRowContainerCtrl;
|
|
35
36
|
}
|
|
36
37
|
type CtrlType = keyof ReadyParams;
|
|
37
|
-
|
|
38
|
+
type BeanDestroyFunc = Pick<BeanStub<any>, 'addDestroyFunc'>;
|
|
39
|
+
export declare class CtrlsService extends BeanStub<'ready'> implements NamedBean {
|
|
38
40
|
beanName: "ctrlsService";
|
|
39
41
|
private params;
|
|
40
42
|
private ready;
|
|
41
43
|
private readyCallbacks;
|
|
42
|
-
private
|
|
43
|
-
|
|
44
|
+
private runReadyCallbacksAsync;
|
|
45
|
+
wireBeans(beans: BeanCollection): void;
|
|
46
|
+
postConstruct(): void;
|
|
47
|
+
private updateReady;
|
|
48
|
+
whenReady(caller: BeanDestroyFunc, callback: (p: ReadyParams) => void): void;
|
|
44
49
|
register<K extends CtrlType, T extends ReadyParams[K]>(ctrlType: K, ctrl: T): void;
|
|
45
|
-
registerHeaderContainer(ctrl: HeaderRowContainerCtrl, pinned: ColumnPinnedType): void;
|
|
46
50
|
get<K extends CtrlType>(ctrlType: K): ReadyParams[K];
|
|
47
|
-
getParams(): Readonly<ReadyParams>;
|
|
48
51
|
getGridBodyCtrl(): GridBodyCtrl;
|
|
49
52
|
getHeaderRowContainerCtrls(): HeaderRowContainerCtrl[];
|
|
50
|
-
getHeaderRowContainerCtrl(pinned?: ColumnPinnedType): HeaderRowContainerCtrl;
|
|
53
|
+
getHeaderRowContainerCtrl(pinned?: ColumnPinnedType): HeaderRowContainerCtrl | undefined;
|
|
51
54
|
}
|
|
52
55
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AgGridCommon } from '../interfaces/iCommon';
|
|
2
|
+
import type { IComponent } from '../interfaces/iComponent';
|
|
3
|
+
import { Component } from '../widgets/component';
|
|
4
|
+
import type { DragAndDropIcon, DragSource } from './dragAndDropService';
|
|
5
|
+
export interface IDragAndDropImageParams<TData = any, TContext = any> extends AgGridCommon<TData, TContext> {
|
|
6
|
+
dragSource: DragSource;
|
|
7
|
+
}
|
|
8
|
+
export interface IDragAndDropImage {
|
|
9
|
+
setIcon(iconName: string | null, shake: boolean): void;
|
|
10
|
+
setLabel(label: string): void;
|
|
11
|
+
}
|
|
12
|
+
export interface IDragAndDropImageComponent<TData = any, TContext = any, TParams extends Readonly<IDragAndDropImageParams<TData, TContext>> = IDragAndDropImageParams<TData, TContext>> extends IComponent<TParams>, IDragAndDropImage {
|
|
13
|
+
}
|
|
14
|
+
export declare class DragAndDropImageComponent extends Component implements IDragAndDropImageComponent<any, any> {
|
|
15
|
+
private dragSource;
|
|
16
|
+
private readonly eIcon;
|
|
17
|
+
private readonly eLabel;
|
|
18
|
+
private dropIconMap;
|
|
19
|
+
postConstruct(): void;
|
|
20
|
+
init(params: IDragAndDropImageParams): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
setIcon(iconName: DragAndDropIcon | null, shake?: boolean): void;
|
|
23
|
+
setLabel(label: string): void;
|
|
24
|
+
}
|
|
@@ -7,6 +7,7 @@ import type { RowDropZoneParams } from '../gridBodyComp/rowDragFeature';
|
|
|
7
7
|
import type { Column } from '../interfaces/iColumn';
|
|
8
8
|
import type { AgGridCommon } from '../interfaces/iCommon';
|
|
9
9
|
import type { IRowNode } from '../interfaces/iRowNode';
|
|
10
|
+
import type { DragAndDropImageComponent } from './dragAndDropImageComponent';
|
|
10
11
|
export interface DragItem<TValue = any> {
|
|
11
12
|
/**
|
|
12
13
|
* When dragging a row, this contains the row node being dragged
|
|
@@ -17,6 +18,8 @@ export interface DragItem<TValue = any> {
|
|
|
17
18
|
rowNodes?: IRowNode[];
|
|
18
19
|
/** When dragging columns, this contains the columns being dragged */
|
|
19
20
|
columns?: Column[];
|
|
21
|
+
/** When dragging column groups, this contains the columns in the current group split. */
|
|
22
|
+
columnsInSplit?: Column[];
|
|
20
23
|
/** When dragging columns, this contains the visible state of the columns */
|
|
21
24
|
visibleState?: {
|
|
22
25
|
[key: string]: boolean;
|
|
@@ -56,7 +59,7 @@ export interface DragSource {
|
|
|
56
59
|
*/
|
|
57
60
|
getDragItem: () => DragItem;
|
|
58
61
|
/**
|
|
59
|
-
* This name appears in the
|
|
62
|
+
* This name appears in the drag and drop image component when dragging.
|
|
60
63
|
*/
|
|
61
64
|
dragItemName: string | (() => string) | null;
|
|
62
65
|
/**
|
|
@@ -80,6 +83,10 @@ export interface DragSource {
|
|
|
80
83
|
* Callback for drag stopped
|
|
81
84
|
*/
|
|
82
85
|
onDragStopped?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Callback for drag cancelled
|
|
88
|
+
*/
|
|
89
|
+
onDragCancelled?: () => void;
|
|
83
90
|
/**
|
|
84
91
|
* Callback for entering the grid
|
|
85
92
|
*/
|
|
@@ -112,6 +119,8 @@ export interface DropTarget {
|
|
|
112
119
|
onDragging?(params: DraggingEvent): void;
|
|
113
120
|
/** Callback for when drag stops */
|
|
114
121
|
onDragStop?(params: DraggingEvent): void;
|
|
122
|
+
/** Callback for when the drag is cancelled */
|
|
123
|
+
onDragCancel?(params: DraggingEvent): void;
|
|
115
124
|
external?: boolean;
|
|
116
125
|
}
|
|
117
126
|
export interface DraggingEvent<TData = any, TContext = any> extends AgGridCommon<TData, TContext> {
|
|
@@ -128,28 +137,30 @@ export interface DraggingEvent<TData = any, TContext = any> extends AgGridCommon
|
|
|
128
137
|
export type DragAndDropIcon = 'pinned' | 'move' | 'left' | 'right' | 'group' | 'aggregate' | 'pivot' | 'notAllowed' | 'hide';
|
|
129
138
|
export declare class DragAndDropService extends BeanStub implements NamedBean {
|
|
130
139
|
beanName: "dragAndDropService";
|
|
140
|
+
private ctrlsService;
|
|
131
141
|
private dragService;
|
|
132
142
|
private mouseEventService;
|
|
133
143
|
private environment;
|
|
144
|
+
private userComponentFactory;
|
|
134
145
|
wireBeans(beans: BeanCollection): void;
|
|
135
146
|
private dragSourceAndParamsList;
|
|
136
147
|
private dragItem;
|
|
137
148
|
private eventLastTime;
|
|
138
149
|
private dragSource;
|
|
139
150
|
private dragging;
|
|
140
|
-
private
|
|
141
|
-
private
|
|
142
|
-
private eGhostIcon;
|
|
151
|
+
private dragAndDropImageComp;
|
|
152
|
+
private dragAndDropImageParent;
|
|
143
153
|
private dropTargets;
|
|
144
154
|
private lastDropTarget;
|
|
145
|
-
private dropIconMap;
|
|
146
|
-
postConstruct(): void;
|
|
147
155
|
addDragSource(dragSource: DragSource, allowTouch?: boolean): void;
|
|
156
|
+
getDragAndDropImageComponent(): DragAndDropImageComponent | null;
|
|
148
157
|
removeDragSource(dragSource: DragSource): void;
|
|
149
158
|
destroy(): void;
|
|
150
159
|
nudge(): void;
|
|
151
160
|
private onDragStart;
|
|
152
161
|
private onDragStop;
|
|
162
|
+
private onDragCancel;
|
|
163
|
+
private clearDragAndDropProperties;
|
|
153
164
|
private onDragging;
|
|
154
165
|
private getAllContainersFromDropTarget;
|
|
155
166
|
private allContainersIntersect;
|
|
@@ -161,11 +172,12 @@ export declare class DragAndDropService extends BeanStub implements NamedBean {
|
|
|
161
172
|
removeDropTarget(dropTarget: DropTarget): void;
|
|
162
173
|
hasExternalDropZones(): boolean;
|
|
163
174
|
findExternalZone(params: RowDropZoneParams): DropTarget | null;
|
|
175
|
+
isDropZoneWithinThisGrid(draggingEvent: DraggingEvent): boolean;
|
|
164
176
|
getHorizontalDirection(event: MouseEvent): HorizontalDirection | null;
|
|
165
177
|
getVerticalDirection(event: MouseEvent): VerticalDirection | null;
|
|
166
178
|
createDropTargetEvent(dropTarget: DropTarget, event: MouseEvent, hDirection: HorizontalDirection | null, vDirection: VerticalDirection | null, fromNudge: boolean): DraggingEvent;
|
|
167
|
-
private
|
|
168
|
-
private
|
|
169
|
-
private
|
|
170
|
-
|
|
179
|
+
private positionDragAndDropImageComp;
|
|
180
|
+
private removeDragAndDropImageComponent;
|
|
181
|
+
private createDragAndDropImageComponent;
|
|
182
|
+
private processDragAndDropImageComponent;
|
|
171
183
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DragApiModule: Module;
|
|
1
|
+
export declare const DragApiModule: import("../interfaces/iModule").Module;
|
|
@@ -34,6 +34,8 @@ export declare class DragService extends BeanStub implements NamedBean {
|
|
|
34
34
|
onTouchUp(touchEvent: TouchEvent, el: Element): void;
|
|
35
35
|
onMouseUp(mouseEvent: MouseEvent, el: Element): void;
|
|
36
36
|
onUpCommon(eventOrTouch: MouseEvent | Touch, el: Element): void;
|
|
37
|
+
cancelDrag(el: Element): void;
|
|
38
|
+
private resetDragProperties;
|
|
37
39
|
}
|
|
38
40
|
export interface DragListenerParams {
|
|
39
41
|
/** After how many pixels of dragging should the drag operation start. Default is 4px. */
|
|
@@ -46,6 +48,8 @@ export interface DragListenerParams {
|
|
|
46
48
|
onDragStart: (mouseEvent: MouseEvent | Touch) => void;
|
|
47
49
|
/** Callback for drag stopping */
|
|
48
50
|
onDragStop: (mouseEvent: MouseEvent | Touch) => void;
|
|
51
|
+
/** Callback for drag cancel */
|
|
52
|
+
onDragCancel?: () => void;
|
|
49
53
|
/** Callback for mouse move while dragging */
|
|
50
54
|
onDragging: (mouseEvent: MouseEvent | Touch) => void;
|
|
51
55
|
/** Include touch events for this Drag Listener */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ICellEditorComp, ICellEditorParams } from '../../interfaces/iCellEditor';
|
|
1
|
+
import type { DefaultProvidedCellEditorParams, ICellEditorComp, ICellEditorParams } from '../../interfaces/iCellEditor';
|
|
2
2
|
import type { AgInputTextField } from '../../widgets/agInputTextField';
|
|
3
3
|
import { PopupComponent } from '../../widgets/popupComponent';
|
|
4
4
|
import type { CellEditorInput } from './iCellEditorInput';
|
|
5
|
-
export declare class SimpleCellEditor<TValue, P extends ICellEditorParams, I extends AgInputTextField> extends PopupComponent implements ICellEditorComp {
|
|
5
|
+
export declare class SimpleCellEditor<TValue, P extends ICellEditorParams & DefaultProvidedCellEditorParams, I extends AgInputTextField> extends PopupComponent implements ICellEditorComp {
|
|
6
6
|
protected cellEditorInput: CellEditorInput<TValue, P, I>;
|
|
7
7
|
private highlightAllOnFocus;
|
|
8
8
|
private focusAfterAttached;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const EditModule: Module;
|
|
1
|
+
export declare const EditCoreModule: import("../interfaces/iModule").Module;
|
|
2
|
+
export declare const EditApiModule: import("../interfaces/iModule").Module;
|
|
3
|
+
export declare const UndoRedoEditModule: import("../interfaces/iModule").Module;
|
|
4
|
+
export declare const FullRowEditModule: import("../interfaces/iModule").Module;
|
|
5
|
+
export declare const DefaultEditorModule: import("../interfaces/iModule").Module;
|
|
6
|
+
export declare const DataTypeEditorsModule: import("../interfaces/iModule").Module;
|
|
7
|
+
export declare const SelectEditorModule: import("../interfaces/iModule").Module;
|
|
8
|
+
export declare const LargeTextEditorModule: import("../interfaces/iModule").Module;
|
|
9
|
+
export declare const EditModule: import("../interfaces/iModule").Module;
|
|
@@ -10,7 +10,7 @@ export declare class EditService extends BeanStub implements NamedBean {
|
|
|
10
10
|
private userComponentFactory;
|
|
11
11
|
private valueService;
|
|
12
12
|
wireBeans(beans: CoreBeanCollection): void;
|
|
13
|
-
startEditing(cellCtrl: CellCtrl, key?: string | null, cellStartedEdit?: boolean, event?: KeyboardEvent | MouseEvent | null):
|
|
13
|
+
startEditing(cellCtrl: CellCtrl, key?: string | null, cellStartedEdit?: boolean, event?: KeyboardEvent | MouseEvent | null): boolean;
|
|
14
14
|
stopEditing(cellCtrl: CellCtrl, cancel: boolean): boolean;
|
|
15
15
|
handleColDefChanged(cellCtrl: CellCtrl): void;
|
|
16
16
|
setFocusOutOnEditor(cellCtrl: CellCtrl): void;
|
|
@@ -4,7 +4,7 @@ import type { CellCtrl } from '../rendering/cell/cellCtrl';
|
|
|
4
4
|
import type { RowCtrl } from '../rendering/row/rowCtrl';
|
|
5
5
|
export declare class RowEditService extends BeanStub implements NamedBean {
|
|
6
6
|
beanName: "rowEditService";
|
|
7
|
-
startEditing(rowCtrl: RowCtrl, key?: string | null, sourceRenderedCell?: CellCtrl | null, event?: KeyboardEvent | null):
|
|
7
|
+
startEditing(rowCtrl: RowCtrl, key?: string | null, sourceRenderedCell?: CellCtrl | null, event?: KeyboardEvent | null): boolean;
|
|
8
8
|
stopEditing(rowCtrl: RowCtrl, cancel?: boolean): void;
|
|
9
9
|
private setEditing;
|
|
10
10
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { BeanStub } from '../context/beanStub';
|
|
2
2
|
import type { BeanCollection } from '../context/context';
|
|
3
3
|
import type { ColumnEvent, ColumnEventType } from '../events';
|
|
4
|
-
import type { Column, ColumnEventName, ColumnGroup, ColumnGroupShowType, ColumnInstanceId, ColumnPinnedType, HeaderColumnId, ProvidedColumnGroup } from '../interfaces/iColumn';
|
|
4
|
+
import type { Column, ColumnEventName, ColumnGroup, ColumnGroupShowType, ColumnHighlightPosition, ColumnInstanceId, ColumnPinnedType, HeaderColumnId, ProvidedColumnGroup } from '../interfaces/iColumn';
|
|
5
5
|
import type { IRowNode } from '../interfaces/iRowNode';
|
|
6
6
|
import type { AgColumnGroup } from './agColumnGroup';
|
|
7
7
|
import type { AgProvidedColumnGroup } from './agProvidedColumnGroup';
|
|
8
8
|
import type { AbstractColDef, ColDef, ColumnFunctionCallbackParams, IAggFunc, SortDirection } from './colDef';
|
|
9
9
|
export declare function getNextColInstanceId(): ColumnInstanceId;
|
|
10
10
|
export declare function isColumn(col: Column | ColumnGroup | ProvidedColumnGroup): col is AgColumn;
|
|
11
|
-
export declare const DEFAULT_COLUMN_MIN_WIDTH = 20;
|
|
12
11
|
export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> implements Column {
|
|
13
12
|
readonly isColumn: true;
|
|
14
13
|
private columnHoverService;
|
|
@@ -29,6 +28,7 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
29
28
|
private sortIndex;
|
|
30
29
|
private moving;
|
|
31
30
|
private menuVisible;
|
|
31
|
+
private highlighted;
|
|
32
32
|
private lastLeftPinned;
|
|
33
33
|
private firstRightPinned;
|
|
34
34
|
private minWidth;
|
|
@@ -67,6 +67,7 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
67
67
|
isFieldContainsDots(): boolean;
|
|
68
68
|
isTooltipEnabled(): boolean;
|
|
69
69
|
isTooltipFieldContainsDots(): boolean;
|
|
70
|
+
getHighlighted(): ColumnHighlightPosition | null;
|
|
70
71
|
addEventListener<T extends ColumnEventName>(eventType: T, userListener: (params: ColumnEvent<T>) => void): void;
|
|
71
72
|
removeEventListener<T extends ColumnEventName>(eventType: T, userListener: (params: ColumnEvent<T>) => void): void;
|
|
72
73
|
createColumnFunctionCallbackParams(rowNode: IRowNode): ColumnFunctionCallbackParams;
|
|
@@ -83,6 +84,7 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
83
84
|
/** Get value from ColDef or default if it exists. */
|
|
84
85
|
private getColDefValue;
|
|
85
86
|
private isColumnFunc;
|
|
87
|
+
setHighlighted(highlighted: ColumnHighlightPosition | null): void;
|
|
86
88
|
setMoving(moving: boolean, source: ColumnEventType): void;
|
|
87
89
|
private createColumnEvent;
|
|
88
90
|
isMoving(): boolean;
|
|
@@ -9,6 +9,7 @@ export declare class AgColumnGroup<TValue = any> extends BeanStub<AgColumnGroupE
|
|
|
9
9
|
readonly isColumn: false;
|
|
10
10
|
private children;
|
|
11
11
|
private displayedChildren;
|
|
12
|
+
private autoHeaderHeight;
|
|
12
13
|
private readonly groupId;
|
|
13
14
|
private readonly partId;
|
|
14
15
|
private readonly providedColumnGroup;
|
|
@@ -43,6 +44,10 @@ export declare class AgColumnGroup<TValue = any> extends BeanStub<AgColumnGroupE
|
|
|
43
44
|
isExpandable(): boolean;
|
|
44
45
|
isExpanded(): boolean;
|
|
45
46
|
setExpanded(expanded: boolean): void;
|
|
47
|
+
isAutoHeaderHeight(): boolean;
|
|
48
|
+
getAutoHeaderHeight(): number | null;
|
|
49
|
+
/** Returns true if the header height has changed */
|
|
50
|
+
setAutoHeaderHeight(height: number): boolean;
|
|
46
51
|
private addDisplayedLeafColumns;
|
|
47
52
|
private addLeafColumns;
|
|
48
53
|
getChildren(): (AgColumn | AgColumnGroup)[] | null;
|
|
@@ -53,6 +53,19 @@ export interface AbstractColDef<TData = any, TValue = any> {
|
|
|
53
53
|
* Context property that can be used to associate arbitrary application data with this column definition.
|
|
54
54
|
*/
|
|
55
55
|
context?: any;
|
|
56
|
+
/** If enabled then column header names that are too long for the column width will wrap onto the next line. Default `false` */
|
|
57
|
+
wrapHeaderText?: boolean;
|
|
58
|
+
/** If enabled then the column header row will automatically adjust height to accommodate the size of the header cell.
|
|
59
|
+
* This can be useful when using your own `headerComponent` or long header names in conjunction with `wrapHeaderText`.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
autoHeaderHeight?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Set to `true` to not display the column menu when the column header is right-clicked.
|
|
65
|
+
* Doesn't apply when `columnMenu = 'legacy'`.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
suppressHeaderContextMenu?: boolean;
|
|
56
69
|
}
|
|
57
70
|
/** Configuration options for column groups in AG Grid. */
|
|
58
71
|
export interface ColGroupDef<TData = any> extends AbstractColDef<TData> {
|
|
@@ -160,7 +173,7 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
160
173
|
cellDataType?: boolean | string;
|
|
161
174
|
/** Function or expression. Gets the value from your data for display. */
|
|
162
175
|
valueGetter?: string | ValueGetterFunc<TData, TValue>;
|
|
163
|
-
/** A function or expression to format a value, should return a string.
|
|
176
|
+
/** A function or expression to format a value, should return a string. */
|
|
164
177
|
valueFormatter?: string | ValueFormatterFunc<TData, TValue>;
|
|
165
178
|
/** Provided a reference data map to be used to map column values to their respective value from the map. */
|
|
166
179
|
refData?: {
|
|
@@ -185,6 +198,8 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
185
198
|
*/
|
|
186
199
|
tooltipValueGetter?: (params: ITooltipParams<TData, TValue>) => string | any;
|
|
187
200
|
/**
|
|
201
|
+
* @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
|
|
202
|
+
*
|
|
188
203
|
* Set to `true` (or return `true` from function) to render a selection checkbox in the column.
|
|
189
204
|
* @default false
|
|
190
205
|
*/
|
|
@@ -315,13 +330,6 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
315
330
|
* Only applies if `floatingFilter = true`.
|
|
316
331
|
*/
|
|
317
332
|
suppressFloatingFilterButton?: boolean;
|
|
318
|
-
/** If enabled then column header names that are too long for the column width will wrap onto the next line. Default `false` */
|
|
319
|
-
wrapHeaderText?: boolean;
|
|
320
|
-
/** If enabled then the column header row will automatically adjust height to accommodate the size of the header cell.
|
|
321
|
-
* This can be useful when using your own `headerComponent` or long header names in conjunction with `wrapHeaderText`.
|
|
322
|
-
* @default false
|
|
323
|
-
*/
|
|
324
|
-
autoHeaderHeight?: boolean;
|
|
325
333
|
/**
|
|
326
334
|
* The custom header component to be used for rendering the component header. If none specified the default AG Grid header component is used.
|
|
327
335
|
* See [Header Component](https://www.ag-grid.com/javascript-data-grid/component-header/) for framework specific implementation detail.
|
|
@@ -351,12 +359,6 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
351
359
|
* @default false
|
|
352
360
|
*/
|
|
353
361
|
suppressHeaderFilterButton?: boolean;
|
|
354
|
-
/**
|
|
355
|
-
* Set to `true` to not display the column menu when the column header is right-clicked.
|
|
356
|
-
* Doesn't apply when `columnMenu = 'legacy'`.
|
|
357
|
-
* @default false
|
|
358
|
-
*/
|
|
359
|
-
suppressHeaderContextMenu?: boolean;
|
|
360
362
|
/**
|
|
361
363
|
* Customise the list of menu items available in the column menu.
|
|
362
364
|
*/
|
|
@@ -365,14 +367,22 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
365
367
|
* Customise the list of menu items available in the context menu.
|
|
366
368
|
*/
|
|
367
369
|
contextMenuItems?: (string | MenuItemDef<TData>)[] | GetContextMenuItems<TData>;
|
|
368
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
|
|
372
|
+
*
|
|
373
|
+
* If `true` or the callback returns `true`, a 'select all' checkbox will be put into the header.
|
|
374
|
+
*/
|
|
369
375
|
headerCheckboxSelection?: boolean | HeaderCheckboxSelectionCallback<TData, TValue>;
|
|
370
376
|
/**
|
|
377
|
+
* @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
|
|
378
|
+
*
|
|
371
379
|
* If `true`, the header checkbox selection will only select filtered items.
|
|
372
380
|
* @default false
|
|
373
381
|
*/
|
|
374
382
|
headerCheckboxSelectionFilteredOnly?: boolean;
|
|
375
383
|
/**
|
|
384
|
+
* @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
|
|
385
|
+
*
|
|
376
386
|
* If `true`, the header checkbox selection will only select nodes on the current page.
|
|
377
387
|
* @default false
|
|
378
388
|
*/
|
|
@@ -441,7 +451,7 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
|
|
|
441
451
|
cellRendererSelector?: CellRendererSelectorFunc<TData, TValue>;
|
|
442
452
|
/**
|
|
443
453
|
* The renderer to be used while the row is in an unloaded state.
|
|
444
|
-
* Only used if `suppressServerSideFullWidthLoadingRow` is enabled.
|
|
454
|
+
* Only used if `suppressServerSideFullWidthLoadingRow` or `groupHideOpenParents` is enabled.
|
|
445
455
|
*/
|
|
446
456
|
loadingCellRenderer?: any;
|
|
447
457
|
/** Params to be passed to the `loadingCellRenderer` component. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Column } from '../interfaces/iColumn';
|
|
2
|
+
import type { IRowNode } from '../interfaces/iRowNode';
|
|
1
3
|
import type { BaseColDefOptionalDataParams, ValueFormatterParams, ValueParserParams } from './colDef';
|
|
2
4
|
export type ValueParserLiteParams<TData, TValue> = Omit<ValueParserParams<TData, TValue>, 'data' | 'node' | 'oldValue'>;
|
|
3
5
|
export interface ValueParserLiteFunc<TData, TValue> {
|
|
@@ -108,4 +110,9 @@ export interface ObjectDataTypeDefinition<TData, TValue> extends BaseDataTypeDef
|
|
|
108
110
|
export type DataTypeDefinition<TData = any> = TextDataTypeDefinition<TData> | NumberDataTypeDefinition<TData> | BooleanDataTypeDefinition<TData> | DateDataTypeDefinition<TData> | DateStringDataTypeDefinition<TData> | ObjectDataTypeDefinition<TData, any>;
|
|
109
111
|
/** Configuration options for pre-defined data types. */
|
|
110
112
|
export type CoreDataTypeDefinition<TData = any> = Omit<TextDataTypeDefinition<TData>, 'extendsDataType'> | Omit<NumberDataTypeDefinition<TData>, 'extendsDataType'> | Omit<BooleanDataTypeDefinition<TData>, 'extendsDataType'> | Omit<DateDataTypeDefinition<TData>, 'extendsDataType'> | Omit<DateStringDataTypeDefinition<TData>, 'extendsDataType'> | Omit<ObjectDataTypeDefinition<TData, any>, 'extendsDataType'>;
|
|
113
|
+
export type DataTypeFormatValueFunc = (params: {
|
|
114
|
+
column: Column;
|
|
115
|
+
node: IRowNode | null;
|
|
116
|
+
value: any;
|
|
117
|
+
}) => string;
|
|
111
118
|
export {};
|