mapa-library-ui 0.0.41 → 0.0.42

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 (50) hide show
  1. package/esm2020/src/lib/components/capability/lib/components/capability/public-api.mjs +3 -1
  2. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.mjs +1 -1
  3. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.module.mjs +2 -2
  4. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.component.mjs +11 -11
  5. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.module.mjs +4 -2
  6. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.mjs +11 -11
  7. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.module.mjs +4 -2
  8. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +1 -1
  9. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +11 -7
  10. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.mjs +4 -2
  11. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +11 -9
  12. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.mjs +4 -2
  13. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-interval/capability-interval.component.mjs +1 -1
  14. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +1 -1
  15. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/consts/capability-classification.const.mjs +57 -0
  16. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/capability-classification.interface.mjs +2 -0
  17. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/capability-item.interface.mjs +2 -0
  18. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/capability.interface.mjs +2 -0
  19. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/index.mjs +4 -0
  20. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/services/capability-classification.service.mjs +14 -0
  21. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +32 -0
  22. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +64 -47
  23. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  24. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +64 -45
  25. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  26. package/mapa-library-ui-0.0.42.tgz +0 -0
  27. package/package.json +1 -1
  28. package/src/lib/components/capability/lib/components/capability/public-api.d.ts +2 -0
  29. package/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +1 -1
  30. package/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +5 -2
  31. package/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +4 -2
  32. package/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +1 -1
  33. package/src/lib/components/capability/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.d.ts +4 -1
  34. package/src/lib/components/capability/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +4 -2
  35. package/src/lib/components/capability/lib/components/capability/src/capability-interval/capability-interval.component.d.ts +1 -1
  36. package/src/lib/components/capability/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +1 -1
  37. package/src/lib/components/capability/lib/components/capability/src/essentials/consts/capability-classification.const.d.ts +2 -0
  38. package/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/capability-classification.interface.d.ts +6 -0
  39. package/src/lib/components/capability/lib/components/capability/{capability.interfaces.d.ts → src/essentials/interfaces/capability-item.interface.d.ts} +0 -6
  40. package/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/capability.interface.d.ts +6 -0
  41. package/src/lib/components/capability/lib/components/capability/src/essentials/interfaces/index.d.ts +3 -0
  42. package/src/lib/components/capability/lib/components/capability/src/essentials/services/capability-classification.service.d.ts +8 -0
  43. package/esm2020/src/lib/components/capability/lib/components/capability/capability-classification.const.mjs +0 -57
  44. package/esm2020/src/lib/components/capability/lib/components/capability/capability-interval.const.mjs +0 -63
  45. package/esm2020/src/lib/components/capability/lib/components/capability/capability.interfaces.mjs +0 -2
  46. package/esm2020/src/lib/components/capability/lib/components/capability/src/services/reusable-interval-bar.service.mjs +0 -32
  47. package/mapa-library-ui-0.0.41.tgz +0 -0
  48. package/src/lib/components/capability/lib/components/capability/capability-classification.const.d.ts +0 -6
  49. package/src/lib/components/capability/lib/components/capability/capability-interval.const.d.ts +0 -6
  50. /package/src/lib/components/capability/lib/components/capability/src/{services → essentials/services}/reusable-interval-bar.service.d.ts +0 -0
