import { TemplateRef } from '@angular/core'; import { SearchRequest } from './Models/search-request'; import { PageObservable } from './Models/PageObservable'; import { ICustomTableCell } from '../lib/Models/TableModels'; import { SearchResponse } from './Models/search-response'; import { IFilterValue } from './Models/FilterItemModel'; import * as i0 from "@angular/core"; export declare class ULLibService { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare abstract class UIBuilderHandles { ColumnHandle: UITableHandlerFactory; constructor(); CreateLayoutData(a: number, b: number, c: any, d: TemplateRef): UIGridLayoutDataHandle; } export declare class ListItems extends Array> { constructor(); FindByValue(value: T): ListItem[]; FindByKey(key: string): ListItem[]; FirstByKey(key: string): void; FirstByValue(value: T): void; LastByValue(value: T): void; LastByKey(key: string): void; } export declare class ListItem { Key: string; Value?: T; constructor(k: string, v: T); } export declare class UIColumnHandler { Sortable: boolean; IsDatabound: boolean; Display: string; DataKey: string; ColumnType: ICustomTableCell; CellTemplate?: TemplateRef | undefined; IsFilter: boolean; IsRowID: boolean; isHidden: boolean; constructor(); static GetDataColumn(Datakey: string, Display: string): UIColumnHandler; BuildColumnMap(cols: UIColumnHandler[]): { Display: string; DataKey: string; Sorted: boolean; IsFilter: boolean; }[]; static GetCustomColumn(Datakey: string, Display: string, Sorted?: boolean, Databound?: boolean): UIColumnHandler; } export declare class UITableHandlerFactory { TableHandlers: { [key: string]: UITableHandler; }; constructor(); GetHandlerByName(s: string): UITableHandler; CreateHandler(s: string): UITableHandler; } export declare class UIFormControlData { ControlKey: string; ControlValue: any; ControlType: string; ControlDatasource: any; constructor(a: string, b: any, t: string, c: any); static GetControlDataByMap(a: any, mp: { [s: string]: (Col: string, RowObj: any) => UIFormControlData; }): UIFormControlData[]; static GetControlData(a: any): UIFormControlData[]; } export declare class UITableHandler { ColArray: UIColumnHandler[]; searchRequest: SearchRequest; UpdateSearchRequest: (event: any) => void; rowAction: (row: any) => void; cellAction: (row: any, dataKey: string) => any; constructor(); CreateDatacolumn(a: string, b: string): UIColumnHandler; CreateCustomcolumn(a: string, b: string): UIColumnHandler; } export declare class UIGridLayoutDataHandle { ColumnSpan: number; RowSpan: number; data: any; constructor(cSpan: number, rSpan: number, nestedData: any, temp: TemplateRef); static CreateLayoutData(a: number, b: number, c: any, d: TemplateRef): UIGridLayoutDataHandle; } export declare class UIExpansionData { PanelTitle: string; PanelDesc: string; PanelNestedData: any; PanelNestedTemplate: TemplateRef; constructor(pt: string, pd: string, pnd: any, pnt: TemplateRef); static CreateData(a: string, b: string, c: any, d: any): UIExpansionData; } declare global { interface Array { First(operation: (item: T) => boolean): T | undefined; Last(operation: (item: T) => boolean): T | undefined; } interface Date { LocalToUTCString(): string | null; } } declare module 'rxjs' { interface Observable { ToListItems(action: (item: any) => ListItem): Observable>; ToListItemsByModel(modelKey: string, modelValue: string): Observable>; ToSearchResponse(countKey?: string, resultKey?: string): Observable>; ToPageObservable(countKey?: string, resultKey?: string): PageObservable; ToFilterValues(display?: string, value?: string): Observable; } }