@valtimo/analyse 4.23.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/esm2020/lib/analyse-process-diagram/analyse-process-diagram.component.mjs +257 -0
  2. package/esm2020/lib/analyse-routing.module.mjs +45 -0
  3. package/esm2020/lib/analyse.component.mjs +29 -0
  4. package/esm2020/lib/analyse.module.mjs +37 -0
  5. package/esm2020/lib/models/heatpoint.model.mjs +17 -0
  6. package/esm2020/lib/models/index.mjs +19 -0
  7. package/esm2020/public_api.mjs +22 -0
  8. package/esm2020/valtimo-analyse.mjs +5 -0
  9. package/fesm2015/valtimo-analyse.mjs +397 -0
  10. package/fesm2015/valtimo-analyse.mjs.map +1 -0
  11. package/fesm2020/valtimo-analyse.mjs +413 -0
  12. package/fesm2020/valtimo-analyse.mjs.map +1 -0
  13. package/lib/analyse-process-diagram/analyse-process-diagram.component.d.ts +4 -0
  14. package/lib/analyse-process-diagram/analyse-process-diagram.component.d.ts.map +1 -0
  15. package/lib/analyse-routing.module.d.ts +7 -0
  16. package/lib/analyse-routing.module.d.ts.map +1 -0
  17. package/lib/analyse.component.d.ts +4 -0
  18. package/lib/analyse.component.d.ts.map +1 -0
  19. package/lib/analyse.module.d.ts +11 -0
  20. package/lib/analyse.module.d.ts.map +1 -0
  21. package/lib/models/heatpoint.model.d.ts +1 -0
  22. package/lib/models/heatpoint.model.d.ts.map +1 -0
  23. package/lib/models/index.d.ts +1 -0
  24. package/lib/models/index.d.ts.map +1 -0
  25. package/package.json +22 -10
  26. package/public_api.d.ts +1 -0
  27. package/public_api.d.ts.map +1 -0
  28. package/valtimo-analyse.d.ts +2 -2
  29. package/valtimo-analyse.d.ts.map +1 -0
  30. package/bundles/valtimo-analyse.umd.js +0 -425
  31. package/bundles/valtimo-analyse.umd.js.map +0 -1
  32. package/bundles/valtimo-analyse.umd.min.js +0 -2
  33. package/bundles/valtimo-analyse.umd.min.js.map +0 -1
  34. package/esm2015/lib/analyse-process-diagram/analyse-process-diagram.component.js +0 -255
  35. package/esm2015/lib/analyse-routing.module.js +0 -41
  36. package/esm2015/lib/analyse.component.js +0 -29
  37. package/esm2015/lib/analyse.module.js +0 -32
  38. package/esm2015/lib/models/heatpoint.model.js +0 -16
  39. package/esm2015/lib/models/index.js +0 -19
  40. package/esm2015/public_api.js +0 -22
  41. package/esm2015/valtimo-analyse.js +0 -7
  42. package/fesm2015/valtimo-analyse.js +0 -404
  43. package/fesm2015/valtimo-analyse.js.map +0 -1
  44. package/valtimo-analyse.metadata.json +0 -1
