Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
595aed8
[DataGrid] Differenciate the pro and community versions of GridState,…
flaviendelangle Jan 17, 2022
0e08bf9
Work
flaviendelangle Jan 17, 2022
e252740
Gen docs
flaviendelangle Jan 17, 2022
e02f987
Work
flaviendelangle Jan 17, 2022
dad3f3e
Work
flaviendelangle Jan 17, 2022
3e43030
Gen docs
flaviendelangle Jan 17, 2022
9233647
Gen docs
flaviendelangle Jan 17, 2022
2ce5214
Gen docs
flaviendelangle Jan 17, 2022
6c5e8b6
Gen docs
flaviendelangle Jan 17, 2022
84a7091
Gen docs
flaviendelangle Jan 17, 2022
6382544
Merge branch 'master' into state-pro-community
flaviendelangle Jan 18, 2022
5a4306c
Merge
flaviendelangle Jan 18, 2022
b02633a
Merge
flaviendelangle Jan 18, 2022
9e27a6b
Work
flaviendelangle Jan 18, 2022
915f766
Gen docs
flaviendelangle Jan 18, 2022
2da1d6e
Merge branch 'master' into state-pro-community
flaviendelangle Jan 19, 2022
4da768f
[DataGrid] Remove function overloading for useGridApiRef
flaviendelangle Jan 19, 2022
25b74c7
Work
flaviendelangle Jan 19, 2022
1f62ce5
Work
flaviendelangle Jan 19, 2022
f867509
Work
flaviendelangle Jan 19, 2022
5decdc6
Work
flaviendelangle Jan 19, 2022
c8927cc
Merge
flaviendelangle Jan 20, 2022
7035d40
Merge branch 'master' into apiRef-init
flaviendelangle Jan 20, 2022
a3c5d8e
Merge branch 'master' into state-pro-community
flaviendelangle Jan 21, 2022
c961398
[DataGridPro] Use module augmentation for event and pre-processing lo…
flaviendelangle Jan 21, 2022
8cf5256
Build API
flaviendelangle Jan 21, 2022
ee15df3
Work
flaviendelangle Jan 21, 2022
19ed74c
Work
flaviendelangle Jan 21, 2022
6098a30
Work
flaviendelangle Jan 21, 2022
1228b15
Work
flaviendelangle Jan 21, 2022
33ba0d8
Merge
flaviendelangle Jan 24, 2022
f96fdf6
Work
flaviendelangle Jan 24, 2022
69d45df
Work
flaviendelangle Jan 24, 2022
fa75075
Work
flaviendelangle Jan 24, 2022
56f5ed2
Work
flaviendelangle Jan 24, 2022
7fc072b
Merge
flaviendelangle Jan 25, 2022
b7ebe1a
Fix
flaviendelangle Jan 25, 2022
a442f74
Fix
flaviendelangle Jan 25, 2022
0cdaf38
Fix
flaviendelangle Jan 25, 2022
d0a978f
Work
flaviendelangle Jan 25, 2022
8fc3666
Work
flaviendelangle Jan 25, 2022
b4a992c
Merge branch 'master' into state-pro-community
flaviendelangle Jan 26, 2022
13f6e78
Code review: Andrew
flaviendelangle Jan 26, 2022
8a28913
Merge
flaviendelangle Jan 26, 2022
2f20257
Work
flaviendelangle Jan 26, 2022
fbe5fd4
Work
flaviendelangle Jan 26, 2022
3e43ede
Work
flaviendelangle Jan 27, 2022
ae77949
Work
flaviendelangle Jan 27, 2022
c8a6701
Work
flaviendelangle Jan 27, 2022
5e35055
Work
flaviendelangle Jan 27, 2022
2dafe6d
Work
flaviendelangle Jan 27, 2022
1db045b
Work
flaviendelangle Jan 27, 2022
6e1095d
Work
flaviendelangle Jan 27, 2022
3a4e714
Work
flaviendelangle Jan 27, 2022
bca5645
Work
flaviendelangle Jan 27, 2022
a64ec2e
Work
flaviendelangle Jan 27, 2022
07d4e3b
Work
flaviendelangle Jan 27, 2022
9568d0a
Work
flaviendelangle Jan 27, 2022
423fb39
Work
flaviendelangle Jan 27, 2022
1ab69b4
Work
flaviendelangle Jan 27, 2022
09e0ba7
Work
flaviendelangle Jan 27, 2022
7b79b18
Work
flaviendelangle Jan 27, 2022
95c5eba
Work
flaviendelangle Jan 27, 2022
876eac1
Work
flaviendelangle Jan 27, 2022
391b264
Work
flaviendelangle Jan 27, 2022
19875b8
Work
flaviendelangle Jan 27, 2022
c61243d
Work
flaviendelangle Jan 27, 2022
4fda6b6
Work
flaviendelangle Jan 27, 2022
98c00da
Work
flaviendelangle Jan 27, 2022
0e20238
Work
flaviendelangle Jan 27, 2022
05a2d20
Work
flaviendelangle Jan 27, 2022
7d1ffba
Work
flaviendelangle Jan 27, 2022
e93e503
Work
flaviendelangle Jan 27, 2022
35f2d0e
Work
flaviendelangle Jan 27, 2022
b4eb6d7
Merge branch 'state-pro-community' into pro-event-lookup
flaviendelangle Jan 27, 2022
d2e0f56
Work
flaviendelangle Jan 27, 2022
7a7402c
Work
flaviendelangle Jan 27, 2022
c104efd
Work
flaviendelangle Jan 27, 2022
4341a79
Work
flaviendelangle Jan 27, 2022
0cab542
Work
flaviendelangle Jan 27, 2022
b7086f2
Merge
flaviendelangle Jan 28, 2022
8492cde
Merge
flaviendelangle Jan 28, 2022
3eba08a
Merge
flaviendelangle Jan 31, 2022
40c25e0
Merge
flaviendelangle Jan 31, 2022
7f52894
Work
flaviendelangle Jan 31, 2022
15c7d5a
[core] Stop using an enum for GridPreProcessingGroup
flaviendelangle Jan 31, 2022
62aa35f
Work
flaviendelangle Jan 31, 2022
3517c3e
Work
flaviendelangle Jan 31, 2022
4e74315
Work
flaviendelangle Jan 31, 2022
55a9d3b
Work
flaviendelangle Jan 31, 2022
c23754f
Work
flaviendelangle Jan 31, 2022
7d4f650
Empty
flaviendelangle Jan 31, 2022
98eaee7
Work
flaviendelangle Jan 31, 2022
a10a1ae
Work
flaviendelangle Jan 31, 2022
c861a26
Work
flaviendelangle Jan 31, 2022
f8ddce9
Merge
flaviendelangle Jan 31, 2022
83ee0fe
Fix
flaviendelangle Jan 31, 2022
08d000e
Merge branch 'state-pro-community' into pro-event-lookup
flaviendelangle Feb 1, 2022
da77134
Merge branch 'master' into state-pro-community
flaviendelangle Feb 1, 2022
4425b38
Merge branch 'master' into pre-processor-enum
flaviendelangle Feb 1, 2022
3b7adf1
Merge branch 'pre-processor-enum' into pro-event-lookup-base
flaviendelangle Feb 1, 2022
964ec90
Merge branch 'state-pro-community' into pro-event-lookup-base
flaviendelangle Feb 1, 2022
b0ab694
Merge branch 'pro-event-lookup-base' into pro-event-lookup
flaviendelangle Feb 1, 2022
b4471ac
Work
flaviendelangle Feb 1, 2022
69cec52
Merge
flaviendelangle Feb 1, 2022
34b2bf3
Merge
flaviendelangle Feb 1, 2022
9f6dd01
Merge
flaviendelangle Feb 2, 2022
4b3ccdd
Work
flaviendelangle Feb 2, 2022
10297c1
Merge branch 'master' into state-pro-community
flaviendelangle Feb 2, 2022
d886de0
Work
flaviendelangle Feb 2, 2022
8bf1126
Merge branch 'master' into state-pro-community
flaviendelangle Feb 2, 2022
cb9497e
Work
flaviendelangle Feb 2, 2022
37646e2
Work
flaviendelangle Feb 2, 2022
702b849
Work
flaviendelangle Feb 2, 2022
88286a2
Fix
flaviendelangle Feb 2, 2022
f4d45a0
Work
flaviendelangle Feb 2, 2022
c3a4493
Work
flaviendelangle Feb 2, 2022
41904ba
Work
flaviendelangle Feb 2, 2022
892eb4b
Work
flaviendelangle Feb 2, 2022
96a0a02
Work
flaviendelangle Feb 2, 2022
13840c7
Work
flaviendelangle Feb 3, 2022
a939de6
Merge
flaviendelangle Feb 3, 2022
a1a8ccf
Merge
flaviendelangle Feb 3, 2022
1be427c
Work
flaviendelangle Feb 3, 2022
27398f8
Merge branch 'master' into state-pro-community
flaviendelangle Feb 7, 2022
aee8b32
Merge
flaviendelangle Feb 7, 2022
1fc32fd
Work
flaviendelangle Feb 7, 2022
23d759b
Merge branch 'master' into state-pro-community
flaviendelangle Feb 8, 2022
ff455b5
Work
flaviendelangle Feb 8, 2022
2d8b4a2
Merge branch 'state-pro-community' into pro-event-lookup
flaviendelangle Feb 8, 2022
5fabdaf
work
flaviendelangle Feb 9, 2022
cd5ee8a
Work
flaviendelangle Feb 9, 2022
1e093f5
Merge
flaviendelangle Feb 9, 2022
9b536a1
Merge branch 'master' into state-pro-community
flaviendelangle Feb 10, 2022
f3142ea
Merge
flaviendelangle Feb 10, 2022
176cef5
Merge branch 'master' into state-pro-community
flaviendelangle Feb 11, 2022
694bfdc
Merge branch 'master' into state-pro-community
flaviendelangle Feb 14, 2022
c706c9b
Work
flaviendelangle Feb 14, 2022
cf3e54e
Work
flaviendelangle Feb 14, 2022
24a43e3
Work
flaviendelangle Feb 14, 2022
acb5765
Work
flaviendelangle Feb 14, 2022
c7f0681
Merge branch 'master' into state-pro-community
flaviendelangle Feb 14, 2022
6187b36
Merge branch 'state-pro-community' into pro-event-lookup
flaviendelangle Feb 14, 2022
63797e3
Merge branch 'master' into pro-event-lookup
flaviendelangle Feb 15, 2022
7b5a441
[core] Drop _modules_ folder
flaviendelangle Feb 15, 2022
7f7b5bd
Fix proptypes
flaviendelangle Feb 15, 2022
d172132
Fix l10n
flaviendelangle Feb 15, 2022
5230d98
Work
flaviendelangle Feb 15, 2022
965e0cc
Work
flaviendelangle Feb 15, 2022
4914e29
Empty
flaviendelangle Feb 15, 2022
d735fe2
Merge branch 'pro-event-lookup' into drop-modules
flaviendelangle Feb 15, 2022
8c46bdf
Work
flaviendelangle Feb 15, 2022
f52a7f7
Fix
flaviendelangle Feb 15, 2022
8ecf518
Merge
flaviendelangle Feb 15, 2022
38f9b31
Work
flaviendelangle Feb 15, 2022
c46e076
Fix
flaviendelangle Feb 15, 2022
c6f8690
Fix
flaviendelangle Feb 15, 2022
c1e4811
Fix
flaviendelangle Feb 15, 2022
09b367b
Merge
flaviendelangle Feb 15, 2022
1d492b7
Merge branch 'master' into drop-modules
flaviendelangle Feb 16, 2022
5b1e536
Merge
flaviendelangle Feb 16, 2022
b695c9e
Code review: Matheus
flaviendelangle Feb 17, 2022
264e1bb
Merge branch 'master' into drop-modules
flaviendelangle Feb 17, 2022
655a926
Merge
flaviendelangle Feb 17, 2022
fa71444
Fix
flaviendelangle Feb 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/docs/.next
/docs/export
/lerna.json
/packages/grid/_modules_/grid/lib
/packages/grid/x-data-grid/src/internals/lib
CHANGELOG.md
dist
node_modules
Expand Down
4 changes: 2 additions & 2 deletions docs/data/data-grid/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The default locale of MUI is English (United States). If you want to use other l
## Translation keys

