import { OnInit, ElementRef, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { GalaxyCoreInput } from '../core/core-input.directive'; import { GalaxyCurrencyInputInterface } from '../..'; import { FormControl } from '@angular/forms'; import { CurrencyPipe } from '@angular/common'; import * as i0 from "@angular/core"; export declare type GalaxyCurrencyDecimalSeparator = '.' | ',' | '·' | '⎖' | '٫'; export declare type GalaxyCurrencyDigitGroupSeparator = ',' | '.' | '٬' | '˙' | "'" | ' ' | ''; export declare class CurrencyInputComponent extends GalaxyCoreInput implements OnInit, OnChanges, AfterViewInit { private readonly currencyPipe; class: string; /** Additional message to display below the text box */ hint?: string; /** Currency code to use. E.g. 'USD' or 'CAD' */ currencyCode: string; /** The separator for the decimal group. E.g. ',' or '.' */ decimalSeparator: GalaxyCurrencyDecimalSeparator; /** The separator between thousands. E.g. ',' or '.' */ digitGroupSeparator: GalaxyCurrencyDigitGroupSeparator; /** The amount of decimal places */ decimalPlaces: number; /** Max value for the input */ maximumValue: string; /** Minimum value for the input */ minimumValue: string; /** * Locale to display the value as. If a locale is supplied, * it will override the decimalSeparator and digitGroupSeparator * supplied with the information from the locale */ locale?: string; /** Config for the field */ config?: GalaxyCurrencyInputInterface; symbol: string; currencyInput: ElementRef; private autoNumericObject; internalControl: FormControl; constructor(currencyPipe: CurrencyPipe); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private getCurrencySymbolFromCode; ngAfterViewInit(): void; setupControl(): void; /** * When the user blurs the input, set the value from the auto-numeric options */ handleBlur(value: any): void; setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }