[59329aa] | 1 | import { ElementRef, OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
---|
| 2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
| 3 | import * as i0 from "@angular/core";
|
---|
| 4 | import * as i1 from "@angular/common";
|
---|
| 5 | import * as i2 from "primeng/inputtext";
|
---|
| 6 | export declare const SPINNER_VALUE_ACCESSOR: any;
|
---|
| 7 | export declare class Spinner implements OnInit, ControlValueAccessor {
|
---|
| 8 | el: ElementRef;
|
---|
| 9 | cd: ChangeDetectorRef;
|
---|
| 10 | onChange: EventEmitter<any>;
|
---|
| 11 | onFocus: EventEmitter<any>;
|
---|
| 12 | onBlur: EventEmitter<any>;
|
---|
| 13 | min: number;
|
---|
| 14 | max: number;
|
---|
| 15 | maxlength: number;
|
---|
| 16 | size: number;
|
---|
| 17 | placeholder: string;
|
---|
| 18 | inputId: string;
|
---|
| 19 | disabled: boolean;
|
---|
| 20 | readonly: boolean;
|
---|
| 21 | tabindex: number;
|
---|
| 22 | required: boolean;
|
---|
| 23 | name: string;
|
---|
| 24 | ariaLabelledBy: string;
|
---|
| 25 | inputStyle: any;
|
---|
| 26 | inputStyleClass: string;
|
---|
| 27 | formatInput: boolean;
|
---|
| 28 | decimalSeparator: string;
|
---|
| 29 | thousandSeparator: string;
|
---|
| 30 | precision: number;
|
---|
| 31 | value: any;
|
---|
| 32 | _step: number;
|
---|
| 33 | formattedValue: string;
|
---|
| 34 | onModelChange: Function;
|
---|
| 35 | onModelTouched: Function;
|
---|
| 36 | keyPattern: RegExp;
|
---|
| 37 | timer: any;
|
---|
| 38 | focus: boolean;
|
---|
| 39 | filled: boolean;
|
---|
| 40 | negativeSeparator: string;
|
---|
| 41 | localeDecimalSeparator: string;
|
---|
| 42 | localeThousandSeparator: string;
|
---|
| 43 | thousandRegExp: RegExp;
|
---|
| 44 | calculatedPrecision: number;
|
---|
| 45 | inputfieldViewChild: ElementRef;
|
---|
| 46 | get step(): number;
|
---|
| 47 | set step(val: number);
|
---|
| 48 | constructor(el: ElementRef, cd: ChangeDetectorRef);
|
---|
| 49 | ngOnInit(): void;
|
---|
| 50 | repeat(event: Event, interval: number, dir: number): void;
|
---|
| 51 | spin(event: Event, dir: number): void;
|
---|
| 52 | getPrecision(): number;
|
---|
| 53 | toFixed(value: number, precision: number): string;
|
---|
| 54 | onUpButtonMousedown(event: Event): void;
|
---|
| 55 | onUpButtonMouseup(event: Event): void;
|
---|
| 56 | onUpButtonMouseleave(event: Event): void;
|
---|
| 57 | onDownButtonMousedown(event: Event): void;
|
---|
| 58 | onDownButtonMouseup(event: Event): void;
|
---|
| 59 | onDownButtonMouseleave(event: Event): void;
|
---|
| 60 | onInputKeydown(event: KeyboardEvent): void;
|
---|
| 61 | onInputChange(event: Event): void;
|
---|
| 62 | onInput(event: KeyboardEvent): void;
|
---|
| 63 | onInputBlur(event: any): void;
|
---|
| 64 | onInputFocus(event: any): void;
|
---|
| 65 | parseValue(val: string): number;
|
---|
| 66 | formatValue(): void;
|
---|
| 67 | clearTimer(): void;
|
---|
| 68 | writeValue(value: any): void;
|
---|
| 69 | registerOnChange(fn: Function): void;
|
---|
| 70 | registerOnTouched(fn: Function): void;
|
---|
| 71 | setDisabledState(val: boolean): void;
|
---|
| 72 | updateFilledState(): void;
|
---|
| 73 | static ɵfac: i0.ɵɵFactoryDeclaration<Spinner, never>;
|
---|
| 74 | static ɵcmp: i0.ɵɵComponentDeclaration<Spinner, "p-spinner", never, { "min": "min"; "max": "max"; "maxlength": "maxlength"; "size": "size"; "placeholder": "placeholder"; "inputId": "inputId"; "disabled": "disabled"; "readonly": "readonly"; "tabindex": "tabindex"; "required": "required"; "name": "name"; "ariaLabelledBy": "ariaLabelledBy"; "inputStyle": "inputStyle"; "inputStyleClass": "inputStyleClass"; "formatInput": "formatInput"; "decimalSeparator": "decimalSeparator"; "thousandSeparator": "thousandSeparator"; "precision": "precision"; "step": "step"; }, { "onChange": "onChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never>;
|
---|
| 75 | }
|
---|
| 76 | export declare class SpinnerModule {
|
---|
| 77 | static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerModule, never>;
|
---|
| 78 | static ɵmod: i0.ɵɵNgModuleDeclaration<SpinnerModule, [typeof Spinner], [typeof i1.CommonModule, typeof i2.InputTextModule], [typeof Spinner]>;
|
---|
| 79 | static ɵinj: i0.ɵɵInjectorDeclaration<SpinnerModule>;
|
---|
| 80 | }
|
---|