@mui/x-data-grid 7.23.2 → 7.23.3

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 (52) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/DataGrid/DataGrid.js +3 -1
  3. package/components/GridRow.js +12 -1
  4. package/components/cell/GridActionsCell.js +8 -1
  5. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  6. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  7. package/components/virtualization/GridMainContainer.js +1 -1
  8. package/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  9. package/hooks/features/columnResize/gridColumnResizeApi.d.ts +6 -0
  10. package/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  11. package/hooks/features/columnResize/useGridColumnResize.d.ts +1 -1
  12. package/hooks/features/columnResize/useGridColumnResize.js +9 -4
  13. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  14. package/hooks/features/columns/gridColumnsUtils.js +2 -1
  15. package/hooks/features/rows/useGridRowSpanning.js +13 -5
  16. package/hooks/features/virtualization/useGridVirtualScroller.js +11 -8
  17. package/index.js +1 -1
  18. package/internals/utils/useProps.js +3 -0
  19. package/locales/koKR.js +36 -39
  20. package/models/gridSlotsComponentsProps.d.ts +10 -0
  21. package/models/props/DataGridProps.d.ts +1 -0
  22. package/modern/DataGrid/DataGrid.js +3 -1
  23. package/modern/components/GridRow.js +12 -1
  24. package/modern/components/cell/GridActionsCell.js +8 -1
  25. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  26. package/modern/components/columnSelection/GridHeaderCheckbox.js +1 -1
  27. package/modern/components/virtualization/GridMainContainer.js +1 -1
  28. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  29. package/modern/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  30. package/modern/hooks/features/columnResize/useGridColumnResize.js +9 -4
  31. package/modern/hooks/features/columns/gridColumnsUtils.js +2 -1
  32. package/modern/hooks/features/rows/useGridRowSpanning.js +13 -5
  33. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +11 -8
  34. package/modern/index.js +1 -1
  35. package/modern/internals/utils/useProps.js +3 -0
  36. package/modern/locales/koKR.js +36 -39
  37. package/node/DataGrid/DataGrid.js +3 -1
  38. package/node/components/GridRow.js +12 -1
  39. package/node/components/cell/GridActionsCell.js +8 -1
  40. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  41. package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
  42. package/node/components/virtualization/GridMainContainer.js +1 -1
  43. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  44. package/node/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  45. package/node/hooks/features/columnResize/useGridColumnResize.js +9 -4
  46. package/node/hooks/features/columns/gridColumnsUtils.js +2 -1
  47. package/node/hooks/features/rows/useGridRowSpanning.js +13 -5
  48. package/node/hooks/features/virtualization/useGridVirtualScroller.js +11 -8
  49. package/node/index.js +1 -1
  50. package/node/internals/utils/useProps.js +3 -0
  51. package/node/locales/koKR.js +36 -39
  52. package/package.json +1 -1
@@ -103,10 +103,7 @@ const useGridVirtualScroller = () => {
103
103
  return undefined;
104
104
  }
105
105
  const initialRect = node.getBoundingClientRect();
106
- let lastSize = {
107
- width: initialRect.width,
108
- height: initialRect.height
109
- };
106
+ let lastSize = roundDimensions(initialRect);
110
107
  apiRef.current.publishEvent('resize', lastSize);
