@nova-ui/dashboards 12.0.39 → 12.0.41

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 (114) hide show
  1. package/bundles/nova-ui-dashboards.umd.js +1012 -403
  2. package/bundles/nova-ui-dashboards.umd.js.map +1 -1
  3. package/esm2015/lib/components/public-api.js +2 -1
  4. package/esm2015/lib/components/risk-score-tile/public-api.js +22 -0
  5. package/esm2015/lib/components/risk-score-tile/risk-score-tile.component.js +124 -0
  6. package/esm2015/lib/components/risk-score-tile/types.js +25 -0
  7. package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +2 -2
  8. package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +2 -2
  9. package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +2 -2
  10. package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +2 -2
  11. package/esm2015/lib/components/timeseries-widget/timeseries-helpers.js +2 -2
  12. package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +16 -5
  13. package/esm2015/lib/configurator/components/widgets/configurator-items/public-api.js +2 -1
  14. package/esm2015/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +112 -0
  15. package/esm2015/lib/configurator/components/widgets/public-api.js +2 -1
  16. package/esm2015/lib/configurator/components/widgets/risk-score/public-api.js +22 -0
  17. package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +21 -0
  18. package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +96 -0
  19. package/esm2015/lib/configurator/components/widgets/risk-score/types.js +21 -0
  20. package/esm2015/lib/configurator/configurator.module.js +9 -1
  21. package/esm2015/lib/constants/default-palette.js +3 -1
  22. package/esm2015/lib/dashboards.module.js +19 -7
  23. package/esm2015/lib/services/provider-registry.service.js +8 -3
  24. package/esm2015/lib/services/table-formatter-registry.service.js +12 -1
  25. package/esm2015/lib/services/types.js +2 -1
  26. package/esm2015/lib/widget-types/risk-score/risk-score-configurator.js +201 -0
  27. package/esm2015/lib/widget-types/risk-score/risk-score-widget.js +86 -0
  28. package/esm2015/lib/widget-types/risk-score/risk-score.js +56 -0
  29. package/fesm2015/nova-ui-dashboards.js +687 -96
  30. package/fesm2015/nova-ui-dashboards.js.map +1 -1
  31. package/lib/components/public-api.d.ts +1 -0
  32. package/lib/components/risk-score-tile/public-api.d.ts +2 -0
  33. package/lib/components/risk-score-tile/risk-score-tile.component.d.ts +32 -0
  34. package/lib/components/risk-score-tile/types.d.ts +28 -0
  35. package/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
  36. package/lib/components/timeseries-widget/timeseries-scales.service.d.ts +1 -0
  37. package/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
  38. package/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +26 -0
  39. package/lib/configurator/components/widgets/public-api.d.ts +1 -0
  40. package/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
  41. package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
  42. package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +32 -0
  43. package/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
  44. package/lib/configurator/configurator.module.d.ts +67 -65
  45. package/lib/dashboards.module.d.ts +38 -37
  46. package/lib/services/table-formatter-registry.service.d.ts +5 -0
  47. package/lib/services/types.d.ts +1 -0
  48. package/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
  49. package/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
  50. package/lib/widget-types/risk-score/risk-score.d.ts +5 -0
  51. package/package.json +3 -3
  52. package/sdk/atoms/src/lib/components/public-api.d.ts +1 -0
  53. package/sdk/atoms/src/lib/components/public-api.js +1 -0
  54. package/sdk/atoms/src/lib/components/public-api.js.map +1 -1
  55. package/sdk/atoms/src/lib/components/risk-score-tile/public-api.d.ts +2 -0
  56. package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js +25 -0
  57. package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js.map +1 -0
  58. package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.d.ts +29 -0
  59. package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js +128 -0
  60. package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js.map +1 -0
  61. package/sdk/atoms/src/lib/components/risk-score-tile/types.d.ts +28 -0
  62. package/sdk/atoms/src/lib/components/risk-score-tile/types.js +28 -0
  63. package/sdk/atoms/src/lib/components/risk-score-tile/types.js.map +1 -0
  64. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +1 -1
  65. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +1 -1
  66. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.d.ts +1 -0
  67. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +15 -4
  68. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
  69. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
  70. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js +1 -0
  71. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js.map +1 -1
  72. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +23 -0
  73. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +125 -0
  74. package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js.map +1 -0
  75. package/sdk/atoms/src/lib/configurator/components/widgets/public-api.d.ts +1 -0
  76. package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js +1 -0
  77. package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js.map +1 -1
  78. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
  79. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js +25 -0
  80. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js.map +1 -0
  81. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
  82. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +24 -0
  83. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js.map +1 -0
  84. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +29 -0
  85. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +102 -0
  86. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js.map +1 -0
  87. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
  88. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js +22 -0
  89. package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js.map +1 -0
  90. package/sdk/atoms/src/lib/configurator/configurator.module.js +4 -0
  91. package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
  92. package/sdk/atoms/src/lib/constants/default-palette.js +2 -0
  93. package/sdk/atoms/src/lib/constants/default-palette.js.map +1 -1
  94. package/sdk/atoms/src/lib/dashboards.module.d.ts +2 -2
  95. package/sdk/atoms/src/lib/dashboards.module.js +12 -3
  96. package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
  97. package/sdk/atoms/src/lib/services/provider-registry.service.js +5 -0
  98. package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
  99. package/sdk/atoms/src/lib/services/table-formatter-registry.service.d.ts +3 -0
  100. package/sdk/atoms/src/lib/services/table-formatter-registry.service.js +11 -1
  101. package/sdk/atoms/src/lib/services/table-formatter-registry.service.js.map +1 -1
  102. package/sdk/atoms/src/lib/services/types.d.ts +1 -0
  103. package/sdk/atoms/src/lib/services/types.js +3 -2
  104. package/sdk/atoms/src/lib/services/types.js.map +1 -1
  105. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
  106. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js +204 -0
  107. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js.map +1 -0
  108. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
  109. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js +89 -0
  110. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js.map +1 -0
  111. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.d.ts +5 -0
  112. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js +59 -0
  113. package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js.map +1 -0
  114. package/sdk/locale/messages.en.xlf +115 -8
