ag-grid-community 32.2.0 → 32.2.2

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 (49) hide show
  1. package/dist/ag-grid-community.js +109 -125
  2. package/dist/ag-grid-community.min.js +1 -1
  3. package/dist/ag-grid-community.min.noStyle.js +1 -1
  4. package/dist/ag-grid-community.noStyle.js +109 -125
  5. package/dist/package/main.cjs.js +109 -125
  6. package/dist/package/main.cjs.min.js +13 -13
  7. package/dist/package/main.esm.min.mjs +56 -56
  8. package/dist/package/main.esm.mjs +109 -125
  9. package/dist/package/package.json +7 -7
  10. package/dist/types/client-side-row-model/version.d.ts +1 -1
  11. package/dist/types/core/api/gridApi.d.ts +4 -4
  12. package/dist/types/core/components/componentUtil.d.ts +1 -1
  13. package/dist/types/core/entities/colDef.d.ts +4 -4
  14. package/dist/types/core/entities/gridOptions.d.ts +28 -37
  15. package/dist/types/core/events.d.ts +3 -3
  16. package/dist/types/core/gridOptionsUtils.d.ts +8 -7
  17. package/dist/types/core/main.d.ts +2 -2
  18. package/dist/types/core/version.d.ts +1 -1
  19. package/dist/types/csv-export/version.d.ts +1 -1
  20. package/dist/types/infinite-row-model/version.d.ts +1 -1
  21. package/dist/types/main.d.ts +1 -0
  22. package/dist/types/theming/Part.d.ts +33 -0
  23. package/dist/types/theming/Theme.d.ts +39 -0
  24. package/dist/types/theming/main.d.ts +9 -0
  25. package/dist/types/theming/styles/core/GENERATED-core.d.ts +1 -0
  26. package/dist/types/theming/styles/core/core-css.d.ts +468 -0
  27. package/dist/types/theming/styles/parts/checkbox-style/GENERATED-checkbox-style-default.d.ts +1 -0
  28. package/dist/types/theming/styles/parts/checkbox-style/checkbox-styles.d.ts +56 -0
  29. package/dist/types/theming/styles/parts/color-scheme/color-schemes.d.ts +6 -0
  30. package/dist/types/theming/styles/parts/icon-set/alpine/GENERATED-icon-set-alpine.d.ts +1 -0
  31. package/dist/types/theming/styles/parts/icon-set/alpine/icon-set-alpine.d.ts +1 -0
  32. package/dist/types/theming/styles/parts/icon-set/icon-sets.d.ts +3 -0
  33. package/dist/types/theming/styles/parts/icon-set/material/GENERATED-icon-set-material.d.ts +1 -0
  34. package/dist/types/theming/styles/parts/icon-set/material/icon-set-material.d.ts +1 -0
  35. package/dist/types/theming/styles/parts/icon-set/quartz/GENERATED-icon-set-quartz.d.ts +1 -0
  36. package/dist/types/theming/styles/parts/icon-set/quartz/icon-set-quartz.d.ts +6 -0
  37. package/dist/types/theming/styles/parts/icon-set/quartz/quartz-icon-data.d.ts +3 -0
  38. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-base.d.ts +1 -0
  39. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-underlined.d.ts +1 -0
  40. package/dist/types/theming/styles/parts/input-style/input-styles.d.ts +70 -0
  41. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-base.d.ts +1 -0
  42. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-rolodex.d.ts +1 -0
  43. package/dist/types/theming/styles/parts/tab-style/tab-styles.d.ts +101 -0
  44. package/dist/types/theming/styles/parts/theme/themes.d.ts +3 -0
  45. package/dist/types/theming/theme-types.d.ts +206 -0
  46. package/dist/types/theming/theme-utils.d.ts +8 -0
  47. package/dist/types/theming/version.d.ts +1 -0
  48. package/package.json +7 -7
  49. package/dist/types/core/validation/rules/selectionValidations.d.ts +0 -3
@@ -198,7 +198,7 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
198
198
  */
199
199
  tooltipValueGetter?: (params: ITooltipParams<TData, TValue>) => string | any;
200
200
  /**
201
- * @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
201
+ * @deprecated v32.2 Use the new selection API instead. See `GridOptions.rowSelection`
202
202
  *
203
203
  * Set to `true` (or return `true` from function) to render a selection checkbox in the column.
204
204
  * @default false
@@ -368,20 +368,20 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
368
368
  */
369
369
  contextMenuItems?: (string | MenuItemDef<TData>)[] | GetContextMenuItems<TData>;
