988 lines
45 KiB
TypeScript
988 lines
45 KiB
TypeScript
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
import { BlockableUI, FilterMetadata, FilterService, PrimeNGConfig, PrimeTemplate, ScrollerOptions, SortMeta, TreeNode, TreeTableNode } from 'primeng/api';
|
|
import { Scroller } from 'primeng/scroller';
|
|
import { Nullable, VoidListener } from 'primeng/ts-helpers';
|
|
import { Subscription } from 'rxjs';
|
|
import { TreeTableColResizeEvent, TreeTableColumnReorderEvent, TreeTableContextMenuSelectEvent, TreeTableEditEvent, TreeTableFilterEvent, TreeTableFilterOptions, TreeTableHeaderCheckboxToggleEvent, TreeTableLazyLoadEvent, TreeTableNodeCollapseEvent, TreeTableNodeExpandEvent, TreeTableNodeUnSelectEvent, TreeTablePaginatorState, TreeTableSortEvent } from './treetable.interface';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
import * as i2 from "primeng/paginator";
|
|
import * as i3 from "primeng/ripple";
|
|
import * as i4 from "primeng/scroller";
|
|
import * as i5 from "primeng/icons/spinner";
|
|
import * as i6 from "primeng/icons/arrowdown";
|
|
import * as i7 from "primeng/icons/arrowup";
|
|
import * as i8 from "primeng/icons/sortalt";
|
|
import * as i9 from "primeng/icons/sortamountupalt";
|
|
import * as i10 from "primeng/icons/sortamountdown";
|
|
import * as i11 from "primeng/icons/check";
|
|
import * as i12 from "primeng/icons/minus";
|
|
import * as i13 from "primeng/icons/chevrondown";
|
|
import * as i14 from "primeng/icons/chevronright";
|
|
import * as i15 from "primeng/api";
|
|
export declare class TreeTableService {
|
|
private sortSource;
|
|
private selectionSource;
|
|
private contextMenuSource;
|
|
private uiUpdateSource;
|
|
private totalRecordsSource;
|
|
sortSource$: import("rxjs").Observable<SortMeta | SortMeta[]>;
|
|
selectionSource$: import("rxjs").Observable<unknown>;
|
|
contextMenuSource$: import("rxjs").Observable<any>;
|
|
uiUpdateSource$: import("rxjs").Observable<any>;
|
|
totalRecordsSource$: import("rxjs").Observable<any>;
|
|
onSort(sortMeta: SortMeta | SortMeta[] | null): void;
|
|
onSelectionChange(): void;
|
|
onContextMenu(node: any): void;
|
|
onUIUpdate(value: any): void;
|
|
onTotalRecordsChange(value: number): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableService, never>;
|
|
static ɵprov: i0.ɵɵInjectableDeclaration<TreeTableService>;
|
|
}
|
|
/**
|
|
* TreeTable is used to display hierarchical data in tabular format.
|
|
* @group Components
|
|
*/
|
|
export declare class TreeTable implements AfterContentInit, OnInit, OnDestroy, BlockableUI, OnChanges {
|
|
private document;
|
|
private renderer;
|
|
el: ElementRef;
|
|
cd: ChangeDetectorRef;
|
|
zone: NgZone;
|
|
tableService: TreeTableService;
|
|
filterService: FilterService;
|
|
config: PrimeNGConfig;
|
|
/**
|
|
* An array of objects to represent dynamic columns.
|
|
* @group Props
|
|
*/
|
|
columns: any[] | undefined;
|
|
/**
|
|
* Inline style of the component.
|
|
* @group Props
|
|
*/
|
|
style: {
|
|
[klass: string]: any;
|
|
} | null | undefined;
|
|
/**
|
|
* Style class of the component.
|
|
* @group Props
|
|
*/
|
|
styleClass: string | undefined;
|
|
/**
|
|
* Inline style of the table.
|
|
* @group Props
|
|
*/
|
|
tableStyle: {
|
|
[klass: string]: any;
|
|
} | null | undefined;
|
|
/**
|
|
* Style class of the table.
|
|
* @group Props
|
|
*/
|
|
tableStyleClass: string | undefined;
|
|
/**
|
|
* Whether the cell widths scale according to their content or not.
|
|
* @group Props
|
|
*/
|
|
autoLayout: boolean | undefined;
|
|
/**
|
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
* @group Props
|
|
*/
|
|
lazy: boolean;
|
|
/**
|
|
* Whether to call lazy loading on initialization.
|
|
* @group Props
|
|
*/
|
|
lazyLoadOnInit: boolean;
|
|
/**
|
|
* When specified as true, enables the pagination.
|
|
* @group Props
|
|
*/
|
|
paginator: boolean | undefined;
|
|
/**
|
|
* Number of rows to display per page.
|
|
* @group Props
|
|
*/
|
|
rows: number | undefined;
|
|
/**
|
|
* Index of the first row to be displayed.
|
|
* @group Props
|
|
*/
|
|
first: number;
|
|
/**
|
|
* Number of page links to display in paginator.
|
|
* @group Props
|
|
*/
|
|
pageLinks: number;
|
|
/**
|
|
* Array of integer/object values to display inside rows per page dropdown of paginator
|
|
* @group Props
|
|
*/
|
|
rowsPerPageOptions: any[] | undefined;
|
|
/**
|
|
* Whether to show it even there is only one page.
|
|
* @group Props
|
|
*/
|
|
alwaysShowPaginator: boolean;
|
|
/**
|
|
* Position of the paginator.
|
|
* @group Props
|
|
*/
|
|
paginatorPosition: 'top' | 'bottom' | 'both';
|
|
/**
|
|
* Custom style class for paginator
|
|
* @group Props
|
|
*/
|
|
paginatorStyleClass: string | undefined;
|
|
/**
|
|
* Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
* @group Props
|
|
*/
|
|
paginatorDropdownAppendTo: HTMLElement | ElementRef | TemplateRef<any> | string | null | undefined | any;
|
|
/**
|
|
* Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
|
|
* @group Props
|
|
*/
|
|
currentPageReportTemplate: string;
|
|
/**
|
|
* Whether to display current page report.
|
|
* @group Props
|
|
*/
|
|
showCurrentPageReport: boolean | undefined;
|
|
/**
|
|
* Whether to display a dropdown to navigate to any page.
|
|
* @group Props
|
|
*/
|
|
showJumpToPageDropdown: boolean | undefined;
|
|
/**
|
|
* When enabled, icons are displayed on paginator to go first and last page.
|
|
* @group Props
|
|
*/
|
|
showFirstLastIcon: boolean;
|
|
/**
|
|
* Whether to show page links.
|
|
* @group Props
|
|
*/
|
|
showPageLinks: boolean;
|
|
/**
|
|
* Sort order to use when an unsorted column gets sorted by user interaction.
|
|
* @group Props
|
|
*/
|
|
defaultSortOrder: number;
|
|
/**
|
|
* Defines whether sorting works on single column or on multiple columns.
|
|
* @group Props
|
|
*/
|
|
sortMode: 'single' | 'multiple';
|
|
/**
|
|
* When true, resets paginator to first page after sorting.
|
|
* @group Props
|
|
*/
|
|
resetPageOnSort: boolean;
|
|
/**
|
|
* Whether to use the default sorting or a custom one using sortFunction.
|
|
* @group Props
|
|
*/
|
|
customSort: boolean | undefined;
|
|
/**
|
|
* Specifies the selection mode, valid values are "single" and "multiple".
|
|
* @group Props
|
|
*/
|
|
selectionMode: string | undefined;
|
|
/**
|
|
* Selected row with a context menu.
|
|
* @group Props
|
|
*/
|
|
contextMenuSelection: any;
|
|
/**
|
|
* Mode of the contet menu selection.
|
|
* @group Props
|
|
*/
|
|
contextMenuSelectionMode: string;
|
|
/**
|
|
* A property to uniquely identify a record in data.
|
|
* @group Props
|
|
*/
|
|
dataKey: string | undefined;
|
|
/**
|
|
* Defines whether metaKey is should be considered for the selection. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
* @group Props
|
|
*/
|
|
metaKeySelection: boolean | undefined;
|
|
/**
|
|
* Algorithm to define if a row is selected, valid values are "equals" that compares by reference and "deepEquals" that compares all fields.
|
|
* @group Props
|
|
*/
|
|
compareSelectionBy: string;
|
|
/**
|
|
* Adds hover effect to rows without the need for selectionMode.
|
|
* @group Props
|
|
*/
|
|
rowHover: boolean | undefined;
|
|
/**
|
|
* Displays a loader to indicate data load is in progress.
|
|
* @group Props
|
|
*/
|
|
loading: boolean | undefined;
|
|
/**
|
|
* The icon to show while indicating data load is in progress.
|
|
* @group Props
|
|
*/
|
|
loadingIcon: string | undefined;
|
|
/**
|
|
* Whether to show the loading mask when loading property is true.
|
|
* @group Props
|
|
*/
|
|
showLoader: boolean;
|
|
/**
|
|
* When specifies, enables horizontal and/or vertical scrolling.
|
|
* @group Props
|
|
*/
|
|
scrollable: boolean | undefined;
|
|
/**
|
|
* Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
|
|
* @group Props
|
|
*/
|
|
scrollHeight: string | undefined;
|
|
/**
|
|
* Whether the data should be loaded on demand during scroll.
|
|
* @group Props
|
|
*/
|
|
virtualScroll: boolean | undefined;
|
|
/**
|
|
* Height of a row to use in calculations of virtual scrolling.
|
|
* @group Props
|
|
*/
|
|
virtualScrollItemSize: number | undefined;
|
|
/**
|
|
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
* @group Props
|
|
*/
|
|
virtualScrollOptions: ScrollerOptions | undefined;
|
|
/**
|
|
* The delay (in milliseconds) before triggering the virtual scroll. This determines the time gap between the user's scroll action and the actual rendering of the next set of items in the virtual scroll.
|
|
* @group Props
|
|
*/
|
|
virtualScrollDelay: number;
|
|
/**
|
|
* Width of the frozen columns container.
|
|
* @group Props
|
|
*/
|
|
frozenWidth: string | undefined;
|
|
/**
|
|
* An array of objects to represent dynamic columns that are frozen.
|
|
* @group Props
|
|
*/
|
|
frozenColumns: {
|
|
[klass: string]: any;
|
|
} | null | undefined;
|
|
/**
|
|
* When enabled, columns can be resized using drag and drop.
|
|
* @group Props
|
|
*/
|
|
resizableColumns: boolean | undefined;
|
|
/**
|
|
* Defines whether the overall table width should change on column resize, valid values are "fit" and "expand".
|
|
* @group Props
|
|
*/
|
|
columnResizeMode: string;
|
|
/**
|
|
* When enabled, columns can be reordered using drag and drop.
|
|
* @group Props
|
|
*/
|
|
reorderableColumns: boolean | undefined;
|
|
/**
|
|
* Local ng-template varilable of a ContextMenu.
|
|
* @group Props
|
|
*/
|
|
contextMenu: any;
|
|
/**
|
|
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
|
|
* @group Props
|
|
*/
|
|
rowTrackBy: Function;
|
|
/**
|
|
* An array of FilterMetadata objects to provide external filters.
|
|
* @group Props
|
|
*/
|
|
filters: {
|
|
[s: string]: FilterMetadata | undefined;
|
|
};
|
|
/**
|
|
* An array of fields as string to use in global filtering.
|
|
* @group Props
|
|
*/
|
|
globalFilterFields: string[] | undefined;
|
|
/**
|
|
* Delay in milliseconds before filtering the data.
|
|
* @group Props
|
|
*/
|
|
filterDelay: number;
|
|
/**
|
|
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
* @group Props
|
|
*/
|
|
filterMode: string;
|
|
/**
|
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
* @group Props
|
|
*/
|
|
filterLocale: string | undefined;
|
|
/**
|
|
* Locale to be used in paginator formatting.
|
|
* @group Props
|
|
*/
|
|
paginatorLocale: string | undefined;
|
|
/**
|
|
* Number of total records, defaults to length of value when not defined.
|
|
* @group Props
|
|
*/
|
|
get totalRecords(): number;
|
|
set totalRecords(val: number);
|
|
/**
|
|
* Name of the field to sort data by default.
|
|
* @group Props
|
|
*/
|
|
get sortField(): string | undefined | null;
|
|
set sortField(val: string | undefined | null);
|
|
/**
|
|
* Order to sort when default sorting is enabled.
|
|
* @defaultValue 1
|
|
* @group Props
|
|
*/
|
|
get sortOrder(): number;
|
|
set sortOrder(val: number);
|
|
/**
|
|
* An array of SortMeta objects to sort the data by default in multiple sort mode.
|
|
* @defaultValue null
|
|
* @group Props
|
|
*/
|
|
get multiSortMeta(): SortMeta[] | undefined | null;
|
|
set multiSortMeta(val: SortMeta[] | undefined | null);
|
|
/**
|
|
* Selected row in single mode or an array of values in multiple mode.
|
|
* @defaultValue null
|
|
* @group Props
|
|
*/
|
|
get selection(): any;
|
|
set selection(val: any);
|
|
/**
|
|
* An array of objects to display.
|
|
* @defaultValue null
|
|
* @group Props
|
|
*/
|
|
get value(): TreeNode<any>[] | undefined;
|
|
set value(val: TreeNode<any>[] | undefined);
|
|
/**
|
|
* Indicates the height of rows to be scrolled.
|
|
* @defaultValue 28
|
|
* @group Props
|
|
* @deprecated use virtualScrollItemSize property instead.
|
|
*/
|
|
get virtualRowHeight(): number;
|
|
set virtualRowHeight(val: number);
|
|
/**
|
|
* A map of keys to control the selection state.
|
|
* @group Props
|
|
*/
|
|
get selectionKeys(): any;
|
|
set selectionKeys(value: any);
|
|
/**
|
|
* Callback to invoke on selected node change.
|
|
* @param {TreeTableNode} object - Node instance.
|
|
* @group Emits
|
|
*/
|
|
selectionChange: EventEmitter<TreeTableNode<any> | TreeTableNode<any>[] | null>;
|
|
/**
|
|
* Callback to invoke on context menu selection change.
|
|
* @param {TreeTableNode} object - Node instance.
|
|
* @group Emits
|
|
*/
|
|
contextMenuSelectionChange: EventEmitter<TreeTableNode>;
|
|
/**
|
|
* Callback to invoke when data is filtered.
|
|
* @param {TreeTableFilterEvent} event - Custom filter event.
|
|
* @group Emits
|
|
*/
|
|
onFilter: EventEmitter<TreeTableFilterEvent>;
|
|
/**
|
|
* Callback to invoke when a node is expanded.
|
|
* @param {TreeTableNodeExpandEvent} event - Node expand event.
|
|
* @group Emits
|
|
*/
|
|
onNodeExpand: EventEmitter<TreeTableNodeExpandEvent>;
|
|
/**
|
|
* Callback to invoke when a node is collapsed.
|
|
* @param {TreeTableNodeCollapseEvent} event - Node collapse event.
|
|
* @group Emits
|
|
*/
|
|
onNodeCollapse: EventEmitter<TreeTableNodeCollapseEvent>;
|
|
/**
|
|
* Callback to invoke when pagination occurs.
|
|
* @param {TreeTablePaginatorState} object - Paginator state.
|
|
* @group Emits
|
|
*/
|
|
onPage: EventEmitter<TreeTablePaginatorState>;
|
|
/**
|
|
* Callback to invoke when a column gets sorted.
|
|
* @param {Object} Object - Sort data.
|
|
* @group Emits
|
|
*/
|
|
onSort: EventEmitter<any>;
|
|
/**
|
|
* Callback to invoke when paging, sorting or filtering happens in lazy mode.
|
|
* @param {TreeTableLazyLoadEvent} event - Custom lazy load event.
|
|
* @group Emits
|
|
*/
|
|
onLazyLoad: EventEmitter<TreeTableLazyLoadEvent>;
|
|
/**
|
|
* An event emitter to invoke on custom sorting, refer to sorting section for details.
|
|
* @param {TreeTableSortEvent} event - Custom sort event.
|
|
* @group Emits
|
|
*/
|
|
sortFunction: EventEmitter<TreeTableSortEvent>;
|
|
/**
|
|
* Callback to invoke when a column is resized.
|
|
* @param {TreeTableColResizeEvent} event - Custom column resize event.
|
|
* @group Emits
|
|
*/
|
|
onColResize: EventEmitter<TreeTableColResizeEvent>;
|
|
/**
|
|
* Callback to invoke when a column is reordered.
|
|
* @param {TreeTableColumnReorderEvent} event - Custom column reorder.
|
|
* @group Emits
|
|
*/
|
|
onColReorder: EventEmitter<TreeTableColumnReorderEvent>;
|
|
/**
|
|
* Callback to invoke when a node is selected.
|
|
* @param {TreeTableNode} object - Node instance.
|
|
* @group Emits
|
|
*/
|
|
onNodeSelect: EventEmitter<TreeTableNode>;
|
|
/**
|
|
* Callback to invoke when a node is unselected.
|
|
* @param {TreeTableNodeUnSelectEvent} event - Custom node unselect event.
|
|
* @group Emits
|
|
*/
|
|
onNodeUnselect: EventEmitter<TreeTableNodeUnSelectEvent>;
|
|
/**
|
|
* Callback to invoke when a node is selected with right click.
|
|
* @param {TreeTableContextMenuSelectEvent} event - Custom context menu select event.
|
|
* @group Emits
|
|
*/
|
|
onContextMenuSelect: EventEmitter<TreeTableContextMenuSelectEvent>;
|
|
/**
|
|
* Callback to invoke when state of header checkbox changes.
|
|
* @param {TreeTableHeaderCheckboxToggleEvent} event - Custom checkbox toggle event.
|
|
* @group Emits
|
|
*/
|
|
onHeaderCheckboxToggle: EventEmitter<TreeTableHeaderCheckboxToggleEvent>;
|
|
/**
|
|
* Callback to invoke when a cell switches to edit mode.
|
|
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
* @group Emits
|
|
*/
|
|
onEditInit: EventEmitter<TreeTableEditEvent>;
|
|
/**
|
|
* Callback to invoke when cell edit is completed.
|
|
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
* @group Emits
|
|
*/
|
|
onEditComplete: EventEmitter<TreeTableEditEvent>;
|
|
/**
|
|
* Callback to invoke when cell edit is cancelled with escape key.
|
|
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
* @group Emits
|
|
*/
|
|
onEditCancel: EventEmitter<TreeTableEditEvent>;
|
|
/**
|
|
* Callback to invoke when selectionKeys are changed.
|
|
* @param {Object} object - updated value of the selectionKeys.
|
|
* @group Emits
|
|
*/
|
|
selectionKeysChange: EventEmitter<any>;
|
|
containerViewChild: Nullable<ElementRef>;
|
|
resizeHelperViewChild: Nullable<ElementRef>;
|
|
reorderIndicatorUpViewChild: Nullable<ElementRef>;
|
|
reorderIndicatorDownViewChild: Nullable<ElementRef>;
|
|
tableViewChild: Nullable<ElementRef>;
|
|
scrollableViewChild: Nullable<ElementRef>;
|
|
scrollableFrozenViewChild: Nullable<ElementRef>;
|
|
templates: Nullable<QueryList<PrimeTemplate>>;
|
|
_value: TreeNode<any>[] | undefined;
|
|
_virtualRowHeight: number;
|
|
_selectionKeys: any;
|
|
serializedValue: any[] | undefined | null;
|
|
_totalRecords: number;
|
|
_multiSortMeta: SortMeta[] | undefined | null;
|
|
_sortField: string | undefined | null;
|
|
_sortOrder: number;
|
|
filteredNodes: Nullable<any[]>;
|
|
filterTimeout: any;
|
|
colGroupTemplate: Nullable<TemplateRef<any>>;
|
|
captionTemplate: Nullable<TemplateRef<any>>;
|
|
headerTemplate: Nullable<TemplateRef<any>>;
|
|
bodyTemplate: Nullable<TemplateRef<any>>;
|
|
footerTemplate: Nullable<TemplateRef<any>>;
|
|
summaryTemplate: Nullable<TemplateRef<any>>;
|
|
emptyMessageTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorLeftTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorRightTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorDropdownItemTemplate: Nullable<TemplateRef<any>>;
|
|
frozenHeaderTemplate: Nullable<TemplateRef<any>>;
|
|
frozenBodyTemplate: Nullable<TemplateRef<any>>;
|
|
frozenFooterTemplate: Nullable<TemplateRef<any>>;
|
|
frozenColGroupTemplate: Nullable<TemplateRef<any>>;
|
|
loadingIconTemplate: Nullable<TemplateRef<any>>;
|
|
reorderIndicatorUpIconTemplate: Nullable<TemplateRef<any>>;
|
|
reorderIndicatorDownIconTemplate: Nullable<TemplateRef<any>>;
|
|
sortIconTemplate: Nullable<TemplateRef<any>>;
|
|
checkboxIconTemplate: Nullable<TemplateRef<any>>;
|
|
headerCheckboxIconTemplate: Nullable<TemplateRef<any>>;
|
|
togglerIconTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorFirstPageLinkIconTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorLastPageLinkIconTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorPreviousPageLinkIconTemplate: Nullable<TemplateRef<any>>;
|
|
paginatorNextPageLinkIconTemplate: Nullable<TemplateRef<any>>;
|
|
lastResizerHelperX: Nullable<number>;
|
|
reorderIconWidth: Nullable<number>;
|
|
reorderIconHeight: Nullable<number>;
|
|
draggedColumn: Nullable<any[]>;
|
|
dropPosition: Nullable<number>;
|
|
preventSelectionSetterPropagation: Nullable<boolean>;
|
|
_selection: any;
|
|
selectedKeys: any;
|
|
rowTouched: Nullable<boolean>;
|
|
editingCell: Nullable<Element>;
|
|
editingCellData: any | undefined | null;
|
|
editingCellField: any | undefined | null;
|
|
editingCellClick: Nullable<boolean>;
|
|
documentEditListener: VoidListener;
|
|
initialized: Nullable<boolean>;
|
|
toggleRowIndex: Nullable<number>;
|
|
ngOnInit(): void;
|
|
ngAfterContentInit(): void;
|
|
constructor(document: Document, renderer: Renderer2, el: ElementRef, cd: ChangeDetectorRef, zone: NgZone, tableService: TreeTableService, filterService: FilterService, config: PrimeNGConfig);
|
|
ngOnChanges(simpleChange: SimpleChanges): void;
|
|
updateSerializedValue(): void;
|
|
serializeNodes(parent: Nullable<TreeTableNode>, nodes: Nullable<TreeNode[]>, level: Nullable<number>, visible: Nullable<boolean>): void;
|
|
serializePageNodes(): void;
|
|
updateselectedKeys(): void;
|
|
onPageChange(event: TreeTablePaginatorState): void;
|
|
sort(event: TreeTableSortEvent): void;
|
|
sortSingle(): void;
|
|
sortNodes(nodes: TreeNode[]): void;
|
|
sortMultiple(): void;
|
|
sortMultipleNodes(nodes: TreeNode[]): void;
|
|
multisortField(node1: TreeTableNode, node2: TreeTableNode, multiSortMeta: SortMeta[], index: number): number;
|
|
getSortMeta(field: string): SortMeta;
|
|
isSorted(field: string): boolean;
|
|
createLazyLoadMetadata(): any;
|
|
onLazyItemLoad(event: TreeTableLazyLoadEvent): void;
|
|
/**
|
|
* Resets scroll to top.
|
|
* @group Method
|
|
*/
|
|
resetScrollTop(): void;
|
|
/**
|
|
* Scrolls to given index when using virtual scroll.
|
|
* @param {number} index - index of the element.
|
|
* @group Method
|
|
*/
|
|
scrollToVirtualIndex(index: number): void;
|
|
/**
|
|
* Scrolls to given index.
|
|
* @param {ScrollToOptions} options - Scroll options.
|
|
* @group Method
|
|
*/
|
|
scrollTo(options: ScrollToOptions): void;
|
|
isEmpty(): boolean;
|
|
getBlockableElement(): HTMLElement;
|
|
onColumnResizeBegin(event: MouseEvent): void;
|
|
onColumnResize(event: MouseEvent): void;
|
|
onColumnResizeEnd(event: MouseEvent, column: any): void;
|
|
findParentScrollableView(column: any): any;
|
|
resizeColGroup(table: Nullable<HTMLElement>, resizeColumnIndex: Nullable<number>, newColumnWidth: Nullable<number>, nextColumnWidth: Nullable<number>): void;
|
|
onColumnDragStart(event: DragEvent, columnElement: any): void;
|
|
onColumnDragEnter(event: DragEvent, dropHeader: any): void;
|
|
onColumnDragLeave(event: DragEvent): void;
|
|
onColumnDrop(event: DragEvent, dropColumn: any): void;
|
|
handleRowClick(event: any): void;
|
|
handleRowTouchEnd(event: Event): void;
|
|
handleRowRightClick(event: any): void;
|
|
toggleNodeWithCheckbox(event: any): void;
|
|
toggleNodesWithCheckbox(event: Event, check: boolean): void;
|
|
toggleAll(checked: boolean): void;
|
|
propagateSelectionUp(node: TreeTableNode, select: boolean): void;
|
|
propagateSelectionDown(node: TreeTableNode, select: boolean): void;
|
|
isSelected(node: TreeTableNode): boolean;
|
|
isNodeSelected(node: any): boolean;
|
|
isNodePartialSelected(node: any): boolean;
|
|
nodeKey(node: any): any;
|
|
toggleCheckbox(event: any): void;
|
|
propagateDown(node: any, check: any): void;
|
|
propagateUp(node: any, check: any): void;
|
|
findIndexInSelection(node: any): number;
|
|
isSingleSelectionMode(): boolean;
|
|
isMultipleSelectionMode(): boolean;
|
|
equals(node1: TreeTableNode, node2: TreeTableNode): boolean;
|
|
filter(value: string | string[], field: string, matchMode: string): void;
|
|
filterGlobal(value: string, matchMode: string): void;
|
|
isFilterBlank(filter: any): boolean;
|
|
_filter(): void;
|
|
findFilteredNodes(node: TreeTableNode, paramsWithoutNode: any): boolean;
|
|
isFilterMatched(node: TreeTableNode, filterOptions: TreeTableFilterOptions): boolean;
|
|
isNodeLeaf(node: TreeTableNode): boolean;
|
|
hasFilter(): boolean;
|
|
/**
|
|
* Clears the sort and paginator state.
|
|
* @group Method
|
|
*/
|
|
reset(): void;
|
|
updateEditingCell(cell: any, data: any, field: string): void;
|
|
isEditingCellValid(): boolean;
|
|
bindDocumentEditListener(): void;
|
|
unbindDocumentEditListener(): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTable, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTable, "p-treeTable", never, { "columns": { "alias": "columns"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "tableStyleClass": { "alias": "tableStyleClass"; "required": false; }; "autoLayout": { "alias": "autoLayout"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "lazyLoadOnInit": { "alias": "lazyLoadOnInit"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "first": { "alias": "first"; "required": false; }; "pageLinks": { "alias": "pageLinks"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; }; "paginatorStyleClass": { "alias": "paginatorStyleClass"; "required": false; }; "paginatorDropdownAppendTo": { "alias": "paginatorDropdownAppendTo"; "required": false; }; "currentPageReportTemplate": { "alias": "currentPageReportTemplate"; "required": false; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; }; "showJumpToPageDropdown": { "alias": "showJumpToPageDropdown"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "showPageLinks": { "alias": "showPageLinks"; "required": false; }; "defaultSortOrder": { "alias": "defaultSortOrder"; "required": false; }; "sortMode": { "alias": "sortMode"; "required": false; }; "resetPageOnSort": { "alias": "resetPageOnSort"; "required": false; }; "customSort": { "alias": "customSort"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "contextMenuSelection": { "alias": "contextMenuSelection"; "required": false; }; "contextMenuSelectionMode": { "alias": "contextMenuSelectionMode"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "metaKeySelection": { "alias": "metaKeySelection"; "required": false; }; "compareSelectionBy": { "alias": "compareSelectionBy"; "required": false; }; "rowHover": { "alias": "rowHover"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; }; "virtualScrollOptions": { "alias": "virtualScrollOptions"; "required": false; }; "virtualScrollDelay": { "alias": "virtualScrollDelay"; "required": false; }; "frozenWidth": { "alias": "frozenWidth"; "required": false; }; "frozenColumns": { "alias": "frozenColumns"; "required": false; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; }; "columnResizeMode": { "alias": "columnResizeMode"; "required": false; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; }; "contextMenu": { "alias": "contextMenu"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; }; "filterDelay": { "alias": "filterDelay"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "filterLocale": { "alias": "filterLocale"; "required": false; }; "paginatorLocale": { "alias": "paginatorLocale"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "multiSortMeta": { "alias": "multiSortMeta"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "value": { "alias": "value"; "required": false; }; "virtualRowHeight": { "alias": "virtualRowHeight"; "required": false; }; "selectionKeys": { "alias": "selectionKeys"; "required": false; }; }, { "selectionChange": "selectionChange"; "contextMenuSelectionChange": "contextMenuSelectionChange"; "onFilter": "onFilter"; "onNodeExpand": "onNodeExpand"; "onNodeCollapse": "onNodeCollapse"; "onPage": "onPage"; "onSort": "onSort"; "onLazyLoad": "onLazyLoad"; "sortFunction": "sortFunction"; "onColResize": "onColResize"; "onColReorder": "onColReorder"; "onNodeSelect": "onNodeSelect"; "onNodeUnselect": "onNodeUnselect"; "onContextMenuSelect": "onContextMenuSelect"; "onHeaderCheckboxToggle": "onHeaderCheckboxToggle"; "onEditInit": "onEditInit"; "onEditComplete": "onEditComplete"; "onEditCancel": "onEditCancel"; "selectionKeysChange": "selectionKeysChange"; }, ["templates"], never, false, never>;
|
|
static ngAcceptInputType_autoLayout: unknown;
|
|
static ngAcceptInputType_lazy: unknown;
|
|
static ngAcceptInputType_lazyLoadOnInit: unknown;
|
|
static ngAcceptInputType_paginator: unknown;
|
|
static ngAcceptInputType_rows: unknown;
|
|
static ngAcceptInputType_first: unknown;
|
|
static ngAcceptInputType_pageLinks: unknown;
|
|
static ngAcceptInputType_alwaysShowPaginator: unknown;
|
|
static ngAcceptInputType_showCurrentPageReport: unknown;
|
|
static ngAcceptInputType_showJumpToPageDropdown: unknown;
|
|
static ngAcceptInputType_showFirstLastIcon: unknown;
|
|
static ngAcceptInputType_showPageLinks: unknown;
|
|
static ngAcceptInputType_defaultSortOrder: unknown;
|
|
static ngAcceptInputType_resetPageOnSort: unknown;
|
|
static ngAcceptInputType_customSort: unknown;
|
|
static ngAcceptInputType_metaKeySelection: unknown;
|
|
static ngAcceptInputType_rowHover: unknown;
|
|
static ngAcceptInputType_loading: unknown;
|
|
static ngAcceptInputType_showLoader: unknown;
|
|
static ngAcceptInputType_scrollable: unknown;
|
|
static ngAcceptInputType_virtualScroll: unknown;
|
|
static ngAcceptInputType_virtualScrollItemSize: unknown;
|
|
static ngAcceptInputType_virtualScrollDelay: unknown;
|
|
static ngAcceptInputType_resizableColumns: unknown;
|
|
static ngAcceptInputType_reorderableColumns: unknown;
|
|
static ngAcceptInputType_filterDelay: unknown;
|
|
}
|
|
export declare class TTBody {
|
|
tt: TreeTable;
|
|
treeTableService: TreeTableService;
|
|
cd: ChangeDetectorRef;
|
|
columns: any[] | undefined;
|
|
template: Nullable<TemplateRef<any>>;
|
|
frozen: boolean | undefined;
|
|
serializedNodes: any;
|
|
scrollerOptions: any;
|
|
subscription: Subscription;
|
|
constructor(tt: TreeTable, treeTableService: TreeTableService, cd: ChangeDetectorRef);
|
|
getScrollerOption(option: any, options?: any): any;
|
|
getRowIndex(rowIndex: number): any;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTBody, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TTBody, "[pTreeTableBody]", never, { "columns": { "alias": "pTreeTableBody"; "required": false; }; "template": { "alias": "pTreeTableBodyTemplate"; "required": false; }; "frozen": { "alias": "frozen"; "required": false; }; "serializedNodes": { "alias": "serializedNodes"; "required": false; }; "scrollerOptions": { "alias": "scrollerOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_frozen: unknown;
|
|
}
|
|
export declare class TTScrollableView implements AfterViewInit, OnDestroy {
|
|
private platformId;
|
|
private renderer;
|
|
tt: TreeTable;
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
columns: any[] | undefined;
|
|
frozen: boolean | undefined;
|
|
scrollHeaderViewChild: Nullable<ElementRef>;
|
|
scrollHeaderBoxViewChild: Nullable<ElementRef>;
|
|
scrollBodyViewChild: Nullable<ElementRef>;
|
|
scrollTableViewChild: Nullable<ElementRef>;
|
|
scrollLoadingTableViewChild: Nullable<ElementRef>;
|
|
scrollFooterViewChild: Nullable<ElementRef>;
|
|
scrollFooterBoxViewChild: Nullable<ElementRef>;
|
|
scrollableAlignerViewChild: Nullable<ElementRef>;
|
|
scroller: Nullable<Scroller>;
|
|
headerScrollListener: VoidListener;
|
|
bodyScrollListener: VoidListener;
|
|
footerScrollListener: VoidListener;
|
|
frozenSiblingBody: Nullable<Element>;
|
|
totalRecordsSubscription: Nullable<Subscription>;
|
|
_scrollHeight: string | undefined | null;
|
|
preventBodyScrollPropagation: boolean | undefined;
|
|
get scrollHeight(): string | undefined | null;
|
|
set scrollHeight(val: string | undefined | null);
|
|
constructor(platformId: any, renderer: Renderer2, tt: TreeTable, el: ElementRef, zone: NgZone);
|
|
ngAfterViewInit(): void;
|
|
bindEvents(): void;
|
|
unbindEvents(): void;
|
|
onHeaderScroll(): void;
|
|
onFooterScroll(): void;
|
|
onBodyScroll(event: any): void;
|
|
scrollToVirtualIndex(index: number): void;
|
|
scrollTo(options: ScrollToOptions): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTScrollableView, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TTScrollableView, "[ttScrollableView]", never, { "columns": { "alias": "ttScrollableView"; "required": false; }; "frozen": { "alias": "frozen"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_frozen: unknown;
|
|
}
|
|
export declare class TTSortableColumn implements OnInit, OnDestroy {
|
|
tt: TreeTable;
|
|
field: string | undefined;
|
|
ttSortableColumnDisabled: boolean | undefined;
|
|
sorted: boolean | undefined;
|
|
subscription: Subscription | undefined;
|
|
get ariaSorted(): "none" | "descending" | "ascending";
|
|
constructor(tt: TreeTable);
|
|
ngOnInit(): void;
|
|
updateSortState(): void;
|
|
onClick(event: MouseEvent): void;
|
|
onEnterKey(event: MouseEvent): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTSortableColumn, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTSortableColumn, "[ttSortableColumn]", never, { "field": { "alias": "ttSortableColumn"; "required": false; }; "ttSortableColumnDisabled": { "alias": "ttSortableColumnDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttSortableColumnDisabled: unknown;
|
|
}
|
|
export declare class TTSortIcon implements OnInit, OnDestroy {
|
|
tt: TreeTable;
|
|
cd: ChangeDetectorRef;
|
|
field: string | undefined;
|
|
ariaLabelDesc: string | undefined;
|
|
ariaLabelAsc: string | undefined;
|
|
subscription: Subscription | undefined;
|
|
sortOrder: number | undefined;
|
|
constructor(tt: TreeTable, cd: ChangeDetectorRef);
|
|
ngOnInit(): void;
|
|
onClick(event: Event): void;
|
|
updateSortState(): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTSortIcon, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TTSortIcon, "p-treeTableSortIcon", never, { "field": { "alias": "field"; "required": false; }; "ariaLabelDesc": { "alias": "ariaLabelDesc"; "required": false; }; "ariaLabelAsc": { "alias": "ariaLabelAsc"; "required": false; }; }, {}, never, never, false, never>;
|
|
}
|
|
export declare class TTResizableColumn implements AfterViewInit, OnDestroy {
|
|
private document;
|
|
private platformId;
|
|
private renderer;
|
|
tt: TreeTable;
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
ttResizableColumnDisabled: boolean | undefined;
|
|
resizer: HTMLSpanElement | undefined;
|
|
resizerMouseDownListener: VoidListener;
|
|
documentMouseMoveListener: VoidListener;
|
|
documentMouseUpListener: VoidListener;
|
|
constructor(document: Document, platformId: any, renderer: Renderer2, tt: TreeTable, el: ElementRef, zone: NgZone);
|
|
ngAfterViewInit(): void;
|
|
bindDocumentEvents(): void;
|
|
unbindDocumentEvents(): void;
|
|
onMouseDown(event: MouseEvent): void;
|
|
onDocumentMouseMove(event: MouseEvent): void;
|
|
onDocumentMouseUp(event: MouseEvent): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTResizableColumn, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTResizableColumn, "[ttResizableColumn]", never, { "ttResizableColumnDisabled": { "alias": "ttResizableColumnDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttResizableColumnDisabled: unknown;
|
|
}
|
|
export declare class TTReorderableColumn implements AfterViewInit, OnDestroy {
|
|
private document;
|
|
private platformId;
|
|
private renderer;
|
|
tt: TreeTable;
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
ttReorderableColumnDisabled: boolean | undefined;
|
|
dragStartListener: VoidListener;
|
|
dragOverListener: VoidListener;
|
|
dragEnterListener: VoidListener;
|
|
dragLeaveListener: VoidListener;
|
|
mouseDownListener: VoidListener;
|
|
constructor(document: Document, platformId: any, renderer: Renderer2, tt: TreeTable, el: ElementRef, zone: NgZone);
|
|
ngAfterViewInit(): void;
|
|
bindEvents(): void;
|
|
unbindEvents(): void;
|
|
onMouseDown(event: any): void;
|
|
onDragStart(event: DragEvent): void;
|
|
onDragOver(event: DragEvent): void;
|
|
onDragEnter(event: DragEvent): void;
|
|
onDragLeave(event: DragEvent): void;
|
|
onDrop(event: DragEvent): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTReorderableColumn, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTReorderableColumn, "[ttReorderableColumn]", never, { "ttReorderableColumnDisabled": { "alias": "ttReorderableColumnDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttReorderableColumnDisabled: unknown;
|
|
}
|
|
export declare class TTSelectableRow implements OnInit, OnDestroy {
|
|
tt: TreeTable;
|
|
tableService: TreeTableService;
|
|
rowNode: any;
|
|
ttSelectableRowDisabled: boolean | undefined;
|
|
selected: boolean | undefined;
|
|
subscription: Subscription | undefined;
|
|
constructor(tt: TreeTable, tableService: TreeTableService);
|
|
ngOnInit(): void;
|
|
onClick(event: Event): void;
|
|
onKeyDown(event: KeyboardEvent): void;
|
|
onTouchEnd(event: Event): void;
|
|
onEnterKey(event: any): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTSelectableRow, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTSelectableRow, "[ttSelectableRow]", never, { "rowNode": { "alias": "ttSelectableRow"; "required": false; }; "ttSelectableRowDisabled": { "alias": "ttSelectableRowDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttSelectableRowDisabled: unknown;
|
|
}
|
|
export declare class TTSelectableRowDblClick implements OnInit, OnDestroy {
|
|
tt: TreeTable;
|
|
tableService: TreeTableService;
|
|
rowNode: any;
|
|
ttSelectableRowDisabled: boolean | undefined;
|
|
selected: boolean | undefined;
|
|
subscription: Subscription | undefined;
|
|
constructor(tt: TreeTable, tableService: TreeTableService);
|
|
ngOnInit(): void;
|
|
onClick(event: Event): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTSelectableRowDblClick, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTSelectableRowDblClick, "[ttSelectableRowDblClick]", never, { "rowNode": { "alias": "ttSelectableRowDblClick"; "required": false; }; "ttSelectableRowDisabled": { "alias": "ttSelectableRowDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttSelectableRowDisabled: unknown;
|
|
}
|
|
export declare class TTContextMenuRow {
|
|
tt: TreeTable;
|
|
tableService: TreeTableService;
|
|
private el;
|
|
rowNode: any | undefined;
|
|
ttContextMenuRowDisabled: boolean | undefined;
|
|
selected: boolean | undefined;
|
|
subscription: Subscription | undefined;
|
|
constructor(tt: TreeTable, tableService: TreeTableService, el: ElementRef);
|
|
onContextMenu(event: Event): void;
|
|
isEnabled(): boolean;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTContextMenuRow, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTContextMenuRow, "[ttContextMenuRow]", never, { "rowNode": { "alias": "ttContextMenuRow"; "required": false; }; "ttContextMenuRowDisabled": { "alias": "ttContextMenuRowDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttContextMenuRowDisabled: unknown;
|
|
}
|
|
export declare class TTCheckbox {
|
|
tt: TreeTable;
|
|
tableService: TreeTableService;
|
|
cd: ChangeDetectorRef;
|
|
disabled: boolean | undefined;
|
|
rowNode: any;
|
|
checked: boolean | undefined;
|
|
partialChecked: boolean | undefined;
|
|
focused: boolean | undefined;
|
|
subscription: Subscription | undefined;
|
|
constructor(tt: TreeTable, tableService: TreeTableService, cd: ChangeDetectorRef);
|
|
ngOnInit(): void;
|
|
onClick(event: Event): void;
|
|
onFocus(): void;
|
|
onBlur(): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTCheckbox, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TTCheckbox, "p-treeTableCheckbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "rowNode": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_disabled: unknown;
|
|
}
|
|
export declare class TTHeaderCheckbox {
|
|
tt: TreeTable;
|
|
tableService: TreeTableService;
|
|
private cd;
|
|
boxViewChild: ElementRef | undefined;
|
|
checked: boolean | undefined;
|
|
focused: boolean | undefined;
|
|
disabled: boolean | undefined;
|
|
selectionChangeSubscription: Subscription;
|
|
valueChangeSubscription: Subscription;
|
|
constructor(tt: TreeTable, tableService: TreeTableService, cd: ChangeDetectorRef);
|
|
ngOnInit(): void;
|
|
onClick(event: Event, checked: boolean): void;
|
|
onFocus(): void;
|
|
onBlur(): void;
|
|
ngOnDestroy(): void;
|
|
updateCheckedState(): boolean;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTHeaderCheckbox, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TTHeaderCheckbox, "p-treeTableHeaderCheckbox", never, {}, {}, never, never, false, never>;
|
|
}
|
|
export declare class TTEditableColumn implements AfterViewInit {
|
|
tt: TreeTable;
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
data: any;
|
|
field: any;
|
|
ttEditableColumnDisabled: boolean | undefined;
|
|
constructor(tt: TreeTable, el: ElementRef, zone: NgZone);
|
|
ngAfterViewInit(): void;
|
|
onClick(event: MouseEvent): void;
|
|
openCell(): void;
|
|
closeEditingCell(): void;
|
|
onKeyDown(event: KeyboardEvent): void;
|
|
findCell(element: any): any;
|
|
moveToPreviousCell(event: KeyboardEvent): void;
|
|
moveToNextCell(event: KeyboardEvent): void;
|
|
findPreviousEditableColumn(cell: any): Element | null;
|
|
findNextEditableColumn(cell: Element): Element | null;
|
|
isEnabled(): boolean;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTEditableColumn, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTEditableColumn, "[ttEditableColumn]", never, { "data": { "alias": "ttEditableColumn"; "required": false; }; "field": { "alias": "ttEditableColumnField"; "required": false; }; "ttEditableColumnDisabled": { "alias": "ttEditableColumnDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_ttEditableColumnDisabled: unknown;
|
|
}
|
|
export declare class TreeTableCellEditor implements AfterContentInit {
|
|
tt: TreeTable;
|
|
editableColumn: TTEditableColumn;
|
|
templates: Nullable<QueryList<PrimeTemplate>>;
|
|
inputTemplate: Nullable<TemplateRef<any>>;
|
|
outputTemplate: Nullable<TemplateRef<any>>;
|
|
constructor(tt: TreeTable, editableColumn: TTEditableColumn);
|
|
ngAfterContentInit(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableCellEditor, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTableCellEditor, "p-treeTableCellEditor", never, {}, {}, ["templates"], never, false, never>;
|
|
}
|
|
export declare class TTRow {
|
|
tt: TreeTable;
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
get level(): any;
|
|
get styleClass(): any;
|
|
get expanded(): any;
|
|
rowNode: any;
|
|
constructor(tt: TreeTable, el: ElementRef, zone: NgZone);
|
|
onKeyDown(event: KeyboardEvent): void;
|
|
onArrowDownKey(event: KeyboardEvent): void;
|
|
onArrowUpKey(event: KeyboardEvent): void;
|
|
onArrowRightKey(event: KeyboardEvent): void;
|
|
onArrowLeftKey(event: KeyboardEvent): void;
|
|
onHomeKey(event: KeyboardEvent): void;
|
|
onEndKey(event: KeyboardEvent): void;
|
|
onTabKey(event: KeyboardEvent): void;
|
|
expand(event: Event): void;
|
|
collapse(event: Event): void;
|
|
focusRowChange(firstFocusableRow: any, currentFocusedRow: any, lastVisibleDescendant?: any): void;
|
|
restoreFocus(index?: any): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TTRow, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TTRow, "[ttRow]", never, { "rowNode": { "alias": "ttRow"; "required": false; }; }, {}, never, never, false, never>;
|
|
}
|
|
export declare class TreeTableToggler {
|
|
tt: TreeTable;
|
|
private config;
|
|
rowNode: any;
|
|
constructor(tt: TreeTable, config: PrimeNGConfig);
|
|
get toggleButtonAriaLabel(): string;
|
|
onClick(event: Event): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableToggler, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTableToggler, "p-treeTableToggler", never, { "rowNode": { "alias": "rowNode"; "required": false; }; }, {}, never, never, false, never>;
|
|
}
|
|
export declare class TreeTableModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<TreeTableModule, [typeof TreeTable, typeof TreeTableToggler, typeof TTScrollableView, typeof TTBody, typeof TTSortableColumn, typeof TTSortIcon, typeof TTResizableColumn, typeof TTRow, typeof TTReorderableColumn, typeof TTSelectableRow, typeof TTSelectableRowDblClick, typeof TTContextMenuRow, typeof TTCheckbox, typeof TTHeaderCheckbox, typeof TTEditableColumn, typeof TreeTableCellEditor], [typeof i1.CommonModule, typeof i2.PaginatorModule, typeof i3.RippleModule, typeof i4.ScrollerModule, typeof i5.SpinnerIcon, typeof i6.ArrowDownIcon, typeof i7.ArrowUpIcon, typeof i8.SortAltIcon, typeof i9.SortAmountUpAltIcon, typeof i10.SortAmountDownIcon, typeof i11.CheckIcon, typeof i12.MinusIcon, typeof i13.ChevronDownIcon, typeof i14.ChevronRightIcon], [typeof TreeTable, typeof i15.SharedModule, typeof TreeTableToggler, typeof TTSortableColumn, typeof TTSortIcon, typeof TTResizableColumn, typeof TTRow, typeof TTReorderableColumn, typeof TTSelectableRow, typeof TTSelectableRowDblClick, typeof TTContextMenuRow, typeof TTCheckbox, typeof TTHeaderCheckbox, typeof TTEditableColumn, typeof TreeTableCellEditor, typeof i4.ScrollerModule]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<TreeTableModule>;
|
|
}
|