lemmatized-entity-detail.component.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Component, Input } from '@angular/core';
  2. import { LemmatizedEntityInfo } from '../../../models/evt-models';
  3. import { register } from '../../../services/component-register.service';
  4. @Component({
  5. selector: 'evt-lemmatized-entity-detail',
  6. templateUrl: './lemmatized-entity-detail.component.html',
  7. styleUrls: ['./lemmatized-entity-detail.component.scss'],
  8. })
  9. @register(LemmatizedEntityInfo)
  10. export class LemmatizedEntityDetailComponent {
  11. @Input() data: LemmatizedEntityInfo;
  12. iconData = {
  13. actors: { icon: 'users' },
  14. birth: { icon: 'birthday-cake' },
  15. bloc: { icon: 'map-marker' },
  16. country: { icon: 'map-marker' },
  17. death: { icon: 'times', rotate: 45 },
  18. district: { icon: 'map-marker' },
  19. geogFeat: { icon: 'map-marker' },
  20. geoname: { icon: 'map-marker' },
  21. idno: { icon: 'barcode' },
  22. note: { icon: 'sticky-note' },
  23. occupation: { icon: 'briefcase' },
  24. orgname: { icon: 'users' },
  25. persname: { icon: 'user' },
  26. placename: { icon: 'map-marker' },
  27. region: { icon: 'map-marker' },
  28. relations: { icon: 'share-alt' },
  29. residence: { icon: 'home' },
  30. settlement: { icon: 'location-arrow' },
  31. sex: { icon: 'venus-mars' },
  32. };
  33. defaultIcon = { icon: 'info-circle' };
  34. }