ag-grid-community 35.3.1 → 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.
Files changed (401) hide show
  1. package/dist/ag-grid-community.js +43141 -41037
  2. package/dist/ag-grid-community.min.js +829 -472
  3. package/dist/ag-grid-community.min.noStyle.js +36 -39
  4. package/dist/ag-grid-community.noStyle.js +41795 -40057
  5. package/dist/package/main.cjs.js +27374 -31941
  6. package/dist/package/main.cjs.min.js +27 -44
  7. package/dist/package/main.esm.min.mjs +27 -44
  8. package/dist/package/main.esm.mjs +30449 -34848
  9. package/dist/package/package.json +3 -2
  10. package/dist/package.json +3 -2
  11. package/dist/types/package.json +3 -2
  12. package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractField.d.ts +1 -6
  13. package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractInputField.d.ts +1 -4
  14. package/dist/types/src/{agStack/widgets → agWidgets}/agAbstractLabel.d.ts +2 -7
  15. package/dist/types/src/{agStack/widgets → agWidgets}/agCheckbox.d.ts +1 -5
  16. package/dist/types/src/{agStack/widgets → agWidgets}/agContentEditableField.d.ts +1 -5
  17. package/dist/types/src/{agStack/widgets → agWidgets}/agFieldParams.d.ts +1 -1
  18. package/dist/types/src/agWidgets/agFieldSet.d.ts +19 -0
  19. package/dist/types/src/{agStack/widgets → agWidgets}/agInputDateField.d.ts +1 -5
  20. package/dist/types/src/{agStack/widgets → agWidgets}/agInputNumberField.d.ts +1 -5
  21. package/dist/types/src/{agStack/widgets → agWidgets}/agInputTextArea.d.ts +1 -5
  22. package/dist/types/src/{agStack/widgets → agWidgets}/agInputTextField.d.ts +1 -5
  23. package/dist/types/src/{agStack/widgets → agWidgets}/agList.d.ts +2 -5
  24. package/dist/types/src/{agStack/widgets → agWidgets}/agListItem.d.ts +2 -7
  25. package/dist/types/src/{agStack/widgets → agWidgets}/agPickerField.d.ts +1 -5
  26. package/dist/types/src/{agStack/widgets → agWidgets}/agPickerFieldParams.d.ts +1 -2
  27. package/dist/types/src/{agStack/widgets → agWidgets}/agRadioButton.d.ts +1 -5
  28. package/dist/types/src/{agStack/widgets → agWidgets}/agSelect.d.ts +1 -5
  29. package/dist/types/src/{agStack/widgets → agWidgets}/agToggleButton.d.ts +1 -5
  30. package/dist/types/src/agWidgets/agWidgetSelectorType.d.ts +2 -0
  31. package/dist/types/src/alignedGrids/alignedGridsService.d.ts +1 -1
  32. package/dist/types/src/api/coreApi.d.ts +1 -0
  33. package/dist/types/src/api/gridApi.d.ts +5 -3
  34. package/dist/types/src/autoGenerateColumns/autoGenerateColumnsModule.d.ts +6 -0
  35. package/dist/types/src/autoGenerateColumns/autoGenerateColumnsService.d.ts +7 -0
  36. package/dist/types/src/columnMove/columnDrag/bodyDropPivotTarget.d.ts +3 -3
  37. package/dist/types/src/columnMove/columnDrag/bodyDropTarget.d.ts +8 -5
  38. package/dist/types/src/columnMove/columnDrag/moveColumnFeature.d.ts +0 -1
  39. package/dist/types/src/columnMove/columnMoveService.d.ts +2 -2
  40. package/dist/types/src/columnMove/columnMoveUtils.d.ts +2 -0
  41. package/dist/types/src/columnMove/internalColumnMoveUtils.d.ts +4 -4
  42. package/dist/types/src/columnResize/columnResizeService.d.ts +2 -3
  43. package/dist/types/src/columnResize/groupResizeFeature.d.ts +1 -3
  44. package/dist/types/src/columnResize/resizeFeature.d.ts +1 -3
  45. package/dist/types/src/columns/baseSingleColService.d.ts +23 -0
  46. package/dist/types/src/columns/buildColumnTree.d.ts +42 -0
  47. package/dist/types/src/columns/calculatedColumnUtils.d.ts +8 -0
  48. package/dist/types/src/columns/colDefUtils.d.ts +9 -0
  49. package/dist/types/src/columns/colsApplyPrevOrder.d.ts +2 -0
  50. package/dist/types/src/columns/columnApi.d.ts +2 -3
  51. package/dist/types/src/columns/columnDefFactory.d.ts +4 -8
  52. package/dist/types/src/columns/columnEventUtils.d.ts +4 -1
  53. package/dist/types/src/columns/columnFlexService.d.ts +1 -1
  54. package/dist/types/src/columns/columnGroups/colWrapperCache.d.ts +16 -0
  55. package/dist/types/src/columns/columnGroups/columnGroupService.d.ts +14 -41
  56. package/dist/types/src/columns/columnGroups/columnGroupState.d.ts +13 -0
  57. package/dist/types/src/columns/columnModel.d.ts +105 -59
  58. package/dist/types/src/columns/columnNameService.d.ts +1 -1
  59. package/dist/types/src/columns/columnStateUtils.d.ts +54 -13
  60. package/dist/types/src/columns/columnUtils.d.ts +20 -25
  61. package/dist/types/src/columns/dataTypeService.d.ts +3 -1
  62. package/dist/types/src/columns/groupInstanceIdCreator.d.ts +1 -2
  63. package/dist/types/src/columns/selectionColService.d.ts +7 -28
  64. package/dist/types/src/columns/visibleColsService.d.ts +51 -25
  65. package/dist/types/src/components/framework/frameworkComponentWrapper.d.ts +1 -1
  66. package/dist/types/src/components/framework/registry.d.ts +2 -3
  67. package/dist/types/src/components/framework/userCompUtils.d.ts +5 -5
  68. package/dist/types/src/components/framework/userComponentFactory.d.ts +1 -1
  69. package/dist/types/src/context/bean.d.ts +1 -1
  70. package/dist/types/src/context/beanStub.d.ts +5 -3
  71. package/dist/types/src/context/context.d.ts +14 -13
  72. package/dist/types/src/context/gridBeanComparator.d.ts +1 -1
  73. package/dist/types/src/csvExport/csvExportModule.d.ts +1 -1
  74. package/dist/types/src/ctrlsService.d.ts +8 -22
  75. package/dist/types/src/dragAndDrop/dragAndDropImageComponent.d.ts +1 -3
  76. package/dist/types/src/dragAndDrop/dragAndDropService.d.ts +2 -4
  77. package/dist/types/src/dragAndDrop/dragModule.d.ts +1 -1
  78. package/dist/types/src/dragAndDrop/dragService.d.ts +1 -1
  79. package/dist/types/src/dragAndDrop/horizontalResizeService.d.ts +2 -0
  80. package/dist/types/src/dragAndDrop/rowDragComp.d.ts +1 -1
  81. package/dist/types/src/dragAndDrop/rowDragTypes.d.ts +1 -2
  82. package/dist/types/src/edit/cellEditors/agAbstractCellEditor.d.ts +2 -2
  83. package/dist/types/src/edit/cellEditors/popupEditorWrapper.d.ts +1 -1
  84. package/dist/types/src/edit/editService.d.ts +2 -0
  85. package/dist/types/src/edit/strategy/fullRowEditStrategy.d.ts +2 -1
  86. package/dist/types/src/edit/strategy/singleCellEditStrategy.d.ts +2 -1
  87. package/dist/types/src/entities/agColumn.d.ts +117 -58
  88. package/dist/types/src/entities/agColumnGroup.d.ts +24 -16
  89. package/dist/types/src/entities/agProvidedColumnGroup.d.ts +20 -19
  90. package/dist/types/src/entities/colDef-showValuesAs.d.ts +228 -0
  91. package/dist/types/src/entities/colDef.d.ts +68 -6
  92. package/dist/types/src/entities/gridOptions.d.ts +93 -8
  93. package/dist/types/src/entities/rowNode.d.ts +3 -3
  94. package/dist/types/src/environment.d.ts +2 -4
  95. package/dist/types/src/eventService.d.ts +1 -1
  96. package/dist/types/src/eventTypes.d.ts +4 -4
  97. package/dist/types/src/events.d.ts +48 -3
  98. package/dist/types/src/export/baseGridSerializingSession.d.ts +4 -2
  99. package/dist/types/src/export/iGridSerializer.d.ts +4 -2
  100. package/dist/types/src/filter/columnFilterService.d.ts +2 -2
  101. package/dist/types/src/filter/columnFilterUtils.d.ts +1 -1
  102. package/dist/types/src/filter/filterButtonComp.d.ts +1 -1
  103. package/dist/types/src/filter/filterComp.d.ts +1 -1
  104. package/dist/types/src/filter/filterDataTypeUtils.d.ts +1 -1
  105. package/dist/types/src/filter/filterLocaleText.d.ts +1 -1
  106. package/dist/types/src/filter/filterManager.d.ts +2 -1
  107. package/dist/types/src/filter/filterWrapperComp.d.ts +1 -1
  108. package/dist/types/src/filter/floating/floatingFilter.d.ts +1 -1
  109. package/dist/types/src/filter/floating/provided/floatingFilterTextInputService.d.ts +2 -2
  110. package/dist/types/src/filter/provided/date/iDateFilter.d.ts +1 -0
  111. package/dist/types/src/filter/provided/providedFilter.d.ts +1 -1
  112. package/dist/types/src/filter/provided/providedFilterUtils.d.ts +1 -1
  113. package/dist/types/src/filter/provided/simpleFilter.d.ts +1 -1
  114. package/dist/types/src/grid.d.ts +11 -12
  115. package/dist/types/src/gridBodyComp/fakeHScrollComp.d.ts +3 -4
  116. package/dist/types/src/gridBodyComp/fakeVScrollComp.d.ts +4 -0
  117. package/dist/types/src/gridBodyComp/gridBodyComp.d.ts +11 -5
  118. package/dist/types/src/gridBodyComp/gridBodyCtrl.d.ts +45 -34
  119. package/dist/types/src/gridBodyComp/gridBodyScrollFeature.d.ts +6 -5
  120. package/dist/types/src/gridBodyComp/rowContainer/rowContainerComp.d.ts +22 -0
  121. package/dist/types/src/gridBodyComp/rowContainer/rowContainerCtrl.d.ts +9 -33
  122. package/dist/types/src/gridBodyComp/scrollVisibleService.d.ts +13 -8
  123. package/dist/types/src/gridBodyComp/viewportSizeFeature.d.ts +7 -2
  124. package/dist/types/src/gridComp/gridCtrl.d.ts +3 -5
  125. package/dist/types/src/gridOptionsDefault.d.ts +1 -0
  126. package/dist/types/src/gridOptionsService.d.ts +1 -1
  127. package/dist/types/src/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.d.ts +1 -1
  128. package/dist/types/src/headerRendering/cells/column/{headerComp.d.ts → agColumnHeader.d.ts} +5 -1
  129. package/dist/types/src/headerRendering/cells/column/headerCellCtrl.d.ts +5 -2
  130. package/dist/types/src/headerRendering/cells/columnGroup/{headerGroupComp.d.ts → agColumnGroupHeader.d.ts} +2 -2
  131. package/dist/types/src/headerRendering/cells/columnGroup/groupStickyLabelFeature.d.ts +1 -0
  132. package/dist/types/src/headerRendering/cells/columnGroup/headerGroupCellCtrl.d.ts +5 -1
  133. package/dist/types/src/headerRendering/cells/cssClassApplier.d.ts +5 -3
  134. package/dist/types/src/headerRendering/cells/floatingFilter/headerFilterCellCtrl.d.ts +3 -1
  135. package/dist/types/src/headerRendering/cells/floatingFilter/iHeaderFilterCellComp.d.ts +1 -1
  136. package/dist/types/src/headerRendering/gridHeaderComp.d.ts +10 -2
  137. package/dist/types/src/headerRendering/gridHeaderCtrl.d.ts +4 -2
  138. package/dist/types/src/headerRendering/headerUtils.d.ts +34 -0
  139. package/dist/types/src/headerRendering/row/headerRowComp.d.ts +9 -0
  140. package/dist/types/src/headerRendering/row/headerRowCtrl.d.ts +4 -4
  141. package/dist/types/src/headerRendering/rowContainer/headerRowContainerCtrl.d.ts +3 -11
  142. package/dist/types/src/headerRendering/rowContainer/headerRowsComp.d.ts +12 -0
  143. package/dist/types/src/interfaces/IRangeService.d.ts +1 -1
  144. package/dist/types/src/interfaces/dateComponent.d.ts +1 -1
  145. package/dist/types/src/interfaces/exportParams.d.ts +11 -5
  146. package/dist/types/src/interfaces/formulas.d.ts +3 -2
  147. package/dist/types/src/interfaces/gridState.d.ts +7 -3
  148. package/dist/types/src/interfaces/iAdvancedFilterCtrl.d.ts +2 -1
  149. package/dist/types/src/interfaces/iAutoColService.d.ts +12 -0
  150. package/dist/types/src/interfaces/iCalculatedColumns.d.ts +61 -0
  151. package/dist/types/src/interfaces/iCellEditor.d.ts +1 -1
  152. package/dist/types/src/interfaces/iCellEditorRenderer.d.ts +1 -1
  153. package/dist/types/src/interfaces/iCellStyleFeature.d.ts +1 -1
  154. package/dist/types/src/interfaces/iColsService.d.ts +36 -42
  155. package/dist/types/src/interfaces/iColumn.d.ts +18 -3
  156. package/dist/types/src/interfaces/iColumnStateUpdateStrategy.d.ts +4 -3
  157. package/dist/types/src/interfaces/iContextMenu.d.ts +1 -1
  158. package/dist/types/src/interfaces/iEditService.d.ts +4 -4
  159. package/dist/types/src/interfaces/iEventService.d.ts +1 -1
  160. package/dist/types/src/interfaces/iFileProcessor.d.ts +9 -0
  161. package/dist/types/src/interfaces/iFilter.d.ts +1 -2
  162. package/dist/types/src/interfaces/iFooterService.d.ts +2 -1
  163. package/dist/types/src/interfaces/iFrameworkOverrides.d.ts +1 -2
  164. package/dist/types/src/interfaces/iGridSection.d.ts +8 -0
  165. package/dist/types/src/interfaces/iGroupHierarchyColService.d.ts +9 -19
  166. package/dist/types/src/interfaces/iHeader.d.ts +2 -2
  167. package/dist/types/src/interfaces/iLoadingCellRenderer.d.ts +1 -1
  168. package/dist/types/src/interfaces/iModule.d.ts +4 -5
  169. package/dist/types/src/interfaces/iMultiFilter.d.ts +1 -1
  170. package/dist/types/src/interfaces/iNewFiltersToolPanel.d.ts +4 -8
  171. package/dist/types/src/interfaces/iPinnedSectionCompHost.d.ts +5 -0
  172. package/dist/types/src/interfaces/iPivotResultColsService.d.ts +27 -7
  173. package/dist/types/src/interfaces/iRichCellEditorParams.d.ts +1 -1
  174. package/dist/types/src/interfaces/iRowNode.d.ts +6 -3
  175. package/dist/types/src/interfaces/iRowNodeStage.d.ts +7 -0
  176. package/dist/types/src/interfaces/iRowStyleFeature.d.ts +1 -1
  177. package/dist/types/src/interfaces/iSelectionService.d.ts +3 -3
  178. package/dist/types/src/interfaces/iSetFilter.d.ts +1 -1
  179. package/dist/types/src/interfaces/iShowRowGroupColsService.d.ts +4 -1
  180. package/dist/types/src/interfaces/iShowValuesAsService.d.ts +48 -0
  181. package/dist/types/src/interfaces/iSort.d.ts +10 -0
  182. package/dist/types/src/interfaces/iSortModelItem.d.ts +1 -1
  183. package/dist/types/src/interfaces/iSortOption.d.ts +10 -1
  184. package/dist/types/src/interfaces/iStatusPanel.d.ts +1 -1
  185. package/dist/types/src/interfaces/iToolPanel.d.ts +1 -1
  186. package/dist/types/src/interfaces/iToolbar.d.ts +1 -1
  187. package/dist/types/src/interfaces/iUserCompDetails.d.ts +1 -2
  188. package/dist/types/src/interfaces/menuItem.d.ts +2 -2
  189. package/dist/types/src/interfaces/rowNumbers.d.ts +6 -4
  190. package/dist/types/src/main-internal.d.ts +54 -118
  191. package/dist/types/src/main.d.ts +34 -35
  192. package/dist/types/src/misc/iconService.d.ts +1 -1
  193. package/dist/types/src/misc/locale/localeService.d.ts +1 -1
  194. package/dist/types/src/misc/state/stateService.d.ts +6 -2
  195. package/dist/types/src/misc/touchService.d.ts +5 -5
  196. package/dist/types/src/modules/moduleRegistry.d.ts +1 -3
  197. package/dist/types/src/pagination/pageSizeSelectorComp.d.ts +4 -1
  198. package/dist/types/src/pagination/pageSummaryComp.d.ts +7 -2
  199. package/dist/types/src/pagination/paginationAutoPageSizeService.d.ts +1 -1
  200. package/dist/types/src/pagination/paginationService.d.ts +5 -1
  201. package/dist/types/src/pagination/paginationUtils.d.ts +1 -1
  202. package/dist/types/src/pinnedColumns/pinnedColumnService.d.ts +2 -3
  203. package/dist/types/src/pinnedRowModel/manualPinnedRowUtils.d.ts +1 -0
  204. package/dist/types/src/publicEventHandlersMap.d.ts +1 -1
  205. package/dist/types/src/rendering/ariaAnnouncementService.d.ts +1 -1
  206. package/dist/types/src/rendering/autoWidthCalculator.d.ts +1 -1
  207. package/dist/types/src/rendering/cell/cellCtrl.d.ts +7 -2
  208. package/dist/types/src/rendering/cell/cellPositionFeature.d.ts +1 -1
  209. package/dist/types/src/rendering/cellRenderers/iCellRenderer.d.ts +1 -1
  210. package/dist/types/src/rendering/features/horizontalPositionUtils.d.ts +21 -0
  211. package/dist/types/src/rendering/features/positionableFeature.d.ts +1 -1
  212. package/dist/types/src/rendering/features/setLeftFeature.d.ts +2 -4
  213. package/dist/types/src/rendering/overlays/fileInputOverlayComponent.d.ts +25 -0
  214. package/dist/types/src/rendering/overlays/fileInputOverlayModule.d.ts +6 -0
  215. package/dist/types/src/rendering/overlays/overlayComponent.d.ts +13 -3
  216. package/dist/types/src/rendering/overlays/overlayWrapperComponent.d.ts +1 -1
  217. package/dist/types/src/rendering/row/fullWidthRowFeature.d.ts +70 -0
  218. package/dist/types/src/rendering/row/iRowModeFeature.d.ts +48 -0
  219. package/dist/types/src/rendering/row/normalRowFeature.d.ts +37 -0
  220. package/dist/types/src/rendering/row/rowAutoHeightService.d.ts +1 -2
  221. package/dist/types/src/rendering/row/rowComp.d.ts +16 -0
  222. package/dist/types/src/rendering/row/rowCtrl.d.ts +75 -66
  223. package/dist/types/src/rendering/rowContainerHeightService.d.ts +2 -0
  224. package/dist/types/src/rendering/rowRenderer.d.ts +6 -5
  225. package/dist/types/src/rendering/spanning/rowSpanCache.d.ts +5 -5
  226. package/dist/types/src/rendering/spanning/rowSpanService.d.ts +15 -19
  227. package/dist/types/src/rendering/spanning/spannedRowCtrl.d.ts +3 -4
  228. package/dist/types/src/rendering/spanning/spannedRowRenderer.d.ts +3 -2
  229. package/dist/types/src/selection/baseSelectionService.d.ts +3 -3
  230. package/dist/types/src/selection/selectionService.d.ts +1 -1
  231. package/dist/types/src/sort/rowNodeSorter.d.ts +5 -12
  232. package/dist/types/src/sort/sortIndicatorComp.d.ts +1 -1
  233. package/dist/types/src/sort/sortOptionUtils.d.ts +9 -0
  234. package/dist/types/src/sort/sortService.d.ts +25 -22
  235. package/dist/types/src/styling/calculatedColumnCss.d.ts +5 -0
  236. package/dist/types/src/testing/testIdUtils.d.ts +3 -3
  237. package/dist/types/src/theming/core/core-css.d.ts +150 -3
  238. package/dist/types/src/theming/createTheme.d.ts +2 -7
  239. package/dist/types/src/theming/parts/button-style/button-styles.d.ts +1 -2
  240. package/dist/types/src/theming/parts/checkbox-style/checkbox-styles.d.ts +1 -2
  241. package/dist/types/src/theming/parts/color-scheme/color-schemes.d.ts +88 -92
  242. package/dist/types/src/theming/parts/column-drop-style/column-drop-styles.d.ts +2 -2
  243. package/dist/types/src/theming/parts/icon-set/alpine/icon-set-alpine.d.ts +1 -1
  244. package/dist/types/src/theming/parts/icon-set/balham/icon-set-balham.d.ts +1 -1
  245. package/dist/types/src/theming/parts/icon-set/material/icon-set-material.d.ts +1 -1
  246. package/dist/types/src/theming/parts/icon-set/overrides/icon-overrides.d.ts +2 -2
  247. package/dist/types/src/theming/parts/icon-set/quartz/icon-set-quartz.d.ts +1 -1
  248. package/dist/types/src/theming/parts/input-style/input-styles.d.ts +5 -2
  249. package/dist/types/src/theming/parts/tab-style/tab-styles.d.ts +1 -2
  250. package/dist/types/src/theming/parts/theme/themes.d.ts +3 -7
  251. package/dist/types/src/tooltip/tooltipComponent.d.ts +2 -2
  252. package/dist/types/src/tooltip/tooltipFeature.d.ts +1 -2
  253. package/dist/types/src/tooltip/tooltipService.d.ts +2 -2
  254. package/dist/types/src/tooltip/tooltipStateManager.d.ts +2 -2
  255. package/dist/types/src/utils/element.d.ts +1 -1
  256. package/dist/types/src/utils/gridFocus.d.ts +1 -0
  257. package/dist/types/src/utils/icon.d.ts +1 -1
  258. package/dist/types/src/utils/mergeDeep.d.ts +10 -2
  259. package/dist/types/src/utils/number.d.ts +10 -1
  260. package/dist/types/src/utils/value.d.ts +7 -0
  261. package/dist/types/src/validation/errorMessages/errorText.d.ts +20 -75
  262. package/dist/types/src/validation/rules/iconValidations.d.ts +1 -1
  263. package/dist/types/src/validation/validationModule.d.ts +24 -0
  264. package/dist/types/src/validation/validationService.d.ts +1 -1
  265. package/dist/types/src/valueService/cellApi.d.ts +9 -4
  266. package/dist/types/src/valueService/valueService.d.ts +45 -13
  267. package/dist/types/src/vanillaFrameworkOverrides.d.ts +1 -1
  268. package/dist/types/src/version.d.ts +1 -1
  269. package/dist/types/src/widgets/component.d.ts +4 -4
  270. package/dist/types/src/widgets/gridWidgetTypes.d.ts +12 -9
  271. package/dist/types/src/widgets/managedFocusFeature.d.ts +2 -2
  272. package/dist/types/src/widgets/popupService.d.ts +2 -2
  273. package/dist/types/src/widgets/tabGuard.d.ts +2 -3
  274. package/dist/types/src/widgets/tabGuardComp.d.ts +2 -2
  275. package/dist/types/src/widgets/touchListener.d.ts +3 -2
  276. package/package.json +3 -2
  277. package/styles/_css-content.scss +1506 -756
  278. package/styles/_icon-font-codes.scss +3 -0
  279. package/styles/ag-grid-no-native-widgets.css +713 -323
  280. package/styles/ag-grid-no-native-widgets.min.css +8 -5
  281. package/styles/ag-grid.css +713 -323
  282. package/styles/ag-grid.min.css +8 -5
  283. package/styles/ag-theme-alpine-no-font.css +8 -14
  284. package/styles/ag-theme-alpine-no-font.min.css +2 -2
  285. package/styles/ag-theme-alpine.css +9 -15
  286. package/styles/ag-theme-alpine.min.css +2 -2
  287. package/styles/ag-theme-balham-no-font.css +4 -3
  288. package/styles/ag-theme-balham-no-font.min.css +2 -2
  289. package/styles/ag-theme-balham.css +5 -4
  290. package/styles/ag-theme-balham.min.css +2 -2
  291. package/styles/ag-theme-material-no-font.css +10 -11
  292. package/styles/ag-theme-material-no-font.min.css +2 -2
  293. package/styles/ag-theme-material.css +11 -12
  294. package/styles/ag-theme-material.min.css +2 -2
  295. package/styles/ag-theme-quartz-no-font.css +13 -22
  296. package/styles/ag-theme-quartz-no-font.min.css +2 -2
  297. package/styles/ag-theme-quartz.css +14 -23
  298. package/styles/ag-theme-quartz.min.css +3 -3
  299. package/styles/agGridAlpineFont.css +1 -1
  300. package/styles/agGridAlpineFont.min.css +1 -1
  301. package/styles/agGridBalhamFont.css +1 -1
  302. package/styles/agGridBalhamFont.min.css +1 -1
  303. package/styles/agGridClassicFont.css +1 -1
  304. package/styles/agGridClassicFont.min.css +1 -1
  305. package/styles/agGridMaterialFont.css +1 -1
  306. package/styles/agGridMaterialFont.min.css +1 -1
  307. package/styles/agGridQuartzFont.css +1 -1
  308. package/styles/agGridQuartzFont.min.css +1 -1
  309. package/dist/types/src/agStack/constants/direction.d.ts +0 -8
  310. package/dist/types/src/agStack/constants/keyCode.d.ts +0 -25
  311. package/dist/types/src/agStack/core/agBeanStub.d.ts +0 -87
  312. package/dist/types/src/agStack/core/agComponentStub.d.ts +0 -59
  313. package/dist/types/src/agStack/core/agContext.d.ts +0 -54
  314. package/dist/types/src/agStack/core/baseAriaAnnouncementService.d.ts +0 -21
  315. package/dist/types/src/agStack/core/baseDragAndDropService.d.ts +0 -54
  316. package/dist/types/src/agStack/core/baseDragService.d.ts +0 -39
  317. package/dist/types/src/agStack/core/baseEnvironment.d.ts +0 -58
  318. package/dist/types/src/agStack/core/baseRegistry.d.ts +0 -15
  319. package/dist/types/src/agStack/events/baseEventService.d.ts +0 -18
  320. package/dist/types/src/agStack/events/localEventService.d.ts +0 -27
  321. package/dist/types/src/agStack/events/pointerCapture.d.ts +0 -7
  322. package/dist/types/src/agStack/focus/agManagedFocusFeature.d.ts +0 -28
  323. package/dist/types/src/agStack/focus/agTabGuardComp.d.ts +0 -16
  324. package/dist/types/src/agStack/focus/agTabGuardFeature.d.ts +0 -55
  325. package/dist/types/src/agStack/focus/tabGuardCtrl.d.ts +0 -69
  326. package/dist/types/src/agStack/interfaces/agBaseBean.d.ts +0 -12
  327. package/dist/types/src/agStack/interfaces/agBean.d.ts +0 -35
  328. package/dist/types/src/agStack/interfaces/agComponent.d.ts +0 -54
  329. package/dist/types/src/agStack/interfaces/agCoreBean.d.ts +0 -23
  330. package/dist/types/src/agStack/interfaces/agCoreBeanCollection.d.ts +0 -39
  331. package/dist/types/src/agStack/interfaces/agEvent.d.ts +0 -4
  332. package/dist/types/src/agStack/interfaces/agFrameworkOverrides.d.ts +0 -21
  333. package/dist/types/src/agStack/interfaces/baseEvents.d.ts +0 -50
  334. package/dist/types/src/agStack/interfaces/baseProperties.d.ts +0 -25
  335. package/dist/types/src/agStack/interfaces/iAfterGuiAttachedParams.d.ts +0 -12
  336. package/dist/types/src/agStack/interfaces/iAriaAnnouncementService.d.ts +0 -5
  337. package/dist/types/src/agStack/interfaces/iComponent.d.ts +0 -10
  338. package/dist/types/src/agStack/interfaces/iContext.d.ts +0 -16
  339. package/dist/types/src/agStack/interfaces/iDrag.d.ts +0 -30
  340. package/dist/types/src/agStack/interfaces/iDragAndDrop.d.ts +0 -99
  341. package/dist/types/src/agStack/interfaces/iEnvironment.d.ts +0 -6
  342. package/dist/types/src/agStack/interfaces/iEvent.d.ts +0 -20
  343. package/dist/types/src/agStack/interfaces/iEventEmitter.d.ts +0 -14
  344. package/dist/types/src/agStack/interfaces/iIcon.d.ts +0 -2
  345. package/dist/types/src/agStack/interfaces/iIconService.d.ts +0 -5
  346. package/dist/types/src/agStack/interfaces/iLocaleService.d.ts +0 -7
  347. package/dist/types/src/agStack/interfaces/iPopup.d.ts +0 -63
  348. package/dist/types/src/agStack/interfaces/iPopupComponent.d.ts +0 -11
  349. package/dist/types/src/agStack/interfaces/iPopupService.d.ts +0 -19
  350. package/dist/types/src/agStack/interfaces/iProperties.d.ts +0 -42
  351. package/dist/types/src/agStack/interfaces/iRegistry.d.ts +0 -5
  352. package/dist/types/src/agStack/interfaces/iTooltip.d.ts +0 -20
  353. package/dist/types/src/agStack/popup/agPopupComponent.d.ts +0 -13
  354. package/dist/types/src/agStack/popup/basePopupService.d.ts +0 -60
  355. package/dist/types/src/agStack/popup/popupPositionUtils.d.ts +0 -71
  356. package/dist/types/src/agStack/rendering/agPositionableFeature.d.ts +0 -101
  357. package/dist/types/src/agStack/rendering/autoScrollService.d.ts +0 -38
  358. package/dist/types/src/agStack/rendering/cssClassManager.d.ts +0 -7
  359. package/dist/types/src/agStack/theming/inject.d.ts +0 -26
  360. package/dist/types/src/agStack/theming/part.d.ts +0 -9
  361. package/dist/types/src/agStack/theming/partImpl.d.ts +0 -56
  362. package/dist/types/src/agStack/theming/shared/shared-css.d.ts +0 -282
  363. package/dist/types/src/agStack/theming/theme.d.ts +0 -23
  364. package/dist/types/src/agStack/theming/themeImpl.d.ts +0 -46
  365. package/dist/types/src/agStack/theming/themeLogger.d.ts +0 -24
  366. package/dist/types/src/agStack/theming/themeTypeUtils.d.ts +0 -18
  367. package/dist/types/src/agStack/theming/themeTypes.d.ts +0 -209
  368. package/dist/types/src/agStack/theming/themeUtils.d.ts +0 -13
  369. package/dist/types/src/agStack/tooltip/agHighlightTooltipFeature.d.ts +0 -24
  370. package/dist/types/src/agStack/tooltip/agTooltipComponent.d.ts +0 -12
  371. package/dist/types/src/agStack/tooltip/agTooltipFeature.d.ts +0 -31
  372. package/dist/types/src/agStack/tooltip/baseTooltipStateManager.d.ts +0 -81
  373. package/dist/types/src/agStack/utils/aria.d.ts +0 -79
  374. package/dist/types/src/agStack/utils/array.d.ts +0 -32
  375. package/dist/types/src/agStack/utils/bigInt.d.ts +0 -2
  376. package/dist/types/src/agStack/utils/browser.d.ts +0 -11
  377. package/dist/types/src/agStack/utils/date.d.ts +0 -40
  378. package/dist/types/src/agStack/utils/document.d.ts +0 -15
  379. package/dist/types/src/agStack/utils/dom.d.ts +0 -141
  380. package/dist/types/src/agStack/utils/download.d.ts +0 -2
  381. package/dist/types/src/agStack/utils/event.d.ts +0 -34
  382. package/dist/types/src/agStack/utils/focus.d.ts +0 -12
  383. package/dist/types/src/agStack/utils/function.d.ts +0 -37
  384. package/dist/types/src/agStack/utils/fuzzyMatch.d.ts +0 -22
  385. package/dist/types/src/agStack/utils/generic.d.ts +0 -18
  386. package/dist/types/src/agStack/utils/keyboard.d.ts +0 -2
  387. package/dist/types/src/agStack/utils/locale.d.ts +0 -17
  388. package/dist/types/src/agStack/utils/promise.d.ts +0 -16
  389. package/dist/types/src/agStack/utils/string.d.ts +0 -17
  390. package/dist/types/src/agStack/utils/value.d.ts +0 -6
  391. package/dist/types/src/agStack/widgets/agWidgetSelectorType.d.ts +0 -2
  392. package/dist/types/src/columns/baseColsService.d.ts +0 -52
  393. package/dist/types/src/columns/columnFactoryUtils.d.ts +0 -28
  394. package/dist/types/src/columns/columnGroups/columnGroupUtils.d.ts +0 -3
  395. package/dist/types/src/columns/columnKeyCreator.d.ts +0 -9
  396. package/dist/types/src/gridBodyComp/scrollbarVisibilityHelper.d.ts +0 -2
  397. package/dist/types/src/headerRendering/rowContainer/headerRowContainerComp.d.ts +0 -15
  398. package/dist/types/src/interfaces/iColumnCollectionService.d.ts +0 -15
  399. package/dist/types/src/theming/parts/batch-edit/batch-edit-styles.d.ts +0 -22
  400. package/dist/types/src/theming/parts/formula-style/formula-styles.d.ts +0 -89
  401. package/dist/types/src/theming/parts/notes/note-styles.d.ts +0 -37
