/** Core */ import { CoreComponent } from "cmf.core/src/core"; /** Nested modules */ import { EditMode } from "../../entityPropertiesEditor/entityPropertiesEditor"; import { PropertyOptions } from "../../entityPropertiesEditor/entityPropertiesEditor"; import Cmf from "cmf.lbos"; /** Angular */ import * as ng from "@angular/core"; /** * @whatItDoes * * This components encapsulates the logic of the general data step details of the createEditEntity wizards. * The goal is to use the same component whenever this logic needs to be used, without having to create different components. * * @howToUse * * This component is used with the inputs mentioned below. * * ### Inputs * `any` : **instance** - The instance of the component. * `string` : **title** - The title of the step. * `EditMode` : **editMode** - The editMode of the component * `boolean` : **isNameVisible** - Flag used to check if the name property is to be visible * `boolean` : **isDescriptionVisible** - Flag used to check if the description property is to be visible * `boolean` : **isTypeVisible** - Flag used to check if the type property is to be visible * `boolean` : **isSystemStateVisible** - Flag used to check if the system state property is to be visible * `boolean` : **isStateModelVisible** - Flag used to check if the state model and state model state are to be visible and editable * ### Outputs * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * * * ``` * * @description * * ## CreateEditStepGeneralDataDetails Component * * ### Dependencies * * #### Components * * BaseWidgetModule: `cmf.core.controls` * * EntityPropertiesEditorModule: `cmf.core.controls` * * EntityPropertiesViewerModule: `cmf.core.business.controls` * #### Directives * */ export declare class CreateEditStepGeneralDataDetails extends CoreComponent implements ng.OnChanges, ng.AfterViewInit, ng.OnDestroy { private _elementRef; /** * Focus interval for first available input. */ private _focusInterval; entityType: Cmf.Foundation.BusinessObjects.EntityType; /** * Flag based on whether the entityType is versioned and used to check if the change set is to be visible. */ isToShowChangeSet: boolean; /** * Flag used to check if the name property is to be visible */ isNameVisible: boolean; /** * Flag used to check if the description property is to be visible */ isDescriptionVisible: boolean; /** * Flag used to check if the type property is to be visible */ isTypeVisible: boolean; /** * Flag used to check if the system state property is to be visible */ isSystemStateVisible: boolean; /** * Flag used to check if the state model and state model state are to be visible and editable */ isStateModelVisible: boolean; /** * Main title */ title: string; /** * entity type icon */ entityTypeIcon: string; /** * The Edit Mode */ editMode: EditMode; /** * The change set */ changeSet: any; /** * Properties configuration for general data section */ propertiesGeneralData: { [key: string]: PropertyOptions | string; }; /** * The received instance */ instance: any; /** * The Change Set property configuration */ changeSetProperty: { [key: string]: PropertyOptions | string; }; /** * Constructor * * @param viewContainerRef the reference to the component view container */ constructor(viewContainerRef: ng.ViewContainerRef, _elementRef: ng.ElementRef); /** * Selects Name input if available or else selects the first */ ngAfterViewInit(): void; /** * Loads the EntityType when the instance changes * The load is done from instance * Assuming that the EntityType once loaded do not change */ ngOnChanges(changes: ng.SimpleChanges): void; /** * Clears any interval that still exists. */ ngOnDestroy(): void; } export declare class CreateEditStepGeneralDataDetailsModule { }