import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, ChangeDetectorRef, ElementRef, ViewContainerRef, Renderer2, EventEmitter, TemplateRef, OnDestroy, InjectionToken } from '@angular/core'; import * as _lucca_front_ng_establishment from '@lucca-front/ng/establishment'; import { ILuApiItem, ALuApiService, ILuApiService, LuApiV4Service } from '@lucca-front/ng/api'; import { Overlay } from '@angular/cdk/overlay'; import { ControlValueAccessor, FormControl } from '@angular/forms'; import { ILuOptionPickerPanel, LuOptionComparer, ILuOptionOperator, LuForGroupsDirective, LuForGroupContext, ILuOptionSelector, LuOptionSelectAllComponent } from '@lucca-front/ng/option'; import { ILuInputWithPicker } from '@lucca-front/ng/picker'; import { ALuSelectInputComponent } from '@lucca-front/ng/select'; import { HttpClient } from '@angular/common/http'; import { ILuOnOpenSubscriber, ILuOnScrollBottomSubscriber, ILuOnCloseSubscriber, ILuGroup, LuTranslation } from '@lucca-front/ng/core'; import { Observable, Subject } from 'rxjs'; interface ILuLegalUnit extends ILuApiItem { countryId: number; } interface ILuEstablishment extends ILuApiItem { code: string; legalUnitId: number; legalUnit: ILuLegalUnit; } type ILuEstablishmentService = ILuApiService; declare abstract class ALuEstablishmentService extends ALuApiService implements ILuEstablishmentService { } declare class LuEstablishmentService extends LuApiV4Service { protected _http: HttpClient; protected _api: string; protected _appInstanceId: number; set appInstanceId(id: number); protected _operations: number[]; set operations(ops: number[]); get filters(): string[]; set filters(filters: string[]); constructor(_http: HttpClient); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } type ILuLegalUnitService = ILuApiService; declare abstract class ALuLegalUnitService extends ALuApiService implements ILuLegalUnitService { } declare class LuLegalUnitService extends LuApiV4Service { protected _http: HttpClient; protected _api: string; protected _appInstanceId: number; set appInstanceId(id: number); protected _operations: number[]; set operations(ops: number[]); get filters(): string[]; set filters(filters: string[]); constructor(_http: HttpClient); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * @deprecated prefer SimpleSelect or MultipleSelect with establishments directive */ declare class LuEstablishmentSelectInputComponent = ILuOptionPickerPanel> extends ALuSelectInputComponent implements ControlValueAccessor, ILuInputWithPicker, OnInit, AfterViewInit { protected _changeDetectorRef: ChangeDetectorRef; protected _overlay: Overlay; protected _elementRef: ElementRef; protected _viewContainerRef: ViewContainerRef; protected _renderer: Renderer2; byId: LuOptionComparer; filters: string[]; appInstanceId: number; operations: number[]; private _establishmentService; private _legalUnitService; isSearching: boolean; groupByLu: boolean; get sort(): string; intl: i0.InputSignalWithTransform<_lucca_front_ng_establishment.ILuEstablishmentSelectInputLabel, Partial<_lucca_front_ng_establishment.ILuEstablishmentSelectInputLabel>>; constructor(_changeDetectorRef: ChangeDetectorRef, _overlay: Overlay, _elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, customLuService: LuLegalUnitService, defaultLuService: LuLegalUnitService, customEstablishmentService: LuEstablishmentService, defaultEstablishmentService: LuEstablishmentService); ngOnInit(): void; onIsSearchingChanged(isSearching: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration, [null, null, null, null, null, { optional: true; }, { self: true; }, { optional: true; }, { self: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration, "lu-establishment-select", never, { "filters": { "alias": "filters"; "required": false; }; "appInstanceId": { "alias": "appInstanceId"; "required": false; }; "operations": { "alias": "operations"; "required": false; }; "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } declare class LuEstablishmentSearcherComponent implements ILuOnOpenSubscriber, ILuOnScrollBottomSubscriber, ILuOnCloseSubscriber, ILuOptionOperator { set filters(filters: string[]); set appInstanceId(appId: number); set operations(ops: number[]); set sort(sort: string); private _service; fixed: boolean; searchInput: ElementRef; isSearching: EventEmitter; private _isSearching; clueControl: FormControl; loading: boolean; private _nextPage$; private _page$; private _resetOutOptions; outOptions$: Observable; displayPlaceholder$: Observable; constructor(customService: LuEstablishmentService, defaultService: LuEstablishmentService); onOpen(): void; onScrollBottom(): void; onClose(): void; reset(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuForLegalUnitsDirective extends LuForGroupsDirective { protected _vcr: ViewContainerRef; protected _cdr: ChangeDetectorRef; protected _templateRef: TemplateRef>>; constructor(_vcr: ViewContainerRef, _cdr: ChangeDetectorRef, _templateRef: TemplateRef>>); protected groupBy(items: ILuEstablishment[]): ILuGroup[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class LuLegalUnitSelectorDirective implements ILuOptionSelector, OnDestroy { multiple: boolean; onSelectValue: Subject; private _values; private _service; private _subs; legalUnit: ILuLegalUnit; set filters(filters: string[]); set appInstanceId(appId: number); set operations(ops: number[]); constructor(customService: LuEstablishmentService, defaultService: LuEstablishmentService); onClick(): void; setValue(values: ILuEstablishment[]): void; ngOnDestroy(): void; private shouldAdd; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class LuEstablishmentSelectAllComponent extends LuOptionSelectAllComponent implements OnDestroy { private readonly _changeDetectorRef; set filters(filters: string[]); set appInstanceId(appInstanceId: number); set operations(operations: number[]); loading: boolean; private _service; private _subs; constructor(_changeDetectorRef: ChangeDetectorRef, customService: LuEstablishmentService, defaultService: LuEstablishmentService); selectAll(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated prefer SimpleSelect or MultipleSelect with establishments directive */ declare class LuEstablishmentSelectModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated prefer SimpleSelect or MultipleSelect with establishments directive */ declare class LuEstablishmentModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated use `LuEstablishmentSelectInputComponent` instead */ declare class LuEstablishmentSelectInputModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const LU_ESTABLISHMENT_SELECT_INPUT_TRANSLATIONS: InjectionToken>; interface ILuEstablishmentSelectInputLabel { establishments: string; } declare const luEstablishmentSelectInputTranslations: LuTranslation; export { ALuEstablishmentService, ALuLegalUnitService, LU_ESTABLISHMENT_SELECT_INPUT_TRANSLATIONS, LuEstablishmentModule, LuEstablishmentSearcherComponent, LuEstablishmentSelectAllComponent, LuEstablishmentSelectInputComponent, LuEstablishmentSelectInputModule, LuEstablishmentSelectModule, LuEstablishmentService, LuForLegalUnitsDirective, LuLegalUnitSelectorDirective, LuLegalUnitService, luEstablishmentSelectInputTranslations }; export type { ILuEstablishment, ILuEstablishmentSelectInputLabel, ILuEstablishmentService, ILuLegalUnit, ILuLegalUnitService };