@mui/x-data-grid 8.14.0 → 8.15.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 (120) hide show
  1. package/CHANGELOG.md +202 -0
  2. package/components/GridScrollShadows.js +23 -3
  3. package/components/cell/GridCell.js +1 -0
  4. package/constants/gridClasses.d.ts +12 -0
  5. package/constants/gridClasses.js +1 -1
  6. package/constants/localeTextConstants.js +2 -1
  7. package/esm/components/GridScrollShadows.js +22 -3
  8. package/esm/components/cell/GridCell.js +1 -0
  9. package/esm/constants/gridClasses.d.ts +12 -0
  10. package/esm/constants/gridClasses.js +1 -1
  11. package/esm/constants/localeTextConstants.js +2 -1
  12. package/esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  13. package/esm/hooks/core/useGridProps.d.ts +3 -5
  14. package/esm/hooks/core/useGridProps.js +5 -3
  15. package/esm/hooks/core/useGridVirtualizer.js +11 -9
  16. package/esm/hooks/features/dataSource/models.d.ts +28 -28
  17. package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  18. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +28 -15
  19. package/esm/hooks/features/dataSource/utils.d.ts +2 -1
  20. package/esm/hooks/features/dataSource/utils.js +2 -1
  21. package/esm/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  22. package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -11
  23. package/esm/index.js +1 -1
  24. package/esm/internals/index.d.ts +2 -2
  25. package/esm/locales/arSD.js +1 -0
  26. package/esm/locales/beBY.js +1 -0
  27. package/esm/locales/bgBG.js +1 -0
  28. package/esm/locales/bnBD.js +1 -0
  29. package/esm/locales/csCZ.js +1 -0
  30. package/esm/locales/daDK.js +1 -0
  31. package/esm/locales/deDE.js +1 -0
  32. package/esm/locales/elGR.js +1 -0
  33. package/esm/locales/esES.js +1 -0
  34. package/esm/locales/faIR.js +1 -0
  35. package/esm/locales/fiFI.js +1 -0
  36. package/esm/locales/frFR.js +1 -0
  37. package/esm/locales/heIL.js +1 -0
  38. package/esm/locales/hrHR.js +1 -0
  39. package/esm/locales/huHU.js +1 -0
  40. package/esm/locales/hyAM.js +1 -0
  41. package/esm/locales/idID.js +1 -0
  42. package/esm/locales/isIS.js +1 -0
  43. package/esm/locales/itIT.js +104 -115
  44. package/esm/locales/jaJP.js +1 -0
  45. package/esm/locales/koKR.js +1 -0
  46. package/esm/locales/nbNO.js +1 -0
  47. package/esm/locales/nlNL.js +1 -0
  48. package/esm/locales/nnNO.js +1 -0
  49. package/esm/locales/plPL.js +1 -0
  50. package/esm/locales/ptBR.js +1 -0
  51. package/esm/locales/ptPT.js +1 -0
  52. package/esm/locales/roRO.js +1 -0
  53. package/esm/locales/ruRU.js +1 -0
  54. package/esm/locales/skSK.js +1 -0
  55. package/esm/locales/svSE.js +1 -0
  56. package/esm/locales/trTR.js +1 -0
  57. package/esm/locales/ukUA.js +1 -0
  58. package/esm/locales/urPK.js +1 -0
  59. package/esm/locales/viVN.js +1 -0
  60. package/esm/locales/zhCN.js +1 -0
  61. package/esm/locales/zhHK.js +1 -0
  62. package/esm/locales/zhTW.js +1 -0
  63. package/esm/models/api/gridLocaleTextApi.d.ts +1 -0
  64. package/esm/models/gridDataSource.d.ts +13 -0
  65. package/esm/models/gridStateCommunity.d.ts +2 -3
  66. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  67. package/hooks/core/useGridProps.d.ts +3 -5
  68. package/hooks/core/useGridProps.js +5 -3
  69. package/hooks/core/useGridVirtualizer.js +11 -9
  70. package/hooks/features/dataSource/models.d.ts +28 -28
  71. package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  72. package/hooks/features/dataSource/useGridDataSourceBase.js +28 -15
  73. package/hooks/features/dataSource/utils.d.ts +2 -1
  74. package/hooks/features/dataSource/utils.js +2 -1
  75. package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  76. package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -11
  77. package/index.js +1 -1
  78. package/internals/index.d.ts +2 -2
  79. package/locales/arSD.js +1 -0
  80. package/locales/beBY.js +1 -0
  81. package/locales/bgBG.js +1 -0
  82. package/locales/bnBD.js +1 -0
  83. package/locales/csCZ.js +1 -0
  84. package/locales/daDK.js +1 -0
  85. package/locales/deDE.js +1 -0
  86. package/locales/elGR.js +1 -0
  87. package/locales/esES.js +1 -0
  88. package/locales/faIR.js +1 -0
  89. package/locales/fiFI.js +1 -0
  90. package/locales/frFR.js +1 -0
  91. package/locales/heIL.js +1 -0
  92. package/locales/hrHR.js +1 -0
  93. package/locales/huHU.js +1 -0
  94. package/locales/hyAM.js +1 -0
  95. package/locales/idID.js +1 -0
  96. package/locales/isIS.js +1 -0
  97. package/locales/itIT.js +104 -115
  98. package/locales/jaJP.js +1 -0
  99. package/locales/koKR.js +1 -0
  100. package/locales/nbNO.js +1 -0
  101. package/locales/nlNL.js +1 -0
  102. package/locales/nnNO.js +1 -0
  103. package/locales/plPL.js +1 -0
  104. package/locales/ptBR.js +1 -0
  105. package/locales/ptPT.js +1 -0
  106. package/locales/roRO.js +1 -0
  107. package/locales/ruRU.js +1 -0
  108. package/locales/skSK.js +1 -0
  109. package/locales/svSE.js +1 -0
  110. package/locales/trTR.js +1 -0
  111. package/locales/ukUA.js +1 -0
  112. package/locales/urPK.js +1 -0
  113. package/locales/viVN.js +1 -0
  114. package/locales/zhCN.js +1 -0
  115. package/locales/zhHK.js +1 -0
  116. package/locales/zhTW.js +1 -0
  117. package/models/api/gridLocaleTextApi.d.ts +1 -0
  118. package/models/gridDataSource.d.ts +13 -0
  119. package/models/gridStateCommunity.d.ts +2 -3
  120. package/package.json +2 -2
