@mui/x-data-grid 7.0.0-alpha.3 → 7.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +245 -0
  2. package/colDef/gridCheckboxSelectionColDef.js +1 -1
  3. package/colDef/gridDefaultColumnTypes.d.ts +2 -2
  4. package/colDef/gridDefaultColumnTypes.js +2 -2
  5. package/components/GridRow.js +7 -2
  6. package/components/base/GridOverlays.js +0 -2
  7. package/components/cell/GridActionsCell.js +0 -1
  8. package/components/cell/GridCell.js +0 -2
  9. package/components/virtualization/GridVirtualScroller.js +0 -1
  10. package/hooks/features/editing/useGridCellEditing.js +0 -2
  11. package/hooks/features/editing/useGridRowEditing.js +0 -1
  12. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
  13. package/hooks/features/focus/gridFocusStateSelector.js +2 -6
  14. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
  15. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
  16. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +7 -5
  17. package/hooks/features/rows/useGridRowsMeta.js +0 -1
  18. package/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  19. package/index.js +1 -1
  20. package/internals/index.d.ts +1 -1
  21. package/internals/index.js +1 -1
  22. package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
  23. package/legacy/colDef/gridDefaultColumnTypes.js +2 -2
  24. package/legacy/components/GridRow.js +7 -2
  25. package/legacy/components/base/GridOverlays.js +0 -2
  26. package/legacy/components/cell/GridActionsCell.js +0 -1
  27. package/legacy/components/cell/GridCell.js +0 -2
  28. package/legacy/components/virtualization/GridVirtualScroller.js +0 -1
  29. package/legacy/hooks/features/editing/useGridCellEditing.js +0 -2
  30. package/legacy/hooks/features/editing/useGridRowEditing.js +0 -1
  31. package/legacy/hooks/features/focus/gridFocusStateSelector.js +2 -6
  32. package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
  33. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +7 -5
  34. package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -1
  35. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  36. package/legacy/index.js +1 -1
  37. package/legacy/internals/index.js +1 -1
  38. package/legacy/locales/coreLocales.js +1 -0
  39. package/legacy/locales/daDK.js +37 -39
  40. package/legacy/locales/plPL.js +0 -1
  41. package/legacy/locales/svSE.js +31 -33
  42. package/legacy/locales/urPK.js +26 -28
  43. package/legacy/utils/utils.js +0 -1
  44. package/locales/coreLocales.js +1 -0
  45. package/locales/daDK.js +37 -39
  46. package/locales/plPL.js +0 -1
  47. package/locales/svSE.js +31 -33
  48. package/locales/urPK.js +26 -28
  49. package/models/colDef/gridColType.d.ts +2 -4
  50. package/models/controlStateItem.d.ts +1 -4
  51. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
  52. package/modern/colDef/gridDefaultColumnTypes.js +2 -2
  53. package/modern/components/GridRow.js +7 -2
  54. package/modern/components/base/GridOverlays.js +0 -2
  55. package/modern/components/cell/GridActionsCell.js +0 -1
  56. package/modern/components/cell/GridCell.js +0 -2
  57. package/modern/components/virtualization/GridVirtualScroller.js +0 -1
  58. package/modern/hooks/features/editing/useGridCellEditing.js +0 -2
  59. package/modern/hooks/features/editing/useGridRowEditing.js +0 -1
  60. package/modern/hooks/features/focus/gridFocusStateSelector.js +2 -6
  61. package/modern/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +3 -4
  62. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +7 -5
  63. package/modern/hooks/features/rows/useGridRowsMeta.js +0 -1
  64. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  65. package/modern/index.js +1 -1
  66. package/modern/internals/index.js +1 -1
  67. package/modern/locales/coreLocales.js +1 -0
  68. package/modern/locales/daDK.js +37 -39
  69. package/modern/locales/plPL.js +0 -1
  70. package/modern/locales/svSE.js +31 -33
  71. package/modern/locales/urPK.js +26 -28
  72. package/modern/utils/utils.js +0 -1
  73. package/node/colDef/gridCheckboxSelectionColDef.js +1 -1
  74. package/node/colDef/gridDefaultColumnTypes.js +2 -2
  75. package/node/components/GridRow.js +7 -2
  76. package/node/components/base/GridOverlays.js +0 -2
  77. package/node/components/cell/GridActionsCell.js +0 -1
  78. package/node/components/cell/GridCell.js +0 -2
  79. package/node/components/virtualization/GridVirtualScroller.js +0 -1
  80. package/node/hooks/features/editing/useGridCellEditing.js +0 -2
  81. package/node/hooks/features/editing/useGridRowEditing.js +0 -1
  82. package/node/hooks/features/focus/gridFocusStateSelector.js +3 -7
  83. package/node/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +5 -7
  84. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -4
  85. package/node/hooks/features/rows/useGridRowsMeta.js +0 -1
  86. package/node/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  87. package/node/index.js +1 -1
  88. package/node/internals/index.js +14 -14
  89. package/node/locales/daDK.js +37 -39
  90. package/node/locales/plPL.js +0 -1
  91. package/node/locales/svSE.js +31 -33
  92. package/node/locales/urPK.js +26 -28
  93. package/node/utils/utils.js +0 -1
  94. package/package.json +4 -4
  95. package/utils/createSelector.d.ts +1 -1
  96. package/utils/utils.js +0 -1