370
370
  /**
371
- * @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
371
+ * @deprecated v32.2 Use the new selection API instead. See `GridOptions.rowSelection`
372
372
  *
373
373
  * If `true` or the callback returns `true`, a 'select all' checkbox will be put into the header.
374
374
  */
375
375
  headerCheckboxSelection?: boolean | HeaderCheckboxSelectionCallback<TData, TValue>;
376
376
  /**
377
- * @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
377
+ * @deprecated v32.2 Use the new selection API instead. See `GridOptions.rowSelection`
378
378
  *
379
379
  * If `true`, the header checkbox selection will only select filtered items.
380
380
  * @default false
381
381
  */
382
382
  headerCheckboxSelectionFilteredOnly?: boolean;
383
383
  /**
384
- * @deprecated v32.2 Use the new selection API instead. See `GridOptions.selection`
384
+ * @deprecated v32.2 Use the new selection API instead. See `GridOptions.rowSelection`
385
385
  *
386
386
  * If `true`, the header checkbox selection will only select nodes on the current page.
387
387
  * @default false
@@ -137,13 +137,13 @@ export interface GridOptions<TData = any> {
137
137
  /**
138
138
  * Set to `true` to copy the cell range or focused cell to the clipboard and never the selected rows.
139
139
  * @default false
140
- * @deprecated v32.2 Use `selection.copySelectedRows` instead.
140
+ * @deprecated v32.2 Use `rowSelection.copySelectedRows` instead.
141
141
  */
142
142
  suppressCopyRowsToClipboard?: boolean;
143
143
  /**
144
144
  * Set to `true` to copy rows instead of ranges when a range with only a single cell is selected.
145
145
  * @default false
146
- * @deprecated v32.2 Use `selection.copySelectedRows` instead.
146
+ * @deprecated v32.2 Use `rowSelection.copySelectedRows` instead.
147
147
  */
148
148
  suppressCopySingleCellRanges?: boolean;
149
149
  /**
@@ -942,7 +942,7 @@ export interface GridOptions<TData = any> {
942
942
  /**
943
943
  * When `true`, if you select a group, the children of the group will also be selected.
944
944
  * @default false
945
- * @deprecated v32.2 Use `selection.groupSelects` instead
945
+ * @deprecated v32.2 Use `rowSelection.groupSelects` instead
946
946
  */
947
947
  groupSelectsChildren?: boolean;
948
948
  /**
@@ -997,7 +997,7 @@ export interface GridOptions<TData = any> {
997
997
  /**
998
998
  * If using `groupSelectsChildren`, then only the children that pass the current filter will get selected.
999
999
  * @default false
1000
- * @deprecated v32.2 Use `selection.groupSelects` instead
1000
+ * @deprecated v32.2 Use `rowSelection.groupSelects` instead
1001
1001
  */
1002
1002
  groupSelectsFiltered?: boolean;
1003
1003
  /**
@@ -1254,26 +1254,29 @@ export interface GridOptions<TData = any> {
1254
1254
  */
1255
1255
  scrollbarWidth?: number;
1256
1256
  /**
1257
- * Type of Row Selection: `single`, `multiple`.
1258
- * @deprecated v32.2 Instead, set `selection.mode` to `'singleRow'` or `'multiRow'`
1257
+ * Use the `RowSelectionOptions` object to configure row selection. The string values `'single'` and `'multiple'` are deprecated.
1259
1258
  */
1260
- rowSelection?: 'single' | 'multiple';
1259
+ rowSelection?: RowSelectionOptions<TData> | 'single' | 'multiple';
1260
+ /**
1261
+ * Confgure cell selection
1262
+ */
1263
+ cellSelection?: boolean | CellSelectionOptions<TData>;
1261
1264
  /**
1262
1265
  * Set to `true` to allow multiple rows to be selected using single click.
1263
1266
  * @default false
1264
- * @deprecated v32.2 Use `selection.enableMultiSelectWithClick` instead
1267
+ * @deprecated v32.2 Use `rowSelection.enableSelectionWithoutKeys` instead
1265
1268
  */
1266
1269
  rowMultiSelectWithClick?: boolean;
1267
1270
  /**
1268
1271
  * If `true`, rows will not be deselected if you hold down `Ctrl` and click the row or press `Space`.
1269
1272
  * @default false
1270
- * @deprecated v32.2 Use `selection.suppressDeselection` instead
1273
+ * @deprecated v32.2 Use `rowSelection.enableClickSelection` instead
1271
1274
  */
