/** Core */ import { Generic } from "cmf.core/src/core"; import Cmf from "cmf.lbos"; /** Nested components */ import { DataGridBusinessColumn as EntityQueryListColumn } from '../../components/dataGrid/dataGrid'; import i18n from "./i18n/entityQueryList.default"; export { EntityQueryListColumn }; export { i18n }; /** * Prefix for fake columns */ export declare const REFERENCE_COLUMN_PREFIX: string; /** * Visual text alignemnt */ export declare enum TextAlignment { /** * Left alignment */ Left = 0, /** * Center alignment */ Center = 1, /** * Right alignment */ Right = 2 } /** * Visual display style */ export declare enum FontStyle { Normal = 0, Bold = 1, Italic = 2, Light = 3 } export interface FilterProperty { filter: { EntityType?: string; Name?: string; }; field: Cmf.Foundation.BusinessObjects.QueryObject.Field; /** * Display style for the field */ displayStyle?: Cmf.Foundation.BusinessObjects.QueryObject.FieldDisplayStyle; /** * Conditional display style for the field */ conditionalDisplayStyle?: Cmf.Foundation.BusinessObjects.QueryObject.FieldDisplayStyle; } export declare class EntityQueryListService extends Generic { getExecuteQueryInput(executeQueryByIdInput: Cmf.Foundation.BusinessOrchestration.QueryManagement.InputObjects.ExecuteQueryByIdInput): Promise; handleExecuteQueryOutput(output: Cmf.Foundation.BusinessOrchestration.QueryManagement.OutputObjects.ExecuteQueryOutput | Cmf.Foundation.BusinessOrchestration.GenericServiceManagement.OutputObjects.GetObjectsByFilterAsDataSetOutput | Cmf.Foundation.BusinessOrchestration.QueryManagement.OutputObjects.ExecuteQueryByIdOutput): any[]; buildColumnsFromInput(input: Cmf.Foundation.BusinessOrchestration.QueryManagement.InputObjects.ExecuteQueryInput | Cmf.Foundation.BusinessOrchestration.QueryManagement.InputObjects.ExecuteQueryByIdInput | Cmf.Foundation.BusinessOrchestration.GenericServiceManagement.InputObjects.GetObjectsByFilterAsDataSetInput, entityType: Cmf.Foundation.BusinessObjects.EntityType): Promise; private getDisplayStyle; private getConditionalDisplayStyle; buildColumnsFromObjects(executeQueryInput: Cmf.Foundation.BusinessOrchestration.QueryManagement.InputObjects.ExecuteQueryInput | Cmf.Foundation.BusinessOrchestration.QueryManagement.InputObjects.ExecuteQueryByIdInput | Cmf.Foundation.BusinessOrchestration.GenericServiceManagement.InputObjects.GetObjectsByFilterAsDataSetInput, entityType: Cmf.Foundation.BusinessObjects.EntityType, objs: any[]): EntityQueryListColumn[]; private getColumnsFromKeys; /** * Determines if a given field name exists * @param name Field name to search for * @param properties Collection of properties * @returns True if name found in collection */ fieldNameExists(name: string, properties: Array): boolean; /** * Builds column list from properties */ private getColumnsFromProperties; /** * Handle each of the properties and convert them into columns * This can be overridden by extending this service * @param propertiesData Data for the property to convert * @param entityTypeName Name of the entity type * @param isAdhoc Controls wether this columns are to be generated ad hoc * @param originalProperties Original properties with no entity filter property */ protected handleColumnsForProperties(propertiesData: { property: FilterProperty; entityTypeProperty: Cmf.Foundation.BusinessObjects.EntityTypeProperty; }[], entityTypeName: string, isAdhoc: boolean, originalProperties: Array): Array; /** * Builds the column template style for a given property based on the property display style * @param column Column to set the display style on * @param property Property to parse the style from */ private buildStyleTemplateForColumn; /** * Returns the different css style strings for a give display styke * @param displayStyle Display style to parse * @returns The column style, the common style (for both column and header) and the header style */ private getDisplayStyleStyle; }