2019-11-08 16:47:47 +01:00
|
|
|
<div id="page_content" click-outside-or-esc targetId="page_content" (clickOutside)="toggleOpen($event)">
|
|
|
|
<div class="uk-padding-small md-bg-white" uk-grid>
|
|
|
|
<div class="uk-width-2-3@m uk-width-1-1 uk-child-width-1-3@m uk-child-width-1-1" uk-grid>
|
|
|
|
<div class="uk-flex uk-flex-middle">
|
|
|
|
<label>Chart Type:</label>
|
|
|
|
<select class="uk-select uk-form-small uk-margin-small-left"
|
|
|
|
(ngModelChange)="onChartTypeChange($event)"
|
|
|
|
[(ngModel)]="chartType">
|
|
|
|
<option [value]="'all'">All</option>
|
|
|
|
<option [value]="'pie'">Pie</option>
|
|
|
|
<option [value]="'table'">Table</option>
|
|
|
|
<option [value]="'line'">Line</option>
|
|
|
|
<option [value]="'column'">Column</option>
|
|
|
|
<option [value]="'bar'">Bar</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="uk-flex uk-flex-middle">
|
|
|
|
<label>Privacy:</label>
|
|
|
|
<select class="uk-select uk-form-small uk-margin-small-left"
|
|
|
|
(ngModelChange)="onPrivacyChange($event)"
|
2019-11-13 11:26:50 +01:00
|
|
|
[(ngModel)]="privacy">
|
2019-11-08 16:47:47 +01:00
|
|
|
<option [value]="'all'">All</option>
|
|
|
|
<option [value]="'public'">Public</option>
|
|
|
|
<option [value]="'private'">Private</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="uk-flex uk-flex-middle">
|
|
|
|
<label>Status:</label>
|
|
|
|
<select class="uk-select uk-form-small uk-margin-small-left"
|
|
|
|
(ngModelChange)="onStatusChange($event)"
|
2019-11-13 11:26:50 +01:00
|
|
|
[(ngModel)]="status">
|
2019-11-08 16:47:47 +01:00
|
|
|
<option [value]="'all'">All</option>
|
|
|
|
<option [value]="'active'">Active</option>
|
|
|
|
<option [value]="'inactive'">Inactive</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-expand@m uk-width-1-1 uk-flex uk-flex-middle uk-flex-right">
|
|
|
|
<div class="uk-inline">
|
|
|
|
<span class="uk-form-icon uk-form-icon-flip"><i class="material-icons">search</i></span>
|
|
|
|
<input (ngModelChange)="onKeywordChange($event)"
|
|
|
|
[(ngModel)]="keyword"
|
|
|
|
class="uk-input uk-form-small" placeholder="Locate indicator..">
|
|
|
|
</div>
|
|
|
|
<div [class.uk-active]="grid" class="uk-margin-small-left">
|
|
|
|
<a [routerLink]="" class="uk-icon-button" (click)="changeGrid(true)"><i
|
|
|
|
class="material-icons">view_module</i></a>
|
|
|
|
</div>
|
|
|
|
<div [class.uk-active]="!grid" class="uk-margin-small-left">
|
|
|
|
<a [routerLink]="" class="uk-icon-button" (click)="changeGrid(false)"><i class="material-icons">list</i></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-13 11:26:50 +01:00
|
|
|
<div *ngIf="stakeholder && canEdit" id="page_content_inner">
|
2019-11-08 16:47:47 +01:00
|
|
|
<div class="uk-child-width-1-2 uk-flex-middle" uk-grid>
|
|
|
|
<div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<ul id="breadcrumbs">
|
|
|
|
<li><span>{{stakeholder.topics[topicIndex].name}}</span></li>
|
2019-11-13 11:26:50 +01:00
|
|
|
<li>
|
|
|
|
<span>{{stakeholder.topics[topicIndex].categories[categoryIndex].name}}</span></li>
|
2019-11-12 16:55:37 +01:00
|
|
|
<li>
|
|
|
|
<span class="md-color-blue-900 uk-text-bold">
|
|
|
|
{{stakeholder.topics[topicIndex].categories[categoryIndex].subCategories[subcategoryIndex].name}}
|
|
|
|
</span>
|
|
|
|
</li>
|
2019-11-08 16:47:47 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="uk-flex uk-flex-right">
|
|
|
|
<button class="md-btn md-btn-primary">Preview</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-13 17:01:33 +01:00
|
|
|
<h4 class="uk-text-bold">Number Indicators</h4>
|
2019-11-08 16:47:47 +01:00
|
|
|
<div [class.uk-child-width-1-3@m]="grid"
|
|
|
|
[class.uk-child-width-1-2@s]="grid"
|
|
|
|
[class.uk-child-width-1-1]="!grid"
|
2019-11-13 17:01:33 +01:00
|
|
|
class="uk-grid-match"
|
2019-11-08 16:47:47 +01:00
|
|
|
uk-grid>
|
|
|
|
<ng-template ngFor [ngForOf]="displayNumbers" let-indicator let-i="index">
|
|
|
|
<div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div class="md-card" [class.uk-width-4-5@xl]="!grid">
|
2019-11-08 16:47:47 +01:00
|
|
|
<div class="md-card-toolbar">
|
|
|
|
<div class="md-card-toolbar-actions" [class.uk-flex-middle]="!grid" [class.uk-flex]="!grid">
|
|
|
|
<span *ngIf="!grid" class="uk-margin-medium-right uk-flex uk-flex-middle">
|
|
|
|
<i
|
|
|
|
class="material-icons md-24 uk-margin-small-right">{{indicatorUtils.isPublicIcon.get(indicator.isPublic)}}</i>
|
|
|
|
{{(indicator.isPublic) ? 'Public' : 'Private'}}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="!grid" class="uk-margin-medium-right uk-flex uk-flex-middle">
|
|
|
|
<i class="material-icons md-24 uk-margin-small-right"
|
|
|
|
[class.md-color-green-300]="indicator.isActive">{{indicatorUtils.isActiveIcon}}</i>
|
|
|
|
{{(indicator.isActive) ? 'Active' : 'Inactive'}}
|
|
|
|
</span>
|
|
|
|
<i class="md-icon material-icons">more_vert</i>
|
|
|
|
</div>
|
2019-11-14 13:42:41 +01:00
|
|
|
<div class="md-card-toolbar-heading-text">{{indicator.name}}</div>
|
2019-11-08 16:47:47 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="grid" class="md-card-content">
|
|
|
|
<div class="uk-flex uk-flex-center" uk-grid>
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
{{indicator.description}}
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2 uk-text-center">
|
|
|
|
<i class="material-icons md-24">{{indicatorUtils.isPublicIcon.get(indicator.isPublic)}}</i>
|
|
|
|
<div>{{(indicator.isPublic) ? 'Public' : 'Private'}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2 uk-text-center">
|
|
|
|
<i class="material-icons md-24"
|
|
|
|
[class.md-color-green-300]="indicator.isActive">{{indicatorUtils.isActiveIcon}}</i>
|
|
|
|
<div>{{(indicator.isActive) ? 'Active' : 'Inactive'}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
2019-11-13 17:01:33 +01:00
|
|
|
<h4 class="uk-text-bold">Chart Indicators</h4>
|
2019-11-08 16:47:47 +01:00
|
|
|
<div [class.uk-child-width-1-3@m]="grid"
|
|
|
|
[class.uk-child-width-1-2@s]="grid"
|
|
|
|
[class.uk-child-width-1-1]="!grid"
|
|
|
|
uk-height-match="target: .md-card"
|
|
|
|
uk-grid>
|
|
|
|
<ng-template ngFor [ngForOf]="displayCharts" let-indicator let-i="index">
|
|
|
|
<div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div class="md-card" [class.uk-width-4-5@xl]="!grid">
|
2019-11-08 16:47:47 +01:00
|
|
|
<div class="md-card-toolbar">
|
|
|
|
<div class="md-card-toolbar-actions" [class.uk-flex-middle]="!grid" [class.uk-flex]="!grid">
|
|
|
|
<ng-template [ngIf]="!grid">
|
|
|
|
<span *ngFor="let indicatorPath of indicator.indicatorPaths"
|
|
|
|
class="uk-margin-medium-right uk-text-capitalize uk-flex uk-flex-middle">
|
2019-11-13 17:01:33 +01:00
|
|
|
<i class="material-icons md-24 uk-margin-small-right">
|
|
|
|
{{indicatorUtils.chartTypes.get(indicatorPath.type)}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
{{indicatorPath.type + ' Chart'}}
|
|
|
|
</span>
|
|
|
|
</ng-template>
|
|
|
|
<span *ngIf="!grid" class="uk-margin-medium-right uk-flex uk-flex-middle">
|
2019-11-13 17:01:33 +01:00
|
|
|
<i class="material-icons md-24 uk-margin-small-right">
|
|
|
|
{{indicatorUtils.isPublicIcon.get(indicator.isPublic)}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
{{(indicator.isPublic) ? 'Public' : 'Private'}}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="!grid" class="uk-margin-medium-right uk-flex uk-flex-middle">
|
|
|
|
<i class="material-icons md-24 uk-margin-small-right"
|
2019-11-13 17:01:33 +01:00
|
|
|
[class.md-color-green-300]="indicator.isActive">
|
|
|
|
{{indicatorUtils.isActiveIcon}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
{{(indicator.isActive) ? 'Active' : 'Inactive'}}
|
|
|
|
</span>
|
|
|
|
<i class="md-icon material-icons">more_vert</i>
|
|
|
|
</div>
|
2019-11-12 16:55:37 +01:00
|
|
|
<div class="md-card-toolbar-heading-text">{{indicator.name}}</div>
|
2019-11-08 16:47:47 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="grid" class="md-card-content">
|
|
|
|
<div class="uk-flex uk-flex-center" uk-grid>
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
{{indicator.description}}
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-3 uk-text-center"
|
|
|
|
[ngClass]="'uk-child-width-1-' + indicator.indicatorPaths.length" uk-grid>
|
|
|
|
<div *ngFor="let indicatorPath of indicator.indicatorPaths">
|
2019-11-13 17:01:33 +01:00
|
|
|
<i class="material-icons md-24">
|
|
|
|
{{indicatorUtils.chartTypes.get(indicatorPath.type)}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
<div class="uk-text-capitalize">{{indicatorPath.type + ' Chart'}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-3 uk-text-center">
|
2019-11-13 17:01:33 +01:00
|
|
|
<i class="material-icons md-24">
|
|
|
|
{{indicatorUtils.isPublicIcon.get(indicator.isPublic)}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
<div>{{(indicator.isPublic) ? 'Public' : 'Private'}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-3 uk-text-center">
|
2019-11-13 17:01:33 +01:00
|
|
|
<i class="material-icons md-24" [class.md-color-green-300]="indicator.isActive">
|
|
|
|
{{indicatorUtils.isActiveIcon}}
|
|
|
|
</i>
|
2019-11-08 16:47:47 +01:00
|
|
|
<div>{{(indicator.isActive) ? 'Active' : 'Inactive'}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|