1272
1275
  suppressRowDeselection?: boolean;
1273
1276
  /**
1274
1277
  * If `true`, row selection won't happen when rows are clicked. Use when you only want checkbox selection.
1275
1278
  * @default false
1276
- * @deprecated v32.2 Use `selection.enableClickSelection` instead
1279
+ * @deprecated v32.2 Use `rowSelection.enableClickSelection` instead
1277
1280
  */
1278
1281
  suppressRowClickSelection?: boolean;
1279
1282
  /**
@@ -1286,10 +1289,6 @@ export interface GridOptions<TData = any> {
1286
1289
  * @default false
1287
1290
  */
1288
1291
  suppressHeaderFocus?: boolean;
1289
- /**
1290
- * Selection options object representing the new selection API. If this value is set all other selection related grid options will be ignored.
1291
- */
1292
- selection?: SelectionOptions;
1293
1292
  /**
1294
1293
  * Configure the selection column, used for displaying checkboxes.
1295
1294
  *
@@ -1299,7 +1298,7 @@ export interface GridOptions<TData = any> {
1299
1298
  /**
1300
1299
  * If `true`, only a single range can be selected.
1301
1300
  * @default false
1302
- * @deprecated v32.2 Use `selection.suppressMultiRanges` instead
1301
+ * @deprecated v32.2 Use `cellSelection.suppressMultiRanges` instead
1303
1302
  */
1304
1303
  suppressMultiRangeSelection?: boolean;
1305
1304
  /**
@@ -1312,31 +1311,31 @@ export interface GridOptions<TData = any> {
1312
1311
  /**
1313
1312
  * Set to `true` to enable Range Selection.
1314
1313
  * @default false
1315
- * @deprecated v32.2 Use `selection.mode = 'cell'` instead
1314
+ * @deprecated v32.2 Use `cellSelection = true` instead
1316
1315
  */
1317
1316
  enableRangeSelection?: boolean;
1318
1317
  /**
1319
1318
  * Set to `true` to enable the Range Handle.
1320
1319
  * @default false
1321
- * @deprecated v32.2 Use `selection.handle` instead
1320
+ * @deprecated v32.2 Use `cellSelection.handle` instead
1322
1321
  */
1323
1322
  enableRangeHandle?: boolean;
1324
1323
  /**
1325
1324
  * Set to `true` to enable the Fill Handle.
1326
1325
  * @default false
1327
- * @deprecated v32.2 Use `selection.handle` instead
1326
+ * @deprecated v32.2 Use `cellSelection.handle` instead
1328
1327
  */
1329
1328
  enableFillHandle?: boolean;
1330
1329
  /**
1331
1330
  * Set to `'x'` to force the fill handle direction to horizontal, or set to `'y'` to force the fill handle direction to vertical.
1332
1331
  * @default 'xy'
1333
- * @deprecated v32.2 Use `selection.handle.direction` instead
1332
+ * @deprecated v32.2 Use `cellSelection.handle.direction` instead
1334
1333
  */
1335
1334
  fillHandleDirection?: 'x' | 'y' | 'xy';
1336
1335
  /**
1337
1336
  * Set this to `true` to prevent cell values from being cleared when the Range Selection is reduced by the Fill Handle.
1338
1337
  * @default false
1339
- * @deprecated v32.2 Use `selection.suppressClearOnFillReduction` instead
1338
+ * @deprecated v32.2 Use `cellSelection.suppressClearOnFillReduction` instead
1340
1339
  */
1341
1340
  suppressClearOnFillReduction?: boolean;
1342
1341
  /**
@@ -1629,7 +1628,7 @@ export interface GridOptions<TData = any> {
1629
1628
  processRowPostCreate?: (params: ProcessRowParams<TData>) => void;
1630
1629
  /**
1631
1630
  * Callback to be used to determine which rows are selectable. By default rows are selectable, so return `false` to make a row un-selectable.
1632
- * @deprecated v32.2 Use `selection.isRowSelectable` instead
1631
+ * @deprecated v32.2 Use `cellSelection.isRowSelectable` instead
1633
1632
  */
1634
1633
  isRowSelectable?: IsRowSelectable<TData>;
1635
1634
  /**
@@ -2201,11 +2200,8 @@ export interface LoadingCellRendererSelectorResult {
2201
2200
  params?: any;
2202
2201
  }
2203
2202
  export type DomLayoutType = 'normal' | 'autoHeight' | 'print';
2204
- /** Configuration options for selection */
2205
- export type SelectionOptions<TData = any, TValue = any> = RowSelectionOptions<TData, TValue> | CellSelectionOptions<TData>;
2206
2203
  /** Cell selection options */
