-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release v0.1.62 (#95) * v0.1.51 * fix demo app build * v0.1.52 * v0.1.53 * v0.1.54 * v0.1.55 * v0.1.56 * v0.1.57 * v0.1.58 * v0.1.59 * add missing export * v0.1.60 * v0.1.61 * hot fix for tsconfig conf * fix mistypes on the package.json * fix empty space with prettier * v0.1.62 * fix lerna.json whitespace * fix resize issue (#96) * Bump eslint-config-airbnb-typescript from 8.0.2 to 9.0.0 (#112) * Pagination refactoring (#100) * implemented server pagination * rename pagination options, doc, prettier * fix lint * Apply suggestions from code review Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * change casing value in featureMode and remove apiref check * added missing dep in useEffect * fix broken suggestion code * fix doc comments * Apply suggestions from code review Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * Fix FeatureMode enum and remove useCallback in demo * fix import order * added namespace to function call to remove import * remove useCallback and add react. to mdx code * add concurrency in server pagination demo * fix feature mode export Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * [core] Use the classnames helper (#105) * [core] Batch small changes (#104) * [docs] Improve the JSDoc (#106) * rename events and add onHover event (#103) * rename events and added onHover event * rename events and added onHover event * fix onPageChange rename and merge * Js doc improvements Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * added hover stories * small fix and cleanup * revert rename, back to onRowSelected * refactor hover and click handlers * refactor cellParams * prettier Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * [test] Add yarn deduplicate step (#107) * [DataGrid] Set default logLevel to warn (#117) * override default logLevel to warn * rerun CI Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * [test] Lint JSON (#108) * Merging release back to master (#120) * v0.1.51 * fix demo app build * v0.1.52 * v0.1.53 * v0.1.54 * v0.1.55 * v0.1.56 * v0.1.57 * v0.1.58 * v0.1.59 * add missing export * v0.1.60 * v0.1.61 * hot fix for tsconfig conf * fix mistypes on the package.json * fix empty space with prettier * v0.1.62 * fix lerna.json whitespace * v0.1.63 * v0.1.64 * prettier lerna.json due to lerna * fix cellClassRule type, fix keyboard timeout, small refactoring (#123) * fix cellClassRule type, fix keyboard timeout, small refactoring * prettier fix * add cancel RAF for focus if new event coming * added keyboard doc (#125) * added keyboard doc * Apply suggestions from code review Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * [DataGrid] Fix selection issue (#126) * fix selection issue * fix selection issue test Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
- Loading branch information
1 parent
e6e7c92
commit b226105
Showing
20 changed files
with
207 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9 Bytes
(100%)
...-test-ts-snapshot-test-story-x-grid-tests-columns-update-columns-btn-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.3 KB
...-story-x-grid-tests-selection-multiple-select-with-checkbox-no-click-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+754 Bytes
(100%)
...-ts-snapshot-test-story-x-grid-tests-styling-column-cell-class-rules-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/storybook/src/documentation/pages/accessibility.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { XGrid } from '@material-ui/x-grid'; | ||
|
||
<Meta title="1. Docs/12. Accessibility" component={XGrid} /> | ||
|
||
# Accessibility | ||
|
||
Throughout our journey, accessibility has always been one of the core value of Material-UI components. | ||
Hence the data-grid has no less than 70 accessibility standards implemented in our first beta version. | ||
|
||
## Keyboard navigation | ||
|
||
| Keys | Description | | ||
| ---------------------------------------: | :------------------------------------------------ | | ||
| <kbd>Tab</kbd> | Navigate between selectable elements | | ||
| <kbd>Arrow Left</kbd> | Navigate between cell elements | | ||
| <kbd>Arrow Bottom</kbd> | Navigate between cell elements | | ||
| <kbd>Arrow Right</kbd> | Navigate between cell elements | | ||
| <kbd>Arrow Up</kbd> | Navigate between cell elements | | ||
| <kbd>Home</kbd> | Navigate to the first cell of the current row | | ||
| <kbd>End</kbd> | Navigate to the last cell of the current row | | ||
| <kbd>CMD/CTRL + Home</kbd> | Navigate to the first cell of the first row | | ||
| <kbd>CMD/CTRL + End</kbd> | Navigate to the last cell of the last row | | ||
| <kbd>Shift + Space</kbd> | Select the current row | | ||
| <kbd>Shift + Space + Arrow Up/Down</kbd> | Select the current row and the row above or below | | ||
| <kbd>Space</kbd> | Navigate to the next scrollable page | | ||
| <kbd>Page Up</kbd> | Navigate to the next scrollable page | | ||
| <kbd>Page Down</kbd> | Navigate to the previous scrollable page | | ||
| <kbd>CMD/CTRL + A</kbd> | Select all rows | | ||
| <kbd>CMD/CTRL + C</kbd> | Copy the currently selected row | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ | |
.unknown { | ||
background: coral; | ||
} | ||
.border { | ||
border: 1px solid orangered; | ||
} | ||
#root { | ||
top:0; | ||
left: 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* eslint-disable no-console */ | ||
const { spawn } = require('child_process'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const deduplicate = require('yarn-deduplicate'); | ||
|
||
const lockFile = path.resolve(__dirname, '../yarn.lock'); | ||
const yarnlock = fs.readFileSync(lockFile, 'utf8'); | ||
|
||
const duplicates = deduplicate.listDuplicates(yarnlock); | ||
if (duplicates.length === 0) { | ||
console.log('No duplicated packages found'); | ||
process.exit(0); | ||
} | ||
|
||
console.log( | ||
`${duplicates.length} duplicated package(s) found\n${duplicates.map((x) => ` ${x}`).join('\n')}`, | ||
); | ||
|
||
if (process.env.CI) { | ||
console.error( | ||
[ | ||
`Error: There are currently ${duplicates.length} duplicated package(s).`, | ||
`To deduplicate run "yarn deduplicate"`, | ||
].join('\n'), | ||
); | ||
process.exit(1); | ||
} | ||
|
||
console.log('Deduplicating package(s)'); | ||
fs.writeFileSync(lockFile, deduplicate.fixDuplicates(yarnlock)); | ||
|
||
const yarn = spawn('yarn', { | ||
shell: true, | ||
stdio: 'inherit', | ||
cwd: path.resolve(__dirname, '..'), | ||
}); | ||
|
||
yarn.on('close', (code) => { | ||
process.exit(code); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* eslint-disable no-console */ | ||
const chalk = require('chalk'); | ||
const fse = require('fs-extra'); | ||
const glob = require('glob-gitignore'); | ||
const path = require('path'); | ||
|
||
const passMessage = (message) => `✓ ${chalk.gray(message)}`; | ||
const failMessage = (message) => `✗ ${chalk.whiteBright(message)}`; | ||
|
||
async function run() { | ||
const workspaceRoot = path.resolve(__dirname, '..'); | ||
|
||
const eslintignoreContent = await fse.readFile(path.join(workspaceRoot, '.eslintignore'), { | ||
encoding: 'utf8', | ||
}); | ||
const eslintignore = eslintignoreContent.split(/\r?\n/).slice(0, -1); | ||
|
||
const filenames = glob.sync('**/*.json', { | ||
cwd: workspaceRoot, | ||
ignore: [...eslintignore, 'tsconfig*.json', 'tslint.json'], | ||
}); | ||
|
||
let passed = true; | ||
const checks = filenames.map(async (filename) => { | ||
const content = await fse.readFile(path.join(workspaceRoot, filename), { encoding: 'utf8' }); | ||
try { | ||
JSON.parse(content); | ||
console.log(passMessage(filename)); | ||
} catch (error) { | ||
passed = false; | ||
console.error(failMessage(`Error parsing ${filename}:\n\n${String(error)}`)); | ||
} | ||
}); | ||
|
||
await Promise.all(checks); | ||
if (passed === false) { | ||
throw new Error('At least one file did not pass. Check the console output'); | ||
} | ||
} | ||
|
||
run().catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
Oops, something went wrong.