@@ -0,0 +1,97 @@
1
+ import { IBroadcasterConfig } from "../../components/providers/types";
2
+ import { IFormatterDefinition } from "../../components/types";
3
+ import { IProviderConfiguration } from "../../types";
4
+ export declare const DEFAULT_RISK_SCORE_FORMATTERS: IFormatterDefinition[];
5
+ export declare const riskScoreConfigurator: {
6
+ structure: {
7
+ "/": {
8
+ id: string;
9
+ componentType: string;
10
+ properties: {
11
+ elementClass: string;
12
+ nodes: string[];
13
+ };
14
+ providers: {
15
+ formattersRegistry: {
16
+ providerId: string;
17
+ };
18
+ };
19
+ };
20
+ presentation: {
21
+ id: string;
22
+ componentType: string;
23
+ properties: {
24
+ headerText: string;
25
+ nodes: string[];
26
+ };
27
+ };
28
+ titleAndDescription: {
29
+ id: string;
30
+ componentType: string;
31
+ providers: {
32
+ converter: {
33
+ providerId: string;
34
+ };
35
+ };
36
+ };
37
+ refresher: import("../../types").IComponentConfiguration;
38
+ tiles: {
39
+ id: string;
40
+ componentType: string;
41
+ properties: {
42
+ template: ({
43
+ id: string;
44
+ componentType: string;
45
+ properties: {
46
+ dataSourceProviders?: undefined;
47
+ errorComponent?: undefined;
48
+ formatter?: undefined;
49
+ };
50
+ providers: {
51
+ converter: IProviderConfiguration;
52
+ broadcaster?: undefined;
53
+ };
54
+ } | {
55
+ id: string;
56
+ componentType: string;
57
+ properties: {
58
+ dataSourceProviders: string[];
59
+ errorComponent: string;
60
+ formatter?: undefined;
61
+ };
62
+ providers: {
63
+ converter: IProviderConfiguration;
64
+ broadcaster: {
65
+ providerId: string;
66
+ properties: {
67
+ configs: IBroadcasterConfig[];
68
+ };
69
+ };
70
+ };
71
+ } | {
72
+ id: string;
73
+ componentType: string;
74
+ providers: {
75
+ converter: IProviderConfiguration;
76
+ broadcaster?: undefined;
77
+ };
78
+ properties: {
79
+ formatter: {
80
+ componentType: string;
81
+ properties: {
82
+ dataFieldIds: {
83
+ value: string;
84
+ };
85
+ };
86
+ };
87
+ dataSourceProviders?: undefined;
88
+ errorComponent?: undefined;
89
+ };
90
+ })[];
91
+ };
92
+ providers: {
93
+ converter: IProviderConfiguration;
94
+ };
95
+ };
96
+ };
97
+ };
@@ -0,0 +1,55 @@
1
+ import { IProviderConfiguration } from "../../types";
2
+ export declare const riskScoreWidget: {
3
+ structure: {
4
+ tiles: {
5
+ id: string;
6
+ componentType: string;
7
+ properties: {
8
+ elementClass: string;
9
+ template: {
10
+ componentType: string;
11
+ providers: {
12
+ adapter: IProviderConfiguration;
13
+ };
14
+ properties: {
15
+ elementClass: string;
16
+ };
17
+ };
18
+ };
19
+ };
20
+ "/": {
21
+ id: string;
22
+ componentType: string;
23
+ providers: {
24
+ refresher: IProviderConfiguration;
25
+ eventProxy: IProviderConfiguration;
26
+ };
27
+ properties: {
28
+ nodes: string[];
29
+ };
30
+ };
31
+ header: import("../../types").IComponentConfiguration;
32
+ loading: import("../../types").IComponentConfiguration;
33
+ body: {
34
+ properties: {
35
+ elementClass: string;
36
+ };
37
+ id: string;
38
+ componentType: string;
39
+ providers?: Record<string, IProviderConfiguration> | undefined;
40
+ };
41
+ };
42
+ configuration: {
43
+ "/": {
44
+ id: string;
45
+ providers: {
46
+ refresher: IProviderConfiguration;
47
+ };
48
+ };
49
+ header: {
50
+ properties: {
51
+ title: string;
52
+ };
53
+ };
54
+ };
55
+ };
@@ -0,0 +1,5 @@
1
+ import { IWidgetTypeDefinition } from "../../components/widget/types";
2
+ /***********************************************************************************************************
3
+ * KPI widget definition starts here
4
+ ***********************************************************************************************************/
5
+ export declare const riskScore: IWidgetTypeDefinition;
package/package.json CHANGED
@@ -17,8 +17,8 @@
17
17
  "license": "Apache-2.0",
