@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,149 @@
1
+ import { ptPT as ptPTCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const ptPTGrid = {
4
+ // Root
5
+ noRowsLabel: 'Nenhuma linha',
6
+ noResultsOverlayLabel: 'Nenhum resultado encontrado.',
7
+ // Density selector toolbar button text
8
+ toolbarDensity: 'Densidade',
9
+ toolbarDensityLabel: 'Densidade',
10
+ toolbarDensityCompact: 'Compactar',
11
+ toolbarDensityStandard: 'Padrão',
12
+ toolbarDensityComfortable: 'Confortável',
13
+ // Columns selector toolbar button text
14
+ toolbarColumns: 'Colunas',
15
+ toolbarColumnsLabel: 'Selecione colunas',
16
+ // Filters toolbar button text
17
+ toolbarFilters: 'Filtros',
18
+ toolbarFiltersLabel: 'Mostrar filtros',
19
+ toolbarFiltersTooltipHide: 'Ocultar filtros',
20
+ toolbarFiltersTooltipShow: 'Mostrar filtros',
21
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
22
+ // Quick filter toolbar field
23
+ toolbarQuickFilterPlaceholder: 'Procurar…',
24
+ toolbarQuickFilterLabel: 'Procurar',
25
+ toolbarQuickFilterDeleteIconLabel: 'Claro',
26
+ // Export selector toolbar button text
27
+ toolbarExport: 'Exportar',
28
+ toolbarExportLabel: 'Exportar',
29
+ toolbarExportCSV: 'Baixar como CSV',
30
+ toolbarExportPrint: 'Imprimir',
31
+ toolbarExportExcel: 'Baixe como Excel',
32
+ // Columns panel text
33
+ columnsPanelTextFieldLabel: 'Encontrar coluna',
34
+ columnsPanelTextFieldPlaceholder: 'Título da coluna',
35
+ columnsPanelDragIconLabel: 'Reordenar coluna',
36
+ columnsPanelShowAllButton: 'Mostre tudo',
37
+ columnsPanelHideAllButton: 'Esconda tudo',
38
+ // Filter panel text
39
+ filterPanelAddFilter: 'Adicionar filtro',
40
+ filterPanelRemoveAll: 'Deletar tudo',
41
+ filterPanelDeleteIconLabel: 'Excluir',
42
+ filterPanelLogicOperator: 'Operador lógico',
43
+ filterPanelOperator: 'Operador',
44
+ filterPanelOperatorAnd: 'E',
45
+ filterPanelOperatorOr: 'Ou',
46
+ filterPanelColumns: 'Colunas',
47
+ filterPanelInputLabel: 'Valor',
48
+ filterPanelInputPlaceholder: 'Valor do filtro',
49
+ // Filter operators text
50
+ filterOperatorContains: 'contém',
51
+ filterOperatorEquals: 'é igual a',
52
+ filterOperatorStartsWith: 'começa com',
53
+ filterOperatorEndsWith: 'termina com',
54
+ filterOperatorIs: 'é',
55
+ filterOperatorNot: 'não é',
56
+ filterOperatorAfter: 'está depois',
57
+ filterOperatorOnOrAfter: 'está ligado ou depois',
58
+ filterOperatorBefore: 'é antes',
59
+ filterOperatorOnOrBefore: 'está ligado ou antes',
60
+ filterOperatorIsEmpty: 'está vazia',
61
+ filterOperatorIsNotEmpty: 'não está vazio',
62
+ filterOperatorIsAnyOf: 'é qualquer um',
63
+ 'filterOperator=': '=',
64
+ 'filterOperator!=': '!=',
65
+ 'filterOperator>': '>',
66
+ 'filterOperator>=': '>=',
67
+ 'filterOperator<': '<',
68
+ 'filterOperator<=': '<=',
69
+ // Header filter operators text
70
+ headerFilterOperatorContains: 'Contém',
71
+ headerFilterOperatorEquals: 'É igual a',
72
+ headerFilterOperatorStartsWith: 'Começa com',
73
+ headerFilterOperatorEndsWith: 'Termina com',
74
+ headerFilterOperatorIs: 'É',
75
+ headerFilterOperatorNot: 'Não é',
76
+ headerFilterOperatorAfter: 'Está depois',
77
+ headerFilterOperatorOnOrAfter: 'Está ligado ou depois',
78
+ headerFilterOperatorBefore: 'É antes',
79
+ headerFilterOperatorOnOrBefore: 'Está ligado ou antes',
80
+ headerFilterOperatorIsEmpty: 'Está vazia',
81
+ headerFilterOperatorIsNotEmpty: 'Não está vazio',
82
+ headerFilterOperatorIsAnyOf: 'Algum',
83
+ 'headerFilterOperator=': 'É igual a',
84
+ 'headerFilterOperator!=': 'Não é igual',
85
+ 'headerFilterOperator>': 'Maior que',
86
+ 'headerFilterOperator>=': 'Melhor que ou igual a',
87
+ 'headerFilterOperator<': 'Menor que',
88
+ 'headerFilterOperator<=': 'Menos que ou igual a',
89
+ // Filter values text
90
+ filterValueAny: 'qualquer',
91
+ filterValueTrue: 'verdadeiro',
92
+ filterValueFalse: 'falso',
93
+ // Column menu text
94
+ columnMenuLabel: 'Cardápio',
95
+ columnMenuShowColumns: 'Mostrar colunas',
96
+ columnMenuManageColumns: 'Gerenciar colunas',
97
+ columnMenuFilter: 'Filtro',
98
+ columnMenuHideColumn: 'Ocultar coluna',
99
+ columnMenuUnsort: 'Desclassificar',
100
+ columnMenuSortAsc: 'Classificar por ordem crescente',
101
+ columnMenuSortDesc: 'Classificar por ordem decrescente',
102
+ // Column header text
103
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
104
+ columnHeaderFiltersLabel: 'Mostrar filtros',
105
+ columnHeaderSortIconLabel: 'Organizar',
106
+ // Rows selected footer text
107
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
108
+ // Total row amount footer text
109
+ footerTotalRows: 'Total de linhas:',
110
+ // Total visible row amount footer text
111
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
112
+ // Checkbox selection text
113
+ checkboxSelectionHeaderName: 'Seleção de caixa de seleção',
114
+ checkboxSelectionSelectAllRows: 'Selecione todas as linhas',
115
+ checkboxSelectionUnselectAllRows: 'Desmarque todas as linhas',
116
+ checkboxSelectionSelectRow: 'Selecione a linha',
117
+ checkboxSelectionUnselectRow: 'Desmarcar linha',
118
+ // Boolean cell text
119
+ booleanCellTrueLabel: 'sim',
120
+ booleanCellFalseLabel: 'não',
121
+ // Actions cell more text
122
+ actionsCellMore: 'mais',
123
+ // Column pinning text
124
+ pinToLeft: 'Fixar à esquerda',
125
+ pinToRight: 'Fixar à direita',
126
+ unpin: 'Liberar',
127
+ // Tree Data
128
+ treeDataGroupingHeaderName: 'Group',
129
+ treeDataExpand: 'veja crianças',
130
+ treeDataCollapse: 'esconder crianças',
131
+ // Grouping columns
132
+ groupingColumnHeaderName: 'Grupo',
133
+ groupColumn: name => `Agrupar por ${name}`,
134
+ unGroupColumn: name => `Pare de agrupar por ${name}`,
135
+ // Master/detail
136
+ detailPanelToggle: 'Alternar painel de detalhes',
137
+ expandDetailPanel: 'Expandir',
138
+ collapseDetailPanel: 'Colapso',
139
+ // Row reordering text
140
+ rowReorderingHeaderName: 'Reordenação de linhas',
141
+ // Aggregation
142
+ aggregationMenuItemHeader: 'Agregação',
143
+ aggregationFunctionLabelSum: 'soma',
144
+ aggregationFunctionLabelAvg: 'média',
145
+ aggregationFunctionLabelMin: 'min',
146
+ aggregationFunctionLabelMax: 'máx.',
147
+ aggregationFunctionLabelSize: 'tamanho'
148
+ };
149
+ export const ptPT = getGridLocalization(ptPTGrid, ptPTCore);
@@ -0,0 +1,149 @@
1
+ import { zhHK as zhHKCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const zhHKGrid = {
4
+ // Root
5
+ noRowsLabel: '沒有行',
6
+ noResultsOverlayLabel: '未找到結果。',
7
+ // Density selector toolbar button text
8
+ toolbarDensity: '密度',
9
+ toolbarDensityLabel: '密度',
10
+ toolbarDensityCompact: '袖珍的',
11
+ toolbarDensityStandard: '標準',
12
+ toolbarDensityComfortable: '舒服的',
13
+ // Columns selector toolbar button text
14
+ toolbarColumns: '列',
15
+ toolbarColumnsLabel: '選擇列',
16
+ // Filters toolbar button text
17
+ toolbarFilters: '過濾器',
18
+ toolbarFiltersLabel: '顯示過濾器',
19
+ toolbarFiltersTooltipHide: '隱藏過濾器',
20
+ toolbarFiltersTooltipShow: '顯示過濾器',
21
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
22
+ // Quick filter toolbar field
23
+ toolbarQuickFilterPlaceholder: '搜尋…',
24
+ toolbarQuickFilterLabel: '搜尋',
25
+ toolbarQuickFilterDeleteIconLabel: '清除',
26
+ // Export selector toolbar button text
27
+ toolbarExport: '出口',
28
+ toolbarExportLabel: '出口',
29
+ toolbarExportCSV: '下載為 CSV',
30
+ toolbarExportPrint: '列印',
31
+ toolbarExportExcel: '下載為 Excel',
32
+ // Columns panel text
33
+ columnsPanelTextFieldLabel: '查找欄目',
34
+ columnsPanelTextFieldPlaceholder: '欄目標題',
35
+ columnsPanelDragIconLabel: '重新排序列',
36
+ columnsPanelShowAllButton: '顯示所有',
37
+ columnsPanelHideAllButton: '全部藏起來',
38
+ // Filter panel text
39
+ filterPanelAddFilter: '新增過濾器',
40
+ filterPanelRemoveAll: '移除所有',
41
+ filterPanelDeleteIconLabel: '刪除',
42
+ filterPanelLogicOperator: '邏輯運算符',
43
+ filterPanelOperator: '操作員',
44
+ filterPanelOperatorAnd: '和',
45
+ filterPanelOperatorOr: '或者',
46
+ filterPanelColumns: '列',
47
+ filterPanelInputLabel: '價值',
48
+ filterPanelInputPlaceholder: '過濾值',
49
+ // Filter operators text
50
+ filterOperatorContains: '包含',
51
+ filterOperatorEquals: '等於',
52
+ filterOperatorStartsWith: '以。。開始',
53
+ filterOperatorEndsWith: '以。。結束',
54
+ filterOperatorIs: '是',
55
+ filterOperatorNot: '不是',
56
+ filterOperatorAfter: '是在之後',
57
+ filterOperatorOnOrAfter: '是在或之後',
58
+ filterOperatorBefore: '是在之前',
59
+ filterOperatorOnOrBefore: '是在或之前',
60
+ filterOperatorIsEmpty: '是空的',
61
+ filterOperatorIsNotEmpty: '不為空',
62
+ filterOperatorIsAnyOf: '是以下任一個',
63
+ 'filterOperator=': '=',
64
+ 'filterOperator!=': '!=',
65
+ 'filterOperator>': '>',
66
+ 'filterOperator>=': '>=',
67
+ 'filterOperator<': '<',
68
+ 'filterOperator<=': '<=',
69
+ // Header filter operators text
70
+ headerFilterOperatorContains: '包含',
71
+ headerFilterOperatorEquals: '等於',
72
+ headerFilterOperatorStartsWith: '以。。開始',
73
+ headerFilterOperatorEndsWith: '以。。結束',
74
+ headerFilterOperatorIs: '是',
75
+ headerFilterOperatorNot: '不是',
76
+ headerFilterOperatorAfter: '是在之後',
77
+ headerFilterOperatorOnOrAfter: '是在或之後',
78
+ headerFilterOperatorBefore: '是之前',
79
+ headerFilterOperatorOnOrBefore: '是在或之前',
80
+ headerFilterOperatorIsEmpty: '是空的',
81
+ headerFilterOperatorIsNotEmpty: '不為空',
82
+ headerFilterOperatorIsAnyOf: '是以下任一個',
83
+ 'headerFilterOperator=': '等於',
84
+ 'headerFilterOperator!=': '不等於',
85
+ 'headerFilterOperator>': '比...更棒',
86
+ 'headerFilterOperator>=': '大於或等於',
87
+ 'headerFilterOperator<': '少於',
88
+ 'headerFilterOperator<=': '小於或等於',
89
+ // Filter values text
90
+ filterValueAny: '任何',
91
+ filterValueTrue: '真的',
92
+ filterValueFalse: '錯誤的',
93
+ // Column menu text
94
+ columnMenuLabel: '選單',
95
+ columnMenuShowColumns: '顯示欄目',
96
+ columnMenuManageColumns: '管理欄目',
97
+ columnMenuFilter: '篩選',
98
+ columnMenuHideColumn: '隱藏列',
99
+ columnMenuUnsort: '取消排序',
100
+ columnMenuSortAsc: '按升序排序',
101
+ columnMenuSortDesc: '按降序排序',
102
+ // Column header text
103
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
104
+ columnHeaderFiltersLabel: '顯示過濾器',
105
+ columnHeaderSortIconLabel: '種類',
106
+ // Rows selected footer text
107
+ footerRowSelected: count => count !== 1 ? `已選擇 ${count.toLocaleString()} 行` : `已選擇 ${count.toLocaleString()} 行`,
108
+ // Total row amount footer text
109
+ footerTotalRows: '總行數:',
110
+ // Total visible row amount footer text
111
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${totalCount.toLocaleString()} 的 ${visibleCount.toLocaleString()}`,
112
+ // Checkbox selection text
113
+ checkboxSelectionHeaderName: '複選框選擇',
114
+ checkboxSelectionSelectAllRows: '選擇所有行',
115
+ checkboxSelectionUnselectAllRows: '取消選擇所有行',
116
+ checkboxSelectionSelectRow: '選擇行',
117
+ checkboxSelectionUnselectRow: '取消選擇行',
118
+ // Boolean cell text
119
+ booleanCellTrueLabel: '是的',
120
+ booleanCellFalseLabel: '不',
121
+ // Actions cell more text
122
+ actionsCellMore: '更多的',
123
+ // Column pinning text
124
+ pinToLeft: '固定到左側',
125
+ pinToRight: '固定到右側',
126
+ unpin: '取消固定',
127
+ // Tree Data
128
+ treeDataGroupingHeaderName: 'Group',
129
+ treeDataExpand: '看看孩子們',
130
+ treeDataCollapse: '隱藏孩子',
131
+ // Grouping columns
132
+ groupingColumnHeaderName: '團體',
133
+ groupColumn: name => `按 ${name} 分組`,
134
+ unGroupColumn: name => `停止以 ${name} 分組`,
135
+ // Master/detail
136
+ detailPanelToggle: '詳細資訊面板切換',
137
+ expandDetailPanel: '擴張',
138
+ collapseDetailPanel: '坍塌',
139
+ // Row reordering text
140
+ rowReorderingHeaderName: '行重新排序',
141
+ // Aggregation
142
+ aggregationMenuItemHeader: '聚合',
143
+ aggregationFunctionLabelSum: '和',
144
+ aggregationFunctionLabelAvg: '平均',
145
+ aggregationFunctionLabelMin: '分分鐘',
146
+ aggregationFunctionLabelMax: '最大限度',
147
+ aggregationFunctionLabelSize: '尺寸'
148
+ };
149
+ export const zhHK = getGridLocalization(zhHKGrid, zhHKCore);
@@ -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();
@@ -61,7 +61,6 @@ function EmptyCell({
61
61
  style: style
62
62
  }); // TODO change to .MuiDataGrid-emptyCell or .MuiDataGrid-rowFiller
63
63
  }
64
-
65
64
  const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
66
65
  const {
67
66
  selected,
@@ -40,7 +40,6 @@ const GridOverlayWrapperRoot = (0, _system.styled)('div', {
40
40
  zIndex: overlayType === 'loadingOverlay' ? 5 // Should be above pinned columns, pinned rows, and detail panel
41
41
  : 4 // Should be above pinned columns and detail panel
42
42
  }));
43
-
44
43
  const GridOverlayWrapperInner = (0, _system.styled)('div', {
45
44
  name: 'MuiDataGrid',
46
45
  slot: 'OverlayWrapperInner',
@@ -71,7 +70,6 @@ function GridOverlayWrapper(props) {
71
70
  if (rootProps.autoHeight && height === 0) {
72
71
  height = (0, _gridRowsUtils.getMinimalContentHeight)(apiRef, rootProps.rowHeight); // Give room to show the overlay when there no rows.
73
72
  }
74
-
75
73
  const classes = useUtilityClasses((0, _extends2.default)({}, props, {
76
74
  classes: rootProps.classes
77
75
  }));
@@ -135,7 +135,6 @@ function GridActionsCell(props) {
135
135
  if (newIndex < 0 || newIndex >= numberOfButtons) {
136
136
  return; // We're already in the first or last item = do nothing and let the grid listen the event
137
137
  }
138
-
139
138
  if (newIndex !== focusedButtonIndex) {
140
139
  event.preventDefault(); // Prevent scrolling
141
140
  event.stopPropagation(); // Don't stop propagation for other keys, e.g. ArrowUp
@@ -132,12 +132,16 @@ process.env.NODE_ENV !== "production" ? GridToolbarQuickFilter.propTypes = {
132
132
  * Function responsible for formatting values of quick filter in a string when the model is modified
133
133
  * @param {any[]} values The new values passed to the quick filter model
134
134
  * @returns {string} The string to display in the text field
135
+ * @default (values: string[]) => values.join(' ')
135
136
  */
136
137
  quickFilterFormatter: _propTypes.default.func,
137
138
  /**
138
139
  * Function responsible for parsing text input in an array of independent values for quick filtering.
139
140
  * @param {string} input The value entered by the user
140
141
  * @returns {any[]} The array of value on which quick filter is applied
142
+ * @default (searchText: string) => searchText
143
+ * .split(' ')
144
+ * .filter((word) => word !== '')
141
145
  */
142
146
  quickFilterParser: _propTypes.default.func
143
147
  } : void 0;
@@ -38,7 +38,6 @@ const VirtualScrollerRoot = (0, _system.styled)('div', {
38
38
  },
39
39
  zIndex: 0 // See https://github.com/mui/mui-x/issues/10547
40
40
  });
41
-
42
41
  const GridVirtualScroller = exports.GridVirtualScroller = /*#__PURE__*/React.forwardRef(function GridVirtualScroller(props, ref) {
43
42
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
44
43
  const classes = useUtilityClasses(rootProps);
@@ -90,7 +90,6 @@ const useGridCellEditing = (apiRef, props) => {
90
90
  reason = event.shiftKey ? _gridEditCellParams.GridCellEditStopReasons.shiftTabKeyDown : _gridEditCellParams.GridCellEditStopReasons.tabKeyDown;
91
91
  event.preventDefault(); // Prevent going to the next element in the tab sequence
92
92
  }
93
-
94
93
  if (reason) {
95
94
  const newParams = (0, _extends2.default)({}, params, {
96
95
  reason
@@ -184,7 +183,6 @@ const useGridCellEditing = (apiRef, props) => {
184
183
  if (props.cellModesModel && isNewModelDifferentFromProp) {
185
184
  return; // The prop always win
186
185
  }
187
-
188
186
  setCellModesModel(newModel);
189
187
  cellModesModelRef.current = newModel;
190
188
  apiRef.current.publishEvent('cellModesModelChange', newModel);
@@ -248,7 +248,6 @@ const useGridRowEditing = (apiRef, props) => {
248
248
  if (props.rowModesModel && isNewModelDifferentFromProp) {
249
249
  return; // The prop always win
250
250
  }
251
-
252
251
  setRowModesModel(newModel);
253
252
  rowModesModelRef.current = newModel;
254
253
  apiRef.current.publishEvent('rowModesModelChange', newModel);
@@ -149,7 +149,10 @@ const getTreeNodeDescendants = (tree, parentId, skipAutoGeneratedRows) => {
149
149
  if (!skipAutoGeneratedRows || !isAutoGeneratedRow(tree[child])) {
150
150
  validDescendants.push(child);
151
151
  }
152
- validDescendants.push(...getTreeNodeDescendants(tree, child, skipAutoGeneratedRows));
152
+ const childDescendants = getTreeNodeDescendants(tree, child, skipAutoGeneratedRows);
153
+ for (let j = 0; j < childDescendants.length; j += 1) {
154
+ validDescendants.push(childDescendants[j]);
155
+ }
153
156
  }
154
157
  if (!skipAutoGeneratedRows && node.footerId != null) {
155
158
  validDescendants.push(node.footerId);
@@ -77,7 +77,6 @@ const useGridRowsMeta = (apiRef, props) => {
77
77
  needsFirstMeasurement: true // Assume all rows will need to be measured by default
78
78
  };
79
79
  }
80
-
81
80
  const {
82
81
  isResized,
83
82
  needsFirstMeasurement,
@@ -561,7 +561,6 @@ const useGridVirtualScroller = props => {
561
561
  if (rootProps.autoHeight && currentPage.rows.length === 0) {
562
562
  size.height = (0, _gridRowsUtils.getMinimalContentHeight)(apiRef, rootProps.rowHeight); // Give room to show the overlay when there no rows.
563
563
  }
564
-
565
564
  return size;
566
565
  }, [apiRef, rootRef, columnsTotalWidth, rowsMeta.currentPageTotalHeight, needsHorizontalScrollbar, rootProps.autoHeight, rootProps.rowHeight, currentPage.rows.length]);
567
566
  React.useEffect(() => {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.18.7
2
+ * @mui/x-data-grid v6.19.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.hrHR = void 0;
7
+ var _locale = require("@mui/material/locale");
8
+ var _getGridLocalization = require("../utils/getGridLocalization");
9
+ const hrHRGrid = {
10
+ // Root
11
+ noRowsLabel: 'Nema redova',
12
+ noResultsOverlayLabel: 'Nema rezultata.',
13
+ // Density selector toolbar button text
14
+ toolbarDensity: 'Gustoća',
15
+ toolbarDensityLabel: 'Gustoća',
16
+ toolbarDensityCompact: 'Kompaktan',
17
+ toolbarDensityStandard: 'Standard',
18
+ toolbarDensityComfortable: 'Udobno',
19
+ // Columns selector toolbar button text
20
+ toolbarColumns: 'Stupci',
21
+ toolbarColumnsLabel: 'Odaberite stupce',
22
+ // Filters toolbar button text
23
+ toolbarFilters: 'Filteri',
24
+ toolbarFiltersLabel: 'Prikaži filtre',
25
+ toolbarFiltersTooltipHide: 'Sakrij filtre',
26
+ toolbarFiltersTooltipShow: 'Prikaži filtre',
27
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
28
+ // Quick filter toolbar field
29
+ toolbarQuickFilterPlaceholder: 'Traži…',
30
+ toolbarQuickFilterLabel: 'traži',
31
+ toolbarQuickFilterDeleteIconLabel: 'Čisto',
32
+ // Export selector toolbar button text
33
+ toolbarExport: 'Izvoz',
34
+ toolbarExportLabel: 'Izvoz',
35
+ toolbarExportCSV: 'Preuzmi kao CSV',
36
+ toolbarExportPrint: 'Ispis',
37
+ toolbarExportExcel: 'Preuzmite kao Excel',
38
+ // Columns panel text
39
+ columnsPanelTextFieldLabel: 'Pronađi stupac',
40
+ columnsPanelTextFieldPlaceholder: 'Naslov stupca',
41
+ columnsPanelDragIconLabel: 'Promijeni redoslijed stupca',
42
+ columnsPanelShowAllButton: 'Pokaži sve',
43
+ columnsPanelHideAllButton: 'Sakrij sve',
44
+ // Filter panel text
45
+ filterPanelAddFilter: 'Dodajte filter',
46
+ filterPanelRemoveAll: 'Ukloniti sve',
47
+ filterPanelDeleteIconLabel: 'Izbrisati',
48
+ filterPanelLogicOperator: 'Logički operator',
49
+ filterPanelOperator: 'Operater',
50
+ filterPanelOperatorAnd: 'I',
51
+ filterPanelOperatorOr: 'Ili',
52
+ filterPanelColumns: 'Stupci',
53
+ filterPanelInputLabel: 'Vrijednost',
54
+ filterPanelInputPlaceholder: 'Vrijednost filtra',
55
+ // Filter operators text
56
+ filterOperatorContains: 'sadrži',
57
+ filterOperatorEquals: 'jednaki',
58
+ filterOperatorStartsWith: 'počinje sa',
59
+ filterOperatorEndsWith: 'završava sa',
60
+ filterOperatorIs: 'je',
61
+ filterOperatorNot: 'nije',
62
+ filterOperatorAfter: 'je poslije',
63
+ filterOperatorOnOrAfter: 'je na ili poslije',
64
+ filterOperatorBefore: 'je prije',
65
+ filterOperatorOnOrBefore: 'je na ili prije',
66
+ filterOperatorIsEmpty: 'prazno je',
67
+ filterOperatorIsNotEmpty: 'nije prazna',
68
+ filterOperatorIsAnyOf: 'je bilo koji od',
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
75
+ // Header filter operators text
76
+ headerFilterOperatorContains: 'Sadrži',
77
+ headerFilterOperatorEquals: 'Jednako',
78
+ headerFilterOperatorStartsWith: 'Počinje sa',
79
+ headerFilterOperatorEndsWith: 'Završava s',
80
+ headerFilterOperatorIs: 'Je',
81
+ headerFilterOperatorNot: 'Nije',
82
+ headerFilterOperatorAfter: 'Je poslije',
83
+ headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije',
84
+ headerFilterOperatorBefore: 'Je li prije',
85
+ headerFilterOperatorOnOrBefore: 'Uključeno je ili prije',
86
+ headerFilterOperatorIsEmpty: 'Prazno je',
87
+ headerFilterOperatorIsNotEmpty: 'Nije prazna',
88
+ headerFilterOperatorIsAnyOf: 'Je li bilo koji od',
89
+ 'headerFilterOperator=': 'Jednako',
90
+ 'headerFilterOperator!=': 'Nije jednako',
91
+ 'headerFilterOperator>': 'Veći od',
92
+ 'headerFilterOperator>=': 'Veće ili jednako',
93
+ 'headerFilterOperator<': 'Manje od',
94
+ 'headerFilterOperator<=': 'Manje od ili jednako',
95
+ // Filter values text
96
+ filterValueAny: 'bilo koji',
97
+ filterValueTrue: 'pravi',
98
+ filterValueFalse: 'lažno',
99
+ // Column menu text
100
+ columnMenuLabel: 'Jelovnik ',
101
+ columnMenuShowColumns: 'Prikaži stupce',
102
+ columnMenuManageColumns: 'Upravljanje stupcima',
103
+ columnMenuFilter: 'filtar',
104
+ columnMenuHideColumn: 'Sakrij stupac',
105
+ columnMenuUnsort: 'Poništi sortiranje',
106
+ columnMenuSortAsc: 'Poredaj uzlazno',
107
+ columnMenuSortDesc: 'Poredaj silaznim redom',
108
+ // Column header text
109
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
110
+ columnHeaderFiltersLabel: 'Prikaži filtre',
111
+ columnHeaderSortIconLabel: 'Vrsta',
112
+ // Rows selected footer text
113
+ footerRowSelected: count => count !== 1 ? `Odabrano je ${count.toLocaleString()} redaka` : `${count.toLocaleString()} redak odabran`,
114
+ // Total row amount footer text
115
+ footerTotalRows: 'Ukupno redaka:',
116
+ // Total visible row amount footer text
117
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} od ${totalCount.toLocaleString()}`,
118
+ // Checkbox selection text
119
+ checkboxSelectionHeaderName: 'Odabir potvrdnog okvira',
120
+ checkboxSelectionSelectAllRows: 'Odaberite sve retke',
121
+ checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka',
122
+ checkboxSelectionSelectRow: 'Odaberite red',
123
+ checkboxSelectionUnselectRow: 'Poništi odabir retka',
124
+ // Boolean cell text
125
+ booleanCellTrueLabel: 'Da',
126
+ booleanCellFalseLabel: 'Ne',
127
+ // Actions cell more text
128
+ actionsCellMore: 'više',
129
+ // Column pinning text
130
+ pinToLeft: 'Prikvači lijevo',
131
+ pinToRight: 'Prikvači desno',
132
+ unpin: 'Otkvači',
133
+ // Tree Data
134
+ treeDataGroupingHeaderName: 'Group',
135
+ treeDataExpand: 'vidjeti djecu',
136
+ treeDataCollapse: 'sakriti djecu',
137
+ // Grouping columns
138
+ groupingColumnHeaderName: 'Skupina',
139
+ groupColumn: name => `Grupiraj prema ${name}`,
140
+ unGroupColumn: name => `Zaustavi grupiranje prema ${name}`,
141
+ // Master/detail
142
+ detailPanelToggle: 'Prebacivanje ploče s detaljima',
143
+ expandDetailPanel: 'Proširiti',
144
+ collapseDetailPanel: 'Kolaps',
145
+ // Row reordering text
146
+ rowReorderingHeaderName: 'Promjena redoslijeda',
147
+ // Aggregation
148
+ aggregationMenuItemHeader: 'Agregacija',
149
+ aggregationFunctionLabelSum: 'iznos',
150
+ aggregationFunctionLabelAvg: 'prosj',
151
+ aggregationFunctionLabelMin: 'min',
152
+ aggregationFunctionLabelMax: 'max',
153
+ aggregationFunctionLabelSize: 'veličina'
154
+ };
155
+ const hrHR = exports.hrHR = (0, _getGridLocalization.getGridLocalization)(hrHRGrid, _locale.hrHR);
@@ -343,4 +343,37 @@ Object.keys(_zhTW).forEach(function (key) {
343
343
  return _zhTW[key];
344
344
  }
345
345
  });
346
+ });
347
+ var _hrHR = require("./hrHR");
348
+ Object.keys(_hrHR).forEach(function (key) {
349
+ if (key === "default" || key === "__esModule") return;
350
+ if (key in exports && exports[key] === _hrHR[key]) return;
351
+ Object.defineProperty(exports, key, {
352
+ enumerable: true,
353
+ get: function () {
354
+ return _hrHR[key];
355
+ }
356
+ });
357
+ });
358
+ var _ptPT = require("./ptPT");
359
+ Object.keys(_ptPT).forEach(function (key) {
360
+ if (key === "default" || key === "__esModule") return;
361
+ if (key in exports && exports[key] === _ptPT[key]) return;
362
+ Object.defineProperty(exports, key, {
363
+ enumerable: true,
364
+ get: function () {
365
+ return _ptPT[key];
366
+ }
367
+ });
368
+ });
369
+ var _zhHK = require("./zhHK");
370
+ Object.keys(_zhHK).forEach(function (key) {
371
+ if (key === "default" || key === "__esModule") return;
372
+ if (key in exports && exports[key] === _zhHK[key]) return;
373
+ Object.defineProperty(exports, key, {
374
+ enumerable: true,
375
+ get: function () {
376
+ return _zhHK[key];
377
+ }
378
+ });
346
379
  });
@@ -155,5 +155,4 @@ const plPLGrid = {
155
155
  // aggregationFunctionLabelMax: 'max',
156
156
  // aggregationFunctionLabelSize: 'size',
157
157
  };
158
-
159
158
  const plPL = exports.plPL = (0, _getGridLocalization.getGridLocalization)(plPLGrid, _locale.plPL);