@@ -0,0 +1,57 @@
1
+ export const CAPABILITY_CLASSIFICATION = [
2
+ {
3
+ id: 1,
4
+ name: "Destaque",
5
+ color: "#96f2ee",
6
+ positive: true,
7
+ },
8
+ {
9
+ id: 2,
10
+ name: "Satisfatório",
11
+ color: "#68ceee",
12
+ positive: true,
13
+ },
14
+ {
15
+ id: 3,
16
+ name: "Adequado",
17
+ color: "#2d9ced",
18
+ positive: true,
19
+ },
20
+ {
21
+ id: 4,
22
+ name: "A desenvolver",
23
+ color: "#0e6ece",
24
+ positive: true,
25
+ },
26
+ {
27
+ id: 5,
28
+ name: "Crítico baixo",
29
+ color: "#073e92",
30
+ positive: true,
31
+ },
32
+ {
33
+ id: 6,
34
+ name: "Merece atenção baixo",
35
+ color: "#f56580",
36
+ positive: false,
37
+ },
38
+ {
39
+ id: 7,
40
+ name: "Adequado",
41
+ color: "#f598a7",
42
+ positive: false,
43
+ },
44
+ {
45
+ id: 8,
46
+ name: "Merece atenção alto",
47
+ color: "#f4284e",
48
+ positive: false,
49
+ },
50
+ {
51
+ id: 9,
52
+ name: "Crítico alto",
53
+ color: "#c11c2f",
54
+ positive: false,
55
+ },
56
+ ];
57
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FwYWJpbGl0eS1jbGFzc2lmaWNhdGlvbi5jb25zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvY2FwYWJpbGl0eS9zcmMvZXNzZW50aWFscy9jb25zdHMvY2FwYWJpbGl0eS1jbGFzc2lmaWNhdGlvbi5jb25zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSx5QkFBeUIsR0FBK0I7SUFDbkU7UUFDRSxFQUFFLEVBQUUsQ0FBQztRQUNMLElBQUksRUFBRSxVQUFVO1FBQ2hCLEtBQUssRUFBRSxTQUFTO1FBQ2hCLFFBQVEsRUFBRSxJQUFJO0tBQ2Y7SUFDRDtRQUNFLEVBQUUsRUFBRSxDQUFDO1FBQ0wsSUFBSSxFQUFFLGNBQWM7UUFDcEIsS0FBSyxFQUFFLFNBQVM7UUFDaEIsUUFBUSxFQUFFLElBQUk7S0FDZjtJQUNEO1FBQ0UsRUFBRSxFQUFFLENBQUM7UUFDTCxJQUFJLEVBQUUsVUFBVTtRQUNoQixLQUFLLEVBQUUsU0FBUztRQUNoQixRQUFRLEVBQUUsSUFBSTtLQUNmO0lBQ0Q7UUFDRSxFQUFFLEVBQUUsQ0FBQztRQUNMLElBQUksRUFBRSxlQUFlO1FBQ3JCLEtBQUssRUFBRSxTQUFTO1FBQ2hCLFFBQVEsRUFBRSxJQUFJO0tBQ2Y7SUFDRDtRQUNFLEVBQUUsRUFBR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51bWJlcjtcbiAgY2xhc3NpZmljYXRpb25JZD86IG51bWJlcjtcbiAgcmlzaz86IGJvb2xlYW47XG4gIHByZWNpcGl0YXRpb24/OiBib29sZWFuO1xuICBuZWdsaWdlbmNlPzogYm9vbGVhbjtcbiAgaW5kaWNhdG9yT3JkZXI/OiBudW1iZXI7XG4gIGRlc2NyaXB0aW9uPzogc3RyaW5nO1xufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FwYWJpbGl0eS5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXBhLWxpYnJhcnktdWkvc3JjL2xpYi9jb21wb25lbnRzL2NhcGFiaWxpdHkvc3JjL2Vzc2VudGlhbHMvaW50ZXJmYWNlcy9jYXBhYmlsaXR5LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2FwYWJpbGl0eUl0ZW0gfSBmcm9tIFwiLi9jYXBhYmlsaXR5LWl0ZW0uaW50ZXJmYWNlXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ2FwYWJpbGl0eSBleHRlbmRzIENhcGFiaWxpdHlJdGVtIHtcbiAgaXRlbXM6IENhcGFiaWxpdHlJdGVtW107XG4gIGNvbmNlcHQ/OiBzdHJpbmc7XG4gIHJlc3VsdD86IHN0cmluZztcbn1cbiJdfQ==
@@ -0,0 +1,4 @@
1
+ export * from './capability-classification.interface';
2
+ export * from './capability-item.interface';
3
+ export * from './capability.interface';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXBhLWxpYnJhcnktdWkvc3JjL2xpYi9jb21wb25lbnRzL2NhcGFiaWxpdHkvc3JjL2Vzc2VudGlhbHMvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVDQUF1QyxDQUFDO0FBQ3RELGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2FwYWJpbGl0eS1jbGFzc2lmaWNhdGlvbi5pbnRlcmZhY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9jYXBhYmlsaXR5LWl0ZW0uaW50ZXJmYWNlJztcbmV4cG9ydCAqIGZyb20gJy4vY2FwYWJpbGl0eS5pbnRlcmZhY2UnOyJdfQ==
@@ -0,0 +1,14 @@
1
+ import { Injectable } from "@angular/core";
2
+ import { CAPABILITY_CLASSIFICATION } from "../consts/capability-classification.const";
3
+ import * as i0 from "@angular/core";
4
+ export class CapabilityClassificationService {
5
+ getByItem(item) {
6
+ return (CAPABILITY_CLASSIFICATION.find((classification) => classification.id === item.classificationId) || CAPABILITY_CLASSIFICATION[0]);
7
+ }
8
+ }
9
+ CapabilityClassificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10
+ CapabilityClassificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService, decorators: [{
12
+ type: Injectable
13
+ }] });
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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RlcmZhY2VzL2NhcGFiaWxpdHktY2xhc3NpZmljYXRpb24uaW50ZXJmYWNlXCI7XG5cbmltcG9ydCB7IENBUEFCSUxJVFlfQ0xBU1NJRklDQVRJT04gfSBmcm9tIFwiLi4vY29uc3RzL2NhcGFiaWxpdHktY2xhc3NpZmljYXRpb24uY29uc3RcIjtcblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIENhcGFiaWxpdHlDbGFzc2lmaWNhdGlvblNlcnZpY2Uge1xuICBnZXRCeUl0ZW0oaXRlbTogQ2FwYWJpbGl0eUl0ZW0pOiBDYXBhYmlsaXR5Q2xhc3NpZmljYXRpb24ge1xuICAgIHJldHVybiAoXG4gICAgICBDQVBBQklMSVRZX0NMQVNTSUZJQ0FUSU9OLmZpbmQoXG4gICAgICAgIChjbGFzc2lmaWNhdGlvbjogYW55KSA9PiBjbGFzc2lmaWNhdGlvbi5pZCA9PT0gaXRlbS5jbGFzc2lmaWNhdGlvbklkXG4gICAgICApIHx8IENBUEFCSUxJVFlfQ0xBU1NJRklDQVRJT05bMF1cbiAgICApO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,32 @@
1
+ import { Injectable } from "@angular/core";
2
+ import { NavigationStart } from "@angular/router";
3
+ import { MapaCapabilityIntervalBarComponent } from "../../capability-interval-bar/capability-interval-bar.component";
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/router";
6
+ export class ReusableCapabilityIntervalBarService {
7
+ constructor(componentFactoryResolver, injector, router) {
8
+ this.componentFactoryResolver = componentFactoryResolver;
9
+ this.injector = injector;
10
+ this.router = router;
11
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(MapaCapabilityIntervalBarComponent);
12
+ this.componentRef = componentFactory.create(injector);
13
+ this.router.events.subscribe((event) => {
14
+ if (event instanceof NavigationStart && this.currentViewContainerRef) {
15
+ this.detach(this.currentViewContainerRef);
16
+ }
17
+ });
18
+ }
19
+ attach(viewContainerRef) {
20
+ this.currentViewContainerRef = viewContainerRef;
21
+ viewContainerRef.insert(this.componentRef.hostView);
22
+ }
23
+ detach(viewContainerRef) {
24
+ viewContainerRef.detach(viewContainerRef.indexOf(this.componentRef.hostView));
25
+ }
26
+ }
27
+ ReusableCapabilityIntervalBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReusableCapabilityIntervalBarService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
28
+ ReusableCapabilityIntervalBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReusableCapabilityIntervalBarService });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReusableCapabilityIntervalBarService, decorators: [{
30
+ type: Injectable
31
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i1.Router }]; } });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV1c2FibGUtaW50ZXJ2YWwtYmFyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXBhLWxpYnJhcnktdWkvc3JjL2xpYi9jb21wb25lbnRzL2NhcGFiaWxpdHkvc3JjL2Vzc2VudGlhbHMvc2VydmljZXMvcmV1c2FibGUtaW50ZXJ2YWwtYmFyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUtMLFVBQVUsRUFDWCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQVUsZUFBZSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGtDQUFrQyxFQUFFLE1B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RvcnkoXG4gICAgICBNYXBhQ2FwYWJpbGl0eUludGVydmFsQmFyQ29tcG9uZW50XG4gICAgKTtcbiAgICB0aGlzLmNvbXBvbmVudFJlZiA9IGNvbXBvbmVudEZhY3RvcnkuY3JlYXRlKGluamVjdG9yKTtcblxuICAgIHRoaXMucm91dGVyLmV2ZW50cy5zdWJzY3JpYmUoKGV2ZW50KSA9PiB7XG4gICAgICBpZiAoZXZlbnQgaW5zdGFuY2VvZiBOYXZpZ2F0aW9uU3RhcnQgJiYgdGhpcy5jdXJyZW50Vmlld0NvbnRhaW5lclJlZikge1xuICAgICAgICB0aGlzLmRldGFjaCh0aGlzLmN1cnJlbnRWaWV3Q29udGFpbmVyUmVmKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBhdHRhY2godmlld0NvbnRhaW5lclJlZjogVmlld0NvbnRhaW5lclJlZikge1xuICAgIHRoaXMuY3VycmVudFZpZXdDb250YWluZXJSZWYgPSB2aWV3Q29udGFpbmVyUmVmO1xuICAgIHZpZXdDb250YWluZXJSZWYuaW5zZXJ0KHRoaXMuY29tcG9uZW50UmVmLmhvc3RWaWV3KTtcbiAgfVxuXG4gIHB1YmxpYyBkZXRhY2godmlld0NvbnRhaW5lclJlZjogVmlld0NvbnRhaW5lclJlZikge1xuICAgIHZpZXdDb250YWluZXJSZWYuZGV0YWNoKFxuICAgICAgdmlld0NvbnRhaW5lclJlZi5pbmRleE9mKHRoaXMuY29tcG9uZW50UmVmLmhvc3RWaWV3KVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -282,63 +282,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
282
282
  * Public API Surface of mapa-library-ui icon