18
18
  "name": "@nova-ui/dashboards",
19
19
  "peerDependencies": {
20
- "@nova-ui/bits": "~12.0.39",
21
- "@nova-ui/charts": "~12.0.39",
20
+ "@nova-ui/bits": "~12.0.41",
21
+ "@nova-ui/charts": "~12.0.41",
22
22
  "@schematics/angular": "^12.2.14 || ^13.0.0",
23
23
  "angular-gridster2": "^12.1.0 || ^13.0.0",
24
24
  "d3": "^5.9.2",
@@ -38,7 +38,7 @@
38
38
  "d3-color": "3.1.0"
39
39
  },
40
40
  "schematics": "./sdk/schematics/collection.json",
41
- "version": "12.0.39",
41
+ "version": "12.0.41",
42
42
  "main": "bundles/nova-ui-dashboards.umd.js",
43
43
  "module": "fesm2015/nova-ui-dashboards.js",
44
44
  "es2015": "fesm2015/nova-ui-dashboards.js",
@@ -4,6 +4,7 @@ export * from "./layouts/public-api";
4
4
  export * from "./template-load-error/template-load-error.component";
5
5
  export * from "./proportional-widget/public-api";
6
6
  export * from "./kpi-widget/public-api";
7
+ export * from "./risk-score-tile/public-api";
7
8
  export * from "./timeseries-widget/public-api";
8
9
  export * from "./table-widget/public-api";
9
10
  export * from "./providers/public-api";
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./layouts/public-api"), exports);
26
26
  tslib_1.__exportStar(require("./template-load-error/template-load-error.component"), exports);
27
27
  tslib_1.__exportStar(require("./proportional-widget/public-api"), exports);
28
28
  tslib_1.__exportStar(require("./kpi-widget/public-api"), exports);
29
+ tslib_1.__exportStar(require("./risk-score-tile/public-api"), exports);
29
30
  tslib_1.__exportStar(require("./timeseries-widget/public-api"), exports);
30
31
  tslib_1.__exportStar(require("./table-widget/public-api"), exports);