You can use the `localeText` prop to pass in your own text and translations.
You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/_modules_/grid/constants/localeTextConstants.ts) in the GitHub repository.
You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/internals/constants/localeTextConstants.ts) in the GitHub repository.
In the following example, the labels of the density selector are customized.

{{"demo": "CustomLocaleTextGrid.js", "bg": "inline"}}
Expand Down Expand Up @@ -100,7 +100,7 @@ import { DataGrid, nlNL } from '@mui/x-data-grid';
| Ukraine | uk-UA | `ukUA` |
| Simplified Chinese | zh-CN | `zhCN` |

You can [find the source](https://github.com/mui/mui-x/tree/HEAD/packages/grid/_modules_/grid/locales) in the GitHub repository.
You can [find the source](https://github.com/mui/mui-x/tree/HEAD/packages/grid/x-data-grid/src/internals/locales) in the GitHub repository.

To create your own translation or to customize the English text, copy this file to your project, make any changes needed and import the locale from there.
Note that these translations of the Data grid component depend on the [Localization strategy](/guides/localization/) of the whole library.
Expand Down
67 changes: 2 additions & 65 deletions docs/scripts/api/buildApi.ts
Original file line number Diff line number Diff line change
@@ -1,56 +1,13 @@
import * as yargs from 'yargs';
import * as fse from 'fs-extra';
import path from 'path';
import * as ts from 'typescript';
import buildComponentsDocumentation from './buildComponentsDocumentation';
import buildInterfacesDocumentation from './buildInterfacesDocumentation';
import buildExportsDocumentation from './buildExportsDocumentation';
import buildSelectorsDocumentation from './buildSelectorsDocumentation';
import buildEventsDocumentation from './buildEventsDocumentation';
import { Project, Projects, ProjectNames } from './utils';
import FEATURE_TOGGLE from '../../src/featureToggle';

const workspaceRoot = path.resolve(__dirname, '../../../');

interface CreateProgramOptions {
name: ProjectNames;
rootPath: string;
tsConfigPath: string;
entryPointPath: string;
}

const createProject = (options: CreateProgramOptions): Project => {
const { name, tsConfigPath, rootPath, entryPointPath } = options;

const compilerOptions = ts.parseJsonConfigFileContent(
ts.readConfigFile(tsConfigPath, ts.sys.readFile).config,
ts.sys,
rootPath,
);

const program = ts.createProgram({
rootNames: [entryPointPath],
options: compilerOptions.options,
});

const checker = program.getTypeChecker();
const sourceFile = program.getSourceFile(entryPointPath);

const exports = Object.fromEntries(
checker.getExportsOfModule(checker.getSymbolAtLocation(sourceFile!)!).map((symbol) => {
return [symbol.name, symbol];
}),
);

return {
name,
exports,
program,
checker,
workspaceRoot,
prettierConfigPath: path.join(workspaceRoot, 'prettier.config.js'),
};
};
import { getTypeScriptProjects } from '../getTypeScriptProjects';

async function run() {
let outputDirectories = ['./docs/pages/api-docs/data-grid'];
Expand All @@ -65,27 +22,7 @@ async function run() {
const outputDirectory = path.resolve(dir);
fse.mkdirSync(outputDirectory, { mode: 0o777, recursive: true });

const projects: Projects = new Map();

projects.set(
'x-data-grid-pro',
createProject({
name: 'x-data-grid-pro',
rootPath: path.join(workspaceRoot, 'packages/grid/x-data-grid-pro'),
tsConfigPath: path.join(workspaceRoot, 'packages/grid/x-data-grid-pro/tsconfig.json'),
entryPointPath: path.join(workspaceRoot, 'packages/grid/x-data-grid-pro/src/index.ts'),
}),
);

projects.set(
'x-data-grid',
createProject({
name: 'x-data-grid',
rootPath: path.join(workspaceRoot, 'packages/grid/x-data-grid'),
tsConfigPath: path.join(workspaceRoot, 'packages/grid/x-data-grid/tsconfig.json'),
entryPointPath: path.join(workspaceRoot, 'packages/grid/x-data-grid/src/index.ts'),
}),
);
const projects = getTypeScriptProjects();

const documentedInterfaces = buildInterfacesDocumentation({
projects,
Expand Down
3 changes: 2 additions & 1 deletion docs/scripts/api/buildComponentsDocumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ export default async function buildComponentsDocumentation(
const dataGridProProject = projects.get('x-data-grid-pro')!;
const dataGridProject = projects.get('x-data-grid')!;

// TODO: Use the project fields instead of hard-coding the paths here
const componentsToGenerateDocs = [
path.resolve(dataGridProject.workspaceRoot, 'packages/grid/x-data-grid/src/DataGrid.tsx'),
path.resolve(
Expand All @@ -487,7 +488,7 @@ export default async function buildComponentsDocumentation(
];

// Uncomment below to generate documentation for all exported components
// const componentsFolder = path.resolve(workspaceRoot, 'packages/grid/_modules_/grid/components');
// const componentsFolder = path.resolve(workspaceRoot, 'packages/grid/x-data-grid/src/internals/components');
// const components = findComponents(componentsFolder);
// components.forEach((component) => {
// const componentName = path.basename(component.filename).replace('.tsx', '');
Expand Down
8 changes: 8 additions & 0 deletions docs/scripts/api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export interface Project {
checker: ts.TypeChecker;
workspaceRoot: string;
prettierConfigPath: string;
/**
* Folder containing all the components of this package
*/
componentsFolder?: string;
/**
* Additional files containing components outside the components folder
*/
otherComponentFiles?: string[];
}

export type ProjectNames = 'x-data-grid' | 'x-data-grid-pro';
Expand Down
53 changes: 24 additions & 29 deletions docs/scripts/generateProptypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import * as fse from 'fs-extra';
import * as prettier from 'prettier';
import * as ttp from '@mui/monorepo/packages/typescript-to-proptypes/src';
import { fixBabelGeneratorIssues, fixLineEndings } from 'docs/scripts/helpers';

const tsconfig = ttp.loadConfig(path.resolve(__dirname, '../../tsconfig.json'));
import { getTypeScriptProjects } from './getTypeScriptProjects';

const prettierConfig = prettier.resolveConfig.sync(process.cwd(), {
config: path.join(__dirname, '../../prettier.config.js'),
Expand Down Expand Up @@ -104,35 +103,31 @@ function findComponents(folderPath) {
}

async function run() {
const componentsToAddPropTypes = [
path.resolve(__dirname, '../../packages/grid/x-data-grid/src/DataGrid.tsx'),
path.resolve(__dirname, '../../packages/grid/x-data-grid-pro/src/DataGridPro.tsx'),
];

const indexPath = path.resolve(__dirname, '../../packages/grid/_modules_/index.ts');
const program = ttp.createTSProgram([...componentsToAddPropTypes, indexPath], tsconfig);
const checker = program.getTypeChecker();
const indexFile = program.getSourceFile(indexPath)!;
const symbol = checker.getSymbolAtLocation(indexFile);
const exports = checker.getExportsOfModule(symbol!);

const componentsFolder = path.resolve(__dirname, '../../packages/grid/_modules_/grid/components');
const components = findComponents(componentsFolder);
components.forEach((component) => {
const componentName = path.basename(component).replace('.tsx', '');
const isExported = exports.find((e) => e.name === componentName);
if (isExported) {
componentsToAddPropTypes.push(component);
}
});
const projects = getTypeScriptProjects();

const promises = componentsToAddPropTypes.map<Promise<void>>(async (file) => {
try {
await generateProptypes(program, file);
} catch (error: any) {
error.message = `${file}: ${error.message}`;
throw error;
const promises = Array.from(projects.values()).flatMap((project) => {
const componentsToAddPropTypes: string[] = [];
if (project.otherComponentFiles) {
componentsToAddPropTypes.push(...project.otherComponentFiles);
}

const components = findComponents(project.componentsFolder);
components.forEach((component) => {
const componentName = path.basename(component).replace('.tsx', '');
const isExported = !!project.exports[componentName];
if (isExported) {
componentsToAddPropTypes.push(component);
}
});

return componentsToAddPropTypes.map<Promise<void>>(async (file) => {
try {
await generateProptypes(project.program, file);
} catch (error: any) {
error.message = `${file}: ${error.message}`;
throw error;
}
});
});

const results = await Promise.allSettled(promises);
Expand Down
111 changes: 111 additions & 0 deletions docs/scripts/getTypeScriptProjects.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import path from 'path';
import fs from 'fs';
import * as ts from 'typescript';
import { Project, ProjectNames, Projects } from './api/utils';

const workspaceRoot = path.resolve(__dirname, '../../');

interface CreateProgramOptions {
name: ProjectNames;
rootPath: string;
/**
* Config to use to build this package.
* The path must be relative to the root path.
*/
tsConfigPath: string;
/**
* File used as root of the package.
* The path must be relative to the root path.
*/
entryPointPath: string;
/**
* Folder containing all the components of this package.
* The path must be relative to the root path.
*/
componentsFolder?: string;
/**
* Additional files containing components outside the component's folder.
* The path must be relative to the root path.
*/
otherComponentFiles?: string[];
}

const createProject = (options: CreateProgramOptions): Project => {
const { name, tsConfigPath, rootPath, entryPointPath, componentsFolder, otherComponentFiles } =
options;

const tsConfigFile = ts.readConfigFile(tsConfigPath, (filePath) =>
fs.readFileSync(filePath).toString(),
);

if (tsConfigFile.error) {
throw tsConfigFile.error;
}

const tsConfigFileContent = ts.parseJsonConfigFileContent(
tsConfigFile.config,
ts.sys,
path.dirname(tsConfigPath),
);

if (tsConfigFileContent.errors.length > 0) {
throw tsConfigFileContent.errors[0];
}

const fullEntryPointPath = path.join(rootPath, entryPointPath);

const program = ts.createProgram({
rootNames: [fullEntryPointPath],
options: tsConfigFileContent.options,
});

const checker = program.getTypeChecker();
const sourceFile = program.getSourceFile(fullEntryPointPath);

const exports = Object.fromEntries(
checker.getExportsOfModule(checker.getSymbolAtLocation(sourceFile!)!).map((symbol) => {
return [symbol.name, symbol];
}),
);

return {
name,
exports,
program,
checker,
workspaceRoot,
componentsFolder: componentsFolder ? path.join(rootPath, componentsFolder) : undefined,
otherComponentFiles: otherComponentFiles?.map((file) => path.join(rootPath, file)),
prettierConfigPath: path.join(workspaceRoot, 'prettier.config.js'),
};
};

export const getTypeScriptProjects = () => {
const projects: Projects = new Map();

projects.set(
'x-data-grid-pro',
createProject({
name: 'x-data-grid-pro',
rootPath: path.join(workspaceRoot, 'packages/grid/x-data-grid-pro'),
tsConfigPath: 'tsconfig.json',
entryPointPath: 'src/index.ts',
componentsFolder: 'src/internals/components',
otherComponentFiles: ['src/DataGridPro.tsx'],
}),
);

projects.set(
'x-data-grid',
createProject({
name: 'x-data-grid',
rootPath: path.join(workspaceRoot, 'packages/grid/x-data-grid'),
tsConfigPath: 'tsconfig.json',
entryPointPath: 'src/index.ts',
componentsFolder: 'src/internals/components',
otherComponentFiles: ['src/DataGrid.tsx'],
}),
);

return projects;
};
2 changes: 1 addition & 1 deletion docs/translations/api-docs/data-grid/data-grid-pro-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"isGroupExpandedByDefault": "Determines if a group should be expanded after its creation. This prop takes priority over the <code>defaultGroupingExpansionDepth</code> prop.<br><br><strong>Signature:</strong><br><code>function(node: GridRowTreeNodeConfig) =&gt; boolean</code><br><em>node:</em> The node of the group to test.<br> <em>returns</em> (boolean): A boolean indicating if the group is expanded.",
"isRowSelectable": "Determines if a row can be selected.<br><br><strong>Signature:</strong><br><code>function(params: GridRowParams) =&gt; boolean</code><br><em>params:</em> With all properties from <a href=\"/api/data-grid/grid-row-params/\">GridRowParams</a>.<br> <em>returns</em> (boolean): A boolean indicating if the cell is selectable.",
"loading": "If <code>true</code>, a loading overlay is displayed.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/_modules_/grid/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/internals/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"logger": "Pass a custom logger in the components that implements the Logger interface.",
"logLevel": "Allows to pass the logging level or false to turn off logging.",
"nonce": "Nonce of the inline styles for <a href=\"https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute\">Content Security Policy</a>.",
Expand Down
2 changes: 1 addition & 1 deletion docs/translations/api-docs/data-grid/data-grid-pro-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"isGroupExpandedByDefault": "Determines if a group should be expanded after its creation. This prop takes priority over the <code>defaultGroupingExpansionDepth</code> prop.<br><br><strong>Signature:</strong><br><code>function(node: GridRowTreeNodeConfig) =&gt; boolean</code><br><em>node:</em> The node of the group to test.<br> <em>returns</em> (boolean): A boolean indicating if the group is expanded.",
"isRowSelectable": "Determines if a row can be selected.<br><br><strong>Signature:</strong><br><code>function(params: GridRowParams) =&gt; boolean</code><br><em>params:</em> With all properties from <a href=\"/api/data-grid/grid-row-params/\">GridRowParams</a>.<br> <em>returns</em> (boolean): A boolean indicating if the cell is selectable.",
"loading": "If <code>true</code>, a loading overlay is displayed.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/_modules_/grid/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/internals/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"logger": "Pass a custom logger in the components that implements the Logger interface.",
"logLevel": "Allows to pass the logging level or false to turn off logging.",
"nonce": "Nonce of the inline styles for <a href=\"https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute\">Content Security Policy</a>.",
Expand Down
2 changes: 1 addition & 1 deletion docs/translations/api-docs/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"isGroupExpandedByDefault": "Determines if a group should be expanded after its creation. This prop takes priority over the <code>defaultGroupingExpansionDepth</code> prop.<br><br><strong>Signature:</strong><br><code>function(node: GridRowTreeNodeConfig) =&gt; boolean</code><br><em>node:</em> The node of the group to test.<br> <em>returns</em> (boolean): A boolean indicating if the group is expanded.",
"isRowSelectable": "Determines if a row can be selected.<br><br><strong>Signature:</strong><br><code>function(params: GridRowParams) =&gt; boolean</code><br><em>params:</em> With all properties from <a href=\"/api/data-grid/grid-row-params/\">GridRowParams</a>.<br> <em>returns</em> (boolean): A boolean indicating if the cell is selectable.",
"loading": "If <code>true</code>, a loading overlay is displayed.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/_modules_/grid/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/internals/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"logger": "Pass a custom logger in the components that implements the Logger interface.",
"logLevel": "Allows to pass the logging level or false to turn off logging.",
"nonce": "Nonce of the inline styles for <a href=\"https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute\">Content Security Policy</a>.",
Expand Down
2 changes: 1 addition & 1 deletion docs/translations/api-docs/data-grid/data-grid-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"isCellEditable": "Callback fired when a cell is rendered, returns true if the cell is editable.<br><br><strong>Signature:</strong><br><code>function(params: GridCellParams) =&gt; boolean</code><br><em>params:</em> With all properties from <a href=\"/api/data-grid/grid-cell-params/\">GridCellParams</a>.<br> <em>returns</em> (boolean): A boolean indicating if the cell is editable.",
"isRowSelectable": "Determines if a row can be selected.<br><br><strong>Signature:</strong><br><code>function(params: GridRowParams) =&gt; boolean</code><br><em>params:</em> With all properties from <a href=\"/api/data-grid/grid-row-params/\">GridRowParams</a>.<br> <em>returns</em> (boolean): A boolean indicating if the cell is selectable.",
"loading": "If <code>true</code>, a loading overlay is displayed.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/_modules_/grid/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"localeText": "Set the locale text of the grid. You can find all the translation keys supported in <a href=\"https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/internals/constants/localeTextConstants.ts\">the source</a> in the GitHub repository.",
"logger": "Pass a custom logger in the components that implements the Logger interface.",
"logLevel": "Allows to pass the logging level or false to turn off logging.",
"nonce": "Nonce of the inline styles for <a href=\"https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute\">Content Security Policy</a>.",
Expand Down
Loading