ag-grid-community 35.3.0 → 36.0.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/dist/ag-grid-community.js +43054 -40943
- package/dist/ag-grid-community.min.js +829 -472
- package/dist/ag-grid-community.min.noStyle.js +36 -39
- package/dist/ag-grid-community.noStyle.js +41911 -40166
- package/dist/package/main.cjs.js +27494 -32054
- package/dist/package/main.cjs.min.js +27 -44
- package/dist/package/main.esm.min.mjs +27 -44
- package/dist/package/main.esm.mjs +30454 -34846
- package/dist/package/package.json +3 -2
- package/dist/package.json +3 -2
- package/dist/types/package.json +3 -2
- package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractField.d.ts +1 -6
- package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractInputField.d.ts +1 -4
- package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractLabel.d.ts +2 -7
- package/dist/types/src/{agStack/widgets → agWidgets}/agCheckbox.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agContentEditableField.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agFieldParams.d.ts +1 -1
- package/dist/types/src/agWidgets/agFieldSet.d.ts +19 -0
- package/dist/types/src/{agStack/widgets → agWidgets}/agInputDateField.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agInputNumberField.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agInputTextArea.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agInputTextField.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agList.d.ts +2 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agListItem.d.ts +2 -7
- package/dist/types/src/{agStack/widgets → agWidgets}/agPickerField.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agPickerFieldParams.d.ts +1 -2
- package/dist/types/src/{agStack/widgets → agWidgets}/agRadioButton.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agSelect.d.ts +1 -5
- package/dist/types/src/{agStack/widgets → agWidgets}/agToggleButton.d.ts +1 -5
- package/dist/types/src/agWidgets/agWidgetSelectorType.d.ts +2 -0
- package/dist/types/src/alignedGrids/alignedGridsService.d.ts +1 -1
- package/dist/types/src/api/coreApi.d.ts +1 -0
- package/dist/types/src/api/gridApi.d.ts +5 -3
- package/dist/types/src/autoGenerateColumns/autoGenerateColumnsModule.d.ts +6 -0
- package/dist/types/src/autoGenerateColumns/autoGenerateColumnsService.d.ts +7 -0
- package/dist/types/src/columnMove/columnDrag/bodyDropPivotTarget.d.ts +3 -3
- package/dist/types/src/columnMove/columnDrag/bodyDropTarget.d.ts +8 -5
- package/dist/types/src/columnMove/columnDrag/moveColumnFeature.d.ts +0 -1
- package/dist/types/src/columnMove/columnMoveService.d.ts +2 -2
- package/dist/types/src/columnMove/columnMoveUtils.d.ts +2 -0
- package/dist/types/src/columnMove/internalColumnMoveUtils.d.ts +4 -4
- package/dist/types/src/columnResize/columnResizeService.d.ts +2 -3
- package/dist/types/src/columnResize/groupResizeFeature.d.ts +1 -3
- package/dist/types/src/columnResize/resizeFeature.d.ts +1 -3
- package/dist/types/src/columns/baseSingleColService.d.ts +23 -0
- package/dist/types/src/columns/buildColumnTree.d.ts +42 -0
- package/dist/types/src/columns/calculatedColumnUtils.d.ts +8 -0
- package/dist/types/src/columns/colDefUtils.d.ts +9 -0
- package/dist/types/src/columns/colsApplyPrevOrder.d.ts +2 -0
- package/dist/types/src/columns/columnApi.d.ts +2 -3
- package/dist/types/src/columns/columnDefFactory.d.ts +4 -8
- package/dist/types/src/columns/columnEventUtils.d.ts +4 -1
- package/dist/types/src/columns/columnFlexService.d.ts +1 -1
- package/dist/types/src/columns/columnGroups/colWrapperCache.d.ts +16 -0
- package/dist/types/src/columns/columnGroups/columnGroupService.d.ts +14 -41
- package/dist/types/src/columns/columnGroups/columnGroupState.d.ts +13 -0
- package/dist/types/src/columns/columnModel.d.ts +105 -59
- package/dist/types/src/columns/columnNameService.d.ts +1 -1
- package/dist/types/src/columns/columnStateUtils.d.ts +54 -13
- package/dist/types/src/columns/columnUtils.d.ts +20 -25
- package/dist/types/src/columns/dataTypeService.d.ts +3 -1
- package/dist/types/src/columns/groupInstanceIdCreator.d.ts +1 -2
- package/dist/types/src/columns/selectionColService.d.ts +7 -28
- package/dist/types/src/columns/visibleColsService.d.ts +51 -25
- package/dist/types/src/components/framework/frameworkComponentWrapper.d.ts +1 -1
- package/dist/types/src/components/framework/registry.d.ts +2 -3
- package/dist/types/src/components/framework/userCompUtils.d.ts +5 -5
- package/dist/types/src/components/framework/userComponentFactory.d.ts +1 -1
- package/dist/types/src/context/bean.d.ts +1 -1
- package/dist/types/src/context/beanStub.d.ts +5 -3
- package/dist/types/src/context/context.d.ts +14 -13
- package/dist/types/src/context/gridBeanComparator.d.ts +1 -1
- package/dist/types/src/csvExport/csvExportModule.d.ts +1 -1
- package/dist/types/src/ctrlsService.d.ts +8 -22
- package/dist/types/src/dragAndDrop/dragAndDropImageComponent.d.ts +1 -3
- package/dist/types/src/dragAndDrop/dragAndDropService.d.ts +2 -4
- package/dist/types/src/dragAndDrop/dragModule.d.ts +1 -1
- package/dist/types/src/dragAndDrop/dragService.d.ts +1 -1
- package/dist/types/src/dragAndDrop/horizontalResizeService.d.ts +2 -0
- package/dist/types/src/dragAndDrop/rowDragComp.d.ts +1 -1
- package/dist/types/src/dragAndDrop/rowDragTypes.d.ts +1 -2
- package/dist/types/src/edit/cellEditors/agAbstractCellEditor.d.ts +2 -2
- package/dist/types/src/edit/cellEditors/popupEditorWrapper.d.ts +1 -1
- package/dist/types/src/edit/editService.d.ts +2 -0
- package/dist/types/src/edit/strategy/fullRowEditStrategy.d.ts +2 -1
- package/dist/types/src/edit/strategy/singleCellEditStrategy.d.ts +2 -1
- package/dist/types/src/entities/agColumn.d.ts +117 -58
- package/dist/types/src/entities/agColumnGroup.d.ts +24 -16
- package/dist/types/src/entities/agProvidedColumnGroup.d.ts +20 -19
- package/dist/types/src/entities/colDef-showValuesAs.d.ts +228 -0
- package/dist/types/src/entities/colDef.d.ts +68 -6
- package/dist/types/src/entities/gridOptions.d.ts +93 -8
- package/dist/types/src/entities/rowNode.d.ts +7 -3
- package/dist/types/src/environment.d.ts +2 -4
- package/dist/types/src/eventService.d.ts +1 -1
- package/dist/types/src/eventTypes.d.ts +4 -4
- package/dist/types/src/events.d.ts +48 -3
- package/dist/types/src/export/baseGridSerializingSession.d.ts +4 -2
- package/dist/types/src/export/iGridSerializer.d.ts +4 -2
- package/dist/types/src/filter/columnFilterService.d.ts +2 -2
- package/dist/types/src/filter/columnFilterUtils.d.ts +1 -1
- package/dist/types/src/filter/filterButtonComp.d.ts +1 -1
- package/dist/types/src/filter/filterComp.d.ts +1 -1
- package/dist/types/src/filter/filterDataTypeUtils.d.ts +1 -1
- package/dist/types/src/filter/filterLocaleText.d.ts +1 -1
- package/dist/types/src/filter/filterManager.d.ts +2 -1
- package/dist/types/src/filter/filterWrapperComp.d.ts +1 -1
- package/dist/types/src/filter/floating/floatingFilter.d.ts +1 -1
- package/dist/types/src/filter/floating/provided/floatingFilterTextInputService.d.ts +2 -2
- package/dist/types/src/filter/provided/date/iDateFilter.d.ts +1 -0
- package/dist/types/src/filter/provided/providedFilter.d.ts +1 -1
- package/dist/types/src/filter/provided/providedFilterUtils.d.ts +1 -1
- package/dist/types/src/filter/provided/simpleFilter.d.ts +1 -1
- package/dist/types/src/grid.d.ts +11 -12
- package/dist/types/src/gridBodyComp/fakeHScrollComp.d.ts +3 -4
- package/dist/types/src/gridBodyComp/fakeVScrollComp.d.ts +4 -0
- package/dist/types/src/gridBodyComp/gridBodyComp.d.ts +11 -5
- package/dist/types/src/gridBodyComp/gridBodyCtrl.d.ts +45 -34
- package/dist/types/src/gridBodyComp/gridBodyScrollFeature.d.ts +6 -5
- package/dist/types/src/gridBodyComp/rowContainer/rowContainerComp.d.ts +22 -0
- package/dist/types/src/gridBodyComp/rowContainer/rowContainerCtrl.d.ts +9 -33
- package/dist/types/src/gridBodyComp/scrollVisibleService.d.ts +13 -8
- package/dist/types/src/gridBodyComp/viewportSizeFeature.d.ts +7 -2
- package/dist/types/src/gridComp/gridCtrl.d.ts +3 -5
- package/dist/types/src/gridOptionsDefault.d.ts +1 -0
- package/dist/types/src/gridOptionsService.d.ts +1 -1
- package/dist/types/src/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.d.ts +1 -1
- package/dist/types/src/headerRendering/cells/column/{headerComp.d.ts → agColumnHeader.d.ts} +5 -1
- package/dist/types/src/headerRendering/cells/column/headerCellCtrl.d.ts +5 -2
- package/dist/types/src/headerRendering/cells/columnGroup/{headerGroupComp.d.ts → agColumnGroupHeader.d.ts} +2 -2
- package/dist/types/src/headerRendering/cells/columnGroup/groupStickyLabelFeature.d.ts +1 -0
- package/dist/types/src/headerRendering/cells/columnGroup/headerGroupCellCtrl.d.ts +5 -1
- package/dist/types/src/headerRendering/cells/cssClassApplier.d.ts +5 -3
- package/dist/types/src/headerRendering/cells/floatingFilter/headerFilterCellCtrl.d.ts +3 -1
- package/dist/types/src/headerRendering/cells/floatingFilter/iHeaderFilterCellComp.d.ts +1 -1
- package/dist/types/src/headerRendering/gridHeaderComp.d.ts +10 -2
- package/dist/types/src/headerRendering/gridHeaderCtrl.d.ts +4 -2
- package/dist/types/src/headerRendering/headerUtils.d.ts +34 -0
- package/dist/types/src/headerRendering/row/headerRowComp.d.ts +9 -0
- package/dist/types/src/headerRendering/row/headerRowCtrl.d.ts +4 -4
- package/dist/types/src/headerRendering/rowContainer/headerRowContainerCtrl.d.ts +3 -11
- package/dist/types/src/headerRendering/rowContainer/headerRowsComp.d.ts +12 -0
- package/dist/types/src/interfaces/IRangeService.d.ts +1 -1
- package/dist/types/src/interfaces/dateComponent.d.ts +1 -1
- package/dist/types/src/interfaces/exportParams.d.ts +11 -5
- package/dist/types/src/interfaces/formulas.d.ts +3 -2
- package/dist/types/src/interfaces/gridState.d.ts +7 -3
- package/dist/types/src/interfaces/iAdvancedFilterCtrl.d.ts +2 -1
- package/dist/types/src/interfaces/iAutoColService.d.ts +12 -0
- package/dist/types/src/interfaces/iCalculatedColumns.d.ts +61 -0
- package/dist/types/src/interfaces/iCellEditor.d.ts +1 -1
- package/dist/types/src/interfaces/iCellEditorRenderer.d.ts +1 -1
- package/dist/types/src/interfaces/iCellStyleFeature.d.ts +1 -1
- package/dist/types/src/interfaces/iColsService.d.ts +36 -42
- package/dist/types/src/interfaces/iColumn.d.ts +18 -3
- package/dist/types/src/interfaces/iColumnStateUpdateStrategy.d.ts +4 -3
- package/dist/types/src/interfaces/iContextMenu.d.ts +1 -1
- package/dist/types/src/interfaces/iEditService.d.ts +4 -4
- package/dist/types/src/interfaces/iEventService.d.ts +1 -1
- package/dist/types/src/interfaces/iFileProcessor.d.ts +9 -0
- package/dist/types/src/interfaces/iFilter.d.ts +1 -2
- package/dist/types/src/interfaces/iFooterService.d.ts +2 -1
- package/dist/types/src/interfaces/iFrameworkOverrides.d.ts +1 -2
- package/dist/types/src/interfaces/iGridSection.d.ts +8 -0
- package/dist/types/src/interfaces/iGroupHierarchyColService.d.ts +9 -19
- package/dist/types/src/interfaces/iHeader.d.ts +2 -2
- package/dist/types/src/interfaces/iLoadingCellRenderer.d.ts +1 -1
- package/dist/types/src/interfaces/iModule.d.ts +4 -5
- package/dist/types/src/interfaces/iMultiFilter.d.ts +1 -1
- package/dist/types/src/interfaces/iNewFiltersToolPanel.d.ts +4 -8
- package/dist/types/src/interfaces/iPinnedSectionCompHost.d.ts +5 -0
- package/dist/types/src/interfaces/iPivotResultColsService.d.ts +27 -7
- package/dist/types/src/interfaces/iRichCellEditorParams.d.ts +1 -1
- package/dist/types/src/interfaces/iRowNode.d.ts +6 -3
- package/dist/types/src/interfaces/iRowNodeStage.d.ts +7 -0
- package/dist/types/src/interfaces/iRowStyleFeature.d.ts +1 -1
- package/dist/types/src/interfaces/iSelectionService.d.ts +3 -3
- package/dist/types/src/interfaces/iSetFilter.d.ts +1 -1
- package/dist/types/src/interfaces/iShowRowGroupColsService.d.ts +4 -1
- package/dist/types/src/interfaces/iShowValuesAsService.d.ts +48 -0
- package/dist/types/src/interfaces/iSort.d.ts +10 -0
- package/dist/types/src/interfaces/iSortModelItem.d.ts +1 -1
- package/dist/types/src/interfaces/iSortOption.d.ts +10 -1
- package/dist/types/src/interfaces/iStatusPanel.d.ts +1 -1
- package/dist/types/src/interfaces/iToolPanel.d.ts +1 -1
- package/dist/types/src/interfaces/iToolbar.d.ts +1 -1
- package/dist/types/src/interfaces/iUserCompDetails.d.ts +1 -2
- package/dist/types/src/interfaces/menuItem.d.ts +2 -2
- package/dist/types/src/interfaces/rowNumbers.d.ts +6 -4
- package/dist/types/src/main-internal.d.ts +54 -118
- package/dist/types/src/main.d.ts +34 -35
- package/dist/types/src/misc/iconService.d.ts +1 -1
- package/dist/types/src/misc/locale/localeService.d.ts +1 -1
- package/dist/types/src/misc/state/stateService.d.ts +6 -2
- package/dist/types/src/misc/touchService.d.ts +5 -5
- package/dist/types/src/modules/moduleRegistry.d.ts +1 -3
- package/dist/types/src/pagination/pageSizeSelectorComp.d.ts +4 -1
- package/dist/types/src/pagination/pageSummaryComp.d.ts +7 -2
- package/dist/types/src/pagination/paginationAutoPageSizeService.d.ts +1 -1
- package/dist/types/src/pagination/paginationService.d.ts +5 -1
- package/dist/types/src/pagination/paginationUtils.d.ts +1 -1
- package/dist/types/src/pinnedColumns/pinnedColumnService.d.ts +2 -3
- package/dist/types/src/pinnedRowModel/manualPinnedRowUtils.d.ts +1 -0
- package/dist/types/src/publicEventHandlersMap.d.ts +1 -1
- package/dist/types/src/rendering/ariaAnnouncementService.d.ts +1 -1
- package/dist/types/src/rendering/autoWidthCalculator.d.ts +1 -1
- package/dist/types/src/rendering/cell/cellCtrl.d.ts +7 -2
- package/dist/types/src/rendering/cell/cellPositionFeature.d.ts +1 -1
- package/dist/types/src/rendering/cellRenderers/iCellRenderer.d.ts +1 -1
- package/dist/types/src/rendering/features/horizontalPositionUtils.d.ts +21 -0
- package/dist/types/src/rendering/features/positionableFeature.d.ts +1 -1
- package/dist/types/src/rendering/features/setLeftFeature.d.ts +2 -4
- package/dist/types/src/rendering/overlays/fileInputOverlayComponent.d.ts +25 -0
- package/dist/types/src/rendering/overlays/fileInputOverlayModule.d.ts +6 -0
- package/dist/types/src/rendering/overlays/overlayComponent.d.ts +13 -3
- package/dist/types/src/rendering/overlays/overlayWrapperComponent.d.ts +1 -1
- package/dist/types/src/rendering/row/fullWidthRowFeature.d.ts +70 -0
- package/dist/types/src/rendering/row/iRowModeFeature.d.ts +48 -0
- package/dist/types/src/rendering/row/normalRowFeature.d.ts +37 -0
- package/dist/types/src/rendering/row/rowAutoHeightService.d.ts +1 -2
- package/dist/types/src/rendering/row/rowComp.d.ts +16 -0
- package/dist/types/src/rendering/row/rowCtrl.d.ts +75 -66
- package/dist/types/src/rendering/rowContainerHeightService.d.ts +2 -0
- package/dist/types/src/rendering/rowRenderer.d.ts +6 -5
- package/dist/types/src/rendering/spanning/rowSpanCache.d.ts +5 -5
- package/dist/types/src/rendering/spanning/rowSpanService.d.ts +15 -19
- package/dist/types/src/rendering/spanning/spannedRowCtrl.d.ts +3 -4
- package/dist/types/src/rendering/spanning/spannedRowRenderer.d.ts +3 -2
- package/dist/types/src/selection/baseSelectionService.d.ts +3 -3
- package/dist/types/src/selection/selectionService.d.ts +1 -1
- package/dist/types/src/sort/rowNodeSorter.d.ts +5 -12
- package/dist/types/src/sort/sortIndicatorComp.d.ts +1 -1
- package/dist/types/src/sort/sortOptionUtils.d.ts +9 -0
- package/dist/types/src/sort/sortService.d.ts +25 -22
- package/dist/types/src/styling/calculatedColumnCss.d.ts +5 -0
- package/dist/types/src/testing/testIdUtils.d.ts +3 -3
- package/dist/types/src/theming/core/core-css.d.ts +150 -3
- package/dist/types/src/theming/createTheme.d.ts +2 -7
- package/dist/types/src/theming/parts/button-style/button-styles.d.ts +1 -2
- package/dist/types/src/theming/parts/checkbox-style/checkbox-styles.d.ts +1 -2
- package/dist/types/src/theming/parts/color-scheme/color-schemes.d.ts +88 -92
- package/dist/types/src/theming/parts/column-drop-style/column-drop-styles.d.ts +2 -2
- package/dist/types/src/theming/parts/icon-set/alpine/icon-set-alpine.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/balham/icon-set-balham.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/material/icon-set-material.d.ts +1 -1
- package/dist/types/src/theming/parts/icon-set/overrides/icon-overrides.d.ts +2 -2
- package/dist/types/src/theming/parts/icon-set/quartz/icon-set-quartz.d.ts +1 -1
- package/dist/types/src/theming/parts/input-style/input-styles.d.ts +5 -2
- package/dist/types/src/theming/parts/tab-style/tab-styles.d.ts +1 -2
- package/dist/types/src/theming/parts/theme/themes.d.ts +3 -7
- package/dist/types/src/tooltip/tooltipComponent.d.ts +2 -2
- package/dist/types/src/tooltip/tooltipFeature.d.ts +1 -2
- package/dist/types/src/tooltip/tooltipService.d.ts +2 -2
- package/dist/types/src/tooltip/tooltipStateManager.d.ts +2 -2
- package/dist/types/src/utils/element.d.ts +1 -1
- package/dist/types/src/utils/gridFocus.d.ts +1 -0
- package/dist/types/src/utils/icon.d.ts +1 -1
- package/dist/types/src/utils/mergeDeep.d.ts +10 -2
- package/dist/types/src/utils/number.d.ts +10 -1
- package/dist/types/src/utils/value.d.ts +7 -0
- package/dist/types/src/validation/errorMessages/errorText.d.ts +20 -75
- package/dist/types/src/validation/rules/iconValidations.d.ts +1 -1
- package/dist/types/src/validation/validationModule.d.ts +24 -0
- package/dist/types/src/validation/validationService.d.ts +1 -1
- package/dist/types/src/valueService/cellApi.d.ts +9 -4
- package/dist/types/src/valueService/valueService.d.ts +45 -13
- package/dist/types/src/vanillaFrameworkOverrides.d.ts +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/widgets/component.d.ts +4 -4
- package/dist/types/src/widgets/gridWidgetTypes.d.ts +12 -9
- package/dist/types/src/widgets/managedFocusFeature.d.ts +2 -2
- package/dist/types/src/widgets/popupService.d.ts +2 -2
- package/dist/types/src/widgets/tabGuard.d.ts +2 -3
- package/dist/types/src/widgets/tabGuardComp.d.ts +2 -2
- package/dist/types/src/widgets/touchListener.d.ts +3 -2
- package/package.json +3 -2
- package/styles/_css-content.scss +1506 -756
- package/styles/_icon-font-codes.scss +3 -0
- package/styles/ag-grid-no-native-widgets.css +713 -323
- package/styles/ag-grid-no-native-widgets.min.css +8 -5
- package/styles/ag-grid.css +713 -323
- package/styles/ag-grid.min.css +8 -5
- package/styles/ag-theme-alpine-no-font.css +8 -14
- package/styles/ag-theme-alpine-no-font.min.css +2 -2
- package/styles/ag-theme-alpine.css +9 -15
- package/styles/ag-theme-alpine.min.css +2 -2
- package/styles/ag-theme-balham-no-font.css +4 -3
- package/styles/ag-theme-balham-no-font.min.css +2 -2
- package/styles/ag-theme-balham.css +5 -4
- package/styles/ag-theme-balham.min.css +2 -2
- package/styles/ag-theme-material-no-font.css +10 -11
- package/styles/ag-theme-material-no-font.min.css +2 -2
- package/styles/ag-theme-material.css +11 -12
- package/styles/ag-theme-material.min.css +2 -2
- package/styles/ag-theme-quartz-no-font.css +13 -22
- package/styles/ag-theme-quartz-no-font.min.css +2 -2
- package/styles/ag-theme-quartz.css +14 -23
- package/styles/ag-theme-quartz.min.css +3 -3
- 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/agStack/constants/direction.d.ts +0 -8
- package/dist/types/src/agStack/constants/keyCode.d.ts +0 -25
- package/dist/types/src/agStack/core/agBeanStub.d.ts +0 -87
- package/dist/types/src/agStack/core/agComponentStub.d.ts +0 -59
- package/dist/types/src/agStack/core/agContext.d.ts +0 -54
- package/dist/types/src/agStack/core/baseAriaAnnouncementService.d.ts +0 -21
- package/dist/types/src/agStack/core/baseDragAndDropService.d.ts +0 -54
- package/dist/types/src/agStack/core/baseDragService.d.ts +0 -39
- package/dist/types/src/agStack/core/baseEnvironment.d.ts +0 -58
- package/dist/types/src/agStack/core/baseRegistry.d.ts +0 -15
- package/dist/types/src/agStack/events/baseEventService.d.ts +0 -18
- package/dist/types/src/agStack/events/localEventService.d.ts +0 -27
- package/dist/types/src/agStack/events/pointerCapture.d.ts +0 -7
- package/dist/types/src/agStack/focus/agManagedFocusFeature.d.ts +0 -28
- package/dist/types/src/agStack/focus/agTabGuardComp.d.ts +0 -16
- package/dist/types/src/agStack/focus/agTabGuardFeature.d.ts +0 -55
- package/dist/types/src/agStack/focus/tabGuardCtrl.d.ts +0 -69
- package/dist/types/src/agStack/interfaces/agBaseBean.d.ts +0 -12
- package/dist/types/src/agStack/interfaces/agBean.d.ts +0 -35
- package/dist/types/src/agStack/interfaces/agComponent.d.ts +0 -54
- package/dist/types/src/agStack/interfaces/agCoreBean.d.ts +0 -23
- package/dist/types/src/agStack/interfaces/agCoreBeanCollection.d.ts +0 -39
- package/dist/types/src/agStack/interfaces/agEvent.d.ts +0 -4
- package/dist/types/src/agStack/interfaces/agFrameworkOverrides.d.ts +0 -21
- package/dist/types/src/agStack/interfaces/baseEvents.d.ts +0 -50
- package/dist/types/src/agStack/interfaces/baseProperties.d.ts +0 -25
- package/dist/types/src/agStack/interfaces/iAfterGuiAttachedParams.d.ts +0 -12
- package/dist/types/src/agStack/interfaces/iAriaAnnouncementService.d.ts +0 -5
- package/dist/types/src/agStack/interfaces/iComponent.d.ts +0 -10
- package/dist/types/src/agStack/interfaces/iContext.d.ts +0 -16
- package/dist/types/src/agStack/interfaces/iDrag.d.ts +0 -30
- package/dist/types/src/agStack/interfaces/iDragAndDrop.d.ts +0 -99
- package/dist/types/src/agStack/interfaces/iEnvironment.d.ts +0 -6
- package/dist/types/src/agStack/interfaces/iEvent.d.ts +0 -20
- package/dist/types/src/agStack/interfaces/iEventEmitter.d.ts +0 -14
- package/dist/types/src/agStack/interfaces/iIcon.d.ts +0 -2
- package/dist/types/src/agStack/interfaces/iIconService.d.ts +0 -5
- package/dist/types/src/agStack/interfaces/iLocaleService.d.ts +0 -7
- package/dist/types/src/agStack/interfaces/iPopup.d.ts +0 -63
- package/dist/types/src/agStack/interfaces/iPopupComponent.d.ts +0 -11
- package/dist/types/src/agStack/interfaces/iPopupService.d.ts +0 -19
- package/dist/types/src/agStack/interfaces/iProperties.d.ts +0 -42
- package/dist/types/src/agStack/interfaces/iRegistry.d.ts +0 -5
- package/dist/types/src/agStack/interfaces/iTooltip.d.ts +0 -20
- package/dist/types/src/agStack/popup/agPopupComponent.d.ts +0 -13
- package/dist/types/src/agStack/popup/basePopupService.d.ts +0 -60
- package/dist/types/src/agStack/popup/popupPositionUtils.d.ts +0 -71
- package/dist/types/src/agStack/rendering/agPositionableFeature.d.ts +0 -101
- package/dist/types/src/agStack/rendering/autoScrollService.d.ts +0 -38
- package/dist/types/src/agStack/rendering/cssClassManager.d.ts +0 -7
- package/dist/types/src/agStack/theming/inject.d.ts +0 -26
- package/dist/types/src/agStack/theming/part.d.ts +0 -9
- package/dist/types/src/agStack/theming/partImpl.d.ts +0 -56
- package/dist/types/src/agStack/theming/shared/shared-css.d.ts +0 -282
- package/dist/types/src/agStack/theming/theme.d.ts +0 -23
- package/dist/types/src/agStack/theming/themeImpl.d.ts +0 -46
- package/dist/types/src/agStack/theming/themeLogger.d.ts +0 -24
- package/dist/types/src/agStack/theming/themeTypeUtils.d.ts +0 -18
- package/dist/types/src/agStack/theming/themeTypes.d.ts +0 -209
- package/dist/types/src/agStack/theming/themeUtils.d.ts +0 -13
- package/dist/types/src/agStack/tooltip/agHighlightTooltipFeature.d.ts +0 -24
- package/dist/types/src/agStack/tooltip/agTooltipComponent.d.ts +0 -12
- package/dist/types/src/agStack/tooltip/agTooltipFeature.d.ts +0 -31
- package/dist/types/src/agStack/tooltip/baseTooltipStateManager.d.ts +0 -81
- package/dist/types/src/agStack/utils/aria.d.ts +0 -79
- package/dist/types/src/agStack/utils/array.d.ts +0 -32
- package/dist/types/src/agStack/utils/bigInt.d.ts +0 -2
- package/dist/types/src/agStack/utils/browser.d.ts +0 -11
- package/dist/types/src/agStack/utils/date.d.ts +0 -40
- package/dist/types/src/agStack/utils/document.d.ts +0 -15
- package/dist/types/src/agStack/utils/dom.d.ts +0 -141
- package/dist/types/src/agStack/utils/download.d.ts +0 -2
- package/dist/types/src/agStack/utils/event.d.ts +0 -34
- package/dist/types/src/agStack/utils/focus.d.ts +0 -12
- package/dist/types/src/agStack/utils/function.d.ts +0 -37
- package/dist/types/src/agStack/utils/fuzzyMatch.d.ts +0 -22
- package/dist/types/src/agStack/utils/generic.d.ts +0 -18
- package/dist/types/src/agStack/utils/keyboard.d.ts +0 -2
- package/dist/types/src/agStack/utils/locale.d.ts +0 -17
- package/dist/types/src/agStack/utils/promise.d.ts +0 -16
- package/dist/types/src/agStack/utils/string.d.ts +0 -17
- package/dist/types/src/agStack/utils/value.d.ts +0 -6
- package/dist/types/src/agStack/widgets/agWidgetSelectorType.d.ts +0 -2
- package/dist/types/src/columns/baseColsService.d.ts +0 -52
- package/dist/types/src/columns/columnFactoryUtils.d.ts +0 -28
- package/dist/types/src/columns/columnGroups/columnGroupUtils.d.ts +0 -3
- package/dist/types/src/columns/columnKeyCreator.d.ts +0 -9
- package/dist/types/src/gridBodyComp/scrollbarVisibilityHelper.d.ts +0 -2
- package/dist/types/src/headerRendering/rowContainer/headerRowContainerComp.d.ts +0 -15
- package/dist/types/src/interfaces/iColumnCollectionService.d.ts +0 -15
- package/dist/types/src/theming/parts/batch-edit/batch-edit-styles.d.ts +0 -22
- package/dist/types/src/theming/parts/formula-style/formula-styles.d.ts +0 -89
- package/dist/types/src/theming/parts/notes/note-styles.d.ts +0 -37
|
@@ -1,60 +1,132 @@
|
|
|
1
|
-
import type { IAgEventEmitter } from '
|
|
1
|
+
import type { IAgEventEmitter } from 'ag-stack';
|
|
2
2
|
import type { ColumnState } from '../columns/columnStateUtils';
|
|
3
3
|
import { BeanStub } from '../context/beanStub';
|
|
4
4
|
import type { BeanCollection } from '../context/context';
|
|
5
5
|
import type { ColumnEvent, ColumnEventType } from '../events';
|
|
6
|
+
import type { GridOptionsService } from '../gridOptionsService';
|
|
6
7
|
import type { Column, ColumnEventName, ColumnGroup, ColumnGroupShowType, ColumnHighlightPosition, ColumnInstanceId, ColumnPinnedType, HeaderColumnId, ProvidedColumnGroup } from '../interfaces/iColumn';
|
|
7
8
|
import type { IRowNode } from '../interfaces/iRowNode';
|
|
9
|
+
import type { SortDef, SortDirection, SortType } from '../interfaces/iSort';
|
|
8
10
|
import type { AgColumnGroup } from './agColumnGroup';
|
|
9
11
|
import type { AgProvidedColumnGroup } from './agProvidedColumnGroup';
|
|
10
|
-
import type { AbstractColDef, ColDef, ColumnFunctionCallbackParams,
|
|
12
|
+
import type { AbstractColDef, ColAggFunc, ColDef, ColDefField, ColSpanFunc, ColumnFunctionCallbackParams, HeaderLocation, RefData, RowSpanFunc, ValueFormatterFunc, ValueGetterFunc } from './colDef';
|
|
13
|
+
import type { AgShowValuesAsResolved, ShowValuesAsDefResolved, ShowValuesAsResolved, ShowValuesAsResult } from './colDef-showValuesAs';
|
|
11
14
|
export declare function getNextColInstanceId(): ColumnInstanceId;
|
|
12
|
-
export declare
|
|
15
|
+
export declare const isColumn: (col: Column | ColumnGroup | ProvidedColumnGroup) => col is AgColumn;
|
|
16
|
+
/**
|
|
17
|
+
* Redirects a pivot result column to its underlying value column for non-group, non-pinned (leaf) rows,
|
|
18
|
+
* so value get/set reads the real source value. Pinned rows are excluded — their data is keyed by pivot
|
|
19
|
+
* column ID. Only the deliberate consumers (pivot edit, API reads, pivot aggregation) need this; the hot
|
|
20
|
+
* read path (`getValueFromData`) does not.
|
|
21
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
22
|
+
*/
|
|
23
|
+
export declare const _resolvePivotColumnForRow: (column: AgColumn, rowNode: IRowNode) => AgColumn;
|
|
24
|
+
/** Origin of an `AgColumn`. `user` = application-supplied ColDef; others = grid-generated.
|
|
25
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
26
|
+
export type ColKind = 'user' | 'auto-group' | 'selection' | 'row-number' | 'hierarchy';
|
|
13
27
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
14
28
|
export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> implements Column, IAgEventEmitter<ColumnEventName> {
|
|
15
29
|
colDef: ColDef<any, TValue>;
|
|
16
30
|
userProvidedColDef: ColDef<any, TValue> | null;
|
|
17
31
|
readonly colId: string;
|
|
18
32
|
readonly primary: boolean;
|
|
33
|
+
readonly colKind: ColKind;
|
|
19
34
|
readonly isColumn: true;
|
|
20
|
-
|
|
21
|
-
private readonly instanceId;
|
|
35
|
+
readonly instanceId: ColumnInstanceId;
|
|
22
36
|
/** Sanitised version of the column id */
|
|
23
37
|
readonly colIdSanitised: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
aggFunc: ColAggFunc;
|
|
39
|
+
isCalculatedCol: boolean;
|
|
40
|
+
field: ColDefField<any, TValue> | undefined;
|
|
41
|
+
/** Cached split of a dotted `field` (`field.split('.')`); `null` when not dotted / dot-notation suppressed.
|
|
42
|
+
* Non-null doubles as the "field contains dots" indicator. Read per cell via `_getValueUsingDotPath`. */
|
|
43
|
+
fieldPath: string[] | null;
|
|
44
|
+
valueGetter: string | ValueGetterFunc<any, TValue> | undefined;
|
|
45
|
+
allowFormula: boolean;
|
|
46
|
+
showRowGroup: string | boolean | undefined;
|
|
47
|
+
pivotValueColumn: AgColumn | null | undefined;
|
|
48
|
+
valueFormatter: string | ValueFormatterFunc<any, TValue> | undefined;
|
|
49
|
+
refData: RefData | undefined;
|
|
50
|
+
enableCellChangeFlash: boolean | undefined;
|
|
51
|
+
/** Read per cell when the colSpan/rowSpan feature is used (`getColSpan`/`getRowSpan`). */
|
|
52
|
+
colSpan: ColSpanFunc<any, TValue> | undefined;
|
|
53
|
+
rowSpan: RowSpanFunc<any, TValue> | undefined;
|
|
54
|
+
/** Read per cell on calculated columns (`formulaService.ensureCellFormula`/`fetchRawValue`). */
|
|
55
|
+
calculatedExpression: string | undefined;
|
|
56
|
+
/** Current rendered width in px. Writes must go through `setActualWidth` for min/max clamping and the `widthChanged` event. */
|
|
57
|
+
actualWidth: number;
|
|
58
|
+
minWidth: number;
|
|
59
|
+
private maxWidth;
|
|
60
|
+
flex: number | null;
|
|
27
61
|
pinned: ColumnPinnedType;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
62
|
+
left: number | null;
|
|
63
|
+
oldLeft: number | null;
|
|
64
|
+
/** User intent: should this column be shown if display rules allow it. */
|
|
65
|
+
visible: boolean;
|
|
66
|
+
/** Whether this column is in the displayed (rendered) columns — kept in lockstep with `allColsIndex >= 0` */
|
|
67
|
+
displayed: boolean;
|
|
68
|
+
filterActive: boolean;
|
|
69
|
+
sortDef: SortDef;
|
|
32
70
|
sortIndex: number | null | undefined;
|
|
71
|
+
autoHeaderHeight: number | null;
|
|
72
|
+
tooltipEnabled: boolean;
|
|
73
|
+
tooltipFieldContainsDots: boolean;
|
|
74
|
+
private frameworkEventListenerService;
|
|
75
|
+
private colEventSvc;
|
|
76
|
+
/** Most recent build token that claimed this col — used to detect "already used in this refresh". */
|
|
77
|
+
buildToken: number;
|
|
78
|
+
/** 0-based index in `VisibleColsService.allCols` (displayed, visual order — RTL reversed), stamped each refresh. `-1` = not displayed. */
|
|
79
|
+
allColsIndex: number;
|
|
80
|
+
/** `true` while in `ColumnModel.colsList` (live cols, hidden included); `false` when only in
|
|
81
|
+
* `colsById` — a pivot **primary** parked while a pivot result shows. Set by `refreshCols`. */
|
|
82
|
+
inColsList: boolean;
|
|
83
|
+
/** 1-based `aria-colindex`: position in `colsList` reordered `[left, center, right]` (hidden included). `0` = not in `colsList`. */
|
|
84
|
+
ariaColIndex: number;
|
|
85
|
+
/** 0-based index in `ColumnModel.colsList` (stamped lazily by `ensureColsListIndex` for O(1) ordered reads);
|
|
86
|
+
* `-1` until first stamped / when not in colsList. In pivot, parked primaries keep their pre-pivot index. */
|
|
87
|
+
colsListIndex: number;
|
|
33
88
|
moving: boolean;
|
|
34
89
|
resizing: boolean;
|
|
35
90
|
menuVisible: boolean;
|
|
36
91
|
highlighted: ColumnHighlightPosition | null;
|
|
37
92
|
formulaRef: string | null;
|
|
93
|
+
/** The column's "Show Values As" config resolved once on colDef change (built-in modes merged with user config).
|
|
94
|
+
* Tri-state: the config object when configured, `null` when explicitly disabled (`colDef.showValuesAsDef: null`),
|
|
95
|
+
* `undefined` when unconfigured. The active mode is a lookup into it. */
|
|
96
|
+
showValuesAsDef: ShowValuesAsDefResolved | null | undefined;
|
|
97
|
+
/** Resolved active "Show Values As" mode for this column (precomputed by the enterprise service), or `null`
|
|
98
|
+
* when none. `showValuesAs.type` is the active mode; the active mode is owned by column state. */
|
|
99
|
+
showValuesAs: AgShowValuesAsResolved | null;
|
|
100
|
+
/** colId this column sits immediately after in display order. Order restoration seats new cols after
|
|
101
|
+
* this anchor — handles anchors absent from the tree (e.g. auto-group col) and stacks same-anchor adds
|
|
102
|
+
* newest-first. `undefined` = not anchored. Column-kind agnostic (currently set by the calc-column contributor). */
|
|
103
|
+
anchoredToColId: string | undefined;
|
|
38
104
|
private lastLeftPinned;
|
|
39
105
|
private firstRightPinned;
|
|
40
|
-
minWidth: number;
|
|
41
|
-
private maxWidth;
|
|
42
|
-
filterActive: boolean;
|
|
43
|
-
private readonly colEventSvc;
|
|
44
|
-
fieldContainsDots: boolean;
|
|
45
|
-
private tooltipFieldContainsDots;
|
|
46
|
-
tooltipEnabled: boolean;
|
|
47
106
|
rowGroupActive: boolean;
|
|
107
|
+
/** Position in `rowGroupColsSvc.columns` when {@link rowGroupActive}; else stale — always pair the read with a `rowGroupActive` check. */
|
|
108
|
+
rowGroupActiveIndex: number;
|
|
48
109
|
pivotActive: boolean;
|
|
110
|
+
/** Position in `pivotColsSvc.columns` when {@link pivotActive}; else stale — always pair the read with a `pivotActive` check. */
|
|
111
|
+
pivotActiveIndex: number;
|
|
49
112
|
aggregationActive: boolean;
|
|
50
|
-
|
|
113
|
+
/** Position in `valueColsSvc.columns` when {@link aggregationActive}; else stale — always pair the read with an `aggregationActive` check. */
|
|
114
|
+
aggregationActiveIndex: number;
|
|
115
|
+
/** The display group col that shows this (source) column; set by `showRowGroupCols` on refresh */
|
|
116
|
+
showRowGroupCol: AgColumn | null;
|
|
51
117
|
parent: AgColumnGroup | null;
|
|
52
118
|
originalParent: AgProvidedColumnGroup | null;
|
|
53
|
-
|
|
119
|
+
/** Public so the free `getAvailableSortTypes` sort helper can cache on the column; nulled in {@link setColDef}. */
|
|
120
|
+
cachedSortTypes: Set<SortType> | null;
|
|
121
|
+
constructor(colDef: ColDef<any, TValue>, userProvidedColDef: ColDef<any, TValue> | null, colId: string, primary: boolean, colKind: ColKind);
|
|
54
122
|
destroy(): void;
|
|
55
123
|
getInstanceId(): ColumnInstanceId;
|
|
56
124
|
private initState;
|
|
57
|
-
|
|
125
|
+
/** Called when user provides an alternative colDef. Returns whether the merged colDef differed (false = nothing changed). */
|
|
126
|
+
setColDef(colDef: ColDef<any, TValue>, userProvidedColDef: ColDef<any, TValue> | null, source: ColumnEventType): boolean;
|
|
127
|
+
/** Re-apply `def` to a reused column. Stateful attrs are only (re)applied when the user authored the
|
|
128
|
+
* definitions (`newColDefs`); an internal rebuild (e.g. calc-col add) must leave live state intact. */
|
|
129
|
+
reapplyColDef(def: ColDef, source: ColumnEventType, newColDefs: boolean): void;
|
|
58
130
|
getUserProvidedColDef(): ColDef<any, TValue> | null;
|
|
59
131
|
getParent(): AgColumnGroup | null;
|
|
60
132
|
getOriginalParent(): AgProvidedColumnGroup | null;
|
|
@@ -62,11 +134,9 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
62
134
|
private initDotNotation;
|
|
63
135
|
private initMinAndMaxWidths;
|
|
64
136
|
private initTooltip;
|
|
65
|
-
private initRowSpan;
|
|
66
|
-
private addPivotListener;
|
|
67
137
|
resetActualWidth(source: ColumnEventType): void;
|
|
68
138
|
private calculateColInitialWidth;
|
|
69
|
-
isEmptyGroup():
|
|
139
|
+
isEmptyGroup(): false;
|
|
70
140
|
isRowGroupDisplayed(colId: string): boolean;
|
|
71
141
|
isPrimary(): boolean;
|
|
72
142
|
isFilterAllowed(): boolean;
|
|
@@ -74,6 +144,7 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
74
144
|
isTooltipEnabled(): boolean;
|
|
75
145
|
isTooltipFieldContainsDots(): boolean;
|
|
76
146
|
getHighlighted(): ColumnHighlightPosition | null;
|
|
147
|
+
private getColEventSvc;
|
|
77
148
|
__addEventListener<T extends ColumnEventName>(eventType: T, listener: (params: ColumnEvent<T>) => void): void;
|
|
78
149
|
__removeEventListener<T extends ColumnEventName>(eventType: T, listener: (params: ColumnEvent<T>) => void): void;
|
|
79
150
|
/**
|
|
@@ -94,20 +165,16 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
94
165
|
isDndSource(rowNode: IRowNode): boolean;
|
|
95
166
|
isCellCheckboxSelection(rowNode: IRowNode): boolean;
|
|
96
167
|
isSuppressPaste(rowNode: IRowNode): boolean;
|
|
168
|
+
/** Mirror the hot-path colDef fields onto the column so per-cell reads avoid a megamorphic colDef load.
|
|
169
|
+
* `field`/`fieldPath` are set by {@link initDotNotation} (they depend on `suppressFieldDotNotation`). */
|
|
170
|
+
private initColDefHotFields;
|
|
171
|
+
private initCalculatedColumnState;
|
|
97
172
|
isResizable(): boolean;
|
|
98
|
-
/** Get value from ColDef or default if it exists. */
|
|
99
|
-
private getColDefValue;
|
|
100
173
|
isColumnFunc(rowNode: IRowNode, value?: boolean | ((params: ColumnFunctionCallbackParams) => boolean) | null): boolean;
|
|
101
|
-
private createColumnEvent;
|
|
102
174
|
isMoving(): boolean;
|
|
103
175
|
getSort(): SortDirection;
|
|
104
|
-
/**
|
|
105
|
-
* Returns null if no sort direction applied
|
|
106
|
-
*/
|
|
176
|
+
/** Returns null if no sort direction applied */
|
|
107
177
|
getSortDef(): SortDef | null;
|
|
108
|
-
private getColDefAllowedSortTypes;
|
|
109
|
-
getSortingOrder(): SortDef[];
|
|
110
|
-
getAvailableSortTypes(): Set<string>;
|
|
111
178
|
setSortDef(sortDef: SortDef): void;
|
|
112
179
|
isSortable(): boolean;
|
|
113
180
|
/** @deprecated v32 use col.getSort() === 'asc */
|
|
@@ -120,7 +187,9 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
120
187
|
isSorting(): boolean;
|
|
121
188
|
getSortIndex(): number | null | undefined;
|
|
122
189
|
isMenuVisible(): boolean;
|
|
123
|
-
getAggFunc():
|
|
190
|
+
getAggFunc(): ColAggFunc;
|
|
191
|
+
getShowValuesAs<TOut extends ShowValuesAsResult = any>(): ShowValuesAsResolved<any, TValue, TOut> | null;
|
|
192
|
+
getShowValuesAsDef(): ShowValuesAsDefResolved<any, TValue> | null;
|
|
124
193
|
getLeft(): number | null;
|
|
125
194
|
getOldLeft(): number | null;
|
|
126
195
|
getRight(): number;
|
|
@@ -139,9 +208,7 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
139
208
|
setVisible(visible: boolean, source: ColumnEventType): void;
|
|
140
209
|
isVisible(): boolean;
|
|
141
210
|
isSpanHeaderHeight(): boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Returns the first parent that is not a padding group.
|
|
144
|
-
*/
|
|
211
|
+
/** Returns the first parent that is not a padding group. */
|
|
145
212
|
getFirstRealParent(): AgProvidedColumnGroup | null;
|
|
146
213
|
getColumnGroupPaddingInfo(): {
|
|
147
214
|
numberOfParents: number;
|
|
@@ -151,13 +218,13 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
151
218
|
getDefinition(): AbstractColDef<any, TValue>;
|
|
152
219
|
getColumnGroupShow(): ColumnGroupShowType | undefined;
|
|
153
220
|
getColId(): string;
|
|
221
|
+
getDisplayName(location?: HeaderLocation): string;
|
|
154
222
|
getId(): string;
|
|
155
223
|
getUniqueId(): HeaderColumnId;
|
|
156
224
|
getActualWidth(): number;
|
|
157
225
|
getAutoHeaderHeight(): number | null;
|
|
158
226
|
/** Returns true if the header height has changed */
|
|
159
227
|
setAutoHeaderHeight(height: number): boolean;
|
|
160
|
-
private createBaseColDefParams;
|
|
161
228
|
getColSpan(rowNode: IRowNode): number;
|
|
162
229
|
getRowSpan(rowNode: IRowNode): number;
|
|
163
230
|
setActualWidth(actualWidth: number, source: ColumnEventType, silent?: boolean): void;
|
|
@@ -178,27 +245,18 @@ export declare class AgColumn<TValue = any> extends BeanStub<ColumnEventName> im
|
|
|
178
245
|
dispatchColEvent(type: ColumnEventName, source: ColumnEventType, additionalEventAttributes?: any): void;
|
|
179
246
|
dispatchStateUpdatedEvent(key: keyof ColumnState): void;
|
|
180
247
|
}
|
|
181
|
-
/**
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
export declare function _getSortDefFromInput(input?: unknown): SortDef;
|
|
189
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
190
|
-
export declare function _isSortDirectionValid(maybeSortDir: unknown): maybeSortDir is SortDirection;
|
|
191
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
192
|
-
export declare function _isSortTypeValid(maybeSortType: unknown): maybeSortType is SortType;
|
|
193
|
-
export declare function _isSortDefValid(maybeSortDef: unknown): maybeSortDef is SortDef;
|
|
194
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
195
|
-
export declare function _areSortDefsEqual(sortDef1: SortDef | null | undefined, sortDef2: SortDef | null | undefined): boolean;
|
|
196
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
197
|
-
export declare function _normalizeSortDirection(sortDirectionLike?: unknown): SortDirection;
|
|
248
|
+
/** Convert input into a SortDef: a valid SortDef passes through, otherwise direction and type are normalised. */
|
|
249
|
+
export declare const getSortDefFromInput: (input?: unknown) => SortDef;
|
|
250
|
+
export declare const getSortingOrder: (gos: GridOptionsService, column: AgColumn) => SortDef[];
|
|
251
|
+
export declare const isSortDirectionValid: (maybeSortDir: unknown) => maybeSortDir is SortDirection;
|
|
252
|
+
export declare const isSortTypeValid: (maybeSortType: unknown) => maybeSortType is SortType;
|
|
253
|
+
export declare const _isSortDefValid: (maybeSortDef: unknown) => maybeSortDef is SortDef;
|
|
254
|
+
export declare const normalizeSortDirection: (sortDirectionLike?: unknown) => SortDirection;
|
|
198
255
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
199
|
-
export declare
|
|
256
|
+
export declare const _normalizeSortType: (sortTypeLike?: unknown) => SortType;
|
|
257
|
+
type SortDefOverride = () => SortDef | null | undefined;
|
|
200
258
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
201
|
-
export declare
|
|
259
|
+
export declare const _getDisplaySortForColumn: (column: AgColumn, beans: BeanCollection, override?: SortDefOverride) => {
|
|
202
260
|
isDefaultSortAllowed: boolean;
|
|
203
261
|
isAbsoluteSortAllowed: boolean;
|
|
204
262
|
isAbsoluteSort: boolean;
|
|
@@ -207,3 +265,4 @@ export declare function _getDisplaySortForColumn(column: AgColumn, beans: BeanCo
|
|
|
207
265
|
isDescending: boolean;
|
|
208
266
|
direction: SortDirection;
|
|
209
267
|
};
|
|
268
|
+
export {};
|
|
@@ -2,29 +2,31 @@ import { BeanStub } from '../context/beanStub';
|
|
|
2
2
|
import type { AgColumnGroupEvent, Column, ColumnGroup, ColumnGroupShowType, ColumnPinnedType, HeaderColumnId } from '../interfaces/iColumn';
|
|
3
3
|
import type { AgColumn } from './agColumn';
|
|
4
4
|
import type { AgProvidedColumnGroup } from './agProvidedColumnGroup';
|
|
5
|
-
import type { AbstractColDef, ColGroupDef } from './colDef';
|
|
6
|
-
export declare
|
|
7
|
-
export declare function isColumnGroup(col: Column | ColumnGroup | string): col is AgColumnGroup;
|
|
5
|
+
import type { AbstractColDef, ColGroupDef, HeaderLocation } from './colDef';
|
|
6
|
+
export declare const isColumnGroup: (col: Column | ColumnGroup | string) => col is AgColumnGroup;
|
|
8
7
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
9
8
|
export declare class AgColumnGroup<TValue = any> extends BeanStub<AgColumnGroupEvent> implements ColumnGroup<TValue> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
readonly providedColumnGroup: AgProvidedColumnGroup;
|
|
10
|
+
readonly groupId: string;
|
|
11
|
+
readonly partId: number;
|
|
12
|
+
pinned: ColumnPinnedType;
|
|
14
13
|
readonly isColumn: false;
|
|
14
|
+
readonly uniqueId: HeaderColumnId;
|
|
15
15
|
/** Sanitised version of the column id */
|
|
16
16
|
readonly colIdSanitised: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
children: (AgColumn | AgColumnGroup)[] | null;
|
|
18
|
+
displayedChildren: (AgColumn | AgColumnGroup)[] | null;
|
|
19
|
+
autoHeaderHeight: number | null;
|
|
20
|
+
left: number | null;
|
|
21
|
+
oldLeft: number | null;
|
|
22
22
|
parent: AgColumnGroup | null;
|
|
23
|
+
/** Most recent build token that claimed this instance — sweeps use it to spot orphans. */
|
|
24
|
+
buildToken: number;
|
|
23
25
|
constructor(providedColumnGroup: AgProvidedColumnGroup, groupId: string, partId: number, pinned: ColumnPinnedType);
|
|
24
|
-
reset(): void;
|
|
25
26
|
getParent(): AgColumnGroup | null;
|
|
26
27
|
getUniqueId(): HeaderColumnId;
|
|
27
28
|
isEmptyGroup(): boolean;
|
|
29
|
+
/** Returns true only when every leaf column in this group is currently moving. */
|
|
28
30
|
isMoving(): boolean;
|
|
29
31
|
checkLeft(): void;
|
|
30
32
|
getLeft(): number | null;
|
|
@@ -32,20 +34,21 @@ export declare class AgColumnGroup<TValue = any> extends BeanStub<AgColumnGroupE
|
|
|
32
34
|
setLeft(left: number | null): void;
|
|
33
35
|
getPinned(): ColumnPinnedType;
|
|
34
36
|
getGroupId(): string;
|
|
37
|
+
getDisplayName(location?: HeaderLocation): string;
|
|
35
38
|
getPartId(): number;
|
|
36
39
|
getActualWidth(): number;
|
|
37
40
|
isResizable(): boolean;
|
|
38
41
|
getMinWidth(): number;
|
|
39
|
-
addChild(child: AgColumn | AgColumnGroup): void;
|
|
40
42
|
getDisplayedChildren(): (AgColumn | AgColumnGroup)[] | null;
|
|
41
43
|
getLeafColumns(): AgColumn[];
|
|
42
44
|
getDisplayedLeafColumns(): AgColumn[];
|
|
45
|
+
/** 1-based aria column index for this group's header cell: first leaf column's index */
|
|
46
|
+
get ariaColIndex(): number;
|
|
43
47
|
getDefinition(): AbstractColDef | null;
|
|
44
48
|
getColGroupDef(): ColGroupDef | null;
|
|
45
49
|
isPadding(): boolean;
|
|
46
50
|
isExpandable(): boolean;
|
|
47
51
|
isExpanded(): boolean;
|
|
48
|
-
setExpanded(expanded: boolean): void;
|
|
49
52
|
isAutoHeaderHeight(): boolean;
|
|
50
53
|
getAutoHeaderHeight(): number | null;
|
|
51
54
|
/** Returns true if the header height has changed */
|
|
@@ -56,5 +59,10 @@ export declare class AgColumnGroup<TValue = any> extends BeanStub<AgColumnGroupE
|
|
|
56
59
|
getColumnGroupShow(): ColumnGroupShowType | undefined;
|
|
57
60
|
getProvidedColumnGroup(): AgProvidedColumnGroup;
|
|
58
61
|
getPaddingLevel(): number;
|
|
59
|
-
calculateDisplayedColumns(): void;
|
|
60
62
|
}
|
|
63
|
+
/** First/last (`last`) leaf under `group`, walking `children` or `displayedChildren` (`displayed`) — the
|
|
64
|
+
* `get(Displayed)LeafColumns()` edge without allocating the array; `null` if empty.
|
|
65
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
66
|
+
export declare const edgeLeafColumn: (group: AgColumnGroup, displayed: boolean, last: boolean) => AgColumn | null;
|
|
67
|
+
/** Walk up `column`'s parent chain to the group sitting at header-row `level`. */
|
|
68
|
+
export declare const getColGroupAtLevel: (column: AgColumn, level: number) => AgColumnGroup | null;
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { BeanStub } from '../context/beanStub';
|
|
2
2
|
import type { Column, ColumnGroupShowType, ColumnInstanceId, ProvidedColumnGroup } from '../interfaces/iColumn';
|
|
3
3
|
import type { AgColumn } from './agColumn';
|
|
4
|
+
import type { AgColumnGroup } from './agColumnGroup';
|
|
4
5
|
import type { ColGroupDef } from './colDef';
|
|
5
|
-
export declare function isProvidedColumnGroup(col: Column | ProvidedColumnGroup | string | null): col is AgProvidedColumnGroup;
|
|
6
|
+
export declare function isProvidedColumnGroup(col: Column | ProvidedColumnGroup | string | null | undefined): col is AgProvidedColumnGroup;
|
|
6
7
|
export type AgProvidedColumnGroupEvent = 'expandedChanged' | 'expandableChanged';
|
|
7
8
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
8
9
|
export declare class AgProvidedColumnGroup extends BeanStub<AgProvidedColumnGroupEvent> implements ProvidedColumnGroup {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
colGroupDef: ColGroupDef | null;
|
|
11
|
+
readonly groupId: string;
|
|
12
|
+
readonly padding: boolean;
|
|
13
|
+
level: number;
|
|
13
14
|
readonly isColumn: false;
|
|
14
15
|
originalParent: AgProvidedColumnGroup | null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
children: (AgColumn | AgProvidedColumnGroup)[];
|
|
17
|
+
expandable: boolean;
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
/** Most recent build token that claimed this group — detects "already used in this refresh". */
|
|
20
|
+
buildToken: number;
|
|
21
|
+
/** Packed `AgColumnGroup` display instances by dense per-refresh `partId` (`displayInstances[0]` is primary), lazily allocated and pruned by `columnGroupService`. */
|
|
22
|
+
displayInstances: AgColumnGroup[] | null;
|
|
23
|
+
/** Cache previous `setExpandable` visibility so `AgColumn.setVisible` ancestor walk can stop when unchanged. */
|
|
24
|
+
private lastVisible;
|
|
25
|
+
readonly instanceId: ColumnInstanceId;
|
|
20
26
|
constructor(colGroupDef: ColGroupDef | null, groupId: string, padding: boolean, level: number);
|
|
21
|
-
destroy(): void;
|
|
22
|
-
private reset;
|
|
23
27
|
getInstanceId(): ColumnInstanceId;
|
|
24
28
|
getOriginalParent(): AgProvidedColumnGroup | null;
|
|
25
29
|
getLevel(): number;
|
|
30
|
+
/** Visible iff at least one child is visible. */
|
|
26
31
|
isVisible(): boolean;
|
|
27
32
|
isPadding(): boolean;
|
|
28
|
-
setExpanded(expanded: boolean | undefined):
|
|
33
|
+
setExpanded(expanded: boolean | undefined): boolean;
|
|
29
34
|
isExpandable(): boolean;
|
|
30
35
|
isExpanded(): boolean;
|
|
31
36
|
getGroupId(): string;
|
|
32
37
|
getId(): string;
|
|
33
|
-
setChildren(children: (AgColumn | AgProvidedColumnGroup)[]): void;
|
|
34
38
|
getChildren(): (AgColumn | AgProvidedColumnGroup)[];
|
|
35
39
|
getColGroupDef(): ColGroupDef | null;
|
|
36
40
|
getLeafColumns(): AgColumn[];
|
|
37
|
-
forEachLeafColumn(callback: (column: AgColumn) => void): void;
|
|
38
41
|
private addLeafColumns;
|
|
39
42
|
getColumnGroupShow(): ColumnGroupShowType | undefined;
|
|
40
|
-
|
|
41
|
-
setExpandable():
|
|
42
|
-
private findChildrenRemovingPadding;
|
|
43
|
-
private onColumnVisibilityChanged;
|
|
43
|
+
/** Recompute child-driven expandability and return whether `AgColumn.setVisible` should continue ancestor walking. */
|
|
44
|
+
setExpandable(): boolean;
|
|
44
45
|
}
|