283
283
  */
284
284
 
285
- const CapabilityClassification = [
285
+ const CAPABILITY_CLASSIFICATION = [
286
286
  {
287
- classificationId: 1,
288
- classificationName: "Destaque",
287
+ id: 1,
288
+ name: "Destaque",
289
289
  color: "#96f2ee",
290
290
  positive: true,
291
291
  },
292
292
  {
293
- classificationId: 2,
294
- classificationName: "Satisfatório",
293
+ id: 2,
294
+ name: "Satisfatório",
295
295
  color: "#68ceee",
296
296
  positive: true,
297
297
  },
298
298
  {
299
- classificationId: 3,
300
- classificationName: "Adequado",
299
+ id: 3,
300
+ name: "Adequado",
301
301
  color: "#2d9ced",
302
302
  positive: true,
303
303
  },
304
304
  {
305
- classificationId: 4,
306
- classificationName: "A desenvolver",
305
+ id: 4,
306
+ name: "A desenvolver",
307
307
  color: "#0e6ece",
308
308
  positive: true,
309
309
  },
310
310
  {
311
- classificationId: 5,
312
- classificationName: "Crítico baixo",
311
+ id: 5,
312
+ name: "Crítico baixo",
313
313
  color: "#073e92",
314
314
  positive: true,
315
315
  },
316
316
  {
317
- classificationId: 6,
318
- classificationName: "Merece atenção baixo",
317
+ id: 6,
318
+ name: "Merece atenção baixo",
319
319
  color: "#f56580",
320
320
  positive: false,
321
321
  },
322
322
  {
323
- classificationId: 7,
324
- classificationName: "Adequado",
323
+ id: 7,
324
+ name: "Adequado",
325
325
  color: "#f598a7",
326
326
  positive: false,
327
327
  },
328
328
  {
329
- classificationId: 8,
330
- classificationName: "Merece atenção alto",
329
+ id: 8,
330
+ name: "Merece atenção alto",
331
331
  color: "#f4284e",
332
332
  positive: false,
333
333
  },
334
334
  {
335
- classificationId: 9,
336
- classificationName: "Crítico alto",
335
+ id: 9,
336
+ name: "Crítico alto",
337
337
  color: "#c11c2f",
338
338
  positive: false,
339
339
  },
340
340
  ];
341
341
 
342
+ class CapabilityClassificationService {
343
+ getByItem(item) {
344
+ return (CAPABILITY_CLASSIFICATION.find((classification) => classification.id === item.classificationId) || CAPABILITY_CLASSIFICATION[0]);
345
+ }
346
+ }
347
+ CapabilityClassificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
348
+ CapabilityClassificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService });
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CapabilityClassificationService, decorators: [{
350
+ type: Injectable
351
+ }] });
352
+
342
353
  class TagComponent {
343
354
  }
344
355
  TagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -353,17 +364,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
353
364
  }] } });
354
365
 