@@ -1,40 +1,40 @@
1
- import type { GridDataSourceCache, GridGetRowsParams, GridUpdateRowParams } from "../../../models/gridDataSource.js";
1
+ import type { GridDataSourceCache, GridGetRowsParams, GridUpdateRowParams, GridGetRowsOptions } from "../../../models/gridDataSource.js";
2
2
  import type { GridRowId, GridRowModel } from "../../../models/gridRows.js";
3
3
  import type { GridDataSourceCacheDefaultConfig } from "./cache.js";
4
4
  /**
5
5
  * The parameters for the `fetchRows` method.
6
6
  */
7
- export interface GridDataSourceFetchRowsParams extends Partial<GridGetRowsParams> {
8
- /**
9
- * If `true`, bypasses the cache and forces a refetch of the rows from the server.
10
- */
11
- skipCache?: boolean;
12
- }
13
- export interface GridDataSourceApiBase {
14
- /**
15
- * Fetches the rows from the server.
16
- * If no `parentId` option is provided, it fetches the root rows.
17
- * Any missing parameter from `params` will be filled from the state (sorting, filtering, etc.).
18
- * @param {GridRowId} parentId The id of the parent node (default: `GRID_ROOT_GROUP_ID`).
19
- * @param {GridDataSourceFetchRowsParams} params Request parameters override.
20
- */
21
- fetchRows: (parentId?: GridRowId, params?: GridDataSourceFetchRowsParams) => void;
22
- /**
23
- * The data source cache object.
24
- */
25
- cache: GridDataSourceCache;
26
- /**
27
- * Syncs the row with the server and updates in the grid.
28
- * @param {GridUpdateRowParams} params The parameters for the edit operation.
29
- * @returns {Promise<GridRowModel> | undefined} The updated row or `undefined` if `dataSource.updateRow` is not passed.
30
- */
31
- editRow: (params: GridUpdateRowParams) => Promise<GridRowModel> | undefined;
32
- }
7
+ export type GridDataSourceFetchRowsParams<T> = Partial<T> & GridGetRowsOptions;
33
8
  export interface GridDataSourceApi {
34
9
  /**
35
10
  * The data source API.
36
11
  */
37
- dataSource: GridDataSourceApiBase;
12
+ dataSource: {
13
+ /**
14
+ * Fetches the rows from the server.
15
+ * If no `parentId` option is provided, it fetches the root rows.
16
+ * Any missing parameter from `params` will be filled from the state (sorting, filtering, etc.).
17
+ * @param {GridRowId} parentId The id of the parent node (default: `GRID_ROOT_GROUP_ID`).
18
+ * @param {GridDataSourceFetchRowsParams<GridGetRowsParams>} params Request parameters override.
19
+ * @returns {Promise<void>} A promise that resolves when the rows are fetched.
20
+ */
21
+ fetchRows: (parentId?: GridRowId, params?: GridDataSourceFetchRowsParams<GridGetRowsParams>) => Promise<void>;
22
+ /**
23
+ * The data source cache object.
24
+ */
25
+ cache: GridDataSourceCache;
26
+ /**
27
+ * Syncs the row with the server and updates in the grid.
28
+ * @param {GridUpdateRowParams} params The parameters for the edit operation.
29
+ * @returns {Promise<GridRowModel> | undefined} The updated row or `undefined` if `dataSource.updateRow` is not passed.
30
+ */
31
+ editRow: (params: GridUpdateRowParams) => Promise<GridRowModel> | undefined;
32
+ };
33
+ }
34
+ export interface GridDataSourceApiBase {
35
+ fetchRows: GridDataSourceApi['dataSource']['fetchRows'];
36
+ cache: GridDataSourceApi['dataSource']['cache'];
37
+ editRow: GridDataSourceApi['dataSource']['editRow'];
38
38
  }
