UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

37 lines (36 loc) 1.79 kB
import { EventEmitter, OnInit, SimpleChanges } from "@angular/core"; import { KwikUIButtonApiCallTimerService } from "./button-api-call.timer.service"; import { TKwikUIButtonApiCallTimer } from "./button-api-call.definitions"; import * as i0 from "@angular/core"; export declare class KwikUIButtonApiCallComponent implements OnInit { timerService: KwikUIButtonApiCallTimerService; apiTimer: TKwikUIButtonApiCallTimer; apiStatus: "default" | "loading" | "retry" | "success" | "failed"; class: string; disabled: boolean; id: string; label: string; shape: null | "square" | "rounded"; showLoader: boolean; size: "xs" | "s" | "m" | "l" | "xl"; styles: string; onClick: EventEmitter<any>; onApiTimerStop: EventEmitter<any>; isShowApiTimerMessage: boolean; icon: string; iconRight: string; apiTimerMessages: Array<any>; private timerStopSubscription; private timerValueSubscription; constructor(timerService: KwikUIButtonApiCallTimerService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; handleApiStatus(apiStatus: string): void; handleOnClick(e: any): void; handleApiTimer(apiTimer: any, onChange?: boolean): void; handleStopTimer(): void; resetApiTimer(): void; static ɵfac: i0.ɵɵFactoryDeclaration<KwikUIButtonApiCallComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIButtonApiCallComponent, "kwikui-button-api-call", never, { "apiTimer": "apiTimer"; "apiStatus": "apiStatus"; "class": "class"; "disabled": "disabled"; "id": "id"; "label": "label"; "shape": "shape"; "showLoader": "showLoader"; "size": "size"; "styles": "styles"; }, { "onClick": "onClick"; "onApiTimerStop": "onApiTimerStop"; }, never, never>; }