@@ -15,7 +15,7 @@ const svSEGrid = {
15
15
  toolbarDensityLabel: 'Densitet',
16
16
  toolbarDensityCompact: 'Kompakt',
17
17
  toolbarDensityStandard: 'Standard',
18
- toolbarDensityComfortable: 'Bekväm',
18
+ toolbarDensityComfortable: 'Luftig',
19
19
  // Columns selector toolbar button text
20
20
  toolbarColumns: 'Kolumner',
21
21
  toolbarColumnsLabel: 'Välj kolumner',
@@ -45,8 +45,8 @@ const svSEGrid = {
45
45
  filterPanelAddFilter: 'Lägg till filter',
46
46
  filterPanelRemoveAll: 'Ta bort alla',
47
47
  filterPanelDeleteIconLabel: 'Ta bort',
48
- filterPanelLogicOperator: 'Logisk operatör',
49
- filterPanelOperator: 'Operatör',
48
+ filterPanelLogicOperator: 'Logisk operator',
49
+ filterPanelOperator: 'Operator',
50
50
  filterPanelOperatorAnd: 'Och',
51
51
  filterPanelOperatorOr: 'Eller',
52
52
  filterPanelColumns: 'Kolumner',
@@ -54,7 +54,7 @@ const svSEGrid = {
54
54
  filterPanelInputPlaceholder: 'Filtervärde',
55
55
  // Filter operators text
56
56
  filterOperatorContains: 'innehåller',
57
- filterOperatorEquals: 'är lika med',
57
+ filterOperatorEquals: 'lika med',
58
58
  filterOperatorStartsWith: 'börjar med',
59
59
  filterOperatorEndsWith: 'slutar med',
60
60
  filterOperatorIs: 'är',
@@ -66,34 +66,32 @@ const svSEGrid = {
66
66
  filterOperatorIsEmpty: 'är tom',
67
67
  filterOperatorIsNotEmpty: 'är inte tom',
68
68
  filterOperatorIsAnyOf: 'är någon av',
69
- // 'filterOperator=': '=',
70
- // 'filterOperator!=': '!=',
71
- // 'filterOperator>': '>',
72
- // 'filterOperator>=': '>=',
73
- // 'filterOperator<': '<',
74
- // 'filterOperator<=': '<=',
75
-
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
76
75
  // Header filter operators text
77
- // headerFilterOperatorContains: 'Contains',
78
- // headerFilterOperatorEquals: 'Equals',
79
- // headerFilterOperatorStartsWith: 'Starts with',
80
- // headerFilterOperatorEndsWith: 'Ends with',
81
- // headerFilterOperatorIs: 'Is',
82
- // headerFilterOperatorNot: 'Is not',
83
- // headerFilterOperatorAfter: 'Is after',
84
- // headerFilterOperatorOnOrAfter: 'Is on or after',
85
- // headerFilterOperatorBefore: 'Is before',
86
- // headerFilterOperatorOnOrBefore: 'Is on or before',
87
- // headerFilterOperatorIsEmpty: 'Is empty',
88
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
- // headerFilterOperatorIsAnyOf: 'Is any of',
90
- // 'headerFilterOperator=': 'Equals',
91
- // 'headerFilterOperator!=': 'Not equals',
92
- // 'headerFilterOperator>': 'Greater than',
93
- // 'headerFilterOperator>=': 'Greater than or equal to',
94
- // 'headerFilterOperator<': 'Less than',
95
- // 'headerFilterOperator<=': 'Less than or equal to',
96
-
76
+ headerFilterOperatorContains: 'Innehåller',
77
+ headerFilterOperatorEquals: 'Lika med',
78
+ headerFilterOperatorStartsWith: 'Börjar med',
79
+ headerFilterOperatorEndsWith: 'Slutar med',
80
+ headerFilterOperatorIs: 'Är',
81
+ headerFilterOperatorNot: 'Är inte',
82
+ headerFilterOperatorAfter: 'Är efter',
83
+ headerFilterOperatorOnOrAfter: 'Är eller efter',
84
+ headerFilterOperatorBefore: 'Är innan',
85
+ headerFilterOperatorOnOrBefore: 'Är eller innan',
86
+ headerFilterOperatorIsEmpty: 'Är tom',
87
+ headerFilterOperatorIsNotEmpty: 'Är inte tom',
88
+ headerFilterOperatorIsAnyOf: 'Innehåller någon av',
89
+ 'headerFilterOperator=': 'Lika med',
90
+ 'headerFilterOperator!=': 'Inte lika med',
91
+ 'headerFilterOperator>': 'Större än',
92
+ 'headerFilterOperator>=': 'Större eller lika med',
93
+ 'headerFilterOperator<': 'Mindre än',
94
+ 'headerFilterOperator<=': 'Mindre eller lika med',
97
95
  // Filter values text
98
96
  filterValueAny: 'något',
99
97
  filterValueTrue: 'sant',
@@ -104,7 +102,7 @@ const svSEGrid = {
104
102
  columnMenuManageColumns: 'Hantera kolumner',
105
103
  columnMenuFilter: 'Filtrera',
106
104
  columnMenuHideColumn: 'Dölj',
107
- columnMenuUnsort: 'Osortera',
105
+ columnMenuUnsort: 'Ta bort sortering',
108
106
  columnMenuSortAsc: 'Sortera stigande',
109
107
  columnMenuSortDesc: 'Sortera fallande',
110
108
  // Column header text
@@ -148,7 +146,7 @@ const svSEGrid = {
148
146
  rowReorderingHeaderName: 'Ordna om rader',
149
147
  // Aggregation
150
148
  aggregationMenuItemHeader: 'Aggregering',
151
- aggregationFunctionLabelSum: 'sum',
149
+ aggregationFunctionLabelSum: 'summa',
152
150
  aggregationFunctionLabelAvg: 'medel',
153
151
  aggregationFunctionLabelMin: 'min',
154
152
  aggregationFunctionLabelMax: 'max',
@@ -43,7 +43,7 @@ const urPKGrid = {
43
43
  columnsPanelHideAllButton: 'سارے چھپائیں',
44
44
  // Filter panel text
45
45
  filterPanelAddFilter: 'نیا فلٹر',
46
- // filterPanelRemoveAll: 'Remove all',
46
+ filterPanelRemoveAll: 'سارے ختم کریں',
47
47
  filterPanelDeleteIconLabel: 'ختم کریں',
48
48
  filterPanelLogicOperator: 'لاجک آپریٹر',
49
49
  filterPanelOperator: 'آپریٹر',
@@ -66,34 +66,32 @@ const urPKGrid = {
66
66
  filterOperatorIsEmpty: 'خالی ہے',
67
67
  filterOperatorIsNotEmpty: 'خالی نہیں ہے',
68
68
  filterOperatorIsAnyOf: 'ان میں سے کوئی ہے',
69
- // 'filterOperator=': '=',
70
- // 'filterOperator!=': '!=',
71
- // 'filterOperator>': '>',
72
- // 'filterOperator>=': '>=',
73
- // 'filterOperator<': '<',
74
- // 'filterOperator<=': '<=',
75
-
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
76
75
  // Header filter operators text
77
- // headerFilterOperatorContains: 'Contains',
78
- // headerFilterOperatorEquals: 'Equals',
79
- // headerFilterOperatorStartsWith: 'Starts with',
80
- // headerFilterOperatorEndsWith: 'Ends with',
81
- // headerFilterOperatorIs: 'Is',
82
- // headerFilterOperatorNot: 'Is not',
83
- // headerFilterOperatorAfter: 'Is after',
84
- // headerFilterOperatorOnOrAfter: 'Is on or after',
85
- // headerFilterOperatorBefore: 'Is before',
86
- // headerFilterOperatorOnOrBefore: 'Is on or before',
87
- // headerFilterOperatorIsEmpty: 'Is empty',
88
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
- // headerFilterOperatorIsAnyOf: 'Is any of',
90
- // 'headerFilterOperator=': 'Equals',
91
- // 'headerFilterOperator!=': 'Not equals',
92
- // 'headerFilterOperator>': 'Greater than',
93
- // 'headerFilterOperator>=': 'Greater than or equal to',
94
- // 'headerFilterOperator<': 'Less than',
95
- // 'headerFilterOperator<=': 'Less than or equal to',
96
-
76
+ headerFilterOperatorContains: 'شامل ہے',
77
+ headerFilterOperatorEquals: 'برابر ہے',
78
+ headerFilterOperatorStartsWith: 'شروع ہوتا ہے',
79
+ headerFilterOperatorEndsWith: 'ختم ہوتا ہے',
80
+ headerFilterOperatorIs: 'ہے',
81
+ headerFilterOperatorNot: 'نہیں ہے',
82
+ headerFilterOperatorAfter: 'بعد میں ہے',
83
+ headerFilterOperatorOnOrAfter: 'پر یا بعد میں ہے',
84
+ headerFilterOperatorBefore: 'پہلے ہے',
85
+ headerFilterOperatorOnOrBefore: 'پر یا پہلے ہے',
86
+ headerFilterOperatorIsEmpty: 'خالی ہے',
87
+ headerFilterOperatorIsNotEmpty: 'خالی نہیں ہے',
88
+ headerFilterOperatorIsAnyOf: 'ان میں سے کوئی ہے',
89
+ 'headerFilterOperator=': 'برابر ہے',
90
+ 'headerFilterOperator!=': 'برابر نہیں ہے',
91
+ 'headerFilterOperator>': 'ذیادہ ہے',
92
+ 'headerFilterOperator>=': 'ذیادہ یا برابر ہے',
93
+ 'headerFilterOperator<': 'کم ہے',
94
+ 'headerFilterOperator<=': 'کم یا برابر ہے',
97
95
  // Filter values text
98
96
  filterValueAny: 'کوئی بھی',
99
97
  filterValueTrue: 'صحیح',
@@ -177,7 +177,6 @@ function mulberry32(a) {
177
177
  /* eslint-enable */
178
178
  };
179
179
  }
180
-
181
180
  function randomNumberBetween(seed, min, max) {
182
181
  const random = mulberry32(seed);
183
182
  return () => min + (max - min) * random();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "7.0.0-alpha.3",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -36,9 +36,9 @@
36
36
  "directory": "packages/grid/x-data-grid"
37
37
  },
38
38
  "dependencies": {
39
- "@babel/runtime": "^7.23.4",
40
- "@mui/system": "^5.14.18",
41
- "@mui/utils": "^5.14.18",
39
+ "@babel/runtime": "^7.23.5",
40
+ "@mui/system": "^5.14.20",
41
+ "@mui/utils": "^5.14.20",
42
42
  "clsx": "^2.0.0",
43
43
  "prop-types": "^15.8.1",
44
44
  "reselect": "^4.1.8"
@@ -6,7 +6,7 @@ export interface OutputSelector<State, Result> {
6
6
  state: State;
7
7
  instanceId: GridCoreApi['instanceId'];
8
8
  }>): Result;
9
- (state: State, instanceId?: GridCoreApi['instanceId']): Result;
9
+ (state: State, instanceId: GridCoreApi['instanceId']): Result;
10
10
  acceptsApiRef: boolean;
11
11
  }
12
12
  type StateFromSelector<T> = T extends (first: infer F, ...args: any[]) => any ? F extends {
package/utils/utils.js CHANGED
@@ -163,7 +163,6 @@ function mulberry32(a) {
163
163
  /* eslint-enable */
164
164
  };
165
165
  }
166
-
167
166
  export function randomNumberBetween(seed, min, max) {
168
167
  const random = mulberry32(seed);
169
168
  return () => min + (max - min) * random();