@ctodev/cclibrary-typings
Version:
Library typings for use with CLARC INFINITY
105 lines (104 loc) • 3.74 kB
TypeScript
import { AfterViewInit, EventEmitter } from '@angular/core';
import { TccInputMask } from '../../models/inputMask.model';
import { TccC4Node, TccKeyValuePair, TccTranslation } from '../../../odata/models/shared.model';
import { MatDialogRef } from '@angular/material/dialog';
import { TccInputMaskComponent } from '../tcc-input-mask/tcc-input-mask.component';
import { PageEvent } from '@angular/material/paginator';
import { TccSearchListDialogServiceNamespace } from '../../services/tcc-search-list-dialog/tcc-search-list-dialog.service';
export declare namespace TccSearchListDialog {
interface section {
Id: string;
Name: TccTranslation | string;
Items: TccSearchListDialogServiceNamespace.item[];
}
interface Chip {
Id: string;
Name: TccTranslation | string;
Prefix?: string;
MatPrefix?: string;
ActiveItems: TccSearchListDialogServiceNamespace.item[];
PermanentItems: TccSearchListDialogServiceNamespace.item[];
}
interface Options {
pageSize?: number;
activeChipId?: string;
elementOptions?: TccKeyValuePair[];
width?: number;
section?: string;
row?: string;
}
}
export declare class TccSearchListDialogComponent implements AfterViewInit {
dialogRef: MatDialogRef<TccSearchListDialogComponent, TccInputMask.valueChanges>;
private data;
inputMask: TccInputMaskComponent;
Title: TccTranslation | string;
EnableSelectAll: boolean;
onNextPage: EventEmitter<void>;
onChangeChip: EventEmitter<{
id: string;
chipFirstSelected: boolean;
}>;
onSearch: EventEmitter<string>;
inputElements: TccInputMask.SectionElements;
alertIcon: {
Success: import("../..").TccLibIcons.Icon;
Error: import("../..").TccLibIcons.Icon;
Info: import("../..").TccLibIcons.Icon;
Warning: import("../..").TccLibIcons.Icon;
Question: import("../..").TccLibIcons.Icon;
};
activeChipIndex: number;
activeChipId: string;
private chipDataSets;
private allItems;
private searchedItems;
pageSize: number;
paginatorCount: number;
searchElementOptions: TccKeyValuePair[];
_width: number;
private _currPage;
private _currentSearchPage;
private _selectRowCheckbox;
_section: string;
_row: string;
private loadedItemsCount;
private paginatorCounts;
paginatorPages: {
[chipId: string]: number;
};
private get currPage();
private set currPage(value);
private _changes;
private set changes(value);
private get changes();
constructor(dialogRef: MatDialogRef<TccSearchListDialogComponent, TccInputMask.valueChanges>, data: {
options: TccSearchListDialog.Options;
chips: TccSearchListDialog.Chip[];
});
ngAfterViewInit(): void;
setCount(count: number, chipId?: string): void;
setSearchCount(count: number, chipId?: string): void;
private _setCount;
addActiveItems(items: TccC4Node[], chipId?: string): void;
addItems(items: TccC4Node[], chipId?: string): void;
private _addItems;
addSearchItems(items: TccC4Node[], chipId?: string): void;
close(result: boolean): void;
private buildValueChanges;
getValue(): TccInputMask.valueChanges;
getRowValue(rowId: string): {
[key: string]: boolean;
};
onChangeValue(event: TccInputMask.eventOutput): void;
_onChangeChip(event: {
id: string;
index: number;
}): void;
_onSearch(event: TccInputMask.eventOutput): void;
onChangePage(event: PageEvent): void;
showNextPage(): void;
showCurrentPage(): void;
showPageByIndex(startIndex: number): void;
private showPage;
}