import { ElementRef, TemplateRef, OnInit, AfterViewInit } from '@angular/core'; import { FieldTypes } from 'mel-common'; import { TranslateService } from '@ngx-translate/core'; import { Field } from '../field'; import { TemplateService } from '../../../../services/template.service'; import { ListfieldContext } from '../../../core/types'; import { RowUI } from '../../../core/rowUI'; import * as i0 from "@angular/core"; export declare type NavigationKeys = 'Tab' | 'ShiftTab' | 'ArrowUp' | 'ArrowDown' | 'Enter'; export declare type ShortcutKeys = 'F8'; export declare enum FieldModes { 'view' = 0, 'edit' = 1 } export declare class ListfieldComponent extends Field implements OnInit, AfterViewInit { private editInput; private editBoolean; private editEnum; private viewBoolean; private viewInput; private viewEnum; constructor(host: ElementRef, translate: TranslateService, templateService: TemplateService); private tdElement; private trElement; private editMode; private editMode$; private _mode; get rowIndex(): number; protected get mode(): FieldModes; protected set mode(value: FieldModes); protected ctx?: ListfieldContext; get context(): ListfieldContext; get type(): FieldTypes; get colIndex(): number; get rowUI(): RowUI | undefined; get assertRowUI(): RowUI; get currentTemplate(): TemplateRef; get inputValue(): string | boolean; /** * Listen to the TabKey- and Delete-Event and notify about after validation * @param event : KeyboardEvent */ onKeyDown(event: KeyboardEvent): void; /** * Listen to the ArrowUp-, ArrowDown- and Enter-Key-events and notify about after validation * Prevents default behaviour * @param event : KeyboardEvent */ onKeyUp(event: KeyboardEvent): void; set context(listfieldContext: ListfieldContext); /** * Call the mode-handlers */ ngOnInit(): void; ngAfterViewInit(): void; /** * Listen for a td-click-event and switch to editmode if the field is editable */ private viewModeHandler; /** * Subscribe the editMode-event and map it to a click outside */ private editModeHandler; toString(): string; prettyMode(mode: FieldModes): string; /** * @param other * Compares the component with another by comparing row- and columnindex */ equals(other: ListfieldComponent): boolean; /** * Determins, if an other component is in the same row * @param other */ sameRow(other: ListfieldComponent): boolean; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "mel-list-field", never, { "context": "context"; }, {}, never, never>; }