import { AfterViewInit, EventEmitter, OnInit } from '@angular/core'; import { NgxLoopVehicleLiveMap, VehicleMap } from '../ngx-loop-vehicle-livemap/ngx-loop-vehicle-livemap'; import { MatExpansionPanel, MatSlideToggleChange, MatTableDataSource } from '@angular/material'; import { ConfigurationService } from '../depends/configuration.service'; import { NgxTrackItPanel, TrackItPointExtras } from '../ngx-trackit-panel/ngx-track-it-panel.component'; interface IVehicleFilter { value: number; label: string; class: string; } export interface TrackItPeriodChangeEvent { begin: string; end: string; idVehicle: number; } export interface ILoopVehiclesStatus { status: { unknown: any; available: any; working: { items: { [key: string]: any; }; loading: number; to_job: number; on_job: number; to_plant: number; }; }; trips_calculator_id: number; plant_calculator_id: number; unavailable_status: any; } export declare const VEHICLES_STATUSES: { TO_JOB: { label: string; field: string; color: string; icon: string; customIcon: string; }; ON_JOB: { label: string; field: string; color: string; icon: string; customIcon: string; }; TO_PLANT: { label: string; field: string; color: string; icon: string; customIcon: string; }; LOADING: { label: string; field: string; color: string; icon: string; customIcon: string; }; DEFAULT: { label: string; color: string; }; }; export declare class VehicleMapGroup { vehicles: VehicleMap[]; keylangTitle: string; idType: number; dataSource: MatTableDataSource; indeterminateChecked: boolean; allVisible: boolean; panel: MatExpansionPanel; constructor(vehicles: VehicleMap[], keylangTitle: string, idType: number); setPanel(panel: MatExpansionPanel): void; isAllVisible(): boolean; setCheckState(): void; } export declare class NgxLoopMapVehiclePanel implements OnInit, AfterViewInit { private configurationService; masterPanel: MatExpansionPanel; trackItPanel: NgxTrackItPanel; vehicles: VehicleMap[]; groupsByType: VehicleMapGroup[]; liveMap: NgxLoopVehicleLiveMap; setLoopVehiclesStatus: ILoopVehiclesStatus; loopVehicleStatus: ILoopVehiclesStatus; showVehicleEditionButton: boolean; enableTrackTt: boolean; trackItAdditionalFields: { title: string; field: string; }[]; onVehicleEditButtonClicked: EventEmitter; onVehiclesMapDoneBuilding: EventEmitter; onTrackItPeriodChanged: EventEmitter; trackItVehicle: VehicleMap; clustered: boolean; showNames: boolean; ignitionFilterResource: IVehicleFilter[]; plantFilterResource: IVehicleFilter[]; ignitionFilterValue: IVehicleFilter; plantFilterValue: IVehicleFilter; filterText: string; constructor(configurationService: ConfigurationService); ngOnInit(): void; setTrackitPointExtras(extras: TrackItPointExtras[]): void; onVehicleDataChanged(vehicleId: number, name: string, iconName: string, typeId: number, typeKeylang: string): void; onTrackItPressed(vehicleMap: VehicleMap): void; toggleAllVehiclesVisibility(): void; onNameModeChanged(event: MatSlideToggleChange): void; setVehiclesTooltip(): void; updateVehiclesTooltip(): void; getVehicleClass(vehicleMap: VehicleMap): string; onClusterModeChanged(event: MatSlideToggleChange): void; vehicleFilter(event: any): void; rotateVehicleFilters(filterArray: IVehicleFilter[], currentValue: IVehicleFilter): IVehicleFilter; handlePlantFilterChanged(): void; handleIgnitionFilterChanged(): void; displayFilterVehicles(): void; isVehicleMatchingFilters(vehicleMap: VehicleMap): boolean; hasFilterText(): boolean; vehicleHasLastPosition(vehicleMap: VehicleMap): boolean; textIsContained(resource: any, text: string, attributes: string[]): boolean; organizeVehiclesWithTypes(vehicles: VehicleMap[]): void; ngAfterViewInit(): void; setVehicleStatusAndColor(vehicleMap: VehicleMap): string; } export {};