111
108
  if (typeof ResizeObserver === 'undefined') {
112
109
  return undefined;
@@ -116,10 +113,7 @@ const useGridVirtualScroller = () => {
116
113
  if (!entry) {
117
114
  return;
118
115
  }
119
- const newSize = {
120
- width: entry.contentRect.width,
121
- height: entry.contentRect.height
122
- };
116
+ const newSize = roundDimensions(entry.contentRect);
123
117
  if (newSize.width === lastSize.width && newSize.height === lastSize.height) {
124
118
  return;
125
119
  }
@@ -796,4 +790,13 @@ function bufferForDirection(isRtl, direction, rowBufferPx, columnBufferPx, verti
796
790
  // eslint unable to figure out enum exhaustiveness
797
791
  throw new Error('unreachable');
798
792
  }
793
+ }
794
+
795
+ // Round to avoid issues with subpixel rendering
796
+ // https://github.com/mui/mui-x/issues/15721
797
+ function roundDimensions(dimensions) {
798
+ return {
799
+ width: Math.round(dimensions.width * 10) / 10,
800
+ height: Math.round(dimensions.height * 10) / 10
801
+ };
799
802
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v7.23.2
2
+ * @mui/x-data-grid v7.23.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,6 +8,9 @@ exports.useProps = useProps;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  /** Gathers props for the root element into a single `.forwardedProps` field */
10
10
  function groupForwardedProps(props) {
11
+ if (props.slotProps?.root) {
12
+ return props;
13
+ }
11
14
  const keys = Object.keys(props);
12
15
  if (!keys.some(key => key.startsWith('aria-') || key.startsWith('data-'))) {
13
16
  return props;
@@ -36,15 +36,14 @@ const koKRGrid = {
36
36
  toolbarExportPrint: '프린트',
37
37
  toolbarExportExcel: 'Excel로 내보내기',
38
38
  // Columns management text
39
- // columnsManagementSearchTitle: 'Search',
40
- // columnsManagementNoColumns: 'No columns',
41
- // columnsManagementShowHideAllText: 'Show/Hide All',
42
- // columnsManagementReset: 'Reset',
43
- // columnsManagementDeleteIconLabel: 'Clear',
44
-
39
+ columnsManagementSearchTitle: '검색',
40
+ columnsManagementNoColumns: '열이 없습니다.',
41
+ columnsManagementShowHideAllText: '모두 보기/숨기기',
42
+ columnsManagementReset: '초기화',
43
+ columnsManagementDeleteIconLabel: '제거',
45
44
  // Filter panel text
46
45
  filterPanelAddFilter: '필터 추가',
47
- // filterPanelRemoveAll: 'Remove all',
46
+ filterPanelRemoveAll: '모두 삭제',
48
47
  filterPanelDeleteIconLabel: '삭제',
49
48
  filterPanelLogicOperator: '논리 연산자',
50
49
  filterPanelOperator: '연산자',
@@ -55,9 +54,9 @@ const koKRGrid = {
55
54
  filterPanelInputPlaceholder: '값 입력',
56
55
  // Filter operators text
57
56
  filterOperatorContains: '포함하는',
58
- // filterOperatorDoesNotContain: 'does not contain',
57
+ filterOperatorDoesNotContain: '포함하지 않는',
59
58
  filterOperatorEquals: '값이 같은',
60
- // filterOperatorDoesNotEqual: 'does not equal',
59
+ filterOperatorDoesNotEqual: '값이 다른',
61
60
  filterOperatorStartsWith: '시작하는',
62
61
  filterOperatorEndsWith: '끝나는',
63
62
  filterOperatorIs: '~인',
@@ -69,36 +68,34 @@ const koKRGrid = {
69
68
  filterOperatorIsEmpty: '값이 없는',
70
69
  filterOperatorIsNotEmpty: '값이 있는',
71
70
  filterOperatorIsAnyOf: '값 중 하나인',
72
- // 'filterOperator=': '=',
73
- // 'filterOperator!=': '!=',
74
- // 'filterOperator>': '>',
75
- // 'filterOperator>=': '>=',
76
- // 'filterOperator<': '<',
77
- // 'filterOperator<=': '<=',
78
-
71
+ 'filterOperator=': '=',
72
+ 'filterOperator!=': '!=',
73
+ 'filterOperator>': '>',
74
+ 'filterOperator>=': '>=',
75
+ 'filterOperator<': '<',
76
+ 'filterOperator<=': '<=',
79
77
  // Header filter operators text
80
- // headerFilterOperatorContains: 'Contains',
81
- // headerFilterOperatorDoesNotContain: 'Does not contain',
82
- // headerFilterOperatorEquals: 'Equals',
83
- // headerFilterOperatorDoesNotEqual: 'Does not equal',
84
- // headerFilterOperatorStartsWith: 'Starts with',
85
- // headerFilterOperatorEndsWith: 'Ends with',
86
- // headerFilterOperatorIs: 'Is',
87
- // headerFilterOperatorNot: 'Is not',
88
- // headerFilterOperatorAfter: 'Is after',
89
- // headerFilterOperatorOnOrAfter: 'Is on or after',
90
- // headerFilterOperatorBefore: 'Is before',
91
- // headerFilterOperatorOnOrBefore: 'Is on or before',
92
- // headerFilterOperatorIsEmpty: 'Is empty',
93
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
94
- // headerFilterOperatorIsAnyOf: 'Is any of',
95
- // 'headerFilterOperator=': 'Equals',
96
- // 'headerFilterOperator!=': 'Not equals',
97
- // 'headerFilterOperator>': 'Greater than',
98
- // 'headerFilterOperator>=': 'Greater than or equal to',
99
- // 'headerFilterOperator<': 'Less than',
100
- // 'headerFilterOperator<=': 'Less than or equal to',
101
-
78
+ headerFilterOperatorContains: '포함하는',
79
+ headerFilterOperatorDoesNotContain: '포함하지 않는',
80
+ headerFilterOperatorEquals: '값이 같은',
81
+ headerFilterOperatorDoesNotEqual: '값이 다른',
82
+ headerFilterOperatorStartsWith: '시작하는',
83
+ headerFilterOperatorEndsWith: '끝나는',
84
+ headerFilterOperatorIs: '~인',
85
+ headerFilterOperatorNot: '~아닌',
86
+ headerFilterOperatorAfter: ' 이후',
87
+ headerFilterOperatorOnOrAfter: '이후',
88
+ headerFilterOperatorBefore: ' 이전',
89
+ headerFilterOperatorOnOrBefore: '이전',
90
+ headerFilterOperatorIsEmpty: '값이 없는',
91
+ headerFilterOperatorIsNotEmpty: '값이 있는',
92
+ headerFilterOperatorIsAnyOf: ' 하나인',
93
+ 'headerFilterOperator=': '값이 같은',
94
+ 'headerFilterOperator!=': '값이 다른',
95
+ 'headerFilterOperator>': ' ',
96
+ 'headerFilterOperator>=': '같거나 ',
97
+ 'headerFilterOperator<': ' 작은',
98
+ 'headerFilterOperator<=': '같거나 작은',
102
99
  // Filter values text
103
100
  filterValueAny: '아무값',
104
101
  filterValueTrue: '참',
@@ -106,7 +103,7 @@ const koKRGrid = {
106
103
  // Column menu text
107
104
  columnMenuLabel: '메뉴',
108
105
  columnMenuShowColumns: '열 표시',
109
- // columnMenuManageColumns: 'Manage columns',
106
+ columnMenuManageColumns: ' 관리',
110
107
  columnMenuFilter: '필터',
111
108
  columnMenuHideColumn: '열 숨기기',
112
109
  columnMenuUnsort: '정렬 해제',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "7.23.2",
3
+ "version": "7.23.3",
4
4
  "description": "The Community plan edition of the Data Grid components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",