@mui/x-data-grid 7.11.0 → 7.11.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/components/panel/GridPreferencesPanel.d.ts +1 -1
  3. package/components/panel/GridPreferencesPanel.js +3 -4
  4. package/hooks/core/useGridApiInitialization.js +1 -1
  5. package/hooks/features/editing/useGridCellEditing.js +2 -3
  6. package/hooks/features/editing/useGridRowEditing.js +2 -3
  7. package/hooks/features/export/serializers/csvSerializer.js +7 -8
  8. package/hooks/features/filter/gridFilterUtils.js +12 -9
  9. package/hooks/features/sorting/gridSortingUtils.js +2 -3
  10. package/hooks/utils/useGridApiEventHandler.d.ts +2 -1
  11. package/hooks/utils/useGridApiEventHandler.js +1 -0
  12. package/hooks/utils/useGridSelector.js +2 -3
  13. package/index.js +1 -1
  14. package/internals/index.d.ts +0 -1
  15. package/internals/index.js +0 -1
  16. package/internals/utils/index.d.ts +1 -0
  17. package/internals/utils/index.js +2 -1
  18. package/internals/utils/propValidation.d.ts +0 -1
  19. package/internals/utils/propValidation.js +4 -13
  20. package/internals/utils/warning.d.ts +2 -0
  21. package/internals/utils/warning.js +21 -0
  22. package/locales/deDE.js +1 -2
  23. package/locales/index.d.ts +2 -0
  24. package/locales/index.js +3 -1
  25. package/locales/isIS.d.ts +2 -0
  26. package/locales/isIS.js +149 -0
  27. package/locales/nbNO.js +30 -32
  28. package/locales/nnNO.d.ts +2 -0
  29. package/locales/nnNO.js +148 -0
  30. package/modern/components/panel/GridPreferencesPanel.js +3 -4
  31. package/modern/hooks/core/useGridApiInitialization.js +1 -1
  32. package/modern/hooks/features/editing/useGridCellEditing.js +2 -3
  33. package/modern/hooks/features/editing/useGridRowEditing.js +2 -3
  34. package/modern/hooks/features/export/serializers/csvSerializer.js +7 -8
  35. package/modern/hooks/features/filter/gridFilterUtils.js +12 -9
  36. package/modern/hooks/features/sorting/gridSortingUtils.js +2 -3
  37. package/modern/hooks/utils/useGridApiEventHandler.js +1 -0
  38. package/modern/hooks/utils/useGridSelector.js +2 -3
  39. package/modern/index.js +1 -1
  40. package/modern/internals/index.js +0 -1
  41. package/modern/internals/utils/index.js +2 -1
  42. package/modern/internals/utils/propValidation.js +4 -13
  43. package/modern/internals/utils/warning.js +21 -0
  44. package/modern/locales/deDE.js +1 -2
  45. package/modern/locales/index.js +3 -1
  46. package/modern/locales/isIS.js +149 -0
  47. package/modern/locales/nbNO.js +30 -32
  48. package/modern/locales/nnNO.js +148 -0
  49. package/modern/utils/createSelector.js +2 -3
  50. package/node/components/panel/GridPreferencesPanel.js +4 -5
  51. package/node/hooks/core/useGridApiInitialization.js +1 -1
  52. package/node/hooks/features/editing/useGridCellEditing.js +2 -3
  53. package/node/hooks/features/editing/useGridRowEditing.js +2 -3
  54. package/node/hooks/features/export/serializers/csvSerializer.js +7 -8
  55. package/node/hooks/features/filter/gridFilterUtils.js +12 -9
  56. package/node/hooks/features/sorting/gridSortingUtils.js +2 -3
  57. package/node/hooks/utils/useGridApiEventHandler.js +1 -0
  58. package/node/hooks/utils/useGridSelector.js +2 -3
  59. package/node/index.js +1 -1
  60. package/node/internals/index.js +0 -8
  61. package/node/internals/utils/index.js +11 -0
  62. package/node/internals/utils/propValidation.js +4 -14
  63. package/node/internals/utils/warning.js +28 -0
  64. package/node/locales/deDE.js +1 -2
  65. package/node/locales/index.js +22 -0
  66. package/node/locales/isIS.js +155 -0
  67. package/node/locales/nbNO.js +30 -32
  68. package/node/locales/nnNO.js +154 -0
  69. package/node/utils/createSelector.js +2 -3
  70. package/package.json +4 -4
  71. package/utils/createSelector.js +2 -3
  72. package/modern/utils/warning.js +0 -24
  73. package/node/utils/warning.js +0 -32
  74. package/utils/warning.d.ts +0 -2
  75. package/utils/warning.js +0 -24