@@ -1,404 +0,0 @@
1
- import { Component, NgModule, EventEmitter, ViewChild, Output } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { RouterModule } from '@angular/router';
4
- import { AuthGuardService } from '@valtimo/security';
5
- import { ROLE_USER } from '@valtimo/config';
6
- import { ProcessService, ProcessModule } from '@valtimo/process';
7
- import { WidgetModule } from '@valtimo/components';
8
- import * as BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.production.min.js';
9
- import { create } from 'heatmap.js-fixed/build/heatmap.js';
10
-
11
- /*
12
- * Copyright 2015-2020 Ritense BV, the Netherlands.
13
- *
14
- * Licensed under EUPL, Version 1.2 (the "License");
15
- * you may not use this file except in compliance with the License.
16
- * You may obtain a copy of the License at
17
- *
18
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
19
- *
20
- * Unless required by applicable law or agreed to in writing, software
21
- * distributed under the License is distributed on an "AS IS" basis,
22
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
- * See the License for the specific language governing permissions and
24
- * limitations under the License.
25
- */
26
- class AnalyseComponent {
27
- constructor() { }
28
- ngOnInit() { }
29
- }
30
- AnalyseComponent.decorators = [
31
- { type: Component, args: [{
32
- selector: 'valtimo-analyse',
33
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-analyse-process-diagram></valtimo-analyse-process-diagram>\n </div>\n</div>\n",
34
- styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
35
- },] }
36
- ];
37
- AnalyseComponent.ctorParameters = () => [];
38
-
39
- /*
40
- * Copyright 2015-2020 Ritense BV, the Netherlands.
41
- *
42
- * Licensed under EUPL, Version 1.2 (the "License");
43
- * you may not use this file except in compliance with the License.
44
- * You may obtain a copy of the License at
45
- *
46
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
47
- *
48
- * Unless required by applicable law or agreed to in writing, software
49
- * distributed under the License is distributed on an "AS IS" basis,
50
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
51
- * See the License for the specific language governing permissions and
52
- * limitations under the License.
53
- */
54
- const ɵ0 = { title: 'Analysis', roles: [ROLE_USER] };
55
- const routes = [
56
- {
57
- path: 'analysis',
58
- component: AnalyseComponent,
59
- canActivate: [AuthGuardService],
60
- data: ɵ0,
61
- },
62
- ];
63
- class AnalyseRoutingModule {
64
- }
65
- AnalyseRoutingModule.decorators = [
66
- { type: NgModule, args: [{
67
- declarations: [],
68
- imports: [CommonModule, RouterModule.forChild(routes)],
69
- exports: [RouterModule],
70
- },] }
71
- ];
72
-
73
- /*
74
- * Copyright 2015-2020 Ritense BV, the Netherlands.
75
- *
76
- * Licensed under EUPL, Version 1.2 (the "License");
77
- * you may not use this file except in compliance with the License.
78
- * You may obtain a copy of the License at
79
- *
80
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
81
- *
82
- * Unless required by applicable law or agreed to in writing, software
83
- * distributed under the License is distributed on an "AS IS" basis,
84
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
85
- * See the License for the specific language governing permissions and
86
- * limitations under the License.
87
- */
88
- class AnalyseProcessDiagramComponent {
89
- constructor(processService) {
90
- this.processService = processService;
91
- this.importDone = new EventEmitter();
92
- this.enumHeatmapOptions = ['count', 'duration'];
93
- this.initialized = false;
94
- }
95
- ngOnInit() {
96
- this.processService
97
- .getProcessDefinitions()
98
- .subscribe((processDefinitions) => {
99
- this.processDefinitions = processDefinitions;
100
- if (!this.processDefinitionKey && processDefinitions.length !== 0) {
101
- this.processDefinitionKey = processDefinitions[0].key;
102
- this.loadProcessDefinitionFromKey(this.processDefinitionKey);
103
- }
104
- });
105
- this.createBpmnViewerInstance();
106
- }
107
- createBpmnViewerInstance() {
108
- this.bpmnJS = new BpmnJS();
109
- this.bpmnJS.on('import.done', ({ error }) => {
110
- if (!error && !this.initialized) {
111
- const canvas = this.bpmnJS.get('canvas'), eventBus = this.bpmnJS.get('eventBus');
112
- if (this.processDiagram.historicActivityInstances) {
113
- this.processDiagram.historicActivityInstances.forEach((instance) => {
114
- if (instance.activityType !== 'multiInstanceBody') {
115
- canvas.addMarker(instance.activityId, instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current');
116
- }
117
- });
118
- }
119
- canvas.zoom('fit-viewport', 'auto');
120
- if (this.processDefinitionVersions) {
121
- eventBus.on('canvas.init', () => {
122
- if (this.showHeatmap) {
123
- this.clearHeatmap();
124
- }
125
- this.loadHeatmapData();
126
- });
127
- eventBus.on('canvas.viewbox.changing', () => {
128
- if (this.showHeatmap) {
129
- this.clearHeatmap();
130
- }
131
- });
132
- eventBus.on('canvas.viewbox.changed', () => {
133
- this.loadHeatmapData();
134
- });
135
- }
136
- this.initialized = true;
137
- }
138
- this.clearHeatmap();
139
- if (this.showHeatmap) {
140
- this.loadHeatmapData();
141
- }
142
- });
143
- }
144
- ngOnDestroy() {
145
- if (this.bpmnJS) {
146
- this.bpmnJS.destroy();
147
- }
148
- }
149
- loadProcessDefinition(processDefinitionKey) {
150
- this.processService
151
- .getProcessDefinition(processDefinitionKey)
152
- .subscribe((processDefinition) => {
153
- this.heatmapOption = this.enumHeatmapOptions[0];
154
- this.version = processDefinition.version;
155
- this.loadProcessDefinitionXml(processDefinition.id);
156
- });
157
- }
158
- loadProcessDefinitionVersions(processDefinitionKey) {
159
- this.processService
160
- .getProcessDefinitionVersions(processDefinitionKey)
161
- .subscribe((processDefinitionVersions) => {
162
- this.processDefinitionVersions = processDefinitionVersions;
163
- });
164
- }
165
- loadProcessDefinitionFromKey(processDefinitionKey) {
166
- this.loadProcessDefinitionVersions(processDefinitionKey);
167
- this.loadProcessDefinition(processDefinitionKey);
168
- }
169
- loadProcessDefinitionXml(processDefinitionId) {
170
- this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(response => {
171
- this.processDiagram = response;
172
- this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);
173
- this.bpmnJS.attachTo(this.el.nativeElement);
174
- });
175
- }
176
- loadProcessDefinitionHeatmapCount(processDefinition) {
177
- this.processService.getProcessHeatmapCount(processDefinition).subscribe(response => {
178
- this.inputData = response;
179
- this.valueKey = 'totalCount';
180
- this.heatPoints = { data: [] };
181
- this.min = 0;
182
- this.max = 0;
183
- Object.keys(this.inputData).forEach(key => {
184
- const diagramContainer = this.el.nativeElement.querySelector('svg').getBoundingClientRect(), diagramElm = this.el.nativeElement
185
- .querySelector(`g[data-element-id=${key}]`)
186
- .getBoundingClientRect();
187
- this.setMax(key);
188
- this.heatPoints.data.push({
189
- x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
190
- y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
191
- value: this.inputData[key][this.valueKey],
192
- radius: diagramElm.width / 2,
193
- });
194
- this.addCounterActiveOverlays(key, this.inputData);
195
- });
196
- this.clearHeatmap();
197
- if (this.showHeatmap) {
198
- this.loadHeatmap();
199
- }
200
- });
201
- }
202
- onWindowResize() {
203
- const oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');
204
- if (oldCanvas) {
205
- oldCanvas.remove();
206
- this.heatMapInstance = null;
207
- }
208
- if (this.showHeatmap) {
209
- this.loadHeatmap();
210
- }
211
- }
212
- loadProcessDefinitionHeatmapDuration(processDefinition) {
213
- this.processService.getProcessHeatmapDuration(processDefinition).subscribe(response => {
214
- this.inputData = response;
215
- this.valueKey = 'averageDurationInMilliseconds';
216
- this.heatPoints = { data: [] };
217
- this.min = 0;
218
- this.max = 0;
219
- Object.keys(this.inputData).forEach(key => {
220
- const diagramContainer = this.el.nativeElement.querySelector('svg').getBoundingClientRect(), diagramElm = this.el.nativeElement
221
- .querySelector(`g[data-element-id=${key}]`)
222
- .getBoundingClientRect();
223
- this.setMax(key);
224
- this.heatPoints.data.push({
225
- x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
226
- y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
227
- value: this.inputData[key][this.valueKey],
228
- radius: diagramElm.width / 2,
229
- });
230
- this.addCounterActiveOverlays(key, this.inputData);
231
- });
232
- this.clearHeatmap();
233
- if (this.showHeatmap) {
234
- this.loadHeatmap();
235
- }
236
- });
237
- }
238
- setProcessDefinitionKey(processDefinitionKey) {
239
- this.processDefinitionKey = processDefinitionKey;
240
- this.loadProcessDefinitionFromKey(this.processDefinitionKey);
241
- }
242
- setProcessDefinitionVersion(version) {
243
- this.version = +version;
244
- this.loadHeatmapData();
245
- }
246
- setHeatmapOption(heatmapOption) {
247
- this.heatmapOption = heatmapOption;
248
- this.loadHeatmapData();
249
- }
250
- toggleShowHeatmap() {
251
- this.showHeatmap = !this.showHeatmap;
252
- this.loadHeatmapData();
253
- }
254
- loadHeatmap() {
255
- if (!this.heatMapInstance) {
256
- this.heatMapInstance = create({
257
- radius: 54,
258
- blur: 0.7,
259
- maxOpacity: 0.4,
260
- minOpacity: 0,
261
- container: this.el.nativeElement,
262
- });
263
- const heatmapCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');
264
- heatmapCanvas.style.zIndex = 1;
265
- }
266
- this.heatMapInstance.setData({
267
- min: this.min,
268
- max: this.max,
269
- data: this.heatPoints.data,
270
- });
271
- }
272
- clearHeatmap() {
273
- if (this.heatMapInstance) {
274
- this.heatMapInstance.setData({ data: [] });
275
- }
276
- }
277
- loadHeatmapData() {
278
- this.processDefinition = this.processDefinitionVersions.find(definition => definition.version === this.version);
279
- if (this.heatmapOption === 'count') {
280
- this.loadProcessDefinitionHeatmapCount(this.processDefinition);
281
- }
282
- if (this.heatmapOption === 'duration') {
283
- this.loadProcessDefinitionHeatmapDuration(this.processDefinition);
284
- }
285
- }
286
- setMax(key) {
287
- if (this.valueKey === 'averageDurationInMilliseconds') {
288
- this.max = Math.max(this.inputData[key].averageDurationInMilliseconds, this.max);
289
- }
290
- else if (this.valueKey === 'totalCount') {
291
- this.max = Math.max(this.inputData[key].totalCount + this.inputData[key].count, this.max);
292
- }
293
- }
294
- addCounterActiveOverlays(key, inputData) {
295
- const overlays = this.bpmnJS.get('overlays');
296
- overlays.add(key, {
297
- position: {
298
- bottom: 13,
299
- left: -12,
300
- },
301
- show: {
302
- minZoom: 0,
303
- maxZoom: 5.0,
304
- },
305
- html: `<span class="badge badge-pill badge-primary">${inputData[key].count}</span>`,
306
- });
307
- }
308
- }
309
- AnalyseProcessDiagramComponent.decorators = [
310
- { type: Component, args: [{
311
- selector: 'valtimo-analyse-process-diagram',
312
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row p-4 bg-light options\">\n <div class=\"col-sm-3\">\n <label><strong>Process</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionKey($event.target.value)\">\n <option\n *ngFor=\"let processDefinition of processDefinitions\"\n [value]=\"processDefinition.key\"\n [selected]=\"processDefinitionKey === processDefinition.key\"\n >\n {{ processDefinition.name }}\n </option>\n </select>\n </div>\n <div class=\"col-sm-1\">\n <label><strong>Version</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </select>\n </div>\n <div class=\"col-sm-3\" *ngIf=\"showHeatmap\">\n <label><strong>Heatmap type</strong></label\n ><br />\n <select class=\"form-control w-sm-50\" (change)=\"setHeatmapOption($event.target.value)\">\n <option\n *ngFor=\"let option of enumHeatmapOptions\"\n [value]=\"option\"\n [selected]=\"option === heatmapOption\"\n >\n {{ option | titlecase }}\n </option>\n </select>\n </div>\n <div\n class=\"text-sm-right col-sm-3\"\n [ngClass]=\"{'offset-sm-2': showHeatmap, 'offset-sm-5': !showHeatmap}\"\n >\n <label><strong>Show heatmap</strong></label\n ><br />\n <div class=\"text-left switch-button switch-button-sm switch-button-success\">\n <input\n type=\"checkbox\"\n id=\"toggleHeatmap\"\n [checked]=\"showHeatmap\"\n (click)=\"toggleShowHeatmap()\"\n /><span> <label for=\"toggleHeatmap\"></label></span>\n </div>\n </div>\n </div>\n <div class=\"row p-4 bg-white\">\n <div class=\"col\">\n <div #ref (window:resize)=\"onWindowResize()\" class=\"diagram-container\"></div>\n </div>\n </div>\n</div>\n\n<div class=\"p-4 text-center legenda-holder\">\n <span\n ><span class=\"badge badge-pill badge-primary\">N</span>&nbsp;&nbsp;Amount of currently active\n instances of this task.</span\n >\n <span\n >&nbsp;&nbsp;|&nbsp;&nbsp;Red/yellow/green orbs: The amount of times the task is executed in\n comparison to the other tasks.</span\n >\n</div>\n",
313
- styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.diagram-container-switch-holder{width:100%;z-index:1000}.diagram-container{height:58vh}.container-fluid{border:1px solid #dee2e6}.options{border-bottom:1px solid #dee2e6}"]
314
- },] }
315
- ];
316
- AnalyseProcessDiagramComponent.ctorParameters = () => [
317
- { type: ProcessService }
318
- ];
319
- AnalyseProcessDiagramComponent.propDecorators = {
320
- el: [{ type: ViewChild, args: ['ref',] }],
321
- importDone: [{ type: Output }]
322
- };
323
-
324
- /*
325
- * Copyright 2015-2020 Ritense BV, the Netherlands.
326
- *
327
- * Licensed under EUPL, Version 1.2 (the "License");
328
- * you may not use this file except in compliance with the License.
329
- * You may obtain a copy of the License at
330
- *
331
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
332
- *
333
- * Unless required by applicable law or agreed to in writing, software
334
- * distributed under the License is distributed on an "AS IS" basis,
335
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
336
- * See the License for the specific language governing permissions and
337
- * limitations under the License.
338
- */
339
- class AnalyseModule {
340
- }
341
- AnalyseModule.decorators = [
342
- { type: NgModule, args: [{
343
- declarations: [AnalyseComponent, AnalyseProcessDiagramComponent],
344
- imports: [CommonModule, AnalyseRoutingModule, ProcessModule, WidgetModule],
345
- exports: [AnalyseComponent],
346
- },] }
347
- ];
348
-
349
- /*
350
- * Copyright 2015-2020 Ritense BV, the Netherlands.
351
- *
352
- * Licensed under EUPL, Version 1.2 (the "License");
353
- * you may not use this file except in compliance with the License.
354
- * You may obtain a copy of the License at
355
- *
356
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
357
- *
358
- * Unless required by applicable law or agreed to in writing, software
359
- * distributed under the License is distributed on an "AS IS" basis,
360
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
361
- * See the License for the specific language governing permissions and
362
- * limitations under the License.
363
- */
364
-
365
- /*
366
- *
367
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
368
- * *
369
- * * Licensed under EUPL, Version 1.2 (the "License");
370
- * * you may not use this file except in compliance with the License.
371
- * * You may obtain a copy of the License at
372
- * *
373
- * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
374
- * *
375
- * * Unless required by applicable law or agreed to in writing, software
376
- * * distributed under the License is distributed on an "AS IS" basis,
377
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
378
- * * See the License for the specific language governing permissions and
379
- * * limitations under the License.
380
- *
381
- */
382
-
383
- /*
384
- * Copyright 2015-2020 Ritense BV, the Netherlands.
385
- *
386
- * Licensed under EUPL, Version 1.2 (the "License");
387
- * you may not use this file except in compliance with the License.
388
- * You may obtain a copy of the License at
389
- *
390
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
391
- *
392
- * Unless required by applicable law or agreed to in writing, software
393
- * distributed under the License is distributed on an "AS IS" basis,
394
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
395
- * See the License for the specific language governing permissions and
396
- * limitations under the License.
397
- */
398
-
399
- /**
400
- * Generated bundle index. Do not edit.
401
- */
402
-
403
- export { AnalyseComponent, AnalyseModule, AnalyseProcessDiagramComponent as ɵa, AnalyseRoutingModule as ɵb };
404
- //# sourceMappingURL=valtimo-analyse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"valtimo-analyse.js","sources":["../../../../projects/valtimo/analyse/src/lib/analyse.component.ts","../../../../projects/valtimo/analyse/src/lib/analyse-routing.module.ts","../../../../projects/valtimo/analyse/src/lib/analyse-process-diagram/analyse-process-diagram.component.ts","../../../../projects/valtimo/analyse/src/lib/analyse.module.ts","../../../../projects/valtimo/analyse/src/lib/models/heatpoint.model.ts","../../../../projects/valtimo/analyse/src/lib/models/index.ts","../../../../projects/valtimo/analyse/src/public_api.ts","../../../../projects/valtimo/analyse/src/valtimo-analyse.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-analyse',\n templateUrl: './analyse.component.html',\n styleUrls: ['./analyse.component.scss'],\n})\nexport class AnalyseComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {AnalyseComponent} from './analyse.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'analysis',\n component: AnalyseComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Analysis', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class AnalyseRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n ElementRef,\n EventEmitter,\n OnDestroy,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {ProcessService, ProcessDefinition} from '@valtimo/process';\nimport {Heatpoint} from '../models';\nimport * as BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.production.min.js';\nimport * as heatmap from 'heatmap.js-fixed/build/heatmap.js';\n\n@Component({\n selector: 'valtimo-analyse-process-diagram',\n templateUrl: './analyse-process-diagram.component.html',\n styleUrls: ['./analyse-process-diagram.component.scss'],\n})\nexport class AnalyseProcessDiagramComponent implements OnInit, OnDestroy {\n private bpmnJS: BpmnJS;\n private heatMapInstance: any;\n\n @ViewChild('ref') public el: ElementRef;\n @Output() public importDone: EventEmitter<any> = new EventEmitter();\n\n public processDefinitionKey: string;\n public processDefinitions: ProcessDefinition[];\n public processDiagram: any;\n public processDefinition: ProcessDefinition;\n public processDefinitionVersions: ProcessDefinition[];\n public showHeatmap: boolean;\n public enumHeatmapOptions: string[] = ['count', 'duration'];\n public heatmapOption: string;\n public version: number;\n public heatPoints: {data: Heatpoint[]};\n public min: number;\n public max: number;\n public inputData: any[];\n public valueKey: string;\n private initialized = false;\n\n constructor(private processService: ProcessService) {}\n\n ngOnInit() {\n this.processService\n .getProcessDefinitions()\n .subscribe((processDefinitions: ProcessDefinition[]) => {\n this.processDefinitions = processDefinitions;\n if (!this.processDefinitionKey && processDefinitions.length !== 0) {\n this.processDefinitionKey = processDefinitions[0].key;\n this.loadProcessDefinitionFromKey(this.processDefinitionKey);\n }\n });\n this.createBpmnViewerInstance();\n }\n\n private createBpmnViewerInstance() {\n this.bpmnJS = new BpmnJS();\n this.bpmnJS.on('import.done', ({error}: any) => {\n if (!error && !this.initialized) {\n const canvas = this.bpmnJS.get('canvas'),\n eventBus = this.bpmnJS.get('eventBus');\n if (this.processDiagram.historicActivityInstances) {\n this.processDiagram.historicActivityInstances.forEach((instance: any) => {\n if (instance.activityType !== 'multiInstanceBody') {\n canvas.addMarker(\n instance.activityId,\n instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current'\n );\n }\n });\n }\n\n canvas.zoom('fit-viewport', 'auto');\n if (this.processDefinitionVersions) {\n eventBus.on('canvas.init', () => {\n if (this.showHeatmap) {\n this.clearHeatmap();\n }\n this.loadHeatmapData();\n });\n eventBus.on('canvas.viewbox.changing', () => {\n if (this.showHeatmap) {\n this.clearHeatmap();\n }\n });\n eventBus.on('canvas.viewbox.changed', () => {\n this.loadHeatmapData();\n });\n }\n this.initialized = true;\n }\n this.clearHeatmap();\n if (this.showHeatmap) {\n this.loadHeatmapData();\n }\n });\n }\n\n ngOnDestroy() {\n if (this.bpmnJS) {\n this.bpmnJS.destroy();\n }\n }\n\n public loadProcessDefinition(processDefinitionKey: string): void {\n this.processService\n .getProcessDefinition(processDefinitionKey)\n .subscribe((processDefinition: ProcessDefinition) => {\n this.heatmapOption = this.enumHeatmapOptions[0];\n this.version = processDefinition.version;\n this.loadProcessDefinitionXml(processDefinition.id);\n });\n }\n\n public loadProcessDefinitionVersions(processDefinitionKey: string): void {\n this.processService\n .getProcessDefinitionVersions(processDefinitionKey)\n .subscribe((processDefinitionVersions: ProcessDefinition[]) => {\n this.processDefinitionVersions = processDefinitionVersions;\n });\n }\n\n public loadProcessDefinitionFromKey(processDefinitionKey: string): void {\n this.loadProcessDefinitionVersions(processDefinitionKey);\n this.loadProcessDefinition(processDefinitionKey);\n }\n\n public loadProcessDefinitionXml(processDefinitionId: string): void {\n this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(response => {\n this.processDiagram = response;\n this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);\n this.bpmnJS.attachTo(this.el.nativeElement);\n });\n }\n\n public loadProcessDefinitionHeatmapCount(processDefinition: ProcessDefinition): void {\n this.processService.getProcessHeatmapCount(processDefinition).subscribe(response => {\n this.inputData = response;\n this.valueKey = 'totalCount';\n this.heatPoints = {data: []};\n this.min = 0;\n this.max = 0;\n\n Object.keys(this.inputData).forEach(key => {\n const diagramContainer = this.el.nativeElement.querySelector('svg').getBoundingClientRect(),\n diagramElm = this.el.nativeElement\n .querySelector(`g[data-element-id=${key}]`)\n .getBoundingClientRect();\n this.setMax(key);\n this.heatPoints.data.push({\n x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),\n y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),\n value: this.inputData[key][this.valueKey],\n radius: diagramElm.width / 2,\n });\n this.addCounterActiveOverlays(key, this.inputData);\n });\n this.clearHeatmap();\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n });\n }\n\n public onWindowResize(): void {\n const oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');\n if (oldCanvas) {\n oldCanvas.remove();\n this.heatMapInstance = null;\n }\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n }\n\n public loadProcessDefinitionHeatmapDuration(processDefinition: ProcessDefinition): void {\n this.processService.getProcessHeatmapDuration(processDefinition).subscribe(response => {\n this.inputData = response;\n this.valueKey = 'averageDurationInMilliseconds';\n this.heatPoints = {data: []};\n this.min = 0;\n this.max = 0;\n\n Object.keys(this.inputData).forEach(key => {\n const diagramContainer = this.el.nativeElement.querySelector('svg').getBoundingClientRect(),\n diagramElm = this.el.nativeElement\n .querySelector(`g[data-element-id=${key}]`)\n .getBoundingClientRect();\n this.setMax(key);\n this.heatPoints.data.push({\n x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),\n y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),\n value: this.inputData[key][this.valueKey],\n radius: diagramElm.width / 2,\n });\n this.addCounterActiveOverlays(key, this.inputData);\n });\n this.clearHeatmap();\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n });\n }\n\n public setProcessDefinitionKey(processDefinitionKey: string): void {\n this.processDefinitionKey = processDefinitionKey;\n this.loadProcessDefinitionFromKey(this.processDefinitionKey);\n }\n\n public setProcessDefinitionVersion(version: string): void {\n this.version = +version;\n this.loadHeatmapData();\n }\n\n public setHeatmapOption(heatmapOption: string): void {\n this.heatmapOption = heatmapOption;\n this.loadHeatmapData();\n }\n\n public toggleShowHeatmap(): void {\n this.showHeatmap = !this.showHeatmap;\n this.loadHeatmapData();\n }\n\n public loadHeatmap(): void {\n if (!this.heatMapInstance) {\n this.heatMapInstance = heatmap.create({\n radius: 54,\n blur: 0.7,\n maxOpacity: 0.4,\n minOpacity: 0,\n container: this.el.nativeElement,\n });\n const heatmapCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');\n heatmapCanvas.style.zIndex = 1;\n }\n this.heatMapInstance.setData({\n min: this.min,\n max: this.max,\n data: this.heatPoints.data,\n });\n }\n\n public clearHeatmap(): void {\n if (this.heatMapInstance) {\n this.heatMapInstance.setData({data: []});\n }\n }\n\n public loadHeatmapData(): void {\n this.processDefinition = this.processDefinitionVersions.find(\n definition => definition.version === this.version\n );\n\n if (this.heatmapOption === 'count') {\n this.loadProcessDefinitionHeatmapCount(this.processDefinition);\n }\n if (this.heatmapOption === 'duration') {\n this.loadProcessDefinitionHeatmapDuration(this.processDefinition);\n }\n }\n\n public setMax(key: any) {\n if (this.valueKey === 'averageDurationInMilliseconds') {\n this.max = Math.max(this.inputData[key].averageDurationInMilliseconds, this.max);\n } else if (this.valueKey === 'totalCount') {\n this.max = Math.max(this.inputData[key].totalCount + this.inputData[key].count, this.max);\n }\n }\n\n public addCounterActiveOverlays(key: string, inputData: any[]): void {\n const overlays = this.bpmnJS.get('overlays');\n overlays.add(key, {\n position: {\n bottom: 13,\n left: -12,\n },\n show: {\n minZoom: 0,\n maxZoom: 5.0,\n },\n html: `<span class=\"badge badge-pill badge-primary\">${inputData[key].count}</span>`,\n });\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {AnalyseComponent} from './analyse.component';\nimport {CommonModule} from '@angular/common';\nimport {AnalyseRoutingModule} from './analyse-routing.module';\nimport {ProcessModule} from '@valtimo/process';\nimport {WidgetModule} from '@valtimo/components';\nimport {AnalyseProcessDiagramComponent} from './analyse-process-diagram/analyse-process-diagram.component';\n\n@NgModule({\n declarations: [AnalyseComponent, AnalyseProcessDiagramComponent],\n imports: [CommonModule, AnalyseRoutingModule, ProcessModule, WidgetModule],\n exports: [AnalyseComponent],\n})\nexport class AnalyseModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Heatpoint {\n x: number;\n y: number;\n value: number;\n radius: number;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './heatpoint.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of analyse\n */\n\nexport * from './lib/analyse.module';\nexport * from './lib/analyse.component';\nexport * from './lib/models';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {AnalyseProcessDiagramComponent as ɵa} from './lib/analyse-process-diagram/analyse-process-diagram.component';\nexport {AnalyseRoutingModule as ɵb} from './lib/analyse-routing.module';"],"names":["heatmap.create"],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;;MAuBa,gBAAgB;IAC3B,iBAAgB;IAEhB,QAAQ,MAAK;;;YARd,SAAS,SAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,wzBAAuC;;aAExC;;;;ACtBD;;;;;;;;;;;;;;;WA4BU,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,SAAS,CAAC,EAAC;AALjD,MAAM,MAAM,GAAW;IACrB;QACE,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,gBAAgB;QAC3B,WAAW,EAAE,CAAC,gBAAgB,CAAC;QAC/B,IAAI,IAAyC;KAC9C;CACF,CAAC;MAOW,oBAAoB;;;YALhC,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBACtD,OAAO,EAAE,CAAC,YAAY,CAAC;aACxB;;;ACpCD;;;;;;;;;;;;;;;MAmCa,8BAA8B;IAuBzC,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAlBjC,eAAU,GAAsB,IAAI,YAAY,EAAE,CAAC;QAQ7D,uBAAkB,GAAa,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAQpD,gBAAW,GAAG,KAAK,CAAC;KAE0B;IAEtD,QAAQ;QACN,IAAI,CAAC,cAAc;aAChB,qBAAqB,EAAE;aACvB,SAAS,CAAC,CAAC,kBAAuC;YACjD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;YAC7C,IAAI,CAAC,IAAI,CAAC,oBAAoB,IAAI,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,YAAY,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;gBAChE,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,YAAY,CAAC;gBAC1E,OAAO,EAAE,CAAC,gBAAgB,CAAC;aAC5B;;;AC5BD;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"./lib/heatpoint.model"}],"metadata":{"AnalyseModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"AnalyseComponent"},{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":26,"character":12},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@valtimo/process","name":"ProcessModule","line":26,"character":48},{"__symbolic":"reference","module":"@valtimo/components","name":"WidgetModule","line":26,"character":63}],"exports":[{"__symbolic":"reference","name":"AnalyseComponent"}]}]}],"members":{}},"AnalyseComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"valtimo-analyse","template":"<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-analyse-process-diagram></valtimo-analyse-process-diagram>\n </div>\n</div>\n","styles":["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"valtimo-analyse-process-diagram","template":"<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row p-4 bg-light options\">\n <div class=\"col-sm-3\">\n <label><strong>Process</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionKey($event.target.value)\">\n <option\n *ngFor=\"let processDefinition of processDefinitions\"\n [value]=\"processDefinition.key\"\n [selected]=\"processDefinitionKey === processDefinition.key\"\n >\n {{ processDefinition.name }}\n </option>\n </select>\n </div>\n <div class=\"col-sm-1\">\n <label><strong>Version</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </select>\n </div>\n <div class=\"col-sm-3\" *ngIf=\"showHeatmap\">\n <label><strong>Heatmap type</strong></label\n ><br />\n <select class=\"form-control w-sm-50\" (change)=\"setHeatmapOption($event.target.value)\">\n <option\n *ngFor=\"let option of enumHeatmapOptions\"\n [value]=\"option\"\n [selected]=\"option === heatmapOption\"\n >\n {{ option | titlecase }}\n </option>\n </select>\n </div>\n <div\n class=\"text-sm-right col-sm-3\"\n [ngClass]=\"{'offset-sm-2': showHeatmap, 'offset-sm-5': !showHeatmap}\"\n >\n <label><strong>Show heatmap</strong></label\n ><br />\n <div class=\"text-left switch-button switch-button-sm switch-button-success\">\n <input\n type=\"checkbox\"\n id=\"toggleHeatmap\"\n [checked]=\"showHeatmap\"\n (click)=\"toggleShowHeatmap()\"\n /><span> <label for=\"toggleHeatmap\"></label></span>\n </div>\n </div>\n </div>\n <div class=\"row p-4 bg-white\">\n <div class=\"col\">\n <div #ref (window:resize)=\"onWindowResize()\" class=\"diagram-container\"></div>\n </div>\n </div>\n</div>\n\n<div class=\"p-4 text-center legenda-holder\">\n <span\n ><span class=\"badge badge-pill badge-primary\">N</span>&nbsp;&nbsp;Amount of currently active\n instances of this task.</span\n >\n <span\n >&nbsp;&nbsp;|&nbsp;&nbsp;Red/yellow/green orbs: The amount of times the task is executed in\n comparison to the other tasks.</span\n >\n</div>\n","styles":["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.diagram-container-switch-holder{width:100%;z-index:1000}.diagram-container{height:58vh}.container-fluid{border:1px solid #dee2e6}.options{border-bottom:1px solid #dee2e6}"]}]}],"members":{"el":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":39,"character":3},"arguments":["ref"]}]}],"importDone":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/process","name":"ProcessService","line":58,"character":38}]}],"ngOnInit":[{"__symbolic":"method"}],"createBpmnViewerInstance":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"loadProcessDefinition":[{"__symbolic":"method"}],"loadProcessDefinitionVersions":[{"__symbolic":"method"}],"loadProcessDefinitionFromKey":[{"__symbolic":"method"}],"loadProcessDefinitionXml":[{"__symbolic":"method"}],"loadProcessDefinitionHeatmapCount":[{"__symbolic":"method"}],"onWindowResize":[{"__symbolic":"method"}],"loadProcessDefinitionHeatmapDuration":[{"__symbolic":"method"}],"setProcessDefinitionKey":[{"__symbolic":"method"}],"setProcessDefinitionVersion":[{"__symbolic":"method"}],"setHeatmapOption":[{"__symbolic":"method"}],"toggleShowHeatmap":[{"__symbolic":"method"}],"loadHeatmap":[{"__symbolic":"method"}],"clearHeatmap":[{"__symbolic":"method"}],"loadHeatmapData":[{"__symbolic":"method"}],"setMax":[{"__symbolic":"method"}],"addCounterActiveOverlays":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":34,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":34,"character":26},"member":"forChild"},"arguments":[[{"path":"analysis","component":{"__symbolic":"reference","name":"AnalyseComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Analysis","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_USER","line":28,"character":38}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":35,"character":12}]}]}],"members":{}}},"origins":{"AnalyseModule":"./lib/analyse.module","AnalyseComponent":"./lib/analyse.component","ɵa":"./lib/analyse-process-diagram/analyse-process-diagram.component","ɵb":"./lib/analyse-routing.module"},"importAs":"@valtimo/analyse"}