UNPKG

@rangertechnologies/ngnxt

Version:

This library was used for creating dymanic UI based on the input JSON/data

40 lines (39 loc) 1.54 kB
import { EventEmitter, OnInit, ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class FormulaInputComponent implements OnInit { attributes: any[]; initialFormula: string; formulaChange: EventEmitter<string>; formulaValidation: EventEmitter<{ isValid: boolean; formula: string; tokens: any[]; }>; formulaInputRef: ElementRef<HTMLInputElement>; formulaTokens: any[]; currentInput: string; validationMessage: string; isValidationError: boolean; operations: { symbol: string; title: string; value: string; }[]; ngOnInit(): void; focusInput(): void; addAttribute(attribute: any): void; addOperation(operation: any): void; removeToken(index: number): void; isAttributeUsed(attribute: any): boolean; onKeyDown(event: KeyboardEvent): void; commitNumber(): void; onInput(event: any): void; resetFormula(): void; validateFormula(): void; private getValidationErrors; private updateFormula; private emitValidation; private parseInitialFormula; static ɵfac: i0.ɵɵFactoryDeclaration<FormulaInputComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormulaInputComponent, "app-formula-input", never, { "attributes": { "alias": "attributes"; "required": false; }; "initialFormula": { "alias": "initialFormula"; "required": false; }; }, { "formulaChange": "formulaChange"; "formulaValidation": "formulaValidation"; }, never, never, true, never>; }