UNPKG

@ngodings/ngx-rupiah

Version:

Angular directive mask for currency Rupiah/IDR support for NgModule or Reactive forms, pipe for currency Rupiah/IDR & pipe for terbilang in Rupiah/IDR

35 lines (34 loc) 1.66 kB
import { AfterViewInit, DoCheck, ElementRef, KeyValueDiffer, KeyValueDiffers, OnInit } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { RupiahMaskConfig } from "./rupiah-mask.config"; import { InputHandler } from "./input.handler"; import * as i0 from "@angular/core"; export declare const RUPIAHMASKDIRECTIVE_VALUE_ACCESSOR: any; export declare class RupiahMaskDirective implements AfterViewInit, ControlValueAccessor, DoCheck, OnInit { private currencyMaskConfig; private elementRef; private keyValueDiffers; options: Partial<RupiahMaskConfig>; inputHandler: InputHandler; keyValueDiffer: KeyValueDiffer<any, any>; optionsTemplate: RupiahMaskConfig; constructor(currencyMaskConfig: RupiahMaskConfig, elementRef: ElementRef, keyValueDiffers: KeyValueDiffers); ngAfterViewInit(): void; ngDoCheck(): void; ngOnInit(): void; handleBlur(event: any): void; handleCut(event: any): void; handleInput(event: any): void; handleKeydown(event: any): void; handleKeypress(event: any): void; handlePaste(event: any): void; handleDrop(event: any): void; isChromeAndroid(): boolean; isReadOnly(): boolean; registerOnChange(callbackFunction: Function): void; registerOnTouched(callbackFunction: Function): void; setDisabledState(value: boolean): void; writeValue(value: number): void; static ɵfac: i0.ɵɵFactoryDeclaration<RupiahMaskDirective, [{ optional: true; }, null, null]>; static ɵdir: i0.ɵɵDirectiveDeclaration<RupiahMaskDirective, "[rupiahMask]", never, { "options": "options"; }, {}, never, never, false, never>; }