@mui/x-data-grid 6.3.1 → 6.5.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 (349) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/DataGrid/DataGrid.js +20 -1
  3. package/DataGrid/useDataGridComponent.js +2 -2
  4. package/DataGrid/useDataGridProps.js +8 -13
  5. package/colDef/gridBooleanColDef.js +19 -1
  6. package/colDef/gridDateColDef.js +6 -2
  7. package/colDef/gridNumericOperators.js +0 -6
  8. package/colDef/gridSingleSelectColDef.js +21 -1
  9. package/components/base/GridBody.js +2 -1
  10. package/components/cell/GridEditInputCell.js +4 -1
  11. package/components/containers/GridRootStyles.js +1 -0
  12. package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +15 -2
  13. package/components/panel/filterPanel/GridFilterInputBoolean.js +80 -36
  14. package/components/panel/filterPanel/GridFilterInputDate.d.ts +8 -1
  15. package/components/panel/filterPanel/GridFilterInputDate.js +27 -6
  16. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
  17. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
  18. package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +8 -1
  19. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +55 -32
  20. package/components/panel/filterPanel/GridFilterInputValue.d.ts +11 -4
  21. package/components/panel/filterPanel/GridFilterInputValue.js +29 -6
  22. package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -1
  23. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  24. package/components/panel/filterPanel/index.d.ts +3 -1
  25. package/components/panel/filterPanel/index.js +2 -1
  26. package/constants/localeTextConstants.js +26 -0
  27. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +12 -1
  28. package/hooks/features/clipboard/useGridClipboard.d.ts +2 -1
  29. package/hooks/features/clipboard/useGridClipboard.js +43 -26
  30. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +9 -2
  31. package/hooks/features/columnHeaders/useGridColumnHeaders.js +4 -2
  32. package/hooks/features/dimensions/useGridDimensions.js +4 -6
  33. package/hooks/features/editing/useGridCellEditing.js +7 -3
  34. package/hooks/features/editing/useGridEditing.js +0 -3
  35. package/hooks/features/editing/useGridRowEditing.js +7 -3
  36. package/hooks/features/export/serializers/csvSerializer.d.ts +5 -0
  37. package/hooks/features/export/serializers/csvSerializer.js +46 -6
  38. package/hooks/features/export/useGridCsvExport.d.ts +2 -1
  39. package/hooks/features/export/useGridCsvExport.js +7 -5
  40. package/hooks/features/focus/gridFocusState.d.ts +2 -0
  41. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -0
  42. package/hooks/features/focus/gridFocusStateSelector.js +6 -0
  43. package/hooks/features/focus/useGridFocus.js +55 -9
  44. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -0
  45. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +5 -0
  46. package/hooks/features/headerFiltering/index.d.ts +1 -0
  47. package/hooks/features/headerFiltering/index.js +1 -0
  48. package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +6 -0
  49. package/hooks/features/headerFiltering/useGridHeaderFiltering.js +91 -0
  50. package/hooks/features/index.d.ts +1 -0
  51. package/hooks/features/index.js +2 -1
  52. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
  53. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +124 -4
  54. package/hooks/features/rows/useGridRows.js +16 -1
  55. package/index.js +1 -1
  56. package/internals/index.d.ts +9 -3
  57. package/internals/index.js +7 -2
  58. package/internals/utils/index.d.ts +1 -0
  59. package/internals/utils/index.js +2 -1
  60. package/internals/utils/useProps.d.ts +8 -0
  61. package/internals/utils/useProps.js +13 -0
  62. package/joy/icons.d.ts +33 -0
  63. package/joy/icons.js +433 -0
  64. package/joy/joySlots.js +114 -4
  65. package/legacy/DataGrid/DataGrid.js +20 -1
  66. package/legacy/DataGrid/useDataGridComponent.js +2 -2
  67. package/legacy/DataGrid/useDataGridProps.js +11 -9
  68. package/legacy/colDef/gridBooleanColDef.js +21 -1
  69. package/legacy/colDef/gridDateColDef.js +10 -2
  70. package/legacy/colDef/gridNumericOperators.js +0 -6
  71. package/legacy/colDef/gridSingleSelectColDef.js +21 -1
  72. package/legacy/components/base/GridBody.js +2 -1
  73. package/legacy/components/cell/GridEditInputCell.js +4 -1
  74. package/legacy/components/containers/GridRootStyles.js +1 -0
  75. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +79 -35
  76. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +26 -5
  77. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
  78. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
  79. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +54 -31
  80. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +28 -5
  81. package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -1
  82. package/legacy/components/panel/filterPanel/index.js +2 -1
  83. package/legacy/constants/localeTextConstants.js +26 -0
  84. package/legacy/hooks/features/clipboard/useGridClipboard.js +44 -26
  85. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
  86. package/legacy/hooks/features/dimensions/useGridDimensions.js +4 -6
  87. package/legacy/hooks/features/editing/useGridCellEditing.js +7 -3
  88. package/legacy/hooks/features/editing/useGridEditing.js +0 -3
  89. package/legacy/hooks/features/editing/useGridRowEditing.js +7 -3
  90. package/legacy/hooks/features/export/serializers/csvSerializer.js +43 -6
  91. package/legacy/hooks/features/export/useGridCsvExport.js +8 -5
  92. package/legacy/hooks/features/focus/gridFocusStateSelector.js +10 -0
  93. package/legacy/hooks/features/focus/useGridFocus.js +58 -9
  94. package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +11 -0
  95. package/legacy/hooks/features/headerFiltering/index.js +1 -0
  96. package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +93 -0
  97. package/legacy/hooks/features/index.js +2 -1
  98. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +123 -4
  99. package/legacy/hooks/features/rows/useGridRows.js +16 -1
  100. package/legacy/index.js +1 -1
  101. package/legacy/internals/index.js +7 -2
  102. package/legacy/internals/utils/index.js +2 -1
  103. package/legacy/internals/utils/useProps.js +11 -0
  104. package/legacy/joy/icons.js +432 -0
  105. package/legacy/joy/joySlots.js +118 -4
  106. package/legacy/locales/arSD.js +28 -0
  107. package/legacy/locales/beBY.js +28 -0
  108. package/legacy/locales/bgBG.js +28 -0
  109. package/legacy/locales/csCZ.js +36 -8
  110. package/legacy/locales/daDK.js +28 -0
  111. package/legacy/locales/deDE.js +30 -2
  112. package/legacy/locales/elGR.js +27 -0
  113. package/legacy/locales/esES.js +28 -0
  114. package/legacy/locales/faIR.js +28 -0
  115. package/legacy/locales/fiFI.js +28 -0
  116. package/legacy/locales/frFR.js +34 -6
  117. package/legacy/locales/heIL.js +30 -2
  118. package/legacy/locales/huHU.js +28 -0
  119. package/legacy/locales/itIT.js +28 -0
  120. package/legacy/locales/jaJP.js +28 -0
  121. package/legacy/locales/koKR.js +28 -0
  122. package/legacy/locales/nbNO.js +28 -0
  123. package/legacy/locales/nlNL.js +28 -0
  124. package/legacy/locales/plPL.js +28 -0
  125. package/legacy/locales/ptBR.js +29 -1
  126. package/legacy/locales/roRO.js +28 -0
  127. package/legacy/locales/ruRU.js +28 -0
  128. package/legacy/locales/skSK.js +28 -0
  129. package/legacy/locales/svSE.js +28 -0
  130. package/legacy/locales/trTR.js +28 -0
  131. package/legacy/locales/ukUA.js +36 -9
  132. package/legacy/locales/urPK.js +28 -0
  133. package/legacy/locales/viVN.js +27 -0
  134. package/legacy/locales/zhCN.js +28 -0
  135. package/legacy/locales/zhTW.js +28 -0
  136. package/legacy/material/index.js +5 -1
  137. package/legacy/models/api/index.js +0 -1
  138. package/legacy/models/index.js +0 -1
  139. package/legacy/utils/domUtils.js +14 -1
  140. package/locales/arSD.js +28 -0
  141. package/locales/beBY.js +28 -0
  142. package/locales/bgBG.js +28 -0
  143. package/locales/csCZ.js +36 -8
  144. package/locales/daDK.js +28 -0
  145. package/locales/deDE.js +30 -2
  146. package/locales/elGR.js +27 -0
  147. package/locales/esES.js +28 -0
  148. package/locales/faIR.js +28 -0
  149. package/locales/fiFI.js +28 -0
  150. package/locales/frFR.js +34 -6
  151. package/locales/heIL.js +30 -2
  152. package/locales/huHU.js +28 -0
  153. package/locales/itIT.js +28 -0
  154. package/locales/jaJP.js +28 -0
  155. package/locales/koKR.js +28 -0
  156. package/locales/nbNO.js +28 -0
  157. package/locales/nlNL.js +28 -0
  158. package/locales/plPL.js +28 -0
  159. package/locales/ptBR.js +29 -1
  160. package/locales/roRO.js +28 -0
  161. package/locales/ruRU.js +28 -0
  162. package/locales/skSK.js +28 -0
  163. package/locales/svSE.js +28 -0
  164. package/locales/trTR.js +28 -0
  165. package/locales/ukUA.js +36 -9
  166. package/locales/urPK.js +28 -0
  167. package/locales/viVN.js +27 -0
  168. package/locales/zhCN.js +28 -0
  169. package/locales/zhTW.js +28 -0
  170. package/material/index.d.ts +3 -65
  171. package/material/index.js +5 -1
  172. package/models/api/gridApiCommon.d.ts +3 -3
  173. package/models/api/gridCoreApi.d.ts +8 -0
  174. package/models/api/gridFocusApi.d.ts +6 -0
  175. package/models/api/gridHeaderFilteringApi.d.ts +30 -0
  176. package/models/api/gridLocaleTextApi.d.ts +25 -0
  177. package/models/api/index.d.ts +0 -1
  178. package/models/api/index.js +0 -1
  179. package/models/events/gridEventLookup.d.ts +33 -1
  180. package/models/gridFilterOperator.d.ts +4 -0
  181. package/models/gridHeaderFilteringModel.d.ts +5 -0
  182. package/models/gridHeaderFilteringModel.js +1 -0
  183. package/models/gridSlotsComponent.d.ts +21 -4
  184. package/models/gridSlotsComponentsProps.d.ts +4 -0
  185. package/models/gridStateCommunity.d.ts +2 -0
  186. package/models/index.d.ts +1 -1
  187. package/models/index.js +0 -1
  188. package/models/props/DataGridProps.d.ts +19 -0
  189. package/modern/DataGrid/DataGrid.js +20 -1
  190. package/modern/DataGrid/useDataGridComponent.js +2 -2
  191. package/modern/DataGrid/useDataGridProps.js +8 -13
  192. package/modern/colDef/gridBooleanColDef.js +19 -1
  193. package/modern/colDef/gridDateColDef.js +6 -2
  194. package/modern/colDef/gridNumericOperators.js +0 -6
  195. package/modern/colDef/gridSingleSelectColDef.js +21 -1
  196. package/modern/components/base/GridBody.js +2 -1
  197. package/modern/components/cell/GridEditInputCell.js +4 -1
  198. package/modern/components/containers/GridRootStyles.js +1 -0
  199. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +80 -36
  200. package/modern/components/panel/filterPanel/GridFilterInputDate.js +27 -6
  201. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
  202. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
  203. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +55 -32
  204. package/modern/components/panel/filterPanel/GridFilterInputValue.js +29 -6
  205. package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
  206. package/modern/components/panel/filterPanel/index.js +2 -1
  207. package/modern/constants/localeTextConstants.js +26 -0
  208. package/modern/hooks/features/clipboard/useGridClipboard.js +43 -26
  209. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +4 -2
  210. package/modern/hooks/features/dimensions/useGridDimensions.js +3 -5
  211. package/modern/hooks/features/editing/useGridCellEditing.js +7 -3
  212. package/modern/hooks/features/editing/useGridEditing.js +0 -3
  213. package/modern/hooks/features/editing/useGridRowEditing.js +7 -3
  214. package/modern/hooks/features/export/serializers/csvSerializer.js +44 -6
  215. package/modern/hooks/features/export/useGridCsvExport.js +7 -5
  216. package/modern/hooks/features/focus/gridFocusStateSelector.js +6 -0
  217. package/modern/hooks/features/focus/useGridFocus.js +55 -9
  218. package/modern/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +5 -0
  219. package/modern/hooks/features/headerFiltering/index.js +1 -0
  220. package/modern/hooks/features/headerFiltering/useGridHeaderFiltering.js +90 -0
  221. package/modern/hooks/features/index.js +2 -1
  222. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +124 -4
  223. package/modern/hooks/features/rows/useGridRows.js +16 -1
  224. package/modern/index.js +1 -1
  225. package/modern/internals/index.js +7 -2
  226. package/modern/internals/utils/index.js +2 -1
  227. package/modern/internals/utils/useProps.js +13 -0
  228. package/modern/joy/icons.js +433 -0
  229. package/modern/joy/joySlots.js +110 -4
  230. package/modern/locales/arSD.js +28 -0
  231. package/modern/locales/beBY.js +28 -0
  232. package/modern/locales/bgBG.js +28 -0
  233. package/modern/locales/csCZ.js +36 -8
  234. package/modern/locales/daDK.js +28 -0
  235. package/modern/locales/deDE.js +30 -2
  236. package/modern/locales/elGR.js +27 -0
  237. package/modern/locales/esES.js +28 -0
  238. package/modern/locales/faIR.js +28 -0
  239. package/modern/locales/fiFI.js +28 -0
  240. package/modern/locales/frFR.js +34 -6
  241. package/modern/locales/heIL.js +30 -2
  242. package/modern/locales/huHU.js +28 -0
  243. package/modern/locales/itIT.js +28 -0
  244. package/modern/locales/jaJP.js +28 -0
  245. package/modern/locales/koKR.js +28 -0
  246. package/modern/locales/nbNO.js +28 -0
  247. package/modern/locales/nlNL.js +28 -0
  248. package/modern/locales/plPL.js +28 -0
  249. package/modern/locales/ptBR.js +29 -1
  250. package/modern/locales/roRO.js +28 -0
  251. package/modern/locales/ruRU.js +28 -0
  252. package/modern/locales/skSK.js +28 -0
  253. package/modern/locales/svSE.js +28 -0
  254. package/modern/locales/trTR.js +28 -0
  255. package/modern/locales/ukUA.js +36 -9
  256. package/modern/locales/urPK.js +28 -0
  257. package/modern/locales/viVN.js +27 -0
  258. package/modern/locales/zhCN.js +28 -0
  259. package/modern/locales/zhTW.js +28 -0
  260. package/modern/material/index.js +5 -1
  261. package/modern/models/api/gridHeaderFilteringApi.js +1 -0
  262. package/modern/models/api/index.js +0 -1
  263. package/modern/models/gridHeaderFilteringModel.js +1 -0
  264. package/modern/models/index.js +0 -1
  265. package/modern/utils/domUtils.js +13 -1
  266. package/node/DataGrid/DataGrid.js +20 -1
  267. package/node/DataGrid/useDataGridComponent.js +2 -2
  268. package/node/DataGrid/useDataGridProps.js +7 -12
  269. package/node/colDef/gridBooleanColDef.js +19 -1
  270. package/node/colDef/gridDateColDef.js +6 -2
  271. package/node/colDef/gridNumericOperators.js +0 -6
  272. package/node/colDef/gridSingleSelectColDef.js +21 -1
  273. package/node/components/base/GridBody.js +2 -1
  274. package/node/components/cell/GridEditInputCell.js +4 -1
  275. package/node/components/containers/GridRootStyles.js +1 -0
  276. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +78 -35
  277. package/node/components/panel/filterPanel/GridFilterInputDate.js +27 -6
  278. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -2
  279. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -2
  280. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +55 -32
  281. package/node/components/panel/filterPanel/GridFilterInputValue.js +29 -6
  282. package/node/components/panel/filterPanel/GridFilterPanel.js +2 -1
  283. package/node/components/panel/filterPanel/index.js +26 -8
  284. package/node/constants/localeTextConstants.js +26 -0
  285. package/node/hooks/features/clipboard/useGridClipboard.js +42 -25
  286. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +4 -2
  287. package/node/hooks/features/dimensions/useGridDimensions.js +3 -5
  288. package/node/hooks/features/editing/useGridCellEditing.js +7 -3
  289. package/node/hooks/features/editing/useGridEditing.js +0 -3
  290. package/node/hooks/features/editing/useGridRowEditing.js +7 -3
  291. package/node/hooks/features/export/serializers/csvSerializer.js +46 -6
  292. package/node/hooks/features/export/useGridCsvExport.js +6 -3
  293. package/node/hooks/features/focus/gridFocusStateSelector.js +9 -1
  294. package/node/hooks/features/focus/useGridFocus.js +55 -9
  295. package/node/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +15 -0
  296. package/node/hooks/features/headerFiltering/index.js +16 -0
  297. package/node/hooks/features/headerFiltering/useGridHeaderFiltering.js +101 -0
  298. package/node/hooks/features/index.js +11 -0
  299. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +124 -4
  300. package/node/hooks/features/rows/useGridRows.js +16 -1
  301. package/node/index.js +1 -1
  302. package/node/internals/index.js +69 -1
  303. package/node/internals/utils/index.js +11 -0
  304. package/node/internals/utils/useProps.js +22 -0
  305. package/node/joy/icons.js +471 -0
  306. package/node/joy/joySlots.js +110 -3
  307. package/node/locales/arSD.js +28 -0
  308. package/node/locales/beBY.js +28 -0
  309. package/node/locales/bgBG.js +28 -0
  310. package/node/locales/csCZ.js +36 -8
  311. package/node/locales/daDK.js +28 -0
  312. package/node/locales/deDE.js +30 -2
  313. package/node/locales/elGR.js +27 -0
  314. package/node/locales/esES.js +28 -0
  315. package/node/locales/faIR.js +28 -0
  316. package/node/locales/fiFI.js +28 -0
  317. package/node/locales/frFR.js +34 -6
  318. package/node/locales/heIL.js +30 -2
  319. package/node/locales/huHU.js +28 -0
  320. package/node/locales/itIT.js +28 -0
  321. package/node/locales/jaJP.js +28 -0
  322. package/node/locales/koKR.js +28 -0
  323. package/node/locales/nbNO.js +28 -0
  324. package/node/locales/nlNL.js +28 -0
  325. package/node/locales/plPL.js +28 -0
  326. package/node/locales/ptBR.js +29 -1
  327. package/node/locales/roRO.js +28 -0
  328. package/node/locales/ruRU.js +28 -0
  329. package/node/locales/skSK.js +28 -0
  330. package/node/locales/svSE.js +28 -0
  331. package/node/locales/trTR.js +28 -0
  332. package/node/locales/ukUA.js +36 -9
  333. package/node/locales/urPK.js +28 -0
  334. package/node/locales/viVN.js +27 -0
  335. package/node/locales/zhCN.js +28 -0
  336. package/node/locales/zhTW.js +28 -0
  337. package/node/material/index.js +5 -1
  338. package/node/models/api/index.js +0 -11
  339. package/node/models/gridHeaderFilteringModel.js +5 -0
  340. package/node/models/index.js +0 -11
  341. package/node/utils/domUtils.js +15 -1
  342. package/package.json +1 -1
  343. package/utils/domUtils.d.ts +1 -0
  344. package/utils/domUtils.js +13 -1
  345. package/models/api/gridClipboardApi.d.ts +0 -11
  346. /package/legacy/models/api/{gridClipboardApi.js → gridHeaderFilteringApi.js} +0 -0
  347. /package/{models/api/gridClipboardApi.js → legacy/models/gridHeaderFilteringModel.js} +0 -0
  348. /package/{modern/models/api/gridClipboardApi.js → models/api/gridHeaderFilteringApi.js} +0 -0
  349. /package/node/models/api/{gridClipboardApi.js → gridHeaderFilteringApi.js} +0 -0
