import * as i0 from '@angular/core'; import { ElementRef, ChangeDetectorRef, TemplateRef, EventEmitter, SimpleChanges, PipeTransform } from '@angular/core'; import * as i9 from '@obliczeniowo/elementary/scroller-nav'; import { PageControllerRecordAdapter } from '@obliczeniowo/elementary/scroller-nav'; import { OblFileService } from '@obliczeniowo/elementary/files'; import * as i5 from '@angular/common'; import * as i6 from '@angular/forms'; import * as i7 from '@obliczeniowo/elementary/icons'; import * as i8 from '@obliczeniowo/elementary/buttons'; import * as i10 from '@obliczeniowo/elementary/input'; interface Record { x: number; y: number; value: string | number; } /** * Component prepared to display raw data like text/numbers as a quick formatted table */ declare class ArrayToTableComponent { protected elementRef: ElementRef; protected change: ChangeDetectorRef; protected file: OblFileService; /** * Array of elements to display number/string/table of number/string */ array: (string | number)[] | (string | number)[][]; /** */ headers: i0.InputSignal; /** * Caption text of table to display */ caption: i0.InputSignal | undefined>; /** * Maximum number of columns in one line, if number of columns is greater then this value * then it will split data in new record line */ maxLength: i0.InputSignal; /** */ editable: i0.InputSignal; /** */ display: i0.InputSignal<{ index?: boolean; download?: "json" | "csv"; }>; arrayChanged: EventEmitter<(string | number)[][]>; /** * Prepared to display data */ records: Record[][]; /** * body of table reference for scroller */ tbody: HTMLElement | null; /** * y table wrapper reference for scroller */ yWrapper: HTMLElement | null; pageAdapter: PageControllerRecordAdapter; constructor(elementRef: ElementRef, change: ChangeDetectorRef, file: OblFileService); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; downloadCsv(name?: string): void; downloadJson(name?: string): void; changed(value: any, record: number, index: number): void; protected convert(): Record[][]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EditableCellComponent { protected elementRef: ElementRef; value: i0.ModelSignal; editable: i0.InputSignal; type: 'string' | 'number' | 'json' | 'none'; inputValue: string | number | undefined; focus: boolean; get isNumber(): boolean; get isText(): boolean; clicked(): void; blur(event: any): void; constructor(elementRef: ElementRef); ngAfterViewChecked(): void; changed(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IsPipe implements PipeTransform { transform(value: any, ...args: ['string' | 'number']): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class IsTemplatePipe implements PipeTransform { transform(value: any, ...args: unknown[]): TemplateRef | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class ArrayToTableModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ArrayToTableComponent, ArrayToTableModule };