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,15 +1,14 @@
|
|
|
1
1
|
import type { BeanCollection } from '../context/context';
|
|
2
2
|
import type { ColDef, ColGroupDef, ColKey, HeaderLocation } from '../entities/colDef';
|
|
3
3
|
import type { Column, ColumnPinnedType } from '../interfaces/iColumn';
|
|
4
|
-
import type { ApplyColumnStateParams
|
|
5
|
-
export type ColumnChangedEventType = 'columnValueChanged' | 'columnPivotChanged' | 'columnRowGroupChanged';
|
|
4
|
+
import type { ApplyColumnStateParams } from './columnStateUtils';
|
|
6
5
|
export declare function getColumnDef<TValue = any, TData = any>(beans: BeanCollection, key: string | Column<TValue>): ColDef<TData, TValue> | null;
|
|
7
6
|
export declare function getColumnDefs<TData = any>(beans: BeanCollection): (ColDef<TData> | ColGroupDef<TData>)[] | undefined;
|
|
8
7
|
export declare function getDisplayNameForColumn(beans: BeanCollection, column: Column, location: HeaderLocation): string;
|
|
9
8
|
export declare function getColumn<TValue = any, TData = any>(beans: BeanCollection, key: ColKey<TData, TValue>): Column<TValue> | null;
|
|
10
9
|
export declare function getColumns(beans: BeanCollection): Column[] | null;
|
|
11
10
|
export declare function applyColumnState(beans: BeanCollection, params: ApplyColumnStateParams): boolean;
|
|
12
|
-
export declare
|
|
11
|
+
export declare const getColumnState: (beans: BeanCollection) => import("./columnStateUtils").ColumnState[];
|
|
13
12
|
export declare function resetColumnState(beans: BeanCollection): void;
|
|
14
13
|
export declare function isPinning(beans: BeanCollection): boolean;
|
|
15
14
|
export declare function isPinningLeft(beans: BeanCollection): boolean;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import type { NamedBean } from '../context/bean';
|
|
2
2
|
import { BeanStub } from '../context/beanStub';
|
|
3
3
|
import type { BeanCollection } from '../context/context';
|
|
4
|
-
import type { AgColumn } from '../entities/agColumn';
|
|
5
4
|
import type { ColDef, ColGroupDef } from '../entities/colDef';
|
|
6
5
|
/** @knipIgnore Used in tests */
|
|
7
|
-
export declare function _deepCloneDefinition<T>(object: T,
|
|
6
|
+
export declare function _deepCloneDefinition<T>(object: T, rootKeyToSkip?: string): T | undefined;
|
|
8
7
|
export declare class ColumnDefFactory extends BeanStub implements NamedBean {
|
|
9
8
|
beanName: "colDefFactory";
|
|
10
|
-
private
|
|
11
|
-
private pivotColsSvc?;
|
|
9
|
+
private colModel;
|
|
12
10
|
wireBeans(beans: BeanCollection): void;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private createDefFromGroup;
|
|
16
|
-
private createDefFromColumn;
|
|
11
|
+
/** Snapshot of the column tree as `ColDef[] | ColGroupDef[]`, display-ordered. Backs `getColumnDefs`. */
|
|
12
|
+
getColumnDefs(): (ColDef | ColGroupDef)[] | undefined;
|
|
17
13
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { AgColumn } from '../entities/agColumn';
|
|
2
2
|
import type { ColumnEventType } from '../events';
|
|
3
|
+
import type { ColumnChangedEventType } from '../interfaces/iColsService';
|
|
3
4
|
import type { IEventService } from '../interfaces/iEventService';
|
|
4
5
|
export declare function dispatchColumnPinnedEvent(eventSvc: IEventService, changedColumns: AgColumn[], source: ColumnEventType): void;
|
|
6
|
+
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
5
7
|
export declare function dispatchColumnVisibleEvent(eventSvc: IEventService, changedColumns: AgColumn[], source: ColumnEventType): void;
|
|
6
|
-
|
|
8
|
+
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
9
|
+
export declare function _dispatchColumnChangedEvent<T extends ColumnChangedEventType>(eventSvc: IEventService, type: T, columns: AgColumn[], source: ColumnEventType): void;
|
|
7
10
|
export declare function dispatchColumnResizedEvent(eventSvc: IEventService, columns: AgColumn[] | null, finished: boolean, source: ColumnEventType, flexColumns?: AgColumn[] | null): void;
|
|
@@ -5,7 +5,7 @@ import type { ColumnEventType } from '../events';
|
|
|
5
5
|
export declare class ColumnFlexService extends BeanStub implements NamedBean {
|
|
6
6
|
beanName: "colFlex";
|
|
7
7
|
private flexViewportWidth;
|
|
8
|
-
|
|
8
|
+
columnsHidden: boolean;
|
|
9
9
|
refreshFlexedColumns(params?: {
|
|
10
10
|
resizingCols?: AgColumn[];
|
|
11
11
|
skipSetLeft?: boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BeanCollection } from '../../context/context';
|
|
2
|
+
import type { AgColumn } from '../../entities/agColumn';
|
|
3
|
+
import { AgProvidedColumnGroup } from '../../entities/agProvidedColumnGroup';
|
|
4
|
+
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
5
|
+
export declare class ColWrapperCache {
|
|
6
|
+
private readonly entries;
|
|
7
|
+
private readonly context;
|
|
8
|
+
constructor(beans: BeanCollection);
|
|
9
|
+
/** Return the cached wrapper for `(col, depth)`, or build one. Stamps `buildToken` so a later
|
|
10
|
+
* `evict(buildToken)` drops wrappers not refreshed this build. */
|
|
11
|
+
wrap(col: AgColumn, depth: number, buildToken: number): AgColumn | AgProvidedColumnGroup;
|
|
12
|
+
/** Destroy and remove entries whose token doesn't match the current build. */
|
|
13
|
+
evict(buildToken: number): void;
|
|
14
|
+
/** Destroy all cached wrapper chains and clear the cache. */
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
@@ -1,50 +1,23 @@
|
|
|
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 { AgColumn } from '../../entities/agColumn';
|
|
4
5
|
import { AgColumnGroup } from '../../entities/agColumnGroup';
|
|
5
|
-
import { AgProvidedColumnGroup } from '../../entities/agProvidedColumnGroup';
|
|
6
|
-
import type { ColGroupDef } from '../../entities/colDef';
|
|
7
|
-
import type { ColumnEventType } from '../../events';
|
|
8
6
|
import type { ColumnPinnedType } from '../../interfaces/iColumn';
|
|
9
|
-
import type { IColumnKeyCreator } from '../columnKeyCreator';
|
|
10
7
|
import type { GroupInstanceIdCreator } from '../groupInstanceIdCreator';
|
|
11
|
-
|
|
12
|
-
columns: AgColumn[];
|
|
13
|
-
idCreator: GroupInstanceIdCreator;
|
|
14
|
-
pinned: ColumnPinnedType;
|
|
15
|
-
oldDisplayedGroups?: (AgColumn | AgColumnGroup)[];
|
|
16
|
-
isStandaloneStructure?: boolean;
|
|
17
|
-
}
|
|
8
|
+
import { ColWrapperCache } from './colWrapperCache';
|
|
18
9
|
export declare class ColumnGroupService extends BeanStub implements NamedBean {
|
|
19
10
|
beanName: "colGroupSvc";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
getColGroupAtLevel(column: AgColumn, level: number): AgColumnGroup | null;
|
|
33
|
-
updateOpenClosedVisibility(): void;
|
|
34
|
-
getColumnGroup(colId: string | AgColumnGroup, partId?: number): AgColumnGroup | null;
|
|
35
|
-
createColumnGroups(params: CreateGroupsParams): (AgColumn | AgColumnGroup)[];
|
|
36
|
-
createProvidedColumnGroup(primaryColumns: boolean, colGroupDef: ColGroupDef, level: number, existingColumns: AgColumn[], columnKeyCreator: IColumnKeyCreator, existingGroups: AgProvidedColumnGroup[], source: ColumnEventType): AgProvidedColumnGroup;
|
|
37
|
-
balanceColumnTree(unbalancedTree: (AgColumn | AgProvidedColumnGroup)[], currentDepth: number, columnDepth: number, columnKeyCreator: IColumnKeyCreator): (AgColumn | AgProvidedColumnGroup)[];
|
|
38
|
-
findDepth(balancedColumnTree: (AgColumn | AgProvidedColumnGroup)[]): number;
|
|
39
|
-
findMaxDepth(treeChildren: (AgColumn | AgProvidedColumnGroup)[], depth: number): number;
|
|
40
|
-
/**
|
|
41
|
-
* Inserts dummy group columns in the hierarchy above auto-generated columns
|
|
42
|
-
* in order to ensure auto-generated columns are leaf nodes (and therefore are
|
|
43
|
-
* displayed correctly)
|
|
44
|
-
*/
|
|
45
|
-
balanceTreeForAutoCols(autoCols: AgColumn[], depth: number): (AgColumn | AgProvidedColumnGroup)[];
|
|
46
|
-
private findExistingGroup;
|
|
47
|
-
private createColumnGroup;
|
|
48
|
-
private mapOldGroupsById;
|
|
49
|
-
private setupParentsIntoCols;
|
|
11
|
+
private colModel;
|
|
12
|
+
private colViewport;
|
|
13
|
+
/** Cache service-column wrappers (auto-group/selection/row-numbers) across `refreshCols` by `(col, depth)`. */
|
|
14
|
+
wrapperCache: ColWrapperCache;
|
|
15
|
+
wireBeans(beans: BeanCollection): void;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
/** Build one pinned section's displayed group tree from already-sorted `columns`.
|
|
18
|
+
* @param buildToken Stamp reused/created groups for `prune` to drop stale tail entries.
|
|
19
|
+
* @param isStandaloneStructure Build detached output (e.g. exports) without reuse, bean registration, or parent wiring. */
|
|
20
|
+
createGroups(columns: AgColumn[], idCreator: GroupInstanceIdCreator, pinned: ColumnPinnedType, buildToken?: number, isStandaloneStructure?: boolean): (AgColumn | AgColumnGroup)[];
|
|
21
|
+
/** Finalise display instances by keeping groups stamped with `buildToken` and truncating stale tail entries. */
|
|
22
|
+
prune(buildToken: number): void;
|
|
50
23
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BeanCollection } from '../../context/context';
|
|
2
|
+
import type { AgProvidedColumnGroup } from '../../entities/agProvidedColumnGroup';
|
|
3
|
+
import type { ColumnEventType } from '../../events';
|
|
4
|
+
export declare const _getColGroupState: (beans: BeanCollection) => {
|
|
5
|
+
groupId: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const _setColGroupOpen: (beans: BeanCollection, key: AgProvidedColumnGroup | string | null | undefined, newValue: boolean, source: ColumnEventType) => void;
|
|
9
|
+
export declare const _setColGroupState: (beans: BeanCollection, stateItems: {
|
|
10
|
+
groupId: string;
|
|
11
|
+
open: boolean | undefined;
|
|
12
|
+
}[], source: ColumnEventType) => void;
|
|
13
|
+
export declare const _resetColGroupState: (beans: BeanCollection, source: ColumnEventType) => void;
|
|
@@ -1,80 +1,126 @@
|
|
|
1
1
|
import type { NamedBean } from '../context/bean';
|
|
2
2
|
import { BeanStub } from '../context/beanStub';
|
|
3
|
-
import { AgColumn } from '../entities/agColumn';
|
|
3
|
+
import type { AgColumn } from '../entities/agColumn';
|
|
4
4
|
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
|
5
5
|
import type { ColDef, ColGroupDef, ColKey } from '../entities/colDef';
|
|
6
6
|
import type { GridOptions } from '../entities/gridOptions';
|
|
7
7
|
import type { ColumnEventType } from '../events';
|
|
8
8
|
import type { PropertyChangedEvent, PropertyValueChangedEvent } from '../gridOptionsService';
|
|
9
|
-
export type Maybe<T> = T | null | undefined;
|
|
10
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
11
|
-
export interface ColumnCollections {
|
|
12
|
-
tree: (AgColumn | AgProvidedColumnGroup)[];
|
|
13
|
-
treeDepth: number;
|
|
14
|
-
list: AgColumn[];
|
|
15
|
-
map: {
|
|
16
|
-
[id: string]: AgColumn;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
9
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
20
10
|
export declare class ColumnModel extends BeanStub implements NamedBean {
|
|
21
11
|
beanName: "colModel";
|
|
22
|
-
private colDefs?;
|
|
23
|
-
colDefCols?: ColumnCollections;
|
|
24
|
-
cols?: ColumnCollections;
|
|
25
12
|
pivotMode: boolean;
|
|
26
|
-
private showingPivotResult;
|
|
27
|
-
private lastOrder;
|
|
28
|
-
private lastPivotOrder;
|
|
29
13
|
colSpanActive: boolean;
|
|
30
14
|
ready: boolean;
|
|
15
|
+
/** Suppresses row model refreshes during batch column state dispatching. */
|
|
31
16
|
changeEventsDispatching: boolean;
|
|
17
|
+
showingPivotResult: boolean;
|
|
18
|
+
/** >0 inside a {@link beginColBatch}/{@link endColBatch} pair: cols services defer their flush to the outermost close. */
|
|
19
|
+
private colBatchDepth;
|
|
20
|
+
/** Set when a staged change needs a display rebuild; consumed (cleared) once by {@link performRefresh}. */
|
|
21
|
+
private pendingRefresh;
|
|
22
|
+
/** A batched `buildFromColDefs` already raised `columnEverythingChanged`; stops the batch flush re-raising it. */
|
|
23
|
+
private everythingChangedInBatch;
|
|
24
|
+
colsList: AgColumn[];
|
|
25
|
+
colsTree: (AgColumn | AgProvidedColumnGroup)[];
|
|
26
|
+
colsTreeDepth: number;
|
|
27
|
+
colDefList: AgColumn[];
|
|
28
|
+
colDefTree: (AgColumn | AgProvidedColumnGroup)[];
|
|
29
|
+
colDefTreeDepth: number;
|
|
30
|
+
private colDefHasMarryChildren;
|
|
31
|
+
hasMarryChildren: boolean;
|
|
32
|
+
/** Single source of truth for `getCol`. Pivot result colIds are namespaced (`pivot_…`). */
|
|
33
|
+
colsById: {
|
|
34
|
+
[id: string]: AgColumn;
|
|
35
|
+
};
|
|
36
|
+
colDefGroupsById: Map<string, AgProvidedColumnGroup>;
|
|
37
|
+
/** Primary cols keyed by colId / userProvidedColDef ref / field; passed back for next-build reuse. */
|
|
38
|
+
private colDefColsByKey;
|
|
39
|
+
/** Every primary group (padding + non-padding) — sweep uses this to find orphans whose parent's
|
|
40
|
+
* `.children` was reassigned. */
|
|
41
|
+
private colDefAllGroups;
|
|
42
|
+
/** Non-padding displayed groups by `groupId`. Pivot mode = pivot's groups; else = colDefGroupsById. */
|
|
43
|
+
colsGroupsById: Map<string, AgProvidedColumnGroup>;
|
|
44
|
+
/** Every displayed group — padding groups carry `displayInstances` */
|
|
45
|
+
colsAllGroups: AgProvidedColumnGroup[];
|
|
46
|
+
/** Lazy fallback for ColDef-shaped keys not in `colsById`: by-ref (merged + user colDef) plus
|
|
47
|
+
* `field` when distinct from colId (first-write-wins). */
|
|
48
|
+
private cachedColsByDef;
|
|
49
|
+
private cachedAllCols;
|
|
50
|
+
/** Cache for getColsInStateOrder (pivot only). Invalidated on `colsList` mutation — ref equality
|
|
51
|
+
* can't substitute, as `moveColumns` reorders in place. */
|
|
52
|
+
private cachedColsInStateOrder;
|
|
53
|
+
/** Prior display order per mode, as colId snapshots, so the next refresh can restore user moves. */
|
|
54
|
+
private lastOrder;
|
|
55
|
+
private lastPivotOrder;
|
|
56
|
+
/** Set when colsList order changes; {@link ensureColsListIndex} re-stamps `colsListIndex` lazily. */
|
|
57
|
+
private colsListIndexDirty;
|
|
58
|
+
/** User provided column definitions */
|
|
59
|
+
colDefs: (ColDef | ColGroupDef)[] | undefined;
|
|
60
|
+
private buildTokenCounter;
|
|
61
|
+
/** Persistent padding-group cache for hierarchy virtual cols, handed to each column-tree build
|
|
62
|
+
* so `(col, depth)`-stable wrappers survive rebuilds. Owns the padding-group bean lifecycle. */
|
|
63
|
+
private hierarchyWrapperCache;
|
|
32
64
|
postConstruct(): void;
|
|
33
|
-
|
|
65
|
+
destroy(): void;
|
|
66
|
+
nextBuildToken(): number;
|
|
67
|
+
isPivotActive(): boolean;
|
|
68
|
+
getCols(): AgColumn[];
|
|
69
|
+
/** Every column known to the grid (user, hierarchy, service, pivot result) in display (`colsList`)
|
|
70
|
+
* order, with parked pivot primaries appended. Lazily computed on first read after invalidation. */
|
|
71
|
+
getAllCols(): AgColumn[];
|
|
72
|
+
/** Resolve a provided group by id, falling back to parked primaries while pivoting (mirrors `getCol`). */
|
|
73
|
+
getColGroup(groupId: string): AgProvidedColumnGroup | undefined;
|
|
74
|
+
/** Columns in column-state order: hidden pivot primaries first, then `colsList`. Must not be mutated. */
|
|
75
|
+
getColsInStateOrder(): AgColumn[];
|
|
76
|
+
/** `newColDefs`: true = colDefs changed (order restored only with `maintainColumnOrder`); false =
|
|
77
|
+
* dynamic refresh with unchanged colDefs (prior order restored). */
|
|
78
|
+
private buildFromColDefs;
|
|
79
|
+
/** Open a column-change batch; mutations until the {@link endColBatch} share one flush. */
|
|
80
|
+
beginColBatch(): void;
|
|
81
|
+
/** Close a {@link beginColBatch}; the outermost close flushes once (one source for the whole action). */
|
|
82
|
+
endColBatch(source: ColumnEventType): void;
|
|
83
|
+
/** Refresh once (if needed) + dispatch each touched service. Fires immediately, or defers to {@link endColBatch}
|
|
84
|
+
* when batched. `refresh` accumulates into {@link pendingRefresh}: membership passes `true`, order/aggFunc-only
|
|
85
|
+
* (`moveColumn`/`setColumnAggFunc`) pass `false` to dispatch without a rebuild. */
|
|
86
|
+
flushColChanges(source: ColumnEventType, refresh: boolean): void;
|
|
34
87
|
refreshCols(newColDefs: boolean, source: ColumnEventType): void;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
88
|
+
/** Refresh state derived from `colsList` (group + quick-filter cols, colSpan/autoHeight flags) and
|
|
89
|
+
* reset displayed-col + viewport caches, ahead of `visibleCols.refresh`. Shared by full refreshCols
|
|
90
|
+
* and by a visibility-only change (which leaves `colsList` unchanged, so skips the rebuild). */
|
|
91
|
+
refreshColsDerivedState(): void;
|
|
92
|
+
/** Single pass: set `colSpanActive` and `rowAutoHeight.active` from `colsList`. */
|
|
93
|
+
private computeColSpanAndAutoHeight;
|
|
94
|
+
/** Full refresh (rebuild cols + recompute visible); immediate, or deferred to {@link endColBatch} when batched. */
|
|
38
95
|
refreshAll(source: ColumnEventType): void;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
* - If no sibling is found, apply the column at the end of the cols
|
|
45
|
-
*/
|
|
46
|
-
private restoreColOrder;
|
|
47
|
-
private positionLockedCols;
|
|
48
|
-
private saveColOrder;
|
|
49
|
-
getColumnDefs(sorted?: boolean): (ColDef | ColGroupDef)[] | undefined;
|
|
50
|
-
private setColSpanActive;
|
|
51
|
-
isPivotMode(): boolean;
|
|
96
|
+
private performRefresh;
|
|
97
|
+
/** Reorder `colDefList` only — `newList` MUST be a permutation of the existing col instances
|
|
98
|
+
* (caller owns the invariant). A full refresh should follow to propagate to display cols.
|
|
99
|
+
* `colsById` unchanged; `getAllCols` is order-agnostic. */
|
|
100
|
+
replaceColDefList(newList: AgColumn[]): void;
|
|
52
101
|
private setPivotMode;
|
|
53
|
-
isPivotActive(): boolean;
|
|
54
102
|
recreateColumnDefs(e: PropertyChangedEvent | PropertyValueChangedEvent<keyof GridOptions>): void;
|
|
55
103
|
setColumnDefs(columnDefs: (ColDef | ColGroupDef)[], source: ColumnEventType): void;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
getColFromCollection(key: ColKey, cols?: ColumnCollections): AgColumn | null;
|
|
79
|
-
private getColFromServiceCols;
|
|
104
|
+
/** Full structural rebuild from current `colDefs` + all contributors (hierarchy, calc cols, …).
|
|
105
|
+
* Used by contributors whose mutation changes tree structure (e.g. calc-col add/update/remove). */
|
|
106
|
+
rebuildCols(source: ColumnEventType): void;
|
|
107
|
+
/** Mark `AgColumn.colsListIndex` stale — called when `colsList`'s order changes outside a refresh
|
|
108
|
+
* (`moveColumns`, `applyColumnState` with `applyOrder`); next `ensureColsListIndex` re-stamps. */
|
|
109
|
+
markColsListIndexDirty(): void;
|
|
110
|
+
/** Lazily stamp each col's index in `colsList` onto `AgColumn.colsListIndex`, once per order change.
|
|
111
|
+
* Readers (e.g. `getColumnDefs`) call this before reading `col.colsListIndex`, so a burst of moves
|
|
112
|
+
* costs one O(N) pass on the next read, not one per move. */
|
|
113
|
+
ensureColsListIndex(): void;
|
|
114
|
+
/** Resolve any key (colId string, AgColumn, or ColDef) to its current AgColumn. Fast path inline:
|
|
115
|
+
* string colId, or object whose `colId` hits `colsById` (O(1)); misses delegate to `getColFallback`. */
|
|
116
|
+
getCol(key: ColKey | null | undefined): AgColumn | undefined;
|
|
117
|
+
/** Slow-path fallback for `getCol`: ColDef/ColGroupDef ref lookup + `field`-string fallback, building
|
|
118
|
+
* the lazy `colsByDef` map on first use. Stale AgColumn refs return `undefined` (unregistered, no `field`). */
|
|
119
|
+
private getColFallback;
|
|
120
|
+
/** Find a column excluding pivot result cols. `pivotKeys` (grid-set) is an O(1) discriminator
|
|
121
|
+
* standing in for a `pivotCols`-membership test, so `getColumnDefs()` doesn't round-trip them. */
|
|
122
|
+
getNonPivotCol(key: ColKey): AgColumn | undefined;
|
|
123
|
+
/** Like `getNonPivotCol` for hot paths where the key is a known colId string — skips the type-check + field-fallback. */
|
|
124
|
+
getNonPivotColById(key: string): AgColumn | undefined;
|
|
125
|
+
private loadColsByDef;
|
|
80
126
|
}
|
|
@@ -7,7 +7,7 @@ import type { HeaderLocation } from '../entities/colDef';
|
|
|
7
7
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
8
8
|
export declare class ColumnNameService extends BeanStub implements NamedBean {
|
|
9
9
|
beanName: "colNames";
|
|
10
|
-
getDisplayNameForColumn(column: AgColumn | null, location: HeaderLocation, includeAggFunc?: boolean): string | null;
|
|
10
|
+
getDisplayNameForColumn(column: AgColumn | null | undefined, location: HeaderLocation, includeAggFunc?: boolean): string | null;
|
|
11
11
|
getDisplayNameForProvidedColumnGroup(columnGroup: AgColumnGroup | null, providedColumnGroup: AgProvidedColumnGroup | null, location: HeaderLocation): string | null;
|
|
12
12
|
getDisplayNameForColumnGroup(columnGroup: AgColumnGroup, location: HeaderLocation): string | null;
|
|
13
13
|
private getHeaderName;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { BeanCollection } from '../context/context';
|
|
2
2
|
import type { AgColumn } from '../entities/agColumn';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ColAggFunc, IAggFunc } from '../entities/colDef';
|
|
4
|
+
import type { ShowValuesAsStateValue } from '../entities/colDef-showValuesAs';
|
|
4
5
|
import type { ColumnEventType } from '../events';
|
|
5
6
|
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
|
7
|
+
import type { SortDef, SortDirection, SortType } from '../interfaces/iSort';
|
|
6
8
|
export interface ColumnStateParams {
|
|
7
9
|
/** True if the column is hidden */
|
|
8
10
|
hide?: boolean | null;
|
|
@@ -13,11 +15,17 @@ export interface ColumnStateParams {
|
|
|
13
15
|
/** The sort direction of the column */
|
|
14
16
|
sort?: SortDirection;
|
|
15
17
|
/** The type of sort applied to the column */
|
|
16
|
-
sortType?: SortType;
|
|
18
|
+
sortType?: SortType | null;
|
|
17
19
|
/** The order of the sort, if sorting by many columns */
|
|
18
20
|
sortIndex?: number | null;
|
|
19
21
|
/** The aggregation function applied */
|
|
20
22
|
aggFunc?: string | IAggFunc | null;
|
|
23
|
+
/**
|
|
24
|
+
* The position of this column in the order of value columns when aggregating in pivot mode.
|
|
25
|
+
* When aggregating by a single column, any number can be used. When aggregating by multiple
|
|
26
|
+
* columns, this determines the order (e.g. `0` for first, `1` for second).
|
|
27
|
+
*/
|
|
28
|
+
valueIndex?: number | null;
|
|
21
29
|
/** True if pivot active */
|
|
22
30
|
pivot?: boolean | null;
|
|
23
31
|
/** The order of the pivot, if pivoting by many columns */
|
|
@@ -28,6 +36,9 @@ export interface ColumnStateParams {
|
|
|
28
36
|
rowGroup?: boolean | null;
|
|
29
37
|
/** The order of the row group, if grouping by many columns */
|
|
30
38
|
rowGroupIndex?: number | null;
|
|
39
|
+
/** The active "Show Values As" selection: the mode name, or the object form (with `params` / `precision`)
|
|
40
|
+
* for modes that take input. `null` clears it. */
|
|
41
|
+
showValuesAs?: ShowValuesAsStateValue;
|
|
31
42
|
}
|
|
32
43
|
export interface ColumnState extends ColumnStateParams {
|
|
33
44
|
/** ID of the column */
|
|
@@ -41,16 +52,46 @@ export interface ApplyColumnStateParams {
|
|
|
41
52
|
/** State to apply to columns where state is missing for those columns */
|
|
42
53
|
defaultState?: ColumnStateParams;
|
|
43
54
|
}
|
|
44
|
-
/**
|
|
55
|
+
/** Pre-mutation snapshot; `dispatchColStateChanges` diffs against it to fire the right column events. */
|
|
56
|
+
interface ColumnStateChanges {
|
|
57
|
+
/** Pre-mutation snapshot (`sortColumns` mutates `.columns` in place); `undefined` when empty/absent. */
|
|
58
|
+
rowGroupColumns: AgColumn[] | undefined;
|
|
59
|
+
pivotColumns: AgColumn[] | undefined;
|
|
60
|
+
/** Per-column scalar snapshot keyed by colId; insertion order = capture order. */
|
|
61
|
+
before: Map<string, ColumnStateBefore>;
|
|
62
|
+
/** Pre-mutation `colsList` ref. Unchanged ref ⇒ order untouched (only ever reassigned) ⇒ skip the O(n) diff. */
|
|
63
|
+
colsList: AgColumn[];
|
|
64
|
+
}
|
|
65
|
+
/** Minimal pre-apply snapshot: only the fields `dispatchColumnFieldChanges` diffs. */
|
|
66
|
+
interface ColumnStateBefore {
|
|
67
|
+
width: number;
|
|
68
|
+
hide: boolean;
|
|
69
|
+
pinned: ColumnPinnedType;
|
|
70
|
+
sort: SortDirection;
|
|
71
|
+
sortType: SortType | undefined;
|
|
72
|
+
sortIndex: number | null;
|
|
73
|
+
aggFunc: ColAggFunc;
|
|
74
|
+
}
|
|
75
|
+
/** Updates hide/sort/sortIndex/pinned/flex. Per field: `null`/empty clears, only `undefined` is skipped. */
|
|
76
|
+
export declare const updateSomeColumnState: (beans: BeanCollection, column: AgColumn, hide: boolean | null | undefined, sort: SortDirection | SortDef | undefined, sortIndex: number | null | undefined, pinned: boolean | "left" | "right" | null | undefined, flex: number | null | undefined, source: ColumnEventType) => void;
|
|
77
|
+
/** Show/hide columns — skips the full `_applyColumnState` rebuild (visibility can't change colsList membership/order).
|
|
78
|
+
* `filterLockedColumns` (UI paths) skips `lockVisible` cols; the API path passes `false`.
|
|
79
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
80
|
+
export declare function _setColsVisible(beans: BeanCollection, keys: (string | AgColumn)[], visible: boolean | undefined, source: ColumnEventType, filterLockedColumns?: boolean): void;
|
|
81
|
+
/** Apply `ColumnState` across two passes, then — once for the whole operation — re-order, refresh the
|
|
82
|
+
* visible cols and dispatch the resulting events. Returns `true` if every provided state matched a column.
|
|
83
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
45
84
|
export declare function _applyColumnState(beans: BeanCollection, params: ApplyColumnStateParams, source: ColumnEventType): boolean;
|
|
46
|
-
/**
|
|
85
|
+
/** Reset all columns to the state declared in their colDefs (`initial*`/explicit), re-apply the colDef
|
|
86
|
+
* order, and fire `columnsReset`.
|
|
87
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
47
88
|
export declare function _resetColumnState(beans: BeanCollection, source: ColumnEventType): void;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
export declare function
|
|
54
|
-
|
|
55
|
-
export declare function
|
|
56
|
-
export
|
|
89
|
+
/** Snapshot column state before a mutation. Pair with {@link dispatchColStateChanges} after the
|
|
90
|
+
* mutation to fire the resulting events. Used by both apply-column-state and apply-new-column-defs. */
|
|
91
|
+
export declare function captureColumnStateChanges(beans: BeanCollection): ColumnStateChanges;
|
|
92
|
+
/** Diff current column state against a {@link captureColumnStateChanges} snapshot and dispatch the changed
|
|
93
|
+
* column events (value/resize/pin/visible/sort/rowGroup/pivot/moved). */
|
|
94
|
+
export declare function dispatchColStateChanges(beans: BeanCollection, source: ColumnEventType, changes: ColumnStateChanges): void;
|
|
95
|
+
export declare const _getColumnState: (beans: BeanCollection) => ColumnState[];
|
|
96
|
+
export declare function getColumnStateFromColDef(beans: BeanCollection, column: AgColumn): ColumnState;
|
|
97
|
+
export {};
|
|
@@ -1,42 +1,37 @@
|
|
|
1
|
-
import type { AgPropertyChangedSource } from '
|
|
1
|
+
import type { AgPropertyChangedSource } from 'ag-stack';
|
|
2
2
|
import type { BeanCollection } from '../context/context';
|
|
3
3
|
import type { AgColumn } from '../entities/agColumn';
|
|
4
4
|
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
|
5
|
-
import type { ColDef,
|
|
5
|
+
import type { ColDef, ColGroupDef } from '../entities/colDef';
|
|
6
6
|
import type { ColumnEventType } from '../events';
|
|
7
|
-
import type {
|
|
8
|
-
import type { ColumnState
|
|
7
|
+
import type { Column } from '../interfaces/iColumn';
|
|
8
|
+
import type { ColumnState } from './columnStateUtils';
|
|
9
9
|
export declare const GROUP_AUTO_COLUMN_ID = "ag-Grid-AutoColumn";
|
|
10
10
|
export declare const SELECTION_COLUMN_ID = "ag-Grid-SelectionColumn";
|
|
11
11
|
export declare const ROW_NUMBERS_COLUMN_ID = "ag-Grid-RowNumbersColumn";
|
|
12
12
|
export declare const GROUP_HIERARCHY_COLUMN_ID_PREFIX = "ag-Grid-HierarchyColumn";
|
|
13
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
14
|
-
export declare function _getColumnsFromTree(rootColumns: (AgColumn | AgProvidedColumnGroup)[]): AgColumn[];
|
|
15
13
|
export declare function getWidthOfColsInList(columnList: AgColumn[]): number;
|
|
16
14
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
17
|
-
export declare function
|
|
18
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
19
|
-
export declare function isColumnGroupAutoCol(col: AgColumn): boolean;
|
|
15
|
+
export declare function isColumnGroupAutoCol(col: Column): boolean;
|
|
20
16
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
21
|
-
export declare function isColumnSelectionCol(col:
|
|
17
|
+
export declare function isColumnSelectionCol(col: Column): boolean;
|
|
22
18
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
23
|
-
export declare function isRowNumberCol(col:
|
|
19
|
+
export declare function isRowNumberCol(col: Column): boolean;
|
|
24
20
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
25
|
-
export declare function isSpecialCol(col:
|
|
21
|
+
export declare function isSpecialCol(col: Column): boolean;
|
|
26
22
|
export declare function convertColumnTypes(type: string | string[]): string[];
|
|
27
23
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
28
|
-
export declare function _areColIdsEqual(colsA: AgColumn[] | null, colsB: AgColumn[] | null): boolean;
|
|
29
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
30
|
-
export declare function _updateColsMap(cols: ColumnCollections): void;
|
|
31
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
32
24
|
export declare function _convertColumnEventSourceType(source: AgPropertyChangedSource): ColumnEventType;
|
|
33
25
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
34
|
-
export declare function
|
|
35
|
-
export declare
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
export declare function _getColumnStateFromColDef(beans: BeanCollection, colDef: ColDef, colId: string): ColumnState;
|
|
27
|
+
export declare function getSortDefFromColDef(colDef: ColDef): import("../main-umd-noStyles").SortDef | null;
|
|
28
|
+
/** Destroys every still-alive node via flat lists (not `.children`, which a reused group may have replaced);
|
|
29
|
+
* the `isAlive()` guard de-dups nodes reachable via multiple paths (hierarchy cols sit in colDefList + wrappers).
|
|
30
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
31
|
+
export declare const _destroyColumnTreeAll: (cols: readonly AgColumn[] | null, allGroups: readonly AgProvidedColumnGroup[] | null) => void;
|
|
32
|
+
/** Destroys prev-build nodes absent from the new build. Walks flat prev lists, not `.children`:
|
|
33
|
+
* orphans whose parent's array was replaced are otherwise unreachable.
|
|
34
|
+
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
35
|
+
export declare const _destroyColumnTreeUnused: (prevCols: readonly AgColumn[], prevAllGroups: readonly AgProvidedColumnGroup[], buildToken: number) => void;
|
|
36
|
+
/** Calls `callback` for each leaf `ColDef`, recursing into `ColGroupDef` children; not called on groups. */
|
|
37
|
+
export declare function forEachColDef(columnDefs: (ColDef | ColGroupDef)[], callback: (colDef: ColDef) => void): void;
|
|
@@ -5,6 +5,8 @@ import type { AgColumn } from '../entities/agColumn';
|
|
|
5
5
|
import type { ColDef } from '../entities/colDef';
|
|
6
6
|
import type { BaseCellDataType, CoreDataTypeDefinition, DataTypeDefinition, DataTypeFormatValueFunc } from '../entities/dataType';
|
|
7
7
|
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
8
|
+
export declare const DATA_TYPE_DERIVED_COL_DEF_PROPERTIES: readonly ["cellRenderer", "cellEditorParams", "comparator", "getFindText", "keyCreator", "suppressKeyboardEvent", "valueFormatter", "valueParser"];
|
|
9
|
+
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
8
10
|
export declare class DataTypeService extends BeanStub implements NamedBean {
|
|
9
11
|
beanName: "dataTypeSvc";
|
|
10
12
|
private colModel;
|
|
@@ -35,7 +37,6 @@ export declare class DataTypeService extends BeanStub implements NamedBean {
|
|
|
35
37
|
private getInitialData;
|
|
36
38
|
private initWaitForRowData;
|
|
37
39
|
private processColumnsPendingInference;
|
|
38
|
-
private generateColumnStateForRowGroupAndPivotIndexes;
|
|
39
40
|
private resetColDefIntoCol;
|
|
40
41
|
private getDateStringTypeDefinition;
|
|
41
42
|
getDateParserFunction(column?: AgColumn | null): (value: string | undefined) => Date | undefined;
|
|
@@ -47,6 +48,7 @@ export declare class DataTypeService extends BeanStub implements NamedBean {
|
|
|
47
48
|
validateColDef(colDef: ColDef, userColDef?: ColDef, defaultColDef?: ColDef, colId?: string): void;
|
|
48
49
|
postProcess(colDef: ColDef): void;
|
|
49
50
|
getFormatValue(cellDataType: string): DataTypeFormatValueFunc | undefined;
|
|
51
|
+
isDataTypeRegistered(cellDataType: string): boolean;
|
|
50
52
|
isColPendingInference(colId: string): boolean;
|
|
51
53
|
private readonly columnDefinitionPropsPerDataType;
|
|
52
54
|
private setColDefPropertiesForBaseDataType;
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import type { NamedBean } from '../context/bean';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import type { ColKey } from '../entities/colDef';
|
|
2
|
+
import type { ColKind } from '../entities/agColumn';
|
|
3
|
+
import type { ColDef } from '../entities/colDef';
|
|
5
4
|
import type { PropertyValueChangedEvent } from '../gridOptionsService';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
export declare class SelectionColService extends BeanStub implements NamedBean, IColumnCollectionService {
|
|
5
|
+
import { BaseSingleColService } from './baseSingleColService';
|
|
6
|
+
export declare class SelectionColService extends BaseSingleColService implements NamedBean {
|
|
9
7
|
beanName: "selectionColSvc";
|
|
10
|
-
|
|
8
|
+
protected readonly colKind: ColKind;
|
|
11
9
|
postConstruct(): void;
|
|
12
|
-
addColumns(cols: ColumnCollections): void;
|
|
13
|
-
createColumns(cols: ColumnCollections, updateOrders: (callback: (cols: AgColumn[] | null) => AgColumn[] | null) => void): void;
|
|
14
10
|
updateColumns(event: PropertyValueChangedEvent<'selectionColumnDef'>): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
isSelectionColumnEnabled(): boolean;
|
|
18
|
-
private createSelectionColDef;
|
|
19
|
-
private generateSelectionCols;
|
|
11
|
+
isEnabled(): boolean;
|
|
12
|
+
protected createColDef(): ColDef;
|
|
20
13
|
private onSelectionOptionsChanged;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Refreshes visibility of the selection column based on which columns are currently visible.
|
|
24
|
-
* Called by the VisibleColsService with the columns that are currently visible in left/center/right
|
|
25
|
-
* containers. This method *MUTATES* those arrays directly.
|
|
26
|
-
*
|
|
27
|
-
* The selection column should be visible if all of the following are true
|
|
28
|
-
* - The selection column is not disabled
|
|
29
|
-
* - The number of visible columns excluding the selection column and row numbers column is greater than 0
|
|
30
|
-
* @param leftCols Visible columns in the left-pinned container
|
|
31
|
-
* @param centerCols Visible columns in the center viewport
|
|
32
|
-
* @param rightCols Visible columns in the right-pinned container
|
|
33
|
-
*/
|
|
34
|
-
refreshVisibility(leftCols: AgColumn[], centerCols: AgColumn[], rightCols: AgColumn[]): void;
|
|
35
14
|
}
|