@@ -0,0 +1,471 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = exports.GridVisibilityOffIcon = exports.GridViewStreamIcon = exports.GridViewHeadlineIcon = exports.GridViewColumnIcon = exports.GridTripleDotsVerticalIcon = exports.GridTableRowsIcon = exports.GridSeparatorIcon = exports.GridSearchIcon = exports.GridSaveAltIcon = exports.GridRemoveIcon = exports.GridMoreVertIcon = exports.GridMenuIcon = exports.GridLoadIcon = exports.GridKeyboardArrowRight = exports.GridKeyboardArrowLeft = exports.GridFilterListIcon = exports.GridFilterAltIcon = exports.GridExpandMoreIcon = exports.GridDragIcon = exports.GridDeleteIcon = exports.GridDeleteForeverIcon = exports.GridColumnIcon = exports.GridCloseIcon = exports.GridClearIcon = exports.GridCheckIcon = exports.GridCheckCircleIcon = exports.GridArrowUpwardIcon = exports.GridArrowDownwardIcon = exports.GridAddIcon = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _SvgIcon = _interopRequireDefault(require("@mui/joy/SvgIcon"));
12
+ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ const _excluded = ["sx", "fontSize"],
15
+ _excluded2 = ["sortingOrder"];
16
+ /**
17
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT).
18
+ * All other copyright (c) for Lucide are held by Lucide Contributors 2022.
19
+ *
20
+ * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
21
+ * provided that the above copyright notice and this permission notice appear in all copies.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
24
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
25
+ * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
26
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
27
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28
+ */
29
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+ function createSvgIcon(path, displayName) {
32
+ const fontSizeMap = {
33
+ small: 'lg',
34
+ medium: 'xl',
35
+ large: 'xl2',
36
+ inherit: undefined
37
+ };
38
+ // @ts-ignore internal component
39
+ function Component(_ref, ref) {
40
+ let {
41
+ sx,
42
+ fontSize
43
+ } = _ref,
44
+ props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SvgIcon.default, (0, _extends2.default)({
46
+ "data-testid": `${displayName}Icon`,
47
+ ref: ref,
48
+ fill: "none",
49
+ stroke: "currentColor",
50
+ strokeWidth: "2",
51
+ strokeLinecap: "round",
52
+ strokeLinejoin: "round",
53
+ sx: [{
54
+ fill: 'none'
55
+ }, ...(Array.isArray(sx) ? sx : [sx])],
56
+ fontSize: fontSize ? fontSizeMap[fontSize] : undefined
57
+ }, props, {
58
+ children: path
59
+ }));
60
+ }
61
+ if (process.env.NODE_ENV !== 'production') {
62
+ // Need to set `displayName` on the inner component for React.memo.
63
+ // React prior to 16.14 ignores `displayName` on the wrapper.
64
+ Component.displayName = `${displayName}Icon`;
65
+ }
66
+
67
+ // @ts-ignore internal component
68
+ Component.muiName = _SvgIcon.default.muiName;
69
+
70
+ // @ts-ignore internal component
71
+ return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));
72
+ }
73
+ const GridArrowUpwardIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
74
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
75
+ x1: "12",
76
+ x2: "12",
77
+ y1: "19",
78
+ y2: "5"
79
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
80
+ points: "5 12 12 5 19 12"
81
+ })]
82
+ }), 'ArrowUpward');
83
+ exports.GridArrowUpwardIcon = GridArrowUpwardIcon;
84
+ const GridArrowDownwardIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
85
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
86
+ x1: "12",
87
+ x2: "12",
88
+ y1: "5",
89
+ y2: "19"
90
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
91
+ points: "19 12 12 19 5 12"
92
+ })]
93
+ }), 'ArrowDownward');
94
+ exports.GridArrowDownwardIcon = GridArrowDownwardIcon;
95
+ const GridKeyboardArrowLeft = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
96
+ points: "15 18 9 12 15 6"
97
+ }), 'KeyboardArrowLeft');
98
+ exports.GridKeyboardArrowLeft = GridKeyboardArrowLeft;
99
+ const GridKeyboardArrowRight = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
100
+ points: "9 18 15 12 9 6"
101
+ }), 'KeyboardArrowRight');
102
+ exports.GridKeyboardArrowRight = GridKeyboardArrowRight;
103
+ const GridExpandMoreIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
104
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
105
+ d: "m7 15 5 5 5-5"
106
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
107
+ d: "m7 9 5-5 5 5"
108
+ })]
109
+ }), 'ExpandMore');
110
+ exports.GridExpandMoreIcon = GridExpandMoreIcon;
111
+ const GridFilterListIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("polygon", {
112
+ points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"
113
+ }), 'FilterList');
114
+ exports.GridFilterListIcon = GridFilterListIcon;
115
+ const GridFilterAltIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
116
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
117
+ d: "M3 6h18"
118
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
119
+ d: "M7 12h10"
120
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
121
+ d: "M10 18h4"
122
+ })]
123
+ }), 'FilterAlt');
124
+ exports.GridFilterAltIcon = GridFilterAltIcon;
125
+ const GridSearchIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
126
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
127
+ cx: "11",
128
+ cy: "11",
129
+ r: "8"
130
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
131
+ x1: "21",
132
+ x2: "16.65",
133
+ y1: "21",
134
+ y2: "16.65"
135
+ })]
136
+ }), 'Search');
137
+ exports.GridSearchIcon = GridSearchIcon;
138
+ const GridMenuIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
139
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
140
+ width: "18",
141
+ height: "18",
142
+ x: "3",
143
+ y: "3",
144
+ rx: "2"
145
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
146
+ d: "M7 8h10"
147
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
148
+ d: "M7 12h10"
149
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
150
+ d: "M7 16h10"
151
+ })]
152
+ }), 'Menu');
153
+ exports.GridMenuIcon = GridMenuIcon;
154
+ const GridCheckCircleIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
155
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
156
+ d: "M22 11.08V12a10 10 0 1 1-5.93-9.14"
157
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
158
+ points: "22 4 12 14.01 9 11.01"
159
+ })]
160
+ }), 'CheckCircle');
161
+ exports.GridCheckCircleIcon = GridCheckCircleIcon;
162
+ const GridColumnIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
163
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
164
+ width: "18",
165
+ height: "18",
166
+ x: "3",
167
+ y: "3",
168
+ rx: "2",
169
+ ry: "2"
170
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
171
+ x1: "12",
172
+ x2: "12",
173
+ y1: "3",
174
+ y2: "21"
175
+ })]
176
+ }), 'ColumnIcon');
177
+ exports.GridColumnIcon = GridColumnIcon;
178
+ const GridSeparatorIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
179
+ d: "M11 19V5h2v14z"
180
+ }), 'Separator');
181
+ exports.GridSeparatorIcon = GridSeparatorIcon;
182
+ const GridViewHeadlineIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
183
+ fill: "none",
184
+ stroke: "currentColor",
185
+ strokeWidth: "1.5",
186
+ d: "M3 12h18M3 12v4.5M3 12V7.5M21 12v4.5m0-4.5V7.5m-18 9v3.9a.6.6 0 0 0 .6.6h16.8a.6.6 0 0 0 .6-.6v-3.9m-18 0h18m0-9V3.6a.6.6 0 0 0-.6-.6H3.6a.6.6 0 0 0-.6.6v3.9m18 0H3"
187
+ }), 'ViewHeadline');
188
+ exports.GridViewHeadlineIcon = GridViewHeadlineIcon;
189
+ const GridTableRowsIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
190
+ fill: "currentColor",
191
+ strokeWidth: "0",
192
+ d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h14zm0 5v4H5v-4h14zM5 19v-3h14v3H5z"
193
+ }), 'TableRows');
194
+ exports.GridTableRowsIcon = GridTableRowsIcon;
195
+ const GridViewStreamIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
196
+ d: "M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm0 6h16"
197
+ }), 'ViewStream');
198
+ exports.GridViewStreamIcon = GridViewStreamIcon;
199
+ const GridTripleDotsVerticalIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
200
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
201
+ cx: "12",
202
+ cy: "12",
203
+ r: "1"
204
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
205
+ cx: "12",
206
+ cy: "5",
207
+ r: "1"
208
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
209
+ cx: "12",
210
+ cy: "19",
211
+ r: "1"
212
+ })]
213
+ }), 'TripleDotsVertical');
214
+ exports.GridTripleDotsVerticalIcon = GridTripleDotsVerticalIcon;
215
+ const GridCloseIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
216
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
217
+ cx: "12",
218
+ cy: "12",
219
+ r: "10"
220
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
221
+ x1: "15",
222
+ x2: "9",
223
+ y1: "9",
224
+ y2: "15"
225
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
226
+ x1: "9",
227
+ x2: "15",
228
+ y1: "9",
229
+ y2: "15"
230
+ })]
231
+ }), 'Close');
232
+ exports.GridCloseIcon = GridCloseIcon;
233
+ const GridAddIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
234
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
235
+ cx: "12",
236
+ cy: "12",
237
+ r: "10"
238
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
239
+ x1: "12",
240
+ x2: "12",
241
+ y1: "8",
242
+ y2: "16"
243
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
244
+ x1: "8",
245
+ x2: "16",
246
+ y1: "12",
247
+ y2: "12"
248
+ })]
249
+ }), 'Add');
250
+ exports.GridAddIcon = GridAddIcon;
251
+ const GridRemoveIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
252
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
253
+ cx: "12",
254
+ cy: "12",
255
+ r: "10"
256
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
257
+ x1: "15",
258
+ x2: "9",
259
+ y1: "9",
260
+ y2: "15"
261
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
262
+ x1: "9",
263
+ x2: "15",
264
+ y1: "9",
265
+ y2: "15"
266
+ })]
267
+ }), 'Remove');
268
+ exports.GridRemoveIcon = GridRemoveIcon;
269
+ const GridLoadIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
270
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
271
+ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
272
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
273
+ points: "7 10 12 15 17 10"
274
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
275
+ x1: "12",
276
+ x2: "12",
277
+ y1: "15",
278
+ y2: "3"
279
+ })]
280
+ }), 'Load');
281
+ exports.GridLoadIcon = GridLoadIcon;
282
+ const GridDragIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
283
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
284
+ cx: "9",
285
+ cy: "12",
286
+ r: "1"
287
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
288
+ cx: "9",
289
+ cy: "5",
290
+ r: "1"
291
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
292
+ cx: "9",
293
+ cy: "19",
294
+ r: "1"
295
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
296
+ cx: "15",
297
+ cy: "12",
298
+ r: "1"
299
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
300
+ cx: "15",
301
+ cy: "5",
302
+ r: "1"
303
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
304
+ cx: "15",
305
+ cy: "19",
306
+ r: "1"
307
+ })]
308
+ }), 'Drag');
309
+ exports.GridDragIcon = GridDragIcon;
310
+ const GridSaveAltIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
311
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
312
+ d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"
313
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
314
+ points: "14 2 14 8 20 8"
315
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
316
+ d: "M12 12v6"
317
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
318
+ d: "m15 15-3-3-3 3"
319
+ })]
320
+ }), 'SaveAlt');
321
+ exports.GridSaveAltIcon = GridSaveAltIcon;
322
+ const GridCheckIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
323
+ points: "20 6 9 17 4 12"
324
+ }), 'Check');
325
+ exports.GridCheckIcon = GridCheckIcon;
326
+ const GridMoreVertIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
327
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
328
+ cx: "12",
329
+ cy: "12",
330
+ r: "1"
331
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
332
+ cx: "12",
333
+ cy: "5",
334
+ r: "1"
335
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
336
+ cx: "12",
337
+ cy: "19",
338
+ r: "1"
339
+ })]
340
+ }), 'MoreVert');
341
+ exports.GridMoreVertIcon = GridMoreVertIcon;
342
+ const GridVisibilityOffIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
343
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
344
+ d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
345
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
346
+ d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"
347
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
348
+ d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"
349
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
350
+ x1: "2",
351
+ x2: "22",
352
+ y1: "2",
353
+ y2: "22"
354
+ })]
355
+ }), 'VisibilityOff');
356
+ exports.GridVisibilityOffIcon = GridVisibilityOffIcon;
357
+ const GridViewColumnIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
358
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
359
+ width: "6",
360
+ height: "20",
361
+ x: "4",
362
+ y: "2",
363
+ rx: "2"
364
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
365
+ width: "6",
366
+ height: "20",
367
+ x: "14",
368
+ y: "2",
369
+ rx: "2"
370
+ })]
371
+ }), 'ViewColumn');
372
+ exports.GridViewColumnIcon = GridViewColumnIcon;
373
+ const GridClearIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
374
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
375
+ d: "m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"
376
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
377
+ d: "M22 21H7"
378
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
379
+ d: "m5 11 9 9"
380
+ })]
381
+ }), 'Clear');
382
+ exports.GridClearIcon = GridClearIcon;
383
+ const GridDeleteIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
384
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
385
+ d: "M3 6h18"
386
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
387
+ d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"
388
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
389
+ d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"
390
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
391
+ x1: "10",
392
+ x2: "10",
393
+ y1: "11",
394
+ y2: "17"
395
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
396
+ x1: "14",
397
+ x2: "14",
398
+ y1: "11",
399
+ y2: "17"
400
+ })]
401
+ }), 'Delete');
402
+ exports.GridDeleteIcon = GridDeleteIcon;
403
+ const GridDeleteForeverIcon = createSvgIcon( /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
404
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
405
+ d: "M3 6h18"
406
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
407
+ d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"
408
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
409
+ d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"
410
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
411
+ x1: "10",
412
+ x2: "10",
413
+ y1: "11",
414
+ y2: "17"
415
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
416
+ x1: "14",
417
+ x2: "14",
418
+ y1: "11",
419
+ y2: "17"
420
+ })]
421
+ }), 'Delete');
422
+ exports.GridDeleteForeverIcon = GridDeleteForeverIcon;
423
+ const GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeaderSortIcon(props) {
424
+ const {
425
+ sortingOrder
426
+ } = props,
427
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
428
+ const rootProps = (0, _useGridRootProps.useGridRootProps)();
429
+ const [nextSortDirection] = sortingOrder;
430
+ const Icon = nextSortDirection === 'asc' ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
431
+ return Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({}, other)) : null;
432
+ });
433
+ const joyIconSlots = {
434
+ booleanCellTrueIcon: GridCheckIcon,
435
+ booleanCellFalseIcon: GridCloseIcon,
436
+ columnMenuIcon: GridTripleDotsVerticalIcon,
437
+ openFilterButtonIcon: GridFilterListIcon,
438
+ filterPanelDeleteIcon: GridCloseIcon,
439
+ columnFilteredIcon: GridFilterAltIcon,
440
+ columnSelectorIcon: GridColumnIcon,
441
+ columnUnsortedIcon: GridColumnUnsortedIcon,
442
+ columnSortedAscendingIcon: GridArrowUpwardIcon,
443
+ columnSortedDescendingIcon: GridArrowDownwardIcon,
444
+ columnResizeIcon: GridSeparatorIcon,
445
+ densityCompactIcon: GridViewHeadlineIcon,
446
+ densityStandardIcon: GridTableRowsIcon,
447
+ densityComfortableIcon: GridViewStreamIcon,
448
+ exportIcon: GridSaveAltIcon,
449
+ moreActionsIcon: GridMoreVertIcon,
450
+ treeDataCollapseIcon: GridExpandMoreIcon,
451
+ treeDataExpandIcon: GridKeyboardArrowRight,
452
+ groupingCriteriaCollapseIcon: GridExpandMoreIcon,
453
+ groupingCriteriaExpandIcon: GridKeyboardArrowRight,
454
+ detailPanelExpandIcon: GridAddIcon,
455
+ detailPanelCollapseIcon: GridRemoveIcon,
456
+ rowReorderIcon: GridDragIcon,
457
+ quickFilterIcon: GridSearchIcon,
458
+ quickFilterClearIcon: GridCloseIcon,
459
+ columnMenuHideIcon: GridVisibilityOffIcon,
460
+ columnMenuSortAscendingIcon: GridArrowUpwardIcon,
461
+ columnMenuSortDescendingIcon: GridArrowDownwardIcon,
462
+ columnMenuFilterIcon: GridFilterAltIcon,
463
+ columnMenuManageColumnsIcon: GridViewColumnIcon,
464
+ columnMenuClearIcon: GridClearIcon,
465
+ loadIcon: GridLoadIcon,
466
+ filterPanelAddIcon: GridAddIcon,
467
+ filterPanelRemoveAllIcon: GridDeleteForeverIcon,
468
+ columnReorderIcon: GridDragIcon
469
+ };
470
+ var _default = joyIconSlots;
471
+ exports.default = _default;
@@ -17,7 +17,13 @@ var _IconButton = _interopRequireDefault(require("@mui/joy/IconButton"));
17
17
  var _Switch = _interopRequireDefault(require("@mui/joy/Switch"));
