wip:milestone 0 fixes
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped

This commit is contained in:
2026-03-15 12:35:42 +02:00
parent 6708cf28a7
commit cffdf8af86
61266 changed files with 4511646 additions and 1938 deletions

View File

@@ -0,0 +1,2 @@
import { GridSlotsComponent } from '../models';
export declare const DATA_GRID_DEFAULT_SLOTS_COMPONENTS: GridSlotsComponent;

View File

@@ -0,0 +1,29 @@
import _extends from "@babel/runtime/helpers/esm/extends";
import { GridSkeletonCell, GridColumnsPanel, GridFilterPanel, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPanel, GridPreferencesPanel, GridRow, GridColumnHeaderFilterIconButton, GridRowCount } from '../components';
import { GridCellV7 } from '../components/cell/GridCell';
import { GridColumnHeaders } from '../components/GridColumnHeaders';
import { GridColumnMenu } from '../components/menu/columnMenu/GridColumnMenu';
import { GridNoResultsOverlay } from '../components/GridNoResultsOverlay';
import materialSlots from '../material';
// TODO: camelCase these key. It's a private helper now.
// Remove then need to call `uncapitalizeObjectKeys`.
export const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends({}, materialSlots, {
Cell: GridCellV7,
SkeletonCell: GridSkeletonCell,
ColumnHeaderFilterIconButton: GridColumnHeaderFilterIconButton,
ColumnMenu: GridColumnMenu,
ColumnHeaders: GridColumnHeaders,
Footer: GridFooter,
FooterRowCount: GridRowCount,
Toolbar: null,
PreferencesPanel: GridPreferencesPanel,
LoadingOverlay: GridLoadingOverlay,
NoResultsOverlay: GridNoResultsOverlay,
NoRowsOverlay: GridNoRowsOverlay,
Pagination: GridPagination,
FilterPanel: GridFilterPanel,
ColumnsPanel: GridColumnsPanel,
Panel: GridPanel,
Row: GridRow
});

View File

@@ -0,0 +1 @@
export declare const GRID_EXPERIMENTAL_ENABLED = false;

View File

@@ -0,0 +1,19 @@
// A guide to feature toggling (deprecated)
//
// The feature toggle is:
// - independent from the NODE_ENV
// - isn't pruning code in production, as the objective is to eventually ship the code.
// - doesn't allow to cherry-pick which feature to enable
//
// By default, the experimental features are only enabled in:
// - the local environment
// - the pull request previews
//
// Reviewers can force the value with the local storage and the GRID_EXPERIMENTAL_ENABLED key:
// - 'true' => force it to be enabled
// - 'false' => force it to be disabled
//
// Developers (users) are discouraged to enable the experimental feature by setting the GRID_EXPERIMENTAL_ENABLED env.
// Instead, prefer exposing experimental APIs, for instance, a prop or a new `unstable_` module.
export const GRID_EXPERIMENTAL_ENABLED = false;

View File