39
39
  export interface GridDataSourceBaseOptions {
40
40
  cacheOptions?: GridDataSourceCacheDefaultConfig;
@@ -10,7 +10,7 @@ export declare const useGridDataSourceBase: <Api extends GridPrivateApiCommunity
10
10
  api: {
11
11
  public: GridDataSourceApi;
12
12
  };
13
- debouncedFetchRows: ((parentId?: import("@mui/x-data-grid").GridRowId, params?: import("./models.js").GridDataSourceFetchRowsParams) => void) & import("@mui/utils/debounce").Cancelable;
13
+ debouncedFetchRows: ((parentId?: import("@mui/x-data-grid").GridRowId, params?: import("./models.js").GridDataSourceFetchRowsParams<import("@mui/x-data-grid").GridGetRowsParams>) => Promise<void>) & import("@mui/utils/debounce").Cancelable;
14
14
  strategyProcessor: {
15
15
  strategyName: DataSourceRowsUpdateStrategy;
16
16
  group: "dataSourceRowsUpdate";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["skipCache"];
5
+ const _excluded = ["skipCache", "keepChildrenExpanded"];
6
6
  import * as React from 'react';
7
7
  import useLazyRef from '@mui/utils/useLazyRef';
8
8
  import debounce from '@mui/utils/debounce';
@@ -33,8 +33,8 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
33
33
  apiRef.current.setStrategyAvailability(GridStrategyGroup.DataSource, DataSourceRowsUpdateStrategy.Default, props.dataSource ? () => true : () => false);
34
34
  }, [apiRef, props.dataSource]);
35
35
  const [currentStrategy, setCurrentStrategy] = React.useState(apiRef.current.getActiveStrategy(GridStrategyGroup.DataSource));
