@mui/x-data-grid 7.22.3 → 7.23.1
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.
- package/CHANGELOG.md +160 -0
- package/DataGrid/DataGrid.js +9 -1
- package/README.md +3 -3
- package/components/cell/GridCell.js +10 -10
- package/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/components/toolbar/GridToolbarFilterButton.d.ts +2 -0
- package/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/constants/dataGridPropsDefaultValues.js +2 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/hooks/features/dimensions/useGridDimensions.js +2 -1
- package/hooks/features/index.d.ts +1 -0
- package/hooks/features/index.js +1 -0
- package/hooks/features/listView/gridListViewSelectors.d.ts +3 -1
- package/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/hooks/features/listView/index.d.ts +1 -0
- package/hooks/features/listView/index.js +1 -0
- package/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/index.js +1 -1
- package/joy/joySlots.js +7 -2
- package/locales/deDE.js +1 -2
- package/locales/esES.js +1 -2
- package/locales/ptBR.js +1 -2
- package/locales/ptPT.js +1 -2
- package/locales/zhCN.js +1 -2
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +24 -24
- package/models/gridDataSource.d.ts +12 -12
- package/models/props/DataGridProps.d.ts +8 -0
- package/modern/DataGrid/DataGrid.js +9 -1
- package/modern/components/cell/GridCell.js +10 -10
- package/modern/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/modern/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/modern/constants/dataGridPropsDefaultValues.js +2 -1
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +2 -1
- package/modern/hooks/features/index.js +1 -0
- package/modern/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/modern/hooks/features/listView/index.js +1 -0
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/modern/index.js +1 -1
- package/modern/joy/joySlots.js +7 -2
- package/modern/locales/deDE.js +1 -2
- package/modern/locales/esES.js +1 -2
- package/modern/locales/ptBR.js +1 -2
- package/modern/locales/ptPT.js +1 -2
- package/modern/locales/zhCN.js +1 -2
- package/node/DataGrid/DataGrid.js +9 -1
- package/node/components/cell/GridCell.js +10 -10
- package/node/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/node/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/node/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/node/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/node/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/node/constants/dataGridPropsDefaultValues.js +2 -1
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
- package/node/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -1
- package/node/hooks/features/index.js +11 -0
- package/node/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/node/hooks/features/listView/index.js +16 -0
- package/node/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/node/index.js +1 -1
- package/node/joy/joySlots.js +7 -2
- package/node/locales/deDE.js +1 -2
- package/node/locales/esES.js +1 -2
- package/node/locales/ptBR.js +1 -2
- package/node/locales/ptPT.js +1 -2
- package/node/locales/zhCN.js +1 -2
- package/package.json +4 -4
package/node/joy/joySlots.js
CHANGED
|
@@ -30,7 +30,7 @@ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
|
30
30
|
var _hooks = require("../hooks");
|
|
31
31
|
var _GridOverlay = require("../components/containers/GridOverlay");
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
-
const _excluded = ["slotProps", "variant", "color", "sx"],
|
|
33
|
+
const _excluded = ["slotProps", "variant", "color", "sx", "anchorOrigin"],
|
|
34
34
|
_excluded2 = ["touchRippleRef", "inputProps", "onChange", "color", "size", "checked", "sx", "value", "inputRef"],
|
|
35
35
|
_excluded3 = ["onChange", "label", "placeholder", "value", "inputRef", "type", "size", "variant"],
|
|
36
36
|
_excluded4 = ["startIcon", "color", "endIcon", "size", "sx", "variant"],
|
|
@@ -72,10 +72,15 @@ function convertVariant(variant, defaultVariant = 'plain') {
|
|
|
72
72
|
const Badge = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
73
73
|
let {
|
|
74
74
|
color,
|
|
75
|
-
sx
|
|
75
|
+
sx,
|
|
76
|
+
anchorOrigin
|
|
76
77
|
} = _ref,
|
|
77
78
|
props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
78
79
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, (0, _extends2.default)({}, props, {
|
|
80
|
+
anchorOrigin: anchorOrigin?.horizontal && anchorOrigin?.vertical ? anchorOrigin : {
|
|
81
|
+
vertical: 'top',
|
|
82
|
+
horizontal: 'right'
|
|
83
|
+
},
|
|
79
84
|
color: convertColor(color),
|
|
80
85
|
variant: "plain",
|
|
81
86
|
sx: sx,
|
package/node/locales/deDE.js
CHANGED
|
@@ -40,8 +40,7 @@ const deDEGrid = {
|
|
|
40
40
|
columnsManagementNoColumns: 'Keine Spalten',
|
|
41
41
|
columnsManagementShowHideAllText: 'Alle anzeigen/verbergen',
|
|
42
42
|
columnsManagementReset: 'Zurücksetzen',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
columnsManagementDeleteIconLabel: 'Löschen',
|
|
45
44
|
// Filter panel text
|
|
46
45
|
filterPanelAddFilter: 'Filter hinzufügen',
|
|
47
46
|
filterPanelRemoveAll: 'Alle entfernen',
|
package/node/locales/esES.js
CHANGED
|
@@ -40,8 +40,7 @@ const esESGrid = {
|
|
|
40
40
|
columnsManagementNoColumns: 'Sin columnas',
|
|
41
41
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar todas',
|
|
42
42
|
columnsManagementReset: 'Restablecer',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
columnsManagementDeleteIconLabel: 'Limpiar',
|
|
45
44
|
// Filter panel text
|
|
46
45
|
filterPanelAddFilter: 'Agregar filtro',
|
|
47
46
|
filterPanelRemoveAll: 'Remover todos',
|
package/node/locales/ptBR.js
CHANGED
|
@@ -40,8 +40,7 @@ const ptBRGrid = {
|
|
|
40
40
|
columnsManagementNoColumns: 'Nenhuma coluna',
|
|
41
41
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
|
|
42
42
|
columnsManagementReset: 'Redefinir',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
columnsManagementDeleteIconLabel: 'Limpar',
|
|
45
44
|
// Filter panel text
|
|
46
45
|
filterPanelAddFilter: 'Adicionar filtro',
|
|
47
46
|
filterPanelRemoveAll: 'Remover todos',
|
package/node/locales/ptPT.js
CHANGED
|
@@ -40,8 +40,7 @@ const ptPTGrid = {
|
|
|
40
40
|
columnsManagementNoColumns: 'Sem colunas',
|
|
41
41
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
|
|
42
42
|
columnsManagementReset: 'Repor',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
columnsManagementDeleteIconLabel: 'Limpar',
|
|
45
44
|
// Filter panel text
|
|
46
45
|
filterPanelAddFilter: 'Adicionar filtro',
|
|
47
46
|
filterPanelRemoveAll: 'Excluir todos',
|
package/node/locales/zhCN.js
CHANGED
|
@@ -40,8 +40,7 @@ const zhCNGrid = {
|
|
|
40
40
|
columnsManagementNoColumns: '没有列',
|
|
41
41
|
columnsManagementShowHideAllText: '显示/隐藏所有',
|
|
42
42
|
columnsManagementReset: '重置',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
columnsManagementDeleteIconLabel: '清除',
|
|
45
44
|
// Filter panel text
|
|
46
45
|
filterPanelAddFilter: '添加筛选器',
|
|
47
46
|
filterPanelRemoveAll: '清除全部',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.23.1",
|
|
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",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"reselect": "^5.1.1",
|
|
45
|
-
"@mui/x-internals": "7.
|
|
45
|
+
"@mui/x-internals": "7.23.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|
|
49
49
|
"@emotion/styled": "^11.8.1",
|
|
50
50
|
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
51
51
|
"@mui/system": "^5.15.14 || ^6.0.0",
|
|
52
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
53
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
52
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
53
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@emotion/react": {
|