@mui/x-data-grid 6.18.7 → 6.19.2

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 (86) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/components/GridPagination.d.ts +4 -4
  3. package/components/GridRow.js +0 -1
  4. package/components/base/GridOverlays.js +0 -2
  5. package/components/cell/GridActionsCell.js +0 -1
  6. package/components/cell/GridActionsCellItem.d.ts +5 -5
  7. package/components/panel/GridPanel.d.ts +3 -3
  8. package/components/toolbar/GridToolbarQuickFilter.d.ts +4 -0
  9. package/components/toolbar/GridToolbarQuickFilter.js +4 -0
  10. package/components/virtualization/GridVirtualScroller.js +0 -1
  11. package/hooks/features/editing/useGridCellEditing.js +0 -2
  12. package/hooks/features/editing/useGridRowEditing.js +0 -1
  13. package/hooks/features/rows/gridRowsUtils.js +4 -1
  14. package/hooks/features/rows/useGridRowsMeta.js +0 -1
  15. package/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  16. package/index.js +1 -1
  17. package/legacy/colDef/gridDefaultColumnTypes.js +2 -3
  18. package/legacy/components/GridPagination.js +3 -4
  19. package/legacy/components/GridRow.js +0 -1
  20. package/legacy/components/base/GridOverlays.js +0 -2
  21. package/legacy/components/cell/GridActionsCell.js +0 -1
  22. package/legacy/components/columnHeaders/GridColumnHeadersInner.js +4 -5
  23. package/legacy/components/containers/GridRootStyles.js +69 -70
  24. package/legacy/components/toolbar/GridToolbarQuickFilter.js +8 -5
  25. package/legacy/components/virtualization/GridVirtualScroller.js +0 -1
  26. package/legacy/hooks/features/editing/useGridCellEditing.js +0 -2
  27. package/legacy/hooks/features/editing/useGridRowEditing.js +0 -1
  28. package/legacy/hooks/features/rows/gridRowsUtils.js +4 -1
  29. package/legacy/hooks/features/rows/useGridParamsApi.js +4 -5
  30. package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -1
  31. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  32. package/legacy/index.js +1 -1
  33. package/legacy/locales/coreLocales.js +1 -0
  34. package/legacy/locales/hrHR.js +161 -0
  35. package/legacy/locales/index.js +4 -1
  36. package/legacy/locales/plPL.js +0 -1
  37. package/legacy/locales/ptPT.js +161 -0
  38. package/legacy/locales/zhHK.js +161 -0
  39. package/legacy/utils/utils.js +0 -1
  40. package/locales/coreLocales.js +1 -0
  41. package/locales/hrHR.d.ts +1 -0
  42. package/locales/hrHR.js +149 -0
  43. package/locales/index.d.ts +3 -0
  44. package/locales/index.js +4 -1
  45. package/locales/plPL.js +0 -1
  46. package/locales/ptPT.d.ts +1 -0
  47. package/locales/ptPT.js +149 -0
  48. package/locales/zhHK.d.ts +1 -0
  49. package/locales/zhHK.js +149 -0
  50. package/modern/components/GridRow.js +0 -1
  51. package/modern/components/base/GridOverlays.js +0 -2
  52. package/modern/components/cell/GridActionsCell.js +0 -1
  53. package/modern/components/toolbar/GridToolbarQuickFilter.js +4 -0
  54. package/modern/components/virtualization/GridVirtualScroller.js +0 -1
  55. package/modern/hooks/features/editing/useGridCellEditing.js +0 -2
  56. package/modern/hooks/features/editing/useGridRowEditing.js +0 -1
  57. package/modern/hooks/features/rows/gridRowsUtils.js +4 -1
  58. package/modern/hooks/features/rows/useGridRowsMeta.js +0 -1
  59. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  60. package/modern/index.js +1 -1
  61. package/modern/locales/coreLocales.js +1 -0
  62. package/modern/locales/hrHR.js +149 -0
  63. package/modern/locales/index.js +4 -1
  64. package/modern/locales/plPL.js +0 -1
  65. package/modern/locales/ptPT.js +149 -0
  66. package/modern/locales/zhHK.js +149 -0
  67. package/modern/utils/utils.js +0 -1
  68. package/node/components/GridRow.js +0 -1
  69. package/node/components/base/GridOverlays.js +0 -2
  70. package/node/components/cell/GridActionsCell.js +0 -1
  71. package/node/components/toolbar/GridToolbarQuickFilter.js +4 -0
  72. package/node/components/virtualization/GridVirtualScroller.js +0 -1
  73. package/node/hooks/features/editing/useGridCellEditing.js +0 -2
  74. package/node/hooks/features/editing/useGridRowEditing.js +0 -1
  75. package/node/hooks/features/rows/gridRowsUtils.js +4 -1
  76. package/node/hooks/features/rows/useGridRowsMeta.js +0 -1
  77. package/node/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
  78. package/node/index.js +1 -1
  79. package/node/locales/hrHR.js +155 -0
  80. package/node/locales/index.js +33 -0
  81. package/node/locales/plPL.js +0 -1
  82. package/node/locales/ptPT.js +155 -0
  83. package/node/locales/zhHK.js +155 -0
  84. package/node/utils/utils.js +0 -1
  85. package/package.json +1 -1
  86. package/utils/utils.js +0 -1
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ptPT = void 0;
7
+ var _locale = require("@mui/material/locale");
8
+ var _getGridLocalization = require("../utils/getGridLocalization");
9
+ const ptPTGrid = {
10
+ // Root
11
+ noRowsLabel: 'Nenhuma linha',
12
+ noResultsOverlayLabel: 'Nenhum resultado encontrado.',
13
+ // Density selector toolbar button text
14
+ toolbarDensity: 'Densidade',
15
+ toolbarDensityLabel: 'Densidade',
16
+ toolbarDensityCompact: 'Compactar',
17
+ toolbarDensityStandard: 'Padrão',
18
+ toolbarDensityComfortable: 'Confortável',
19
+ // Columns selector toolbar button text
20
+ toolbarColumns: 'Colunas',
21
+ toolbarColumnsLabel: 'Selecione colunas',
22
+ // Filters toolbar button text
23
+ toolbarFilters: 'Filtros',
24
+ toolbarFiltersLabel: 'Mostrar filtros',
25
+ toolbarFiltersTooltipHide: 'Ocultar filtros',
26
+ toolbarFiltersTooltipShow: 'Mostrar filtros',
27
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
28
+ // Quick filter toolbar field
29
+ toolbarQuickFilterPlaceholder: 'Procurar…',
30
+ toolbarQuickFilterLabel: 'Procurar',
31
+ toolbarQuickFilterDeleteIconLabel: 'Claro',
32
+ // Export selector toolbar button text
33
+ toolbarExport: 'Exportar',
34
+ toolbarExportLabel: 'Exportar',
35
+ toolbarExportCSV: 'Baixar como CSV',
36
+ toolbarExportPrint: 'Imprimir',
37
+ toolbarExportExcel: 'Baixe como Excel',
38
+ // Columns panel text
39
+ columnsPanelTextFieldLabel: 'Encontrar coluna',
40
+ columnsPanelTextFieldPlaceholder: 'Título da coluna',
41
+ columnsPanelDragIconLabel: 'Reordenar coluna',
42
+ columnsPanelShowAllButton: 'Mostre tudo',
43
+ columnsPanelHideAllButton: 'Esconda tudo',
44
+ // Filter panel text
45
+ filterPanelAddFilter: 'Adicionar filtro',
46
+ filterPanelRemoveAll: 'Deletar tudo',
47
+ filterPanelDeleteIconLabel: 'Excluir',
48
+ filterPanelLogicOperator: 'Operador lógico',
49
+ filterPanelOperator: 'Operador',
50
+ filterPanelOperatorAnd: 'E',
51
+ filterPanelOperatorOr: 'Ou',
52
+ filterPanelColumns: 'Colunas',
53
+ filterPanelInputLabel: 'Valor',
54
+ filterPanelInputPlaceholder: 'Valor do filtro',
55
+ // Filter operators text
56
+ filterOperatorContains: 'contém',
57
+ filterOperatorEquals: 'é igual a',
58
+ filterOperatorStartsWith: 'começa com',
59
+ filterOperatorEndsWith: 'termina com',
60
+ filterOperatorIs: 'é',
61
+ filterOperatorNot: 'não é',
62
+ filterOperatorAfter: 'está depois',
63
+ filterOperatorOnOrAfter: 'está ligado ou depois',
64
+ filterOperatorBefore: 'é antes',
65
+ filterOperatorOnOrBefore: 'está ligado ou antes',
66
+ filterOperatorIsEmpty: 'está vazia',
67
+ filterOperatorIsNotEmpty: 'não está vazio',
68
+ filterOperatorIsAnyOf: 'é qualquer um',
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
75
+ // Header filter operators text
76
+ headerFilterOperatorContains: 'Contém',
77
+ headerFilterOperatorEquals: 'É igual a',
78
+ headerFilterOperatorStartsWith: 'Começa com',
79
+ headerFilterOperatorEndsWith: 'Termina com',
80
+ headerFilterOperatorIs: 'É',
81
+ headerFilterOperatorNot: 'Não é',
82
+ headerFilterOperatorAfter: 'Está depois',
83
+ headerFilterOperatorOnOrAfter: 'Está ligado ou depois',
84
+ headerFilterOperatorBefore: 'É antes',
85
+ headerFilterOperatorOnOrBefore: 'Está ligado ou antes',
86
+ headerFilterOperatorIsEmpty: 'Está vazia',
87
+ headerFilterOperatorIsNotEmpty: 'Não está vazio',
88
+ headerFilterOperatorIsAnyOf: 'Algum',
89
+ 'headerFilterOperator=': 'É igual a',
90
+ 'headerFilterOperator!=': 'Não é igual',
91
+ 'headerFilterOperator>': 'Maior que',
92
+ 'headerFilterOperator>=': 'Melhor que ou igual a',
93
+ 'headerFilterOperator<': 'Menor que',
94
+ 'headerFilterOperator<=': 'Menos que ou igual a',
95
+ // Filter values text
96
+ filterValueAny: 'qualquer',
97
+ filterValueTrue: 'verdadeiro',
98
+ filterValueFalse: 'falso',
99
+ // Column menu text
100
+ columnMenuLabel: 'Cardápio',
101
+ columnMenuShowColumns: 'Mostrar colunas',
102
+ columnMenuManageColumns: 'Gerenciar colunas',
103
+ columnMenuFilter: 'Filtro',
104
+ columnMenuHideColumn: 'Ocultar coluna',
105
+ columnMenuUnsort: 'Desclassificar',
106
+ columnMenuSortAsc: 'Classificar por ordem crescente',
107
+ columnMenuSortDesc: 'Classificar por ordem decrescente',
108
+ // Column header text
109
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
110
+ columnHeaderFiltersLabel: 'Mostrar filtros',
111
+ columnHeaderSortIconLabel: 'Organizar',
112
+ // Rows selected footer text
113
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
114
+ // Total row amount footer text
115
+ footerTotalRows: 'Total de linhas:',
116
+ // Total visible row amount footer text
117
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
118
+ // Checkbox selection text
119
+ checkboxSelectionHeaderName: 'Seleção de caixa de seleção',
120
+ checkboxSelectionSelectAllRows: 'Selecione todas as linhas',
121
+ checkboxSelectionUnselectAllRows: 'Desmarque todas as linhas',
122
+ checkboxSelectionSelectRow: 'Selecione a linha',
123
+ checkboxSelectionUnselectRow: 'Desmarcar linha',
124
+ // Boolean cell text
125
+ booleanCellTrueLabel: 'sim',
126
+ booleanCellFalseLabel: 'não',
127
+ // Actions cell more text
128
+ actionsCellMore: 'mais',
129
+ // Column pinning text
130
+ pinToLeft: 'Fixar à esquerda',
131
+ pinToRight: 'Fixar à direita',
132
+ unpin: 'Liberar',
133
+ // Tree Data
134
+ treeDataGroupingHeaderName: 'Group',
135
+ treeDataExpand: 'veja crianças',
136
+ treeDataCollapse: 'esconder crianças',
137
+ // Grouping columns
138
+ groupingColumnHeaderName: 'Grupo',
139
+ groupColumn: name => `Agrupar por ${name}`,
140
+ unGroupColumn: name => `Pare de agrupar por ${name}`,
141
+ // Master/detail
142
+ detailPanelToggle: 'Alternar painel de detalhes',
143
+ expandDetailPanel: 'Expandir',
144
+ collapseDetailPanel: 'Colapso',
145
+ // Row reordering text
146
+ rowReorderingHeaderName: 'Reordenação de linhas',
147
+ // Aggregation
148
+ aggregationMenuItemHeader: 'Agregação',
149
+ aggregationFunctionLabelSum: 'soma',
150
+ aggregationFunctionLabelAvg: 'média',
151
+ aggregationFunctionLabelMin: 'min',
152
+ aggregationFunctionLabelMax: 'máx.',
153
+ aggregationFunctionLabelSize: 'tamanho'
154
+ };
155
+ const ptPT = exports.ptPT = (0, _getGridLocalization.getGridLocalization)(ptPTGrid, _locale.ptPT);
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.zhHK = void 0;
7
+ var _locale = require("@mui/material/locale");
8
+ var _getGridLocalization = require("../utils/getGridLocalization");
9
+ const zhHKGrid = {
10
+ // Root
11
+ noRowsLabel: '沒有行',
12
+ noResultsOverlayLabel: '未找到結果。',
13
+ // Density selector toolbar button text
14
+ toolbarDensity: '密度',
15
+ toolbarDensityLabel: '密度',
16
+ toolbarDensityCompact: '袖珍的',
17
+ toolbarDensityStandard: '標準',
18
+ toolbarDensityComfortable: '舒服的',
19
+ // Columns selector toolbar button text
20
+ toolbarColumns: '列',
21
+ toolbarColumnsLabel: '選擇列',
22
+ // Filters toolbar button text
23
+ toolbarFilters: '過濾器',
24
+ toolbarFiltersLabel: '顯示過濾器',
25
+ toolbarFiltersTooltipHide: '隱藏過濾器',
26
+ toolbarFiltersTooltipShow: '顯示過濾器',
27
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
28
+ // Quick filter toolbar field
29
+ toolbarQuickFilterPlaceholder: '搜尋…',
30
+ toolbarQuickFilterLabel: '搜尋',
31
+ toolbarQuickFilterDeleteIconLabel: '清除',
32
+ // Export selector toolbar button text
33
+ toolbarExport: '出口',
34
+ toolbarExportLabel: '出口',
35
+ toolbarExportCSV: '下載為 CSV',
36
+ toolbarExportPrint: '列印',
37
+ toolbarExportExcel: '下載為 Excel',
38
+ // Columns panel text
39
+ columnsPanelTextFieldLabel: '查找欄目',
40
+ columnsPanelTextFieldPlaceholder: '欄目標題',
41
+ columnsPanelDragIconLabel: '重新排序列',
42
+ columnsPanelShowAllButton: '顯示所有',
43
+ columnsPanelHideAllButton: '全部藏起來',
44
+ // Filter panel text
45
+ filterPanelAddFilter: '新增過濾器',
46
+ filterPanelRemoveAll: '移除所有',
47
+ filterPanelDeleteIconLabel: '刪除',
48
+ filterPanelLogicOperator: '邏輯運算符',
49
+ filterPanelOperator: '操作員',
50
+ filterPanelOperatorAnd: '和',
51
+ filterPanelOperatorOr: '或者',
52
+ filterPanelColumns: '列',
53
+ filterPanelInputLabel: '價值',
54
+ filterPanelInputPlaceholder: '過濾值',
55
+ // Filter operators text
56
+ filterOperatorContains: '包含',
57
+ filterOperatorEquals: '等於',
58
+ filterOperatorStartsWith: '以。。開始',
59
+ filterOperatorEndsWith: '以。。結束',
60
+ filterOperatorIs: '是',
61
+ filterOperatorNot: '不是',
62
+ filterOperatorAfter: '是在之後',
63
+ filterOperatorOnOrAfter: '是在或之後',
64
+ filterOperatorBefore: '是在之前',
65
+ filterOperatorOnOrBefore: '是在或之前',
66
+ filterOperatorIsEmpty: '是空的',
67
+ filterOperatorIsNotEmpty: '不為空',
68
+ filterOperatorIsAnyOf: '是以下任一個',
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
75
+ // Header filter operators text
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<=': '小於或等於',
95
+ // Filter values text
96
+ filterValueAny: '任何',
97
+ filterValueTrue: '真的',
98
+ filterValueFalse: '錯誤的',
99
+ // Column menu text
100
+ columnMenuLabel: '選單',
101
+ columnMenuShowColumns: '顯示欄目',
102
+ columnMenuManageColumns: '管理欄目',
103
+ columnMenuFilter: '篩選',
104
+ columnMenuHideColumn: '隱藏列',
105
+ columnMenuUnsort: '取消排序',
106
+ columnMenuSortAsc: '按升序排序',
107
+ columnMenuSortDesc: '按降序排序',
108
+ // Column header text
109
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
110
+ columnHeaderFiltersLabel: '顯示過濾器',
111
+ columnHeaderSortIconLabel: '種類',
112
+ // Rows selected footer text
113
+ footerRowSelected: count => count !== 1 ? `已選擇 ${count.toLocaleString()} 行` : `已選擇 ${count.toLocaleString()} 行`,
114
+ // Total row amount footer text
115
+ footerTotalRows: '總行數:',
116
+ // Total visible row amount footer text
117
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${totalCount.toLocaleString()} 的 ${visibleCount.toLocaleString()}`,
118
+ // Checkbox selection text
119
+ checkboxSelectionHeaderName: '複選框選擇',
120
+ checkboxSelectionSelectAllRows: '選擇所有行',
121
+ checkboxSelectionUnselectAllRows: '取消選擇所有行',
122
+ checkboxSelectionSelectRow: '選擇行',
123
+ checkboxSelectionUnselectRow: '取消選擇行',
124
+ // Boolean cell text
125
+ booleanCellTrueLabel: '是的',
126
+ booleanCellFalseLabel: '不',
127
+ // Actions cell more text
128
+ actionsCellMore: '更多的',
129
+ // Column pinning text
130
+ pinToLeft: '固定到左側',
131
+ pinToRight: '固定到右側',
132
+ unpin: '取消固定',
133
+ // Tree Data
134
+ treeDataGroupingHeaderName: 'Group',
135
+ treeDataExpand: '看看孩子們',
136
+ treeDataCollapse: '隱藏孩子',
137
+ // Grouping columns
138
+ groupingColumnHeaderName: '團體',
139
+ groupColumn: name => `按 ${name} 分組`,
140
+ unGroupColumn: name => `停止以 ${name} 分組`,
141
+ // Master/detail
142
+ detailPanelToggle: '詳細資訊面板切換',
143
+ expandDetailPanel: '擴張',
144
+ collapseDetailPanel: '坍塌',
145
+ // Row reordering text
146
+ rowReorderingHeaderName: '行重新排序',
147
+ // Aggregation
148
+ aggregationMenuItemHeader: '聚合',
149
+ aggregationFunctionLabelSum: '和',
150
+ aggregationFunctionLabelAvg: '平均',
151
+ aggregationFunctionLabelMin: '分分鐘',
152
+ aggregationFunctionLabelMax: '最大限度',
153
+ aggregationFunctionLabelSize: '尺寸'
154
+ };
155
+ const zhHK = exports.zhHK = (0, _getGridLocalization.getGridLocalization)(zhHKGrid, _locale.zhHK);
@@ -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": "6.18.7",
3
+ "version": "6.19.2",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
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();