@mui/x-data-grid 7.22.3 → 8.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +348 -12
  2. package/README.md +4 -4
  3. package/components/GridLoadingOverlay.d.ts +2 -2
  4. package/components/GridLoadingOverlay.js +4 -4
  5. package/components/GridRow.js +2 -27
  6. package/components/base/GridOverlays.js +5 -2
  7. package/components/cell/GridActionsCell.js +1 -2
  8. package/components/cell/GridActionsCellItem.js +1 -2
  9. package/components/cell/GridCell.js +3 -0
  10. package/components/containers/GridRootStyles.js +1 -0
  11. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -2
  12. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -2
  13. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -2
  14. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +3 -4
  15. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  16. package/components/toolbar/GridToolbarDensitySelector.js +2 -4
  17. package/components/toolbar/GridToolbarExport.js +5 -3
  18. package/components/toolbar/GridToolbarExportContainer.js +1 -2
  19. package/constants/gridClasses.d.ts +20 -0
  20. package/constants/gridClasses.js +1 -1
  21. package/constants/localeTextConstants.js +11 -0
  22. package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
  23. package/hooks/features/columnResize/useGridColumnResize.js +4 -2
  24. package/index.js +1 -1
  25. package/internals/index.d.ts +1 -0
  26. package/internals/index.js +1 -0
  27. package/joy/joySlots.js +7 -2
  28. package/locales/arSD.js +12 -0
  29. package/locales/beBY.js +12 -0
  30. package/locales/bgBG.js +12 -0
  31. package/locales/csCZ.js +12 -0
  32. package/locales/daDK.js +12 -0
  33. package/locales/deDE.js +12 -0
  34. package/locales/elGR.js +12 -0
  35. package/locales/esES.js +12 -0
  36. package/locales/faIR.js +12 -0
  37. package/locales/fiFI.js +12 -0
  38. package/locales/frFR.js +12 -0
  39. package/locales/heIL.js +12 -0
  40. package/locales/hrHR.js +12 -0
  41. package/locales/huHU.js +12 -0
  42. package/locales/isIS.js +12 -0
  43. package/locales/itIT.js +12 -0
  44. package/locales/jaJP.js +12 -0
  45. package/locales/koKR.js +12 -0
  46. package/locales/nbNO.js +12 -0
  47. package/locales/nlNL.js +12 -0
  48. package/locales/nnNO.js +12 -0
  49. package/locales/plPL.js +37 -27
  50. package/locales/ptBR.js +12 -0
  51. package/locales/ptPT.js +12 -0
  52. package/locales/roRO.js +12 -0
  53. package/locales/ruRU.js +12 -0
  54. package/locales/skSK.js +12 -0
  55. package/locales/svSE.js +12 -0
  56. package/locales/trTR.js +12 -0
  57. package/locales/ukUA.js +12 -0
  58. package/locales/urPK.js +12 -0
  59. package/locales/viVN.js +12 -0
  60. package/locales/zhCN.js +12 -0
  61. package/locales/zhHK.js +12 -0
  62. package/locales/zhTW.js +12 -0
  63. package/material/index.js +4 -0
  64. package/models/api/gridLocaleTextApi.d.ts +10 -0
  65. package/models/colDef/gridColDef.d.ts +4 -0
  66. package/models/gridDataSource.d.ts +12 -12
  67. package/models/gridSlotsComponent.d.ts +10 -0
  68. package/models/gridSlotsComponentsProps.d.ts +8 -0
  69. package/modern/components/GridLoadingOverlay.js +4 -4
  70. package/modern/components/GridRow.js +2 -27
  71. package/modern/components/base/GridOverlays.js +5 -2
  72. package/modern/components/cell/GridActionsCell.js +1 -2
  73. package/modern/components/cell/GridActionsCellItem.js +1 -2
  74. package/modern/components/cell/GridCell.js +3 -0
  75. package/modern/components/containers/GridRootStyles.js +1 -0
  76. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -2
  77. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -2
  78. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -2
  79. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +3 -4
  80. package/modern/components/toolbar/GridToolbarColumnsButton.js +1 -1
  81. package/modern/components/toolbar/GridToolbarDensitySelector.js +2 -4
  82. package/modern/components/toolbar/GridToolbarExport.js +5 -3
  83. package/modern/components/toolbar/GridToolbarExportContainer.js +1 -2
  84. package/modern/constants/gridClasses.js +1 -1
  85. package/modern/constants/localeTextConstants.js +11 -0
  86. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
  87. package/modern/hooks/features/columnResize/useGridColumnResize.js +4 -2
  88. package/modern/index.js +1 -1
  89. package/modern/internals/index.js +1 -0
  90. package/modern/joy/joySlots.js +7 -2
  91. package/modern/locales/arSD.js +12 -0
  92. package/modern/locales/beBY.js +12 -0
  93. package/modern/locales/bgBG.js +12 -0
  94. package/modern/locales/csCZ.js +12 -0
  95. package/modern/locales/daDK.js +12 -0
  96. package/modern/locales/deDE.js +12 -0
  97. package/modern/locales/elGR.js +12 -0
  98. package/modern/locales/esES.js +12 -0
  99. package/modern/locales/faIR.js +12 -0
  100. package/modern/locales/fiFI.js +12 -0
  101. package/modern/locales/frFR.js +12 -0
  102. package/modern/locales/heIL.js +12 -0
  103. package/modern/locales/hrHR.js +12 -0
  104. package/modern/locales/huHU.js +12 -0
  105. package/modern/locales/isIS.js +12 -0
  106. package/modern/locales/itIT.js +12 -0
  107. package/modern/locales/jaJP.js +12 -0
  108. package/modern/locales/koKR.js +12 -0
  109. package/modern/locales/nbNO.js +12 -0
  110. package/modern/locales/nlNL.js +12 -0
  111. package/modern/locales/nnNO.js +12 -0
  112. package/modern/locales/plPL.js +37 -27
  113. package/modern/locales/ptBR.js +12 -0
  114. package/modern/locales/ptPT.js +12 -0
  115. package/modern/locales/roRO.js +12 -0
  116. package/modern/locales/ruRU.js +12 -0
  117. package/modern/locales/skSK.js +12 -0
  118. package/modern/locales/svSE.js +12 -0
  119. package/modern/locales/trTR.js +12 -0
  120. package/modern/locales/ukUA.js +12 -0
  121. package/modern/locales/urPK.js +12 -0
  122. package/modern/locales/viVN.js +12 -0
  123. package/modern/locales/zhCN.js +12 -0
  124. package/modern/locales/zhHK.js +12 -0
  125. package/modern/locales/zhTW.js +12 -0
  126. package/modern/material/index.js +4 -0
  127. package/node/components/GridLoadingOverlay.js +4 -4
  128. package/node/components/GridRow.js +2 -27
  129. package/node/components/base/GridOverlays.js +5 -2
  130. package/node/components/cell/GridActionsCell.js +1 -2
  131. package/node/components/cell/GridActionsCellItem.js +1 -2
  132. package/node/components/cell/GridCell.js +3 -0
  133. package/node/components/containers/GridRootStyles.js +1 -0
  134. package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -2
  135. package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -2
  136. package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -2
  137. package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +3 -4
  138. package/node/components/toolbar/GridToolbarColumnsButton.js +3 -3
  139. package/node/components/toolbar/GridToolbarDensitySelector.js +2 -4
  140. package/node/components/toolbar/GridToolbarExport.js +5 -3
  141. package/node/components/toolbar/GridToolbarExportContainer.js +1 -2
  142. package/node/constants/gridClasses.js +1 -1
  143. package/node/constants/localeTextConstants.js +11 -0
  144. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -1
  145. package/node/hooks/features/columnResize/useGridColumnResize.js +4 -2
  146. package/node/index.js +1 -1
  147. package/node/internals/index.js +9 -2
  148. package/node/joy/joySlots.js +7 -2
  149. package/node/locales/arSD.js +12 -0
  150. package/node/locales/beBY.js +12 -0
  151. package/node/locales/bgBG.js +12 -0
  152. package/node/locales/csCZ.js +12 -0
  153. package/node/locales/daDK.js +12 -0
  154. package/node/locales/deDE.js +12 -0
  155. package/node/locales/elGR.js +12 -0
  156. package/node/locales/esES.js +12 -0
  157. package/node/locales/faIR.js +12 -0
  158. package/node/locales/fiFI.js +12 -0
  159. package/node/locales/frFR.js +12 -0
  160. package/node/locales/heIL.js +12 -0
  161. package/node/locales/hrHR.js +12 -0
  162. package/node/locales/huHU.js +12 -0
  163. package/node/locales/isIS.js +12 -0
  164. package/node/locales/itIT.js +12 -0
  165. package/node/locales/jaJP.js +12 -0
  166. package/node/locales/koKR.js +12 -0
  167. package/node/locales/nbNO.js +12 -0
  168. package/node/locales/nlNL.js +12 -0
  169. package/node/locales/nnNO.js +12 -0
  170. package/node/locales/plPL.js +37 -27
  171. package/node/locales/ptBR.js +12 -0
  172. package/node/locales/ptPT.js +12 -0
  173. package/node/locales/roRO.js +12 -0
  174. package/node/locales/ruRU.js +12 -0
  175. package/node/locales/skSK.js +12 -0
  176. package/node/locales/svSE.js +12 -0
  177. package/node/locales/trTR.js +12 -0
  178. package/node/locales/ukUA.js +12 -0
  179. package/node/locales/urPK.js +12 -0
  180. package/node/locales/viVN.js +12 -0
  181. package/node/locales/zhCN.js +12 -0
  182. package/node/locales/zhHK.js +12 -0
  183. package/node/locales/zhTW.js +12 -0
  184. package/node/material/index.js +4 -0
  185. package/package.json +5 -5
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import MenuItem from '@mui/material/MenuItem';
4
3
  import ListItemIcon from '@mui/material/ListItemIcon';