31
32
  tslib_1.__exportStar(require("./providers/public-api"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../src/lib/components/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,iEAAuC;AACvC,8DAAoC;AACpC,+DAAqC;AACrC,8FAAoE;AACpE,2EAAiD;AACjD,kEAAwC;AACxC,yEAA+C;AAC/C,oEAA0C;AAC1C,iEAAuC;AACvC,kDAAwB;AACxB,4EAAkD;AAClD,+DAAqC;AACrC,wFAA8D;AAC9D,mEAAyC;AACzC,kFAAwD;AACxD,gEAAsC"}
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../src/lib/components/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,iEAAuC;AACvC,8DAAoC;AACpC,+DAAqC;AACrC,8FAAoE;AACpE,2EAAiD;AACjD,kEAAwC;AACxC,uEAA6C;AAC7C,yEAA+C;AAC/C,oEAA0C;AAC1C,iEAAuC;AACvC,kDAAwB;AACxB,4EAAkD;AAClD,+DAAqC;AACrC,wFAA8D;AAC9D,mEAAyC;AACzC,kFAAwD;AACxD,gEAAsC"}
@@ -0,0 +1,2 @@
1
+ export * from "./risk-score-tile.component";
2
+ export * from "./types";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to
6
+ // deal in the Software without restriction, including without limitation the
7
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
+ // sell copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const tslib_1 = require("tslib");
23
+ tslib_1.__exportStar(require("./risk-score-tile.component"), exports);
24
+ tslib_1.__exportStar(require("./types"), exports);
25
+ //# sourceMappingURL=public-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/risk-score-tile/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,sEAA4C;AAC5C,kDAAwB"}
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
2
+ import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
+ import { IHasChangeDetector } from "../../types";
4
+ import { IBroker } from "../providers/types";
5
+ import { IRiskScoreConfiguration, IRiskScoreData, IRiskScoreFormatterProperties } from "./types";
6
+ export declare class RiskScoreTileComponent implements IHasChangeDetector, OnChanges {
7
+ changeDetector: ChangeDetectorRef;
8
+ dataSource: IDataSource;
9
+ eventBus: EventBus<IEvent>;
10
+ static lateLoadKey: string;
11
+ widgetData: IRiskScoreData;
12
+ syncValuesBroker: IBroker[];
13
+ configuration: IRiskScoreConfiguration;
14
+ busy: boolean;
15
+ elementClass: string;
16
+ formattersProperties: IRiskScoreFormatterProperties;
17
+ defaultColor: string;
18
+ get interactive(): boolean;
19
+ constructor(changeDetector: ChangeDetectorRef, dataSource: IDataSource, eventBus: EventBus<IEvent>);
20
+ onInteraction(): void;
21
+ getScaleBroker(id: string): IBroker | undefined;
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ /**
24
+ * Iterates over formatters and maps their properties from the data
25
+ *
26
+ * @param formattersConfiguration
27
+ */
28
+ private getFormatterProperties;
29
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ // © 2023 SolarWinds Worldwide, LLC. All rights reserved.
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to
6
+ // deal in the Software without restriction, including without limitation the
7
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
+ // sell copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.RiskScoreTileComponent = void 0;
23
+ const tslib_1 = require("tslib");
24
+ const core_1 = require("@angular/core");
25
+ const isNil_1 = tslib_1.__importDefault(require("lodash/isNil"));
26
+ const bits_1 = require("@nova-ui/bits");
27
+ const map_data_to_formatter_properties_1 = require("../../functions/map-data-to-formatter-properties");
28
+ const types_1 = require("../../services/types");
29
+ const types_2 = require("../../types");
30
+ let RiskScoreTileComponent = class RiskScoreTileComponent {
31
+ constructor(changeDetector, dataSource, eventBus) {
32
+ this.changeDetector = changeDetector;
33
+ this.dataSource = dataSource;
34
+ this.eventBus = eventBus;
35
+ this.busy = false;
36
+ this.elementClass = "";
37
+ this.defaultColor = "var(--nui-color-bg-secondary)";
38
+ }
39
+ get interactive() {
40
+ var _a, _b, _c, _d, _e;
41
+ return (((((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.interactive) ||
42
+ ((_d = (_c = (_b = this.dataSource) === null || _b === void 0 ? void 0 : _b.features) === null || _c === void 0 ? void 0 : _c.getFeatureConfig(types_2.WellKnownDataSourceFeatures.Interactivity)) === null || _d === void 0 ? void 0 : _d.enabled)) &&
43
+ !isNil_1.default((_e = this.widgetData) === null || _e === void 0 ? void 0 : _e.value)) ||
44
+ false);
45
+ }
46
+ onInteraction() {
47
+ if (!this.interactive) {
48
+ return;
49
+ }
50
+ this.eventBus
51
+ .getStream(types_1.INTERACTION)
52
+ .next({ payload: { data: this.widgetData } });
53
+ }
54
+ getScaleBroker(id) {
55
+ if (this.syncValuesBroker) {
56
+ return this.syncValuesBroker.find((b) => b.id === id);
57
+ }
58
+ }
59
+ ngOnChanges(changes) {
60
+ var _a;
61
+ if (changes.configuration) {
62
+ const formattersConfiguration = changes.configuration.currentValue.formatters;
63
+ if (formattersConfiguration) {
64
+ this.formattersProperties = this.getFormatterProperties(formattersConfiguration);
65
+ }
66
+ }
67
+ if (changes.widgetData) {
68
+ if ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.formatters) {
69
+ this.formattersProperties = this.getFormatterProperties(this.configuration.formatters);
70
+ }
71
+ }
72
+ }
73
+ /**
74
+ * Iterates over formatters and maps their properties from the data
75
+ *
76
+ * @param formattersConfiguration
77
+ */
78
+ getFormatterProperties(formattersConfiguration) {
79
+ const formatterKeys = Object.keys(formattersConfiguration);
80
+ const formattersProperties = formatterKeys.reduce((acc, key) => {
81
+ var _a;
82
+ const formatterCfg = (_a = formattersConfiguration[key]) === null || _a === void 0 ? void 0 : _a.formatter;
83
+ if (formatterCfg) {
84
+ acc[key] = {
85
+ data: map_data_to_formatter_properties_1.mapDataToFormatterProperties(formatterCfg, this.widgetData),
86
+ };
87
+ }
88
+ return acc;
89
+ }, {});
90
+ return formattersProperties;
91
+ }
92
+ };
93
+ RiskScoreTileComponent.lateLoadKey = "RiskScoreTileComponent";
94
+ tslib_1.__decorate([
95
+ core_1.Input(),
96
+ tslib_1.__metadata("design:type", Object)
97
+ ], RiskScoreTileComponent.prototype, "widgetData", void 0);
98
+ tslib_1.__decorate([
99
+ core_1.Input(),
100
+ tslib_1.__metadata("design:type", Array)
101
+ ], RiskScoreTileComponent.prototype, "syncValuesBroker", void 0);
102
+ tslib_1.__decorate([
103
+ core_1.Input(),
104
+ tslib_1.__metadata("design:type", Object)
105
+ ], RiskScoreTileComponent.prototype, "configuration", void 0);
106
+ tslib_1.__decorate([
107
+ core_1.Input(),
108
+ tslib_1.__metadata("design:type", Object)
109
+ ], RiskScoreTileComponent.prototype, "busy", void 0);
110
+ tslib_1.__decorate([
111
+ core_1.HostBinding("class"),
112
+ tslib_1.__metadata("design:type", Object)
113
+ ], RiskScoreTileComponent.prototype, "elementClass", void 0);
114
+ RiskScoreTileComponent = tslib_1.__decorate([
115
+ core_1.Component({
116
+ selector: "nui-risk-score-tile",
117
+ templateUrl: "./risk-score-tile.component.html",
118
+ styleUrls: ["./risk-score-tile.component.less"],
119
+ encapsulation: core_1.ViewEncapsulation.Emulated,
120
+ changeDetection: core_1.ChangeDetectionStrategy.OnPush,
121
+ }),
122
+ tslib_1.__param(1, core_1.Optional()),
123
+ tslib_1.__param(1, core_1.Inject(types_2.DATA_SOURCE)),
124
+ tslib_1.__param(2, core_1.Inject(types_2.PIZZAGNA_EVENT_BUS)),
125
+ tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef, Object, bits_1.EventBus])
126
+ ], RiskScoreTileComponent);
127
+ exports.RiskScoreTileComponent = RiskScoreTileComponent;
128
+ //# sourceMappingURL=risk-score-tile.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"risk-score-tile.component.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/risk-score-tile/risk-score-tile.component.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCAWuB;AACvB,iEAAkC;AAElC,wCAA8D;AAE9D,uGAAgG;AAChG,gDAAmD;AACnD,uCAKqB;AAgBrB,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAgC/B,YACW,cAAiC,EACA,UAAuB,EAC5B,QAA0B;QAFtD,mBAAc,GAAd,cAAc,CAAmB;QACA,eAAU,GAAV,UAAU,CAAa;QAC5B,aAAQ,GAAR,QAAQ,CAAkB;QAtB1D,SAAI,GAAG,KAAK,CAAC;QAGb,iBAAY,GAAG,EAAE,CAAC;QAGlB,iBAAY,GAAW,+BAA+B,CAAC;IAiB3D,CAAC;IAfJ,IAAW,WAAW;;QAClB,OAAO,CACH,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW;aAC7B,MAAA,MAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,QAAQ,0CAAE,gBAAgB,CACvC,mCAA2B,CAAC,aAAa,CAC5C,0CAAE,OAAO,CAAA,CAAC;YACX,CAAC,eAAM,CAAC,MAAA,IAAI,CAAC,UAAU,0CAAE,KAAK,CAAC,CAAC;YACpC,KAAK,CACR,CAAC;IACN,CAAC;IAQM,aAAa;QAChB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,OAAO;SACV;QACD,IAAI,CAAC,QAAQ;aACR,S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ACL;YACD,OAAO,GAAG,CAAC;QACf,CAAC,EACD,EAAE,CACL,CAAC;QAEF,OAAO,oBAAoB,CAAC;IAChC,CAAC;CACJ,CAAA;AArGiB,kCAAW,GAAG,wBAAwB,CAAC;AAGrD;IADC,YAAK,EAAE;;0DAC0B;AAGlC;IADC,YAAK,EAAE;;gEAC2B;AAGnC;IADC,YAAK,EAAE;;6DACsC;AAG9C;IADC,YAAK,EAAE;;oDACY;AAGpB;IADC,kBAAW,CAAC,OAAO,CAAC;;4DACI;AAhBhB,sBAAsB;IAPlC,gBAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,WAAW,EAAE,kCAAkC;QAC/C,SAAS,EAAE,CAAC,kCAAkC,CAAC;QAC/C,aAAa,EAAE,wBAAiB,CAAC,QAAQ;QACzC,eAAe,EAAE,8BAAuB,CAAC,MAAM;KAClD,CAAC;IAmCO,mBAAA,eAAQ,EAAE,CAAA;IAAE,mBAAA,aAAM,CAAC,mBAAW,CAAC,CAAA;IAC/B,mBAAA,aAAM,CAAC,0BAAkB,CAAC,CAAA;6CAFJ,wBAAiB,UAEK,eAAQ;GAnChD,sBAAsB,CAsGlC;AAtGY,wDAAsB"}
@@ -0,0 +1,28 @@
1
+ import { IFormatter } from "../types";
2
+ export declare enum RiskScoreFormatterTypes {
3
+ Value = "Value"
4
+ }
5
+ export interface IRiskScoreData {
6
+ id?: string;
7
+ value?: number;
8
+ minValue?: number;
9
+ maxValue?: number;
10
+ label?: string;
11
+ description?: string;
12
+ backgroundColor?: string;
13
+ textColor?: string;
14
+ fontSize?: string;
15
+ numberFormat?: string;
16
+ link?: string;
17
+ [key: string]: any;
18
+ }
19
+ export interface IRiskScoreConfiguration {
20
+ interactive?: boolean;
21
+ formatters?: IRiskScoreFormattersConfiguration;
22
+ }
23
+ export interface IRiskScoreFormattersConfiguration extends Partial<Record<RiskScoreFormatterTypes | string, {
24
+ formatter: IFormatter;
25
+ }>> {
26
+ }
27
+ export interface IRiskScoreFormatterProperties extends Partial<Record<RiskScoreFormatterTypes | string, any>> {
28
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // © 2023 SolarWinds Worldwide, LLC. All rights reserved.
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to
6
+ // deal in the Software without restriction, including without limitation the
7
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
+ // sell copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.RiskScoreFormatterTypes = void 0;
23
+ var RiskScoreFormatterTypes;
24
+ (function (RiskScoreFormatterTypes) {
25
+ // ROOT ?
26
+ RiskScoreFormatterTypes["Value"] = "Value";
27
+ })(RiskScoreFormatterTypes = exports.RiskScoreFormatterTypes || (exports.RiskScoreFormatterTypes = {}));
28
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/risk-score-tile/types.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAIjB,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,SAAS;IACT,0CAAe,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
@@ -5,5 +5,5 @@ export declare function metricsSeriesMeasurementsMinMax(series: ITimeseriesWidge
5
5
  max: number;
6
6
  };
7
7
  export declare function hasTimeseriesWidgetSummaryLegend(type: TimeseriesChartTypes): boolean;
8
- export declare const SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-brand-six)";
8
+ export declare const SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-chart-sum)";
9
9
  export declare const SUMMARY_LEGEND_COLOR = "var(--nui-color-text-light)";
