import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core'; import { MatCheckboxChange } from '@angular/material/checkbox'; import { VariableSummary } from '@mtna/pojo-consumer-ui'; import { RdsResizeableTableComponent } from '../core/components/resizeable-table.component'; import { RDS_DATA_DICTIONARY_COLUMNS, RdsDataDictionaryTableColumn } from './data-dictionary-table-column.model'; export declare const RDS_DICTIONARY_TABLE_MIN_COL_WIDTH = 50; export declare const RDS_DICTIONARY_DEFAULT_COLUMNS: RdsDataDictionaryTableColumn[]; export declare class RdsDataDictionaryToggleEvent { selected: boolean; variable: VariableSummary; constructor(selected: boolean, variable: VariableSummary); } /** * Custom mat-table used to display variables in a data-dictionary view. * Ability to select variables(rows) * * @author Will Davis */ export declare class RdsDataDictionaryTableComponent extends RdsResizeableTableComponent implements OnInit { /** * All the column options to choose from. Defaults to: * `RDS_DATA_DICTIONARY_ALL_COLUMNS.slice()` */ allColumnOptions: Array; /** * The default, visible table columns to render. Defaults to: * `RDS_DATA_DICTIONARY_ALL_COLUMNS.slice(0, 5)` */ get columns(): Array; set columns(cols: Array); private _columns; /** Whether the variables are loading, ghost elements will render in their place */ loading: boolean; /** * Whether the toggled variables represent the selected, or unselected. * For instance, if the user selects 100+ variables, and unselects 5, * the 'toggled' variables will be the 5 unselected & 'toggledAreSelected' will be false; * i.e. * user selects 95 out of 100 => toggledAreSelected: false, toggled.length: 5;; * user selects 5 out of 100 => toggledAreSelected: true, toggled.length: 5; */ get toggledAreSelected(): any; set toggledAreSelected(selected: any); private _toggledAreSelected; /** The set of (un)selected variables toggled by the user */ set toggledUris(variableUris: string[]); /** uri map of variables currently toggled */ _toggledUris: { [uri: string]: boolean; }; /** Variables to display in the table */ get variables(): Array; set variables(variables: Array); private _variables; /** Event emitted when the user toggles an individual variable selection */ toggle: EventEmitter; /** Event emitted when the user selects all visible variables */ selectAll: EventEmitter; /** Event emitted when the user deselects all visible variables */ selectNone: EventEmitter; /** Emitted to show additional variable details */ viewDetails: EventEmitter; get areColumnsSet(): boolean; /** Whether the table has at least 1 toggled variable */ get hasChecked(): boolean; get minColWidth(): number; constructor(cdr: ChangeDetectorRef); handleSelectAll(): void; /** Whether all the visible variables are selected */ isAllSelected(): boolean; ngOnInit(): void; masterToggle(event: MatCheckboxChange): void; protected getColumnWidth(id: RDS_DATA_DICTIONARY_COLUMNS): number; }