18
18
  var _Select = _interopRequireDefault(require("@mui/joy/Select"));
19
19
  var _Option = _interopRequireDefault(require("@mui/joy/Option"));
20
+ var _Box = _interopRequireDefault(require("@mui/joy/Box"));
21
+ var _Typography = _interopRequireDefault(require("@mui/joy/Typography"));
20
22
  var _utils = require("@mui/utils");
23
+ var _icons = _interopRequireWildcard(require("./icons"));
24
+ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
25
+ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
26
+ var _hooks = require("../hooks");
21
27
  var _jsxRuntime = require("react/jsx-runtime");
22
28
  const _excluded = ["touchRippleRef", "inputProps", "onChange", "color", "size", "checked", "sx", "value", "inputRef"],
23
29
  _excluded2 = ["onChange", "label", "placeholder", "value", "inputRef", "type", "size", "variant"],
@@ -269,7 +275,107 @@ const InputLabel = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
269
275
  sx: sx
270
276
  }));
271
277
  });
272
- const joySlots = {
278
+ function labelDisplayedRows({
279
+ from,
280
+ to,
281
+ count
282
+ }) {
283
+ return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
284
+ }
285
+ const getLabelDisplayedRowsTo = ({
286
+ page,
287
+ pageSize,
288
+ rowCount
289
+ }) => {
290
+ if (rowCount === -1) {
291
+ return (page + 1) * pageSize;
292
+ }
293
+ return pageSize === -1 ? rowCount : Math.min(rowCount, (page + 1) * pageSize);
294
+ };
295
+ const Pagination = /*#__PURE__*/React.forwardRef((props, ref) => {
296
+ const apiRef = (0, _useGridApiContext.useGridApiContext)();
297
+ const rootProps = (0, _useGridRootProps.useGridRootProps)();
298
+ const paginationModel = (0, _hooks.gridPaginationModelSelector)(apiRef);
299
+ const visibleTopLevelRowCount = (0, _hooks.gridFilteredTopLevelRowCountSelector)(apiRef);
300
+ const rowCount = React.useMemo(() => rootProps.rowCount ?? visibleTopLevelRowCount ?? 0, [rootProps.rowCount, visibleTopLevelRowCount]);
301
+ const lastPage = React.useMemo(() => Math.floor(rowCount / (paginationModel.pageSize || 1)), [rowCount, paginationModel.pageSize]);
302
+ const handlePageChange = React.useCallback(page => {
303
+ apiRef.current.setPage(page);
304
+ }, [apiRef]);
305
+ const page = paginationModel.page <= lastPage ? paginationModel.page : lastPage;
306
+ const pageSize = paginationModel.pageSize;
307
+ const pageSizeOptions = rootProps.pageSizeOptions?.includes(pageSize) ? rootProps.pageSizeOptions : [];
308
+ const handleChangeRowsPerPage = (event, newValue) => {
309
+ const newPageSize = Number(newValue);
310
+ apiRef.current.setPageSize(newPageSize);
311
+ };
312
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
313
+ sx: {
314
+ display: 'flex',
315
+ alignItems: 'center',
316
+ gap: 2,
317
+ justifyContent: 'flex-end',
318
+ px: 2
319
+ },
320
+ ref: ref,
321
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_FormControl.default, {
322
+ orientation: "horizontal",
323
+ size: "sm",
324
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FormLabel.default, {
325
+ children: "Rows per page:"
326
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
327
+ onChange: handleChangeRowsPerPage,
328
+ value: pageSize,
329
+ children: pageSizeOptions.map(option => {
330
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Option, {
331
+ value: option,
332
+ children: option
333
+ }, option);
334
+ })
335
+ })]
336
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
337
+ textAlign: "center",
338
+ fontSize: "xs",
339
+ fontWeight: "md",
340
+ children: labelDisplayedRows({
341
+ from: rowCount === 0 ? 0 : page * pageSize + 1,
342
+ to: getLabelDisplayedRowsTo({
343
+ page,
344
+ pageSize,
345
+ rowCount
346
+ }),
347
+ count: rowCount === -1 ? -1 : rowCount
348
+ })
349
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
350
+ sx: {
351
+ display: 'flex',
352
+ gap: 0.5
353
+ },
354
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
355
+ size: "sm",
356
+ color: "neutral",
357
+ variant: "outlined",
358
+ disabled: page === 0,
359
+ onClick: () => handlePageChange(page - 1),
360
+ sx: {
361
+ bgcolor: 'background.surface'
362
+ },
363
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.GridKeyboardArrowLeft, {})
364
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
365
+ size: "sm",
366
+ color: "neutral",
367
+ variant: "outlined",
368
+ disabled: rowCount !== -1 ? page >= Math.ceil(rowCount / pageSize) - 1 : false,
369
+ onClick: () => handlePageChange(page + 1),
370
+ sx: {
371
+ bgcolor: 'background.surface'
372
+ },
373
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.GridKeyboardArrowRight, {})
374
+ })]
375
+ })]
376
+ });
377
+ });
378
+ const joySlots = (0, _extends2.default)({}, _icons.default, {
273
379
  baseCheckbox: Checkbox,
274
380
  baseTextField: TextField,
275
381
  baseButton: Button,
@@ -278,9 +384,10 @@ const joySlots = {
278
384
  baseSelect: Select,
279
385
  baseSelectOption: Option,
280
386
  baseInputLabel: InputLabel,
281
- baseFormControl: _FormControl.default
387
+ baseFormControl: _FormControl.default,
282
388
  // BaseTooltip: MUITooltip,
283
389
  // BasePopper: MUIPopper,
284
- };
390
+ pagination: Pagination
391
+ });
285
392
  var _default = joySlots;
