@mui/x-data-grid-premium 5.11.0

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 (199) hide show
  1. package/CHANGELOG.md +4052 -0
  2. package/DataGridPremium/DataGridPremium.d.ts +9 -0
  3. package/DataGridPremium/DataGridPremium.js +986 -0
  4. package/DataGridPremium/index.d.ts +2 -0
  5. package/DataGridPremium/index.js +2 -0
  6. package/DataGridPremium/package.json +6 -0
  7. package/DataGridPremium/useDataGridPremiumComponent.d.ts +4 -0
  8. package/DataGridPremium/useDataGridPremiumComponent.js +78 -0
  9. package/DataGridPremium/useDataGridPremiumProps.d.ts +6 -0
  10. package/DataGridPremium/useDataGridPremiumProps.js +37 -0
  11. package/LICENSE +12 -0
  12. package/README.md +31 -0
  13. package/components/GridExcelExportMenuItem.d.ts +9 -0
  14. package/components/GridExcelExportMenuItem.js +32 -0
  15. package/components/GridGroupingColumnLeafCell.d.ts +4 -0
  16. package/components/GridGroupingColumnLeafCell.js +22 -0
  17. package/components/GridGroupingCriteriaCell.d.ts +7 -0
  18. package/components/GridGroupingCriteriaCell.js +78 -0
  19. package/components/GridRowGroupableColumnMenuItems.d.ts +11 -0
  20. package/components/GridRowGroupableColumnMenuItems.js +63 -0
  21. package/components/GridRowGroupingColumnMenuItems.d.ts +11 -0
  22. package/components/GridRowGroupingColumnMenuItems.js +58 -0
  23. package/components/index.d.ts +1 -0
  24. package/components/index.js +1 -0
  25. package/components/package.json +6 -0
  26. package/hooks/features/export/gridExcelExportInterface.d.ts +58 -0
  27. package/hooks/features/export/gridExcelExportInterface.js +1 -0
  28. package/hooks/features/export/index.d.ts +1 -0
  29. package/hooks/features/export/index.js +1 -0
  30. package/hooks/features/export/serializer/excelSerializer.d.ts +14 -0
  31. package/hooks/features/export/serializer/excelSerializer.js +218 -0
  32. package/hooks/features/export/useGridExcelExport.d.ts +10 -0
  33. package/hooks/features/export/useGridExcelExport.js +77 -0
  34. package/hooks/features/index.d.ts +2 -0
  35. package/hooks/features/index.js +3 -0
  36. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +42 -0
  37. package/hooks/features/rowGrouping/createGroupingColDef.js +318 -0
  38. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +37 -0
  39. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  40. package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +4 -0
  41. package/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
  42. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +27 -0
  43. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +139 -0
  44. package/hooks/features/rowGrouping/index.d.ts +3 -0
  45. package/hooks/features/rowGrouping/index.js +3 -0
  46. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +11 -0
  47. package/hooks/features/rowGrouping/useGridRowGrouping.js +200 -0
  48. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
  49. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +201 -0
  50. package/hooks/index.d.ts +2 -0
  51. package/hooks/index.js +3 -0
  52. package/hooks/package.json +6 -0
  53. package/hooks/utils/index.d.ts +1 -0
  54. package/hooks/utils/index.js +1 -0
  55. package/hooks/utils/useGridApiContext.d.ts +4 -0
  56. package/hooks/utils/useGridApiContext.js +2 -0
  57. package/hooks/utils/useGridApiRef.d.ts +4 -0
  58. package/hooks/utils/useGridApiRef.js +2 -0
  59. package/hooks/utils/useGridRootProps.d.ts +2 -0
  60. package/hooks/utils/useGridRootProps.js +2 -0
  61. package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +12 -0
  62. package/hooks/utils/useKeepGroupedColumnsHidden.js +50 -0
  63. package/index.d.ts +22 -0
  64. package/index.js +25 -0
  65. package/legacy/DataGridPremium/DataGridPremium.js +986 -0
  66. package/legacy/DataGridPremium/index.js +2 -0
  67. package/legacy/DataGridPremium/useDataGridPremiumComponent.js +78 -0
  68. package/legacy/DataGridPremium/useDataGridPremiumProps.js +46 -0
  69. package/legacy/components/GridExcelExportMenuItem.js +30 -0
  70. package/legacy/components/GridGroupingColumnLeafCell.js +20 -0
  71. package/legacy/components/GridGroupingCriteriaCell.js +74 -0
  72. package/legacy/components/GridRowGroupableColumnMenuItems.js +61 -0
  73. package/legacy/components/GridRowGroupingColumnMenuItems.js +56 -0
  74. package/legacy/components/index.js +1 -0
  75. package/legacy/hooks/features/export/gridExcelExportInterface.js +1 -0
  76. package/legacy/hooks/features/export/index.js +1 -0
  77. package/legacy/hooks/features/export/serializer/excelSerializer.js +260 -0
  78. package/legacy/hooks/features/export/useGridExcelExport.js +111 -0
  79. package/legacy/hooks/features/index.js +3 -0
  80. package/legacy/hooks/features/rowGrouping/createGroupingColDef.js +319 -0
  81. package/legacy/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  82. package/legacy/hooks/features/rowGrouping/gridRowGroupingSelector.js +13 -0
  83. package/legacy/hooks/features/rowGrouping/gridRowGroupingUtils.js +147 -0
  84. package/legacy/hooks/features/rowGrouping/index.js +3 -0
  85. package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +206 -0
  86. package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +215 -0
  87. package/legacy/hooks/index.js +3 -0
  88. package/legacy/hooks/utils/index.js +1 -0
  89. package/legacy/hooks/utils/useGridApiContext.js +2 -0
  90. package/legacy/hooks/utils/useGridApiRef.js +2 -0
  91. package/legacy/hooks/utils/useGridRootProps.js +2 -0
  92. package/legacy/hooks/utils/useKeepGroupedColumnsHidden.js +50 -0
  93. package/legacy/index.js +25 -0
  94. package/legacy/models/dataGridPremiumProps.js +1 -0
  95. package/legacy/models/gridApiPremium.js +1 -0
  96. package/legacy/models/gridGroupingValueGetterParams.js +1 -0
  97. package/legacy/models/gridStatePremium.js +1 -0
  98. package/legacy/models/index.js +1 -0
  99. package/legacy/typeOverloads/index.js +1 -0
  100. package/legacy/typeOverloads/modules.js +33 -0
  101. package/legacy/typeOverloads/reexports.js +6 -0
  102. package/legacy/utils/releaseInfo.js +15 -0
  103. package/models/dataGridPremiumProps.d.ts +64 -0
  104. package/models/dataGridPremiumProps.js +1 -0
  105. package/models/gridApiPremium.d.ts +13 -0
  106. package/models/gridApiPremium.js +1 -0
  107. package/models/gridGroupingValueGetterParams.d.ts +31 -0
  108. package/models/gridGroupingValueGetterParams.js +1 -0
  109. package/models/gridStatePremium.d.ts +14 -0
  110. package/models/gridStatePremium.js +1 -0
  111. package/models/index.d.ts +1 -0
  112. package/models/index.js +1 -0
  113. package/models/package.json +6 -0
  114. package/modern/DataGridPremium/DataGridPremium.js +986 -0
  115. package/modern/DataGridPremium/index.js +2 -0
  116. package/modern/DataGridPremium/useDataGridPremiumComponent.js +76 -0
  117. package/modern/DataGridPremium/useDataGridPremiumProps.js +37 -0
  118. package/modern/components/GridExcelExportMenuItem.js +32 -0
  119. package/modern/components/GridGroupingColumnLeafCell.js +20 -0
  120. package/modern/components/GridGroupingCriteriaCell.js +76 -0
  121. package/modern/components/GridRowGroupableColumnMenuItems.js +61 -0
  122. package/modern/components/GridRowGroupingColumnMenuItems.js +56 -0
  123. package/modern/components/index.js +1 -0
  124. package/modern/hooks/features/export/gridExcelExportInterface.js +1 -0
  125. package/modern/hooks/features/export/index.js +1 -0
  126. package/modern/hooks/features/export/serializer/excelSerializer.js +216 -0
  127. package/modern/hooks/features/export/useGridExcelExport.js +73 -0
  128. package/modern/hooks/features/index.js +3 -0
  129. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +302 -0
  130. package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  131. package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
  132. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +137 -0
  133. package/modern/hooks/features/rowGrouping/index.js +3 -0
  134. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +192 -0
  135. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +201 -0
  136. package/modern/hooks/index.js +3 -0
  137. package/modern/hooks/utils/index.js +1 -0
  138. package/modern/hooks/utils/useGridApiContext.js +2 -0
  139. package/modern/hooks/utils/useGridApiRef.js +2 -0
  140. package/modern/hooks/utils/useGridRootProps.js +2 -0
  141. package/modern/hooks/utils/useKeepGroupedColumnsHidden.js +46 -0
  142. package/modern/index.js +25 -0
  143. package/modern/models/dataGridPremiumProps.js +1 -0
  144. package/modern/models/gridApiPremium.js +1 -0
  145. package/modern/models/gridGroupingValueGetterParams.js +1 -0
  146. package/modern/models/gridStatePremium.js +1 -0
  147. package/modern/models/index.js +1 -0
  148. package/modern/typeOverloads/index.js +1 -0
  149. package/modern/typeOverloads/modules.js +33 -0
  150. package/modern/typeOverloads/reexports.js +6 -0
  151. package/modern/utils/releaseInfo.js +15 -0
  152. package/node/DataGridPremium/DataGridPremium.js +1009 -0
  153. package/node/DataGridPremium/index.js +30 -0
  154. package/node/DataGridPremium/useDataGridPremiumComponent.js +91 -0
  155. package/node/DataGridPremium/useDataGridPremiumProps.js +57 -0
  156. package/node/components/GridExcelExportMenuItem.js +49 -0
  157. package/node/components/GridGroupingColumnLeafCell.js +38 -0
  158. package/node/components/GridGroupingCriteriaCell.js +99 -0
  159. package/node/components/GridRowGroupableColumnMenuItems.js +82 -0
  160. package/node/components/GridRowGroupingColumnMenuItems.js +78 -0
  161. package/node/components/index.js +18 -0
  162. package/node/hooks/features/export/gridExcelExportInterface.js +5 -0
  163. package/node/hooks/features/export/index.js +18 -0
  164. package/node/hooks/features/export/serializer/excelSerializer.js +233 -0
  165. package/node/hooks/features/export/useGridExcelExport.js +95 -0
  166. package/node/hooks/features/index.js +31 -0
  167. package/node/hooks/features/rowGrouping/createGroupingColDef.js +341 -0
  168. package/node/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +5 -0
  169. package/node/hooks/features/rowGrouping/gridRowGroupingSelector.js +18 -0
  170. package/node/hooks/features/rowGrouping/gridRowGroupingUtils.js +172 -0
  171. package/node/hooks/features/rowGrouping/index.js +51 -0
  172. package/node/hooks/features/rowGrouping/useGridRowGrouping.js +228 -0
  173. package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +223 -0
  174. package/node/hooks/index.js +31 -0
  175. package/node/hooks/utils/index.js +18 -0
  176. package/node/hooks/utils/useGridApiContext.js +11 -0
  177. package/node/hooks/utils/useGridApiRef.js +11 -0
  178. package/node/hooks/utils/useGridRootProps.js +11 -0
  179. package/node/hooks/utils/useKeepGroupedColumnsHidden.js +66 -0
  180. package/node/index.js +272 -0
  181. package/node/models/dataGridPremiumProps.js +5 -0
  182. package/node/models/gridApiPremium.js +5 -0
  183. package/node/models/gridGroupingValueGetterParams.js +5 -0
  184. package/node/models/gridStatePremium.js +5 -0
  185. package/node/models/index.js +18 -0
  186. package/node/typeOverloads/index.js +3 -0
  187. package/node/typeOverloads/modules.js +34 -0
  188. package/node/typeOverloads/reexports.js +29 -0
  189. package/node/utils/releaseInfo.js +25 -0
  190. package/package.json +63 -0
  191. package/typeOverloads/index.d.ts +1 -0
  192. package/typeOverloads/index.js +1 -0
  193. package/typeOverloads/modules.d.ts +0 -0
  194. package/typeOverloads/modules.js +33 -0
  195. package/typeOverloads/package.json +6 -0
  196. package/typeOverloads/reexports.d.ts +22 -0
  197. package/typeOverloads/reexports.js +6 -0
  198. package/utils/releaseInfo.d.ts +1 -0
  199. package/utils/releaseInfo.js +15 -0