@@ -44,6 +44,6 @@ function hasTimeseriesWidgetSummaryLegend(type) {
44
44
  type === types_1.TimeseriesChartTypes.multi);
45
45
  }
46
46
  exports.hasTimeseriesWidgetSummaryLegend = hasTimeseriesWidgetSummaryLegend;
47
- exports.SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-brand-six)";
47
+ exports.SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-chart-sum)";
48
48
  exports.SUMMARY_LEGEND_COLOR = "var(--nui-color-text-light)";
49
49
  //# sourceMappingURL=timeseries-helpers.js.map
@@ -23,4 +23,5 @@ export declare class TimeseriesScalesService {
23
23
  updateConfiguration(scale: IScale<any>, scaleConfig: ITimeseriesScaleConfig, widgetConfig?: ITimeseriesWidgetConfig): void;
24
24
  private getStackedBarScaleDomain;
25
25
  private getLineScaleDomain;
26
+ private getStackedAreaScaleDomain;
26
27
  }
@@ -116,10 +116,17 @@ let TimeseriesScalesService = class TimeseriesScalesService {
116
116
  if (((_f = scaleConfig.properties) === null || _f === void 0 ? void 0 : _f.axisUnits) !== "percent" &&
117
117
  ((_g = scaleConfig.properties) === null || _g === void 0 ? void 0 : _g.domain) &&
118
118
  scale.setFixDomainValues) {
119
- const domainAdjusted = (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) ===
120
- types_1.TimeseriesChartPreset.StackedBar
121
- ? this.getStackedBarScaleDomain(scaleConfig.properties.domain)
122
- : this.getLineScaleDomain(scaleConfig.properties.domain);
119
+ let domainAdjusted;
120
+ switch (widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.preset) {
121
+ case types_1.TimeseriesChartPreset.StackedBar:
122
+ domainAdjusted = this.getStackedBarScaleDomain(scaleConfig.properties.domain);
123
+ break;
124
+ case types_1.TimeseriesChartPreset.StackedArea:
125
+ domainAdjusted = this.getStackedAreaScaleDomain(scaleConfig.properties.domain.max);
126
+ break;
127
+ default:
128
+ domainAdjusted = this.getLineScaleDomain(scaleConfig.properties.domain);
129
+ }
123
130
  scale.setFixDomainValues(domainAdjusted);
124
131
  }
125
132
  break;
@@ -169,6 +176,10 @@ let TimeseriesScalesService = class TimeseriesScalesService {
169
176
  max,
170
177
  ]);
