/** * Generated bundle index. Do not edit. */ import * as i0 from "@angular/core"; import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, PipeTransform, Renderer2, TemplateRef } from "@angular/core"; import * as i7 from "@biit-solutions/wizardry-theme/inputs"; import { BiitMultiselectType } from "@biit-solutions/wizardry-theme/inputs"; import * as i2 from "@angular/common"; import * as i3 from "@angular/forms"; import * as i4 from "@biit-solutions/wizardry-theme/icon"; import { BiitIconService } from "@biit-solutions/wizardry-theme/icon"; import * as i5 from "@biit-solutions/wizardry-theme/button"; import * as i6$1 from "@biit-solutions/wizardry-theme/i18n"; import * as i7$1 from "@biit-solutions/wizardry-theme/info"; import * as i9 from "@biit-solutions/wizardry-theme/utils"; import * as i13 from "@biit-solutions/wizardry-theme/navigation"; import * as i6 from "@siemens/ngx-datatable"; import { ActivateEvent, DatatableComponent, DatatablePagerComponent, TableColumn, TableColumnProp } from "@siemens/ngx-datatable"; import * as i8 from "@jsverse/transloco"; export declare class BiitTableColumn { name: string; label: string; width: number; format: BiitTableColumnFormat; visible: boolean; constructor(name: string, label: string, width?: number, format?: BiitTableColumnFormat, visible?: boolean); } export declare enum BiitTableColumnFormat { DEFAULT = "default", BOOLEAN = "boolean", DATE = "date", DATETIME = "datetime", BUTTON = "button", ICON_BUTTON = "icon_button", ICON = "icon", CUSTOM_HTML = "custom_html" } declare class ColumnResizeHandler { start: Element; pressed: boolean; startX: number; startWidth: number; minWidth: number; } export declare class BiitTableSorting { name: string; order: BiitTableSortingOrder; constructor(name: string, order: BiitTableSortingOrder); } export declare enum BiitTableSortingOrder { ASC = "asc", DESC = "desc" } export declare class BiitTableResponse { currentPage: number; pageSize: number; search: string; sorting: BiitTableSorting; constructor(currentPage: number, pageSize: number, search: string, sorting: BiitTableSorting); } export declare class BiitTableData { data: T[]; totalItems: number; constructor(data: T[], totalItems: number); } export declare class BiitTableActionResponse { item: any; column: string; constructor(item: any, column: string); } export declare class BiitTableSelectableDirective { private parent; constructor(parent: BiitTableComponent); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BiitTableSelectableSingleDirective { private parent; constructor(parent: BiitTableComponent); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BiitTableSortableDirective { private parent; constructor(parent: BiitTableComponent); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BiitTableHeaderlessDirective { private parent; constructor(parent: BiitTableComponent); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BiitTableFooterlessDirective { private parent; constructor(parent: BiitTableComponent); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BiitTableComponent implements OnInit, AfterViewChecked { private renderer; private elem; set _data(data: BiitTableData); set _loading(loading: boolean); columns: BiitTableColumn[]; pageSizes: number[]; defaultPageSize: number; actionsTpl: TemplateRef; isSelectable: boolean; isSelectableSingle: boolean; isSortable: boolean; hideHeader: boolean; hideFooter: boolean; onUpdate: EventEmitter; onCellAction: EventEmitter; onRowClick: EventEmitter; protected data: BiitTableData; protected paginator: any; protected sorting: BiitTableSorting; protected selectedRows: Set; protected columnResize: ColumnResizeHandler; protected loading: boolean; protected search: string; protected currentSearch: string; protected readonly BiitMultiselectType: typeof BiitMultiselectType; protected readonly BiitTableColumnFormat: typeof BiitTableColumnFormat; private findTimeout; constructor(renderer: Renderer2, elem: ElementRef); ngOnInit(): void; ngAfterViewChecked(): void; private setColumnSize; columnInnerWordFitCheck(column: HTMLElement): void; setLoadingBar(): void; onTableUpdate(force?: boolean): void; onTableSort(column: BiitTableColumn): void; snakeToCamel(string: string): string; resizeColumn(event: any, column: BiitTableColumn, index: any): void; private initResizableColumns; setColumnVisibility(response: BiitTableColumn[]): void; selectRow(item: any, holdCtrl: any): void; getSelectedRows(): any[]; setSelectedRows(_selectedRows: any[]): void; emitCellAction(item: any, column: string, event: Event): void; emitRowClick(item: any): void; resetInputValue(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class VisibleColumnsPipe implements PipeTransform { transform(value: BiitTableColumn[]): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class ColumnDataPipe implements PipeTransform { transform(value: any, columnName: string): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class BiitPaginatorOptions { currentPage: number; pageSize: number; pageSizeOptions: number[]; totalItems: number; hidePageSize: boolean; hideFirstLastButtons: boolean; constructor(currentPage: number, pageSize: number, pageSizeOptions: number[], totalItems?: number, hidePageSize?: boolean, hideFirstLastButtons?: boolean); } export declare class BiitPaginatorComponent { protected paginator: BiitPaginatorOptions; protected totalPages: number; protected dropdownOpen: boolean; pageSelector: ElementRef; selectorBtn: ElementRef; selectorList: ElementRef; pageInput: ElementRef; totalPagesLabel: ElementRef; constructor(); onChange: (value: any) => void; onTouched: () => void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; writeValue(value: any): void; onModelChange(): void; handleMouseEvents($event: PointerEvent): void; handleKeyboardEvents($event: KeyboardEvent): void; private setTooltipComponentProperties; openDropdown(): void; closeDropdown(): void; calculateTotalPages(): void; setInputValue(event: Event): void; resetInputValue(event: Event): void; refreshCenterStyle(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BiitPaginatorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export declare class BiitTableModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export declare class GenericFilter { static filter(object: T, value: string, includes?: boolean, caseSensitive?: boolean, params?: string[]): boolean; } export declare class GenericSort { static sort(data: T[], sorting: BiitTableSorting, columns: BiitTableColumn[]): T[]; } type ValueGetter = (obj: any, prop: TableColumnProp) => any; export declare class DatatableColumn implements TableColumn { /** * Internal unique id * * @memberOf TableColumn */ $$id?: string; /** * Internal for column width distributions * * @memberOf TableColumn */ $$oldWidth?: number; /** * Internal for setColumnDefaults * * @memberOf TableColumn */ $$valueGetter?: ValueGetter; /** * Determines if column is checkbox * * @memberOf TableColumn */ checkboxable?: boolean; /** * Determines if the column is frozen to the left * * @memberOf TableColumn */ frozenLeft?: boolean; /** * Determines if the column is frozen to the right * * @memberOf TableColumn */ frozenRight?: boolean; /** * The grow factor relative to other columns. Same as the flex-grow * API from http =//www.w3.org/TR/css3-flexbox/. Basically; * take any available extra width and distribute it proportionally * according to all columns' flexGrow values. * * @memberOf TableColumn */ flexGrow?: number; /** * Min width of the column * * @memberOf TableColumn */ minWidth?: number; /** * Max width of the column * * @memberOf TableColumn */ maxWidth?: number; /** * The default width of the column, in pixels * * @memberOf TableColumn */ width?: number; /** * Can the column be resized * * @memberOf TableColumn */ resizeable?: boolean; /** * Custom sort comparator * * @memberOf TableColumn */ comparator?: any; /** * Custom pipe transforms * * @memberOf TableColumn */ pipe?: PipeTransform; /** * Can the column be sorted * * @memberOf TableColumn */ sortable?: boolean; /** * Can the column be re-arranged by dragging * * @memberOf TableColumn */ draggable?: boolean; /** * Whether the column can automatically resize to fill space in the table. * * @memberOf TableColumn */ canAutoResize?: boolean; /** * Column name or label * * @memberOf TableColumn */ name?: string; /** * Property to bind to the row. Example: * * `someField` or `some.field.nested`, 0 (numeric) * * If left blank, will use the name as camel case conversion * * @memberOf TableColumn */ prop?: string | number; /** * Cell template ref * * @memberOf TableColumn */ cellTemplate?: any; /** * Ghost Cell template ref * * @memberOf TableColumn */ ghostCellTemplate?: any; /** * Header template ref * * @memberOf TableColumn */ headerTemplate?: any; /** * Tree toggle template ref * * @memberOf TableColumn */ treeToggleTemplate?: any; /** * CSS Classes for the cell * * * @memberOf TableColumn */ cellClass?: string | ((data: any) => string | any); /** * CSS classes for the header * * * @memberOf TableColumn */ headerClass?: string | ((data: any) => string | any); /** * Header checkbox enabled * * @memberOf TableColumn */ headerCheckboxable?: boolean; /** * Is tree displayed on this column * * @memberOf TableColumn */ isTreeColumn?: boolean; /** * Width of the tree level indent * * @memberOf TableColumn */ treeLevelIndent?: number; /** * Summary function * * @memberOf TableColumn */ summaryFunc?: (cells: any[]) => any; /** * Summary cell template ref * * @memberOf TableColumn */ summaryTemplate?: any; /** * Sets visibility of the column */ visible?: boolean; constructor(name: string, prop: string | number, visible?: boolean, width?: number, sortable?: boolean, pipe?: PipeTransform, cellTemplate?: TemplateRef, cellClass?: string | ((data: any) => string | any), comparator?: Function); } export declare class Page { totalElements: number; pageNumber: number; pageSize: number; constructor(pageNumber: number, pageSize: number, totalElements?: number); } export declare class BiitDatatableComponent implements OnInit { private readonly cdr; table: DatatableComponent; _data: T[]; allData: T[]; set data(data: T[]); get data(): T[]; _columns: DatatableColumn[]; allColumns: DatatableColumn[]; set columns(columns: DatatableColumn[]); get columns(): DatatableColumn[]; selected: T[]; get selectedRows(): T[]; pageSize?: number; pageSizeList: number[]; loading: boolean; selectable?: any; singleSelection?: any; scrollbarH?: any; hideHeader?: any; hideFooter?: any; serverSide?: any; page?: Page; rowStylePredicate?: (row: T) => boolean; rowStyleClass: string; search: string; onSelection: EventEmitter; onPageChange: EventEmitter; actionsTpl: TemplateRef; protected readonly ColumnMode: { readonly standard: "standard"; readonly flex: "flex"; readonly force: "force"; }; protected readonly SelectionType: { readonly single: "single"; readonly multi: "multi"; readonly multiClick: "multiClick"; readonly cell: "cell"; readonly checkbox: "checkbox"; }; protected readonly BiitMultiselectType: typeof BiitMultiselectType; private findTimeout; getRowClass: (row: T) => string; constructor(biitIconService: BiitIconService, cdr: ChangeDetectorRef); ngOnInit(): void; onSelect({ selected }: { selected: any; }): void; onActivate(event: ActivateEvent): void; onFilter(value: string, force?: boolean): void; private filterData; onFooterPageChange(event: any): void; setColumnVisibility(columns: DatatableColumn[]): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "biit-datatable", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "singleSelection": { "alias": "singleSelection"; "required": false; }; "scrollbarH": { "alias": "scrollbarH"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "hideFooter": { "alias": "hideFooter"; "required": false; }; "serverSide": { "alias": "serverSide"; "required": false; }; "page": { "alias": "page"; "required": false; }; "rowStylePredicate": { "alias": "rowStylePredicate"; "required": false; }; "rowStyleClass": { "alias": "rowStyleClass"; "required": false; }; }, { "onSelection": "onSelection"; "onPageChange": "onPageChange"; }, ["actionsTpl"], ["*"], false, never>; } declare class BiitDatatablePagerComponent extends DatatablePagerComponent { constructor(biitIconService: BiitIconService); enforceMinMax(el: any): void; log(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BiitDatatablePagerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export declare class BiitDatatableModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export {};