36
- const defaultRowsUpdateStrategyActive = React.useMemo(() => {
37
- return currentStrategy === DataSourceRowsUpdateStrategy.Default;
36
+ const standardRowsUpdateStrategyActive = React.useMemo(() => {
37
+ return currentStrategy === DataSourceRowsUpdateStrategy.Default || currentStrategy === DataSourceRowsUpdateStrategy.GroupedData;
38
38
  }, [currentStrategy]);
39
39
  const paginationModel = useGridSelector(apiRef, gridPaginationModelSelector);
40
40
  const lastRequestId = React.useRef(0);
@@ -60,7 +60,8 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
60
60
  options.clearDataSourceState?.();
61
61
  const _ref = params || {},
62
62
  {
63
- skipCache
63
+ skipCache,
64
+ keepChildrenExpanded
64
65
  } = _ref,
65
66
  getRowsParams = _objectWithoutPropertiesLoose(_ref, _excluded);
66
67
  const fetchParams = _extends({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors('getRowsParams', {}), getRowsParams);
@@ -69,13 +70,17 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
69
70
  if (!skipCache && responses.every(response => response !== undefined)) {
70
71
  apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {
71
72
  response: CacheChunkManager.mergeResponses(responses),
72
- fetchParams
73
+ fetchParams,
74
+ options: {
75
+ skipCache,
76
+ keepChildrenExpanded
77
+ }
73
78
  });
74
79
  return;
75
80
  }
76
81
 
77
82
  // Manage loading state only for the default strategy
78
- if (defaultRowsUpdateStrategyActive || apiRef.current.getRowsCount() === 0) {
83
+ if (standardRowsUpdateStrategyActive || apiRef.current.getRowsCount() === 0) {
79
84
  apiRef.current.setLoading(true);
80
85
  }
81
86
  const requestId = lastRequestId.current + 1;
@@ -87,14 +92,22 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
87
92
  if (lastRequestId.current === requestId) {
88
93
  apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {
89
94
  response: getRowsResponse,
90
- fetchParams
95
+ fetchParams,
96
+ options: {
97
+ skipCache,
98
+ keepChildrenExpanded
99
+ }
91
100
  });
92
101
  }
93
102
  } catch (originalError) {
94
103
  if (lastRequestId.current === requestId) {
95
104
  apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {
96
105
  error: originalError,
97
- fetchParams
106
+ fetchParams,
107
+ options: {
108
+ skipCache,
109
+ keepChildrenExpanded
110
+ }
98
111
  });
99
112
  if (typeof onDataSourceErrorProp === 'function') {
100
113
  onDataSourceErrorProp(new GridGetRowsError({
@@ -107,11 +120,11 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
107
120
  }
108
121
  }
109
122
  } finally {
110
- if (defaultRowsUpdateStrategyActive && lastRequestId.current === requestId) {
123
+ if (standardRowsUpdateStrategyActive && lastRequestId.current === requestId) {
111
124
  apiRef.current.setLoading(false);
112
125
  }
113
126
  }
114
- }, [cacheChunkManager, cache, apiRef, defaultRowsUpdateStrategyActive, props.dataSource?.getRows, onDataSourceErrorProp, options, props.signature]);
127
+ }, [cacheChunkManager, cache, apiRef, standardRowsUpdateStrategyActive, props.dataSource?.getRows, onDataSourceErrorProp, options, props.signature]);
115
128
  const handleStrategyActivityChange = React.useCallback(() => {
116
129
  setCurrentStrategy(apiRef.current.getActiveStrategy(GridStrategyGroup.DataSource));
117
130
  }, [apiRef]);
@@ -144,11 +157,11 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
144
157
  handleEditRowOption(params, finalRowUpdate);
145
158
  return finalRowUpdate;
146
159
  }
147
- apiRef.current.updateNestedRows([finalRowUpdate], []);
148
160
  if (finalRowUpdate && !isDeepEqual(finalRowUpdate, params.previousRow)) {
149
161
  // Reset the outdated cache, only if the row is _actually_ updated
150
162
  apiRef.current.dataSource.cache.clear();
151
163
  }
