lct-components
Version:
LCT basic components
62 lines (61 loc) • 2.84 kB
TypeScript
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import * as i0 from "@angular/core";
export interface ILCTSelectMultiple {
name: string;
checked: boolean;
value?: string | number;
disabled?: boolean | string;
secondaryValue?: string | number;
quantity?: number;
}
export interface IListSelectMultipleNested {
name: string;
checkedAll?: boolean;
listOptions: ILCTSelectMultiple[];
disabled?: boolean | string;
open?: boolean;
quantity?: number;
}
export declare class SelectMultipleNestedComponent implements OnInit, OnChanges {
private sanitizer;
list: IListSelectMultipleNested[];
listFiltered: IListSelectMultipleNested[];
title: string;
disabled: 'true' | 'false' | 'disabled' | boolean | '';
showIcon: boolean;
placeholder: string;
placeholderFilter: string;
quantityToFilter: number;
heightOptions: string;
id?: string;
shareCheckedList: EventEmitter<any>;
shareIndividualCheckedList: EventEmitter<any>;
setAutofocusEvent: EventEmitter<boolean>;
disabledValue: boolean;
iconFinder: import("@angular/platform-browser").SafeResourceUrl;
filter: string;
currentSelected: ILCTSelectMultiple | null;
showDropDown: boolean;
searchValue: string;
get selectId(): string | null;
constructor(sanitizer: DomSanitizer);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
getListChecked(): ILCTSelectMultiple[];
getTotalCategoryCount(): number;
getCategories(): string[];
toggleCategory(category: IListSelectMultipleNested): void;
shareChecked(): void;
shareIndividualStatus(): void;
toggleAllOptions(category: IListSelectMultipleNested): void;
toggleOption(category: IListSelectMultipleNested | null, option: ILCTSelectMultiple): void;
discardOption(category: IListSelectMultipleNested | null, option: ILCTSelectMultiple): void;
filterData(value: string): IListSelectMultipleNested[];
applyFilter(): void;
findOptionCategory(option: ILCTSelectMultiple): IListSelectMultipleNested | null;
clickFilterComponent(): void;
leaveComponent(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleNestedComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SelectMultipleNestedComponent, "lct-select-multiple-nested", never, { "list": "list"; "title": "title"; "disabled": "disabled"; "showIcon": "showIcon"; "placeholder": "placeholder"; "placeholderFilter": "placeholderFilter"; "quantityToFilter": "quantityToFilter"; "heightOptions": "heightOptions"; "id": "id"; }, { "shareCheckedList": "shareCheckedList"; "shareIndividualCheckedList": "shareIndividualCheckedList"; "setAutofocusEvent": "setAutofocusEvent"; }, never, never>;
}