/** Core */ import { CoreComponent } from "cmf.core/src/core"; import Cmf from "cmf.lbos"; import { EntityTypeBasicInfoProperties, EntityTypeBasicInfoProperty } from "cmf.core/src/domain/metadata/entityType"; /** Angular */ import * as ng from "@angular/core"; export declare class EntityBasicInfoSlim extends CoreComponent implements ng.OnChanges { private _ngZone; /** * Panel bar */ private _panelBar; /** * Div that contains all properties on the header and also the navigation control */ private headerContainerRef; /** * Div that contains the navigation container */ private navigationContainerRef; /** * Divs correspondent to the header properties */ private headerPropertiesContainerRef; /** * List of body properties to be displayed */ private bodyProperties; /** * List of final properties to be displayed for the instance */ _properties: any; /** * Multi header title */ _multiHeader: string; /** * Panel bar state expanded(true)\collapsed(false) */ _isExpanded: boolean; /** * List of properties to be showed on EntityBasicInfoSlim, * */ propertiesToShow: { [key: string]: string; }; /** * Entity instance */ instance: Cmf.Foundation.BusinessObjects.Entity | Cmf.Foundation.BusinessObjects.Entity[]; /** * Title */ mainTitle: string; /** * Subtitle */ subTitle: string; /** * List of properties to be displayed (header and body) */ entityTypeBasicInfoProperties: EntityTypeBasicInfoProperties; /** * List of header properties to be displayed. * */ headerProperties: Array; /** * The entity system state if it exists */ entitySystemState: string; /** * The starting index from which the header properties should be hidden */ indexHeaderToHideFrom: number; /** * The starting index from which the body properties should be visible */ indexBodyToHideFrom: number; /** * List of header and body properties to be currently displayed. * */ headerBodyProperties: Array; /** * Variable used to ensure that all properties are loaded so that size calculation takes place */ hideProperty: boolean; /** * Due to animations being fired when tab is changed * we need to ensure that animation only fires once */ onlyOnce: boolean; /** * If panelBar is already expanded */ expanded: boolean; /** * Icon Class */ iconClass: string; /** * Reference type to be used for property viewer */ referenceType: Cmf.Foundation.Common.ReferenceType; constructor(_ngZone: ng.NgZone); panelBarHeaderClicked: (event: any) => void; /** * When window is resized we should recalculate * the visible properties according to the available size */ onResize(event: any): void; ngOnChanges(changes: any): void; /** * Start animation to "mask" entity properties being loaded inside ngFor */ private setAnimation; /** * Set properties according to metadata */ private setPropertiesToShowAccordingToMetadata; /** * Set flag to make elements visible */ private makeElementsVisible; /** * Set the entity type basic info necessary based on the metadata */ private getEntityTypeBasicInfoProperties; /** * Set System State */ private getSystemState; /** * Calculate the visible header properties according to the available space */ private calculateVisibleHeaderProperties; /** * Add resize event handler */ private addWindowResizeEvent; } export declare class EntityBasicInfoSlimModule { }