@@ -0,0 +1,539 @@
export interface GridClasses {
/**
* Styles applied to the root element of the cell with type="actions".
*/
actionsCell: string;
/**
* Styles applied to the root element of the column header when aggregated.
*/
aggregationColumnHeader: string;
/**
* Styles applied to the root element of the header when aggregation if `headerAlign="left"`.
*/
'aggregationColumnHeader--alignLeft': string;
/**
* Styles applied to the root element of the header when aggregation if `headerAlign="center"`.
*/
'aggregationColumnHeader--alignCenter': string;
/**
* Styles applied to the root element of the header when aggregation if `headerAlign="right"`.
*/
'aggregationColumnHeader--alignRight': string;
/**
* Styles applied to the aggregation label in the column header when aggregated.
*/
aggregationColumnHeaderLabel: string;
/**
* Styles applied to the root element if `autoHeight={true}`.
*/
autoHeight: string;
/**
* Styles applied to the root element while it is being autosized.
*/
autosizing: string;
/**
* Styles applied to the icon of the boolean cell.
*/
booleanCell: string;
/**
* Styles applied to the cell element if the cell is editable.
*/
'cell--editable': string;
/**
* Styles applied to the cell element if the cell is in edit mode.
*/
'cell--editing': string;
/**
* Styles applied to the cell element if `align="center"`.
*/
'cell--textCenter': string;
/**
* Styles applied to the cell element if `align="left"`.
*/
'cell--textLeft': string;
/**
* Styles applied to the cell element if `align="right"`.
*/
'cell--textRight': string;
/**
* Styles applied to the cell element if the cell has a custom renderer.
*/
'cell--withRenderer': string;
/**
* Styles applied to the cell element if it is at the top edge of a cell selection range.
*/
'cell--rangeTop': string;
/**
* Styles applied to the cell element if it is at the bottom edge of a cell selection range.
*/
'cell--rangeBottom': string;
/**
* Styles applied to the cell element if it is at the left edge of a cell selection range.
*/
'cell--rangeLeft': string;
/**
* Styles applied to the cell element if it is at the right edge of a cell selection range.
*/
'cell--rangeRight': string;
/**
* Styles applied to the cell element if it is in a cell selection range.
*/
'cell--selectionMode': string;
/**
* Styles applied to the cell element.
*/
cell: string;
/**
* Styles applied to the element that wraps the cell content.
*/
cellContent: string;
/**
* Styles applied to the cell checkbox element.
*/
cellCheckbox: string;
/**
* Styles applied to the skeleton cell element.
*/
cellSkeleton: string;
/**
* Styles applied to the selection checkbox element.
*/
checkboxInput: string;
/**
* Styles applied to the column header if `headerAlign="center"`.
*/
'columnHeader--alignCenter': string;
/**
* Styles applied to the column header if `headerAlign="left"`.
*/
'columnHeader--alignLeft': string;
/**
* Styles applied to the column header if `headerAlign="right"`.
*/
'columnHeader--alignRight': string;
/**
* Styles applied to the floating column header element when it is dragged.
*/
'columnHeader--dragging': string;
/**
* Styles applied to the column header if it is being dragged.
*/
'columnHeader--moving': string;
/**
* Styles applied to the column header if the type of the column is `number`.
*/
'columnHeader--numeric': string;
/**
* Styles applied to the column header if the column is sortable.
*/
'columnHeader--sortable': string;
/**
* Styles applied to the column header if the column is sorted.
*/
'columnHeader--sorted': string;
/**
* Styles applied to the column header if the column has a filter applied to it.
*/
'columnHeader--filtered': string;
/**
* Styles applied to the column header element.
*/
columnHeader: string;
/**
* Styles applied to the column group header element.
*/
columnGroupHeader: string;
/**
* Styles applied to the header checkbox cell element.
*/
columnHeaderCheckbox: string;
/**
* Styles applied to the column header's draggable container element.
*/
columnHeaderDraggableContainer: string;
/**
* Styles applied to the row's draggable placeholder element inside the special row reorder cell.
*/
rowReorderCellPlaceholder: string;
/**
* Styles applied to the column headers wrapper if a column is being dragged.
*/
columnHeaderDropZone: string;
/**
* Styles applied to the column header's title element;
*/
columnHeaderTitle: string;
/**
* Styles applied to the column header's title container element.
*/
columnHeaderTitleContainer: string;
/**
* Styles applied to the column header's title excepted buttons.
*/
columnHeaderTitleContainerContent: string;
/**
* Styles applied to the column group header cell if not empty.
*/
'columnHeader--filledGroup': string;
/**
* Styles applied to the empty column group header cell.
*/
'columnHeader--emptyGroup': string;
/**
* Styles applied to the column group header cell when show column border.
*/
'columnHeader--showColumnBorder': string;
/**
* Styles applied to the column headers.
*/
columnHeaders: string;
/**
* Styles applied to the column headers's inner element.
*/
columnHeadersInner: string;
/**
* Styles applied to the column headers's inner element if there is a horizontal scrollbar.
*/
'columnHeadersInner--scrollable': string;
/**
* Styles applied to the column header separator if the column is resizable.
*/
'columnSeparator--resizable': string;
/**
* Styles applied to the column header separator if the column is being resized.
*/
'columnSeparator--resizing': string;
/**
* Styles applied to the column header separator if the side is "left".
*/
'columnSeparator--sideLeft': string;
/**
* Styles applied to the column header separator if the side is "right".
*/
'columnSeparator--sideRight': string;
/**
* Styles applied to the column header separator element.
*/
columnSeparator: string;
/**
* Styles applied to the columns panel element.
*/
columnsPanel: string;
/**
* Styles applied to the columns panel row element.
*/
columnsPanelRow: string;
/**
* Styles applied to the detail panel element.
*/
detailPanel: string;
/**
* Styles applied to the detail panels wrapper element.
*/
detailPanels: string;
/**
* Styles applied to the detail panel toggle cell element.
*/
detailPanelToggleCell: string;
/**
* Styles applied to the detail panel toggle cell element if expanded.
*/
'detailPanelToggleCell--expanded': string;
/**
* Styles applied to the root element of the cell inside a footer row.
*/
footerCell: string;
/**
* Styles applied to the panel element.
*/
panel: string;
/**
* Styles applied to the panel header element.
*/
panelHeader: string;
/**
* Styles applied to the panel wrapper element.
*/
panelWrapper: string;
/**
* Styles applied to the panel content element.
*/
panelContent: string;
/**
* Styles applied to the panel footer element.
*/
panelFooter: string;
/**
* Styles applied to the paper element.
*/
paper: string;
/**
* Styles applied to root of the boolean edit component.
*/
editBooleanCell: string;
/**
* Styles applied to the root of the filter form component.
*/
filterForm: string;
/**
* Styles applied to the delete icon of the filter form component.
*/
filterFormDeleteIcon: string;
/**
* Styles applied to the link operator input of the filter form component.
*/
filterFormLogicOperatorInput: string;
/**
* Styles applied to the column input of the filter form component.
*/
filterFormColumnInput: string;
/**
* Styles applied to the operator input of the filter form component.
*/
filterFormOperatorInput: string;
/**
* Styles applied to the value input of the filter form component.
*/
filterFormValueInput: string;
/**
* Styles applied to the root of the input component.
*/
editInputCell: string;
/**
* Styles applied to the filter icon element.
*/
filterIcon: string;
/**
* Styles applied to the footer container element.
*/
footerContainer: string;
/**
* Styles applied to the column header icon's container.
*/
iconButtonContainer: string;
/**
* Styles applied to the column header separator icon element.
*/
iconSeparator: string;
/**
* Styles applied to the column header filter row.
*/
headerFilterRow: string;
/**
* Styles applied to the main container element.
*/
main: string;
/**
* Styles applied to the menu element.
*/
menu: string;
/**
* Styles applied to the menu icon element.
*/
menuIcon: string;
/**
* Styles applied to the menu icon button element.
*/
menuIconButton: string;
/**
* Styles applied to the menu icon element if the menu is open.
*/
menuOpen: string;
/**
* Styles applied to the menu list element.
*/
menuList: string;
/**
* Styles applied to the overlay wrapper element.
*/
overlayWrapper: string;
/**
* Styles applied to the overlay wrapper inner element.
*/
overlayWrapperInner: string;
/**
* Styles applied to the overlay element.
*/
overlay: string;
/**
* Styles applied to the virtualization container.
*/
virtualScroller: string;
/**
* Styles applied to the virtualization content.
*/
virtualScrollerContent: string;
/**
* Styles applied to the virtualization content when its height is bigger than the virtualization container.
*/
'virtualScrollerContent--overflowed': string;
/**
* Styles applied to the virtualization render zone.
*/
virtualScrollerRenderZone: string;
/**
* Styles applied to the pinned columns.
*/
pinnedColumns: string;
/**
* Styles applied to the left pinned columns.
*/
'pinnedColumns--left': string;
/**
* Styles applied to the right pinned columns.
*/
'pinnedColumns--right': string;
/**
* Styles applied to the pinned column headers.
*/
pinnedColumnHeaders: string;
/**
* Styles applied to the left pinned column headers.
*/
'pinnedColumnHeaders--left': string;
/**
* Styles applied to the right pinned column headers.
*/
'pinnedColumnHeaders--right': string;
/**
* Styles applied to the root element.
*/
root: string;
/**
* Styles applied to the root element if density is "standard" (default).
*/
'root--densityStandard': string;
/**
* Styles applied to the root element if density is "comfortable".
*/
'root--densityComfortable': string;
/**
* Styles applied to the root element if density is "compact".
*/
'root--densityCompact': string;
/**
* Styles applied to the root element when user selection is disabled.
*/
'root--disableUserSelection': string;
/**
* Styles applied to the row element if the row is editable.
*/
'row--editable': string;
/**
* Styles applied to the row element if the row is in edit mode.
*/
'row--editing': string;
/**
* Styles applied to the floating special row reorder cell element when it is dragged.
*/
'row--dragging': string;
/**
* Styles applied to the last visible row element on every page of the grid.
*/
'row--lastVisible': string;
/**
* Styles applied to the row if it has dynamic row height.
*/
'row--dynamicHeight': string;
/**
* Styles applied to the row if its detail panel is open.
*/
'row--detailPanelExpanded': string;
/**
* Styles applied to the row element.
*/
row: string;
/**
* Styles applied to the footer row count element to show the total number of rows.
* Only works when pagination is disabled.
*/
rowCount: string;
/**
* Styles applied to the row reorder cell container element.
*/
rowReorderCellContainer: string;
/**
* Styles applied to the root element of the row reorder cell
*/
rowReorderCell: string;
/**
* Styles applied to the root element of the row reorder cell when dragging is allowed
*/
'rowReorderCell--draggable': string;
/**
* Styles applied to both scroll area elements.
*/
scrollArea: string;
/**
* Styles applied to the left scroll area element.
*/
'scrollArea--left': string;
/**
* Styles applied to the right scroll area element.
*/
'scrollArea--right': string;
/**
* Styles applied to the footer selected row count element.
*/
selectedRowCount: string;
/**
* Styles applied to the sort icon element.
*/
sortIcon: string;
/**
* Styles applied to the toolbar container element.
*/
toolbarContainer: string;
/**
* Styles applied to the toolbar filter list element.
*/
toolbarFilterList: string;
/**
* Styles applied to cells, column header and other elements that have border.
* Sets border color only.
*/
withBorderColor: string;
/**
* Styles applied the cell if `showColumnVerticalBorder={true}`.
*/
'cell--withRightBorder': string;
/**
* Styles applied the column header if `showColumnVerticalBorder={true}`.
*/
'columnHeader--withRightBorder': string;
/**
* Styles applied to the root of the grouping column of the tree data.
*/
treeDataGroupingCell: string;
/**
* Styles applied to the toggle of the grouping cell of the tree data.
*/
treeDataGroupingCellToggle: string;
/**
* Styles applied to the root element of the grouping criteria cell
*/
groupingCriteriaCell: string;
/**
* Styles applied to the toggle of the grouping criteria cell
*/
groupingCriteriaCellToggle: string;
/**
* Styles applied to the pinned rows container.
*/
pinnedRows: string;
/**
* Styles applied to the top pinned rows container.
*/
'pinnedRows--top': string;
/**
* Styles applied to the bottom pinned rows container.
*/
'pinnedRows--bottom': string;
/**
* Styles applied to pinned rows render zones.
*/
pinnedRowsRenderZone: string;
}
export type GridClassKey = keyof GridClasses;
export declare function getDataGridUtilityClass(slot: string): string;
export declare const gridClasses: Record<keyof GridClasses, string>;