355
366
  class MapaCapabilityDotComponent {
356
- getClassificationName(item) {
357
- var _a;
358
- return (((_a = CapabilityClassification.find((classification) => classification.classificationId === item.classificationId)) === null || _a === void 0 ? void 0 : _a.classificationName) || "");
367
+ constructor(classification) {
368
+ this.classification = classification;
359
369
  }
360
370
  }
361
- MapaCapabilityDotComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
362
- MapaCapabilityDotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityDotComponent, selector: "mapa-capability-dot", inputs: { type: "type", item: "item", tooltip: "tooltip", capability: "capability" }, ngImport: i0, template: "<p\n *ngIf=\"!tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n></p>\n<p\n *ngIf=\"tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n [tooltip]=\"tooltipTemplate\"\n></p>\n<ng-template #tooltipTemplate>\n <div class=\"tooltip-info\">\n <strong class=\"tooltip-info--direction\" *ngIf=\"item.direction === 'Negativa'\">\u2198\uFE0E</strong>\n <strong class=\"tooltip-info--direction\" *ngIf=\"item.direction === 'Positiva'\">\u2197</strong>\n\n <h5>{{ item.name }}</h5>\n\n <mapa-tag size=\"small\">\n <p\n class=\"small-dot\"\n [ngClass]=\"'classification-' + item.classificationId\"\n ></p>\n {{ getClassificationName(item) }}\n </mapa-tag>\n </div>\n</ng-template>\n", styles: [".tooltip-info{display:flex;align-items:center}.tooltip-info strong{margin-right:2px}.tooltip-info h5{margin:0 5px 0 0;font-family:SF-Pro;font-size:14px;font-style:normal;font-weight:600}.tooltip-info--direction{padding-right:6px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MapaTooltipDirective, selector: "[tooltip]", inputs: ["tooltip", "position", "theme", "showDelay", "hideDelay"] }, { kind: "component", type: TagComponent, selector: "mapa-tag", inputs: ["color", "size"] }] });
371
+ MapaCapabilityDotComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotComponent, deps: [{ token: CapabilityClassificationService }], target: i0.ɵɵFactoryTarget.Component });
372
+ MapaCapabilityDotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityDotComponent, selector: "mapa-capability-dot", inputs: { type: "type", item: "item", tooltip: "tooltip", capability: "capability" }, ngImport: i0, template: "<p\n *ngIf=\"!tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n></p>\n<p\n *ngIf=\"tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n [tooltip]=\"tooltipTemplate\"\n></p>\n<ng-template #tooltipTemplate>\n <div class=\"tooltip-info\">\n <strong class=\"tooltip-info--direction\" *ngIf=\"!classification.getByItem(item).positive\">\u2198\uFE0E</strong>\n <strong class=\"tooltip-info--direction\" *ngIf=\"classification.getByItem(item).positive\">\u2197</strong>\n\n <h5>{{ item.name }}</h5>\n\n <mapa-tag size=\"small\">\n <p\n class=\"small-dot\"\n [ngClass]=\"'classification-' + item.classificationId\"\n ></p>\n {{ classification.getByItem(item).name }}\n </mapa-tag>\n </div>\n</ng-template>\n", styles: [".tooltip-info{display:flex;align-items:center}.tooltip-info strong{margin-right:2px}.tooltip-info h5{margin:0 5px 0 0;font-family:SF-Pro;font-size:14px;font-style:normal;font-weight:600}.tooltip-info--direction{padding-right:6px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MapaTooltipDirective, selector: "[tooltip]", inputs: ["tooltip", "position", "theme", "showDelay", "hideDelay"] }, { kind: "component", type: TagComponent, selector: "mapa-tag", inputs: ["color", "size"] }] });
363
373
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotComponent, decorators: [{
364
374
  type: Component,
365
- args: [{ selector: "mapa-capability-dot", template: "<p\n *ngIf=\"!tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n></p>\n<p\n *ngIf=\"tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n [tooltip]=\"tooltipTemplate\"\n></p>\n<ng-template #tooltipTemplate>\n <div class=\"tooltip-info\">\n <strong class=\"tooltip-info--direction\" *ngIf=\"item.direction === 'Negativa'\">\u2198\uFE0E</strong>\n <strong class=\"tooltip-info--direction\" *ngIf=\"item.direction === 'Positiva'\">\u2197</strong>\n\n <h5>{{ item.name }}</h5>\n\n <mapa-tag size=\"small\">\n <p\n class=\"small-dot\"\n [ngClass]=\"'classification-' + item.classificationId\"\n ></p>\n {{ getClassificationName(item) }}\n </mapa-tag>\n </div>\n</ng-template>\n", styles: [".tooltip-info{display:flex;align-items:center}.tooltip-info strong{margin-right:2px}.tooltip-info h5{margin:0 5px 0 0;font-family:SF-Pro;font-size:14px;font-style:normal;font-weight:600}.tooltip-info--direction{padding-right:6px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"] }]
366
- }], propDecorators: { type: [{
375
+ args: [{ selector: "mapa-capability-dot", template: "<p\n *ngIf=\"!tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n></p>\n<p\n *ngIf=\"tooltip\"\n [class.dot]=\"type !== 'small'\"\n [class.small-dot]=\"type === 'small'\"\n [ngClass]=\"'classification-' + item.classificationId\"\n [tooltip]=\"tooltipTemplate\"\n></p>\n<ng-template #tooltipTemplate>\n <div class=\"tooltip-info\">\n <strong class=\"tooltip-info--direction\" *ngIf=\"!classification.getByItem(item).positive\">\u2198\uFE0E</strong>\n <strong class=\"tooltip-info--direction\" *ngIf=\"classification.getByItem(item).positive\">\u2197</strong>\n\n <h5>{{ item.name }}</h5>\n\n <mapa-tag size=\"small\">\n <p\n class=\"small-dot\"\n [ngClass]=\"'classification-' + item.classificationId\"\n ></p>\n {{ classification.getByItem(item).name }}\n </mapa-tag>\n </div>\n</ng-template>\n", styles: [".tooltip-info{display:flex;align-items:center}.tooltip-info strong{margin-right:2px}.tooltip-info h5{margin:0 5px 0 0;font-family:SF-Pro;font-size:14px;font-style:normal;font-weight:600}.tooltip-info--direction{padding-right:6px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"] }]
376
+ }], ctorParameters: function () { return [{ type: CapabilityClassificationService }]; }, propDecorators: { type: [{
367
377
  type: Input
368
378
  }], item: [{
369
379
  type: Input
@@ -401,28 +411,28 @@ class MapaCapabilityDotModule {
401
411
  }
402
412
  MapaCapabilityDotModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
403
413
  MapaCapabilityDotModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotModule, declarations: [MapaCapabilityDotComponent], imports: [CommonModule, MapaTooltipModule, MapaTagModule], exports: [MapaCapabilityDotComponent] });
404
- MapaCapabilityDotModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotModule, imports: [CommonModule, MapaTooltipModule, MapaTagModule] });
414
+ MapaCapabilityDotModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotModule, providers: [CapabilityClassificationService], imports: [CommonModule, MapaTooltipModule, MapaTagModule] });
405
415
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityDotModule, decorators: [{
406
416
  type: NgModule,
407
417
  args: [{
408
418
  declarations: [MapaCapabilityDotComponent],
409
419
  exports: [MapaCapabilityDotComponent],
410
420
  imports: [CommonModule, MapaTooltipModule, MapaTagModule],
421
+ providers: [CapabilityClassificationService],
411
422
  }]
412
423
  }] });
413
424
 
