diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index fab29456d103..749218b3547d 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -3,280 +3,280 @@ "languageTag": "ar-SD", "importName": "arSD", "localeName": "Arabic (Sudan)", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/arSD.ts" }, { "languageTag": "be-BY", "importName": "beBY", "localeName": "Belarusian", - "missingKeysCount": 30, - "totalKeysCount": 118, + "missingKeysCount": 34, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/beBY.ts" }, { "languageTag": "bg-BG", "importName": "bgBG", "localeName": "Bulgarian", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/bgBG.ts" }, { "languageTag": "zh-HK", "importName": "zhHK", "localeName": "Chinese (Hong Kong)", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhHK.ts" }, { "languageTag": "zh-CN", "importName": "zhCN", "localeName": "Chinese (Simplified)", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhCN.ts" }, { "languageTag": "zh-TW", "importName": "zhTW", "localeName": "Chinese (Taiwan)", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhTW.ts" }, { "languageTag": "hr-HR", "importName": "hrHR", "localeName": "Croatian", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/hrHR.ts" }, { "languageTag": "cs-CZ", "importName": "csCZ", "localeName": "Czech", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/csCZ.ts" }, { "languageTag": "da-DK", "importName": "daDK", "localeName": "Danish", - "missingKeysCount": 1, - "totalKeysCount": 118, + "missingKeysCount": 5, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/daDK.ts" }, { "languageTag": "nl-NL", "importName": "nlNL", "localeName": "Dutch", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/nlNL.ts" }, { "languageTag": "fi-FI", "importName": "fiFI", "localeName": "Finnish", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/fiFI.ts" }, { "languageTag": "fr-FR", "importName": "frFR", "localeName": "French", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/frFR.ts" }, { "languageTag": "de-DE", "importName": "deDE", "localeName": "German", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/deDE.ts" }, { "languageTag": "el-GR", "importName": "elGR", "localeName": "Greek", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/elGR.ts" }, { "languageTag": "he-IL", "importName": "heIL", "localeName": "Hebrew", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/heIL.ts" }, { "languageTag": "hu-HU", "importName": "huHU", "localeName": "Hungarian", - "missingKeysCount": 6, - "totalKeysCount": 118, + "missingKeysCount": 10, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/huHU.ts" }, { "languageTag": "is-IS", "importName": "isIS", "localeName": "Icelandic", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/isIS.ts" }, { "languageTag": "it-IT", "importName": "itIT", "localeName": "Italian", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/itIT.ts" }, { "languageTag": "ja-JP", "importName": "jaJP", "localeName": "Japanese", - "missingKeysCount": 1, - "totalKeysCount": 118, + "missingKeysCount": 5, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/jaJP.ts" }, { "languageTag": "ko-KR", "importName": "koKR", "localeName": "Korean", - "missingKeysCount": 31, - "totalKeysCount": 118, + "missingKeysCount": 35, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/koKR.ts" }, { "languageTag": "nb-NO", "importName": "nbNO", "localeName": "Norwegian (Bokmål)", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/nbNO.ts" }, { "languageTag": "nn-NO", "importName": "nnNO", "localeName": "Norwegian (Nynorsk)", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/nnNO.ts" }, { "languageTag": "fa-IR", "importName": "faIR", "localeName": "Persian", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/faIR.ts" }, { "languageTag": "pl-PL", "importName": "plPL", "localeName": "Polish", - "missingKeysCount": 31, - "totalKeysCount": 118, + "missingKeysCount": 35, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/plPL.ts" }, { "languageTag": "pt-PT", "importName": "ptPT", "localeName": "Portuguese", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ptPT.ts" }, { "languageTag": "pt-BR", "importName": "ptBR", "localeName": "Portuguese (Brazil)", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ptBR.ts" }, { "languageTag": "ro-RO", "importName": "roRO", "localeName": "Romanian", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/roRO.ts" }, { "languageTag": "ru-RU", "importName": "ruRU", "localeName": "Russian", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ruRU.ts" }, { "languageTag": "sk-SK", "importName": "skSK", "localeName": "Slovak", - "missingKeysCount": 1, - "totalKeysCount": 118, + "missingKeysCount": 5, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/skSK.ts" }, { "languageTag": "es-ES", "importName": "esES", "localeName": "Spanish", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/esES.ts" }, { "languageTag": "sv-SE", "importName": "svSE", "localeName": "Swedish", - "missingKeysCount": 1, - "totalKeysCount": 118, + "missingKeysCount": 5, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/svSE.ts" }, { "languageTag": "tr-TR", "importName": "trTR", "localeName": "Turkish", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/trTR.ts" }, { "languageTag": "uk-UA", "importName": "ukUA", "localeName": "Ukrainian", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ukUA.ts" }, { "languageTag": "ur-PK", "importName": "urPK", "localeName": "Urdu (Pakistan)", - "missingKeysCount": 4, - "totalKeysCount": 118, + "missingKeysCount": 8, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/urPK.ts" }, { "languageTag": "vi-VN", "importName": "viVN", "localeName": "Vietnamese", - "missingKeysCount": 0, - "totalKeysCount": 118, + "missingKeysCount": 4, + "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/viVN.ts" } ] diff --git a/packages/x-data-grid/src/colDef/gridStringOperators.ts b/packages/x-data-grid/src/colDef/gridStringOperators.ts index 5d35dc96e696..00c0c0a5b82f 100644 --- a/packages/x-data-grid/src/colDef/gridStringOperators.ts +++ b/packages/x-data-grid/src/colDef/gridStringOperators.ts @@ -38,6 +38,21 @@ export const getGridStringOperators = ( }, InputComponent: GridFilterInputValue, }, + { + value: 'doesNotContain', + getApplyFilterFn: (filterItem: GridFilterItem) => { + if (!filterItem.value) { + return null; + } + const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim(); + + const filterRegex = new RegExp(escapeRegExp(filterItemValue), 'i'); + return (value): boolean => { + return value != null ? !filterRegex.test(String(value)) : true; + }; + }, + InputComponent: GridFilterInputValue, + }, { value: 'equals', getApplyFilterFn: (filterItem: GridFilterItem) => { @@ -53,6 +68,21 @@ export const getGridStringOperators = ( }, InputComponent: GridFilterInputValue, }, + { + value: 'doesNotEqual', + getApplyFilterFn: (filterItem: GridFilterItem) => { + if (!filterItem.value) { + return null; + } + const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim(); + + const collator = new Intl.Collator(undefined, { sensitivity: 'base', usage: 'search' }); + return (value): boolean => { + return value != null ? collator.compare(filterItemValue, value.toString()) !== 0 : true; + }; + }, + InputComponent: GridFilterInputValue, + }, { value: 'startsWith', getApplyFilterFn: (filterItem: GridFilterItem) => { diff --git a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx index c30e5af630d0..7b77c926b43a 100644 --- a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx +++ b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx @@ -180,7 +180,7 @@ const FilterFormOperatorInput = styled('div', { name: 'MuiDataGrid', slot: 'FilterFormOperatorInput', overridesResolver: (_, styles) => styles.filterFormOperatorInput, -})<{ ownerState: OwnerState }>({ width: 120 }); +})<{ ownerState: OwnerState }>({ width: 150 }); const FilterFormValueInput = styled('div', { name: 'MuiDataGrid', diff --git a/packages/x-data-grid/src/constants/localeTextConstants.ts b/packages/x-data-grid/src/constants/localeTextConstants.ts index 9e250f030f7d..c0d29a97a0e9 100644 --- a/packages/x-data-grid/src/constants/localeTextConstants.ts +++ b/packages/x-data-grid/src/constants/localeTextConstants.ts @@ -56,7 +56,9 @@ export const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText = { // Filter operators text filterOperatorContains: 'contains', + filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'equals', + filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'starts with', filterOperatorEndsWith: 'ends with', filterOperatorIs: 'is', @@ -77,7 +79,9 @@ export const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText = { // Header filter operators text headerFilterOperatorContains: 'Contains', + headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Equals', + headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Starts with', headerFilterOperatorEndsWith: 'Ends with', headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/arSD.ts b/packages/x-data-grid/src/locales/arSD.ts index a7e21456418e..5d3ebd5993e5 100644 --- a/packages/x-data-grid/src/locales/arSD.ts +++ b/packages/x-data-grid/src/locales/arSD.ts @@ -58,7 +58,9 @@ const arSDGrid: Partial = { // Filter operators text filterOperatorContains: 'يحتوي', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'يساوي', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'يبدأ بـ', filterOperatorEndsWith: 'ينتهي بـ', filterOperatorIs: 'يكون', @@ -79,7 +81,9 @@ const arSDGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'يحتوي على', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'يساوي', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'يبدأ ب', headerFilterOperatorEndsWith: 'ينتهي ب', headerFilterOperatorIs: 'هو', diff --git a/packages/x-data-grid/src/locales/beBY.ts b/packages/x-data-grid/src/locales/beBY.ts index b10dd30d81fd..bba9d37e0fbd 100644 --- a/packages/x-data-grid/src/locales/beBY.ts +++ b/packages/x-data-grid/src/locales/beBY.ts @@ -81,7 +81,9 @@ const beBYGrid: Partial = { // Filter operators text filterOperatorContains: 'змяшчае', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'роўны', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'пачынаецца з', filterOperatorEndsWith: 'скончваецца на', filterOperatorIs: 'роўны', @@ -102,7 +104,9 @@ const beBYGrid: Partial = { // Header filter operators text // headerFilterOperatorContains: 'Contains', + // headerFilterOperatorDoesNotContain: 'Does not contain', // headerFilterOperatorEquals: 'Equals', + // headerFilterOperatorDoesNotEqual: 'Does not equal', // headerFilterOperatorStartsWith: 'Starts with', // headerFilterOperatorEndsWith: 'Ends with', // headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/bgBG.ts b/packages/x-data-grid/src/locales/bgBG.ts index 9dccb867a252..01420eeb886f 100644 --- a/packages/x-data-grid/src/locales/bgBG.ts +++ b/packages/x-data-grid/src/locales/bgBG.ts @@ -57,7 +57,9 @@ const bgBGGrid: Partial = { // Filter operators text filterOperatorContains: 'съдържа', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'равно', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'започва с', filterOperatorEndsWith: 'завършва с', filterOperatorIs: 'е', @@ -78,7 +80,9 @@ const bgBGGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Съдържа', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Равнo', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Започва с', headerFilterOperatorEndsWith: 'Завършва с', headerFilterOperatorIs: 'Равно е на', diff --git a/packages/x-data-grid/src/locales/csCZ.ts b/packages/x-data-grid/src/locales/csCZ.ts index 420a6fa81191..c5b26a3ce10e 100644 --- a/packages/x-data-grid/src/locales/csCZ.ts +++ b/packages/x-data-grid/src/locales/csCZ.ts @@ -65,7 +65,9 @@ const csCZGrid: Partial = { // Filter operators text filterOperatorContains: 'obsahuje', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'rovná se', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'začíná na', filterOperatorEndsWith: 'končí na', filterOperatorIs: 'je', @@ -86,7 +88,9 @@ const csCZGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Obsahuje', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Rovná se', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Začíná na', headerFilterOperatorEndsWith: 'Končí na', headerFilterOperatorIs: 'Je', diff --git a/packages/x-data-grid/src/locales/daDK.ts b/packages/x-data-grid/src/locales/daDK.ts index 903707551090..9e31979bb081 100644 --- a/packages/x-data-grid/src/locales/daDK.ts +++ b/packages/x-data-grid/src/locales/daDK.ts @@ -58,7 +58,9 @@ const daDKGrid: Partial = { // Filter operators text filterOperatorContains: 'indeholder', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'lig med', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'begynder med', filterOperatorEndsWith: 'ender med', filterOperatorIs: 'er lig med', @@ -79,7 +81,9 @@ const daDKGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Indeholder', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Lig med', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Begynder med', headerFilterOperatorEndsWith: 'Ender med', headerFilterOperatorIs: 'Er lig med', diff --git a/packages/x-data-grid/src/locales/deDE.ts b/packages/x-data-grid/src/locales/deDE.ts index 6d4faf098abd..38787ebf21ae 100644 --- a/packages/x-data-grid/src/locales/deDE.ts +++ b/packages/x-data-grid/src/locales/deDE.ts @@ -58,7 +58,9 @@ const deDEGrid: Partial = { // Filter operators text filterOperatorContains: 'enthält', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'ist gleich', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'beginnt mit', filterOperatorEndsWith: 'endet mit', filterOperatorIs: 'ist', @@ -79,7 +81,9 @@ const deDEGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Enthält', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Gleich', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Beginnt mit', headerFilterOperatorEndsWith: 'Endet mit', headerFilterOperatorIs: 'Ist', diff --git a/packages/x-data-grid/src/locales/elGR.ts b/packages/x-data-grid/src/locales/elGR.ts index be950a449d3b..dbd6bdc36f3d 100644 --- a/packages/x-data-grid/src/locales/elGR.ts +++ b/packages/x-data-grid/src/locales/elGR.ts @@ -58,7 +58,9 @@ const elGRGrid: Partial = { // Filter operators text filterOperatorContains: 'περιέχει', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'ισούται', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'ξεκινάει με', filterOperatorEndsWith: 'τελειώνει με', filterOperatorIs: 'είναι', @@ -79,7 +81,9 @@ const elGRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Περιέχει', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Ισούται', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Ξεκινάει με', headerFilterOperatorEndsWith: 'Τελειώνει με', headerFilterOperatorIs: 'Είναι', diff --git a/packages/x-data-grid/src/locales/esES.ts b/packages/x-data-grid/src/locales/esES.ts index 6393ea8f9506..8547eb2602ea 100644 --- a/packages/x-data-grid/src/locales/esES.ts +++ b/packages/x-data-grid/src/locales/esES.ts @@ -58,7 +58,9 @@ const esESGrid: Partial = { // Filter operators text filterOperatorContains: 'contiene', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'es igual', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'comienza con', filterOperatorEndsWith: 'termina con', filterOperatorIs: 'es', @@ -79,7 +81,9 @@ const esESGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Contiene', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Es igual a', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Comienza con', headerFilterOperatorEndsWith: 'Termina con', headerFilterOperatorIs: 'Es', diff --git a/packages/x-data-grid/src/locales/faIR.ts b/packages/x-data-grid/src/locales/faIR.ts index 80da042c1396..41dbdd4ca402 100644 --- a/packages/x-data-grid/src/locales/faIR.ts +++ b/packages/x-data-grid/src/locales/faIR.ts @@ -58,7 +58,9 @@ const faIRGrid: Partial = { // Filter operators text filterOperatorContains: 'شامل', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'مساوی', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'شروع با', filterOperatorEndsWith: 'پایان با', filterOperatorIs: 'هست', @@ -79,7 +81,9 @@ const faIRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'شامل', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'مساوی', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'شروع با', headerFilterOperatorEndsWith: 'پایان با', headerFilterOperatorIs: 'هست', diff --git a/packages/x-data-grid/src/locales/fiFI.ts b/packages/x-data-grid/src/locales/fiFI.ts index ba94f12f0644..d8fee01123fb 100644 --- a/packages/x-data-grid/src/locales/fiFI.ts +++ b/packages/x-data-grid/src/locales/fiFI.ts @@ -58,7 +58,9 @@ const fiFIGrid: Partial = { // Filter operators text filterOperatorContains: 'sisältää', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'on yhtä suuri kuin', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'alkaa', filterOperatorEndsWith: 'päättyy', filterOperatorIs: 'on', @@ -79,7 +81,9 @@ const fiFIGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Sisältää', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'On yhtä suuri kuin', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Alkaa', headerFilterOperatorEndsWith: 'Päättyy', headerFilterOperatorIs: 'On', diff --git a/packages/x-data-grid/src/locales/frFR.ts b/packages/x-data-grid/src/locales/frFR.ts index 7f6d91858cf9..2b1f3805a77a 100644 --- a/packages/x-data-grid/src/locales/frFR.ts +++ b/packages/x-data-grid/src/locales/frFR.ts @@ -58,7 +58,9 @@ const frFRGrid: Partial = { // Filter operators text filterOperatorContains: 'contient', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'est égal à', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'commence par', filterOperatorEndsWith: 'se termine par', filterOperatorIs: 'est', @@ -79,7 +81,9 @@ const frFRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Contient', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Est égal à', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Commence par', headerFilterOperatorEndsWith: 'Se termine par', headerFilterOperatorIs: 'Est', diff --git a/packages/x-data-grid/src/locales/heIL.ts b/packages/x-data-grid/src/locales/heIL.ts index aad7217923e9..61556403a76a 100644 --- a/packages/x-data-grid/src/locales/heIL.ts +++ b/packages/x-data-grid/src/locales/heIL.ts @@ -58,7 +58,9 @@ const heILGrid: Partial = { // Filter operators text filterOperatorContains: 'מכיל', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'שווה', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'מתחיל ב-', filterOperatorEndsWith: 'נגמר ב-', filterOperatorIs: 'הינו', @@ -79,7 +81,9 @@ const heILGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'מכיל', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'שווה', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'מתחיל ב-', headerFilterOperatorEndsWith: 'נגמר ב-', headerFilterOperatorIs: 'הינו', diff --git a/packages/x-data-grid/src/locales/hrHR.ts b/packages/x-data-grid/src/locales/hrHR.ts index 810bb643c637..3691ee737004 100644 --- a/packages/x-data-grid/src/locales/hrHR.ts +++ b/packages/x-data-grid/src/locales/hrHR.ts @@ -58,7 +58,9 @@ const hrHRGrid: Partial = { // Filter operators text filterOperatorContains: 'sadrži', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'jednaki', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'počinje sa', filterOperatorEndsWith: 'završava sa', filterOperatorIs: 'je', @@ -79,7 +81,9 @@ const hrHRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Sadrži', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Jednako', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Počinje sa', headerFilterOperatorEndsWith: 'Završava s', headerFilterOperatorIs: 'Je', diff --git a/packages/x-data-grid/src/locales/huHU.ts b/packages/x-data-grid/src/locales/huHU.ts index d2ef0c74e648..83c03dd7b42d 100644 --- a/packages/x-data-grid/src/locales/huHU.ts +++ b/packages/x-data-grid/src/locales/huHU.ts @@ -57,7 +57,9 @@ const huHUGrid: Partial = { // Filter operators text filterOperatorContains: 'tartalmazza:', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'egyenlő ezzel:', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'ezzel kezdődik:', filterOperatorEndsWith: 'ezzel végződik:', filterOperatorIs: 'a következő:', @@ -78,7 +80,9 @@ const huHUGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Tartalmazza:', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Egyenlő ezzel:', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Ezzel kezdődik:', headerFilterOperatorEndsWith: 'Ezzel végződik:', // headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/isIS.ts b/packages/x-data-grid/src/locales/isIS.ts index 00ccef4cd83c..307231873d9d 100644 --- a/packages/x-data-grid/src/locales/isIS.ts +++ b/packages/x-data-grid/src/locales/isIS.ts @@ -58,7 +58,9 @@ const isISGrid: Partial = { // Filter operators text filterOperatorContains: 'inniheldur', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'jafnt og', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'byrjar með', filterOperatorEndsWith: 'endar með', filterOperatorIs: 'er líka með', @@ -79,7 +81,9 @@ const isISGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Inniheldur', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Jafnt og', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Byrjar með', headerFilterOperatorEndsWith: 'Endar með', headerFilterOperatorIs: 'Er jafnt og', diff --git a/packages/x-data-grid/src/locales/itIT.ts b/packages/x-data-grid/src/locales/itIT.ts index a3f37daa1ab3..31b09da652c5 100644 --- a/packages/x-data-grid/src/locales/itIT.ts +++ b/packages/x-data-grid/src/locales/itIT.ts @@ -58,7 +58,9 @@ const itITGrid: Partial = { // Filter operators text filterOperatorContains: 'contiene', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'uguale a', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'comincia per', filterOperatorEndsWith: 'termina per', filterOperatorIs: 'uguale a', @@ -79,7 +81,9 @@ const itITGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Contiene', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'uguale a', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'comincia per', headerFilterOperatorEndsWith: 'termina per', headerFilterOperatorIs: 'uguale a', diff --git a/packages/x-data-grid/src/locales/jaJP.ts b/packages/x-data-grid/src/locales/jaJP.ts index 716735e96847..e34a41428381 100644 --- a/packages/x-data-grid/src/locales/jaJP.ts +++ b/packages/x-data-grid/src/locales/jaJP.ts @@ -57,7 +57,9 @@ const jaJPGrid: Partial = { // Filter operators text filterOperatorContains: '...を含む', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: '...に等しい', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: '...で始まる', filterOperatorEndsWith: '...で終わる', filterOperatorIs: '...である', @@ -78,7 +80,9 @@ const jaJPGrid: Partial = { // Header filter operators text headerFilterOperatorContains: '含む', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: '等しい', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'で始まる', headerFilterOperatorEndsWith: 'で終わる', headerFilterOperatorIs: 'である', diff --git a/packages/x-data-grid/src/locales/koKR.ts b/packages/x-data-grid/src/locales/koKR.ts index 6f0546460d61..671f6abd0520 100644 --- a/packages/x-data-grid/src/locales/koKR.ts +++ b/packages/x-data-grid/src/locales/koKR.ts @@ -57,7 +57,9 @@ const koKRGrid: Partial = { // Filter operators text filterOperatorContains: '포함하는', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: '값이 같은', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: '시작하는', filterOperatorEndsWith: '끝나는', filterOperatorIs: '~인', @@ -78,7 +80,9 @@ const koKRGrid: Partial = { // Header filter operators text // headerFilterOperatorContains: 'Contains', + // headerFilterOperatorDoesNotContain: 'Does not contain', // headerFilterOperatorEquals: 'Equals', + // headerFilterOperatorDoesNotEqual: 'Does not equal', // headerFilterOperatorStartsWith: 'Starts with', // headerFilterOperatorEndsWith: 'Ends with', // headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/nbNO.ts b/packages/x-data-grid/src/locales/nbNO.ts index 16de342b6999..9fa25b0cc4f8 100644 --- a/packages/x-data-grid/src/locales/nbNO.ts +++ b/packages/x-data-grid/src/locales/nbNO.ts @@ -58,7 +58,9 @@ const nbNOGrid: Partial = { // Filter operators text filterOperatorContains: 'inneholder', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'er lik', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'starter med', filterOperatorEndsWith: 'slutter med', filterOperatorIs: 'er', @@ -79,7 +81,9 @@ const nbNOGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Inneholder', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Lik', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Starter på', headerFilterOperatorEndsWith: 'Slutter på', headerFilterOperatorIs: 'Er', diff --git a/packages/x-data-grid/src/locales/nlNL.ts b/packages/x-data-grid/src/locales/nlNL.ts index d60dd87015c1..ccc1f5378ab4 100644 --- a/packages/x-data-grid/src/locales/nlNL.ts +++ b/packages/x-data-grid/src/locales/nlNL.ts @@ -58,7 +58,9 @@ const nlNLGrid: Partial = { // Filter operators text filterOperatorContains: 'bevat', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'gelijk aan', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'begint met', filterOperatorEndsWith: 'eindigt met', filterOperatorIs: 'is', @@ -79,7 +81,9 @@ const nlNLGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Bevat', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Gelijk aan', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Begint met', headerFilterOperatorEndsWith: 'Eindigt met', headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/nnNO.ts b/packages/x-data-grid/src/locales/nnNO.ts index 8ef20a566b6c..58595a0a4456 100644 --- a/packages/x-data-grid/src/locales/nnNO.ts +++ b/packages/x-data-grid/src/locales/nnNO.ts @@ -58,7 +58,9 @@ const nnNOGrid: Partial = { // Filter operators text filterOperatorContains: 'inneheld', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'er lik', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'startar med', filterOperatorEndsWith: 'sluttar med', filterOperatorIs: 'er', @@ -79,7 +81,9 @@ const nnNOGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Inneheld', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Lik', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Startar på', headerFilterOperatorEndsWith: 'Sluttar på', headerFilterOperatorIs: 'Er', diff --git a/packages/x-data-grid/src/locales/plPL.ts b/packages/x-data-grid/src/locales/plPL.ts index bf9bcb6eae46..07ea181044ea 100644 --- a/packages/x-data-grid/src/locales/plPL.ts +++ b/packages/x-data-grid/src/locales/plPL.ts @@ -57,7 +57,9 @@ const plPLGrid: Partial = { // Filter operators text filterOperatorContains: 'zawiera', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'równa się', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'zaczyna się od', filterOperatorEndsWith: 'kończy się na', filterOperatorIs: 'równa się', @@ -78,7 +80,9 @@ const plPLGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Zawiera', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Równa się', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Zaczyna się od', headerFilterOperatorEndsWith: 'Kończy się na', // headerFilterOperatorIs: 'Is', diff --git a/packages/x-data-grid/src/locales/ptBR.ts b/packages/x-data-grid/src/locales/ptBR.ts index 09480e624907..bd9a3153b868 100644 --- a/packages/x-data-grid/src/locales/ptBR.ts +++ b/packages/x-data-grid/src/locales/ptBR.ts @@ -58,7 +58,9 @@ const ptBRGrid: Partial = { // Filter operators text filterOperatorContains: 'contém', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'é igual a', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'começa com', filterOperatorEndsWith: 'termina com', filterOperatorIs: 'é', @@ -79,7 +81,9 @@ const ptBRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Contém', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Igual', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Começa com', headerFilterOperatorEndsWith: 'Termina com', headerFilterOperatorIs: 'É', diff --git a/packages/x-data-grid/src/locales/ptPT.ts b/packages/x-data-grid/src/locales/ptPT.ts index 9c1e56604e5f..892802ec2cc4 100644 --- a/packages/x-data-grid/src/locales/ptPT.ts +++ b/packages/x-data-grid/src/locales/ptPT.ts @@ -58,7 +58,9 @@ const ptPTGrid: Partial = { // Filter operators text filterOperatorContains: 'contém', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'é igual a', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'começa com', filterOperatorEndsWith: 'termina com', filterOperatorIs: 'é', @@ -79,7 +81,9 @@ const ptPTGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Contém', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'É igual a', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Começa com', headerFilterOperatorEndsWith: 'Termina com', headerFilterOperatorIs: 'É', diff --git a/packages/x-data-grid/src/locales/roRO.ts b/packages/x-data-grid/src/locales/roRO.ts index b9e9cf9c8411..2a2db174eeac 100644 --- a/packages/x-data-grid/src/locales/roRO.ts +++ b/packages/x-data-grid/src/locales/roRO.ts @@ -58,7 +58,9 @@ const roROGrid: Partial = { // Filter operators text filterOperatorContains: 'conține', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'este egal cu', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'începe cu', filterOperatorEndsWith: 'se termină cu', filterOperatorIs: 'este', @@ -79,7 +81,9 @@ const roROGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Conține', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Egal cu', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Începe cu', headerFilterOperatorEndsWith: 'Se termină cu', headerFilterOperatorIs: 'Este', diff --git a/packages/x-data-grid/src/locales/ruRU.ts b/packages/x-data-grid/src/locales/ruRU.ts index 5118149bd36a..54a7b8514962 100644 --- a/packages/x-data-grid/src/locales/ruRU.ts +++ b/packages/x-data-grid/src/locales/ruRU.ts @@ -82,7 +82,9 @@ const ruRUGrid: Partial = { // Filter operators text filterOperatorContains: 'содержит', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'равен', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'начинается с', filterOperatorEndsWith: 'заканчивается на', filterOperatorIs: 'равен', @@ -103,7 +105,9 @@ const ruRUGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'содержит', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'равен', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'начинается с', headerFilterOperatorEndsWith: 'заканчивается на', headerFilterOperatorIs: 'равен', diff --git a/packages/x-data-grid/src/locales/skSK.ts b/packages/x-data-grid/src/locales/skSK.ts index 4106d3cb3482..f1d2f3be0513 100644 --- a/packages/x-data-grid/src/locales/skSK.ts +++ b/packages/x-data-grid/src/locales/skSK.ts @@ -65,7 +65,9 @@ const skSKGrid: Partial = { // Filter operators text filterOperatorContains: 'obsahuje', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'rovná sa', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'začína s', filterOperatorEndsWith: 'končí na', filterOperatorIs: 'je', @@ -86,7 +88,9 @@ const skSKGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Obsahuje', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Rovná sa', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Začína s', headerFilterOperatorEndsWith: 'Končí na', headerFilterOperatorIs: 'Je', diff --git a/packages/x-data-grid/src/locales/svSE.ts b/packages/x-data-grid/src/locales/svSE.ts index dbb5add8ddd4..516d93b53f01 100644 --- a/packages/x-data-grid/src/locales/svSE.ts +++ b/packages/x-data-grid/src/locales/svSE.ts @@ -58,7 +58,9 @@ const svSEGrid: Partial = { // Filter operators text filterOperatorContains: 'innehåller', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'lika med', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'börjar med', filterOperatorEndsWith: 'slutar med', filterOperatorIs: 'är', @@ -79,7 +81,9 @@ const svSEGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Innehåller', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Lika med', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Börjar med', headerFilterOperatorEndsWith: 'Slutar med', headerFilterOperatorIs: 'Är', diff --git a/packages/x-data-grid/src/locales/trTR.ts b/packages/x-data-grid/src/locales/trTR.ts index fbbd318ff9ca..1ef472441f6c 100644 --- a/packages/x-data-grid/src/locales/trTR.ts +++ b/packages/x-data-grid/src/locales/trTR.ts @@ -57,7 +57,9 @@ const trTRGrid: Partial = { // Filter operators text filterOperatorContains: 'içerir', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'eşittir', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'ile başlar', filterOperatorEndsWith: 'ile biter', filterOperatorIs: 'eşittir', @@ -78,7 +80,9 @@ const trTRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Şunu içerir', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Şuna eşittir', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Şununla başlar', headerFilterOperatorEndsWith: 'Şununla biter', headerFilterOperatorIs: 'Eşittir', diff --git a/packages/x-data-grid/src/locales/ukUA.ts b/packages/x-data-grid/src/locales/ukUA.ts index bfb45ead7c68..456bf8b00f06 100644 --- a/packages/x-data-grid/src/locales/ukUA.ts +++ b/packages/x-data-grid/src/locales/ukUA.ts @@ -82,7 +82,9 @@ const ukUAGrid: Partial = { // Filter operators text filterOperatorContains: 'містить', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'дорівнює', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'починається з', filterOperatorEndsWith: 'закінчується на', filterOperatorIs: 'дорівнює', @@ -103,7 +105,9 @@ const ukUAGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Містить', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Дорівнює', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Починається з', headerFilterOperatorEndsWith: 'Закінчується на', headerFilterOperatorIs: 'Дорівнює', diff --git a/packages/x-data-grid/src/locales/urPK.ts b/packages/x-data-grid/src/locales/urPK.ts index 13c4e58b189b..2001e0ea29d1 100644 --- a/packages/x-data-grid/src/locales/urPK.ts +++ b/packages/x-data-grid/src/locales/urPK.ts @@ -58,7 +58,9 @@ const urPKGrid: Partial = { // Filter operators text filterOperatorContains: 'شامل ہے', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'برابر ہے', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'شروع ہوتا ہے', filterOperatorEndsWith: 'ختم ہوتا ہے', filterOperatorIs: 'ہے', @@ -79,7 +81,9 @@ const urPKGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'شامل ہے', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'برابر ہے', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'شروع ہوتا ہے', headerFilterOperatorEndsWith: 'ختم ہوتا ہے', headerFilterOperatorIs: 'ہے', diff --git a/packages/x-data-grid/src/locales/viVN.ts b/packages/x-data-grid/src/locales/viVN.ts index 94ca679d2cde..389cd79b4acf 100644 --- a/packages/x-data-grid/src/locales/viVN.ts +++ b/packages/x-data-grid/src/locales/viVN.ts @@ -58,7 +58,9 @@ const viVNGrid: Partial = { // Filter operators text filterOperatorContains: 'Chứa', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: 'Bằng', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: 'Bắt đầu bằng', filterOperatorEndsWith: 'Kết thúc bằng', filterOperatorIs: 'Là', @@ -79,7 +81,9 @@ const viVNGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Chứa', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: 'Bằng', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: 'Bắt đầu với', headerFilterOperatorEndsWith: 'Kết thúc với', headerFilterOperatorIs: 'là', diff --git a/packages/x-data-grid/src/locales/zhCN.ts b/packages/x-data-grid/src/locales/zhCN.ts index 7e4aa7aa81f8..0de5f7988f01 100644 --- a/packages/x-data-grid/src/locales/zhCN.ts +++ b/packages/x-data-grid/src/locales/zhCN.ts @@ -57,7 +57,9 @@ const zhCNGrid: Partial = { // Filter operators text filterOperatorContains: '包含', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: '等于', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: '开始于', filterOperatorEndsWith: '结束于', filterOperatorIs: '是', @@ -78,7 +80,9 @@ const zhCNGrid: Partial = { // Header filter operators text headerFilterOperatorContains: '包含', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: '等于', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: '开始于', headerFilterOperatorEndsWith: '结束于', headerFilterOperatorIs: '是', diff --git a/packages/x-data-grid/src/locales/zhHK.ts b/packages/x-data-grid/src/locales/zhHK.ts index ec6b193f07fd..3f53e6b7d9ee 100644 --- a/packages/x-data-grid/src/locales/zhHK.ts +++ b/packages/x-data-grid/src/locales/zhHK.ts @@ -58,7 +58,9 @@ const zhHKGrid: Partial = { // Filter operators text filterOperatorContains: '包含', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: '等於', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: '以。。開始', filterOperatorEndsWith: '以。。結束', filterOperatorIs: '是', @@ -79,7 +81,9 @@ const zhHKGrid: Partial = { // Header filter operators text headerFilterOperatorContains: '包含', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: '等於', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: '以。。開始', headerFilterOperatorEndsWith: '以。。結束', headerFilterOperatorIs: '是', diff --git a/packages/x-data-grid/src/locales/zhTW.ts b/packages/x-data-grid/src/locales/zhTW.ts index 6197d8122307..facba1f16343 100644 --- a/packages/x-data-grid/src/locales/zhTW.ts +++ b/packages/x-data-grid/src/locales/zhTW.ts @@ -57,7 +57,9 @@ const zhTWGrid: Partial = { // Filter operators text filterOperatorContains: '包含', + // filterOperatorDoesNotContain: 'does not contain', filterOperatorEquals: '等於', + // filterOperatorDoesNotEqual: 'does not equal', filterOperatorStartsWith: '以...開頭', filterOperatorEndsWith: '以...結束', filterOperatorIs: '為', @@ -78,7 +80,9 @@ const zhTWGrid: Partial = { // Header filter operators text headerFilterOperatorContains: '包含', + // headerFilterOperatorDoesNotContain: 'Does not contain', headerFilterOperatorEquals: '等於', + // headerFilterOperatorDoesNotEqual: 'Does not equal', headerFilterOperatorStartsWith: '以...開頭', headerFilterOperatorEndsWith: '以...結束', headerFilterOperatorIs: '為', diff --git a/packages/x-data-grid/src/models/api/gridLocaleTextApi.ts b/packages/x-data-grid/src/models/api/gridLocaleTextApi.ts index 0c8b4ef2f874..b2ce738ff721 100644 --- a/packages/x-data-grid/src/models/api/gridLocaleTextApi.ts +++ b/packages/x-data-grid/src/models/api/gridLocaleTextApi.ts @@ -68,7 +68,9 @@ export interface GridLocaleText { // Filter operators text filterOperatorContains: string; + filterOperatorDoesNotContain: string; filterOperatorEquals: string; + filterOperatorDoesNotEqual: string; filterOperatorStartsWith: string; filterOperatorEndsWith: string; filterOperatorIs: string; @@ -89,7 +91,9 @@ export interface GridLocaleText { // Header filter operators text headerFilterOperatorContains: string; + headerFilterOperatorDoesNotContain: string; headerFilterOperatorEquals: string; + headerFilterOperatorDoesNotEqual: string; headerFilterOperatorStartsWith: string; headerFilterOperatorEndsWith: string; headerFilterOperatorIs: string; diff --git a/packages/x-data-grid/src/tests/filtering.DataGrid.test.tsx b/packages/x-data-grid/src/tests/filtering.DataGrid.test.tsx index b67d56f5a4be..a73d332d63c8 100644 --- a/packages/x-data-grid/src/tests/filtering.DataGrid.test.tsx +++ b/packages/x-data-grid/src/tests/filtering.DataGrid.test.tsx @@ -349,6 +349,74 @@ describe(' - Filter', () => { }); }); + it('should filter with operator "does not contain"', () => { + testEval(() => { + expect(getRows({ operator: 'doesNotContain', value: 'Fra' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Trim value + expect(getRows({ operator: 'doesNotContain', value: ' Fra ' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Case-insensitive + expect(getRows({ operator: 'doesNotContain', value: 'fra' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Number casting + expect(getRows({ operator: 'doesNotContain', value: '0' })).to.deep.equal([ + '', + '', + '', + 'France (fr)', + 'Germany', + '1', + ]); + expect(getRows({ operator: 'doesNotContain', value: '1' })).to.deep.equal([ + '', + '', + '', + 'France (fr)', + 'Germany', + '0', + ]); + + // Empty values + expect(getRows({ operator: 'doesNotContain', value: undefined })).to.deep.equal(ALL_ROWS); + expect(getRows({ operator: 'doesNotContain', value: '' })).to.deep.equal(ALL_ROWS); + + // Value with regexp special literal + expect( + getRows({ operator: 'doesNotContain', value: '[-[]{}()*+?.,\\^$|#s]' }), + ).to.deep.equal(ALL_ROWS); + expect(getRows({ operator: 'doesNotContain', value: '(fr)' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + }); + }); + it('should filter with operator "equals"', () => { expect(getRows({ operator: 'equals', value: 'France (fr)' })).to.deep.equal(['France (fr)']); @@ -369,6 +437,59 @@ describe(' - Filter', () => { expect(getRows({ operator: 'equals', value: '' })).to.deep.equal(ALL_ROWS); }); + it('should filter with operator "doesNotEqual"', () => { + expect(getRows({ operator: 'doesNotEqual', value: 'France (fr)' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Trim value + expect(getRows({ operator: 'doesNotEqual', value: ' France (fr) ' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Case-insensitive + expect(getRows({ operator: 'doesNotEqual', value: 'france (fr)' })).to.deep.equal([ + '', + '', + '', + 'Germany', + '0', + '1', + ]); + + // Number casting + expect(getRows({ operator: 'doesNotEqual', value: '0' })).to.deep.equal([ + '', + '', + '', + 'France (fr)', + 'Germany', + '1', + ]); + expect(getRows({ operator: 'doesNotEqual', value: '1' })).to.deep.equal([ + '', + '', + '', + 'France (fr)', + 'Germany', + '0', + ]); + + // Empty values + expect(getRows({ operator: 'doesNotEqual', value: undefined })).to.deep.equal(ALL_ROWS); + expect(getRows({ operator: 'doesNotEqual', value: '' })).to.deep.equal(ALL_ROWS); + }); + it('should filter with operator "startsWith"', () => { expect(getRows({ operator: 'startsWith', value: 'Fra' })).to.deep.equal(['France (fr)']);