UNPKG

@controladad/ng-base

Version:
33 lines (32 loc) 1.44 kB
import { AfterViewInit, AfterViewChecked, DestroyRef, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core'; import { Subject } from 'rxjs'; import { AlxPrintDirective } from '@al00x/printer'; import * as i0 from "@angular/core"; export interface PrintableTableData { header: string[]; rows: string[][]; extra?: { value: string | number; label: string; }[]; } export declare class CacPrintableTableComponent implements OnChanges, AfterViewInit, AfterViewChecked, OnDestroy { readonly destroyRef: DestroyRef; private _pendingRender; printer: AlxPrintDirective; headers: QueryList<any>; rows: QueryList<any>; cols: QueryList<any>; extras: QueryList<any>; data?: PrintableTableData; rendered$: Subject<null>; protected _currentData: import("@angular/core").WritableSignal<PrintableTableData | undefined>; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; ngAfterViewChecked(): void; ngOnDestroy(): void; render(data: PrintableTableData): import("rxjs").Observable<null>; print(data: PrintableTableData): import("rxjs").Observable<null>; static ɵfac: i0.ɵɵFactoryDeclaration<CacPrintableTableComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<CacPrintableTableComponent, "cac-printable-table", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>; }