import { ValidatorModel } from "cmf.core.controls/src/directives/validator/validator"; import { EditMode } from "../entityPropertiesEditor/entityPropertiesEditor"; import { CreateEditStep } from "./createEditStep"; /** Angular */ import * as ng from "@angular/core"; export { CreateEditStepGeneralDataDetailsModule } from "./createEditStepGeneralDataDetails/createEditStepGeneralDataDetails"; /** * @whatItDoes * * This component encapsulates the logic of general data step of the createEditEntity wizard. * The goal is to use this component as the first step for a wizard that uses createEditEntity instead of createEditStep. * * @howToUse * * This component accepts 2 transclusions: * a) with attribute "cmf-core-business-controls-createEditStepGeneralData-details": will project inside createEditStepGeneralDataDetails * b) (normal): will project below the component (use this to project other baseWidgets or the rest of the step) * This component is used with the inputs mentioned below. * It should be used as a step wizard, since it is instantiated as DeferInstantiationHost. * * ### Inputs * `any` : **instance** - The instance of the component. * `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 * `string` : **mainTitle** - The main title of the step * `string` : **title** - The title of the step. * `string` : **stepId** - The id of the step * `string` : **subtitle** - Subtitle of the step. * `bool` : **isHidden** - If step is hidden, by default is false * * ### Outputs * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * *
* *
* *
* ``` * * @description * * ## CreateEditEntity Component * * ### Dependencies * * #### Directives * * Validator : `cmf.core.controls` */ export declare class CreateEditStepGeneralData extends CreateEditStep { validatorModel: ValidatorModel; /** * The received instance */ instance: any; /** * The Edit Mode */ editMode: EditMode; /** * 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 System State is to be visible */ isSystemStateVisible: boolean; /** * Flag used to check if the type property is to be visible */ isTypeVisible: boolean; /** * Flag used to check if the state model and state model state are to be visible */ isStateModelVisible: boolean; /** * Flag used to check if the system state property is to be visible */ isState: boolean; /** * Main title */ title: string; /** * Main title of the step */ mainTitle: string; /** * Step Id of the step */ stepId: string; /** * Subtitle (Used in wizards steps) */ subtitle: string; /** * Step is hidden */ isHidden: boolean; /** * Constructor * * @param viewContainerRef the reference to the component view container */ constructor(viewContainerRef: ng.ViewContainerRef, validatorModel: ValidatorModel); } export declare class CreateEditStepGeneralDataModule { }