414
425
  class MapaCapabilityExpandComponent {
415
- getClassificationName(item) {
416
- var _a;
417
- return ((_a = CapabilityClassification.find((classification) => classification.classificationId === item.classificationId)) === null || _a === void 0 ? void 0 : _a.classificationName) || '';
426
+ constructor(classification) {
427
+ this.classification = classification;
418
428
  }
419
429
  }
420
- MapaCapabilityExpandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
421
- MapaCapabilityExpandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityExpandComponent, selector: "mapa-capability-expand", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"capability__concept\">\n <div>\n <strong>Conceito</strong>\n <p>\n {{ data.concept }}\n </p>\n </div>\n <div>\n <strong>Resultado</strong>\n <p>\n {{ data.result }}\n </p>\n </div>\n</div>\n<div class=\"capability__expanded\">\n <div *ngFor=\"let item of data.items\" class=\"capability__expanded--item\">\n <div class=\"name\">\n <strong>{{ item.name }}</strong>\n <mapa-tag size=\"small\">\n <mapa-capability-dot\n [item]=\"item\"\n ></mapa-capability-dot>\n {{ getClassificationName(item) }}\n </mapa-tag>\n </div>\n\n <p class=\"classificationName\">\n <strong *ngIf=\"item.direction === 'Negativa'\">\u2198\uFE0E Dire\u00E7\u00E3o Negativa</strong> \n <strong *ngIf=\"item.direction === 'Positiva'\">\u2197 Dire\u00E7\u00E3o Positiva</strong>\n | {{ item.description }}\n </p>\n </div>\n</div>\n", styles: [".capability__concept{display:flex;flex:1 1 48%;gap:42px;margin:24px 0 60px}.capability__concept div{width:48%}.capability__concept strong{display:block;margin-bottom:16px}.capability__expanded{border-top:1px solid #8c8f94;padding:36px 16px 16px;display:flex;flex-wrap:wrap;flex:0 0 30%;justify-content:flex-start;gap:30px}.capability__expanded--item{width:30%}.capability__expanded--item .name{display:flex;justify-content:space-between;margin-bottom:16px}.capability__expanded--item .classificationName{color:#8c8f94}.capability__expanded--item mapa-tag .tag{display:flex;align-items:center;gap:8px;padding:2px 8px 2px 3px!important;font-size:14px;height:18px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TagComponent, selector: "mapa-tag", inputs: ["color", "size"] }, { kind: "component", type: MapaCapabilityDotComponent, selector: "mapa-capability-dot", inputs: ["type", "item", "tooltip", "capability"] }], encapsulation: i0.ViewEncapsulation.None });
430
+ MapaCapabilityExpandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandComponent, deps: [{ token: CapabilityClassificationService }], target: i0.ɵɵFactoryTarget.Component });
431
+ MapaCapabilityExpandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityExpandComponent, selector: "mapa-capability-expand", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"capability__concept\">\n <div>\n <strong>Conceito</strong>\n <p>\n {{ data.concept }}\n </p>\n </div>\n <div>\n <strong>Resultado</strong>\n <p>\n {{ data.result }}\n </p>\n </div>\n</div>\n<div class=\"capability__expanded\">\n <div *ngFor=\"let item of data.items\" class=\"capability__expanded--item\">\n <div class=\"name\">\n <strong>{{ item.name }}</strong>\n <mapa-tag size=\"small\">\n <mapa-capability-dot\n [item]=\"item\"\n ></mapa-capability-dot>\n {{ classification.getByItem(item).name }}\n </mapa-tag>\n </div>\n\n <p class=\"classificationName\">\n <strong *ngIf=\"!classification.getByItem(item).positive\">\u2198\uFE0E Dire\u00E7\u00E3o Negativa</strong> \n <strong *ngIf=\"classification.getByItem(item).positive\">\u2197 Dire\u00E7\u00E3o Positiva</strong>\n | {{ item.description }}\n </p>\n </div>\n</div>\n", styles: [".capability__concept{display:flex;flex:1 1 48%;gap:42px;margin:24px 0 60px}.capability__concept div{width:48%}.capability__concept strong{display:block;margin-bottom:16px}.capability__expanded{border-top:1px solid #8c8f94;padding:36px 16px 16px;display:flex;flex-wrap:wrap;flex:0 0 30%;justify-content:flex-start;gap:30px}.capability__expanded--item{width:30%}.capability__expanded--item .name{display:flex;justify-content:space-between;margin-bottom:16px}.capability__expanded--item .classificationName{color:#8c8f94}.capability__expanded--item mapa-tag .tag{display:flex;align-items:center;gap:8px;padding:2px 8px 2px 3px!important;font-size:14px;height:18px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TagComponent, selector: "mapa-tag", inputs: ["color", "size"] }, { kind: "component", type: MapaCapabilityDotComponent, selector: "mapa-capability-dot", inputs: ["type", "item", "tooltip", "capability"] }], encapsulation: i0.ViewEncapsulation.None });
422
432
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandComponent, decorators: [{
423
433
  type: Component,
424
- args: [{ selector: "mapa-capability-expand", encapsulation: ViewEncapsulation.None, template: "<div class=\"capability__concept\">\n <div>\n <strong>Conceito</strong>\n <p>\n {{ data.concept }}\n </p>\n </div>\n <div>\n <strong>Resultado</strong>\n <p>\n {{ data.result }}\n </p>\n </div>\n</div>\n<div class=\"capability__expanded\">\n <div *ngFor=\"let item of data.items\" class=\"capability__expanded--item\">\n <div class=\"name\">\n <strong>{{ item.name }}</strong>\n <mapa-tag size=\"small\">\n <mapa-capability-dot\n [item]=\"item\"\n ></mapa-capability-dot>\n {{ getClassificationName(item) }}\n </mapa-tag>\n </div>\n\n <p class=\"classificationName\">\n <strong *ngIf=\"item.direction === 'Negativa'\">\u2198\uFE0E Dire\u00E7\u00E3o Negativa</strong> \n <strong *ngIf=\"item.direction === 'Positiva'\">\u2197 Dire\u00E7\u00E3o Positiva</strong>\n | {{ item.description }}\n </p>\n </div>\n</div>\n", styles: [".capability__concept{display:flex;flex:1 1 48%;gap:42px;margin:24px 0 60px}.capability__concept div{width:48%}.capability__concept strong{display:block;margin-bottom:16px}.capability__expanded{border-top:1px solid #8c8f94;padding:36px 16px 16px;display:flex;flex-wrap:wrap;flex:0 0 30%;justify-content:flex-start;gap:30px}.capability__expanded--item{width:30%}.capability__expanded--item .name{display:flex;justify-content:space-between;margin-bottom:16px}.capability__expanded--item .classificationName{color:#8c8f94}.capability__expanded--item mapa-tag .tag{display:flex;align-items:center;gap:8px;padding:2px 8px 2px 3px!important;font-size:14px;height:18px}\n"] }]
425
- }], propDecorators: { data: [{
434
+ args: [{ selector: "mapa-capability-expand", encapsulation: ViewEncapsulation.None, template: "<div class=\"capability__concept\">\n <div>\n <strong>Conceito</strong>\n <p>\n {{ data.concept }}\n </p>\n </div>\n <div>\n <strong>Resultado</strong>\n <p>\n {{ data.result }}\n </p>\n </div>\n</div>\n<div class=\"capability__expanded\">\n <div *ngFor=\"let item of data.items\" class=\"capability__expanded--item\">\n <div class=\"name\">\n <strong>{{ item.name }}</strong>\n <mapa-tag size=\"small\">\n <mapa-capability-dot\n [item]=\"item\"\n ></mapa-capability-dot>\n {{ classification.getByItem(item).name }}\n </mapa-tag>\n </div>\n\n <p class=\"classificationName\">\n <strong *ngIf=\"!classification.getByItem(item).positive\">\u2198\uFE0E Dire\u00E7\u00E3o Negativa</strong> \n <strong *ngIf=\"classification.getByItem(item).positive\">\u2197 Dire\u00E7\u00E3o Positiva</strong>\n | {{ item.description }}\n </p>\n </div>\n</div>\n", styles: [".capability__concept{display:flex;flex:1 1 48%;gap:42px;margin:24px 0 60px}.capability__concept div{width:48%}.capability__concept strong{display:block;margin-bottom:16px}.capability__expanded{border-top:1px solid #8c8f94;padding:36px 16px 16px;display:flex;flex-wrap:wrap;flex:0 0 30%;justify-content:flex-start;gap:30px}.capability__expanded--item{width:30%}.capability__expanded--item .name{display:flex;justify-content:space-between;margin-bottom:16px}.capability__expanded--item .classificationName{color:#8c8f94}.capability__expanded--item mapa-tag .tag{display:flex;align-items:center;gap:8px;padding:2px 8px 2px 3px!important;font-size:14px;height:18px}\n"] }]
435
+ }], ctorParameters: function () { return [{ type: CapabilityClassificationService }]; }, propDecorators: { data: [{
426
436
  type: Input
427
437
  }] } });
