import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { NzTableQueryParams } from 'ng-zorro-antd/table'; import { Subscription } from 'rxjs'; import { PaginationPosition } from '../../enums/paginationPosition.enum'; import { TypeExecuteTable } from '../../enums/typeTable.enum'; import { ColumnTable } from '../../interfaces/columns/column'; import { TableEvents } from '../../interfaces/emiters'; import { ExpandOption } from '../../interfaces/export'; import { ArgumentTable, EmptyState, TypeTables } from '../../interfaces/table'; import { SubjectsService } from '../../services/subjects.service'; import { TableGraphQlService } from '../../services/tableGraphQl.service'; import { TableMonolithService } from '../../services/tableMonolith.service'; import { TableMSService } from '../../services/tableMS.service'; import { DataTable } from '../../interfaces/data'; import { SortTable } from '../../interfaces/table'; import * as i0 from "@angular/core"; /** * Table component */ export declare class TableComponent implements OnInit, OnDestroy { private tableMSService; private subjectsService; private tableGraphQlService; private tableMonolithService; /** * Array data */ data: Array>; /** * Table */ table: TypeTables; /** * Array columns */ columns: Array; /** * Loader */ loading: boolean; /** * Emitter to execute option */ executeOption: EventEmitter; /** * Emitter to table */ tableEvents: EventEmitter; /** * Emitter of change filter */ executeOptionFilter: EventEmitter; /** * Selected row when the same is clicked */ rowClicked: EventEmitter; /** * total elements in table */ total: number; /** * size page in table */ size: number; /** * number of page in table */ page: number; /** * subscription request get data */ subscriptionData: Subscription; /** * actual sort data */ sort: SortTable; /** * actual argument to filter data */ argument: Array | undefined; /** * Actual filters */ filter: Map; /** * subscription external component communication */ subscriptionExternal: Subscription; /** * show/hidden multi-check */ showChecked: boolean; /** * checked all elements column */ checked: boolean; /** * indeterminate checked */ indeterminate: boolean; /** * check data in current page */ listOfCurrentPageData: ReadonlyArray; /** * all data checked */ setOfCheckedData: Map; /** * pagination position table */ BOTTOM: PaginationPosition; /** * set a custom empty state */ emptyState: EmptyState; /** * all ids to expand info */ expandSet: Set; /** * environment */ environment: any; /** * constructor * @param ENVIRONMENT * @param tableMSService service that manages all communication with the api for MS * @param subjectsService externalExecutions intra components * @param tableGraphQlService service that manages all communication with the api for GraphQl * @param tableMonolithService service that manages all communication with the api for Monolith */ constructor(ENVIRONMENT: any, tableMSService: TableMSService, subjectsService: SubjectsService, tableGraphQlService: TableGraphQlService, tableMonolithService: TableMonolithService); /** * NgOnInit */ ngOnInit(): void; /** * change the value of the checked value */ changeShowChecked(): void; /** * returns the value of the selected attribute or by default the uuid * @param item object value */ getIdChecksBox(item: any): any; /** * return if the column is checked or not (can use a personalize function) * @param data */ getRowChecked(data: any): boolean; /** * obtain children value from object and string param * @param obj * @param path path to search in object */ getPropByString(obj: any, path: any): any; /** * check/uncheck all row * @param value true/false value to check/uncheck */ onAllChecked(value: boolean): void; /** * update status value check row */ refreshCheckedStatus(): void; /** * add data or delete in map * @param id row * @param checked value (checked/unchecked) * @param data data to update */ updateCheckedSet(id: string, checked: boolean, data?: any): void; /** * checked change emitter * @param id row * @param checked value (checked/unchecked) * @param data data to update */ onItemChecked(id: string, checked: boolean, data: any): void; /** * Current page data change * @param $event values in array */ onCurrentPageDataChange($event: ReadonlyArray): void; /** * init table */ initTables(init?: boolean): void; /** * init table list */ initTableList(): void; /** * init table entity */ initTableEntity(init?: boolean): void; /** * Add default sort */ addDefaultSort(): void; /** * Get data table * @param page actual page * @param size size of table for page * @param type type of table */ getData(page: number, size: number | undefined, type: TypeExecuteTable): void; /** * Get data from the type table * @param page actual page * @param table type of table * @return observable */ getTableService(page: any, table: any): any; /** * response of observable get data * @param data response data * @param loading value of loading * @param page actual page * @param type type of table * @param state state of observable * @param totalElements total elements table * @param response all response */ responseData(data: any, loading: any, page: any, type: any, state: any, totalElements: any, response: any): void; /** * emitter of click events * @param event click event * @param index * @return void */ clickOption(event: any, index: number): void; /** * Page index change * @param page page */ nzPageIndexChange(page: any): void; /** * Page size change * @param size size */ nzPageSizeChange(size: any): void; /** * Query params change * @param params object page size sort filter */ onQueryParamsChange(params: NzTableQueryParams): void; /** * Sort order change * @param event type sort * @param column actual column */ actionOrder(event: any, column: ColumnTable): void; /** * Emit column data when the row is clicked * @param event */ selectRow(event: any): void; /** * execute filters (delete/action) * @param param type: type of filter data: all data column: actual column */ executeFilter({ type, data, column }: { type: any; data: any; column: any; }): void; /** * is visible filter * @param event value * @param column actual column */ nzVisibleChangeFilters(event: any, column: ColumnTable): void; /** * validates if the filter is active * @param column actual column * @return true or false */ isActiveFilter(column: ColumnTable): boolean; /** * get empty state */ getEmptyState(): void; /** * NgOnDestroy */ ngOnDestroy(): void; /** * Validate if the scroll is active and set parameters */ getScrollTable(): { x: any; y: any; } | { x: string; y?: undefined; }; /** * function to execute when drag and drop emit */ sortChange(event: any): void; /** * Set and delete rows to expand * @param id value row to expand */ onExpandChange(id: number): void; /** * get template * @param options actual options * @return template expand */ getCustomTemplate(options: Array): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }