AW-7050 Remove FeatureListFeatureObservationComponent
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -41,7 +41,6 @@ import { FeatureListCroppingschemeComponent } from './components/feature-list-cr | ||||
| import { FeatureListFeatureContainerComponent } from './components/feature-list-feature-container/feature-list-feature-container.component'; | ||||
| import { FeatureListFeatureCropfieldComponent } from './components/feature-list-feature-cropfield/feature-list-feature-cropfield.component'; | ||||
| import { FeatureListFeatureCroppingschemeComponent } from './components/feature-list-feature-croppingscheme/feature-list-feature-croppingscheme.component'; | ||||
| import { FeatureListFeatureObservationComponent } from './components/feature-list-feature-observation/feature-list-feature-observation.component'; | ||||
| import { AbstractFeatureListFeatureComponent, FeatureListFeatureComponent } from './components/feature-list-feature/feature-list-feature.component'; | ||||
| import { AbstractFeatureListComponent, FeatureListComponent } from './components/feature-list/feature-list.component'; | ||||
| import { GeometryThumbnailComponent } from './components/feature-thumbnail/feature-thumbnail.component'; | ||||
| @@ -107,7 +106,7 @@ const metaReducers: Array<MetaReducer<any, any>> = [LocalStorageSync]; | ||||
|  | ||||
| export { | ||||
|   AbstractFeatureListComponent, | ||||
|   AbstractFeatureListFeatureComponent, AbstractItemListComponent, AbstractItemListItemComponent, AbstractItemWidgetComponent, AbstractSelectedItemComponent, DeviceOrientationService, FeatureIconService, FeatureListComponent, FeatureListContainerComponent, FeatureListCropfieldComponent, FeatureListObservationComponent, FeatureListCroppingschemeComponent, FeatureListFeatureComponent, FeatureListFeatureContainerComponent, FeatureListFeatureCropfieldComponent, FeatureListFeatureObservationComponent, FeatureListFeatureCroppingschemeComponent, FileDropTargetComponent, ForChild, | ||||
|   AbstractFeatureListFeatureComponent, AbstractItemListComponent, AbstractItemListItemComponent, AbstractItemWidgetComponent, AbstractSelectedItemComponent, DeviceOrientationService, FeatureIconService, FeatureListComponent, FeatureListContainerComponent, FeatureListCropfieldComponent, FeatureListObservationComponent, FeatureListCroppingschemeComponent, FeatureListFeatureComponent, FeatureListFeatureContainerComponent, FeatureListFeatureCropfieldComponent, FeatureListFeatureCroppingschemeComponent, FileDropTargetComponent, ForChild, | ||||
|   ForItemType, ForPackage, ForSourceTask, GeolocationService, GeometryThumbnailComponent, GpsLocation, IClickedFeature, ifZoomToShowDirective, IItemLayer, IMapState, IPeriodState, ISelectedFeatures, ItemLayer, ItemLayersComponent, ItemListComponent, ItemListItemComponent, | ||||
|   ItemListItemContainerComponent, ITemporalItemLayer, ItemVectorSourceComponent, ItemWidgetListComponent, LayerListComponent, LayerSwitcher, LayerVectorImageComponent, LegendComponent, mapActions, MapComponent, mapEffects, | ||||
|   mapReducers, MapSearchComponent, MetaDataModalComponent, PanToLocation, RotationResetComponent, SelectedItemComponent, SelectedItemContainerComponent, SelectedItemCropfieldComponent, | ||||
| @@ -149,7 +148,6 @@ export { | ||||
|         FeatureListFeatureComponent, | ||||
|         FeatureListFeatureCroppingschemeComponent, | ||||
|         FeatureListFeatureCropfieldComponent, | ||||
|         FeatureListFeatureObservationComponent, | ||||
|         SelectedItemContainerComponent, | ||||
|         SelectedItemComponent, | ||||
|         SelectedItemCropfieldComponent, | ||||
| @@ -182,7 +180,6 @@ export { | ||||
|         LayerSwitcher, | ||||
|         FeatureListFeatureComponent, | ||||
|         FeatureListFeatureCropfieldComponent, | ||||
|         FeatureListFeatureObservationComponent, | ||||
|         FeatureListFeatureCroppingschemeComponent, | ||||
|         SelectedItemContainerComponent, | ||||
|         SelectedItemComponent, | ||||
| @@ -223,8 +220,7 @@ export { | ||||
|         { provide: AbstractFeatureListComponent, useClass: FeatureListObservationComponent, multi: true },         | ||||
|         { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureComponent, multi: true }, | ||||
|         { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCroppingschemeComponent, multi: true }, | ||||
|         { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true }, | ||||
|         { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureObservationComponent, multi: true },         | ||||
|         { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true },        | ||||
|         { provide: AbstractSelectedItemComponent, useClass: SelectedItemComponent, multi: true }, | ||||
|         { provide: AbstractSelectedItemComponent, useClass: SelectedItemCropfieldComponent, multi: true }, | ||||
|         { provide: AbstractSelectedItemComponent, useClass: SelectedItemGeotiffComponent, multi: true }, | ||||
|   | ||||
| @@ -1,10 +0,0 @@ | ||||
| <div *ngIf="feature;let feature"> | ||||
|   <div class="row m-0"> | ||||
|     <div class="col-3 m-0 p-2 thumbnail"> | ||||
|       <img [src]="getSource(feature)" style="width: 34px"> | ||||
|     </div> | ||||
|     <div class="col p-2" style="margin: auto;"> | ||||
|       <h1 class="card-title" title="{{feature.get('name')}}">{{feature.get('name')}}</h1> | ||||
|     </div>   | ||||
|   </div> | ||||
| </div> | ||||
| @@ -1,22 +0,0 @@ | ||||
| .card-title { | ||||
|   font-size: 1rem; | ||||
|   white-space: nowrap; | ||||
|   overflow: hidden; | ||||
|   text-overflow: ellipsis; | ||||
| } | ||||
|  | ||||
| .card-text { | ||||
|   overflow: hidden; | ||||
|   white-space: nowrap; | ||||
|   text-overflow: ellipsis; | ||||
| } | ||||
|  | ||||
| .col { | ||||
|   overflow: hidden; | ||||
| } | ||||
|  | ||||
| .thumbnail { | ||||
|   width: 4em; | ||||
|   height: 4em; | ||||
| } | ||||
|  | ||||
| @@ -1,29 +0,0 @@ | ||||
| import { Component, Injectable } from '@angular/core'; | ||||
| import { AppConfig, commonReducers, ItemTypeService } from '@farmmaps/common'; | ||||
| import { Store } from '@ngrx/store'; | ||||
| import { Feature } from 'ol'; | ||||
| import { Geometry } from 'ol/geom'; | ||||
| import * as mapReducers from '../../reducers/map.reducer'; | ||||
| import { AbstractFeatureListFeatureComponent } from '../feature-list-feature/feature-list-feature.component'; | ||||
| import { ForItemType } from '../for-item/for-itemtype.decorator'; | ||||
|  | ||||
| @ForItemType("vnd.farmmaps.itemtype.observation") | ||||
| @Injectable() | ||||
| @Component({ | ||||
|   selector: 'fm-map-feature-list-feature-observation', | ||||
|   templateUrl: './feature-list-feature-observation.component.html', | ||||
|   styleUrls: ['./feature-list-feature-observation.component.scss'] | ||||
| }) | ||||
| export class FeatureListFeatureObservationComponent extends AbstractFeatureListFeatureComponent { | ||||
|  | ||||
|   constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService,config:AppConfig) { | ||||
|     super(store, itemTypeService,config); | ||||
|   } | ||||
|  | ||||
|   getSource(feature: Feature<Geometry>): string { | ||||
|     let source = "/images/decease.png"; | ||||
|     var type = feature.get('type'); | ||||
|     source = '/images/' + type + '.png'; | ||||
|     return source; | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user