plugins-functionality #43
|
@ -91,31 +91,31 @@
|
||||||
<div *ngIf="showIndicator(indicator)"
|
<div *ngIf="showIndicator(indicator)"
|
||||||
[ngClass]="getChartClassBySize(indicator.width)">
|
[ngClass]="getChartClassBySize(indicator.width)">
|
||||||
<div class="uk-card uk-card-default uk-position-relative"
|
<div class="uk-card uk-card-default uk-position-relative"
|
||||||
[class.semiFiltered]="chartsActiveType.get(i + '-' + j).filtersApplied < countSelectedFilters()">
|
[class.semiFiltered]="getActiveIndicatorPath(indicator).filtersApplied < countSelectedFilters()">
|
||||||
<div class="uk-card-body uk-text-center uk-margin-small-bottom">
|
<div class="uk-card-body uk-text-center uk-margin-small-bottom">
|
||||||
<h6 class="uk-margin-bottom chartTitle uk-flex uk-flex-bottom">
|
<h6 class="uk-margin-bottom chartTitle uk-flex uk-flex-bottom">
|
||||||
{{indicator.name + " "}}
|
{{indicator.name + " "}}
|
||||||
</h6>
|
</h6>
|
||||||
<div *ngIf="indicator.indicatorPaths.length > 1" class="uk-button-group">
|
<!--<div *ngIf="indicator.indicatorPaths.length > 1" class="uk-button-group">
|
||||||
<button *ngFor="let indicatorPath of indicator.indicatorPaths;"
|
<button *ngFor="let indicatorPath of indicator.indicatorPaths;"
|
||||||
class="uk-button"
|
class="uk-button"
|
||||||
(click)="setActiveChart(i, j, indicatorPath.type)"
|
(click)="setActiveChart(i, j, indicatorPath.type)"
|
||||||
[class.uk-button-secondary]="chartsActiveType.get(i + '-' + j).url === indicatorPath.url">
|
[class.uk-button-secondary]="getActiveIndicatorPath(indicator).url === indicatorPath.url">
|
||||||
{{indicatorPath.type}}
|
{{indicatorPath.type}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>-->
|
||||||
<iframe [class.uk-blend-multiply]="!isFullscreen"
|
<iframe [class.uk-blend-multiply]="!isFullscreen"
|
||||||
*ngIf=" !properties.disableFrameLoad && chartsActiveType.get(i + '-' + j).source !== 'image'"
|
*ngIf=" !properties.disableFrameLoad && getActiveIndicatorPath(indicator).source !== 'image'"
|
||||||
[src]="chartsActiveType.get(i + '-' + j).safeResourceUrl"
|
[src]="getActiveIndicatorPath(indicator).safeResourceUrl"
|
||||||
class="uk-width-1-1" allowfullscreen="true" mozallowfullscreen="true"
|
class="uk-width-1-1" allowfullscreen="true" mozallowfullscreen="true"
|
||||||
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"></iframe>
|
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"></iframe>
|
||||||
<div *ngIf="properties.disableFrameLoad && chartsActiveType.get(i + '-' + j).source !== 'image'">
|
<div *ngIf="properties.disableFrameLoad && getActiveIndicatorPath(indicator).source !== 'image'">
|
||||||
<img class="uk-width-1-1 uk-blend-multiply"
|
<img class="uk-width-1-1 uk-blend-multiply"
|
||||||
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"
|
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"
|
||||||
src="assets/chart-placeholder.png">
|
src="assets/chart-placeholder.png">
|
||||||
</div>
|
</div>
|
||||||
<img *ngIf="chartsActiveType.get(i + '-' + j).source === 'image'"
|
<img *ngIf="getActiveIndicatorPath(indicator).source === 'image'"
|
||||||
[src]="chartsActiveType.get(i + '-' + j).safeResourceUrl"
|
[src]="getActiveIndicatorPath(indicator).safeResourceUrl"
|
||||||
class="uk-width-1-1 uk-blend-multiply"
|
class="uk-width-1-1 uk-blend-multiply"
|
||||||
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')">
|
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,7 +22,6 @@ export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent {
|
||||||
stakeholder = null;
|
stakeholder = null;
|
||||||
@Input() pluginObject: PluginStats;
|
@Input() pluginObject: PluginStats;
|
||||||
profiles;
|
profiles;
|
||||||
public chartsActiveType: Map<string, IndicatorPath> = new Map<string, IndicatorPath>();
|
|
||||||
constructor(protected _route: ActivatedRoute,
|
constructor(protected _route: ActivatedRoute,
|
||||||
protected _router: Router,
|
protected _router: Router,
|
||||||
protected _meta: Meta,
|
protected _meta: Meta,
|
||||||
|
@ -79,7 +78,6 @@ export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent {
|
||||||
this.activeCategory = null;
|
this.activeCategory = null;
|
||||||
this.activeSubCategory = null;
|
this.activeSubCategory = null;
|
||||||
this.numberResults = new Map<string, number>();
|
this.numberResults = new Map<string, number>();
|
||||||
this.chartsActiveType = new Map<string, IndicatorPath>();
|
|
||||||
this.setView({});
|
this.setView({});
|
||||||
let ids = [];
|
let ids = [];
|
||||||
for (let section of this.activeSubCategory.charts) {
|
for (let section of this.activeSubCategory.charts) {
|
||||||
|
|
Loading…
Reference in New Issue