package/node/index.js ADDED
@@ -0,0 +1,272 @@
1
+ /** @license MUI v5.11.0
2
+ *
3
+ * This source code is licensed under the MIT license found in the
4
+ * LICENSE file in the root directory of this source tree.
5
+ */
6
+ "use strict";
7
+
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
11
+ var _exportNames = {
12
+ LicenseInfo: true,
13
+ useGridApiContext: true,
14
+ useGridApiRef: true,
15
+ useGridRootProps: true
16
+ };
17
+ Object.defineProperty(exports, "LicenseInfo", {
18
+ enumerable: true,
19
+ get: function () {
20
+ return _xLicensePro.LicenseInfo;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "useGridApiContext", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return _reexports.useGridApiContext;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, "useGridApiRef", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _reexports.useGridApiRef;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "useGridRootProps", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return _reexports.useGridRootProps;
39
+ }
40
+ });
41
+
42
+ require("./typeOverloads");
43
+
44
+ require("@mui/x-data-grid-pro/typeOverloads");
45
+
46
+ var _xLicensePro = require("@mui/x-license-pro");
47
+
48
+ var _components = require("@mui/x-data-grid/components");
49
+
50
+ Object.keys(_components).forEach(function (key) {
51
+ if (key === "default" || key === "__esModule") return;
52
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
53
+ if (key in exports && exports[key] === _components[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _components[key];
58
+ }
59
+ });
60
+ });
61
+
62
+ var _components2 = require("@mui/x-data-grid-pro/components");
63
+
64
+ Object.keys(_components2).forEach(function (key) {
65
+ if (key === "default" || key === "__esModule") return;
66
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
67
+ if (key in exports && exports[key] === _components2[key]) return;
68
+ Object.defineProperty(exports, key, {
69
+ enumerable: true,
70
+ get: function () {
71
+ return _components2[key];
72
+ }
73
+ });
74
+ });
75
+
76
+ var _constants = require("@mui/x-data-grid/constants");
77
+
78
+ Object.keys(_constants).forEach(function (key) {
79
+ if (key === "default" || key === "__esModule") return;
80
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
81
+ if (key in exports && exports[key] === _constants[key]) return;
82
+ Object.defineProperty(exports, key, {
83
+ enumerable: true,
84
+ get: function () {
85
+ return _constants[key];
86
+ }
87
+ });
88
+ });
89
+
90
+ var _hooks = require("@mui/x-data-grid/hooks");
91
+
92
+ Object.keys(_hooks).forEach(function (key) {
93
+ if (key === "default" || key === "__esModule") return;
94
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
95
+ if (key in exports && exports[key] === _hooks[key]) return;
96
+ Object.defineProperty(exports, key, {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _hooks[key];
100
+ }
101
+ });
102
+ });
103
+
104
+ var _hooks2 = require("@mui/x-data-grid-pro/hooks");
105
+
106
+ Object.keys(_hooks2).forEach(function (key) {
107
+ if (key === "default" || key === "__esModule") return;
108
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
109
+ if (key in exports && exports[key] === _hooks2[key]) return;
110
+ Object.defineProperty(exports, key, {
111
+ enumerable: true,
112
+ get: function () {
113
+ return _hooks2[key];
114
+ }
115
+ });
116
+ });
117
+
118
+ var _locales = require("@mui/x-data-grid/locales");
119
+
120
+ Object.keys(_locales).forEach(function (key) {
121
+ if (key === "default" || key === "__esModule") return;
122
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
123
+ if (key in exports && exports[key] === _locales[key]) return;
124
+ Object.defineProperty(exports, key, {
125
+ enumerable: true,
126
+ get: function () {
127
+ return _locales[key];
128
+ }
129
+ });
130
+ });
131
+
132
+ var _models = require("@mui/x-data-grid/models");
133
+
134
+ Object.keys(_models).forEach(function (key) {
135
+ if (key === "default" || key === "__esModule") return;
136
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
137
+ if (key in exports && exports[key] === _models[key]) return;
138
+ Object.defineProperty(exports, key, {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _models[key];
142
+ }
143
+ });
144
+ });
145
+
146
+ var _models2 = require("@mui/x-data-grid-pro/models");
147
+
148
+ Object.keys(_models2).forEach(function (key) {
149
+ if (key === "default" || key === "__esModule") return;
150
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
151
+ if (key in exports && exports[key] === _models2[key]) return;
152
+ Object.defineProperty(exports, key, {
153
+ enumerable: true,
154
+ get: function () {
155
+ return _models2[key];
156
+ }
157
+ });
158
+ });
159
+
160
+ var _context = require("@mui/x-data-grid/context");
161
+
162
+ Object.keys(_context).forEach(function (key) {
163
+ if (key === "default" || key === "__esModule") return;
164
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
165
+ if (key in exports && exports[key] === _context[key]) return;
166
+ Object.defineProperty(exports, key, {
167
+ enumerable: true,
168
+ get: function () {
169
+ return _context[key];
170
+ }
171
+ });
172
+ });
173
+
174
+ var _colDef = require("@mui/x-data-grid/colDef");
175
+
176
+ Object.keys(_colDef).forEach(function (key) {
177
+ if (key === "default" || key === "__esModule") return;
178
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
179
+ if (key in exports && exports[key] === _colDef[key]) return;
180
+ Object.defineProperty(exports, key, {
181
+ enumerable: true,
182
+ get: function () {
183
+ return _colDef[key];
184
+ }
185
+ });
186
+ });
187
+
188
+ var _utils = require("@mui/x-data-grid/utils");
189
+
190
+ Object.keys(_utils).forEach(function (key) {
191
+ if (key === "default" || key === "__esModule") return;
192
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
193
+ if (key in exports && exports[key] === _utils[key]) return;
194
+ Object.defineProperty(exports, key, {
195
+ enumerable: true,
196
+ get: function () {
197
+ return _utils[key];
198
+ }
199
+ });
200
+ });
201
+
202
+ var _utils2 = require("@mui/x-data-grid-pro/utils");
203
+
204
+ Object.keys(_utils2).forEach(function (key) {
205
+ if (key === "default" || key === "__esModule") return;
206
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
207
+ if (key in exports && exports[key] === _utils2[key]) return;
208
+ Object.defineProperty(exports, key, {
209
+ enumerable: true,
210
+ get: function () {
211
+ return _utils2[key];
212
+ }
213
+ });
214
+ });
215
+
216
+ var _DataGridPremium = require("./DataGridPremium");
217
+
218
+ Object.keys(_DataGridPremium).forEach(function (key) {
219
+ if (key === "default" || key === "__esModule") return;
220
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
221
+ if (key in exports && exports[key] === _DataGridPremium[key]) return;
222
+ Object.defineProperty(exports, key, {
223
+ enumerable: true,
224
+ get: function () {
225
+ return _DataGridPremium[key];
226
+ }
227
+ });
228
+ });
229
+
230
+ var _hooks3 = require("./hooks");
231
+
232
+ Object.keys(_hooks3).forEach(function (key) {
233
+ if (key === "default" || key === "__esModule") return;
234
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
235
+ if (key in exports && exports[key] === _hooks3[key]) return;
236
+ Object.defineProperty(exports, key, {
237
+ enumerable: true,
238
+ get: function () {
239
+ return _hooks3[key];
240
+ }
241
+ });
242
+ });
243
+
244
+ var _models3 = require("./models");
245
+
246
+ Object.keys(_models3).forEach(function (key) {
247
+ if (key === "default" || key === "__esModule") return;
248
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
249
+ if (key in exports && exports[key] === _models3[key]) return;
250
+ Object.defineProperty(exports, key, {
251
+ enumerable: true,
252
+ get: function () {
253
+ return _models3[key];
254
+ }
255
+ });
256
+ });
257
+
258
+ var _components3 = require("./components");
259
+
260
+ Object.keys(_components3).forEach(function (key) {
261
+ if (key === "default" || key === "__esModule") return;
262
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
263
+ if (key in exports && exports[key] === _components3[key]) return;
264
+ Object.defineProperty(exports, key, {
265
+ enumerable: true,
266
+ get: function () {
267
+ return _components3[key];
268
+ }
269
+ });
270
+ });
271
+
272
+ var _reexports = require("./typeOverloads/reexports");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _gridGroupingValueGetterParams = require("./gridGroupingValueGetterParams");
8
+
9
+ Object.keys(_gridGroupingValueGetterParams).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _gridGroupingValueGetterParams[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _gridGroupingValueGetterParams[key];
16
+ }
17
+ });
18
+ });
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("@mui/x-data-grid-pro/typeOverloads");
@@ -0,0 +1,34 @@
1
+ // import { GridKeyValue, GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ // import type { GridControlledStateEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
3
+ // import type { GridGroupingValueGetterParams } from '../models';
4
+ // import type { GridRowGroupingModel } from '../hooks';
5
+ //
6
+ // export interface GridControlledStateEventLookupPremium {
7
+ // /**
8
+ // * Fired when the row grouping model changes.
9
+ // */
10
+ // rowGroupingModelChange: { params: GridRowGroupingModel };
11
+ // }
12
+ //
13
+ // // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ // export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
15
+ // /**
16
+ // * Function that transforms a complex cell value into a key that be used for grouping the rows.
17
+ // * @param {GridGroupingValueGetterParams} params Object containing parameters for the getter.
18
+ // * @returns {GridKeyValue | null | undefined} The cell key.
19
+ // */
20
+ // groupingValueGetter?: (
21
+ // params: GridGroupingValueGetterParams<V, R>,
22
+ // ) => GridKeyValue | null | undefined;
23
+ // }
24
+ //
25
+ // declare module '@mui/x-data-grid-pro' {
26
+ // export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V>
27
+ // extends GridColDefPremium<R, V, F> {}
28
+ //
29
+ // // TODO: Remove explicit augmentation of pro package
30
+ // interface GridControlledStateEventLookup
31
+ // extends GridControlledStateEventLookupPro,
32
+ // GridControlledStateEventLookupPremium {}
33
+ // }
34
+ "use strict";
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "useGridApiContext", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _useGridApiContext.useGridApiContext;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "useGridApiRef", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _useGridApiRef.useGridApiRef;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "useGridRootProps", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _useGridRootProps.useGridRootProps;
22
+ }
23
+ });
24
+
25
+ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
26
+
27
+ var _useGridApiRef = require("../hooks/utils/useGridApiRef");
28
+
29
+ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getReleaseInfo = void 0;
7
+
8
+ var _utils = require("@mui/utils");
9
+
10
+ const getReleaseInfo = () => {
11
+ const releaseInfo = "MTY1MjM5MjgwMDAwMA==";
12
+
13
+ if (process.env.NODE_ENV !== 'production') {
14
+ // A simple hack to set the value in the test environment (has no build step).
15
+ // eslint-disable-next-line no-useless-concat
16
+ if (releaseInfo === '__RELEASE' + '_INFO__') {
17
+ // eslint-disable-next-line no-underscore-dangle
18
+ return _utils.ponyfillGlobal.__MUI_RELEASE_INFO__;
19
+ }
20
+ }
21
+
22
+ return releaseInfo;
23
+ };
24
+
25
+ exports.getReleaseInfo = getReleaseInfo;
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@mui/x-data-grid-premium",
3
+ "version": "5.11.0",
4
+ "description": "The Premium plan edition of the data grid component (MUI X).",
5
+ "author": "MUI Team",
6
+ "main": "./node/index.js",
7
+ "license": "SEE LICENSE IN LICENSE.txt",
8
+ "bugs": {
9
+ "url": "https://github.com/mui/mui-x/issues"
10
+ },
11
+ "homepage": "https://mui.com/components/data-grid/",
12
+ "sideEffects": false,
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "keywords": [
17
+ "react",
18
+ "react-component",
19
+ "material-ui",
20
+ "mui",
21
+ "react-table",
22
+ "table",
23
+ "datatable",
24
+ "data-table",
25
+ "datagrid",
26
+ "data-grid"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/mui/mui-x.git",
31
+ "directory": "packages/grid/x-data-grid-premium"
32
+ },
33
+ "dependencies": {
34
+ "@mui/utils": "^5.6.1",
35
+ "@mui/x-data-grid": "5.11.0",
36
+ "@mui/x-data-grid-pro": "5.11.0",
37
+ "@mui/x-license-pro": "5.11.0",
38
+ "@types/format-util": "^1.0.2",
39
+ "clsx": "^1.0.4",
40
+ "prop-types": "^15.8.1",
41
+ "reselect": "^4.1.5"
42
+ },
43
+ "peerDependencies": {
44
+ "@mui/material": "^5.2.8",
45
+ "@mui/system": "^5.2.8",
46
+ "exceljs": "^4.3.0",
47
+ "react": "^17.0.2"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "exceljs": {
51
+ "optional": true
52
+ }
53
+ },
54
+ "setupFiles": [
55
+ "<rootDir>/src/setupTests.js"
56
+ ],
57
+ "engines": {
58
+ "node": ">=12.0.0"
59
+ },
60
+ "private": false,
61
+ "module": "./index.js",
62
+ "types": "./index.d.ts"
63
+ }
@@ -0,0 +1 @@
1
+ import '@mui/x-data-grid-pro/typeOverloads';
@@ -0,0 +1 @@
1
+ import '@mui/x-data-grid-pro/typeOverloads';
File without changes
@@ -0,0 +1,33 @@
1
+ // import { GridKeyValue, GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ // import type { GridControlledStateEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
3
+ // import type { GridGroupingValueGetterParams } from '../models';
4
+ // import type { GridRowGroupingModel } from '../hooks';
5
+ //
6
+ // export interface GridControlledStateEventLookupPremium {
7
+ // /**
8
+ // * Fired when the row grouping model changes.
9
+ // */
10
+ // rowGroupingModelChange: { params: GridRowGroupingModel };
11
+ // }
12
+ //
13
+ // // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ // export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
15
+ // /**
16
+ // * Function that transforms a complex cell value into a key that be used for grouping the rows.
17
+ // * @param {GridGroupingValueGetterParams} params Object containing parameters for the getter.
18
+ // * @returns {GridKeyValue | null | undefined} The cell key.
19
+ // */
20
+ // groupingValueGetter?: (
21
+ // params: GridGroupingValueGetterParams<V, R>,
22
+ // ) => GridKeyValue | null | undefined;
23
+ // }
24
+ //
25
+ // declare module '@mui/x-data-grid-pro' {
26
+ // export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V>
27
+ // extends GridColDefPremium<R, V, F> {}
28
+ //
29
+ // // TODO: Remove explicit augmentation of pro package
30
+ // interface GridControlledStateEventLookup
31
+ // extends GridControlledStateEventLookupPro,
32
+ // GridControlledStateEventLookupPremium {}
33
+ // }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/typeOverloads/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import type { GridApiPremium } from '../models/gridApiPremium';
3
+ import { GridInitialStatePremium, GridStatePremium } from '../models/gridStatePremium';
4
+ export { useGridApiContext } from '../hooks/utils/useGridApiContext';
5
+ export { useGridApiRef } from '../hooks/utils/useGridApiRef';
6
+ export { useGridRootProps } from '../hooks/utils/useGridRootProps';
7
+ /**
8
+ * The full grid API.
9
+ */
10
+ export declare type GridApi = GridApiPremium;
11
+ /**
12
+ * @deprecated Use `React.MutableRefObject<GridApi>` instead
13
+ */
14
+ export declare type GridApiRef = React.MutableRefObject<GridApiPremium>;
15
+ /**
16
+ * The state of `DataGridPremium`.
17
+ */
18
+ export declare type GridState = GridStatePremium;
19
+ /**
20
+ * The initial state of `DataGridPremium`.
21
+ */
22
+ export declare type GridInitialState = GridInitialStatePremium;
@@ -0,0 +1,6 @@
1
+ export { useGridApiContext } from '../hooks/utils/useGridApiContext';
2
+ export { useGridApiRef } from '../hooks/utils/useGridApiRef';
3
+ export { useGridRootProps } from '../hooks/utils/useGridRootProps';
4
+ /**
5
+ * The full grid API.
6
+ */
@@ -0,0 +1 @@
1
+ export declare const getReleaseInfo: () => any;
@@ -0,0 +1,15 @@
1
+ import { ponyfillGlobal } from '@mui/utils';
2
+ export const getReleaseInfo = () => {
3
+ const releaseInfo = "MTY1MjM5MjgwMDAwMA==";
4
+
5
+ if (process.env.NODE_ENV !== 'production') {
6
+ // A simple hack to set the value in the test environment (has no build step).
7
+ // eslint-disable-next-line no-useless-concat
8
+ if (releaseInfo === '__RELEASE' + '_INFO__') {
9
+ // eslint-disable-next-line no-underscore-dangle
10
+ return ponyfillGlobal.__MUI_RELEASE_INFO__;
11
+ }
12
+ }
13
+
14
+ return releaseInfo;
15
+ };