428
438
 
@@ -430,13 +440,14 @@ class MapaCapabilityExpandModule {
430
440
  }
431
441
  MapaCapabilityExpandModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
432
442
  MapaCapabilityExpandModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandModule, declarations: [MapaCapabilityExpandComponent], imports: [CommonModule, MapaTagModule, MapaCapabilityDotModule], exports: [MapaCapabilityExpandComponent] });
433
- MapaCapabilityExpandModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandModule, imports: [CommonModule, MapaTagModule, MapaCapabilityDotModule] });
443
+ MapaCapabilityExpandModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandModule, providers: [CapabilityClassificationService], imports: [CommonModule, MapaTagModule, MapaCapabilityDotModule] });
434
444
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityExpandModule, decorators: [{
435
445
  type: NgModule,
436
446
  args: [{
437
447
  declarations: [MapaCapabilityExpandComponent],
438
448
  exports: [MapaCapabilityExpandComponent],
439
449
  imports: [CommonModule, MapaTagModule, MapaCapabilityDotModule],
450
+ providers: [CapabilityClassificationService],
440
451
  }]
441
452
  }] });
442
453
 
@@ -703,25 +714,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
703
714
  }] });
704
715
 
705
716
  class MapaCapabilityIndicatorListComponent {
706
- constructor() {
717
+ constructor(classification) {
718
+ this.classification = classification;
707
719
  this.dataPositive = [];
708
720
  this.dataNegative = [];
709
721
  this.dataRiskPrecipitation = [];
710
722
  this.dataRiskNegligence = [];
711
723
  }
712
724
  ngOnInit() {
713
- this.dataPositive = this.data.filter((item) => item.direction === "Positiva" && !item.risk);
714
- this.dataNegative = this.data.filter((item) => item.direction === "Negativa" && !item.risk);
725
+ this.dataPositive = this.data.filter((item) => this.classification.getByItem(item).positive && !item.risk);
726
+ this.dataNegative = this.data.filter((item) => !this.classification.getByItem(item).positive && !item.risk);
715
727
  this.dataRiskPrecipitation = this.data.filter((item) => item.risk === true && item.precipitation === true);
716
728
  this.dataRiskNegligence = this.data.filter((item) => item.risk === true && item.negligence === true);
717
729
  }
718
730
  }
719
- MapaCapabilityIndicatorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
731
+ MapaCapabilityIndicatorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListComponent, deps: [{ token: CapabilityClassificationService }], target: i0.ɵɵFactoryTarget.Component });
720
732
  MapaCapabilityIndicatorListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityIndicatorListComponent, selector: "mapa-capability-indicator-list", inputs: { data: "data" }, ngImport: i0, template: "<section class=\"indicator-list\">\n <article class=\"indicator-list__column\">\n <h2>Indicadores positivos</h2>\n <mapa-capability-indicator\n *ngFor=\"let item of dataPositive\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n <article class=\"indicator-list__column\">\n <h2>Indicadores negativos</h2>\n <mapa-capability-indicator\n *ngFor=\"let item of dataNegative\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n <article class=\"indicator-list__column\">\n <h2>Indicadores de risco</h2>\n <h3>Risco de acidente por precipita\u00E7\u00E3o</h3>\n <mapa-capability-indicator\n *ngFor=\"let item of dataRiskPrecipitation\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n <h3>Risco de acidente por neglig\u00EAncia</h3>\n <mapa-capability-indicator\n *ngFor=\"let item of dataRiskNegligence\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n</section>\n", styles: [".indicator-list{display:flex;gap:42px;justify-content:space-between;margin-bottom:42px}.indicator-list__column{width:33%}.indicator-list__column h2{font-family:SF-Pro;font-size:24px;font-style:normal;font-weight:400;line-height:32px;margin-bottom:24px}.indicator-list__column h3{font-family:SF-Pro;font-size:20px;font-style:normal;font-weight:400;line-height:32px;margin-bottom:24px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MapaCapabilityIndicatorComponent, selector: "mapa-capability-indicator", inputs: ["item", "fullWidth"] }] });
721
733
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListComponent, decorators: [{
722
734
  type: Component,
723
735
  args: [{ selector: "mapa-capability-indicator-list", template: "<section class=\"indicator-list\">\n <article class=\"indicator-list__column\">\n <h2>Indicadores positivos</h2>\n <mapa-capability-indicator\n *ngFor=\"let item of dataPositive\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n <article class=\"indicator-list__column\">\n <h2>Indicadores negativos</h2>\n <mapa-capability-indicator\n *ngFor=\"let item of dataNegative\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n <article class=\"indicator-list__column\">\n <h2>Indicadores de risco</h2>\n <h3>Risco de acidente por precipita\u00E7\u00E3o</h3>\n <mapa-capability-indicator\n *ngFor=\"let item of dataRiskPrecipitation\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n <h3>Risco de acidente por neglig\u00EAncia</h3>\n <mapa-capability-indicator\n *ngFor=\"let item of dataRiskNegligence\"\n [item]=\"item\"\n [fullWidth]=\"true\">\n </mapa-capability-indicator>\n </article>\n</section>\n", styles: [".indicator-list{display:flex;gap:42px;justify-content:space-between;margin-bottom:42px}.indicator-list__column{width:33%}.indicator-list__column h2{font-family:SF-Pro;font-size:24px;font-style:normal;font-weight:400;line-height:32px;margin-bottom:24px}.indicator-list__column h3{font-family:SF-Pro;font-size:20px;font-style:normal;font-weight:400;line-height:32px;margin-bottom:24px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"] }]
724
- }], ctorParameters: function () { return []; }, propDecorators: { data: [{
736
+ }], ctorParameters: function () { return [{ type: CapabilityClassificationService }]; }, propDecorators: { data: [{
725
737
  type: Input
726
738
  }] } });