2207
2204
  export interface CellSelectionOptions<TData = any> {
2208
- mode: 'cell';
2209
2205
  /**
2210
2206
  * If `true`, only a single range can be selected
2211
2207
  * @default false
@@ -2267,6 +2263,11 @@ interface CommonRowSelectionOptions<TData = any, TValue = any> {
2267
2263
  * When enabled and a row is selected, the copy action should copy the entire row, rather than just the focused cell
2268
2264
  */
2269
2265
  copySelectedRows?: boolean;
2266
+ /**
2267
+ * Set to `true` to allow (possibly multiple) rows to be selected and deselected using single click or touch.
2268
+ * @default false
2269
+ */
2270
+ enableSelectionWithoutKeys?: boolean;
2270
2271
  }
2271
2272
  /**
2272
2273
  * Determines selection behaviour when only a single row can be selected at a time
@@ -2277,7 +2278,7 @@ export interface SingleRowSelectionOptions<TData = any, TValue = any> extends Co
2277
2278
  /**
2278
2279
  * Determines selection behaviour when multiple rows can be selected at once.
2279
2280
  */
2280
- export interface MultiRowSelectionOptions<TData = any> extends CommonRowSelectionOptions<TData> {
2281
+ export interface MultiRowSelectionOptions<TData = any, TValue = any> extends CommonRowSelectionOptions<TData, TValue> {
2281
2282
  mode: 'multiRow';
2282
2283
  /**
2283
2284
  * Determine group selection behaviour
@@ -2294,11 +2295,6 @@ export interface MultiRowSelectionOptions<TData = any> extends CommonRowSelectio
2294
2295
  * @default true
2295
2296
  */
2296
2297
  headerCheckbox?: boolean;
2297
- /**
2298
- * Set to `true` to allow multiple rows to be selected using single click.
2299
- * @default false
2300
- */
2301
- enableMultiSelectWithClick?: boolean;
2302
2298
  }
2303
2299
  /** Subset of ColDef allowing for customisation of the Controls column, currently used for checkbox selection */
2304
2300
  export type SelectionColumnDef = Pick<ColDef, 'icons' | 'suppressNavigable' | 'suppressKeyboardEvent' | 'contextMenuItems' | 'context' | 'onCellClicked' | 'onCellContextMenu' | 'onCellDoubleClicked' | 'onCellValueChanged' | 'headerTooltip' | 'headerClass' | 'headerComponent' | 'headerComponentParams' | 'mainMenuItems' | 'suppressHeaderContextMenu' | 'suppressHeaderMenuButton' | 'suppressHeaderKeyboardEvent' | 'pinned' | 'lockPinned' | 'initialPinned' | 'cellAriaRole' | 'cellStyle' | 'cellClass' | 'cellClassRules' | 'cellRenderer' | 'cellRendererParams' | 'cellRendererSelector' | 'rowDrag' | 'rowDragText' | 'dndSource' | 'dndSourceOnRowDrag' | 'sortable' | 'sort' | 'initialSort' | 'sortIndex' | 'initialSortIndex' | 'sortingOrder' | 'unSortIcon' | 'tooltipField' | 'tooltipValueGetter' | 'tooltipComponent' | 'tooltipComponentParams' | 'width' | 'initialWidth' | 'maxWidth' | 'minWidth' | 'flex' | 'initialFlex' | 'resizable' | 'suppressSizeToFit' | 'suppressAutoSize'>;
@@ -2317,11 +2313,6 @@ export type GroupSelectionMode = 'self' | 'descendants' | 'filteredDescendants';
2317
2313
  * - When `'filtered'`, selects all rows that satisfy the currently active filter.
2318
2314
  * - When `'currentPage'`, selects all rows that satisfy the currently active filter on the current page.
2319
2315
  */
2320
- export type SelectAllMode =
2321
- /** selects all rows, regardless of filter and pagination settings */
2322
- 'all'
2323
- /** selects all rows that satisfy the currently active filter */
2324
- | 'filtered'
2325
- /** selects all rows that satisfy the currently active filter on the current page */
2326
- | 'currentPage';
2316
+ export type SelectAllMode = 'all' | 'filtered' | 'currentPage';
2317
+ export type RowSelectionMode = RowSelectionOptions['mode'];
2327
2318
  export {};
@@ -251,11 +251,11 @@ export interface PinnedHeightChangedEvent<TData = any, TContext = any> extends A
251
251
  * - `rowClicked` - row clicked when row selection enabled
252
252
  * - `rowDataChanged` - row data updated which triggered selection updates
253
253
  * - `rowGroupChanged` - grouping changed which updated the selection
254
- * - `selectableChanged`- selectable status of row has changed when `selection.groupSelects` is `'descendants'` or `'filteredDescendants'`
254
+ * - `selectableChanged`- selectable status of row has changed when `rowSelection.groupSelects` is `'descendants'` or `'filteredDescendants'`
255
255
  * - `spaceKey` - space key pressed on row
256
256
  * - `uiSelectAll` - select all in header clicked
257
- * - `uiSelectAllFiltered` - select all in header clicked when `selection.selectAll = 'filtered'`
258
- * - `uiSelectAllCurrentPage` - select all in header clicked when `selection.selectAll = 'currentPage'`
257
+ * - `uiSelectAllFiltered` - select all in header clicked when `rowSelection.selectAll = 'filtered'`
258
+ * - `uiSelectAllCurrentPage` - select all in header clicked when `rowSelection.selectAll = 'currentPage'`
259
259
  * - 'gridInitializing' - set as part of initial state while the grid is initializing
260
260
  */
261
261
  export type SelectionEventSourceType = 'api' | 'apiSelectAll' | 'apiSelectAllFiltered' | 'apiSelectAllCurrentPage' | 'checkboxSelected' | 'rowClicked' | 'rowDataChanged' | 'rowGroupChanged' | 'selectableChanged' | 'spaceKey' | 'uiSelectAll' | 'uiSelectAllFiltered' | 'uiSelectAllCurrentPage' | 'gridInitializing';
@@ -1,4 +1,4 @@
1
- import type { DomLayoutType, FillHandleOptions, GetRowIdFunc, GroupSelectionMode, IsRowSelectable, MultiRowSelectionOptions, RowSelectionOptions, SelectionOptions, SingleRowSelectionOptions } from './entities/gridOptions';
1
+ import type { DomLayoutType, FillHandleOptions, GetRowIdFunc, GroupSelectionMode, IsRowSelectable, MultiRowSelectionOptions, RowSelectionMode, RowSelectionOptions, SingleRowSelectionOptions } from './entities/gridOptions';
2
2
  import type { ExtractParamsFromCallback, ExtractReturnTypeFromCallback, GridOptionsService } from './gridOptionsService';
3
3
  import type { GetGroupAggFilteringParams, GetGroupIncludeFooterParams } from './interfaces/iCallbackParams';
4
4
  import type { WithoutGridCommon } from './interfaces/iCommon';
@@ -32,12 +32,13 @@ export declare function _isGroupMultiAutoColumn(gos: GridOptionsService): NonNul
32
32
  export declare function _isGroupUseEntireRow(gos: GridOptionsService, pivotMode: boolean): boolean;
33
33
  export declare function _getRowIdCallback<TData = any>(gos: GridOptionsService): ((params: WithoutGridCommon<ExtractParamsFromCallback<GetRowIdFunc<TData>>>) => ExtractReturnTypeFromCallback<GetRowIdFunc<TData>>) | undefined;
34
34
  /** Get the selection checkbox configuration. Defaults to enabled. */
35
- export declare function _getCheckboxes(selection: SelectionOptions): NonNullable<SingleRowSelectionOptions['checkboxes']> | NonNullable<MultiRowSelectionOptions['checkboxes']>;
35
+ export declare function _getCheckboxes(selection: RowSelectionOptions): NonNullable<SingleRowSelectionOptions['checkboxes']> | NonNullable<MultiRowSelectionOptions['checkboxes']>;
36
36
  /** Get the header checkbox configuration. Defaults to enabled in `multiRow`, otherwise disabled. */
37
- export declare function _getHeaderCheckbox(selection: SelectionOptions): boolean;
37
+ export declare function _getHeaderCheckbox(selection: RowSelectionOptions): boolean;
38
38
  /** Get the display configuration for disabled checkboxes. Defaults to displaying disabled checkboxes. */
39
- export declare function _getHideDisabledCheckboxes(selection: SelectionOptions): boolean;
40
- export declare function _isUsingNewSelectionAPI(gos: GridOptionsService): boolean;
39
+ export declare function _getHideDisabledCheckboxes(selection: RowSelectionOptions): boolean;
40
+ export declare function _isUsingNewRowSelectionAPI(gos: GridOptionsService): boolean;
41
+ export declare function _isUsingNewCellSelectionAPI(gos: GridOptionsService): boolean;
41
42
  export declare function _getSuppressMultiRanges(gos: GridOptionsService): boolean;
42
43
  export declare function _isCellSelectionEnabled(gos: GridOptionsService): boolean;
43
44
  export declare function _isRangeHandleEnabled(gos: GridOptionsService): boolean;
@@ -46,9 +47,9 @@ export declare function _getFillHandle(gos: GridOptionsService): FillHandleOptio
46
47
  export declare function _getEnableSelection(gos: GridOptionsService): boolean;
47
48
  export declare function _getEnableDeselection(gos: GridOptionsService): boolean;
48
49
  export declare function _getIsRowSelectable(gos: GridOptionsService): IsRowSelectable | undefined;
49
- export declare function _getRowSelectionMode(gos: GridOptionsService): RowSelectionOptions['mode'] | undefined;
50
+ export declare function _getRowSelectionMode(gos: GridOptionsService): RowSelectionMode | undefined;
50
51
  export declare function _isMultiRowSelection(gos: GridOptionsService): boolean;
51
- export declare function _getEnableMultiSelectWithClick(gos: GridOptionsService): boolean;
52
+ export declare function _getEnableSelectionWithoutKeys(gos: GridOptionsService): boolean;
52
53
  export declare function _getGroupSelection(gos: GridOptionsService): GroupSelectionMode | undefined;
53
54
  export declare function _getGroupSelectsDescendants(gos: GridOptionsService): boolean;
54
55
  export declare function _isSetFilterByDefault(gos: GridOptionsService): boolean;
@@ -201,7 +201,7 @@ export { CommunityMenuApiModule as _CommunityMenuApiModule } from './api/apiModu
201
201
  export { AgEventType, AgPublicEventType } from './eventTypes';
202
202
  export { FocusService } from './focusService';
203
203
  export { GridOptionsService, PropertyChangedEvent } from './gridOptionsService';
204
- export { _getRowIdCallback, _getRowHeightForNode, _isDomLayout, _isAnimateRows, _getGrandTotalRow, _getGroupTotalRowCallback, _isGroupMultiAutoColumn, _isColumnsSortingCoupledToGroup, _isClientSideRowModel, _isServerSideRowModel, _isGroupUseEntireRow, _getRowHeightAsNumber, _getActiveDomElement, _isNothingFocused, _getDocument, _getGroupAggFiltering, _isRowSelection, _isGetRowHeightFunction, _getGroupSelection, _getGroupSelectsDescendants, _getIsRowSelectable, _getHeaderCheckbox, _isMultiRowSelection, _getFillHandle, _isCellSelectionEnabled, _getSuppressMultiRanges, _getRowSelectionMode, _isUsingNewSelectionAPI, } from './gridOptionsUtils';
204
+ export { _getRowIdCallback, _getRowHeightForNode, _isDomLayout, _isAnimateRows, _getGrandTotalRow, _getGroupTotalRowCallback, _isGroupMultiAutoColumn, _isColumnsSortingCoupledToGroup, _isClientSideRowModel, _isServerSideRowModel, _isGroupUseEntireRow, _getRowHeightAsNumber, _getActiveDomElement, _isNothingFocused, _getDocument, _getGroupAggFiltering, _isRowSelection, _isGetRowHeightFunction, _getGroupSelection, _getGroupSelectsDescendants, _getIsRowSelectable, _getHeaderCheckbox, _isMultiRowSelection, _getFillHandle, _isCellSelectionEnabled, _getSuppressMultiRanges, _getRowSelectionMode, _isUsingNewCellSelectionAPI, _isUsingNewRowSelectionAPI, } from './gridOptionsUtils';
205
205
  export { LocalEventService } from './localEventService';
206
206
  export { EventService } from './eventService';
207
207
  export { SelectableService } from './rowNodes/selectableService';
@@ -231,7 +231,7 @@ export { HeaderNavigationService, HeaderNavigationDirection } from './headerRend
231
231
  export { IAggFunc, IAggFuncParams, ColGroupDef, ColDef, ColDefField, AbstractColDef, ColTypeDef, ValueSetterParams, ValueParserParams, ValueFormatterParams, ValueFormatterFunc, ValueParserFunc, ValueGetterFunc, ValueSetterFunc, HeaderValueGetterFunc, HeaderValueGetterParams, ColSpanParams, RowSpanParams, SuppressKeyboardEventParams, SuppressHeaderKeyboardEventParams, ValueGetterParams, NewValueParams, CellClassParams, CellClassFunc, CellStyleFunc, CellStyle, CellClassRules, CellEditorSelectorFunc, CellEditorSelectorResult, CellRendererSelectorFunc, CellRendererSelectorResult, GetQuickFilterTextParams, ColumnFunctionCallbackParams, CheckboxSelectionCallbackParams, CheckboxSelectionCallback, RowDragCallback, RowDragCallbackParams, DndSourceCallback, DndSourceCallbackParams, DndSourceOnRowDragParams, EditableCallbackParams, EditableCallback, SuppressPasteCallback, SuppressPasteCallbackParams, SuppressNavigableCallback, SuppressNavigableCallbackParams, HeaderCheckboxSelectionCallbackParams, HeaderCheckboxSelectionCallback, HeaderLocation, ColumnsMenuParams, ColumnChooserParams, ColumnMenuTab, HeaderClassParams, HeaderClass, ToolPanelClassParams, ToolPanelClass, KeyCreatorParams, SortDirection, NestedFieldPaths, } from './entities/colDef';
232
232
  export { DataTypeDefinition, TextDataTypeDefinition, NumberDataTypeDefinition, BooleanDataTypeDefinition, DateDataTypeDefinition, DateStringDataTypeDefinition, ObjectDataTypeDefinition, ValueFormatterLiteFunc, ValueFormatterLiteParams, ValueParserLiteFunc, ValueParserLiteParams, BaseCellDataType, } from './entities/dataType';
233
233
  export { DataTypeService } from './columns/dataTypeService';
234
- export { GridOptions, SelectionOptions, GroupSelectionMode, SelectAllMode, SelectionColumnDef, CellSelectionOptions, RowSelectionOptions, GridTheme, GridThemeUseArgs, IsApplyServerSideTransaction, GetContextMenuItems, GetDataPath, IsRowMaster, IsRowSelectable, IsRowFilterable, GetMainMenuItems, GetRowNodeIdFunc, GetRowIdFunc, ChartRef, ChartRefParams, RowClassRules, RowStyle, RowClassParams, ServerSideGroupLevelParams, ServerSideStoreParams, GetServerSideGroupKey, IsServerSideGroup, GetChartToolbarItems, RowGroupingDisplayType, TreeDataDisplayType, LoadingCellRendererSelectorFunc, LoadingCellRendererSelectorResult, DomLayoutType, UseGroupFooter, UseGroupTotalRow, GetChartMenuItems, } from './entities/gridOptions';
234
+ export { GridOptions, GroupSelectionMode, SelectAllMode, SelectionColumnDef, CellSelectionOptions, RowSelectionOptions, RowSelectionMode, GridTheme, GridThemeUseArgs, IsApplyServerSideTransaction, GetContextMenuItems, GetDataPath, IsRowMaster, IsRowSelectable, IsRowFilterable, GetMainMenuItems, GetRowNodeIdFunc, GetRowIdFunc, ChartRef, ChartRefParams, RowClassRules, RowStyle, RowClassParams, ServerSideGroupLevelParams, ServerSideStoreParams, GetServerSideGroupKey, IsServerSideGroup, GetChartToolbarItems, RowGroupingDisplayType, TreeDataDisplayType, LoadingCellRendererSelectorFunc, LoadingCellRendererSelectorResult, DomLayoutType, UseGroupFooter, UseGroupTotalRow, GetChartMenuItems, } from './entities/gridOptions';
235
235
  export { FillOperationParams, RowHeightParams, GetRowIdParams, ProcessRowParams, IsServerSideGroupOpenByDefaultParams, ProcessUnpinnedColumnsParams, IsApplyServerSideTransactionParams, IsGroupOpenByDefaultParams, GetServerSideGroupLevelParamsParams, PaginationNumberFormatterParams, ProcessDataFromClipboardParams, SendToClipboardParams, GetChartToolbarItemsParams, NavigateToNextHeaderParams, TabToNextHeaderParams, NavigateToNextCellParams, TabToNextCellParams, GetContextMenuItemsParams, GetMainMenuItemsParams, PostProcessPopupParams, IsExternalFilterPresentParams, InitialGroupOrderComparatorParams, GetGroupRowAggParams, IsFullWidthRowParams, PostSortRowsParams, FocusGridInnerElementParams, GetLocaleTextParams, GetGroupAggFilteringParams, GetGroupIncludeFooterParams, GetGroupIncludeTotalRowParams, IMenuActionParams, } from './interfaces/iCallbackParams';
236
236
  export { WithoutGridCommon } from './interfaces/iCommon';
237
237
  export { ManagedGridOptionKey, ManagedGridOptions, PropertyKeys } from './propertyKeys';
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.0";
1
+ export declare const VERSION = "32.2.2";
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.0";
1
+ export declare const VERSION = "32.2.2";
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.0";
1
+ export declare const VERSION = "32.2.2";
@@ -1,4 +1,5 @@
1
1
  export * from "./core/main";
2
+ export * from "./theming/main";
2
3
  export * from "./client-side-row-model/main";
3
4
  export * from "./csv-export/main";
4
5
  export * from "./infinite-row-model/main";
@@ -0,0 +1,33 @@
1
+ import type { CoreParams } from './styles/core/core-css';
2
+ import type { Feature } from './theme-types';
3
+ import { type CssFragment } from './theme-types';
4
+ export type Part<TParams = unknown> = {
5
+ readonly id: string;
6
+ readonly feature: string;
7
+ readonly variant: string;
8
+ readonly defaults: Partial<TParams>;
9
+ readonly css: ReadonlyArray<CssFragment>;
10
+ /**
11
+ * Return a new Part new different default values for core grid params.
12
+ */
13
+ withParams(defaults: Partial<TParams>): Part<TParams>;
14
+ /**
15
+ * Return a new part with additional params. Unlike `withParams`, this can
16
+ * be used to add support for params used by the part's own CSS.
17
+ */
18
+ withAdditionalParams<TAdditionalParams>(defaults: TAdditionalParams): Part<TParams & TAdditionalParams>;
19
+ /**
20
+ * Return a new Part with additional CSS.
21
+ */
22
+ withCSS(css: CssFragment): Part<TParams>;
23
+ };
24
+ export declare const createPartVariant: <T>(part: Part<T>, variant: string) => Part<T>;
25
+ type AnyString = string & {};
26
+ /**
27
+ * Create a new empty part.
28
+ *
29
+ * @param feature an The part feature, e.g. 'iconSet'. Adding a part to a theme will remove any existing part with the same feature.
30
+ * @param variant an optional identifier for debugging, if omitted one will be generated
31
+ */
32
+ export declare const createPart: (feature: Feature | AnyString, variant?: string) => Part<CoreParams>;
33
+ export {};
@@ -0,0 +1,39 @@
1
+ import { type GridTheme } from 'ag-grid-community';
2
+ import type { Part } from './Part';
3
+ import { type CoreParams } from './styles/core/core-css';
4
+ export type Theme<TParams = unknown> = GridTheme & {
5
+ readonly id: string;
6
+ readonly dependencies: readonly Part[];
7
+ readonly defaults: Partial<TParams>;
8
+ /**
9
+ * Return a new theme that uses an theme part. The part will replace any
10
+ * existing part of the same feature
11
+ *
12
+ * @param part a part, or a no-arg function that returns a part
13
+ */
14
+ withPart<TPartParams>(part: Part<TPartParams> | (() => Part<TPartParams>)): Theme<TParams & TPartParams>;
15
+ /**
16
+ * Return a new theme with different default values for the specified
17
+ * params.
18
+ *
19
+ * @param defaults an object containing params e.g. {spacing: 10}
20
+ */
21
+ withParams(defaults: Partial<TParams>): Theme<TParams>;
22
+ /**
23
+ * Return the complete rendered CSS for this theme. This can be used at
24
+ * build time to generate CSS if your application requires that CSS be
25
+ * served from a static file.
26
+ */
27
+ getCSS(): string;
28
+ /**
29
+ * Return the params used to render the theme, including the default values
30
+ * and any overrides supplied by parts and `withParams` calls.
31
+ */
32
+ getParams(): Record<string, unknown>;
33
+ };
34
+ /**
35
+ * Create a custom theme containing core grid styles but no parts.
36
+ *
37
+ * @param id an optional identifier for debugging, if omitted one will be generated
38
+ */
39
+ export declare const createTheme: (id?: string) => Theme<CoreParams>;
@@ -0,0 +1,9 @@
1
+ export { type Part, createPart } from './Part';
2
+ export { type Theme, createTheme } from './Theme';
3
+ export * from './styles/parts/checkbox-style/checkbox-styles';
4
+ export * from './styles/parts/color-scheme/color-schemes';
5
+ export * from './styles/parts/icon-set/icon-sets';
6
+ export * from './styles/parts/input-style/input-styles';
7
+ export * from './styles/parts/tab-style/tab-styles';
8
+ export * from './styles/parts/theme/themes';
9
+ export * from './theme-types';