2019-10-28 13:18:25 +00:00
|
|
|
import { Component, Input, Injectable} from '@angular/core';
|
|
|
|
import { Store } from '@ngrx/store';
|
|
|
|
import * as mapReducers from '../../reducers/map.reducer';
|
|
|
|
import { commonReducers,ItemTypeService,IListItem } from '@farmmaps/common';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export abstract class AbstractItemListItemComponent {
|
|
|
|
@Input() item: IListItem
|
|
|
|
|
|
|
|
constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export abstract class AbstractItemWidgetComponent {
|
|
|
|
@Input() item: IListItem
|
|
|
|
|
|
|
|
constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
@Component({
|
2019-11-04 12:34:00 +00:00
|
|
|
selector: 'fm-map-item-list-item',
|
2019-10-28 13:18:25 +00:00
|
|
|
templateUrl: './item-list-item.component.html',
|
|
|
|
styleUrls: ['./item-list-item.component.scss']
|
|
|
|
})
|
|
|
|
export class ItemListItemComponent extends AbstractItemListItemComponent {
|
|
|
|
|
|
|
|
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService) {
|
|
|
|
super(store, itemTypeService);
|
|
|
|
}
|
|
|
|
}
|