5
4
  import ListItemText from '@mui/material/ListItemText';
6
5
  import { useGridApiContext } from "../../../../hooks/utils/useGridApiContext.js";
@@ -20,7 +19,7 @@ function GridColumnMenuFilterItem(props) {
20
19
  if (rootProps.disableColumnFilter || !colDef.filterable) {
21
20
  return null;
22
21
  }
23
- return /*#__PURE__*/_jsxs(MenuItem, {
22
+ return /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
24
23
  onClick: showFilter,
25
24
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
26
25
  children: /*#__PURE__*/_jsx(rootProps.slots.columnMenuFilterIcon, {
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import MenuItem from '@mui/material/MenuItem';
4
3
  import ListItemIcon from '@mui/material/ListItemIcon';
5
4
  import ListItemText from '@mui/material/ListItemText';
6
5
  import { useGridApiContext } from "../../../../hooks/utils/useGridApiContext.js";
@@ -36,7 +35,7 @@ function GridColumnMenuHideItem(props) {
36
35
  if (colDef.hideable === false) {
37
36
  return null;
38
37
  }
39
- return /*#__PURE__*/_jsxs(MenuItem, {
38
+ return /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
40
39
  onClick: toggleColumn,
41
40
  disabled: disabled,
42
41
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import MenuItem from '@mui/material/MenuItem';
4
3
  import ListItemIcon from '@mui/material/ListItemIcon';
5
4
  import ListItemText from '@mui/material/ListItemText';
6
5
  import { GridPreferencePanelsValue } from "../../../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js";
@@ -20,7 +19,7 @@ function GridColumnMenuManageItem(props) {
20
19
  if (rootProps.disableColumnSelector) {
21
20
  return null;
22
21
  }
23
- return /*#__PURE__*/_jsxs(MenuItem, {
22
+ return /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
24
23
  onClick: showColumns,
25
24
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
26
25
  children: /*#__PURE__*/_jsx(rootProps.slots.columnMenuManageColumnsIcon, {
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import MenuItem from '@mui/material/MenuItem';
4
3
  import ListItemIcon from '@mui/material/ListItemIcon';
5
4
  import ListItemText from '@mui/material/ListItemText';
6
5
  import { useGridSelector } from "../../../../hooks/utils/useGridSelector.js";
@@ -37,7 +36,7 @@ function GridColumnMenuSortItem(props) {
37
36
  return typeof label === 'function' ? label(colDef) : label;
38
37
  };
39
38
  return /*#__PURE__*/_jsxs(React.Fragment, {
40
- children: [sortingOrder.includes('asc') && sortDirection !== 'asc' ? /*#__PURE__*/_jsxs(MenuItem, {
39
+ children: [sortingOrder.includes('asc') && sortDirection !== 'asc' ? /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
41
40
  onClick: onSortMenuItemClick,
42
41
  "data-value": "asc",
43
42
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
@@ -47,7 +46,7 @@ function GridColumnMenuSortItem(props) {
47
46
  }), /*#__PURE__*/_jsx(ListItemText, {
48
47
  children: getLabel('columnMenuSortAsc')
49
48
  })]
50
- }) : null, sortingOrder.includes('desc') && sortDirection !== 'desc' ? /*#__PURE__*/_jsxs(MenuItem, {
49
+ }) : null, sortingOrder.includes('desc') && sortDirection !== 'desc' ? /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
51
50
  onClick: onSortMenuItemClick,
52
51
  "data-value": "desc",
53
52
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
@@ -57,7 +56,7 @@ function GridColumnMenuSortItem(props) {
57
56
  }), /*#__PURE__*/_jsx(ListItemText, {
58
57
  children: getLabel('columnMenuSortDesc')
59
58
  })]
60
- }) : null, sortingOrder.includes(null) && sortDirection != null ? /*#__PURE__*/_jsxs(MenuItem, {
59
+ }) : null, sortingOrder.includes(null) && sortDirection != null ? /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
61
60
  onClick: onSortMenuItemClick,
62
61
  children: [/*#__PURE__*/_jsx(ListItemIcon, {}), /*#__PURE__*/_jsx(ListItemText, {
63
62
  children: apiRef.current.getLocaleText('columnMenuUnsort')
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { unstable_useId as useId } from '@mui/material/utils';
4
+ import useId from '@mui/utils/useId';
5
5
  import { useGridSelector } from "../../hooks/utils/useGridSelector.js";
6
6
  import { gridPreferencePanelStateSelector } from "../../hooks/features/preferencesPanel/gridPreferencePanelSelector.js";
7
7
  import { GridPreferencePanelsValue } from "../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js";
@@ -2,8 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';
5
- import MenuList from '@mui/material/MenuList';
6
- import MenuItem from '@mui/material/MenuItem';
7
5
  import ListItemIcon from '@mui/material/ListItemIcon';
8
6
  import { gridDensitySelector } from "../../hooks/features/density/densitySelector.js";
9
7
  import { isHideMenuKey } from "../../utils/keyboardUtils.js";
@@ -74,7 +72,7 @@ const GridToolbarDensitySelector = /*#__PURE__*/React.forwardRef(function GridTo
74
72
  if (rootProps.disableDensitySelector) {
75
73
  return null;
76
74
  }
77
- const densityElements = densityOptions.map((option, index) => /*#__PURE__*/_jsxs(MenuItem, {
75
+ const densityElements = densityOptions.map((option, index) => /*#__PURE__*/_jsxs(rootProps.slots.baseMenuItem, {
78
76
  onClick: () => handleDensityUpdate(option.value),
79
77
  selected: option.value === density,
80
78
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
@@ -105,7 +103,7 @@ const GridToolbarDensitySelector = /*#__PURE__*/React.forwardRef(function GridTo
105
103
  target: buttonRef.current,
106
104
  onClose: handleDensitySelectorClose,
107
105
  position: "bottom-start",
108
- children: /*#__PURE__*/_jsx(MenuList, {
106
+ children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {
109
107
  id: densityMenuId,
110
108
  className: gridClasses.menuList,
111
109
  "aria-labelledby": densityButtonId,
@@ -5,18 +5,19 @@ const _excluded = ["hideMenu", "options"],
5
5
  _excluded3 = ["csvOptions", "printOptions", "excelOptions"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import MenuItem from '@mui/material/MenuItem';
8
+ import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
9
9
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
10
10
  import { GridToolbarExportContainer } from "./GridToolbarExportContainer.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  function GridCsvExportMenuItem(props) {
13
13
  const apiRef = useGridApiContext();
14
+ const rootProps = useGridRootProps();
14
15
  const {
15
16
  hideMenu,
16
17
  options
17
18
  } = props,
18
19
  other = _objectWithoutPropertiesLoose(props, _excluded);
19
- return /*#__PURE__*/_jsx(MenuItem, _extends({
20
+ return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({
20
21
  onClick: () => {
21
22
  apiRef.current.exportDataAsCsv(options);
22
23
  hideMenu?.();
@@ -47,12 +48,13 @@ process.env.NODE_ENV !== "production" ? GridCsvExportMenuItem.propTypes = {
47
48
  } : void 0;
48
49
  function GridPrintExportMenuItem(props) {
49
50
  const apiRef = useGridApiContext();
51
+ const rootProps = useGridRootProps();
50
52
  const {
51
53
  hideMenu,
52
54
  options
53
55
  } = props,
54
56
  other = _objectWithoutPropertiesLoose(props, _excluded2);
55
- return /*#__PURE__*/_jsx(MenuItem, _extends({
57
+ return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({
56
58
  onClick: () => {
57
59
  apiRef.current.exportDataAsPrint(options);
58
60
  hideMenu?.();
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';
5
- import MenuList from '@mui/material/MenuList';
6
5
  import { isHideMenuKey } from "../../utils/keyboardUtils.js";
7
6
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
8
7
  import { GridMenu } from "../menu/GridMenu.js";
@@ -63,7 +62,7 @@ const GridToolbarExportContainer = /*#__PURE__*/React.forwardRef(function GridTo
63
62
  target: buttonRef.current,
64
63
  onClose: handleMenuClose,
65
64
  position: "bottom-start",
66
- children: /*#__PURE__*/_jsx(MenuList, {
65
+ children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {
67
66
  id: exportMenuId,
68
67
  className: gridClasses.menuList,
69
68
  "aria-labelledby": exportButtonId,
@@ -586,6 +586,26 @@ export interface GridClasses {
586
586
  * Styles applied to the toolbar filter list element.
587
587
  */
588
588
  toolbarFilterList: string;
589
+ /**
590
+ * Styles applied to the toolbar prompt control element.
591
+ */
592
+ toolbarPromptControl: string;
593
+ /**
594
+ * Styles applied to the toolbar prompt control element when recording.
595
+ */
596
+ 'toolbarPromptControl--recording': string;
597
+ /**
598
+ * Styles applied to the toolbar prompt control recording indicator element.
599
+ */
600
+ toolbarPromptControlRecordingIndicator: string;
601
+ /**
602
+ * Styles applied to the toolbar prompt control record button element.
603
+ */
604
+ toolbarPromptControlRecordButton: string;
605
+ /**
606
+ * Styles applied to the toolbar prompt control send button element.
607
+ */
608
+ toolbarPromptControlSendButton: string;
589
609
  /**
590
610
  * Styles applied the grid if `showColumnVerticalBorder={true}`.
591
611
  */
@@ -2,4 +2,4 @@ import { unstable_generateUtilityClasses as generateUtilityClasses, unstable_gen
2
2
  export function getDataGridUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiDataGrid', slot);
4
4
  }
5
- export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
5
+ export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'toolbarPromptControl', 'toolbarPromptControl--recording', 'toolbarPromptControlRecordingIndicator', 'toolbarPromptControlRecordButton', 'toolbarPromptControlSendButton', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
@@ -21,6 +21,17 @@ export const GRID_DEFAULT_LOCALE_TEXT = {
21
21
  toolbarQuickFilterPlaceholder: 'Search…',
22
22
  toolbarQuickFilterLabel: 'Search',
23
23
  toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ // Prompt toolbar field
25
+ toolbarPromptControlPlaceholder: 'Type a prompt…',
26
+ toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
27
+ toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
28
+ toolbarPromptControlLabel: 'Prompt input',
29
+ toolbarPromptControlDeleteIconLabel: 'Clear',
30
+ toolbarPromptControlRecordButtonDefaultLabel: 'Record',
31
+ toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
32
+ toolbarPromptControlSendActionLabel: 'Send',
33
+ toolbarPromptControlSendActionAriaLabel: 'Send prompt',
34
+ toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
24
35
  // Export selector toolbar button text
25
36
  toolbarExport: 'Export',
26
37
  toolbarExportLabel: 'Export',
@@ -283,7 +283,7 @@ export const useGridColumnHeaders = props => {
283
283
  fields: headerInfo.fields,
284
284
  colIndex: headerInfo.colIndex,
285
285
  depth: depth,
286
- isLastColumn: headerInfo.colIndex === visibleColumns.length - headerInfo.fields.length,
286
+ isLastColumn: index === visibleColumnGroupHeader.length - 1,
287
287
  maxDepth: headerGroupingMaxDepth,
288
288
  height: dimensions.groupHeaderHeight,
289
289
  hasFocus: hasFocus,
@@ -193,8 +193,10 @@ export const useGridColumnResize = (apiRef, props) => {
193
193
  const prevWidth = refs.columnHeaderElement.offsetWidth;
194
194
  const widthDiff = newWidth - prevWidth;
195
195
  const columnWidthDiff = newWidth - refs.initialColWidth;
196
- const newTotalWidth = refs.initialTotalWidth + columnWidthDiff;
197
- apiRef.current.rootElementRef?.current?.style.setProperty('--DataGrid-rowWidth', `${newTotalWidth}px`);
196
+ if (columnWidthDiff > 0) {
197
+ const newTotalWidth = refs.initialTotalWidth + columnWidthDiff;
198
+ apiRef.current.rootElementRef?.current?.style.setProperty('--DataGrid-rowWidth', `${newTotalWidth}px`);
199
+ }
198
200
  refs.colDef.computedWidth = newWidth;
199
201
  refs.colDef.width = newWidth;
200
202
  refs.colDef.flex = 0;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v7.22.3
2
+ * @mui/x-data-grid v8.0.0-alpha.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,6 +8,7 @@ export { GridHeaders } from '../components/GridHeaders';
8
8
  export { GridBaseColumnHeaders } from '../components/columnHeaders/GridBaseColumnHeaders';
9
9
  export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from '../constants/defaultGridSlotsComponents';
10
10
  export { getGridFilter } from '../components/panel/filterPanel/GridFilterPanel';
11
+ export { getValueOptions } from '../components/panel/filterPanel/filterPanelUtils';
11
12
  export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
12
13
  export type { GridPipeProcessor } from '../hooks/core/pipeProcessing';
13
14
  export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY, } from '../hooks/core/strategyProcessing';
@@ -5,6 +5,7 @@ export { GridHeaders } from "../components/GridHeaders.js";
5
5
  export { GridBaseColumnHeaders } from "../components/columnHeaders/GridBaseColumnHeaders.js";
6
6
  export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
7
7
  export { getGridFilter } from "../components/panel/filterPanel/GridFilterPanel.js";
8
+ export { getValueOptions } from "../components/panel/filterPanel/filterPanelUtils.js";
8
9
  export { useGridRegisterPipeProcessor } from "../hooks/core/pipeProcessing/index.js";
9
10
  export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from "../hooks/core/strategyProcessing/index.js";
10
11
  export { useGridInitialization } from "../hooks/core/useGridInitialization.js";
package/joy/joySlots.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["slotProps", "variant", "color", "sx"],
3
+ const _excluded = ["slotProps", "variant", "color", "sx", "anchorOrigin"],
4
4
  _excluded2 = ["touchRippleRef", "inputProps", "onChange", "color", "size", "checked", "sx", "value", "inputRef"],
5
5
  _excluded3 = ["onChange", "label", "placeholder", "value", "inputRef", "type", "size", "variant"],
6
6
  _excluded4 = ["startIcon", "color", "endIcon", "size", "sx", "variant"],
@@ -64,10 +64,15 @@ function convertVariant(variant, defaultVariant = 'plain') {
64
64
  const Badge = /*#__PURE__*/React.forwardRef((_ref, ref) => {
65
65
  let {
66
66
  color,
67
- sx
67
+ sx,
68
+ anchorOrigin
68
69
  } = _ref,
69
70
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
70
71
  return /*#__PURE__*/_jsx(JoyBadge, _extends({}, props, {
72
+ anchorOrigin: anchorOrigin?.horizontal && anchorOrigin?.vertical ? anchorOrigin : {
73
+ vertical: 'top',
74
+ horizontal: 'right'
75
+ },
71
76
  color: convertColor(color),
72
77
  variant: "plain",
73
78
  sx: sx,
package/locales/arSD.js CHANGED
@@ -23,6 +23,18 @@ const arSDGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'بحث...',
24
24
  toolbarQuickFilterLabel: 'بحث',
25
25
  toolbarQuickFilterDeleteIconLabel: 'أزال',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'تصدير',
28
40
  toolbarExportLabel: 'تصدير',
package/locales/beBY.js CHANGED
@@ -37,6 +37,18 @@ const beBYGrid = {
37
37
  toolbarQuickFilterPlaceholder: 'Пошук…',
38
38
  toolbarQuickFilterLabel: 'Пошук',
39
39
  toolbarQuickFilterDeleteIconLabel: 'Ачысціць',
40
+ // Prompt toolbar field
41
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
42
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
43
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
44
+ // toolbarPromptControlLabel: 'Prompt input',
45
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
46
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
47
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
48
+ // toolbarPromptControlSendActionLabel: 'Send',
49
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
50
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
51
+
40
52
  // Export selector toolbar button text
41
53
  toolbarExport: 'Экспарт',
42
54
  toolbarExportLabel: 'Экспарт',
package/locales/bgBG.js CHANGED
@@ -23,6 +23,18 @@ const bgBGGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Търси…',
24
24
  toolbarQuickFilterLabel: 'Търсене',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Изчисти',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Изтегли',
28
40
  toolbarExportLabel: 'Изтегли',
package/locales/csCZ.js CHANGED
@@ -31,6 +31,18 @@ const csCZGrid = {
31
31
  toolbarQuickFilterPlaceholder: 'Hledat…',
32
32
  toolbarQuickFilterLabel: 'Hledat',
33
33
  toolbarQuickFilterDeleteIconLabel: 'Vymazat',
34
+ // Prompt toolbar field
35
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
36
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
37
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
38
+ // toolbarPromptControlLabel: 'Prompt input',
39
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
40
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
41
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
42
+ // toolbarPromptControlSendActionLabel: 'Send',
43
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
44
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
45
+
34
46
  // Export selector toolbar button text
35
47
  toolbarExport: 'Export',
36
48
  toolbarExportLabel: 'Export',
package/locales/daDK.js CHANGED
@@ -23,6 +23,18 @@ const daDKGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Søg…',
24
24
  toolbarQuickFilterLabel: 'Søg',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Ryd',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Eksport',
28
40
  toolbarExportLabel: 'Eksporter',
package/locales/deDE.js CHANGED
@@ -23,6 +23,18 @@ const deDEGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Suchen…',
24
24
  toolbarQuickFilterLabel: 'Suchen',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Löschen',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Exportieren',
28
40
  toolbarExportLabel: 'Exportieren',
package/locales/elGR.js CHANGED
@@ -23,6 +23,18 @@ const elGRGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Αναζήτηση…',
24
24
  toolbarQuickFilterLabel: 'Αναζήτηση',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Καθαρισμός',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Εξαγωγή',
28
40
  toolbarExportLabel: 'Εξαγωγή',
package/locales/esES.js CHANGED
@@ -23,6 +23,18 @@ const esESGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Buscar…',
24
24
  toolbarQuickFilterLabel: 'Buscar',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Limpiar',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Exportar',
28
40
  toolbarExportLabel: 'Exportar',
package/locales/faIR.js CHANGED
@@ -23,6 +23,18 @@ const faIRGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'جستجو...',
24
24
  toolbarQuickFilterLabel: 'جستجو',
25
25
  toolbarQuickFilterDeleteIconLabel: 'حذف',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'خروجی',
28
40
  toolbarExportLabel: 'خروجی',
package/locales/fiFI.js CHANGED
@@ -23,6 +23,18 @@ const fiFIGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Hae…',
24
24
  toolbarQuickFilterLabel: 'Hae',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Tyhjennä',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Vie',
28
40
  toolbarExportLabel: 'Vie',
package/locales/frFR.js CHANGED
@@ -23,6 +23,18 @@ const frFRGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Rechercher…',
24
24
  toolbarQuickFilterLabel: 'Recherche',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Supprimer',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Exporter',
28
40
  toolbarExportLabel: 'Exporter',
package/locales/heIL.js CHANGED
@@ -23,6 +23,18 @@ const heILGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'חיפוש…',
24
24
  toolbarQuickFilterLabel: 'חיפוש',
25
25
  toolbarQuickFilterDeleteIconLabel: 'ניקוי',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'ייצוא',
28
40
  toolbarExportLabel: 'ייצוא',
package/locales/hrHR.js CHANGED
@@ -31,6 +31,18 @@ const hrHRGrid = {
31
31
  toolbarQuickFilterPlaceholder: 'Traži…',
32
32
  toolbarQuickFilterLabel: 'traži',
33
33
  toolbarQuickFilterDeleteIconLabel: 'Obriši',
34
+ // Prompt toolbar field
35
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
36
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
37
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
38
+ // toolbarPromptControlLabel: 'Prompt input',
39
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
40
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
41
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
42
+ // toolbarPromptControlSendActionLabel: 'Send',
43
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
44
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
45
+
34
46
  // Export selector toolbar button text
35
47
  toolbarExport: 'Izvoz',
36
48
  toolbarExportLabel: 'Izvoz',
package/locales/huHU.js CHANGED
@@ -23,6 +23,18 @@ const huHUGrid = {
23
23
  toolbarQuickFilterPlaceholder: 'Keresés…',
24
24
  toolbarQuickFilterLabel: 'Keresés',
25
25
  toolbarQuickFilterDeleteIconLabel: 'Törlés',
26
+ // Prompt toolbar field
27
+ // toolbarPromptControlPlaceholder: 'Type a prompt…',
28
+ // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
29
+ // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
30
+ // toolbarPromptControlLabel: 'Prompt input',
31
+ // toolbarPromptControlDeleteIconLabel: 'Clear',
32
+ // toolbarPromptControlRecordButtonDefaultLabel: 'Record',
33
+ // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
34
+ // toolbarPromptControlSendActionLabel: 'Send',
35
+ // toolbarPromptControlSendActionAriaLabel: 'Send prompt',
36
+ // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
37
+
26
38
  // Export selector toolbar button text
27
39
  toolbarExport: 'Exportálás',
28
40
  toolbarExportLabel: 'Exportálás',