91 lines
4.5 KiB
TypeScript
91 lines
4.5 KiB
TypeScript
|
import { ElementRef, OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
||
|
import { ControlValueAccessor } from '@angular/forms';
|
||
|
import * as i0 from "@angular/core";
|
||
|
import * as i1 from "@angular/common";
|
||
|
import * as i2 from "primeng/inputtext";
|
||
|
export declare const SPINNER_VALUE_ACCESSOR: any;
|
||
|
export declare class Spinner implements OnInit, ControlValueAccessor {
|
||
|
el: ElementRef;
|
||
|
cd: ChangeDetectorRef;
|
||
|
onChange: EventEmitter<any>;
|
||
|
onFocus: EventEmitter<any>;
|
||
|
onBlur: EventEmitter<any>;
|
||
|
min: number;
|
||
|
max: number;
|
||
|
maxlength: number;
|
||
|
size: number;
|
||
|
placeholder: string;
|
||
|
inputId: string;
|
||
|
disabled: boolean;
|
||
|
readonly: boolean;
|
||
|
tabindex: number;
|
||
|
required: boolean;
|
||
|
name: string;
|
||
|
ariaLabelledBy: string;
|
||
|
inputStyle: any;
|
||
|
inputStyleClass: string;
|
||
|
formatInput: boolean;
|
||
|
decimalSeparator: string;
|
||
|
thousandSeparator: string;
|
||
|
precision: number;
|
||
|
value: any;
|
||
|
_step: number;
|
||
|
formattedValue: string;
|
||
|
onModelChange: Function;
|
||
|
onModelTouched: Function;
|
||
|
keyPattern: RegExp;
|
||
|
timer: any;
|
||
|
focus: boolean;
|
||
|
filled: boolean;
|
||
|
negativeSeparator: string;
|
||
|
localeDecimalSeparator: string;
|
||
|
localeThousandSeparator: string;
|
||
|
thousandRegExp: RegExp;
|
||
|
calculatedPrecision: number;
|
||
|
inputfieldViewChild: ElementRef;
|
||
|
get step(): number;
|
||
|
set step(val: number);
|
||
|
constructor(el: ElementRef, cd: ChangeDetectorRef);
|
||
|
ngOnInit(): void;
|
||
|
repeat(event: Event, interval: number, dir: number): void;
|
||
|
spin(event: Event, dir: number): void;
|
||
|
getPrecision(): number;
|
||
|
toFixed(value: number, precision: number): string;
|
||
|
onUpButtonMousedown(event: Event): void;
|
||
|
onUpButtonMouseup(event: Event): void;
|
||
|
onUpButtonMouseleave(event: Event): void;
|
||
|
onDownButtonMousedown(event: Event): void;
|
||
|
onDownButtonMouseup(event: Event): void;
|
||
|
onDownButtonMouseleave(event: Event): void;
|
||
|
onInputKeydown(event: KeyboardEvent): void;
|
||
|
onInputChange(event: Event): void;
|
||
|
onInput(event: KeyboardEvent): void;
|
||
|
onInputBlur(event: any): void;
|
||
|
onInputFocus(event: any): void;
|
||
|
parseValue(val: string): number;
|
||
|
formatValue(): void;
|
||
|
clearTimer(): void;
|
||
|
writeValue(value: any): void;
|
||
|
registerOnChange(fn: Function): void;
|
||
|
registerOnTouched(fn: Function): void;
|
||
|
setDisabledState(val: boolean): void;
|
||
|
updateFilledState(): void;
|
||
|
static ɵfac: i0.ɵɵFactoryDeclaration<Spinner, never>;
|
||
|
static ɵcmp: i0.ɵɵComponentDeclaration<Spinner, "p-spinner", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "required": { "alias": "required"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "formatInput": { "alias": "formatInput"; "required": false; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "step": { "alias": "step"; "required": false; }; }, { "onChange": "onChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, false, never>;
|
||
|
static ngAcceptInputType_min: unknown;
|
||
|
static ngAcceptInputType_max: unknown;
|
||
|
static ngAcceptInputType_maxlength: unknown;
|
||
|
static ngAcceptInputType_size: unknown;
|
||
|
static ngAcceptInputType_disabled: unknown;
|
||
|
static ngAcceptInputType_readonly: unknown;
|
||
|
static ngAcceptInputType_tabindex: unknown;
|
||
|
static ngAcceptInputType_required: unknown;
|
||
|
static ngAcceptInputType_formatInput: unknown;
|
||
|
static ngAcceptInputType_precision: unknown;
|
||
|
}
|
||
|
export declare class SpinnerModule {
|
||
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerModule, never>;
|
||
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SpinnerModule, [typeof Spinner], [typeof i1.CommonModule, typeof i2.InputTextModule], [typeof Spinner]>;
|
||
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpinnerModule>;
|
||
|
}
|