@mui/x-data-grid 8.0.0-alpha.4 → 8.0.0-alpha.6

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 (254) hide show
  1. package/CHANGELOG.md +182 -0
  2. package/DataGrid/DataGrid.js +6 -9
  3. package/DataGrid/useDataGridProps.js +3 -3
  4. package/components/GridColumnHeaders.d.ts +1 -1
  5. package/components/GridColumnHeaders.js +4 -4
  6. package/components/GridFooter.d.ts +2 -1
  7. package/components/GridFooter.js +4 -4
  8. package/components/GridLoadingOverlay.d.ts +1 -1
  9. package/components/GridLoadingOverlay.js +10 -8
  10. package/components/GridNoResultsOverlay.d.ts +2 -1
  11. package/components/GridNoResultsOverlay.js +4 -4
  12. package/components/GridNoRowsOverlay.d.ts +2 -1
  13. package/components/GridNoRowsOverlay.js +4 -4
  14. package/components/GridPagination.d.ts +1 -1
  15. package/components/GridPagination.js +5 -3
  16. package/components/GridRow.d.ts +1 -1
  17. package/components/GridRow.js +15 -3
  18. package/components/GridRowCount.d.ts +1 -1
  19. package/components/GridRowCount.js +3 -2
  20. package/components/GridSelectedRowCount.d.ts +4 -1
  21. package/components/GridSelectedRowCount.js +3 -2
  22. package/components/GridSkeletonLoadingOverlay.d.ts +1 -1
  23. package/components/GridSkeletonLoadingOverlay.js +4 -3
  24. package/components/cell/GridActionsCellItem.d.ts +1 -1
  25. package/components/cell/GridActionsCellItem.js +7 -8
  26. package/components/cell/GridCell.d.ts +1 -1
  27. package/components/cell/GridCell.js +3 -2
  28. package/components/cell/GridEditInputCell.d.ts +1 -1
  29. package/components/cell/GridEditInputCell.js +72 -3
  30. package/components/cell/GridSkeletonCell.js +1 -2
  31. package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  32. package/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  33. package/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  34. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
  35. package/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  36. package/components/columnHeaders/GridIconButtonContainer.d.ts +1 -1
  37. package/components/columnHeaders/GridIconButtonContainer.js +5 -3
  38. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
  39. package/components/columnSelection/GridCellCheckboxRenderer.js +5 -3
  40. package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  41. package/components/columnSelection/GridHeaderCheckbox.js +5 -3
  42. package/components/containers/GridFooterContainer.d.ts +1 -1
  43. package/components/containers/GridFooterContainer.js +5 -3
  44. package/components/containers/GridOverlay.d.ts +1 -1
  45. package/components/containers/GridOverlay.js +5 -3
  46. package/components/containers/GridRoot.d.ts +1 -1
  47. package/components/containers/GridRoot.js +5 -3
  48. package/components/containers/GridToolbarContainer.d.ts +1 -1
  49. package/components/containers/GridToolbarContainer.js +3 -2
  50. package/components/menu/columnMenu/GridColumnMenu.d.ts +2 -2
  51. package/components/menu/columnMenu/GridColumnMenu.js +5 -5
  52. package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +1 -1
  53. package/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  54. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
  55. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
  56. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
  57. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  58. package/components/panel/GridPanel.d.ts +1 -1
  59. package/components/panel/GridPanel.js +3 -2
  60. package/components/panel/GridPanelWrapper.d.ts +1 -1
  61. package/components/panel/GridPanelWrapper.js +5 -3
  62. package/components/panel/filterPanel/GridFilterForm.d.ts +1 -1
  63. package/components/panel/filterPanel/GridFilterForm.js +3 -2
  64. package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +1 -1
  65. package/components/panel/filterPanel/GridFilterInputBoolean.js +9 -9
  66. package/components/panel/filterPanel/GridFilterInputValue.js +17 -10
  67. package/components/panel/filterPanel/GridFilterPanel.d.ts +1 -1
  68. package/components/panel/filterPanel/GridFilterPanel.js +4 -4
  69. package/components/panel/filterPanel/index.d.ts +2 -1
  70. package/components/panel/filterPanel/index.js +1 -1
  71. package/components/toolbar/GridToolbar.d.ts +1 -1
  72. package/components/toolbar/GridToolbar.js +4 -4
  73. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  74. package/components/toolbar/GridToolbarColumnsButton.js +3 -2
  75. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  76. package/components/toolbar/GridToolbarDensitySelector.js +6 -7
  77. package/components/toolbar/GridToolbarExport.d.ts +1 -1
  78. package/components/toolbar/GridToolbarExport.js +2 -1
  79. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  80. package/components/toolbar/GridToolbarExportContainer.js +3 -2
  81. package/components/toolbar/GridToolbarFilterButton.d.ts +2 -2
  82. package/components/toolbar/GridToolbarFilterButton.js +6 -2
  83. package/components/toolbar/GridToolbarQuickFilter.js +27 -23
  84. package/components/virtualization/GridMainContainer.d.ts +3 -1
  85. package/components/virtualization/GridMainContainer.js +4 -3
  86. package/components/virtualization/GridVirtualScrollbar.d.ts +1 -1
  87. package/components/virtualization/GridVirtualScrollbar.js +2 -1
  88. package/components/virtualization/GridVirtualScrollerContent.d.ts +2 -0
  89. package/components/virtualization/GridVirtualScrollerContent.js +5 -5
  90. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +2 -0
  91. package/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  92. package/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  93. package/hooks/features/columnResize/gridColumnResizeApi.d.ts +6 -0
  94. package/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  95. package/hooks/features/columnResize/useGridColumnResize.d.ts +1 -1
  96. package/hooks/features/columnResize/useGridColumnResize.js +9 -4
  97. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  98. package/hooks/features/columns/gridColumnsUtils.js +2 -1
  99. package/hooks/features/rows/useGridRowSpanning.js +76 -87
  100. package/index.js +1 -1
  101. package/internals/utils/index.d.ts +0 -1
  102. package/internals/utils/index.js +0 -1
  103. package/locales/koKR.js +45 -49
  104. package/locales/nlNL.js +5 -6
  105. package/material/index.js +36 -4
  106. package/models/gridBaseSlots.d.ts +36 -0
  107. package/models/gridBaseSlots.js +1 -0
  108. package/models/gridSlotsComponent.d.ts +16 -1
  109. package/models/gridSlotsComponentsProps.d.ts +38 -5
  110. package/models/props/DataGridProps.d.ts +0 -5
  111. package/modern/DataGrid/DataGrid.js +6 -9
  112. package/modern/DataGrid/useDataGridProps.js +3 -3
  113. package/modern/components/GridColumnHeaders.js +4 -4
  114. package/modern/components/GridFooter.js +4 -4
  115. package/modern/components/GridLoadingOverlay.js +10 -8
  116. package/modern/components/GridNoResultsOverlay.js +4 -4
  117. package/modern/components/GridNoRowsOverlay.js +4 -4
  118. package/modern/components/GridPagination.js +5 -3
  119. package/modern/components/GridRow.js +15 -3
  120. package/modern/components/GridRowCount.js +3 -2
  121. package/modern/components/GridSelectedRowCount.js +3 -2
  122. package/modern/components/GridSkeletonLoadingOverlay.js +4 -3
  123. package/modern/components/cell/GridActionsCellItem.js +7 -8
  124. package/modern/components/cell/GridCell.js +3 -2
  125. package/modern/components/cell/GridEditInputCell.js +72 -3
  126. package/modern/components/cell/GridSkeletonCell.js +1 -2
  127. package/modern/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  128. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  129. package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  130. package/modern/components/columnHeaders/GridIconButtonContainer.js +5 -3
  131. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +5 -3
  132. package/modern/components/columnSelection/GridHeaderCheckbox.js +5 -3
  133. package/modern/components/containers/GridFooterContainer.js +5 -3
  134. package/modern/components/containers/GridOverlay.js +5 -3
  135. package/modern/components/containers/GridRoot.js +5 -3
  136. package/modern/components/containers/GridToolbarContainer.js +3 -2
  137. package/modern/components/menu/columnMenu/GridColumnMenu.js +5 -5
  138. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  139. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
  140. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
  141. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
  142. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  143. package/modern/components/panel/GridPanel.js +3 -2
  144. package/modern/components/panel/GridPanelWrapper.js +5 -3
  145. package/modern/components/panel/filterPanel/GridFilterForm.js +3 -2
  146. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +9 -9
  147. package/modern/components/panel/filterPanel/GridFilterInputValue.js +17 -10
  148. package/modern/components/panel/filterPanel/GridFilterPanel.js +4 -4
  149. package/modern/components/panel/filterPanel/index.js +1 -1
  150. package/modern/components/toolbar/GridToolbar.js +4 -4
  151. package/modern/components/toolbar/GridToolbarColumnsButton.js +3 -2
  152. package/modern/components/toolbar/GridToolbarDensitySelector.js +6 -7
  153. package/modern/components/toolbar/GridToolbarExport.js +2 -1
  154. package/modern/components/toolbar/GridToolbarExportContainer.js +3 -2
  155. package/modern/components/toolbar/GridToolbarFilterButton.js +6 -2
  156. package/modern/components/toolbar/GridToolbarQuickFilter.js +27 -23
  157. package/modern/components/virtualization/GridMainContainer.js +4 -3
  158. package/modern/components/virtualization/GridVirtualScrollbar.js +2 -1
  159. package/modern/components/virtualization/GridVirtualScrollerContent.js +5 -5
  160. package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  161. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  162. package/modern/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  163. package/modern/hooks/features/columnResize/useGridColumnResize.js +9 -4
  164. package/modern/hooks/features/columns/gridColumnsUtils.js +2 -1
  165. package/modern/hooks/features/rows/useGridRowSpanning.js +76 -87
  166. package/modern/index.js +1 -1
  167. package/modern/internals/utils/index.js +0 -1
  168. package/modern/locales/koKR.js +45 -49
  169. package/modern/locales/nlNL.js +5 -6
  170. package/modern/material/index.js +36 -4
  171. package/modern/models/gridBaseSlots.js +1 -0
  172. package/modern/utils/utils.js +6 -1
  173. package/node/DataGrid/DataGrid.js +6 -9
  174. package/node/DataGrid/useDataGridProps.js +2 -2
  175. package/node/components/GridColumnHeaders.js +4 -4
  176. package/node/components/GridFooter.js +4 -4
  177. package/node/components/GridLoadingOverlay.js +10 -8
  178. package/node/components/GridNoResultsOverlay.js +4 -4
  179. package/node/components/GridNoRowsOverlay.js +4 -4
  180. package/node/components/GridPagination.js +5 -3
  181. package/node/components/GridRow.js +15 -3
  182. package/node/components/GridRowCount.js +3 -2
  183. package/node/components/GridSelectedRowCount.js +3 -2
  184. package/node/components/GridSkeletonLoadingOverlay.js +4 -3
  185. package/node/components/cell/GridActionsCellItem.js +6 -7
  186. package/node/components/cell/GridCell.js +3 -2
  187. package/node/components/cell/GridEditInputCell.js +72 -3
  188. package/node/components/cell/GridSkeletonCell.js +1 -2
  189. package/node/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  190. package/node/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  191. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  192. package/node/components/columnHeaders/GridIconButtonContainer.js +5 -3
  193. package/node/components/columnSelection/GridCellCheckboxRenderer.js +5 -3
  194. package/node/components/columnSelection/GridHeaderCheckbox.js +5 -3
  195. package/node/components/containers/GridFooterContainer.js +5 -3
  196. package/node/components/containers/GridOverlay.js +5 -3
  197. package/node/components/containers/GridRoot.js +5 -3
  198. package/node/components/containers/GridToolbarContainer.js +3 -2
  199. package/node/components/menu/columnMenu/GridColumnMenu.js +5 -5
  200. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  201. package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +5 -10
  202. package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +5 -10
  203. package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +5 -10
  204. package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  205. package/node/components/panel/GridPanel.js +3 -2
  206. package/node/components/panel/GridPanelWrapper.js +5 -3
  207. package/node/components/panel/filterPanel/GridFilterForm.js +3 -2
  208. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +10 -11
  209. package/node/components/panel/filterPanel/GridFilterInputValue.js +17 -10
  210. package/node/components/panel/filterPanel/GridFilterPanel.js +4 -4
  211. package/node/components/panel/filterPanel/index.js +7 -11
  212. package/node/components/toolbar/GridToolbar.js +4 -4
  213. package/node/components/toolbar/GridToolbarColumnsButton.js +3 -2
  214. package/node/components/toolbar/GridToolbarDensitySelector.js +6 -7
  215. package/node/components/toolbar/GridToolbarExport.js +2 -1
  216. package/node/components/toolbar/GridToolbarExportContainer.js +3 -2
  217. package/node/components/toolbar/GridToolbarFilterButton.js +6 -2
  218. package/node/components/toolbar/GridToolbarQuickFilter.js +27 -23
  219. package/node/components/virtualization/GridMainContainer.js +4 -3
  220. package/node/components/virtualization/GridVirtualScrollbar.js +2 -1
  221. package/node/components/virtualization/GridVirtualScrollerContent.js +5 -5
  222. package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  223. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +10 -3
  224. package/node/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  225. package/node/hooks/features/columnResize/useGridColumnResize.js +9 -4
  226. package/node/hooks/features/columns/gridColumnsUtils.js +2 -1
  227. package/node/hooks/features/rows/useGridRowSpanning.js +74 -85
  228. package/node/index.js +1 -1
  229. package/node/internals/utils/index.js +0 -11
  230. package/node/locales/koKR.js +45 -49
  231. package/node/locales/nlNL.js +5 -6
  232. package/node/material/index.js +37 -4
  233. package/node/models/gridBaseSlots.js +5 -0
  234. package/node/utils/utils.js +8 -1
  235. package/package.json +2 -2
  236. package/utils/utils.d.ts +1 -0
  237. package/utils/utils.js +6 -1
  238. package/internals/utils/useProps.d.ts +0 -1
  239. package/internals/utils/useProps.js +0 -24
  240. package/joy/icons.d.ts +0 -32
  241. package/joy/icons.js +0 -431
  242. package/joy/index.d.ts +0 -2
  243. package/joy/index.js +0 -2
  244. package/joy/joySlots.d.ts +0 -3
  245. package/joy/joySlots.js +0 -389
  246. package/joy/package.json +0 -6
  247. package/modern/internals/utils/useProps.js +0 -24
  248. package/modern/joy/icons.js +0 -431
  249. package/modern/joy/index.js +0 -2
  250. package/modern/joy/joySlots.js +0 -389
  251. package/node/internals/utils/useProps.js +0 -30
  252. package/node/joy/icons.js +0 -439
  253. package/node/joy/index.js +0 -13
  254. package/node/joy/joySlots.js +0 -397
