bitfront-library
Version:
Angular CLI project with components and classes used by other Angular projects of the BIT foundation.
40 lines (39 loc) • 2.29 kB
TypeScript
import { OnChanges, SimpleChange, ChangeDetectorRef } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { AyudaService } from "../../service/ayuda.service";
import { SessionSharedService } from "../../service/session-shared.service";
import { BitDropDownGeneralComponent } from "./bit-dropdown-general.component";
import * as i0 from "@angular/core";
export declare const CUSTOM_DROPDOWN_CONTROL_VALUE_ACCESSOR: any;
/**
* Clase que utiliza un custom componente para select de elementos
* Utiliza la interfaz ControlValueAccessor
* <bit-select [domain]="'DOMAIN_TIPO_LOG'" id="tipolog" [control]="formControl"> Tipus d'operació</bit-select>
*
* @input data: array de objetos a mostrar en el select. Puede ser null, en cuyo caso domain no puede ser null
* @input domain: nombre del dominio que contiene los datos y que nos resolverá la página cuando cargue el componente. Puede ser null, en cuyo caso data no puede ser null
* @input id: identificador del componente select
* @input filter: true indicará que podemos buscar dentro del select, false que no.
**/
export declare class BitDropDownComponent extends BitDropDownGeneralComponent implements OnChanges {
protected router: ActivatedRoute;
protected sessionShared: SessionSharedService;
protected ayudaService: AyudaService;
protected changeDetectorRef: ChangeDetectorRef;
filter: boolean;
excludedValues: any[];
autoWidth: boolean;
emptyText: string;
includeEmpty: boolean;
listaOpcionesVisible: any[];
constructor(router: ActivatedRoute, sessionShared: SessionSharedService, ayudaService: AyudaService, changeDetectorRef: ChangeDetectorRef);
/** Si se dan las condiciones, transforma el valor de number a string (o viceversa). */
protected transformValue(): void;
ngOnChanges(changes: {
[propKey: string]: SimpleChange;
}): void;
postRetrieveData(): void;
get value_lectura(): any;
static ɵfac: i0.ɵɵFactoryDef<BitDropDownComponent, never>;
static ɵcmp: i0.ɵɵComponentDefWithMeta<BitDropDownComponent, "bit-dropdown", never, { "filter": "filter"; "excludedValues": "excludedValues"; "autoWidth": "autoWidth"; "emptyText": "emptyText"; "includeEmpty": "includeEmpty"; }, {}, never, ["*"]>;
}