import { AfterViewInit, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core'; import { ConfigureComponentBase } from '../../../../../../shared/configure-component-base'; import { CreateOrEditVariableChooseMonitorModalComponent } from './choose-monitor-modal/create-or-edit-variable-choose-monitor-modal.component'; import { CreateOrUpdateVariableDto, DataSourceForDataConfigDto, DataSourceServiceProxy, RefFBoxVariableDto, VariableGroupListDto, VariableGroupServiceProxy, VariableServiceProxy } from '../../../../../../shared/service-proxies/service-proxies'; import { DataTypeService } from '../../../../../../shared/fbox/fbox/dataType.service'; import { VariableDataType } from '../enums/variable-data-type'; import { VariableRwType } from '../enums/variable-rw-type'; import { StateKeyValue } from '../state-key-value'; import { SampleMode } from './sample-mode'; import { OptionItem } from '../../../../diagram/utils/option-item'; import { StorageTimeType } from '../../shared/enum/storage-time-type'; import { ModalDirective, BsModalRef, BsModalService } from 'ngx-bootstrap'; import { AppSessionService } from '../../../../../../shared/common/session/app-session.service'; import { DropdownItem } from '../../../../../../shared/dropdown-item'; export declare class CreateOrEditVariableModalComponent extends ConfigureComponentBase implements OnInit, AfterViewInit { private readonly modalElementRef; private readonly variableService; private readonly dataTypeService; private readonly dataSourceService; private readonly variableGroupService; private readonly bsModalRef; readonly AppSessionService: AppSessionService; private readonly modalService; modal: ModalDirective; chooseMonitorModal: CreateOrEditVariableChooseMonitorModalComponent; selectElement: ElementRef; variableCreated: EventEmitter; variableEdited: EventEmitter; configureId: number; saving: boolean; storageTimeTypes: Array; selectedStorageTimeType: StorageTimeType; createOrUpdateVariableDto: CreateOrUpdateVariableDto; fBoxVariableDto: RefFBoxVariableDto; defaultFBoxVariableDto: RefFBoxVariableDto; selectedDataSourceId?: number; dataSources: DataSourceForDataConfigDto[]; fBoxVariableSearchResult: Array; fBoxVariableFilterByDataType: Array; refVariableSearching: boolean; defaultDataSourceIdFromEdit: number; sampleModes: Array; sampleMode: typeof SampleMode; groupList: VariableGroupListDto[]; dataTypes: object[]; dataType: typeof VariableDataType; rwType: typeof VariableRwType; stateArray: StateKeyValue[]; minIntValue: number; maxIntValue: number; maxFloatValue: number; minFloatValue: number; inputIntMaxValue: number; inputIntMinValue: number; inputFloatMaxValue: number; inputFloatMinValue: number; inputUnit: string; inputCharCount: number; cachedRefVariableId: number; private _selectSampleMode; selectSampleMode: DropdownItem; constructor(injector: Injector, modalElementRef: ElementRef, variableService: VariableServiceProxy, dataTypeService: DataTypeService, dataSourceService: DataSourceServiceProxy, variableGroupService: VariableGroupServiceProxy, bsModalRef: BsModalRef, AppSessionService: AppSessionService, modalService: BsModalService); ngOnInit(): void; loadDataSource(): void; ngAfterViewInit(): void; getVariableForEdit(): void; showChooseMonitor($event: MouseEvent): void; save(): void; private dataTypeEqualValidation; private handleSave; private assignToDto; getFBoxVariableSelected(refVariableSelected: RefFBoxVariableDto): void; close(): void; changeDataSource(): void; loadRefVariables(): void; getDetailSelectedVariable(): void; formatDataType(dataType: number, bitIndexEnabled: boolean): string; onEnableVariableStorageChange(enableVariableStorage: boolean): void; private loadVariableGroup; getEnum(enumType: any): Array; handleRwBtnClicked(rwType: VariableRwType): void; dataTypeChange(): void; minMaxValueCheck(): boolean; intValueOverflowCheck(): boolean; intValueCheck(): string; floatValueCheck(): string; floatValueOverflow(): boolean; getConfigureVariableDataType(dataTypeStr: string): string; charCountCheck(): void; }