@@ -7,11 +7,10 @@ exports.useGridSelector = exports.objectShallowCompare = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _useLazyRef = require("./useLazyRef");
9
9
  var _useOnMount = require("./useOnMount");
10
- var _warning = require("../../utils/warning");
10
+ var _warning = require("../../internals/utils/warning");
11
11
  var _fastObjectShallowCompare = require("../../utils/fastObjectShallowCompare");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- const stateNotInitializedWarning = (0, _warning.buildWarning)(['MUI X: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);
15
14
  function isOutputSelector(selector) {
16
15
  return selector.acceptsApiRef;
17
16
  }
@@ -31,7 +30,7 @@ const createRefs = () => ({
31
30
  const useGridSelector = (apiRef, selector, equals = defaultCompare) => {
32
31
  if (process.env.NODE_ENV !== 'production') {
33
32
  if (!apiRef.current.state) {
34
- stateNotInitializedWarning();
33
+ (0, _warning.warnOnce)(['MUI X: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);
35
34
  }
36
35
  }
37
36
  const refs = (0, _useLazyRef.useLazyRef)(createRefs);
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v7.11.0
2
+ * @mui/x-data-grid v7.11.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -87,7 +87,6 @@ var _exportNames = {
87
87
  isEventTargetInPortal: true,
88
88
  isNavigationKey: true,
89
89
  isPasteShortcut: true,
90
- buildWarning: true,
91
90
  exportAs: true,
92
91
  useGridPrivateApiContext: true,
93
92
  serializeCellValue: true
@@ -152,12 +151,6 @@ Object.defineProperty(exports, "buildRootGroup", {
152
151
  return _gridRowsUtils.buildRootGroup;
153
152
  }
154
153
  });
155
- Object.defineProperty(exports, "buildWarning", {
156
- enumerable: true,
157
- get: function () {
158
- return _warning.buildWarning;
159
- }
160
- });
161
154
  Object.defineProperty(exports, "calculatePinnedRowsHeight", {
162
155
  enumerable: true,
163
156
  get: function () {
@@ -750,7 +743,6 @@ Object.keys(_fastMemo).forEach(function (key) {
750
743
  }
751
744
  });
752
745
  });
753
- var _warning = require("../utils/warning");
754
746
  var _exportAs = require("../utils/exportAs");
755
747
  var _getPublicApiRef = require("../utils/getPublicApiRef");
756
748
  Object.keys(_getPublicApiRef).forEach(function (key) {
@@ -35,4 +35,15 @@ Object.keys(_propValidation).forEach(function (key) {
35
35
  return _propValidation[key];
36
36
  }
37
37
  });
38
+ });
39
+ var _warning = require("./warning");
40
+ Object.keys(_warning).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _warning[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _warning[key];
47
+ }
48
+ });
38
49
  });
@@ -3,27 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.clearWarningsCache = clearWarningsCache;
7
6
  exports.propValidatorsDataGrid = void 0;
8
7
  exports.validateProps = validateProps;
8
+ var _warning = require("./warning");
9
9
  var _utils = require("../../utils/utils");
10
10
  var _useGridApiEventHandler = require("../../hooks/utils/useGridApiEventHandler");
11
11
  const propValidatorsDataGrid = exports.propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined, props => props.paginationMode === 'client' && props.paginationMeta != null && ['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.', '`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.signature === _useGridApiEventHandler.GridSignature.DataGrid && props.paginationMode === 'client' && (0, _utils.isNumber)(props.rowCount) && ['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.', '`rowCount` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.paginationMode === 'server' && props.rowCount == null && !props.unstable_dataSource && ["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`", 'For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination'].join('\n') || undefined];
12
- const warnedOnceCache = new Set();
13
- function warnOnce(message) {
14
- if (!warnedOnceCache.has(message)) {
15
- console.error(message);
16
- warnedOnceCache.add(message);
17
- }
18
- }
19
12
  function validateProps(props, validators) {
20
13
  validators.forEach(validator => {
21
- const warning = validator(props);
22
- if (warning) {
23
- warnOnce(warning);
14
+ const message = validator(props);
15
+ if (message) {
16
+ (0, _warning.warnOnce)(message, 'error');
24
17
  }
25
18
  });
26
- }
27
- function clearWarningsCache() {
28
- warnedOnceCache.clear();
29
19
  }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.clearWarningsCache = clearWarningsCache;
7
+ exports.warnOnce = warnOnce;
8
+ const warnedOnceCache = new Set();
9
+
10
+ // TODO move to @mui/x-internals
11
+ // TODO eventually move to @base_ui/internals. Base UI, etc. too need this helper.
12
+ function warnOnce(message, gravity = 'warning') {
13
+ if (process.env.NODE_ENV === 'production') {
14
+ return;
15
+ }
16
+ const cleanMessage = Array.isArray(message) ? message.join('\n') : message;
17
+ if (!warnedOnceCache.has(cleanMessage)) {
18
+ warnedOnceCache.add(cleanMessage);
19
+ if (gravity === 'error') {
20
+ console.error(cleanMessage);
21
+ } else {
22
+ console.warn(cleanMessage);
23
+ }
24
+ }
25
+ }
26
+ function clearWarningsCache() {
27
+ warnedOnceCache.clear();
28
+ }
@@ -39,8 +39,7 @@ const deDEGrid = {
39
39
  columnsManagementSearchTitle: 'Suche',
40
40
  columnsManagementNoColumns: 'Keine Spalten',
41
41
  columnsManagementShowHideAllText: 'Alle anzeigen/verbergen',
42
- // columnsManagementReset: 'Reset',
43
-
42
+ columnsManagementReset: 'Zurücksetzen',
44
43
  // Filter panel text
45
44
  filterPanelAddFilter: 'Filter hinzufügen',
46
45
  filterPanelRemoveAll: 'Alle entfernen',
@@ -212,6 +212,17 @@ Object.keys(_nlNL).forEach(function (key) {
212
212
  }
213
213
  });
214
214
  });
215
+ var _nnNO = require("./nnNO");
216
+ Object.keys(_nnNO).forEach(function (key) {
217
+ if (key === "default" || key === "__esModule") return;
218
+ if (key in exports && exports[key] === _nnNO[key]) return;
219
+ Object.defineProperty(exports, key, {
220
+ enumerable: true,
221
+ get: function () {
222
+ return _nnNO[key];
223
+ }
224
+ });
225
+ });
215
226
  var _plPL = require("./plPL");
216
227
  Object.keys(_plPL).forEach(function (key) {
217
228
  if (key === "default" || key === "__esModule") return;
@@ -376,4 +387,15 @@ Object.keys(_zhHK).forEach(function (key) {
376
387
  return _zhHK[key];
377
388
  }
378
389
  });
390
+ });
391
+ var _isIS = require("./isIS");
392
+ Object.keys(_isIS).forEach(function (key) {
393
+ if (key === "default" || key === "__esModule") return;
394
+ if (key in exports && exports[key] === _isIS[key]) return;
395
+ Object.defineProperty(exports, key, {
396
+ enumerable: true,
397
+ get: function () {
398
+ return _isIS[key];
399
+ }
400
+ });
379
401
  });
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isIS = void 0;
7
+ var _locale = require("@mui/material/locale");
8
+ var _getGridLocalization = require("../utils/getGridLocalization");
9
+ const isISGrid = {
10
+ // Root
11
+ noRowsLabel: 'Engar raðir',
12
+ noResultsOverlayLabel: 'Engar niðurstöður',
13
+ // Density selector toolbar button text
14
+ toolbarDensity: 'Þéttleiki',
15
+ toolbarDensityLabel: 'Þéttleiki',
16
+ toolbarDensityCompact: 'Þétt',
17
+ toolbarDensityStandard: 'Staðlað',
18
+ toolbarDensityComfortable: 'Rúmlegt',
19
+ // Columns selector toolbar button text
20
+ toolbarColumns: 'Dálkar',
21
+ toolbarColumnsLabel: 'Veldu dálka',
22
+ // Filters toolbar button text
23
+ toolbarFilters: 'Sía',
24
+ toolbarFiltersLabel: 'Sjá síur',
25
+ toolbarFiltersTooltipHide: 'Fela síur',
26
+ toolbarFiltersTooltipShow: 'Sjá síur',
27
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} virk sía` : `${count} virkar síur`,
28
+ // Quick filter toolbar field
29
+ toolbarQuickFilterPlaceholder: 'Leita…',
30
+ toolbarQuickFilterLabel: 'Leita',
31
+ toolbarQuickFilterDeleteIconLabel: 'Eyða',
32
+ // Export selector toolbar button text
33
+ toolbarExport: 'Flytja út',
34
+ toolbarExportLabel: 'Flytja út',
35
+ toolbarExportCSV: 'Hlaða niður sem CSV',
36
+ toolbarExportPrint: 'Prenta',
37
+ toolbarExportExcel: 'Hlaða niður sem Excel',
38
+ // Columns management text
39
+ // columnsManagementSearchTitle: 'Search',
40
+ // columnsManagementNoColumns: 'No columns',
41
+ // columnsManagementShowHideAllText: 'Show/Hide All',
42
+ // columnsManagementReset: 'Reset',
43
+
44
+ // Filter panel text
45
+ filterPanelAddFilter: 'Bæta síu',
46
+ filterPanelRemoveAll: 'Fjarlægja alla',
47
+ filterPanelDeleteIconLabel: 'Eyða',
48
+ filterPanelLogicOperator: 'Rökvirkir',
49
+ filterPanelOperator: 'Virkir',
50
+ filterPanelOperatorAnd: 'Og',
51
+ filterPanelOperatorOr: 'Eða',
52
+ filterPanelColumns: 'Dálkar',
53
+ filterPanelInputLabel: 'Gildi',
54
+ filterPanelInputPlaceholder: 'Síu gildi',
55
+ // Filter operators text
56
+ filterOperatorContains: 'inniheldur',
57
+ filterOperatorEquals: 'jafnt og',
58
+ filterOperatorStartsWith: 'byrjar með',
59
+ filterOperatorEndsWith: 'endar með',
60
+ filterOperatorIs: 'er líka með',
61
+ filterOperatorNot: 'er ekki líka með',
62
+ filterOperatorAfter: 'eftir',
63
+ filterOperatorOnOrAfter: 'á eða eftir',
64
+ filterOperatorBefore: 'fyrir',
65
+ filterOperatorOnOrBefore: 'á eða fyrir',
66
+ filterOperatorIsEmpty: 'inniheldur ekki gögn',
67
+ filterOperatorIsNotEmpty: 'inniheldur gögn',
68
+ filterOperatorIsAnyOf: 'inniheldur einn af',
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
75
+ // Header filter operators text
76
+ headerFilterOperatorContains: 'Inniheldur',
77
+ headerFilterOperatorEquals: 'Jafnt og',
78
+ headerFilterOperatorStartsWith: 'Byrjar með',
79
+ headerFilterOperatorEndsWith: 'Endar með',
80
+ headerFilterOperatorIs: 'Er jafnt og',
81
+ headerFilterOperatorNot: 'Er ekki jafnt og',
82
+ headerFilterOperatorAfter: 'Eftir',
83
+ headerFilterOperatorOnOrAfter: 'Á eða eftir',
84
+ headerFilterOperatorBefore: 'Fyrir',
85
+ headerFilterOperatorOnOrBefore: 'Á eða fyrir',
86
+ headerFilterOperatorIsEmpty: 'Inniheldur ekki gögn',
87
+ headerFilterOperatorIsNotEmpty: 'Inniheldur gögn',
88
+ headerFilterOperatorIsAnyOf: 'Inniheldur einn af',
89
+ 'headerFilterOperator=': 'Jafnt og',
90
+ 'headerFilterOperator!=': 'Ekki jafnt og',
91
+ 'headerFilterOperator>': 'Stærra en',
92
+ 'headerFilterOperator>=': 'Stærra en eða jafnt og',
93
+ 'headerFilterOperator<': 'Minna en',
94
+ 'headerFilterOperator<=': 'Minna en eða jafnt og',
95
+ // Filter values text
96
+ filterValueAny: 'hvað sem er',
97
+ filterValueTrue: 'satt',
98
+ filterValueFalse: 'falskt',
99
+ // Column menu text
100
+ columnMenuLabel: 'Valmynd',
101
+ columnMenuShowColumns: 'Sýna dálka',
102
+ columnMenuManageColumns: 'Stjórna dálkum',
103
+ columnMenuFilter: 'Síur',
104
+ columnMenuHideColumn: 'Fela dálka',
105
+ columnMenuUnsort: 'Fjarlægja röðun',
106
+ columnMenuSortAsc: 'Raða hækkandi',
107
+ columnMenuSortDesc: 'Raða lækkandi',
108
+ // Column header text
109
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} virkar síur` : `Ein virk sía`,
110
+ columnHeaderFiltersLabel: 'Sýna síur',
111
+ columnHeaderSortIconLabel: 'Raða',
112
+ // Rows selected footer text
113
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} raðir valdar` : `Ein röð valin`,
114
+ // Total row amount footer text
115
+ footerTotalRows: 'Heildarfjöldi lína:',
116
+ // Total visible row amount footer text
117
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} af ${totalCount.toLocaleString()}`,
118
+ // Checkbox selection text
119
+ checkboxSelectionHeaderName: 'Val á gátreit',
120
+ checkboxSelectionSelectAllRows: 'Velja allar raðir',
121
+ checkboxSelectionUnselectAllRows: 'Afvelja allar raðir',
122
+ checkboxSelectionSelectRow: 'Velja röð',
123
+ checkboxSelectionUnselectRow: 'Afvelja röð',
124
+ // Boolean cell text
125
+ booleanCellTrueLabel: 'já',
126
+ booleanCellFalseLabel: 'nei',
127
+ // Actions cell more text
128
+ actionsCellMore: 'meira',
129
+ // Column pinning text
130
+ pinToLeft: 'Festa til vinstri',
131
+ pinToRight: 'Festa til hægri',
132
+ unpin: 'Losa um',
133
+ // Tree Data
134
+ treeDataGroupingHeaderName: 'Hópur',
135
+ treeDataExpand: 'Sýna undirliði',
136
+ treeDataCollapse: 'Fela undirliði',
137
+ // Grouping columns
138
+ groupingColumnHeaderName: 'Hópur',
139
+ groupColumn: name => `Hópa eftir ${name}`,
140
+ unGroupColumn: name => `Fjarlægja hópun eftir ${name}`,
141
+ // Master/detail
142
+ detailPanelToggle: 'Stækka/minnka smáatriðaspjald',
143
+ expandDetailPanel: 'Stækka',
144
+ collapseDetailPanel: 'Minnka',
145
+ // Row reordering text
146
+ rowReorderingHeaderName: 'Endurröðun raða',
147
+ // Aggregation
148
+ aggregationMenuItemHeader: 'Samsafn',
149
+ aggregationFunctionLabelSum: 'sum',
150
+ aggregationFunctionLabelAvg: 'avg',
151
+ aggregationFunctionLabelMin: 'min',
152
+ aggregationFunctionLabelMax: 'max',
153
+ aggregationFunctionLabelSize: 'stærð'
154
+ };
155
+ const isIS = exports.isIS = (0, _getGridLocalization.getGridLocalization)(isISGrid, _locale.isIS);
@@ -22,7 +22,7 @@ const nbNOGrid = {
22
22
  // Filters toolbar button text
23
23
  toolbarFilters: 'Filter',
24
24
  toolbarFiltersLabel: 'Vis filter',
25
- toolbarFiltersTooltipHide: 'Skjul fitler',
25
+ toolbarFiltersTooltipHide: 'Skjul filter',
26
26
  toolbarFiltersTooltipShow: 'Vis filter',
27
27
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
28
28
  // Quick filter toolbar field
@@ -45,7 +45,7 @@ const nbNOGrid = {
45
45
  filterPanelRemoveAll: 'Fjern alle',
46
46
  filterPanelDeleteIconLabel: 'Slett',
47
47
  filterPanelLogicOperator: 'Logisk operator',
48
- filterPanelOperator: 'Operatører',
48
+ filterPanelOperator: 'Operator',
49
49
  filterPanelOperatorAnd: 'Og',
50
50
  filterPanelOperatorOr: 'Eller',
51
51
  filterPanelColumns: 'Kolonner',
@@ -65,34 +65,32 @@ const nbNOGrid = {
65
65
  filterOperatorIsEmpty: 'er tom',
66
66
  filterOperatorIsNotEmpty: 'er ikke tom',
67
67
  filterOperatorIsAnyOf: 'er en av',
68
- // 'filterOperator=': '=',
69
- // 'filterOperator!=': '!=',
70
- // 'filterOperator>': '>',
71
- // 'filterOperator>=': '>=',
72
- // 'filterOperator<': '<',
73
- // 'filterOperator<=': '<=',
74
-
68
+ 'filterOperator=': '=',
69
+ 'filterOperator!=': '!=',
70
+ 'filterOperator>': '>',
71
+ 'filterOperator>=': '>=',
72
+ 'filterOperator<': '<',
73
+ 'filterOperator<=': '<=',
75
74
  // Header filter operators text
76
- // headerFilterOperatorContains: 'Contains',
77
- // headerFilterOperatorEquals: 'Equals',
78
- // headerFilterOperatorStartsWith: 'Starts with',
79
- // headerFilterOperatorEndsWith: 'Ends with',
80
- // headerFilterOperatorIs: 'Is',
81
- // headerFilterOperatorNot: 'Is not',
82
- // headerFilterOperatorAfter: 'Is after',
83
- // headerFilterOperatorOnOrAfter: 'Is on or after',
84
- // headerFilterOperatorBefore: 'Is before',
85
- // headerFilterOperatorOnOrBefore: 'Is on or before',
86
- // headerFilterOperatorIsEmpty: 'Is empty',
87
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
88
- // headerFilterOperatorIsAnyOf: 'Is any of',
89
- // 'headerFilterOperator=': 'Equals',
90
- // 'headerFilterOperator!=': 'Not equals',
91
- // 'headerFilterOperator>': 'Greater than',
92
- // 'headerFilterOperator>=': 'Greater than or equal to',
93
- // 'headerFilterOperator<': 'Less than',
94
- // 'headerFilterOperator<=': 'Less than or equal to',
95
-
75
+ headerFilterOperatorContains: 'Inneholder',
76
+ headerFilterOperatorEquals: 'Lik',
77
+ headerFilterOperatorStartsWith: 'Starter ',
78
+ headerFilterOperatorEndsWith: 'Slutter ',
79
+ headerFilterOperatorIs: 'Er',
80
+ headerFilterOperatorNot: 'Er ikke',
81
+ headerFilterOperatorAfter: 'Er etter',
82
+ headerFilterOperatorOnOrAfter: 'Er eller etter',
83
+ headerFilterOperatorBefore: 'Er før',
84
+ headerFilterOperatorOnOrBefore: 'Er eller før',
85
+ headerFilterOperatorIsEmpty: 'Er tom',
86
+ headerFilterOperatorIsNotEmpty: 'Er ikke tom',
87
+ headerFilterOperatorIsAnyOf: 'Er en av',
88
+ 'headerFilterOperator=': 'Lik',
89
+ 'headerFilterOperator!=': 'Ikke lik',
90
+ 'headerFilterOperator>': 'Større enn',
91
+ 'headerFilterOperator>=': 'Større enn eller lik',
92
+ 'headerFilterOperator<': 'Mindre enn',
93
+ 'headerFilterOperator<=': 'Mindre enn eller lik',
96
94
  // Filter values text
97
95
  filterValueAny: 'noen',
98
96
  filterValueTrue: 'sant',
@@ -117,7 +115,7 @@ const nbNOGrid = {
117
115
  // Total visible row amount footer text
118
116
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} av ${totalCount.toLocaleString()}`,
119
117
  // Checkbox selection text
120
- checkboxSelectionHeaderName: 'Avmerkingsboks valgt',
118
+ checkboxSelectionHeaderName: 'Avmerkingsboks',
121
119
  checkboxSelectionSelectAllRows: 'Velg alle rader',
122
120
  checkboxSelectionUnselectAllRows: 'Velg bort alle rader',
123
121
  checkboxSelectionSelectRow: 'Velg rad',
@@ -138,13 +136,13 @@ const nbNOGrid = {
138
136
  // Grouping columns
139
137
  groupingColumnHeaderName: 'Grupper',
140
138
  groupColumn: name => `Grupper på ${name}`,
141
- unGroupColumn: name => `Stopp å grupper på ${name}`,
139
+ unGroupColumn: name => `Slutt å grupper på ${name}`,
142
140
  // Master/detail
143
141
  detailPanelToggle: 'Utvid/kollaps detalj panel',
144
142
  expandDetailPanel: 'Utvid',
145
143
  collapseDetailPanel: 'Kollaps',
146
144
  // Row reordering text
147
- rowReorderingHeaderName: 'Rad reorganisering',
145
+ rowReorderingHeaderName: 'Radreorganisering',
148
146
  // Aggregation
149
147
  aggregationMenuItemHeader: 'Aggregering',
150
148
  aggregationFunctionLabelSum: 'sum',
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.nnNO = void 0;
7
+ var _locale = require("@mui/material/locale");
8
+ var _getGridLocalization = require("../utils/getGridLocalization");
9
+ const nnNOGrid = {
10
+ // Root
11
+ noRowsLabel: 'Ingen rader',
12
+ noResultsOverlayLabel: 'Fann ingen resultat.',
13
+ // Density selector toolbar button text
14
+ toolbarDensity: 'Tettheit',
15
+ toolbarDensityLabel: 'Tettheit',
16
+ toolbarDensityCompact: 'Kompakt',
17
+ toolbarDensityStandard: 'Standard',
18
+ toolbarDensityComfortable: 'Komfortabelt',
19
+ // Columns selector toolbar button text
20
+ toolbarColumns: 'Kolonner',
21
+ toolbarColumnsLabel: 'Vel kolonner',
22
+ // Filters toolbar button text
23
+ toolbarFilters: 'Filter',
24
+ toolbarFiltersLabel: 'Vis filter',
25
+ toolbarFiltersTooltipHide: 'Skjul filter',
26
+ toolbarFiltersTooltipShow: 'Vis filter',
27
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
28
+ // Quick filter toolbar field
29
+ toolbarQuickFilterPlaceholder: 'Søk…',
30
+ toolbarQuickFilterLabel: 'Søk',
31
+ toolbarQuickFilterDeleteIconLabel: 'Slett',
32
+ // Export selector toolbar button text
33
+ toolbarExport: 'Eksporter',
34
+ toolbarExportLabel: 'Eksporter',
35
+ toolbarExportCSV: 'Last ned som CSV',
36
+ toolbarExportPrint: 'Skriv ut',
37
+ toolbarExportExcel: 'Last ned som Excel',
38
+ // Columns management text
39
+ columnsManagementSearchTitle: 'Søk',
40
+ columnsManagementNoColumns: 'Ingen kolonner',
41
+ columnsManagementShowHideAllText: 'Vis/skjul alle',
42
+ columnsManagementReset: 'Nullstill',
43
+ // Filter panel text
44
+ filterPanelAddFilter: 'Legg til filter',
45
+ filterPanelRemoveAll: 'Fjern alle',
46
+ filterPanelDeleteIconLabel: 'Slett',
47
+ filterPanelLogicOperator: 'Logisk operator',
48
+ filterPanelOperator: 'Operator',
49
+ filterPanelOperatorAnd: 'Og',
50
+ filterPanelOperatorOr: 'Eller',
51
+ filterPanelColumns: 'Kolonner',
52
+ filterPanelInputLabel: 'Verdi',
53
+ filterPanelInputPlaceholder: 'Filter verdi',
54
+ // Filter operators text
55
+ filterOperatorContains: 'inneheld',
56
+ filterOperatorEquals: 'er lik',
57
+ filterOperatorStartsWith: 'startar med',
58
+ filterOperatorEndsWith: 'sluttar med',
59
+ filterOperatorIs: 'er',
60
+ filterOperatorNot: 'er ikkje',
61
+ filterOperatorAfter: 'er etter',
62
+ filterOperatorOnOrAfter: 'er på eller etter',
63
+ filterOperatorBefore: 'er før',
64
+ filterOperatorOnOrBefore: 'er på eller før',
65
+ filterOperatorIsEmpty: 'er tom',
66
+ filterOperatorIsNotEmpty: 'er ikkje tom',
67
+ filterOperatorIsAnyOf: 'er ein av',
68
+ 'filterOperator=': '=',
69
+ 'filterOperator!=': '!=',
70
+ 'filterOperator>': '>',
71
+ 'filterOperator>=': '>=',
72
+ 'filterOperator<': '<',
73
+ 'filterOperator<=': '<=',
74
+ // Header filter operators text
75
+ headerFilterOperatorContains: 'Inneheld',
76
+ headerFilterOperatorEquals: 'Lik',
77
+ headerFilterOperatorStartsWith: 'Startar på',
78
+ headerFilterOperatorEndsWith: 'Sluttar på',
79
+ headerFilterOperatorIs: 'Er',
80
+ headerFilterOperatorNot: 'Er ikkje',
81
+ headerFilterOperatorAfter: 'Er etter',
82
+ headerFilterOperatorOnOrAfter: 'Er på eller etter',
83
+ headerFilterOperatorBefore: 'Er før',
84
+ headerFilterOperatorOnOrBefore: 'Er på eller før',
85
+ headerFilterOperatorIsEmpty: 'Er tom',
86
+ headerFilterOperatorIsNotEmpty: 'Er ikkje tom',
87
+ headerFilterOperatorIsAnyOf: 'Er ein av',
88
+ 'headerFilterOperator=': 'Lik',
89
+ 'headerFilterOperator!=': 'Ikkje lik',
90
+ 'headerFilterOperator>': 'Større enn',
91
+ 'headerFilterOperator>=': 'Større enn eller lik',
92
+ 'headerFilterOperator<': 'Mindre enn',
93
+ 'headerFilterOperator<=': 'Mindre enn eller lik',
94
+ // Filter values text
95
+ filterValueAny: 'nokon',
96
+ filterValueTrue: 'sant',
97
+ filterValueFalse: 'usant',
98
+ // Column menu text
99
+ columnMenuLabel: 'Meny',
100
+ columnMenuShowColumns: 'Vis kolonner',
101
+ columnMenuManageColumns: 'Administrer kolonner',
102
+ columnMenuFilter: 'Filter',
103
+ columnMenuHideColumn: 'Skjul',
104
+ columnMenuUnsort: 'Usorter',
105
+ columnMenuSortAsc: 'Sorter AUKANDE',
106
+ columnMenuSortDesc: 'Sorter SYNKANDE',
107
+ // Column header text
108
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
109
+ columnHeaderFiltersLabel: 'Vis filter',
110
+ columnHeaderSortIconLabel: 'Sorter',
111
+ // Rows selected footer text
112
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} rader valt` : `${count.toLocaleString()} rad valt`,
113
+ // Total row amount footer text
114
+ footerTotalRows: 'Totalt tal rader:',
115
+ // Total visible row amount footer text
116
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} av ${totalCount.toLocaleString()}`,
117
+ // Checkbox selection text
118
+ checkboxSelectionHeaderName: 'Avmerkingsboks',
119
+ checkboxSelectionSelectAllRows: 'Vel alle rader',
120
+ checkboxSelectionUnselectAllRows: 'Vel vekk alle rader',
121
+ checkboxSelectionSelectRow: 'Vel rad',
122
+ checkboxSelectionUnselectRow: 'Vel vekk rad',
123
+ // Boolean cell text
124
+ booleanCellTrueLabel: 'sant',
125
+ booleanCellFalseLabel: 'usant',
126
+ // Actions cell more text
127
+ actionsCellMore: 'meir',
128
+ // Column pinning text
129
+ pinToLeft: 'Fest til venstre',
130
+ pinToRight: 'Fest til høgre',
131
+ unpin: 'Lausne',
132
+ // Tree Data
133
+ treeDataGroupingHeaderName: 'Grupper',
134
+ treeDataExpand: 'vis barn',
135
+ treeDataCollapse: 'skjul barn',
136
+ // Grouping columns
137
+ groupingColumnHeaderName: 'Grupper',
138
+ groupColumn: name => `Grupper på ${name}`,
139
+ unGroupColumn: name => `Slutt å grupper på ${name}`,
140
+ // Master/detail
141
+ detailPanelToggle: 'Utvid/kollaps detalj panel',
142
+ expandDetailPanel: 'Utvid',
143
+ collapseDetailPanel: 'Kolaps',
144
+ // Row reordering text
145
+ rowReorderingHeaderName: 'Radreorganisering',
146
+ // Aggregation
147
+ aggregationMenuItemHeader: 'Aggregering',
148
+ aggregationFunctionLabelSum: 'sum',
149
+ aggregationFunctionLabelAvg: 'snitt',
150
+ aggregationFunctionLabelMin: 'min',
151
+ aggregationFunctionLabelMax: 'maks',
152
+ aggregationFunctionLabelSize: 'størrelse'
153
+ };
154
+ const nnNO = exports.nnNO = (0, _getGridLocalization.getGridLocalization)(nnNOGrid, _locale.nnNO);
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.createSelectorMemoized = exports.createSelector = void 0;
7
7
  var _reselect = require("reselect");
8
- var _warning = require("./warning");
8
+ var _warning = require("../internals/utils/warning");
9
9
  const cache = new WeakMap();
10
- const missingInstanceIdWarning = (0, _warning.buildWarning)(['MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.', 'To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`.']);
11
10
  function checkIsAPIRef(value) {
12
11
  return 'current' in value && 'instanceId' in value.current;
13
12
  }
@@ -86,7 +85,7 @@ const createSelectorMemoized = (...args) => {
86
85
  const state = isAPIRef ? stateOrApiRef.current.state : stateOrApiRef;
87
86
  if (process.env.NODE_ENV !== 'production') {
88
87
  if (cacheKey.id === 'default') {
89
- missingInstanceIdWarning();
88
+ (0, _warning.warnOnce)(['MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.', 'To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`.']);
90
89
  }
91
90
  }
92
91
  const cacheArgsInit = cache.get(cacheKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "7.11.0",
3
+ "version": "7.11.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",
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/runtime": "^7.24.8",
41
- "@mui/system": "^5.16.2",
42
- "@mui/utils": "^5.16.2",
41
+ "@mui/system": "^5.16.5",
42
+ "@mui/utils": "^5.16.5",
43
43
  "clsx": "^2.1.1",
44
44
  "prop-types": "^15.8.1",
45
45
  "reselect": "^4.1.8",
46
- "@mui/x-internals": "7.11.0"
46
+ "@mui/x-internals": "7.11.1"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@mui/material": "^5.15.14",
@@ -1,7 +1,6 @@
1
1
  import { createSelector as reselectCreateSelector } from 'reselect';
2
- import { buildWarning } from './warning';
2
+ import { warnOnce } from '../internals/utils/warning';
3
3
  const cache = new WeakMap();
4
- const missingInstanceIdWarning = buildWarning(['MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.', 'To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`.']);
5
4
  function checkIsAPIRef(value) {
6
5
  return 'current' in value && 'instanceId' in value.current;
7
6
  }
@@ -79,7 +78,7 @@ export const createSelectorMemoized = (...args) => {
79
78
  const state = isAPIRef ? stateOrApiRef.current.state : stateOrApiRef;
80
79
  if (process.env.NODE_ENV !== 'production') {
81
80
  if (cacheKey.id === 'default') {
82
- missingInstanceIdWarning();
81
+ warnOnce(['MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.', 'To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`.']);
83
82
  }
84
83
  }
85
84
  const cacheArgsInit = cache.get(cacheKey);