import {Component, Input, Output, EventEmitter, ChangeDetectorRef} from '@angular/core'; import {Metrics} from '../../../utils/entities/metrics'; import {MetricsService} from '../../../services/metrics.service'; import {ErrorCodes} from '../../../utils/properties/errorCodes'; import {Subscription, zip} from 'rxjs'; import {EnvProperties} from '../../../utils/properties/env-properties'; import {ClickEvent} from "../../../utils/click/click-outside-or-esc.directive"; import {NumberUtils} from "../../../utils/number-utils.class"; import {OpenaireEntities} from "../../../utils/properties/searchFields"; @Component({ selector: 'metrics', styleUrls: ['metrics.component.css'], template: `