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,46 +0,0 @@
|
|
|
1
|
-
import type { Part } from './part';
|
|
2
|
-
import { PartImpl } from './partImpl';
|
|
3
|
-
import type { SharedThemeParams } from './shared/shared-css';
|
|
4
|
-
import type { Theme } from './theme';
|
|
5
|
-
import type { ThemeLogger } from './themeLogger';
|
|
6
|
-
import type { WithParamTypes } from './themeTypes';
|
|
7
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
8
|
-
export declare const _asThemeImpl: <TParams>(theme: Theme<TParams>) => ThemeImpl;
|
|
9
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
10
|
-
export declare const createSharedTheme: <TParams extends SharedThemeParams>(themeLogger: ThemeLogger, overridePrefix?: string) => Theme<TParams>;
|
|
11
|
-
type themeUseArgs = {
|
|
12
|
-
loadThemeGoogleFonts: boolean | undefined;
|
|
13
|
-
styleContainer: HTMLElement;
|
|
14
|
-
cssLayer: string | undefined;
|
|
15
|
-
nonce: string | undefined;
|
|
16
|
-
moduleCss: Map<string, string[]> | undefined;
|
|
17
|
-
};
|
|
18
|
-
export declare class ThemeImpl {
|
|
19
|
-
private readonly params;
|
|
20
|
-
readonly parts: PartImpl[];
|
|
21
|
-
constructor(params: {
|
|
22
|
-
themeLogger: ThemeLogger;
|
|
23
|
-
/**
|
|
24
|
-
* If a theme element is nested inside another theme element,
|
|
25
|
-
* this allows the child to inherit different variables than the parent
|
|
26
|
-
*/
|
|
27
|
-
overridePrefix?: string;
|
|
28
|
-
}, parts?: PartImpl[]);
|
|
29
|
-
withPart(part: Part | (() => Part)): ThemeImpl;
|
|
30
|
-
withoutPart(feature: string): ThemeImpl;
|
|
31
|
-
withParams(params: WithParamTypes<unknown>, mode?: string): ThemeImpl;
|
|
32
|
-
_startUse({ styleContainer, cssLayer, nonce, loadThemeGoogleFonts, moduleCss }: themeUseArgs): void;
|
|
33
|
-
private _cssClassCache?;
|
|
34
|
-
_getCssClass(this: ThemeImpl): string;
|
|
35
|
-
private _paramsClassName?;
|
|
36
|
-
_getParamsClassName(): string;
|
|
37
|
-
private _paramsCache?;
|
|
38
|
-
_getModeParams(): ModalParamValues;
|
|
39
|
-
private _paramsCssCache?;
|
|
40
|
-
_getParamsCss(): string;
|
|
41
|
-
}
|
|
42
|
-
type ParamValues = Record<string, unknown>;
|
|
43
|
-
type ModalParamValues = {
|
|
44
|
-
[mode: string]: ParamValues;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** IDs match grid error IDs */
|
|
2
|
-
type ThemeErrorMap = {
|
|
3
|
-
104: ({ value, param, }: {
|
|
4
|
-
value: any;
|
|
5
|
-
param: string;
|
|
6
|
-
}) => `Numeric value ${number} passed to ${string} param will be interpreted as ${number} seconds. If this is intentional use "${number}s" to silence this warning.`;
|
|
7
|
-
107: ({ key, value }: {
|
|
8
|
-
key: string;
|
|
9
|
-
value: unknown;
|
|
10
|
-
}) => `Invalid value for theme param ${string} - ${string}`;
|
|
11
|
-
259: ({ part, }: {
|
|
12
|
-
part: any;
|
|
13
|
-
}) => `the argument to theme.withPart must be a Theming API part object, received: ${any}`;
|
|
14
|
-
};
|
|
15
|
-
type ThemeErrorId = keyof ThemeErrorMap;
|
|
16
|
-
type ThemeErrorValue<TId extends ThemeErrorId | null> = TId extends ThemeErrorId ? ThemeErrorMap[TId] : never;
|
|
17
|
-
type GetThemeErrorParams<TId extends ThemeErrorId> = ThemeErrorValue<TId> extends (params: infer P) => any ? (P extends Record<string, any> ? P : undefined) : never;
|
|
18
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
19
|
-
export type ThemeLogger = {
|
|
20
|
-
error: <TId extends ThemeErrorId, TShowMessageAtCallLocation = ThemeErrorMap[TId]>(...args: undefined extends GetThemeErrorParams<TId> ? [id: TId] : [id: TId, params: GetThemeErrorParams<TId>]) => void;
|
|
21
|
-
warn: <TId extends ThemeErrorId, TShowMessageAtCallLocation = ThemeErrorMap[TId]>(...args: undefined extends GetThemeErrorParams<TId> ? [id: TId] : [id: TId, params: GetThemeErrorParams<TId>]) => void;
|
|
22
|
-
preInitErr: <TId extends ThemeErrorId, TShowMessageAtCallLocation = ThemeErrorMap[TId]>(...args: undefined extends GetThemeErrorParams<TId> ? [id: TId, defaultMessage: string] : [id: TId, defaultMessage: string, params: GetThemeErrorParams<TId>]) => void;
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ThemeLogger } from './themeLogger';
|
|
2
|
-
import type { ColorValue, FontFamilyValue, ImageValue } from './themeTypes';
|
|
3
|
-
declare const paramTypes: readonly ["colorScheme", "color", "length", "scale", "borderStyle", "border", "shadow", "image", "fontFamily", "fontWeight", "duration"];
|
|
4
|
-
export type ParamType = (typeof paramTypes)[number];
|
|
5
|
-
/**
|
|
6
|
-
* Return the ParamType for a given param name,
|
|
7
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getParamType: (arg: string) => "length" | "image" | "colorScheme" | "fontFamily" | "fontWeight" | "color" | "scale" | "borderStyle" | "border" | "shadow" | "duration";
|
|
10
|
-
export declare const colorValueToCss: (value: ColorValue) => string | false;
|
|
11
|
-
export declare const fontFamilyValueToCss: (value: FontFamilyValue) => string | false;
|
|
12
|
-
export declare const fontWeightValueToCss: (value: string | number | {
|
|
13
|
-
ref: string;
|
|
14
|
-
}) => string | false;
|
|
15
|
-
export declare const imageValueToCss: (value: ImageValue) => string | false;
|
|
16
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
17
|
-
export declare const paramValueToCss: (param: string, value: unknown, themeLogger: ThemeLogger | null) => string | false;
|
|
18
|
-
export {};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export type Feature = 'colorScheme' | 'iconSet' | 'checkboxStyle' | 'inputStyle' | 'tabStyle';
|
|
2
|
-
export type WithParamTypes<T> = {
|
|
3
|
-
[K in keyof T]: K extends string ? ParamTypeForLowercaseKey<Lowercase<K>> : LengthValue;
|
|
4
|
-
};
|
|
5
|
-
type ParamTypeForLowercaseKey<K extends string> = K extends `${string}color` ? ColorValue : K extends `${string}colorscheme` ? ColorSchemeValue : K extends `${string}color` ? ColorValue : K extends `${string}scale` ? ScaleValue : K extends `${string}borderstyle` ? BorderStyleValue : K extends `${string}border` ? BorderValue : K extends `${string}shadow` ? ShadowValue : K extends `${string}image` ? ImageValue : K extends `${string}fontfamily` ? FontFamilyValue : K extends `${string}fontweight` ? FontWeightValue : K extends `${string}duration` ? DurationValue : LengthValue;
|
|
6
|
-
type AnyString = string & {};
|
|
7
|
-
/**
|
|
8
|
-
* The 'brand color' for the grid, used wherever a non-neutral color is
|
|
9
|
-
* required. Selections, focus outlines and checkboxes use the accent color by
|
|
10
|
-
* default.
|
|
11
|
-
*/
|
|
12
|
-
export type ColorValue = string | {
|
|
13
|
-
/**
|
|
14
|
-
* The name of the color parameter to reference
|
|
15
|
-
*/
|
|
16
|
-
ref: string;
|
|
17
|
-
/**
|
|
18
|
-
* Enable color mixing. Provide a value between 0 and 1 determining the amount of the referenced color used in the mix.
|
|
19
|
-
*
|
|
20
|
-
* By default, the referenced color will be mixed with `transparent` so 0 = fully transparent and 1 = fully opaque.
|
|
21
|
-
*/
|
|
22
|
-
mix?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Provide a second color reference to mix with instead of `transparent`. This has no effect if `mix` is unspecified.
|
|
25
|
-
*/
|
|
26
|
-
onto?: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* A CSS color-scheme value, e.g. "light", "dark", or "inherit" to use the
|
|
30
|
-
* same setting as the parent application
|
|
31
|
-
*
|
|
32
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
33
|
-
*/
|
|
34
|
-
export type ColorSchemeValue = 'light' | 'dark' | 'inherit' | 'normal' | AnyString | {
|
|
35
|
-
ref: string;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* A CSS dimension value with length units, e.g. "1px" or "2em". Alternatively:
|
|
39
|
-
*
|
|
40
|
-
* - `4` -> "4px" (a plain JavaScript number will be given pixel units)
|
|
41
|
-
* - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
|
|
42
|
-
* - `{calc: "foo + bar * 2"}` -> Use a dynamically calculated expression. You can use param names like spacing and fontSize in the expression, as well as built-in CSS math functions like `min(spacing, fontSize)`
|
|
43
|
-
*/
|
|
44
|
-
export type LengthValue = number | string | {
|
|
45
|
-
/**
|
|
46
|
-
* An expression that can include param names and maths, e.g.
|
|
47
|
-
* "spacing * 2". NOTE: In CSS the `-` character is valid in variable
|
|
48
|
-
* names, so leave a space around it.
|
|
49
|
-
*/
|
|
50
|
-
calc: string;
|
|
51
|
-
} | {
|
|
52
|
-
ref: string;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* A number without units.
|
|
56
|
-
*/
|
|
57
|
-
export type ScaleValue = number | {
|
|
58
|
-
ref: 'string';
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* A CSS border value e.g. "solid 1px red". Alternatively an object containing optional properties:
|
|
62
|
-
*
|
|
63
|
-
* - `style` -> a CSS border-style, default `"solid"`
|
|
64
|
-
* - `width` -> a width in pixels, default `{ref: "borderWidth"}` (and the default borderWidth is 1)
|
|
65
|
-
* - `color` -> a ColorValue as you would pass to any color param, default `{ref: "borderColor"}`
|
|
66
|
-
*
|
|
67
|
-
* Or a reference:
|
|
68
|
-
* - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
|
|
69
|
-
*
|
|
70
|
-
* Or boolean value
|
|
71
|
-
* - `true` -> `{}` (the default border style, equivalent to `{style: "solid", width: 1, color: {ref: "borderColor"}`)
|
|
72
|
-
* - `false` -> `"none"` (no border).
|
|
73
|
-
*
|
|
74
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border
|
|
75
|
-
*/
|
|
76
|
-
export type BorderValue = string | boolean | {
|
|
77
|
-
style?: BorderStyleValue;
|
|
78
|
-
width?: LengthValue;
|
|
79
|
-
color?: ColorValue;
|
|
80
|
-
} | {
|
|
81
|
-
ref: string;
|
|
82
|
-
};
|
|
83
|
-
export type ShadowValueParams = {
|
|
84
|
-
/**
|
|
85
|
-
* Positive values move the shadow to the right, negative values move left
|
|
86
|
-
*
|
|
87
|
-
* @default 0
|
|
88
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
89
|
-
*/
|
|
90
|
-
offsetX?: LengthValue;
|
|
91
|
-
/**
|
|
92
|
-
* Positive values move the shadow downwards, negative values move up
|
|
93
|
-
*
|
|
94
|
-
* @default 0
|
|
95
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
96
|
-
*/
|
|
97
|
-
offsetY?: LengthValue;
|
|
98
|
-
/**
|
|
99
|
-
* Softness of the shadow. 0 = hard edge, 10 = 10px wide blur.
|
|
100
|
-
*
|
|
101
|
-
* @default 0
|
|
102
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
103
|
-
*/
|
|
104
|
-
radius?: LengthValue;
|
|
105
|
-
/**
|
|
106
|
-
* Size of the shadow. 0 = same size as the shadow-casting element. 10 = 10px wider in all directions.
|
|
107
|
-
*
|
|
108
|
-
* @default 0
|
|
109
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
110
|
-
*/
|
|
111
|
-
spread?: LengthValue;
|
|
112
|
-
/**
|
|
113
|
-
* Shadow color. Can accept any value that is valid for a color parameter, e.g. 'red' or {ref: 'accentColor'}
|
|
114
|
-
*
|
|
115
|
-
* @default {ref: 'foregroundColor'}
|
|
116
|
-
*/
|
|
117
|
-
color?: ColorValue;
|
|
118
|
-
/**
|
|
119
|
-
* Whether shadow is inset (an inner shadow instead of an outer shadow).
|
|
120
|
-
*
|
|
121
|
-
* @default false
|
|
122
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
123
|
-
*/
|
|
124
|
-
inset?: boolean;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* A CSS box shadow value e.g. "10px 5px 5px red;". Alternatively an object or array of objects containing optional properties:
|
|
128
|
-
*
|
|
129
|
-
* - `offsetX` -> number of pixels to move the shadow to the right, or a negative value to move left, default 0
|
|
130
|
-
* - `offsetY` -> number of pixels to move the shadow downwards, or a negative value to move up, default 0
|
|
131
|
-
* - `radius` -> softness of the shadow. 0 = hard edge, 10 = 10px wide blur
|
|
132
|
-
* - `spread` -> size of the shadow. 0 = same size as the shadow-casting element. 10 = 10px wider in all directions.
|
|
133
|
-
* - `color` -> color of the shadow e.g. `"red"`. Default `{ref: "foregroundColor"}`
|
|
134
|
-
* - `inset` -> whether shadow is inset, default false
|
|
135
|
-
*
|
|
136
|
-
* Or a reference:
|
|
137
|
-
* - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
|
|
138
|
-
*
|
|
139
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
|
140
|
-
*/
|
|
141
|
-
export type ShadowValue = string | false | ShadowValueParams | ShadowValueParams[] | {
|
|
142
|
-
ref: string;
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* A CSS line-style value e.g. "solid" or "dashed".
|
|
146
|
-
*
|
|
147
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-style
|
|
148
|
-
*/
|
|
149
|
-
export type BorderStyleValue = 'none' | 'solid' | 'dotted' | 'dashed' | 'inset' | 'outset' | AnyString | {
|
|
150
|
-
ref: string;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* A CSS font-family value consisting of a font name or comma-separated list of fonts in order of preference e.g. `"Roboto, -apple-system, 'Segoe UI', sans-serif"`. Alternatively:
|
|
154
|
-
*
|
|
155
|
-
* - `["Roboto", "-apple-system", "Segoe UI", "sans-serif"]` -> an array of font names in order of preference
|
|
156
|
-
* - `["Dave's Font"]` -> when passing an array, special characters in font names will automatically be escaped
|
|
157
|
-
* - `{ref: "foo"}` -> use the same value as `foo` which must be a valid font family param name
|
|
158
|
-
*
|
|
159
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
|
|
160
|
-
*/
|
|
161
|
-
export type FontFamilyValue = string | {
|
|
162
|
-
googleFont: string;
|
|
163
|
-
} | Array<string | {
|
|
164
|
-
googleFont: string;
|
|
165
|
-
}> | {
|
|
166
|
-
ref: string;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* A CSS font-weight value e.g. `500` or `"bold"`
|
|
170
|
-
*
|
|
171
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
|
|
172
|
-
*/
|
|
173
|
-
export type FontWeightValue = 'normal' | 'bold' | AnyString | number | {
|
|
174
|
-
ref: string;
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* A CSS image value e.g. `"url(...image-url...)"`. Alternatively:
|
|
178
|
-
*
|
|
179
|
-
* - `{svg: "...XML source of SVG image..."}` -> embed an SVG as a data: uri
|
|
180
|
-
* - `{url: "https://..."}` -> a URL to load an image asset from. Can be a HTTPS URL, or image assets such as PNGs can be converted to data: URLs
|
|
181
|
-
* - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
|
|
182
|
-
*
|
|
183
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/image
|
|
184
|
-
*/
|
|
185
|
-
export type ImageValue = string | {
|
|
186
|
-
/**
|
|
187
|
-
* The URL of an image. data: URLs can be used embed assets.
|
|
188
|
-
*/
|
|
189
|
-
url: string;
|
|
190
|
-
} | {
|
|
191
|
-
/**
|
|
192
|
-
* The XML text of an SVG file
|
|
193
|
-
*/
|
|
194
|
-
svg: string;
|
|
195
|
-
} | {
|
|
196
|
-
ref: string;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* A CSS time value with second or millisecond units e.g. `"0.3s"` or `"300ms"`. Alternatively:
|
|
200
|
-
*
|
|
201
|
-
* - `0.4` -> "0.4s" (a plain JavaScript number is assumed to be a number of seconds.
|
|
202
|
-
* - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
|
|
203
|
-
*
|
|
204
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration
|
|
205
|
-
*/
|
|
206
|
-
export type DurationValue = number | string | {
|
|
207
|
-
ref: string;
|
|
208
|
-
};
|
|
209
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ColorValue } from './themeTypes';
|
|
2
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
3
|
-
export declare const paramToVariableName: (paramName: string) => string;
|
|
4
|
-
export declare const paramToVariableExpression: (paramName: string) => string;
|
|
5
|
-
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
6
|
-
export declare const memoize: <R, A = void>(fn: (arg: A) => R) => ((arg: A) => R);
|
|
7
|
-
export declare const accentMix: (mix: number) => ColorValue;
|
|
8
|
-
export declare const foregroundMix: (mix: number) => ColorValue;
|
|
9
|
-
export declare const foregroundBackgroundMix: (mix: number) => ColorValue;
|
|
10
|
-
export declare const foregroundHeaderBackgroundMix: (mix: number) => ColorValue;
|
|
11
|
-
export declare const backgroundColor: ColorValue;
|
|
12
|
-
export declare const foregroundColor: ColorValue;
|
|
13
|
-
export declare const accentColor: ColorValue;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection';
|
|
2
|
-
import type { AgEvent } from '../interfaces/agEvent';
|
|
3
|
-
import type { BaseEvents } from '../interfaces/baseEvents';
|
|
4
|
-
import type { BaseProperties } from '../interfaces/baseProperties';
|
|
5
|
-
import type { IEventEmitter } from '../interfaces/iEventEmitter';
|
|
6
|
-
import type { IPropertiesService } from '../interfaces/iProperties';
|
|
7
|
-
import type { TooltipCtrl } from '../interfaces/iTooltip';
|
|
8
|
-
import { AgTooltipFeature } from './agTooltipFeature';
|
|
9
|
-
import type { BaseTooltipParams } from './baseTooltipStateManager';
|
|
10
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
11
|
-
export type HighlightTooltipEventType = 'itemHighlighted';
|
|
12
|
-
export interface HighlightTooltipEvent extends AgEvent<HighlightTooltipEventType> {
|
|
13
|
-
highlighted: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class AgHighlightTooltipFeature<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TTooltipParams extends BaseTooltipParams<TLocation>, TTooltipCtrlParams, TLocation extends string> extends AgTooltipFeature<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService, TTooltipParams, TTooltipCtrlParams, TLocation> {
|
|
16
|
-
private readonly highlightTracker;
|
|
17
|
-
private tooltipMode;
|
|
18
|
-
constructor(ctrl: TooltipCtrl<TLocation, TTooltipCtrlParams>, highlightTracker: IEventEmitter<HighlightTooltipEventType>, beans?: TBeanCollection);
|
|
19
|
-
postConstruct(): void;
|
|
20
|
-
private wireHighlightListeners;
|
|
21
|
-
private onHighlight;
|
|
22
|
-
private setTooltipMode;
|
|
23
|
-
destroy(): void;
|
|
24
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection';
|
|
2
|
-
import type { BaseEvents } from '../interfaces/baseEvents';
|
|
3
|
-
import type { BaseProperties } from '../interfaces/baseProperties';
|
|
4
|
-
import type { IComponent } from '../interfaces/iComponent';
|
|
5
|
-
import type { IPropertiesService } from '../interfaces/iProperties';
|
|
6
|
-
import { AgPopupComponent } from '../popup/agPopupComponent';
|
|
7
|
-
import type { BaseTooltipParams } from './baseTooltipStateManager';
|
|
8
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
9
|
-
export declare class AgTooltipComponent<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TComponentSelectorType extends string, TTooltipParams extends BaseTooltipParams<TLocation>, TLocation extends string> extends AgPopupComponent<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService, TComponentSelectorType> implements IComponent<TTooltipParams> {
|
|
10
|
-
constructor();
|
|
11
|
-
init(params: TTooltipParams): void;
|
|
12
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AgBeanStub } from '../core/agBeanStub';
|
|
2
|
-
import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection';
|
|
3
|
-
import type { BaseEvents } from '../interfaces/baseEvents';
|
|
4
|
-
import type { BaseProperties } from '../interfaces/baseProperties';
|
|
5
|
-
import type { IPropertiesService } from '../interfaces/iProperties';
|
|
6
|
-
import type { ITooltipFeature, TooltipCtrl } from '../interfaces/iTooltip';
|
|
7
|
-
import type { BaseTooltipParams } from './baseTooltipStateManager';
|
|
8
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
9
|
-
export declare class AgTooltipFeature<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TTooltipParams extends BaseTooltipParams<TLocation>, TTooltipCtrlParams, TLocation extends string> extends AgBeanStub<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService> implements ITooltipFeature {
|
|
10
|
-
private readonly ctrl;
|
|
11
|
-
private tooltip;
|
|
12
|
-
private tooltipManager;
|
|
13
|
-
private browserTooltips;
|
|
14
|
-
constructor(ctrl: TooltipCtrl<TLocation, TTooltipCtrlParams>, beans?: TBeanCollection);
|
|
15
|
-
postConstruct(): void;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param tooltip The tooltip value
|
|
19
|
-
* @param allowEmptyString Set it to true to allow the title to be set to `''`. This is necessary
|
|
20
|
-
* when the browser adds a default tooltip the element and the tooltip service will be displayed
|
|
21
|
-
* next to a browser tooltip causing confusion.
|
|
22
|
-
*/
|
|
23
|
-
private setBrowserTooltip;
|
|
24
|
-
private updateTooltipText;
|
|
25
|
-
private createTooltipFeatureIfNeeded;
|
|
26
|
-
attemptToShowTooltip(): void;
|
|
27
|
-
attemptToHideTooltip(): void;
|
|
28
|
-
setTooltipAndRefresh(tooltip: any): void;
|
|
29
|
-
refreshTooltip(clearWithEmptyString?: boolean): void;
|
|
30
|
-
destroy(): void;
|
|
31
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AgBeanStub } from '../core/agBeanStub';
|
|
2
|
-
import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection';
|
|
3
|
-
import type { BaseEvents } from '../interfaces/baseEvents';
|
|
4
|
-
import type { BaseProperties } from '../interfaces/baseProperties';
|
|
5
|
-
import type { IComponent } from '../interfaces/iComponent';
|
|
6
|
-
import type { IPropertiesService } from '../interfaces/iProperties';
|
|
7
|
-
import type { TooltipCtrl } from '../interfaces/iTooltip';
|
|
8
|
-
export declare enum TooltipTrigger {
|
|
9
|
-
HOVER = 0,
|
|
10
|
-
FOCUS = 1
|
|
11
|
-
}
|
|
12
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
13
|
-
export interface BaseTooltipParams<TLocation extends string, TValue = any> {
|
|
14
|
-
location: TLocation;
|
|
15
|
-
/** The value to be rendered by the tooltip. */
|
|
16
|
-
value?: TValue | null;
|
|
17
|
-
/** A callback function that hides the tooltip */
|
|
18
|
-
hideTooltipCallback?: () => void;
|
|
19
|
-
}
|
|
20
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
21
|
-
export declare abstract class BaseTooltipStateManager<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TTooltipParams extends BaseTooltipParams<TLocation>, TTooltipCtrlParams, TLocation extends string> extends AgBeanStub<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService> {
|
|
22
|
-
private readonly tooltipCtrl;
|
|
23
|
-
private readonly getTooltipValue;
|
|
24
|
-
private popupSvc?;
|
|
25
|
-
wireBeans(beans: TBeanCollection): void;
|
|
26
|
-
private showTooltipTimeoutId;
|
|
27
|
-
private hideTooltipTimeoutId;
|
|
28
|
-
private interactiveTooltipTimeoutId;
|
|
29
|
-
private interactionEnabled;
|
|
30
|
-
private isInteractingWithTooltip;
|
|
31
|
-
private state;
|
|
32
|
-
private lastMouseEvent;
|
|
33
|
-
private tooltipComp;
|
|
34
|
-
private tooltipPopupDestroyFunc;
|
|
35
|
-
private tooltipInstanceCount;
|
|
36
|
-
private tooltipMouseTrack;
|
|
37
|
-
private tooltipTrigger;
|
|
38
|
-
private tooltipMouseEnterListener;
|
|
39
|
-
private tooltipMouseLeaveListener;
|
|
40
|
-
private tooltipFocusInListener;
|
|
41
|
-
private tooltipFocusOutListener;
|
|
42
|
-
private onBodyScrollEventCallback;
|
|
43
|
-
private onDocumentKeyDownCallback;
|
|
44
|
-
constructor(tooltipCtrl: TooltipCtrl<TLocation, TTooltipCtrlParams>, getTooltipValue: () => any);
|
|
45
|
-
protected abstract createTooltipComp(params: TTooltipParams, callback: (comp: IComponent<TTooltipParams>) => void): void;
|
|
46
|
-
protected abstract setEventHandlers(listener: () => void): void;
|
|
47
|
-
protected abstract clearEventHandlers(): void;
|
|
48
|
-
postConstruct(): void;
|
|
49
|
-
private getGridOptionsTooltipDelay;
|
|
50
|
-
private getTooltipDelay;
|
|
51
|
-
destroy(): void;
|
|
52
|
-
private getTooltipTrigger;
|
|
53
|
-
onMouseEnter(e: MouseEvent): void;
|
|
54
|
-
private onMouseMove;
|
|
55
|
-
private onMouseDown;
|
|
56
|
-
private onMouseLeave;
|
|
57
|
-
private onFocusIn;
|
|
58
|
-
private onFocusOut;
|
|
59
|
-
private onKeyDown;
|
|
60
|
-
prepareToShowTooltip(mouseEvent?: MouseEvent): void;
|
|
61
|
-
private isLastTooltipHiddenRecently;
|
|
62
|
-
private setToDoNothing;
|
|
63
|
-
private showTooltip;
|
|
64
|
-
hideTooltip(forceHide?: boolean): void;
|
|
65
|
-
private newTooltipComponentCallback;
|
|
66
|
-
private onTooltipMouseEnter;
|
|
67
|
-
private onTooltipMouseLeave;
|
|
68
|
-
private onTooltipFocusIn;
|
|
69
|
-
private isTooltipFocused;
|
|
70
|
-
private onTooltipFocusOut;
|
|
71
|
-
private positionTooltip;
|
|
72
|
-
private destroyTooltipComp;
|
|
73
|
-
private clearTooltipListeners;
|
|
74
|
-
private lockService;
|
|
75
|
-
private unlockService;
|
|
76
|
-
private startHideTimeout;
|
|
77
|
-
private clearShowTimeout;
|
|
78
|
-
private clearHideTimeout;
|
|
79
|
-
private clearInteractiveTimeout;
|
|
80
|
-
private clearTimeouts;
|
|
81
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { LocaleTextFunc } from '../interfaces/iLocaleService';
|
|
2
|
-
/**
|
|
3
|
-
* Per https://www.w3.org/TR/wai-aria/#aria-sort](https://www.w3.org/TR/wai-aria/#aria-sort:~:text=integer-,aria%2Dsort%20property,-Indicates%20if%20items
|
|
4
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
5
|
-
*/
|
|
6
|
-
export type AriaSortState = 'ascending' | 'descending' | 'other' | 'none';
|
|
7
|
-
export type DisplaySortDef = SortDef | {
|
|
8
|
-
direction: 'mixed';
|
|
9
|
-
type: SortType;
|
|
10
|
-
};
|
|
11
|
-
export type SortDirection = 'asc' | 'desc' | null;
|
|
12
|
-
export type SortType = 'absolute' | 'default';
|
|
13
|
-
export type SortDef = {
|
|
14
|
-
type: SortType;
|
|
15
|
-
direction: SortDirection;
|
|
16
|
-
};
|
|
17
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
18
|
-
export declare function _setAriaRole(element: Element, role?: string | null): void;
|
|
19
|
-
export declare function _getAriaSortState(directionOrDef: DisplaySortDef | null): AriaSortState;
|
|
20
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
21
|
-
export declare function _getAriaPosInSet(element: Element): number;
|
|
22
|
-
export declare function _getAriaLabel(element: Element): string | null;
|
|
23
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
24
|
-
export declare function _setAriaLabel(element: Element, label?: string | null): void;
|
|
25
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
26
|
-
export declare function _setAriaLabelledBy(element: Element, labelledBy?: string): void;
|
|
27
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
28
|
-
export declare function _setAriaDescribedBy(element: Element, describedby?: string): void;
|
|
29
|
-
export declare function _setAriaLive(element: Element, live?: 'polite' | 'assertive' | 'off' | null): void;
|
|
30
|
-
export declare function _setAriaAtomic(element: Element, atomic: boolean | null): void;
|
|
31
|
-
export declare function _setAriaRelevant(element: Element, relevant: 'additions' | 'additions text' | 'all' | 'removals' | 'text' | null): void;
|
|
32
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
33
|
-
export declare function _setAriaInvalid(element: Element, invalid: boolean): void;
|
|
34
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
35
|
-
export declare function _setAriaLevel(element: Element, level: number): void;
|
|
36
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
37
|
-
export declare function _setAriaDisabled(element: Element, disabled: boolean): void;
|
|
38
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
39
|
-
export declare function _setAriaHidden(element: Element, hidden: boolean): void;
|
|
40
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
41
|
-
export declare function _setAriaActiveDescendant(element: Element, descendantId: string | null): void;
|
|
42
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
43
|
-
export declare function _setAriaExpanded(element: Element, expanded: boolean): void;
|
|
44
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
45
|
-
export declare function _removeAriaExpanded(element: Element): void;
|
|
46
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
47
|
-
export declare function _setAriaSetSize(element: Element, setsize: number): void;
|
|
48
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
49
|
-
export declare function _setAriaPosInSet(element: Element, position: number): void;
|
|
50
|
-
export declare function _setAriaMultiSelectable(element: Element, multiSelectable: boolean): void;
|
|
51
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
52
|
-
export declare function _setAriaRowCount(element: Element, rowCount: number): void;
|
|
53
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
54
|
-
export declare function _setAriaRowIndex(element: Element, rowIndex: number): void;
|
|
55
|
-
export declare function _setAriaRowSpan(element: Element, spanCount: number): void;
|
|
56
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
57
|
-
export declare function _setAriaColCount(element: Element, colCount: number): void;
|
|
58
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
59
|
-
export declare function _setAriaColIndex(element: Element, colIndex: number): void;
|
|
60
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
61
|
-
export declare function _setAriaColSpan(element: Element, colSpan: number): void;
|
|
62
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
63
|
-
export declare function _setAriaSort(element: Element, sort: AriaSortState): void;
|
|
64
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
65
|
-
export declare function _removeAriaSort(element: Element): void;
|
|
66
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
67
|
-
export declare function _setAriaSelected(element: Element, selected?: boolean): void;
|
|
68
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
69
|
-
export declare function _setAriaChecked(element: Element, checked?: boolean): void;
|
|
70
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
71
|
-
export declare function _setAriaControls(controllerElement: Element, controlledId?: string | null): void;
|
|
72
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
73
|
-
export declare function _setAriaControlsAndLabel(controllerElement: Element, controlledElement: Element): void;
|
|
74
|
-
export declare function _setAriaOwns(ownerElement: Element, ownedId?: string | null): void;
|
|
75
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
76
|
-
export declare function _setAriaHasPopup(element: Element, hasPopup: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | boolean): void;
|
|
77
|
-
export declare function _getAriaCheckboxStateName(translate: LocaleTextFunc, state?: boolean): string;
|
|
78
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
79
|
-
export declare function _setAriaOrientation(element: Element, orientation?: 'horizontal' | 'vertical'): void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
2
|
-
export declare function _last<T>(arr: readonly T[]): T;
|
|
3
|
-
export declare function _last<T extends Node>(arr: NodeListOf<T>): T;
|
|
4
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
5
|
-
export declare function _areEqual<T>(a: readonly T[] | null | undefined, b: readonly T[] | null | undefined, comparator?: (a: T, b: T) => boolean): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Returns `prev` when its contents equal `current`; otherwise `current.slice()` (or `[]` if
|
|
8
|
-
* nullish). The same-reference case (`prev === current`) returns a fresh slice so callers never
|
|
9
|
-
* receive the readonly `current` aliased back. Mutating a returned `prev` persists into the next
|
|
10
|
-
* call's `prev`.
|
|
11
|
-
*
|
|
12
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
13
|
-
*/
|
|
14
|
-
export declare function _reuseArrayIfEqual<T>(prev: T[] | null | undefined, current: readonly T[] | null | undefined): T[];
|
|
15
|
-
/**
|
|
16
|
-
* Utility that uses the fastest looping approach to apply a callback to each element of the array
|
|
17
|
-
* https://jsperf.app/for-for-of-for-in-foreach-comparison
|
|
18
|
-
* If callback returns true, exit early.
|
|
19
|
-
*/
|
|
20
|
-
export declare function _forAll<T>(array: T[] | undefined, callback: (value: T) => boolean | void): true | undefined;
|
|
21
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
22
|
-
export declare function _removeFromArray<T>(array: T[], object: T): void;
|
|
23
|
-
/**
|
|
24
|
-
* O(N+M) way to remove M elements from an array of size N. Better than calling _removeFromArray in a loop
|
|
25
|
-
*
|
|
26
|
-
* Note: this implementation removes _any_ instances of the `elementsToRemove`
|
|
27
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
28
|
-
*/
|
|
29
|
-
export declare function _removeAllFromArray<T>(array: T[], elementsToRemove: readonly T[]): void;
|
|
30
|
-
export declare function _moveInArray<T>(array: T[], objectsToMove: T[], toIndex: number): void;
|
|
31
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
32
|
-
export declare function _flatten<T>(arrays: Array<T[]>): T[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
2
|
-
export declare function _isBrowserSafari(): boolean;
|
|
3
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
4
|
-
export declare function _isBrowserFirefox(): boolean;
|
|
5
|
-
export declare function _isMacOsUserAgent(): boolean;
|
|
6
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
7
|
-
export declare function _isIOSUserAgent(): boolean;
|
|
8
|
-
export declare function _getTabIndex(el: HTMLElement | null): string | null;
|
|
9
|
-
export declare function _getMaxDivHeight(): number;
|
|
10
|
-
export declare function _getScrollbarWidth(): number | null;
|
|
11
|
-
export declare function _isInvisibleScrollbar(): boolean;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serialises a Date to a string of format `yyyy-MM-ddTHH:mm:ss`.
|
|
3
|
-
* An alternative separator can be provided to be used instead of hyphens.
|
|
4
|
-
* @param date The date to serialise
|
|
5
|
-
* @param includeTime Whether to include the time in the serialised string
|
|
6
|
-
* @param separator The separator to use between date and time parts (default 'T')
|
|
7
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
8
|
-
*/
|
|
9
|
-
export declare function _serialiseDate(date: Date | null, includeTime?: boolean, separator?: string): string | null;
|
|
10
|
-
/**
|
|
11
|
-
* Helper function to get the date parts of a date. Used in set filter.
|
|
12
|
-
* @param d The date to get the parts from
|
|
13
|
-
* @param includeTime Whether to include the time in the returned array
|
|
14
|
-
* @returns The date parts as an array of strings or null if the date is null or undefined
|
|
15
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
16
|
-
*/
|
|
17
|
-
export declare function _getDateParts(d: Date | null | undefined, includeTime?: boolean): null | string[];
|
|
18
|
-
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
|
|
19
|
-
export declare const MONTHS: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Serialises a Date to a string of format the defined format, does not include time.
|
|
22
|
-
* @param date The date to serialise
|
|
23
|
-
* @param format The string to format the date to, defaults to YYYY-MM-DD
|
|
24
|
-
*/
|
|
25
|
-
export declare function _dateToFormattedString(date: Date, format?: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* Helper function to check if a date is valid. Use isValidDateTime() to check if a date is valid and has time parts.
|
|
28
|
-
*/
|
|
29
|
-
export declare function _isValidDate(value?: string | null, bailIfInvalidTime?: boolean): boolean;
|
|
30
|
-
export declare function _isValidDateTime(value?: string | null): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Parses a date and time from a string. Expected format is ISO-compatible `yyyy-MM-dd` or `yyyy-MM-ddTHH:mm:ssZ`.
|
|
33
|
-
*
|
|
34
|
-
* Because of javascript historical reasons, we need to parse the datetime manually:
|
|
35
|
-
* Per MDN:
|
|
36
|
-
* When the time zone offset is absent, **date-only** forms are interpreted as a UTC time and **date-time** forms are interpreted as a local time.
|
|
37
|
-
* The interpretation as a UTC time is due to a historical spec error that was not consistent with ISO 8601 but could not be changed due to web compatibility.
|
|
38
|
-
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
|
|
39
|
-
*/
|
|
40
|
-
export declare function _parseDateTimeFromString(value?: string | null, bailIfInvalidTime?: boolean, skipValidation?: boolean): Date | null;
|