164
+ apiRef.current.updateNestedRows([finalRowUpdate], []);
152
165
  return finalRowUpdate;
153
166
  } catch (errorThrown) {
154
167
  if (typeof onDataSourceErrorProp === 'function') {
@@ -186,7 +199,7 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
186
199
  React.useEffect(() => {
187
200
  // Return early if the proper strategy isn't set yet
188
201
  // Context: https://github.com/mui/mui-x/issues/19650
189
- if (currentStrategy !== DataSourceRowsUpdateStrategy.Default && currentStrategy !== DataSourceRowsUpdateStrategy.LazyLoading) {
202
+ if (currentStrategy !== DataSourceRowsUpdateStrategy.Default && currentStrategy !== DataSourceRowsUpdateStrategy.LazyLoading && currentStrategy !== DataSourceRowsUpdateStrategy.GroupedData) {
190
203
  return undefined;
191
204
  }
192
205
  if (props.dataSource) {
@@ -213,9 +226,9 @@ export const useGridDataSourceBase = (apiRef, props, options = {}) => {
213
226
  cache,
214
227
  events: {
215
228
  strategyAvailabilityChange: handleStrategyActivityChange,
216
- sortModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows()),
217
- filterModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows()),
218
- paginationModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows())
229
+ sortModelChange: runIf(standardRowsUpdateStrategyActive, () => debouncedFetchRows()),
230
+ filterModelChange: runIf(standardRowsUpdateStrategyActive, () => debouncedFetchRows()),
231
+ paginationModelChange: runIf(standardRowsUpdateStrategyActive, () => debouncedFetchRows())
219
232
  }
220
233
  };
221
234
  };
@@ -1,7 +1,8 @@
1
1
  import type { GridGetRowsParams, GridGetRowsResponse } from "../../../models/gridDataSource.js";
2
2
  export declare enum DataSourceRowsUpdateStrategy {
3
- Default = "set-new-rows",
3
+ Default = "set-flat-rows",
4
4
  LazyLoading = "replace-row-range",
5
+ GroupedData = "set-grouped-rows",
5
6
  }
6
7
  /**
7
8
  * Provides better cache hit rate by:
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  export let DataSourceRowsUpdateStrategy = /*#__PURE__*/function (DataSourceRowsUpdateStrategy) {
3
- DataSourceRowsUpdateStrategy["Default"] = "set-new-rows";
3
+ DataSourceRowsUpdateStrategy["Default"] = "set-flat-rows";
4
4
  DataSourceRowsUpdateStrategy["LazyLoading"] = "replace-row-range";
5
+ DataSourceRowsUpdateStrategy["GroupedData"] = "set-grouped-rows";
5
6
  return DataSourceRowsUpdateStrategy;
6
7
  }({});
7
8
 
@@ -241,7 +241,7 @@ export const useGridRowSelection = (apiRef, props) => {
241
241
  }
242
242
  }, [logger, applyAutoSelection, canHaveMultipleSelection, apiRef, tree, props.rowSelectionPropagation?.descendants, props.rowSelectionPropagation?.parents, props.rowSelection]);
