UNPKG

progress-button

Version:
51 lines (50 loc) 1.66 kB
import { ProgressButtonAnimation, ProgressButtonConfig, ProgressButtonData, ProgressButtonDataStatus, ProgressButtonDesign, ProgressButtonStyles } from './progress-button.types'; export declare class ProgressButtonService { private progressP; private designP; constructor(config?: ProgressButtonConfig); /** * Return the status of the data */ get status(): ProgressButtonDataStatus; get design(): ProgressButtonDesign; set design(value: ProgressButtonDesign); get progress(): ProgressButtonData; set progress(value: ProgressButtonData); /** * Check if animation is active * @param name ProgressButtonAnimation Animation name */ isAnimation: (name: ProgressButtonAnimation) => boolean; /** * Return some progress styles * @param progressValue The progress value * @param statusClass The status (state-success | state-error) */ styles: (progressValue: number, statusClass: string) => ProgressButtonStyles; /** * Get the Progress Inner Style * @param progressValue The progress value */ private progressInnerStyle; /** * Get Calculated Progress Inner Width */ private progressInnerWidth; /** * Get Calculated Progress Inner Height */ private progressInnerHeight; /** * Get the background color of the button according to the status */ private mainBackgroundColor; /** * Get css style of the button */ private buttonStyle; /** * Get the content style according to the status */ private contentStyle; }