1
|
<div *ngIf="stakeholder && canEdit" >
|
2
|
<div class="uk-padding-small md-bg-white" uk-grid>
|
3
|
<div *ngIf="filters" class="uk-width-2-3@m uk-width-1-1 uk-child-width-1-3@m uk-child-width-1-1" uk-grid>
|
4
|
<div>
|
5
|
<div dashboard-input [formInput]="filters.get('chartType')"
|
6
|
type="select" [options]="[all].concat(indicatorUtils.allChartTypes)"
|
7
|
label="Chart Type"></div>
|
8
|
</div>
|
9
|
|
10
|
<div>
|
11
|
<div dashboard-input [formInput]="filters.get('status')"
|
12
|
type="select" [options]="[all].concat(stakeholderUtils.visibility)"
|
13
|
label="Status"></div>
|
14
|
</div>
|
15
|
</div>
|
16
|
<div class="uk-width-expand@m uk-width-1-1 uk-flex uk-flex-middle uk-flex-right">
|
17
|
<div class="uk-inline uk-width-medium">
|
18
|
<span class="uk-position-center-right"><i uk-icon="search" class="uk-icon"></i></span>
|
19
|
<div dashboard-input [formInput]="filters.get('keyword')" label="Locate indicator"></div>
|
20
|
</div>
|
21
|
|
22
|
</div>
|
23
|
</div>
|
24
|
<div class=" ">
|
25
|
<div class="uk-flex uk-flex-right">
|
26
|
<a class="uk-button uk-button-primary">
|
27
|
<icon name="preview"></icon>
|
28
|
Preview
|
29
|
<i uk-icon="chevron-down" class="uk-icon"></i>
|
30
|
</a>
|
31
|
<div #element uk-dropdown="mode: click; pos: bottom-right; offset: 5; delay-hide: 0; flip: false"
|
32
|
class="uk-padding-remove-horizontal">
|
33
|
<ul class="uk-nav uk-dropdown-nav uk-margin-left">
|
34
|
<li><a target="_blank" [routerLink]="preview" [queryParams]="{view: 'public'}" (click)="hide(element)">Public</a>
|
35
|
</li>
|
36
|
<li><a target="_blank" [routerLink]="preview" [queryParams]="{view: 'private'}" (click)="hide(element)">Private</a>
|
37
|
</li>
|
38
|
</ul>
|
39
|
</div>
|
40
|
</div>
|
41
|
</div>
|
42
|
<h6 class="uk-text-bold">Number Indicators</h6>
|
43
|
<div *ngIf="numberSections">
|
44
|
<ng-template ngFor [ngForOf]="displayNumbers" let-number let-i="index">
|
45
|
<div [id]="'number-' + number._id" [class.section]="isAdministrator"
|
46
|
class="uk-grid-match uk-grid-small uk-grid uk-margin-top"
|
47
|
uk-sortable="group: number" uk-grid>
|
48
|
<div class="tools disable-sortable uk-sortable-nodrag">
|
49
|
<div *ngIf="isAdministrator" class="actions">
|
50
|
<a [class.uk-disabled]="editing" class="" (click)="createSection(i, 'number')"
|
51
|
title="Create a new section"><i
|
52
|
uk-icon="icon:plus;ratio:0.8"></i></a>
|
53
|
<!--<button class="md-btn md-btn-mini"><i class="material-icons rotate-90">drag_indicator</i></button>-->
|
54
|
<a [class.uk-disabled]="editing || number.defaultId " class=""
|
55
|
[title]="(number.defaultId?'Default sections cannot be deleted':'Delete section')"
|
56
|
(click)="deleteSectionOpen(number, i, 'number', 'delete')"><i uk-icon="icon:close;ratio:0.8"></i>
|
57
|
</a>
|
58
|
<!-- <ng-container *ngIf="!stakeholder.defaultId">-->
|
59
|
<!-- <button [disabled]="editing || number.defaultId " class="md-btn md-btn-mini"-->
|
60
|
<!-- [title]="(number.defaultId?'Default sections cannot be deleted':'Delete all related sections')"-->
|
61
|
<!-- (click)="deleteSectionOpen(number, i, 'number', 'delete')"><i class="material-icons">highlight_off</i>-->
|
62
|
<!-- </button>-->
|
63
|
<!-- <button [disabled]="editing || number.defaultId " class="md-btn md-btn-mini"-->
|
64
|
<!-- [title]="(number.defaultId?'Default sections cannot be deleted':'Delete section and disconnect related')"-->
|
65
|
<!-- (click)="deleteSectionOpen(number, i, 'number', 'disconnect')"><i class="material-icons">link_off</i>-->
|
66
|
<!-- </button>-->
|
67
|
<!-- </ng-container>-->
|
68
|
</div>
|
69
|
</div>
|
70
|
<div *ngIf="numberSections.at(i)"
|
71
|
class="uk-form-row uk-width-1-1 uk-grid-medium uk-flex uk-flex-middle uk-margin-bottom disable-sortable uk-sortable-nodrag"
|
72
|
uk-grid>
|
73
|
<div dashboard-input class="uk-width-2-3 uk-width-1-3@m" [formInput]="numberSections.at(i).get('title')"
|
74
|
label="Add a section title"></div>
|
75
|
<div class="uk-width-expand">
|
76
|
<button *ngIf="numberSections.at(i).dirty" class="md-btn" [disabled]="editing"
|
77
|
(click)="saveSection(numberSections.at(i).value, i, 'number')">
|
78
|
Save
|
79
|
</button>
|
80
|
</div>
|
81
|
</div>
|
82
|
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
|
83
|
<div *ngIf="indicator" [id]="indicator._id"
|
84
|
[class.uk-width-1-5@m]="indicator.width === 'small'"
|
85
|
[class.uk-width-1-3@m]=" indicator.width === 'medium'"
|
86
|
[class.uk-width-1-2@m]=" indicator.width === 'large'"
|
87
|
[class.disable-sortable]="!canReorder"
|
88
|
[class.uk-sortable-nodrag]="!canReorder">
|
89
|
<div class="uk-card uk-card-default" [class.md-card-hover]="canReorder">
|
90
|
<div class="uk-padding-small uk-padding-remove-bottom ">
|
91
|
<ng-container *ngTemplateOutlet="visibilityOptions; context:{indicator: indicator}"></ng-container>
|
92
|
<div class="md-card-toolbar-actions uk-float-right" >
|
93
|
|
94
|
<div class="md-card-dropdown uk-inline">
|
95
|
<i uk-icon="more-vertical" class="clickable"></i>
|
96
|
<div #element uk-dropdown="mode: click; pos: bottom-right; delay-hide: 0; flip: false"
|
97
|
class="uk-padding-remove-horizontal">
|
98
|
<ul class="uk-nav uk-dropdown-nav uk-margin-left">
|
99
|
<li *ngIf="isAdministrator && !indicator.defaultId && !editing"><a
|
100
|
(click)="editNumberIndicatorOpen(number, indicator._id)">Edit</a></li>
|
101
|
<ng-template ngFor [ngForOf]="stakeholderUtils.visibility" let-v>
|
102
|
<li *ngIf="indicator.visibility != v.value"><a (click)="toggleIndicatorStatus(number._id,
|
103
|
indicator, v.value); hide(element)">
|
104
|
{{'Make ' + v.label.toLowerCase()}}</a>
|
105
|
</li>
|
106
|
</ng-template>
|
107
|
<hr *ngIf="isAdministrator && !indicator.defaultId" class="uk-nav-divider">
|
108
|
<li *ngIf="isAdministrator && !indicator.defaultId && !editing"><a
|
109
|
(click)="deleteIndicatorOpen(number, indicator._id, 'number', 'delete');hide(element)">Delete</a>
|
110
|
<!-- <ng-container *ngIf="!stakeholder.defaultId">-->
|
111
|
<!-- <a (click)="deleteIndicatorOpen(number, indicator._id, 'number', 'delete');hide(element)">Delete from all profiles</a>-->
|
112
|
<!-- <a (click)="deleteIndicatorOpen(number, indicator._id, 'number', 'disconnect');hide(element)">Delete and disconnect from all profiles</a>-->
|
113
|
<!-- </ng-container>-->
|
114
|
</li>
|
115
|
</ul>
|
116
|
</div>
|
117
|
</div>
|
118
|
</div>
|
119
|
|
120
|
</div>
|
121
|
<div class=" uk-padding-small uk-padding-remove-top">
|
122
|
<div class="">
|
123
|
<div class="uk-text-center">
|
124
|
{{indicator.name ? indicator.name : 'No title available'}}
|
125
|
</div>
|
126
|
<div class="uk-width-1-1">
|
127
|
{{indicator.description}}
|
128
|
</div>
|
129
|
<div class="uk-width-1-1">
|
130
|
{{indicator.additionalDescription}}
|
131
|
</div>
|
132
|
</div>
|
133
|
</div>
|
134
|
</div>
|
135
|
</div>
|
136
|
</ng-template>
|
137
|
<div *ngIf="isAdministrator" class="disable-sortable uk-sortable-nodrag uk-width-1-3@m">
|
138
|
<div class="uk-card uk-card-default clickable" (click)="editNumberIndicatorOpen(number)">
|
139
|
<div class="uk-card-body">
|
140
|
<div uk-grid class="uk-text-center">
|
141
|
<div class="uk-width-1-1 uk-text-center">
|
142
|
Create a new number Indicator
|
143
|
</div>
|
144
|
<div class="uk-width-1-1 uk-flex uk-flex-center">
|
145
|
<i uk-icon="plus"></i>
|
146
|
</div>
|
147
|
</div>
|
148
|
</div>
|
149
|
</div>
|
150
|
</div>
|
151
|
</div>
|
152
|
</ng-template>
|
153
|
<div *ngIf="isAdministrator" class="new-section uk-margin-top">
|
154
|
<div class="tools uk-flex uk-flex-middle">
|
155
|
<button class="uk-margin-small-right uk-icon-button portal-button" (click)="createSection(-1, 'number')">
|
156
|
<i uk-icon="plus"></i>
|
157
|
</button>
|
158
|
<span>Create a new section</span>
|
159
|
</div>
|
160
|
</div>
|
161
|
</div>
|
162
|
<h6 class="uk-text-bold">Chart Indicators</h6>
|
163
|
<div *ngIf="chartSections">
|
164
|
<ng-template ngFor [ngForOf]="displayCharts" let-chart let-i="index">
|
165
|
<div [id]="'chart-' + chart._id"
|
166
|
class="uk-grid-match section uk-grid-small uk-grid uk-margin-top"
|
167
|
uk-sortable="group: chart" uk-grid>
|
168
|
<div class="tools disable-sortable uk-sortable-nodrag">
|
169
|
<div class="actions">
|
170
|
<a [class.uk-disabled]="editing" class="" (click)="createSection(i)"
|
171
|
title="Create a new section"><i
|
172
|
uk-icon="icon:plus;ratio:0.8"></i></a>
|
173
|
<!--<button class="md-btn md-btn-mini"><i class="material-icons rotate-90">drag_indicator</i></button>-->
|
174
|
<a [class.uk-disabled]="editing || chart.defaultId "
|
175
|
[title]="(chart.defaultId?'Default sections cannot be deleted':'Delete section')"
|
176
|
class="" (click)="deleteSectionOpen(chart, i, 'chart', 'delete')"><i
|
177
|
uk-icon="icon:close;ratio:0.8"></i>
|
178
|
</a>
|
179
|
<!-- <ng-container *ngIf="!stakeholder.defaultId">-->
|
180
|
<!-- <button [disabled]="editing || chart.defaultId " class="md-btn md-btn-mini"-->
|
181
|
<!-- [title]="(chart.defaultId?'Default sections cannot be deleted':'Delete all related sections')"-->
|
182
|
<!-- (click)="deleteSectionOpen(chart, i, 'chart', 'delete')"><i class="material-icons">highlight_off</i>-->
|
183
|
<!-- </button>-->
|
184
|
<!-- <button [disabled]="editing || chart.defaultId " class="md-btn md-btn-mini"-->
|
185
|
<!-- [title]="(chart.defaultId?'Default sections cannot be deleted':'Delete section and disconnect related')"-->
|
186
|
<!-- (click)="deleteSectionOpen(chart, i, 'chart', 'disconnect')"><i class="material-icons">link_off</i>-->
|
187
|
<!-- </button>-->
|
188
|
<!-- </ng-container>-->
|
189
|
</div>
|
190
|
</div>
|
191
|
<div *ngIf="chartSections.at(i)"
|
192
|
class="uk-form-row uk-width-1-1 uk-grid-medium uk-flex uk-flex-middle uk-margin-bottom disable-sortable uk-sortable-nodrag"
|
193
|
uk-grid>
|
194
|
<div dashboard-input class="uk-width-2-3 uk-width-1-3@m" [formInput]="chartSections.at(i).get('title')"
|
195
|
label="Add a section title"></div>
|
196
|
<div class="uk-width-expand">
|
197
|
<button *ngIf="chartSections.at(i).dirty" class="md-btn" [disabled]="editing"
|
198
|
(click)="saveSection(chartSections.at(i).value, i)">
|
199
|
Save
|
200
|
</button>
|
201
|
</div>
|
202
|
</div>
|
203
|
<ng-template ngFor [ngForOf]="chart.indicators" let-indicator let-j="index">
|
204
|
<div *ngIf="indicator" [id]="indicator._id"
|
205
|
[class.uk-width-1-3@m]="indicator.width === 'small'"
|
206
|
[class.uk-width-1-2@m]=" indicator.width === 'medium'"
|
207
|
[class.uk-width-1-1@m]="indicator.width === 'large'"
|
208
|
[class.disable-sortable]="!canReorder"
|
209
|
[class.uk-sortable-nodrag]="!canReorder">
|
210
|
<div class="uk-card uk-card-default" [class.md-card-hover]="canReorder">
|
211
|
<div class="uk-padding-small uk-padding-remove-bottom ">
|
212
|
<ng-container *ngTemplateOutlet="visibilityOptions; context:{indicator: indicator}"></ng-container>
|
213
|
<div class="md-card-toolbar-actions uk-float-right" >
|
214
|
<div class="md-card-dropdown uk-inline">
|
215
|
<i uk-icon="more-vertical" class="clickable"></i>
|
216
|
<div #element uk-dropdown="mode: click; pos: bottom-right; delay-hide: 0; flip: false"
|
217
|
class="uk-padding-remove-horizontal">
|
218
|
<ul class="uk-nav uk-dropdown-nav uk-margin-left">
|
219
|
<li *ngIf="!editing"><a (click)="editChartIndicatorOpen(chart, indicator._id);hide(element)">Edit</a>
|
220
|
</li>
|
221
|
<ng-template ngFor [ngForOf]="stakeholderUtils.visibility" let-v>
|
222
|
<li *ngIf="indicator.visibility != v.value"><a (click)="toggleIndicatorStatus(chart._id,
|
223
|
indicator, v.value); hide(element)">
|
224
|
{{'Make ' + v.label.toLowerCase()}}</a>
|
225
|
</li>
|
226
|
</ng-template>
|
227
|
<hr *ngIf="!indicator.defaultId " class="uk-nav-divider">
|
228
|
<li *ngIf="!editing && !indicator.defaultId "><a
|
229
|
(click)="deleteIndicatorOpen(chart, indicator._id, 'chart', 'delete');hide(element)">
|
230
|
Delete</a>
|
231
|
<!-- <a (click)="deleteIndicatorOpen(chart, indicator._id, 'chart', 'delete');hide(element)">Delete from all profiles</a>-->
|
232
|
<!-- <a (click)="deleteIndicatorOpen(chart, indicator._id, 'chart', 'disconnect');hide(element)">Delete and disconnect from all profiles</a>-->
|
233
|
</li>
|
234
|
</ul>
|
235
|
</div>
|
236
|
</div>
|
237
|
</div>
|
238
|
|
239
|
</div>
|
240
|
<div class="uk-padding-small uk-padding-remove-top">
|
241
|
<div class="">
|
242
|
<div class="uk-text-center">
|
243
|
{{indicator.name}}
|
244
|
</div>
|
245
|
<iframe *ngIf="indicator.indicatorPaths[0] && indicator.indicatorPaths[0].source !== 'image' &&
|
246
|
safeUrls.get(indicatorUtils.getFullUrl(stakeholder, indicator.indicatorPaths[0]))"
|
247
|
[src]="safeUrls.get(indicatorUtils.getFullUrl(stakeholder, indicator.indicatorPaths[0]))"
|
248
|
class="uk-width-1-1 uk-height-medium"></iframe>
|
249
|
<!-- <div>Uncomment for iframes preview</div>-->
|
250
|
<div *ngIf="indicator.indicatorPaths[0] && indicator.indicatorPaths[0].source === 'image'">
|
251
|
<img class="uk-width-1-1 uk-height-medium" [src]="indicator.indicatorPaths[0].url">
|
252
|
</div>
|
253
|
<div class="uk-width-1-1 uk-text-muted uk-text-small">
|
254
|
{{indicator.description ? indicator.description : ''}}
|
255
|
</div>
|
256
|
<div class="uk-width-1-1 uk-text-muted uk-text-small">
|
257
|
{{indicator.additionalDescription ? indicator.additionalDescription : ''}}
|
258
|
</div>
|
259
|
</div>
|
260
|
</div>
|
261
|
</div>
|
262
|
</div>
|
263
|
</ng-template>
|
264
|
<div class="disable-sortable uk-sortable-nodrag uk-width-1-2@m">
|
265
|
<div class="uk-card uk-card-default clickable" (click)="editChartIndicatorOpen(chart)">
|
266
|
<div class="uk-card-body">
|
267
|
<div >
|
268
|
<div class="uk-text-bold">Create a custom indicator</div>
|
269
|
<div class="uk-width-1-1">
|
270
|
Use our advance tool to create a custom Indicator that suit the needs of your funding
|
271
|
KPI's.
|
272
|
</div>
|
273
|
<div class="uk-width-1-1 uk-flex uk-flex-center">
|
274
|
<i uk-icon="plus"></i>
|
275
|
</div>
|
276
|
</div>
|
277
|
</div>
|
278
|
</div>
|
279
|
</div>
|
280
|
</div>
|
281
|
</ng-template>
|
282
|
<div class="new-section uk-margin-top">
|
283
|
<div class="tools uk-flex uk-flex-middle">
|
284
|
<button [disabled]="editing" class="uk-margin-small-right uk-icon-button portal-button" (click)="createSection()">
|
285
|
<i uk-icon="plus"></i>
|
286
|
</button>
|
287
|
<span>Create a new section</span>
|
288
|
</div>
|
289
|
</div>
|
290
|
</div>
|
291
|
</div>
|
292
|
|
293
|
<modal-alert #editNumberModal
|
294
|
[classBody]="'large-modal'"
|
295
|
(alertOutput)="saveIndicator()"
|
296
|
[okDisabled]="numberIndicatorFb && (numberIndicatorFb.invalid || numberIndicatorFb.pristine)">
|
297
|
<div *ngIf="numberIndicatorFb" class="uk-padding-small" [formGroup]="numberIndicatorFb">
|
298
|
<div dashboard-input class="uk-form-row" [formInput]="numberIndicatorFb.get('name')" label="Title"></div>
|
299
|
<div *ngIf="isAdministrator" dashboard-input class="uk-form-row" [formInput]="numberIndicatorFb.get('description')"
|
300
|
label="Description" type="textarea">
|
301
|
</div>
|
302
|
<div dashboard-input class="uk-form-row" [formInput]="numberIndicatorFb.get('additionalDescription')"
|
303
|
label="Additional information" type="textarea">
|
304
|
</div>
|
305
|
<div class="uk-form-row uk-flex uk-flex-middle">
|
306
|
<div dashboard-input class="uk-width-small" [formInput]="numberIndicatorFb.get('visibility')"
|
307
|
label="Visibility" [options]="stakeholderUtils.visibility" type="select">
|
308
|
</div>
|
309
|
<div dashboard-input class="uk-margin-small-left uk-width-small" [formInput]="numberIndicatorFb.get('width')"
|
310
|
type="select" [options]="indicatorUtils.indicatorSizes"
|
311
|
label="Number Size">
|
312
|
</div>
|
313
|
</div>
|
314
|
<h5 class="uk-text-bold uk-margin-top uk-margin-bottom">
|
315
|
Number Settings
|
316
|
</h5>
|
317
|
<div *ngIf="numberIndicatorPaths" formArrayName="indicatorPaths">
|
318
|
<div *ngFor="let indicatorPath of numberIndicatorPaths.controls; let i=index"
|
319
|
[formGroup]="indicatorPath">
|
320
|
<div class="uk-grid-medium uk-form-row uk-flex uk-flex-middle" uk-grid>
|
321
|
<div class="uk-width-2-3@s">
|
322
|
<div dashboard-input [formInput]="indicatorPath.get('url')" type="textarea" rows="3"
|
323
|
label="Number path url"></div>
|
324
|
</div>
|
325
|
<div *ngIf="urlParameterizedMessage.length > 0" class="uk-alert-warning uk-alert">
|
326
|
{{urlParameterizedMessage}}
|
327
|
</div>
|
328
|
<div class="uk-width-1-3@s">
|
329
|
<div dashboard-input [formInput]="indicatorPath.get('source')" label="Source"
|
330
|
type="select" [options]="indicatorUtils.sourceTypes">
|
331
|
</div>
|
332
|
</div>
|
333
|
</div>
|
334
|
<div formArrayName="jsonPath">
|
335
|
<div class="uk-margin-top uk-margin-bottom uk-text-large">
|
336
|
JSON Path
|
337
|
</div>
|
338
|
<div class="uk-grid uk-grid-medium" uk-grid>
|
339
|
<div *ngFor="let jsonPath of getJsonPath(i).controls; let j=index" class="uk-flex uk-flex-middle">
|
340
|
<div dashboard-input class="uk-width-small"
|
341
|
[formInput]="jsonPath"
|
342
|
[label]="'Level ' + +(j + 1)"></div>
|
343
|
<i *ngIf="getJsonPath(i).length !== 1"
|
344
|
class="material-icons md-24 uk-margin-left uk-text-danger clickable" (click)="removeJsonPath(i, j)">close</i>
|
345
|
<div *ngIf="j < (getJsonPath(i).length - 1)" class="uk-text-center uk-margin-left">
|
346
|
<i class="material-icons">arrow_forward</i>
|
347
|
</div>
|
348
|
<div *ngIf="j === (getJsonPath(i).length - 1)" class="uk-margin-left">
|
349
|
<button class="md-btn md-btn-small md-btn-primary" (click)="addJsonPath(i)">Add level</button>
|
350
|
</div>
|
351
|
</div>
|
352
|
</div>
|
353
|
</div>
|
354
|
</div>
|
355
|
</div>
|
356
|
</div>
|
357
|
</modal-alert>
|
358
|
<modal-alert #editChartModal
|
359
|
[classBody]="'large-modal'"
|
360
|
(alertOutput)="saveIndicator()"
|
361
|
[okDisabled]="chartIndicatorFb && (chartIndicatorFb.invalid || chartIndicatorFb.pristine)">
|
362
|
<div *ngIf="chartIndicatorFb" class="uk-padding-small" [formGroup]="chartIndicatorFb">
|
363
|
<div dashboard-input class="uk-form-row" [formInput]="chartIndicatorFb.get('name')" label="Title"></div>
|
364
|
<div *ngIf="isAdministrator" dashboard-input class="uk-form-row" [formInput]="chartIndicatorFb.get('description')"
|
365
|
label="Description" type="textarea">
|
366
|
</div>
|
367
|
<div dashboard-input class="uk-form-row" [formInput]="chartIndicatorFb.get('additionalDescription')"
|
368
|
label="Additional information" type="textarea">
|
369
|
</div>
|
370
|
<div class="uk-form-row uk-flex uk-flex-middle">
|
371
|
<div dashboard-input class="uk-width-small" [formInput]="chartIndicatorFb.get('visibility')"
|
372
|
label="Visibility" [options]="stakeholderUtils.visibility" type="select">
|
373
|
</div>
|
374
|
<div dashboard-input class="uk-margin-small-left uk-width-small" [formInput]="chartIndicatorFb.get('width')"
|
375
|
type="select" [options]="indicatorUtils.indicatorSizes"
|
376
|
label="Chart Size">
|
377
|
</div>
|
378
|
</div>
|
379
|
<h5 class="uk-text-bold uk-margin-top uk-margin-bottom">
|
380
|
Chart Settings
|
381
|
</h5>
|
382
|
<div *ngIf="chartIndicatorPaths" formArrayName="indicatorPaths">
|
383
|
<div *ngFor="let indicatorPath of chartIndicatorPaths.controls; let i=index"
|
384
|
[formGroup]="indicatorPath">
|
385
|
<div dashboard-input class="uk-form-row"
|
386
|
[title]="indicatorPath.get('url').disabled?'Default chart URLs cannot change':''"
|
387
|
[formInput]="indicatorPath.get('url')"
|
388
|
label="Chart Url"></div>
|
389
|
<div *ngIf="urlParameterizedMessage.length > 0" class="uk-alert-warning uk-alert">
|
390
|
{{urlParameterizedMessage}}
|
391
|
</div>
|
392
|
<div formArrayName="parameters">
|
393
|
<div *ngIf="getParameter(i, 'title')" class="uk-form-row">
|
394
|
<div dashboard-input
|
395
|
[formInput]="getParameter(i, 'title').get('value')"
|
396
|
label="Chart Title"></div>
|
397
|
</div>
|
398
|
<div *ngIf="getParameter(i, 'subtitle')" class="uk-form-row">
|
399
|
<div dashboard-input
|
400
|
[formInput]="getParameter(i, 'subtitle').get('value')"
|
401
|
label="Chart Subtitle"></div>
|
402
|
</div>
|
403
|
<div class="uk-grid-medium uk-form-row" uk-grid>
|
404
|
<div *ngIf="!getParameter(i, 'type')" class="uk-width-1-3@s">
|
405
|
<div dashboard-input [formInput]="indicatorPath.get('type')"
|
406
|
type="select"
|
407
|
[options]="(indicatorPath.get('type').value == 'table' && getParameter(i, 'data_title_0'))?indicatorUtils.getChartTypes(indicatorPath.get('type').value):indicatorUtils.allChartTypes"
|
408
|
label="Chart Type"></div>
|
409
|
</div>
|
410
|
<div *ngIf="getParameter(i, 'type')" class="uk-width-1-3@s">
|
411
|
<div dashboard-input [formInput]="getParameter(i, 'type').get('value')"
|
412
|
type="select" [options]="indicatorUtils.getChartTypes(getParameter(i, 'type').get('value').value)"
|
413
|
label="Chart Type"></div>
|
414
|
</div>
|
415
|
<div *ngIf="getParameter(i, 'xAxisTitle')" class="uk-width-1-3@s">
|
416
|
<div dashboard-input [formInput]="getParameter(i, 'xAxisTitle').get('value')"
|
417
|
label="X-Axis Title"></div>
|
418
|
</div>
|
419
|
<div *ngIf="getParameter(i, 'yAxisTitle')" class="uk-width-1-3@s">
|
420
|
<div dashboard-input [formInput]="getParameter(i, 'yAxisTitle').get('value')"
|
421
|
label="Y-Axis Title"></div>
|
422
|
</div>
|
423
|
<div *ngIf="getParameter(i, 'data_title_0')" class="uk-width-1-3@s">
|
424
|
<div dashboard-input [formInput]="getParameter(i, 'data_title_0').get('value')"
|
425
|
label="Data title"></div>
|
426
|
</div>
|
427
|
<div *ngIf="getParameter(i, 'data_title_1')" class="uk-width-1-3@s">
|
428
|
<div dashboard-input [formInput]="getParameter(i, 'data_title_1').get('value')"
|
429
|
label="Data title"></div>
|
430
|
</div>
|
431
|
<div *ngIf="getParameter(i, 'start_year')" class="uk-width-1-3@s">
|
432
|
<div dashboard-input [formInput]="getParameter(i, 'start_year').get('value')"
|
433
|
label="Year (From)"></div>
|
434
|
</div>
|
435
|
<div *ngIf="getParameter(i, 'end_year')" class="uk-width-1-3@s">
|
436
|
<div dashboard-input [formInput]="getParameter(i, 'end_year').get('value')"
|
437
|
label="Year (To)"></div>
|
438
|
</div>
|
439
|
</div>
|
440
|
</div>
|
441
|
<div *ngIf="indicator && indicator.indicatorPaths[i] && indicator.indicatorPaths[i].safeResourceUrl"
|
442
|
class="uk-margin-medium-top uk-position-relative">
|
443
|
<div *ngIf="(hasDifference(i)) && !indicatorPath.invalid"
|
444
|
class="uk-width-1-1 uk-height-medium refresh-iframe">
|
445
|
<div class="uk-position-relative uk-height-1-1">
|
446
|
<div class="uk-position-center md-color-white uk-text-center clickable"
|
447
|
(click)="refreshIndicator()">
|
448
|
<div><i class="material-icons md-color-white">refresh</i></div>
|
449
|
<span>Click to refresh the graph view</span>
|
450
|
</div>
|
451
|
</div>
|
452
|
</div>
|
453
|
<iframe *ngIf="indicator.indicatorPaths[i].source !== 'image'"
|
454
|
[src]="indicator.indicatorPaths[i].safeResourceUrl"
|
455
|
class="uk-width-1-1 uk-height-medium"></iframe>
|
456
|
<div *ngIf="indicator.indicatorPaths[i].source === 'image'">
|
457
|
<img class="uk-width-1-1 uk-height-medium" [src]="indicator.indicatorPaths[i].url">
|
458
|
</div>
|
459
|
</div>
|
460
|
</div>
|
461
|
</div>
|
462
|
</div>
|
463
|
</modal-alert>
|
464
|
<modal-alert #deleteModal (alertOutput)="deleteIndicator()">
|
465
|
You are about to delete <span class="uk-text-bold" *ngIf="indicator && index !== -1">
|
466
|
"{{indicator.name ? indicator.name : indicator.indicatorPaths[0].parameters.title}}"</span> indicator permanently.
|
467
|
<div *ngIf="indicatorChildrenActionOnDelete == 'delete'" class="uk-text-bold">
|
468
|
Indicators of all profiles based on this default indicator, will be deleted as well.
|
469
|
</div>
|
470
|
<!-- <span *ngIf="indicatorChildrenActionOnDelete == 'disconnect'" class="uk-text-bold">-->
|
471
|
<!-- Indicators of all profiles based on this default indicator, will not be marked as copied from default anymore.-->
|
472
|
<!-- </span>-->
|
473
|
Are you sure you want to proceed?
|
474
|
</modal-alert>
|
475
|
<!--<modal-alert #deleteAllModal (alertOutput)="deleteIndicator('delete')">-->
|
476
|
<!-- You are about to delete <span class="uk-text-bold" *ngIf="indicator && index !== -1">-->
|
477
|
<!-- "{{indicator.name ? indicator.name : indicator.indicatorPaths[0].parameters.title}}"</span> indicator permanently.-->
|
478
|
<!-- <span class="uk-text-bold">Indicators of all profiles based on this default indicator, will be deleted as well.</span>-->
|
479
|
<!-- Are you sure you want to proceed?-->
|
480
|
<!--</modal-alert>-->
|
481
|
<!--<modal-alert #deleteAndDisconnectModal (alertOutput)="deleteIndicator('disconnect')">-->
|
482
|
<!-- You are about to delete <span class="uk-text-bold" *ngIf="indicator && index !== -1">-->
|
483
|
<!-- "{{indicator.name ? indicator.name : indicator.indicatorPaths[0].parameters.title}}"</span> indicator permanently.-->
|
484
|
<!-- <span class="uk-text-bold">Indicators of all profiles based on this default indicator, will not be marked as copied from default anymore.</span>-->
|
485
|
<!-- Are you sure you want to proceed?-->
|
486
|
<!--</modal-alert>-->
|
487
|
<modal-alert #deleteSectionModal (alertOutput)="deleteSection()">
|
488
|
You are about to delete this section and its indicators permanently.
|
489
|
<div *ngIf="sectionChildrenActionOnDelete == 'delete' && !stakeholder.defaultId" class="uk-text-bold">
|
490
|
Sections of all profiles based on this default section and their contents, will be deleted as well.
|
491
|
</div>
|
492
|
<!-- <span *ngIf="sectionChildrenActionOnDelete == 'disconnect'" class="uk-text-bold">-->
|
493
|
<!-- Sections of all profiles based on this default section and their contents, will not be marked as copied from default anymore.-->
|
494
|
<!-- </span>-->
|
495
|
Are you sure you want to proceed?
|
496
|
</modal-alert>
|
497
|
<!--<modal-alert #deleteNumberSectionModal (alertOutput)="deleteSection('number')">-->
|
498
|
<!-- You are about to delete this section and its indicators permanently.-->
|
499
|
<!-- Are you sure you want to proceed?-->
|
500
|
<!--</modal-alert>-->
|
501
|
<!--<modal-alert #deleteChartSectionModal (alertOutput)="deleteSection()">-->
|
502
|
<!-- You are about to delete this section and its indicators permanently.-->
|
503
|
<!-- Are you sure you want to proceed?-->
|
504
|
<!--</modal-alert>-->
|
505
|
<ng-template #visibilityOptions let-indicator="indicator" >
|
506
|
<span class="uk-invisible-hover uk-padding-remove" (click)="$event.stopPropagation();$event.preventDefault()">
|
507
|
<i [attr.uk-icon]="stakeholderUtils.isPublicIcon.get(indicator.visibility)" class="clickable visibilityMenuIcon"></i>
|
508
|
<div #element uk-dropdown="mode: click; pos: bottom-left; delay-hide: 0; flip: false">
|
509
|
<ul class="uk-nav uk-dropdown-nav">
|
510
|
<li *ngFor="let v of stakeholderUtils.visibility" [class.selectedVisibility]="v.value == indicator.visibility">
|
511
|
<a
|
512
|
*ngIf="indicator.visibility != v.value"
|
513
|
(click)="$event.stopPropagation();toggleIndicatorStatus(indicator._id, indicator,v.value);hide(element);$event.preventDefault()">
|
514
|
<i [attr.uk-icon]="stakeholderUtils.isPublicIcon.get( v.value)"></i> {{v.label}}</a>
|
515
|
<a *ngIf="indicator.visibility == v.value">
|
516
|
<i [attr.uk-icon]="stakeholderUtils.isPublicIcon.get( v.value)"></i> {{v.label}} <icon
|
517
|
customClass="uk-text-secondary uk-float-right" [ratio]="0.5"
|
518
|
name="bullet"></icon></a>
|
519
|
</li>
|
520
|
</ul>
|
521
|
</div>
|
522
|
</span>
|
523
|
</ng-template>
|