243
243
  const getPropagatedRowSelectionModel = React.useCallback(inputSelectionModel => {
244
- if (!isNestedData || !applyAutoSelection || inputSelectionModel.ids.size === 0 && inputSelectionModel.type === 'include') {
244
+ if (!isNestedData || !applyAutoSelection || inputSelectionModel.type === 'exclude' || inputSelectionModel.ids.size === 0 && inputSelectionModel.type === 'include') {
245
245
  return inputSelectionModel;
246
246
  }
247
247
  const propagatedSelectionModel = {
@@ -72,17 +72,7 @@ export interface GridRowTreeCreationParams {
72
72
  dataRowIdToModelLookup: GridRowIdToModelLookup;
73
73
  previousGroupsToFetch?: GridRowId[];
74
74
  }
75
- export type GridRowTreeUpdateGroupAction = 'removeChildren' | 'insertChildren' | 'modifyChildren';
76
- export type GridRowTreeUpdatedGroupsValue = {
77
- [groupId: GridRowId]: { [action in GridRowTreeUpdateGroupAction]?: boolean };
78
- };
79
- export type GridRowTreeUpdatedGroupsManager = {
80
- value: GridRowTreeUpdatedGroupsValue;
81
- addAction: (groupId: GridRowId, action: GridRowTreeUpdateGroupAction) => void;
82
- };
83
- export type GridRowTreeCreationValue = Pick<GridRowsState, 'groupingName' | 'tree' | 'treeDepths' | 'dataRowIds' | 'groupsToFetch'> & {
84
- updatedGroupsManager?: GridRowTreeUpdatedGroupsManager;
85
- };
75
+ export type GridRowTreeCreationValue = Pick<GridRowsState, 'groupingName' | 'tree' | 'treeDepths' | 'dataRowIds' | 'groupsToFetch'>;
86
76
  export type GridHydrateRowsValue = Pick<GridRowsState, 'tree' | 'treeDepths' | 'dataRowIds' | 'dataRowIdToModelLookup' | 'additionalRowGroups'>;
87
77
  export type GridRowsPartialUpdateAction = 'insert' | 'modify' | 'remove';
88
78
  export type GridRowIdToModelLookup<R extends GridValidRowModel = GridValidRowModel> = Record<string, R>;
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v8.14.0
2
+ * @mui/x-data-grid v8.15.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -57,7 +57,7 @@ export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaA
57
57
  export { useGridRowsOverridableMethods } from "../hooks/features/rows/useGridRowsOverridableMethods.js";
58
58
  export { useGridParamsOverridableMethods } from "../hooks/features/rows/useGridParamsOverridableMethods.js";
59
59
  export { useGridRowsPreProcessors } from "../hooks/features/rows/useGridRowsPreProcessors.js";
60
- export type { GridRowTreeCreationParams, GridRowTreeCreationValue, GridHydrateRowsValue, GridRowsPartialUpdates, GridRowsPartialUpdateAction, GridTreeDepths, GridRowTreeUpdatedGroupsManager, GridRowTreeUpdateGroupAction, GridPinnedRowsState } from "../hooks/features/rows/gridRowsInterfaces.js";
60
+ export type { GridRowTreeCreationParams, GridRowTreeCreationValue, GridHydrateRowsValue, GridRowsPartialUpdates, GridRowsPartialUpdateAction, GridTreeDepths, GridPinnedRowsState } from "../hooks/features/rows/gridRowsInterfaces.js";
61
61
  export { getTreeNodeDescendants, buildRootGroup } from "../hooks/features/rows/gridRowsUtils.js";
62
62
  export { useGridRowsMeta, rowsMetaStateInitializer } from "../hooks/features/rows/useGridRowsMeta.js";
63
63
  export { useGridParamsApi } from "../hooks/features/rows/useGridParamsApi.js";
@@ -87,7 +87,7 @@ export { useGridInitializeState } from "../hooks/utils/useGridInitializeState.js
87
87
  export type { GridStateInitializer } from "../hooks/utils/useGridInitializeState.js";
88
88
  export type * as BaseSlots from "../models/gridBaseSlots.js";
89
89
  export type * from "../models/props/DataGridProps.js";
90
- export type { GridDataSourceApiBase, GridDataSourceApi, GridDataSourceBaseOptions } from "../hooks/features/dataSource/models.js";
90
+ export type { GridDataSourceApiBase, GridDataSourceApi, GridDataSourceBaseOptions, GridDataSourceFetchRowsParams } from "../hooks/features/dataSource/models.js";
91
91
  export { DataSourceRowsUpdateStrategy } from "../hooks/features/dataSource/utils.js";
92
92
  export { useGridDataSourceBase } from "../hooks/features/dataSource/useGridDataSourceBase.js";
93
93
  export { CacheChunkManager } from "../hooks/features/dataSource/utils.js";
@@ -298,5 +298,6 @@ const arSDGrid = {
298
298
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
299
299
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
300
300
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
301
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
301
302
  };
302
303
  export const arSD = getGridLocalization(arSDGrid);
@@ -322,5 +322,6 @@ const beBYGrid = {
322
322
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
323
323
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
324
324
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
325
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
325
326
  };
326
327
  export const beBY = getGridLocalization(beBYGrid);
@@ -299,5 +299,6 @@ const bgBGGrid = {
299
299
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
300
300
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
301
301
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
302
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
302
303
  };
303
304
  export const bgBG = getGridLocalization(bgBGGrid);
@@ -297,5 +297,6 @@ const bnBDGrid = {
297
297
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
298
298
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
299
299
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
300
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
300
301
  };
301
302
  export const bnBD = getGridLocalization(bnBDGrid);
@@ -325,5 +325,6 @@ const csCZGrid = {
325
325
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
326
326
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
327
327
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
328
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
328
329
  };
329
330
  export const csCZ = getGridLocalization(csCZGrid);
@@ -299,5 +299,6 @@ const daDKGrid = {
299
299
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
300
300
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
301
301
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
302
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
302
303
  };
303
304
  export const daDK = getGridLocalization(daDKGrid);
@@ -289,5 +289,6 @@ const deDEGrid = {
289
289
  promptChangePivotRowsLabel: count => `Zeilen (${count})`,
290
290
  promptChangePivotValuesLabel: count => `Werte (${count})`,
291
291
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
292
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
292
293
  };
293
294
  export const deDE = getGridLocalization(deDEGrid);
@@ -300,5 +300,6 @@ const elGRGrid = {
300
300
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
301
301
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
302
302
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
303
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
303
304
  };
304
305
  export const elGR = getGridLocalization(elGRGrid);
@@ -297,5 +297,6 @@ const esESGrid = {
297
297
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
298
298
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
299
299
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
300
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
300
301
  };
301
302
  export const esES = getGridLocalization(esESGrid);
@@ -298,5 +298,6 @@ const faIRGrid = {
298
298
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
299
299
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
300
300
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
301
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
301
302
  };
302
303
  export const faIR = getGridLocalization(faIRGrid);
@@ -299,5 +299,6 @@ const fiFIGrid = {
299
299
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
300
300
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
301
301
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
302
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
302
303
  };
303
304
  export const fiFI = getGridLocalization(fiFIGrid);
@@ -295,5 +295,6 @@ const frFRGrid = {
295
295
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
296
296
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
297
297
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
298
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
298
299
  };
299
300
  export const frFR = getGridLocalization(frFRGrid);
@@ -297,5 +297,6 @@ const heILGrid = {
297
297
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
298
298
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
299
299
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
300
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
300
301
  };
301
302
  export const heIL = getGridLocalization(heILGrid);
@@ -317,5 +317,6 @@ const hrHRGrid = {
317
317
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
318
318
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
319
319
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
320
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
320
321
  };
321
322
  export const hrHR = getGridLocalization(hrHRGrid);
@@ -297,5 +297,6 @@ const huHUGrid = {
297
297
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
298
298
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
299
299
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
300
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
300
301
  };
301
302
  export const huHU = getGridLocalization(huHUGrid);
@@ -323,5 +323,6 @@ const hyAMGrid = {
323
323
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
324
324
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
325
325
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
326
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
326
327
  };
327
328
  export const hyAM = getGridLocalization(hyAMGrid);
@@ -289,5 +289,6 @@ export const idIDGrid = {
289
289
  promptChangePivotRowsLabel: count => `Baris (${count})`,
290
290
  promptChangePivotValuesLabel: count => `Nilai (${count})`,
291
291
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
292
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
292
293
  };
293
294
  export const idID = getGridLocalization(idIDGrid);
@@ -299,5 +299,6 @@ const isISGrid = {
299
299
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
300
300
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
301
301
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
302
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
302
303
  };
303
304
  export const isIS = getGridLocalization(isISGrid);