727
739
 
@@ -729,17 +741,21 @@ class MapaCapabilityIndicatorListModule {
729
741
  }
730
742
  MapaCapabilityIndicatorListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
731
743
  MapaCapabilityIndicatorListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListModule, declarations: [MapaCapabilityIndicatorListComponent], imports: [CommonModule, MapaCapabilityIndicatorModule], exports: [MapaCapabilityIndicatorListComponent] });
732
- MapaCapabilityIndicatorListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListModule, imports: [CommonModule, MapaCapabilityIndicatorModule] });
744
+ MapaCapabilityIndicatorListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListModule, providers: [CapabilityClassificationService], imports: [CommonModule, MapaCapabilityIndicatorModule] });
733
745
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorListModule, decorators: [{
734
746
  type: NgModule,
735
747
  args: [{
736
748
  declarations: [MapaCapabilityIndicatorListComponent],
737
749
  exports: [MapaCapabilityIndicatorListComponent],
738
750
  imports: [CommonModule, MapaCapabilityIndicatorModule],
751
+ providers: [CapabilityClassificationService],
739
752
  }]
740
753
  }] });
741
754
 
742
755
  class MapaCapabilityIndicatorChartComponent {
756
+ constructor(classification) {
757
+ this.classification = classification;
758
+ }
743
759
  setUnlabeledItem(item) {
744
760
  return {
745
761
  classificationId: item.classificationId,
@@ -747,12 +763,12 @@ class MapaCapabilityIndicatorChartComponent {
747
763
  };
748
764
  }
749
765
  }
750
- MapaCapabilityIndicatorChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
751
- MapaCapabilityIndicatorChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityIndicatorChartComponent, selector: "mapa-capability-indicator-chart", inputs: { data: "data" }, ngImport: i0, template: "<table class=\"indicator-chart\">\n <tr *ngFor=\"let item of data\">\n <td class=\"indicator-chart__column--description\">{{ item.name }}</td>\n <td class=\"indicator-chart__column indicator-chart__column--negative\">\n <mapa-capability-indicator\n *ngIf=\"item.direction === 'Negativa'\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n <td class=\"indicator-chart__column indicator-chart__column--positive\">\n <mapa-capability-indicator\n *ngIf=\"item.direction === 'Positiva'\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n </tr>\n</table>\n", styles: [".indicator-chart{width:100%;border-collapse:collapse}.indicator-chart__column--description{width:1%;white-space:nowrap;padding-right:24px}.indicator-chart__column--negative{display:flex;justify-content:flex-end}.indicator-chart__column--negative .indicator{border-radius:18px 0 0 18px!important;justify-content:flex-start!important;padding:2px!important}.indicator-chart__column--negative .indicator__classification{margin-left:1px!important}.indicator-chart__column--positive .indicator{border-radius:0 18px 18px 0!important;padding:2px!important}.indicator-chart__column--positive .indicator__classification{margin-right:1px!important}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MapaCapabilityIndicatorComponent, selector: "mapa-capability-indicator", inputs: ["item", "fullWidth"] }], encapsulation: i0.ViewEncapsulation.None });
766
+ MapaCapabilityIndicatorChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartComponent, deps: [{ token: CapabilityClassificationService }], target: i0.ɵɵFactoryTarget.Component });
767
+ MapaCapabilityIndicatorChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityIndicatorChartComponent, selector: "mapa-capability-indicator-chart", inputs: { data: "data" }, ngImport: i0, template: "<table class=\"indicator-chart\">\n <tr *ngFor=\"let item of data\">\n <td class=\"indicator-chart__column--description\">{{ item.name }}</td>\n <td class=\"indicator-chart__column indicator-chart__column--negative\">\n <mapa-capability-indicator\n *ngIf=\"!classification.getByItem(item).positive\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n <td class=\"indicator-chart__column indicator-chart__column--positive\">\n <mapa-capability-indicator\n *ngIf=\"classification.getByItem(item).positive\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n </tr>\n</table>\n", styles: [".indicator-chart{width:100%;border-collapse:collapse}.indicator-chart__column--description{width:1%;white-space:nowrap;padding-right:24px}.indicator-chart__column--negative{display:flex;justify-content:flex-end}.indicator-chart__column--negative .indicator{border-radius:18px 0 0 18px!important;justify-content:flex-start!important;padding:2px!important}.indicator-chart__column--negative .indicator__classification{margin-left:1px!important}.indicator-chart__column--positive .indicator{border-radius:0 18px 18px 0!important;padding:2px!important}.indicator-chart__column--positive .indicator__classification{margin-right:1px!important}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MapaCapabilityIndicatorComponent, selector: "mapa-capability-indicator", inputs: ["item", "fullWidth"] }], encapsulation: i0.ViewEncapsulation.None });
752
768
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartComponent, decorators: [{
753
769
  type: Component,
754
- args: [{ selector: "mapa-capability-indicator-chart", encapsulation: ViewEncapsulation.None, template: "<table class=\"indicator-chart\">\n <tr *ngFor=\"let item of data\">\n <td class=\"indicator-chart__column--description\">{{ item.name }}</td>\n <td class=\"indicator-chart__column indicator-chart__column--negative\">\n <mapa-capability-indicator\n *ngIf=\"item.direction === 'Negativa'\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n <td class=\"indicator-chart__column indicator-chart__column--positive\">\n <mapa-capability-indicator\n *ngIf=\"item.direction === 'Positiva'\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n </tr>\n</table>\n", styles: [".indicator-chart{width:100%;border-collapse:collapse}.indicator-chart__column--description{width:1%;white-space:nowrap;padding-right:24px}.indicator-chart__column--negative{display:flex;justify-content:flex-end}.indicator-chart__column--negative .indicator{border-radius:18px 0 0 18px!important;justify-content:flex-start!important;padding:2px!important}.indicator-chart__column--negative .indicator__classification{margin-left:1px!important}.indicator-chart__column--positive .indicator{border-radius:0 18px 18px 0!important;padding:2px!important}.indicator-chart__column--positive .indicator__classification{margin-right:1px!important}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"] }]
755
- }], propDecorators: { data: [{
770
+ args: [{ selector: "mapa-capability-indicator-chart", encapsulation: ViewEncapsulation.None, template: "<table class=\"indicator-chart\">\n <tr *ngFor=\"let item of data\">\n <td class=\"indicator-chart__column--description\">{{ item.name }}</td>\n <td class=\"indicator-chart__column indicator-chart__column--negative\">\n <mapa-capability-indicator\n *ngIf=\"!classification.getByItem(item).positive\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n <td class=\"indicator-chart__column indicator-chart__column--positive\">\n <mapa-capability-indicator\n *ngIf=\"classification.getByItem(item).positive\"\n [item]=\"setUnlabeledItem(item)\"\n ></mapa-capability-indicator>\n </td>\n </tr>\n</table>\n", styles: [".indicator-chart{width:100%;border-collapse:collapse}.indicator-chart__column--description{width:1%;white-space:nowrap;padding-right:24px}.indicator-chart__column--negative{display:flex;justify-content:flex-end}.indicator-chart__column--negative .indicator{border-radius:18px 0 0 18px!important;justify-content:flex-start!important;padding:2px!important}.indicator-chart__column--negative .indicator__classification{margin-left:1px!important}.indicator-chart__column--positive .indicator{border-radius:0 18px 18px 0!important;padding:2px!important}.indicator-chart__column--positive .indicator__classification{margin-right:1px!important}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#fff}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f56580;color:#000}.classification-7{background-color:#f598a7;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px}\n"] }]
771
+ }], ctorParameters: function () { return [{ type: CapabilityClassificationService }]; }, propDecorators: { data: [{
756
772
  type: Input
757
773
  }] } });
