ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
82 lines (81 loc) • 2.72 kB
TypeScript
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { Subject } from 'rxjs';
import { NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
import { NzI18nInterface, NzI18nService } from 'ng-zorro-antd/i18n';
export declare type NzThFilterType = Array<{
text: string;
value: any;
byDefault?: boolean;
}>;
export interface NzThItemInterface {
text: string;
value: any;
checked: boolean;
}
export declare class NzThComponent implements OnChanges, OnInit, OnDestroy {
private cdr;
private i18n;
hasFilterValue: boolean;
filterVisible: boolean;
multipleFilterList: NzThItemInterface[];
singleFilterList: NzThItemInterface[];
locale: NzI18nInterface['Table'];
nzWidthChange$: Subject<unknown>;
private destroy$;
private hasDefaultFilter;
nzDropdownMenuComponent: NzDropdownMenuComponent;
nzSelections: Array<{
text: string;
onSelect(...args: any[]): any;
}>;
nzChecked: boolean;
nzDisabled: boolean;
nzIndeterminate: boolean;
nzSortKey: string;
nzFilterMultiple: boolean;
nzWidth: string;
nzLeft: string;
nzRight: string;
nzAlign: 'left' | 'right' | 'center';
nzSort: 'ascend' | 'descend' | null;
nzFilters: NzThFilterType;
nzExpand: boolean;
nzShowCheckbox: boolean;
nzCustomFilter: boolean;
nzShowSort: boolean;
nzShowFilter: boolean;
nzShowRowSelection: boolean;
readonly nzCheckedChange: EventEmitter<boolean>;
readonly nzSortChange: EventEmitter<string | null>;
readonly nzSortChangeWithKey: EventEmitter<{
key: string;
value: string | null;
}>;
readonly nzFilterChange: EventEmitter<any>;
updateSortValue(): void;
setSortValue(value: 'ascend' | 'descend' | null): void;
readonly filterList: NzThItemInterface[];
readonly filterValue: any;
updateFilterStatus(): void;
search(): void;
reset(): void;
checkMultiple(filter: NzThItemInterface): void;
checkSingle(filter: NzThItemInterface): void;
hideDropDown(): void;
dropDownVisibleChange(value: boolean): void;
initMultipleFilterList(force?: boolean): void;
initSingleFilterList(force?: boolean): void;
checkDefaultFilters(): void;
marForCheck(): void;
constructor(cdr: ChangeDetectorRef, i18n: NzI18nService);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
}