View File

@@ -0,0 +1,5 @@
import { unstable_generateUtilityClasses as generateUtilityClasses, unstable_generateUtilityClass as generateUtilityClass } from '@mui/utils';
export function getDataGridUtilityClass(slot) {
return generateUtilityClass('MuiDataGrid', slot);
}
export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--withRenderer', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--selectionMode', 'cell', 'cellContent', 'cellCheckbox', 'cellSkeleton', 'checkboxInput', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderDropZone', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnGroupHeader', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeader--showColumnBorder', 'columnHeaders', 'columnHeadersInner', 'columnHeadersInner--scrollable', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsPanel', 'columnsPanelRow', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'row', 'row--editable', 'row--editing', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'pinnedColumns--left', 'pinnedColumns--right', 'pinnedColumnHeaders', 'pinnedColumnHeaders--left', 'pinnedColumnHeaders--right', 'withBorderColor', 'cell--withRightBorder', 'columnHeader--withRightBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);

View File

@@ -0,0 +1 @@
export declare const GRID_DETAIL_PANEL_TOGGLE_FIELD = "__detail_panel_toggle__";

View File

@@ -0,0 +1,2 @@
// Can't import from pro package - hence duplication
export const GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';

View File

@@ -0,0 +1,3 @@
export * from './envConstants';
export * from './localeTextConstants';
export * from './gridClasses';

View File

@@ -0,0 +1,3 @@
export * from './envConstants';
export * from './localeTextConstants';
export * from './gridClasses';

View File

@@ -0,0 +1,2 @@
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
export declare const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText;

View File

@@ -0,0 +1,148 @@
export const GRID_DEFAULT_LOCALE_TEXT = {
// Root
noRowsLabel: 'No rows',
noResultsOverlayLabel: 'No results found.',
// Density selector toolbar button text
toolbarDensity: 'Density',
toolbarDensityLabel: 'Density',
toolbarDensityCompact: 'Compact',
toolbarDensityStandard: 'Standard',
toolbarDensityComfortable: 'Comfortable',
// Columns selector toolbar button text
toolbarColumns: 'Columns',
toolbarColumnsLabel: 'Select columns',
// Filters toolbar button text
toolbarFilters: 'Filters',
toolbarFiltersLabel: 'Show filters',
toolbarFiltersTooltipHide: 'Hide filters',
toolbarFiltersTooltipShow: 'Show filters',
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} active filters` : `${count} active filter`,
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: 'Search…',
toolbarQuickFilterLabel: 'Search',
toolbarQuickFilterDeleteIconLabel: 'Clear',
// Export selector toolbar button text
toolbarExport: 'Export',
toolbarExportLabel: 'Export',
toolbarExportCSV: 'Download as CSV',
toolbarExportPrint: 'Print',
toolbarExportExcel: 'Download as Excel',
// Columns panel text
columnsPanelTextFieldLabel: 'Find column',
columnsPanelTextFieldPlaceholder: 'Column title',
columnsPanelDragIconLabel: 'Reorder column',
columnsPanelShowAllButton: 'Show all',
columnsPanelHideAllButton: 'Hide all',
// Filter panel text
filterPanelAddFilter: 'Add filter',
filterPanelRemoveAll: 'Remove all',
filterPanelDeleteIconLabel: 'Delete',
filterPanelLogicOperator: 'Logic operator',
filterPanelOperator: 'Operator',
filterPanelOperatorAnd: 'And',
filterPanelOperatorOr: 'Or',
filterPanelColumns: 'Columns',
filterPanelInputLabel: 'Value',
filterPanelInputPlaceholder: 'Filter value',
// Filter operators text
filterOperatorContains: 'contains',
filterOperatorEquals: 'equals',
filterOperatorStartsWith: 'starts with',
filterOperatorEndsWith: 'ends with',
filterOperatorIs: 'is',
filterOperatorNot: 'is not',
filterOperatorAfter: 'is after',
filterOperatorOnOrAfter: 'is on or after',
filterOperatorBefore: 'is before',
filterOperatorOnOrBefore: 'is on or before',
filterOperatorIsEmpty: 'is empty',
filterOperatorIsNotEmpty: 'is not empty',
filterOperatorIsAnyOf: 'is any of',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'Contains',
headerFilterOperatorEquals: 'Equals',
headerFilterOperatorStartsWith: 'Starts with',
headerFilterOperatorEndsWith: 'Ends with',
headerFilterOperatorIs: 'Is',
headerFilterOperatorNot: 'Is not',
headerFilterOperatorAfter: 'Is after',
headerFilterOperatorOnOrAfter: 'Is on or after',
headerFilterOperatorBefore: 'Is before',
headerFilterOperatorOnOrBefore: 'Is on or before',
headerFilterOperatorIsEmpty: 'Is empty',
headerFilterOperatorIsNotEmpty: 'Is not empty',
headerFilterOperatorIsAnyOf: 'Is any of',
'headerFilterOperator=': 'Equals',
'headerFilterOperator!=': 'Not equals',
'headerFilterOperator>': 'Greater than',
'headerFilterOperator>=': 'Greater than or equal to',
'headerFilterOperator<': 'Less than',
'headerFilterOperator<=': 'Less than or equal to',
// Filter values text
filterValueAny: 'any',
filterValueTrue: 'true',
filterValueFalse: 'false',
// Column menu text
columnMenuLabel: 'Menu',
columnMenuShowColumns: 'Show columns',
columnMenuManageColumns: 'Manage columns',
columnMenuFilter: 'Filter',
columnMenuHideColumn: 'Hide column',
columnMenuUnsort: 'Unsort',
columnMenuSortAsc: 'Sort by ASC',
columnMenuSortDesc: 'Sort by DESC',
// Column header text
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} active filters` : `${count} active filter`,
columnHeaderFiltersLabel: 'Show filters',
columnHeaderSortIconLabel: 'Sort',
// Rows selected footer text
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} rows selected` : `${count.toLocaleString()} row selected`,
// Total row amount footer text
footerTotalRows: 'Total Rows:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
// Checkbox selection text
checkboxSelectionHeaderName: 'Checkbox selection',
checkboxSelectionSelectAllRows: 'Select all rows',
checkboxSelectionUnselectAllRows: 'Unselect all rows',
checkboxSelectionSelectRow: 'Select row',
checkboxSelectionUnselectRow: 'Unselect row',
// Boolean cell text
booleanCellTrueLabel: 'yes',
booleanCellFalseLabel: 'no',
// Actions cell more text
actionsCellMore: 'more',
// Column pinning text
pinToLeft: 'Pin to left',
pinToRight: 'Pin to right',
unpin: 'Unpin',
// Tree Data
treeDataGroupingHeaderName: 'Group',
treeDataExpand: 'see children',
treeDataCollapse: 'hide children',
// Grouping columns
groupingColumnHeaderName: 'Group',
groupColumn: name => `Group by ${name}`,
unGroupColumn: name => `Stop grouping by ${name}`,
// Master/detail
detailPanelToggle: 'Detail panel toggle',
expandDetailPanel: 'Expand',
collapseDetailPanel: 'Collapse',
// Used core components translation keys
MuiTablePagination: {},
// Row reordering text
rowReorderingHeaderName: 'Row reordering',
// Aggregation
aggregationMenuItemHeader: 'Aggregation',
aggregationFunctionLabelSum: 'sum',
aggregationFunctionLabelAvg: 'avg',
aggregationFunctionLabelMin: 'min',
aggregationFunctionLabelMax: 'max',
aggregationFunctionLabelSize: 'size'
};

View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/constants/index.js",
"types": "./index.d.ts"
}