758
774
 
@@ -760,13 +776,14 @@ class MapaCapabilityIndicatorChartModule {
760
776
  }
761
777
  MapaCapabilityIndicatorChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
762
778
  MapaCapabilityIndicatorChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartModule, declarations: [MapaCapabilityIndicatorChartComponent], imports: [CommonModule, MapaCapabilityIndicatorModule], exports: [MapaCapabilityIndicatorChartComponent] });
763
- MapaCapabilityIndicatorChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartModule, imports: [CommonModule, MapaCapabilityIndicatorModule] });
779
+ MapaCapabilityIndicatorChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartModule, providers: [CapabilityClassificationService], imports: [CommonModule, MapaCapabilityIndicatorModule] });
764
780
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityIndicatorChartModule, decorators: [{
765
781
  type: NgModule,
766
782
  args: [{
767
783
  declarations: [MapaCapabilityIndicatorChartComponent],
768
784
  exports: [MapaCapabilityIndicatorChartComponent],
769
785
  imports: [CommonModule, MapaCapabilityIndicatorModule],
786
+ providers: [CapabilityClassificationService],
770
787
  }]
771
788
  }] });
772
789
 
@@ -782,5 +799,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
782
799
  * Generated bundle index. Do not edit.
783
800
  */
784
801
 
785
- export { ButtonComponent, IconComponent, MapaButtonModule, MapaCapabilityDetailComponent, MapaCapabilityDetailModule, MapaCapabilityDotComponent, MapaCapabilityDotModule, MapaCapabilityExpandComponent, MapaCapabilityExpandModule, MapaCapabilityIndicatorChartComponent, MapaCapabilityIndicatorChartModule, MapaCapabilityIndicatorComponent, MapaCapabilityIndicatorListComponent, MapaCapabilityIndicatorListModule, MapaCapabilityIndicatorModule, MapaCapabilityIntervalComponent, MapaCapabilityIntervalModule, MapaIconModule, MapaTooltipComponent, MapaTooltipDirective, MapaTooltipModule };
802
+ export { ButtonComponent, CapabilityClassificationService, IconComponent, MapaButtonModule, MapaCapabilityDetailComponent, MapaCapabilityDetailModule, MapaCapabilityDotComponent, MapaCapabilityDotModule, MapaCapabilityExpandComponent, MapaCapabilityExpandModule, MapaCapabilityIndicatorChartComponent, MapaCapabilityIndicatorChartModule, MapaCapabilityIndicatorComponent, MapaCapabilityIndicatorListComponent, MapaCapabilityIndicatorListModule, MapaCapabilityIndicatorModule, MapaCapabilityIntervalComponent, MapaCapabilityIntervalModule, MapaIconModule, MapaTooltipComponent, MapaTooltipDirective, MapaTooltipModule };
786
803
  //# sourceMappingURL=mapa-library-ui-src-lib-components-capability.mjs.map