|
|
|
@ -7,15 +7,14 @@ import {
|
|
|
|
|
IndicatorPathType,
|
|
|
|
|
IndicatorType,
|
|
|
|
|
SourceType,
|
|
|
|
|
Stakeholder, SubCategory,
|
|
|
|
|
Topic,
|
|
|
|
|
Stakeholder,
|
|
|
|
|
Visibility,
|
|
|
|
|
} from "../../monitor/entities/stakeholder";
|
|
|
|
|
import {AbstractControl, ValidatorFn, Validators} from "@angular/forms";
|
|
|
|
|
import {Option} from "../../sharedComponents/input/input.component";
|
|
|
|
|
import {Session} from "../../login/utils/helper.class";
|
|
|
|
|
import {HelperFunctions} from "../../utils/HelperFunctions.class";
|
|
|
|
|
import {properties} from "src/environments/environment";
|
|
|
|
|
import {OAIndicator} from "../../../shared/irish";
|
|
|
|
|
|
|
|
|
|
class Roles {
|
|
|
|
|
manager = 'manager';
|
|
|
|
@ -63,6 +62,7 @@ export class StakeholderConfiguration {
|
|
|
|
|
public static CACHE_INDICATORS: boolean = true;
|
|
|
|
|
public static NUMBER_MULTI_INDICATOR_PATHS = false;
|
|
|
|
|
public static CHART_MULTI_INDICATOR_PATHS = true;
|
|
|
|
|
public static openAccess: Map<string, OAIndicator> = new Map();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class StakeholderUtils {
|
|
|
|
@ -102,6 +102,10 @@ export class StakeholderUtils {
|
|
|
|
|
return StakeholderConfiguration.CHART_MULTI_INDICATOR_PATHS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get openAccess(): Map<string, OAIndicator> {
|
|
|
|
|
return StakeholderConfiguration.openAccess;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
visibilityIcon: Map<Visibility, string> = new Map<Visibility, string>(this.visibilities.map(option => [option.value, option.icon]));
|
|
|
|
|
|
|
|
|
|
defaultValue(options: Option[]) {
|
|
|
|
|