package/node/joy/icons.js DELETED
@@ -1,439 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- 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;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
- var React = _interopRequireWildcard(require("react"));
12
- var _SvgIcon = _interopRequireDefault(require("@mui/joy/SvgIcon"));
13
- var _useGridRootProps = require("../hooks/utils/useGridRootProps");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- const _excluded = ["sx", "fontSize"],
16
- _excluded2 = ["sortingOrder"];
17
- /**
18
- * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT).
19
- * All other copyright (c) for Lucide are held by Lucide Contributors 2022.
20
- *
21
- * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
22
- * provided that the above copyright notice and this permission notice appear in all copies.
23
- *
24
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
25
- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
26
- * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
27
- * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
28
- * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29
- */
30
- function createSvgIcon(path, displayName) {
31
- const fontSizeMap = {
32
- small: 'lg',
33
- medium: 'xl',
34
- large: 'xl2',
35
- inherit: undefined
36
- };
37
- // @ts-ignore internal component
38
- function Component(_ref, ref) {
39
- let {
40
- sx,
41
- fontSize
42
- } = _ref,
43
- props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
44
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SvgIcon.default, (0, _extends2.default)({
45
- ref: ref,
46
- fill: "none",
47
- stroke: "currentColor",
48
- strokeWidth: "2",
49
- strokeLinecap: "round",
50
- strokeLinejoin: "round",
51
- sx: [{
52
- fill: 'none'
53
- }, ...(Array.isArray(sx) ? sx : [sx])],
54
- fontSize: fontSize ? fontSizeMap[fontSize] : undefined
55
- }, props, {
56
- children: path
57
- }));
58
- }
59
- if (process.env.NODE_ENV !== 'production') {
60
- // Need to set `displayName` on the inner component for React.memo.
61
- // React prior to 16.14 ignores `displayName` on the wrapper.
62
- Component.displayName = `${displayName}Icon`;
63
- }
64
-
65
- // @ts-ignore internal component
66
- Component.muiName = _SvgIcon.default.muiName;
67
-
68
- // @ts-ignore internal component
69
- return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
70
- }
71
- const GridArrowUpwardIcon = exports.GridArrowUpwardIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
72
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
73
- x1: "12",
74
- x2: "12",
75
- y1: "19",
76
- y2: "5"
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
78
- points: "5 12 12 5 19 12"
79
- })]
80
- }), 'ArrowUpward');
81
- const GridArrowDownwardIcon = exports.GridArrowDownwardIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
82
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
83
- x1: "12",
84
- x2: "12",
85
- y1: "5",
86
- y2: "19"
87
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
88
- points: "19 12 12 19 5 12"
89
- })]
90
- }), 'ArrowDownward');
91
- const GridKeyboardArrowLeft = exports.GridKeyboardArrowLeft = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
92
- points: "15 18 9 12 15 6"
93
- }), 'KeyboardArrowLeft');
94
- const GridKeyboardArrowRight = exports.GridKeyboardArrowRight = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
95
- points: "9 18 15 12 9 6"
96
- }), 'KeyboardArrowRight');
97
- const GridExpandMoreIcon = exports.GridExpandMoreIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
98
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
99
- d: "m7 15 5 5 5-5"
100
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
101
- d: "m7 9 5-5 5 5"
102
- })]
103
- }), 'ExpandMore');
104
- const GridFilterListIcon = exports.GridFilterListIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("polygon", {
105
- points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"
106
- }), 'FilterList');
107
- const GridFilterAltIcon = exports.GridFilterAltIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
108
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
109
- d: "M3 6h18"
110
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
111
- d: "M7 12h10"
112
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
113
- d: "M10 18h4"
114
- })]
115
- }), 'FilterAlt');
116
- const GridSearchIcon = exports.GridSearchIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
117
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
118
- cx: "11",
119
- cy: "11",
120
- r: "8"
121
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
122
- x1: "21",
123
- x2: "16.65",
124
- y1: "21",
125
- y2: "16.65"
126
- })]
127
- }), 'Search');
128
- const GridMenuIcon = exports.GridMenuIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
129
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
130
- width: "18",
131
- height: "18",
132
- x: "3",
133
- y: "3",
134
- rx: "2"
135
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
136
- d: "M7 8h10"
137
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
138
- d: "M7 12h10"
139
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
140
- d: "M7 16h10"
141
- })]
142
- }), 'Menu');
143
- const GridCheckCircleIcon = exports.GridCheckCircleIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
144
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
145
- d: "M22 11.08V12a10 10 0 1 1-5.93-9.14"
146
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
147
- points: "22 4 12 14.01 9 11.01"
148
- })]
149
- }), 'CheckCircle');
150
- const GridColumnIcon = exports.GridColumnIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
151
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
152
- width: "18",
153
- height: "18",
154
- x: "3",
155
- y: "3",
156
- rx: "2",
157
- ry: "2"
158
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
159
- x1: "12",
160
- x2: "12",
161
- y1: "3",
162
- y2: "21"
163
- })]
164
- }), 'ColumnIcon');
165
- const GridSeparatorIcon = exports.GridSeparatorIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
166
- d: "M11 19V5h2v14z"
167
- }), 'Separator');
168
- const GridViewHeadlineIcon = exports.GridViewHeadlineIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
169
- fill: "none",
170
- stroke: "currentColor",
171
- strokeWidth: "1.5",
172
- 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"
173
- }), 'ViewHeadline');
174
- const GridTableRowsIcon = exports.GridTableRowsIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
175
- fill: "currentColor",
176
- strokeWidth: "0",
177
- 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"
178
- }), 'TableRows');
179
- const GridViewStreamIcon = exports.GridViewStreamIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
180
- 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"
181
- }), 'ViewStream');
182
- const GridTripleDotsVerticalIcon = exports.GridTripleDotsVerticalIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
183
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
184
- cx: "12",
185
- cy: "12",
186
- r: "1"
187
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
188
- cx: "12",
189
- cy: "5",
190
- r: "1"
191
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
192
- cx: "12",
193
- cy: "19",
194
- r: "1"
195
- })]
196
- }), 'TripleDotsVertical');
197
- const GridCloseIcon = exports.GridCloseIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
198
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
199
- cx: "12",
200
- cy: "12",
201
- r: "10"
202
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
203
- x1: "15",
204
- x2: "9",
205
- y1: "9",
206
- y2: "15"
207
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
208
- x1: "9",
209
- x2: "15",
210
- y1: "9",
211
- y2: "15"
212
- })]
213
- }), 'Close');
214
- const GridAddIcon = exports.GridAddIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
215
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
216
- cx: "12",
217
- cy: "12",
218
- r: "10"
219
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
220
- x1: "12",
221
- x2: "12",
222
- y1: "8",
223
- y2: "16"
224
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
225
- x1: "8",
226
- x2: "16",
227
- y1: "12",
228
- y2: "12"
229
- })]
230
- }), 'Add');
231
- const GridRemoveIcon = exports.GridRemoveIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
232
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
233
- cx: "12",
234
- cy: "12",
235
- r: "10"
236
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
237
- x1: "15",
238
- x2: "9",
239
- y1: "9",
240
- y2: "15"
241
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
242
- x1: "9",
243
- x2: "15",
244
- y1: "9",
245
- y2: "15"
246
- })]
247
- }), 'Remove');
248
- const GridLoadIcon = exports.GridLoadIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
249
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
250
- d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
251
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
252
- points: "7 10 12 15 17 10"
253
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
254
- x1: "12",
255
- x2: "12",
256
- y1: "15",
257
- y2: "3"
258
- })]
259
- }), 'Load');
260
- const GridDragIcon = exports.GridDragIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
261
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
262
- cx: "9",
263
- cy: "12",
264
- r: "1"
265
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
266
- cx: "9",
267
- cy: "5",
268
- r: "1"
269
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
270
- cx: "9",
271
- cy: "19",
272
- r: "1"
273
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
274
- cx: "15",
275
- cy: "12",
276
- r: "1"
277
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
278
- cx: "15",
279
- cy: "5",
280
- r: "1"
281
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
282
- cx: "15",
283
- cy: "19",
284
- r: "1"
285
- })]
286
- }), 'Drag');
287
- const GridSaveAltIcon = exports.GridSaveAltIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
288
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
289
- 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"
290
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
291
- points: "14 2 14 8 20 8"
292
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
293
- d: "M12 12v6"
294
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
295
- d: "m15 15-3-3-3 3"
296
- })]
297
- }), 'SaveAlt');
298
- const GridCheckIcon = exports.GridCheckIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsx)("polyline", {
299
- points: "20 6 9 17 4 12"
300
- }), 'Check');
301
- const GridMoreVertIcon = exports.GridMoreVertIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
302
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
303
- cx: "12",
304
- cy: "12",
305
- r: "1"
306
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
307
- cx: "12",
308
- cy: "5",
309
- r: "1"
310
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
311
- cx: "12",
312
- cy: "19",
313
- r: "1"
314
- })]
315
- }), 'MoreVert');
316
- const GridVisibilityOffIcon = exports.GridVisibilityOffIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
317
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
318
- d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
319
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
320
- 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"
321
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
322
- 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"
323
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
324
- x1: "2",
325
- x2: "22",
326
- y1: "2",
327
- y2: "22"
328
- })]
329
- }), 'VisibilityOff');
330
- const GridViewColumnIcon = exports.GridViewColumnIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
331
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
332
- width: "6",
333
- height: "20",
334
- x: "4",
335
- y: "2",
336
- rx: "2"
337
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
338
- width: "6",
339
- height: "20",
340
- x: "14",
341
- y: "2",
342
- rx: "2"
343
- })]
344
- }), 'ViewColumn');
345
- const GridClearIcon = exports.GridClearIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
346
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
347
- 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"
348
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
349
- d: "M22 21H7"
350
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
351
- d: "m5 11 9 9"
352
- })]
353
- }), 'Clear');
354
- const GridDeleteIcon = exports.GridDeleteIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
355
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
356
- d: "M3 6h18"
357
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
358
- d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"
359
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
360
- d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"
361
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
362
- x1: "10",
363
- x2: "10",
364
- y1: "11",
365
- y2: "17"
366
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
367
- x1: "14",
368
- x2: "14",
369
- y1: "11",
370
- y2: "17"
371
- })]
372
- }), 'Delete');
373
- const GridDeleteForeverIcon = exports.GridDeleteForeverIcon = createSvgIcon(/*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
374
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
375
- d: "M3 6h18"
376
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
377
- d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"
378
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
379
- d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"
380
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
381
- x1: "10",
382
- x2: "10",
383
- y1: "11",
384
- y2: "17"
385
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
386
- x1: "14",
387
- x2: "14",
388
- y1: "11",
389
- y2: "17"
390
- })]
391
- }), 'Delete');
392
- const GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeaderSortIcon(props) {
393
- const {
394
- sortingOrder
395
- } = props,
396
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
397
- const rootProps = (0, _useGridRootProps.useGridRootProps)();
398
- const [nextSortDirection] = sortingOrder;
399
- const Icon = nextSortDirection === 'asc' ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
400
- return Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({}, other)) : null;
401
- });
402
- const joyIconSlots = {
403
- booleanCellTrueIcon: GridCheckIcon,
404
- booleanCellFalseIcon: GridCloseIcon,
405
- columnMenuIcon: GridTripleDotsVerticalIcon,
406
- openFilterButtonIcon: GridFilterListIcon,
407
- filterPanelDeleteIcon: GridCloseIcon,
408
- columnFilteredIcon: GridFilterAltIcon,
409
- columnSelectorIcon: GridColumnIcon,
410
- columnUnsortedIcon: GridColumnUnsortedIcon,
411
- columnSortedAscendingIcon: GridArrowUpwardIcon,
412
- columnSortedDescendingIcon: GridArrowDownwardIcon,
413
- columnResizeIcon: GridSeparatorIcon,
414
- densityCompactIcon: GridViewHeadlineIcon,
415
- densityStandardIcon: GridTableRowsIcon,
416
- densityComfortableIcon: GridViewStreamIcon,
417
- exportIcon: GridSaveAltIcon,
418
- moreActionsIcon: GridMoreVertIcon,
419
- treeDataCollapseIcon: GridExpandMoreIcon,
420
- treeDataExpandIcon: GridKeyboardArrowRight,
421
- groupingCriteriaCollapseIcon: GridExpandMoreIcon,
422
- groupingCriteriaExpandIcon: GridKeyboardArrowRight,
423
- detailPanelExpandIcon: GridAddIcon,
424
- detailPanelCollapseIcon: GridRemoveIcon,
425
- rowReorderIcon: GridDragIcon,
426
- quickFilterIcon: GridSearchIcon,
427
- quickFilterClearIcon: GridCloseIcon,
428
- columnMenuHideIcon: GridVisibilityOffIcon,
429
- columnMenuSortAscendingIcon: GridArrowUpwardIcon,
430
- columnMenuSortDescendingIcon: GridArrowDownwardIcon,
431
- columnMenuFilterIcon: GridFilterAltIcon,
432
- columnMenuManageColumnsIcon: GridViewColumnIcon,
433
- columnMenuClearIcon: GridClearIcon,
434
- loadIcon: GridLoadIcon,
435
- filterPanelAddIcon: GridAddIcon,
436
- filterPanelRemoveAllIcon: GridDeleteForeverIcon,
437
- columnReorderIcon: GridDragIcon
438
- };
439
- var _default = exports.default = joyIconSlots;
package/node/joy/index.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "unstable_joySlots", {
8
- enumerable: true,
9
- get: function () {
10
- return _joySlots.default;
11
- }
12
- });
13
- var _joySlots = _interopRequireDefault(require("./joySlots"));