@@ -1,60 +0,0 @@
1
- import { Direction } from '../constants/direction';
2
- import { AgBeanStub } from '../core/agBeanStub';
3
- import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection';
4
- import type { BaseEvents } from '../interfaces/baseEvents';
5
- import type { BaseProperties } from '../interfaces/baseProperties';
6
- import type { AddPopupParams, AddPopupResult, AgComponentPopupPositionParams, AgMenuPopupPositionParams, AgMousePopupPositionParams, AgPopupPositionParams, PopupEventParams } from '../interfaces/iPopup';
7
- import type { IPopupService } from '../interfaces/iPopupService';
8
- import type { IPropertiesService } from '../interfaces/iProperties';
9
- import { AgPromise } from '../utils/promise';
10
- interface AgPopup {
11
- element: HTMLElement;
12
- wrapper: HTMLElement;
13
- hideFunc: (params?: PopupEventParams) => void;
14
- isAnchored: boolean;
15
- instanceId: number;
16
- alignedToElement?: HTMLElement;
17
- stopAnchoringPromise?: AgPromise<() => void>;
18
- }
19
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
20
- export declare abstract class BasePopupService<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TPopupPositionParams> extends AgBeanStub<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService> implements IPopupService<TPopupPositionParams> {
21
- beanName: "popupSvc";
22
- protected popupList: AgPopup[];
23
- postConstruct(): void;
24
- getPopupParent(): HTMLElement;
25
- protected abstract getDefaultPopupParent(): HTMLElement;
26
- positionPopupUnderMouseEvent(params: AgMousePopupPositionParams<TPopupPositionParams>): void;
27
- private calculatePointerAlign;
28
- positionPopupByComponent(params: AgComponentPopupPositionParams<TPopupPositionParams>): void;
29
- positionPopupForMenu(params: AgMenuPopupPositionParams<TPopupPositionParams>): void;
30
- private shouldRenderUnderOrAbove;
31
- protected setAlignedStyles(ePopup: HTMLElement, positioned: 'right' | 'left' | 'over' | 'above' | 'under' | null): void;
32
- protected setAlignedTo(eventSource: HTMLElement, ePopup: HTMLElement): void;
33
- abstract callPostProcessPopup(params: TPopupPositionParams | undefined, type: string, ePopup: HTMLElement, eventSource?: HTMLElement | null, mouseEvent?: MouseEvent | Touch | null): void;
34
- positionPopup(params: AgPopupPositionParams<TPopupPositionParams>): void;
35
- getParentRect(): {
36
- top: number;
37
- left: number;
38
- right: number;
39
- bottom: number;
40
- };
41
- protected keepXYWithinBounds(ePopup: HTMLElement, position: number, direction: Direction): number;
42
- addPopup<TContainerType extends string>(params: AddPopupParams<TContainerType>): AddPopupResult;
43
- private initialisePopupPosition;
44
- private createPopupWrapper;
45
- protected abstract isStopPropagation(event: Event): boolean;
46
- private addEventListenersToPopup;
47
- private addPopupToPopupList;
48
- private getPopupIndex;
49
- setPopupPositionRelatedToElement(popupEl: HTMLElement, relativeElement?: HTMLElement | null): AgPromise<() => void> | undefined;
50
- private removePopupFromPopupList;
51
- private keepPopupPositionedRelativeTo;
52
- private isEventFromCurrentPopup;
53
- isElementWithinCustomPopup(el: HTMLElement): boolean;
54
- private getWrapper;
55
- private setAlwaysOnTop;
56
- /** @returns true if moved */
57
- bringPopupToFront(ePopup: HTMLElement): void;
58
- private handleThemeChange;
59
- }
60
- export {};
@@ -1,71 +0,0 @@
1
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
2
- export type Anchor = 'tl' | 'tc' | 'tr' | 'l' | 'c' | 'r' | 'bl' | 'bc' | 'br';
3
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
4
- export type Alignment = `${Anchor}-${Anchor}`;
5
- interface FindBestPlacementOptions {
6
- gap?: number;
7
- enableRtl?: boolean;
8
- mirrorPlacementsInRtl?: boolean;
9
- }
10
- interface Rect {
11
- top: number;
12
- left: number;
13
- right: number;
14
- bottom: number;
15
- }
16
- interface Size {
17
- width: number;
18
- height: number;
19
- }
20
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
21
- export declare function getRectSize(rect: Pick<Rect, 'top' | 'left' | 'right' | 'bottom'>): Size;
22
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
23
- export declare function fitsWithinBounds(position: {
24
- x: number;
25
- y: number;
26
- }, targetSize: Size, boundsSize: Size): boolean;
27
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
28
- export declare function toRelativeRect(rect: {
29
- top: number;
30
- left: number;
31
- right: number;
32
- bottom: number;
33
- }, parentRect: {
34
- top: number;
35
- left: number;
36
- }): Rect;
37
- /**
38
- * @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
39
- *
40
- * Compute the top-left position for a target element so that its anchor point
41
- * aligns with the reference element's anchor point.
42
- *
43
- * @param referenceRect Bounding rect of the reference element (absolute coordinates)
44
- * @param targetSize Width and height of the target element
45
- * @param alignment `'{targetAnchor}-{referenceAnchor}'` e.g. `'tl-tr'`
46
- * @param gap Pixel gap applied directionally away from the reference
47
- */
48
- export declare function computeAlignedPosition(referenceRect: Rect, targetSize: Size, alignment: Alignment, gap?: number): {
49
- x: number;
50
- y: number;
51
- };
52
- /**
53
- * @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
54
- *
55
- * Try a list of alignments in order, returning the position of the first one
56
- * that doesn't overlap the reference rect after bounds clamping.
57
- *
58
- * @param referenceRect Bounding rect of the reference element (relative to parent)
59
- * @param targetSize Width and height of the target element
60
- * @param parentSize Width and height of the bounding parent
61
- * @param placements Alignments to try in preference order
62
- * @param gap Pixel gap applied directionally away from the reference
63
- * @returns The position of the best placement, or the first placement as fallback
64
- */
65
- export declare function findBestPlacement(referenceRect: Rect, targetSize: Size, parentSize: Size, placements: Alignment[], gapOrOptions?: number | FindBestPlacementOptions): {
66
- x: number;
67
- y: number;
68
- };
69
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
70
- export declare function getEffectivePlacements(placements: Alignment[], enableRtl?: boolean, mirrorPlacementsInRtl?: boolean): Alignment[];
71
- export {};
@@ -1,101 +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 { IPopupService } from '../interfaces/iPopupService';
6
- import type { IPropertiesService } from '../interfaces/iProperties';
7
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
8
- export interface PositionableOptions {
9
- popup?: boolean;
10
- minWidth?: number | null;
11
- width?: number | string | null;
12
- minHeight?: number | null;
13
- height?: number | string | null;
14
- centered?: boolean | null;
15
- calculateTopBuffer?: () => number;
16
- /**
17
- * Used for when a popup needs to be resized by an element within itself
18
- * In that case, the feature will configured as `popup=false` but the offsetParent
19
- * needs to be the popupParent.
20
- */
21
- forcePopupParentAsOffsetParent?: boolean;
22
- x?: number | null;
23
- y?: number | null;
24
- }
25
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
26
- export type ResizableSides = 'topLeft' | 'top' | 'topRight' | 'right' | 'bottomRight' | 'bottom' | 'bottomLeft' | 'left';
27
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
28
- export type ResizableStructure = {
29
- [key in ResizableSides]?: boolean;
30
- };
31
- type PositionableFeatureEvent = 'resize';
32
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
33
- export declare class AgPositionableFeature<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>> extends AgBeanStub<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService, PositionableFeatureEvent> {
34
- private readonly element;
35
- protected popupSvc?: IPopupService<any>;
36
- private dragSvc?;
37
- wireBeans(beans: TBeanCollection): void;
38
- private dragStartPosition;
39
- private readonly position;
40
- private readonly lastSize;
41
- private resizerMap;
42
- private minWidth;
43
- private minHeight?;
44
- private positioned;
45
- private resizersAdded;
46
- private readonly config;
47
- private readonly resizeListeners;
48
- private moveElementDragListener;
49
- private offsetParent;
50
- private boundaryEl;
51
- isResizing: boolean;
52
- private isMoving;
53
- private resizable;
54
- private movable;
55
- private currentResizer;
56
- private resizeObserverSubscriber;
57
- constructor(element: HTMLElement, config?: PositionableOptions);
58
- center(postProcessCallback?: () => void): void;
59
- initialisePosition(postProcessCallback?: () => void): void;
60
- isPositioned(): boolean;
61
- getPosition(): {
62
- x: number;
63
- y: number;
64
- };
65
- setMovable(movable: boolean, moveElement: HTMLElement): void;
66
- setResizable(resizable: boolean | ResizableStructure): void;
67
- removeSizeFromEl(): void;
68
- restoreLastSize(): void;
69
- getHeight(): number | undefined;
70
- setHeight(height: number | string): void;
71
- private getAvailableHeight;
72
- getWidth(): number | undefined;
73
- setWidth(width: number | string): void;
74
- offsetElement(x?: number, y?: number, postProcessCallback?: () => void): void;
75
- constrainSizeToAvailableHeight(constrain: boolean): void;
76
- private setPosition;
77
- private updateDragStartPosition;
78
- private calculateMouseMovement;
79
- private shouldSkipX;
80
- private shouldSkipY;
81
- private createResizeMap;
82
- private addResizers;
83
- private removeResizers;
84
- private getResizerElement;
85
- private onResizeStart;
86
- private getSiblings;
87
- private getMinSizeOfSiblings;
88
- private applySizeToSiblings;
89
- isResizable(): boolean;
90
- private onResize;
91
- private onResizeEnd;
92
- private refreshSize;
93
- private onMoveStart;
94
- private onMove;
95
- private onMoveEnd;
96
- private setOffsetParent;
97
- private findBoundaryElement;
98
- private clearResizeListeners;
99
- destroy(): void;
100
- }
101
- export {};
@@ -1,38 +0,0 @@
1
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
2
- export declare class AutoScrollService {
3
- private tickingInterval;
4
- private readonly scrollHorizontally;
5
- private readonly scrollVertically;
6
- private tickLeft;
7
- private tickRight;
8
- private tickUp;
9
- private tickDown;
10
- private readonly scrollContainer;
11
- private readonly scrollByTick;
12
- private readonly getVerticalPosition;
13
- private readonly setVerticalPosition;
14
- private readonly getHorizontalPosition;
15
- private readonly setHorizontalPosition;
16
- private readonly shouldSkipVerticalScroll;
17
- private readonly shouldSkipHorizontalScroll;
18
- private readonly onScrollCallback;
19
- private tickCount;
20
- /** True while auto-scrolling */
21
- get scrolling(): boolean;
22
- constructor(params: {
23
- scrollContainer: HTMLElement;
24
- scrollAxis: 'x' | 'y' | 'xy';
25
- scrollByTick?: number;
26
- getVerticalPosition?: () => number;
27
- setVerticalPosition?: (position: number) => void;
28
- getHorizontalPosition?: () => number;
29
- setHorizontalPosition?: (position: number) => void;
30
- shouldSkipVerticalScroll?: () => boolean;
31
- shouldSkipHorizontalScroll?: () => boolean;
32
- onScrollCallback?: () => void;
33
- });
34
- check(mouseEvent: MouseEvent | Touch, forceSkipVerticalScroll?: boolean): void;
35
- private ensureTickingStarted;
36
- private doTick;
37
- ensureCleared(): void;
38
- }
@@ -1,7 +0,0 @@
1
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
2
- export declare class CssClassManager {
3
- private readonly getGui;
4
- private cssClassStates;
5
- constructor(getGui: () => HTMLElement | undefined | null);
6
- toggleCss(className: string, addOrRemove: boolean): void;
7
- }
@@ -1,26 +0,0 @@
1
- import type { IEnvironment } from '../interfaces/iEnvironment';
2
- export declare const IS_SSR: boolean;
3
- /** For testing, if true, only Vanilla examples will work and they will use legacy themes. */
4
- export declare const FORCE_LEGACY_THEMES = false;
5
- type InjectedStyle = {
6
- rawCss: string;
7
- injectedCss: string;
8
- el: HTMLStyleElement;
9
- priority: number;
10
- isParams: boolean;
11
- };
12
- export declare const _injectGlobalCSS: (rawCss: string, styleContainer: HTMLElement, debugId: string, layer: string | undefined, priority: number, nonce: string | undefined, isParams?: boolean) => void;
13
- export declare const _injectCoreAndModuleCSS: (styleContainer: HTMLElement, layer: string | undefined, nonce: string | undefined, moduleCss: Map<string, string[]> | undefined) => void;
14
- export declare const _useParamsCss: (environment: IEnvironment, paramsCss: string | null, paramsDebugId: string | null, styleContainer: HTMLElement, layer: string | undefined, nonce: string | undefined) => void;
15
- export declare const _unregisterInstanceUsingThemingAPI: (environment: IEnvironment) => void;
16
- type InjectedGridCssState = {
17
- styleContainer: HTMLElement;
18
- paramsCss: string | null;
19
- };
20
- type InjectionState = {
21
- map: WeakMap<HTMLElement, InjectedStyle[]>;
22
- grids: Map<IEnvironment, InjectedGridCssState>;
23
- paramsId: number;
24
- };
25
- export declare const getInjectionState: () => InjectionState;
26
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * A collection of CSS styles and default parameter values that can be added to
3
- * a theme. Parts are created with the createPart helper function.
4
- */
5
- export type Part<TParams = unknown> = {
6
- readonly feature?: string;
7
- readonly modeParams: Record<string, TParams>;
8
- readonly css?: string | (() => string);
9
- };
@@ -1,56 +0,0 @@
1
- import type { Part } from './part';
2
- import type { Feature, WithParamTypes } from './themeTypes';
3
- type AnyString = string & {};
4
- type ExpandTypeKeys<T> = T extends infer O ? {
5
- [K in keyof O]: O[K];
6
- } : never;
7
- type CreatePartArgs<T> = {
8
- /**
9
- * A string feature, e.g. 'iconSet'. Adding a part to a theme will remove
10
- * any existing part with the same feature.
11
- */
12
- feature?: Feature | AnyString;
13
- /**
14
- * Default parameters for the part.
15
- */
16
- params?: WithParamTypes<T>;
17
- /**
18
- * Parameters for different theme modes, e.g. 'dark' or 'light'. Setting
19
- * `modeParams: {myMode: {myColor: 'red'}}` on a theme part is the equivalent
20
- * of `theme.withParams({myColor: 'red'}, 'myMode')`.
21
- */
22
- modeParams?: Record<string, WithParamTypes<T>>;
23
- /**
24
- * CSS styles associated with this part. The CSS will be injected into the
25
- * page when the theme is used by a grid.
26
- *
27
- * The grid uses CSS nested to wrap this CSS in a selector that ensures it
28
- * only applies to grids that are using a theme containing this part.
29
- */
30
- css?: string | (() => string);
31
- /**
32
- * URLs of CSS files to import before the part's CSS.
33
- */
34
- cssImports?: string[];
35
- };
36
- /**
37
- * Create a new empty part.
38
- *
39
- * @param feature an The part feature, e.g. 'iconSet'. Adding a part to a theme will remove any existing part with the same feature.
40
- * @param variant an optional identifier for debugging, if omitted one will be generated
41
- */
42
- export declare const createPart: <T = unknown>(args: CreatePartArgs<T>) => Part<ExpandTypeKeys<WithParamTypes<T>>>;
43
- export declare const defaultModeName = "$default";
44
- export declare class PartImpl implements Part {
45
- feature?: string;
46
- modeParams: Record<string, Record<string, unknown>>;
47
- css?: string | (() => string);
48
- cssImports?: string[];
49
- _inject?: {
50
- css: string;
51
- class: string;
52
- } | false;
53
- constructor({ feature, params, modeParams, css, cssImports }: CreatePartArgs<unknown>);
54
- use(styleContainer: HTMLElement | undefined, layer: string | undefined, nonce: string | undefined): string | false;
55
- }
56
- export {};
@@ -1,282 +0,0 @@
1
- import type { BorderValue, ColorSchemeValue, ColorValue, FontFamilyValue, FontWeightValue, LengthValue, ScaleValue, ShadowValue } from '../themeTypes';
2
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
3
- export interface SharedThemeParams {
4
- /**
5
- * The 'brand color' for the grid, used wherever a non-neutral color is required. Selections, focus outlines and checkboxes use the accent color by default.
6
- */
7
- accentColor: ColorValue;
8
- /**
9
- * Background color of the grid. Many UI elements are semi-transparent, so their color blends with the background color.
10
- */
11
- backgroundColor: ColorValue;
12
- /**
13
- * Default color for borders.
14
- */
15
- borderColor: ColorValue;
16
- /**
17
- * Default width for borders.
18
- */
19
- borderWidth: LengthValue;
20
- /**
21
- * Default corner radius for many UI elements such as menus, dialogs and form widgets.
22
- */
23
- borderRadius: LengthValue;
24
- /**
25
- * The CSS color-scheme to apply to the grid, which affects the default appearance of browser scrollbars form inputs unless these have been styled with CSS.
26
- */
27
- browserColorScheme: ColorSchemeValue;
28
- /**
29
- * Default shadow for elements that float above the grid and are intended to appear elevated byt still attached e.g. dropdowns and cell editors
30
- */
31
- cardShadow: ShadowValue;
32
- /**
33
- * Background color for non-data areas of the grid. Headers, tool panels and menus use this color by default.
34
- */
35
- chromeBackgroundColor: ColorValue;
36
- /**
37
- * Sets the default value for `cellFontSize` and is involved in the default calculation of `listItemHeight`
38
- */
39
- dataFontSize: LengthValue;
40
- /**
41
- * Border color popup dialogs such as the integrated charts panel and the advanced filter builder.
42
- */
43
- dialogBorder: BorderValue;
44
- /**
45
- * Shadow for popup dialogs such as the integrated charts panel and the advanced filter builder.
46
- */
47
- dialogShadow: ShadowValue;
48
- /**
49
- * Background color of the drag and drop image component element when dragging columns or rows
50
- */
51
- dragAndDropImageBackgroundColor: ColorValue;
52
- /**
53
- * Border color of the drag and drop image component element when dragging columns or rows
54
- */
55
- dragAndDropImageBorder: BorderValue;
56
- /**
57
- * Border color of the drag and drop image component element when dropping is not allowed
58
- */
59
- dragAndDropImageNotAllowedBorder: BorderValue;
60
- /**
61
- * Shadow for the drag and drop image component element when dragging columns or rows
62
- */
63
- dragAndDropImageShadow: ShadowValue;
64
- /**
65
- * Default shadow for dropdown menus
66
- */
67
- dropdownShadow: ShadowValue;
68
- /**
69
- * Shadow around UI controls that have focus e.g. text inputs and buttons. The value must a valid CSS box-shadow.
70
- */
71
- focusShadow: ShadowValue;
72
- /**
73
- * Shadow around UI controls that have focus and contain validation errors e.g. text inputs, text-areas. The value must a valid CSS box-shadow.
74
- */
75
- focusErrorShadow: ShadowValue;
76
- /**
77
- * Default font family for all text. Can be overridden by more specific parameters like `headerFontFamily`.
78
- */
79
- fontFamily: FontFamilyValue;
80
- /**
81
- * Default font size for text throughout the grid UI
82
- */
83
- fontSize: LengthValue;
84
- /**
85
- * Default font weight for text throughout the grid UI
86
- */
87
- fontWeight: FontWeightValue;
88
- /**
89
- * Default color for neutral UI elements. Most text, borders and backgrounds are defined as semi-transparent versions of this color, resulting in a blend between the background and foreground colours.
90
- */
91
- foregroundColor: ColorValue;
92
- /**
93
- * Background color for header and header-like components
94
- */
95
- headerBackgroundColor: ColorValue;
96
- /**
97
- * Font family of text in the header and header-like components
98
- */
99
- headerFontFamily: FontFamilyValue;
100
- /**
101
- * Size of text in the header and header-like components
102
- */
103
- headerFontSize: LengthValue;
104
- /**
105
- * Font weight of text in the header and header-like components
106
- */
107
- headerFontWeight: FontWeightValue;
108
- /**
109
- * Height of header and header-like components. NOTE: by default this value is calculated to leave enough room for text, icons and padding. Most applications should leave it as is and use headerVerticalPaddingScale to change padding.
110
- */
111
- headerHeight: LengthValue;
112
- /**
113
- * Color of text in the header and header-like components
114
- */
115
- headerTextColor: ColorValue;
116
- /**
117
- * Multiply the header vertical padding by a number, e.g. 1.5 to increase by 50%
118
- */
119
- headerVerticalPaddingScale: ScaleValue;
120
- /**
121
- * Color for icons, or `inherit` to take on the text color of the containing component
122
- */
123
- iconColor: ColorValue;
124
- /**
125
- * The size of square icons and icon-buttons
126
- */
127
- iconSize: LengthValue;
128
- /**
129
- * The color for inputs and UI controls in an invalid state.
130
- */
131
- invalidColor: ColorValue;
132
- /**
133
- * Height of items in scrolling lists e.g. dropdown select inputs and column menu set filters.
134
- */
135
- listItemHeight: LengthValue;
136
- /**
137
- * Background color for menus e.g. column menu and right-click context menu
138
- */
139
- menuBackgroundColor: ColorValue;
140
- /**
141
- * Border around menus e.g. column menu and right-click context menu
142
- */
143
- menuBorder: BorderValue;
144
- /**
145
- * Color of the dividing line between sections of menus e.g. column menu and right-click context menu
146
- */
147
- menuSeparatorColor: ColorValue;
148
- /**
149
- * Shadow for menus e.g. column menu and right-click context menu
150
- */
151
- menuShadow: ShadowValue;
152
- /**
153
- * Text color for menus e.g. column menu and right-click context menu
154
- */
155
- menuTextColor: ColorValue;
156
- /**
157
- * Background color for panels and dialogs such as the advanced filter builder. Note that for the integrated charts panel, the chart fully fills the panel so no background is visible behind it - set the chart theme to change its background.
158
- */
159
- panelBackgroundColor: ColorValue;
160
- /**
161
- * The height of the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
162
- */
163
- panelTitleBarHeight: LengthValue;
164
- /**
165
- * Background color for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
166
- */
167
- panelTitleBarBackgroundColor: ColorValue;
168
- /**
169
- * Text color for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
170
- */
171
- panelTitleBarTextColor: ColorValue;
172
- /**
173
- * Icon color for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
174
- */
175
- panelTitleBarIconColor: ColorValue;
176
- /**
177
- * Font family for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
178
- */
179
- panelTitleBarFontFamily: FontFamilyValue;
180
- /**
181
- * Size of text for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
182
- */
183
- panelTitleBarFontSize: LengthValue;
184
- /**
185
- * Font weight for the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
186
- */
187
- panelTitleBarFontWeight: FontWeightValue;
188
- /**
189
- * Border below the title bar of panels and dialogs such as the integrated charts panel and the advanced filter builder.
190
- */
191
- panelTitleBarBorder: BorderValue;
192
- /**
193
- * Default shadow for elements that float above the grid and are intended to appear separated from it e.g. dialogs and menus
194
- */
195
- popupShadow: ShadowValue;
196
- /**
197
- * Amount of spacing around and inside UI elements. All padding and margins in the grid are defined as a multiple of this value.
198
- */
199
- spacing: LengthValue;
200
- /**
201
- * Color of text and UI elements that should stand out less than the default.
202
- */
203
- subtleTextColor: ColorValue;
204
- /**
205
- * Default color for all text
206
- */
207
- textColor: ColorValue;
208
- /**
209
- * Width of the whole toggle button component
210
- */
211
- toggleButtonWidth: LengthValue;
212
- /**
213
- * Height of the whole toggle button component
214
- */
215
- toggleButtonHeight: LengthValue;
216
- /**
217
- * Color of the toggle button background in its 'off' state
218
- */
219
- toggleButtonOffBackgroundColor: ColorValue;
220
- /**
221
- * Color of the toggle button background in its 'on' state
222
- */
223
- toggleButtonOnBackgroundColor: ColorValue;
224
- /**
225
- * Background color of the toggle button switch (the bit that slides from left to right)
226
- */
227
- toggleButtonSwitchBackgroundColor: ColorValue;
228
- /**
229
- * The amount that the toggle switch is inset from the edge of the button
230
- */
231
- toggleButtonSwitchInset: LengthValue;
232
- /**
233
- * Background color for tooltips
234
- */
235
- tooltipBackgroundColor: ColorValue;
236
- /**
237
- * Background color for tooltips showing errors
238
- */
239
- tooltipErrorBackgroundColor: ColorValue;
240
- /**
241
- * Border for tooltips
242
- */
243
- tooltipBorder: BorderValue;
244
- /**
245
- * Border for tooltips showing errors
246
- */
247
- tooltipErrorBorder: BorderValue;
248
- /**
249
- * Text color for tooltips
250
- */
251
- tooltipTextColor: ColorValue;
252
- /**
253
- * Text color for tooltips showing errors
254
- */
255
- tooltipErrorTextColor: ColorValue;
256
- /**
257
- * The horizontal padding of containers that contain stacked widgets, such as menus and tool panels
258
- */
259
- widgetContainerHorizontalPadding: LengthValue;
260
- /**
261
- * The vertical padding of containers that contain stacked widgets, such as menus and tool panels
262
- */
263
- widgetContainerVerticalPadding: LengthValue;
264
- /**
265
- * The spacing between widgets in containers arrange widgets horizontally
266
- */
267
- widgetHorizontalSpacing: LengthValue;
268
- /**
269
- * The spacing between widgets in containers arrange widgets vertically
270
- */
271
- widgetVerticalSpacing: LengthValue;
272
- }
273
- export declare const defaultLightColorSchemeParams: {
274
- readonly backgroundColor: "#fff";
275
- readonly foregroundColor: "#181d1f";
276
- readonly borderColor: ColorValue;
277
- readonly chromeBackgroundColor: ColorValue;
278
- readonly browserColorScheme: "light";
279
- };
280
- export declare const defaultFontFamily: () => string[];
281
- /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
282
- export declare const sharedDefaults: Readonly<SharedThemeParams>;
@@ -1,23 +0,0 @@
1
- import type { Part } from './part';
2
- export type Theme<TParams = unknown> = {
3
- /**
4
- * Return a new theme that uses an theme part. The part will replace any
5
- * existing part of the same feature
6
- *
7
- * @param part a part, or a no-arg function that returns a part
8
- */
9
- withPart<TPartParams>(part: Part<TPartParams> | (() => Part<TPartParams>)): Theme<TParams & TPartParams>;
10
- /**
11
- * Return a new theme removes any existing part with a feature.
12
- *
13
- * @param feature the name of the part to remove, e.g. 'checkboxStyle'
14
- */
15
- withoutPart(feature: string): Theme<TParams>;
16
- /**
17
- * Return a new theme with different default values for the specified
18
- * params.
19
- *
20
- * @param defaults an object containing params e.g. {spacing: 10}
21
- */
22
- withParams(defaults: Partial<TParams>, mode?: string): Theme<TParams>;
23
- };