286
393
  exports.default = _default;
@@ -66,6 +66,34 @@ const arSDGrid = {
66
66
  filterOperatorIsEmpty: 'خالي',
67
67
  filterOperatorIsNotEmpty: 'غير خالي',
68
68
  filterOperatorIsAnyOf: 'أي من',
69
+ // filterOperator=: '=',
70
+ // filterOperator!=: '!=',
71
+ // filterOperator>: '>',
72
+ // filterOperator>=: '>=',
73
+ // filterOperator<: '<',
74
+ // filterOperator<=: '<=',
75
+
76
+ // Header filter operators text
77
+ // headerFilterOperatorContains: 'Contains',
78
+ // headerFilterOperatorEquals: 'Equals',
79
+ // headerFilterOperatorStartsWith: 'Starts with',
80
+ // headerFilterOperatorEndsWith: 'Ends with',
81
+ // headerFilterOperatorIs: 'Is',
82
+ // headerFilterOperatorNot: 'Is not',
83
+ // headerFilterOperatorAfter: 'Is after',
84
+ // headerFilterOperatorOnOrAfter: 'Is on or after',
85
+ // headerFilterOperatorBefore: 'Is before',
86
+ // headerFilterOperatorOnOrBefore: 'Is on or before',
87
+ // headerFilterOperatorIsEmpty: 'Is empty',
88
+ // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
+ // headerFilterOperatorIsAnyOf: 'Is any of',
90
+ // headerFilterOperator=: 'Equals',
91
+ // headerFilterOperator!=: 'Not equals',
92
+ // headerFilterOperator>: 'Is greater than',
93
+ // headerFilterOperator>=: 'Is greater than or equal to',
94
+ // headerFilterOperator<: 'Is less than',
95
+ // headerFilterOperator<=: 'Is less than or equal to',
96
+
69
97
  // Filter values text
70
98
  filterValueAny: 'أي',
71
99
  filterValueTrue: 'صائب',
@@ -80,6 +80,34 @@ const beBYGrid = {
80
80
  filterOperatorIsEmpty: 'пусты',
81
81
  filterOperatorIsNotEmpty: 'не пусты',
82
82
  filterOperatorIsAnyOf: 'усякі з',
83
+ // filterOperator=: '=',
84
+ // filterOperator!=: '!=',
85
+ // filterOperator>: '>',
86
+ // filterOperator>=: '>=',
87
+ // filterOperator<: '<',
88
+ // filterOperator<=: '<=',
89
+
90
+ // Header filter operators text
91
+ // headerFilterOperatorContains: 'Contains',
92
+ // headerFilterOperatorEquals: 'Equals',
93
+ // headerFilterOperatorStartsWith: 'Starts with',
94
+ // headerFilterOperatorEndsWith: 'Ends with',
95
+ // headerFilterOperatorIs: 'Is',
96
+ // headerFilterOperatorNot: 'Is not',
97
+ // headerFilterOperatorAfter: 'Is after',
98
+ // headerFilterOperatorOnOrAfter: 'Is on or after',
99
+ // headerFilterOperatorBefore: 'Is before',
100
+ // headerFilterOperatorOnOrBefore: 'Is on or before',
101
+ // headerFilterOperatorIsEmpty: 'Is empty',
102
+ // headerFilterOperatorIsNotEmpty: 'Is not empty',
103
+ // headerFilterOperatorIsAnyOf: 'Is any of',
104
+ // headerFilterOperator=: 'Equals',
105
+ // headerFilterOperator!=: 'Not equals',
106
+ // headerFilterOperator>: 'Is greater than',
107
+ // headerFilterOperator>=: 'Is greater than or equal to',
108
+ // headerFilterOperator<: 'Is less than',
109
+ // headerFilterOperator<=: 'Is less than or equal to',
110
+
83
111
  // Filter values text
84
112
  filterValueAny: 'усякі',
85
113
  filterValueTrue: 'праўда',