import * as i0 from '@angular/core'; import { Renderer2, ElementRef, ViewContainerRef } from '@angular/core'; import * as i4 from '@angular/common'; import * as i5 from '@obliczeniowo/elementary/icons'; import * as i6 from '@obliczeniowo/elementary/loading'; declare class ExpandButtonComponent { isOpen: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Set class for the button element * * Default class name is: 'obl-button' you cen extend it by using input oblButton * in such case the name of class will change to 'obl-button-'+this.oblButton * * You can use scss mixin to generate new set of styles: * * @example * * // in HTML * * * * // in global scss file style.scss * * @use "node_modules/@obliczeniowo/elementary/styles/global.scss" as *; * * @include button-styles("red", #080808, black, red, white, #cc5d5d, white, gray); */ declare class ButtonDirective { protected renderer: Renderer2; protected elementRef: ElementRef; private readonly viewContainerRef; private _oblButton; private _spinner?; private _icon?; private _name?; get oblButton(): string; /** * Let you set default class if no extended class is set * * if extended is set then you can generate your own styles class using mixin * * @example * @use "node_modules/@obliczeniowo/elementary/styles/buttons-styles.scss" as *; * * @include button-styles("red", #080808, black, red, white, #cc5d5d, white, gray); */ set oblButton(value: string); /** * Name of icon to display inside of button, when no icon set then no icon to display * * When loading = true icon is removed and spinner is displayed */ set icon(icon: string | undefined); blockWhenLoading: boolean; protected _loading?: boolean; /** * If loading is set to true then button is disabled and spinner is added as first child of button * * on loading = false spinner is removed and if icon is set then icon displayed on his place */ set loading(loading: boolean); /** */ toggle: i0.InputSignal; /** */ selected: boolean; /** * link to open when clicked */ link: i0.InputSignal; /** * target option for link option only */ target: i0.InputSignal; /** * To handle disable state of button */ get load(): boolean; clicked(event: MouseEvent): void; constructor(renderer: Renderer2, elementRef: ElementRef, viewContainerRef: ViewContainerRef); ngAfterViewInit(): void; protected class(prefix?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ActionDirective { protected ref: ElementRef; protected time: any; protected dt: number; protected interval: number; protected element: HTMLDivElement; protected rect: DOMRect; protected offset: { left: number; top: number; }; set message(message: string); animEnd?: () => void; duration: number; clicked(): void; constructor(ref: ElementRef); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ButtonsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ProgressButtonComponent { /** if not undefined then display progress bar with % value */ progress: i0.InputSignal; /** disable light effect */ light: i0.InputSignal; real: i0.Signal; get disabled(): number | undefined; button: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { ActionDirective, ButtonDirective, ButtonsModule, ExpandButtonComponent, ProgressButtonComponent };