171
178
  }
179
+ getStackedAreaScaleDomain(max) {
180
+ const point = max / 4;
181
+ return [0, point, point * 2, max - point, max];
182
+ }
172
183
  };
173
184
  TimeseriesScalesService = tslib_1.__decorate([
174
185
  core_1.Injectable(),
@@ -1 +1 @@
1
- {"version":3,"file":"timeseries-scales.service.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/timeseries-scales.service.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4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AAG,GAAG,KAAK;YACX,GAAG,GAAG,CAAC,GAAG,KAAK;YACf,GAAG,GAAG,KAAK;YACX,GAAG;SACN,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA/LY,uBAAuB;IADnC,iBAAU,EAAE;6CAIkC,4BAAqB;GAHvD,uBAAuB,CA+LnC;AA/LY,0DAAuB"}
1
+ {"version":3,"file":"timeseries-scales.service.js","sourceRoot":"","sources":["../../../../../../../src/lib/components/timeseries-widget/timeseries-scales.service.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,wCAA2C;AAC3C,0CAAyC;AAEzC,wCAA4E;AAC5E,4CAKyB;AAEzB,8DAA4E;AAC5E,2EAA4E;AAC5E,mCAKiB;AAEjB,iGAA4F;AAE5F;;GAEG;AAEH,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAGhC,YAAoB,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5D,IAAI,CAAC,kBAAkB,GAAG,IAAI,wCAA2B,CACrD,IAAI,CAAC,qBAAqB,CAC7B,CAAC;IACN,CAAC;IAED;;;;OAIG;IACI,QAAQ,CACX,WAAmC,EACnC,KAAiB,EACjB,YAAsC;QAEtC,IAAI,KAAkB,CAAC;QACvB,QAAQ,WAAW,CAAC,IAAI,EAAE;YACtB,KAAK,2BAAmB,CAAC,IAAI,CAAC,CAAC;gBAC3B,KAAK,GAAG,IAAI,kBAAS,EAAE,CAAC;gBACxB,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC;gBAC/B,KAAK,CAAC,UAA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AAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAE9D,6EAA6E;QAC7E,IAAI,WAAW,GAAG,GAAG,EAAE;YACnB,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;YAChC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;SACnC;QAED,oBAAoB;QACpB,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE;YACxB,GAAG,GAAG,CAAC,CAAC,CAAC;YACT,GAAG,GAAG,CAAC,CAAC;SACX;QAED,uEAAuE;QACvE,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,EAAE;YAC5B,GAAG,IAAI,IAAI,CAAC;SACf;QAED,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,OAAO,2CAAsB,CAAC;YAC1B,GAAG;YACH,GAAG,GAAG,KAAK;YACX,GAAG,GAAG,CAAC,GAAG,KAAK;YACf,GAAG,GAAG,KAAK;YACX,GAAG;SACN,CAAC,CAAC;IACP,CAAC;IAEO,yBAAyB,CAAC,GAAW;QACzC,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;QACtB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC;IACnD,CAAC;CACJ,CAAA;AA5MY,uBAAuB;IADnC,iBAAU,EAAE;6CAIkC,4BAAqB;GAHvD,uBAAuB,CA4MnC;AA5MY,0DAAuB"}
@@ -1,6 +1,7 @@
1
1
  export * from "./data-source-configuration/data-source-configuration.component";
2
2
  export * from "./data-source-configuration-v2/data-source-configuration-v2.component";
3
3
  export * from "./kpi-description-configuration/kpi-description-configuration.component";
4
+ export * from "./risk-score-tile-description-configuration/risk-score-tile-description-configuration.component";
4
5
  export * from "./thresholds-configuration/thresholds-configuration.component";
5
6
  export * from "./title-and-description-configuration/title-and-description-configuration.component";
6
7
  export * from "./refresher-configuration/public-api";
@@ -23,6 +23,7 @@ const tslib_1 = require("tslib");
23
23
  tslib_1.__exportStar(require("./data-source-configuration/data-source-configuration.component"), exports);
24
24
  tslib_1.__exportStar(require("./data-source-configuration-v2/data-source-configuration-v2.component"), exports);
25
25
  tslib_1.__exportStar(require("./kpi-description-configuration/kpi-description-configuration.component"), exports);
26
+ tslib_1.__exportStar(require("./risk-score-tile-description-configuration/risk-score-tile-description-configuration.component"), exports);
26
27
  tslib_1.__exportStar(require("./thresholds-configuration/thresholds-configuration.component"), exports);
27
28
  tslib_1.__exportStar(require("./title-and-description-configuration/title-and-description-configuration.component"), exports);
28
29
  tslib_1.__exportStar(require("./refresher-configuration/public-api"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../../../../src/lib/configurator/components/widgets/configurator-items/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,0GAAgF;AAChF,gHAAsF;AACtF,kHAAwF;AACxF,wGAA8E;AAC9E,8HAAoG;AACpG,+EAAqD;AACrD,oHAA0F;AAC1F,4GAAkF;AAClF,gIAAsG;AACtG,yEAA+C"}
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../../../../src/lib/configurator/components/widgets/configurator-items/public-api.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,0GAAgF;AAChF,gHAAsF;AACtF,kHAAwF;AACxF,0IAAgH;AAChH,wGAA8E;AAC9E,8HAAoG;AACpG,+EAAqD;AACrD,oHAA0F;AAC1F,4GAAkF;AAClF,gIAAsG;AACtG,yEAA+C"}
@@ -0,0 +1,23 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { FormBuilder, FormGroup } from "@angular/forms";
3
+ import { Observable } from "rxjs";
4
+ import { IHasChangeDetector, IHasForm } from "../../../../../types";
5
+ export declare class RiskScoreTileDescriptionConfigurationComponent implements OnInit, OnChanges, IHasChangeDetector, IHasForm {
6
+ changeDetector: ChangeDetectorRef;
7
+ private formBuilder;
8
+ static lateLoadKey: string;
9
+ readonly MAX_DESCRIPTION_LENGTH = 150;
10
+ componentId: string;
11
+ label: string;
12
+ minValue: number;
13
+ maxValue: number;
14
+ description: string;
15
+ useStaticLabel: boolean;
16
+ staticLabel: string;
17
+ formReady: EventEmitter<FormGroup>;
18
+ form: FormGroup;
19
+ subtitle$: Observable<string>;
20
+ constructor(changeDetector: ChangeDetectorRef, formBuilder: FormBuilder);
21
+ ngOnInit(): void;
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ }