UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

65 lines (64 loc) 4.97 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * @hidden */ export const ColumnMenuErrorMessages = { autoSizeColumn: `The auto size column does not work with enabled virtual columns. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-autosize-column-item.`, autoSizeAllColumns: `The auto size all columns does not work with enabled virtual columns. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-autosize-all-columns-item.`, serviceInput: `The service input of the predefined column menu components is mandatory. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-customizing-the-content.` }; /** * @hidden */ export const ClipboardErrorMessages = { activeCellNavigable: `Grid must be navigable to use "activeCell" as clipboard target type. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/clipboard/#toc-active-cell.`, selectionSelectable: `Grid must be selectable to use "selection" as clipboard target type. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/clipboard/#toc-current-selection.` }; /** * @hidden */ export const ColumnConfigurationErrorMessages = { fieldName: (field) => `Grid column field name '${field}' does not look like a valid JavaScript identifier. Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit. Please use only valid identifier names to ensure error-free operation.`, width: (value, parsedValue) => `Expected numeric value for column width, but got a string "${value}". Treating as ${parsedValue}px.`, invalidColumn: (column) => `Invalid column ${column}.`, requiredWidth: (columnType) => `${columnType} columns feature requires all columns to have set width. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/${columnType.toLowerCase()}.`, requiredScroll: (columnType) => `${columnType} columns are only supported when scrolling is enabled. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/${columnType.toLowerCase()}/`, groupColumnContent: 'ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.', lockedParent: 'Locked child columns require their parent columns to be locked.', columnNested: 'Columns can be nested only inside ColumnGroupComponent', nestedInside: (nestedColumnNameType, parentColumnType) => `${nestedColumnNameType} cannot be nested inside ${parentColumnType}.`, cellRowspanNonBoundColumns: 'cellRowspan must be a function for non-bound columns.', cellRowspanSpanGroupedColumns: 'cellRowspan is not supported for SpanColumn and GroupColumn.', cellRowspan: `cellRowspan must be a function or boolean.` }; /** * @hidden */ export const GridConfigurationErrorMessages = { functionType: (propName, fn) => `${propName} must be a function, but received ${JSON.stringify(fn)}.`, incompatibleFeatures: (feat1Name, feat2Name) => `'Having both ${feat1Name} and ${feat2Name} is not supported.'`, nonLockedColumnPresent: 'There should be at least one non-locked column. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/locked/#toc-known-limitations', focusNavigable: 'The Grid should be configured as navigable to control focus. See https://www.telerik.com/kendo-angular-ui/components/grid/keyboard-navigation/.', expandCollapseMethods: (expandMethodName, collapseMethodName, directiveName, callbackName) => `The ${expandMethodName} and ${collapseMethodName} methods should not be called when using the ${directiveName} directive or the ${callbackName} callback. These methods are provided only for backwards compatibility with legacy versions.`, requiredEditService: `The default edit service of the editing directives works only when binding to plain array. Please provide an editService. See https://www.telerik.com/kendo-angular-ui/components/grid/editing/editing-directives/#toc-custom-editing-service.`, requiredModule: (exportedType, moduleName, componentSelector) => `Creating ${exportedType} requires including the ${moduleName} and adding the ${componentSelector} component.`, unsupportedMethod: (methodName, suggestedMethodName) => `Using ${methodName} in this context is not supported. Use ${suggestedMethodName} instead.`, unsupportedToolbarConfig: ` Defining both a toolbar template and a ToolBarComponent within the Grid is not supported. Please use either the ToolBarComponent or a custom template.` };