@nova-ui/dashboards 15.0.2-4855 → 15.0.2-5109
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.
- package/esm2020/lib/components/public-api.mjs +2 -1
- package/esm2020/lib/components/risk-score-tile/public-api.mjs +22 -0
- package/esm2020/lib/components/risk-score-tile/risk-score-tile.component.mjs +115 -0
- package/esm2020/lib/components/risk-score-tile/types.mjs +25 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +6 -6
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +6 -6
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +6 -6
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +6 -6
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs +20 -2
- package/esm2020/lib/components/timeseries-widget/timeseries-helpers.mjs +3 -3
- package/esm2020/lib/components/timeseries-widget/timeseries-scales.service.mjs +17 -9
- package/esm2020/lib/configurator/components/widgets/configurator-items/public-api.mjs +2 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.mjs +106 -0
- package/esm2020/lib/configurator/components/widgets/public-api.mjs +2 -1
- package/esm2020/lib/configurator/components/widgets/risk-score/public-api.mjs +22 -0
- package/esm2020/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.mjs +21 -0
- package/esm2020/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.mjs +92 -0
- package/esm2020/lib/configurator/components/widgets/risk-score/types.mjs +21 -0
- package/esm2020/lib/configurator/configurator.module.mjs +9 -1
- package/esm2020/lib/constants/default-palette.mjs +3 -1
- package/esm2020/lib/dashboards.module.mjs +19 -7
- package/esm2020/lib/services/provider-registry.service.mjs +8 -3
- package/esm2020/lib/services/table-formatter-registry.service.mjs +12 -1
- package/esm2020/lib/services/types.mjs +2 -1
- package/esm2020/lib/widget-types/risk-score/risk-score-configurator.mjs +201 -0
- package/esm2020/lib/widget-types/risk-score/risk-score-widget.mjs +101 -0
- package/esm2020/lib/widget-types/risk-score/risk-score.mjs +56 -0
- package/fesm2015/nova-ui-dashboards.mjs +707 -114
- package/fesm2015/nova-ui-dashboards.mjs.map +1 -1
- package/fesm2020/nova-ui-dashboards.mjs +717 -115
- package/fesm2020/nova-ui-dashboards.mjs.map +1 -1
- package/lib/components/public-api.d.ts +1 -0
- package/lib/components/risk-score-tile/public-api.d.ts +2 -0
- package/lib/components/risk-score-tile/risk-score-tile.component.d.ts +32 -0
- package/lib/components/risk-score-tile/types.d.ts +28 -0
- package/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +2 -0
- package/lib/components/timeseries-widget/timeseries-helpers.d.ts +2 -2
- package/lib/components/timeseries-widget/timeseries-scales.service.d.ts +1 -0
- package/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.d.ts +26 -0
- package/lib/configurator/components/widgets/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
- package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +32 -0
- package/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
- package/lib/configurator/configurator.module.d.ts +67 -65
- package/lib/dashboards.module.d.ts +38 -37
- package/lib/services/table-formatter-registry.service.d.ts +5 -0
- package/lib/services/types.d.ts +1 -0
- package/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
- package/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
- package/lib/widget-types/risk-score/risk-score.d.ts +5 -0
- package/package.json +1 -1
- package/sdk/atoms/src/lib/components/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/components/public-api.js +1 -0
- package/sdk/atoms/src/lib/components/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.d.ts +2 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js +25 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.d.ts +29 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js +128 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js.map +1 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.d.ts +28 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.js +28 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/types.js.map +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +2 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +19 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +2 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.d.ts +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +20 -12
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/public-api.js.map +1 -1
- 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
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +125 -0
- 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
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.d.ts +2 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js +25 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +24 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.d.ts +29 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +102 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.d.ts +7 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js +22 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/types.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js +4 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/constants/default-palette.js +2 -0
- package/sdk/atoms/src/lib/constants/default-palette.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.d.ts +2 -2
- package/sdk/atoms/src/lib/dashboards.module.js +12 -3
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js +5 -0
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.d.ts +3 -0
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js +11 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.d.ts +1 -0
- package/sdk/atoms/src/lib/services/types.js +3 -2
- package/sdk/atoms/src/lib/services/types.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.d.ts +97 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js +204 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-configurator.js.map +1 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.d.ts +55 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js +89 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.js.map +1 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.d.ts +5 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js +59 -0
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score.js.map +1 -0
- package/sdk/locale/messages.en.xlf +115 -8
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.riskScoreWidget = void 0;
|
|
4
|
+
// © 2023 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8
|
+
// deal in the Software without restriction, including without limitation the
|
|
9
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
// furnished to do so, subject to the following conditions:
|
|
12
|
+
//
|
|
13
|
+
// The above copyright notice and this permission notice shall be included in
|
|
14
|
+
// all copies or substantial portions of the Software.
|
|
15
|
+
//
|
|
16
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
// THE SOFTWARE.
|
|
23
|
+
const stack_component_1 = require("../../components/layouts/stack/stack.component");
|
|
24
|
+
const tiles_component_1 = require("../../components/layouts/tiles/tiles.component");
|
|
25
|
+
const risk_score_tile_component_1 = require("../../components/risk-score-tile/risk-score-tile.component");
|
|
26
|
+
const types_1 = require("../../services/types");
|
|
27
|
+
const types_2 = require("../../types");
|
|
28
|
+
const components_1 = require("../common/widget/components");
|
|
29
|
+
const providers_1 = require("../common/widget/providers");
|
|
30
|
+
exports.riskScoreWidget = {
|
|
31
|
+
[types_2.PizzagnaLayer.Structure]: Object.assign(Object.assign({ [types_1.DEFAULT_PIZZAGNA_ROOT]: {
|
|
32
|
+
id: types_1.DEFAULT_PIZZAGNA_ROOT,
|
|
33
|
+
// base layout of the widget - all components referenced herein will be stacked in a column
|
|
34
|
+
componentType: stack_component_1.StackComponent.lateLoadKey,
|
|
35
|
+
providers: {
|
|
36
|
+
// When enabled, this provider emits the REFRESH event on the pizzagna event bus every X seconds
|
|
37
|
+
[types_2.WellKnownProviders.Refresher]: (0, providers_1.refresher)(),
|
|
38
|
+
// event proxy manages the transmission of events between widget and dashboard
|
|
39
|
+
[types_2.WellKnownProviders.EventProxy]: providers_1.EVENT_PROXY,
|
|
40
|
+
},
|
|
41
|
+
properties: {
|
|
42
|
+
nodes: ["header", "loading", "body"],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
// widget header
|
|
46
|
+
header: components_1.WIDGET_HEADER,
|
|
47
|
+
// this is the loading bar below the header
|
|
48
|
+
loading: components_1.WIDGET_LOADING,
|
|
49
|
+
// widget body
|
|
50
|
+
body: Object.assign(Object.assign({}, components_1.WIDGET_BODY), { properties: Object.assign(Object.assign({}, components_1.WIDGET_BODY.properties), { elementClass: "overflow-hidden" }) }) }, (0, components_1.widgetBodyContentNodes)("tiles", types_1.NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER)), {
|
|
51
|
+
// the main content node specifying a component that manages layout of the KPI tiles in a CSS grid
|
|
52
|
+
tiles: {
|
|
53
|
+
id: "tiles",
|
|
54
|
+
componentType: tiles_component_1.TilesComponent.lateLoadKey,
|
|
55
|
+
properties: {
|
|
56
|
+
elementClass: "flex-grow-1 pt-2 px-3 pb-3 w-100",
|
|
57
|
+
template: {
|
|
58
|
+
componentType: risk_score_tile_component_1.RiskScoreTileComponent.lateLoadKey,
|
|
59
|
+
providers: {
|
|
60
|
+
[types_2.WellKnownProviders.Adapter]: {
|
|
61
|
+
providerId: types_1.NOVA_KPI_DATASOURCE_ADAPTER,
|
|
62
|
+
properties: {
|
|
63
|
+
propertyPath: "widgetData",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
properties: {
|
|
68
|
+
elementClass: "flex-grow-1",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
} }),
|
|
73
|
+
[types_2.PizzagnaLayer.Configuration]: {
|
|
74
|
+
[types_1.DEFAULT_PIZZAGNA_ROOT]: {
|
|
75
|
+
id: types_1.DEFAULT_PIZZAGNA_ROOT,
|
|
76
|
+
providers: {
|
|
77
|
+
// default refresher configuration
|
|
78
|
+
[types_2.WellKnownProviders.Refresher]: (0, providers_1.refresher)(false, 60),
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
// default header configuration
|
|
82
|
+
header: {
|
|
83
|
+
properties: {
|
|
84
|
+
title: $localize `Empty Risk Score Widget`,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=risk-score-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-score-widget.js","sourceRoot":"","sources":["../../../../../../../src/lib/widget-types/risk-score/risk-score-widget.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;AACjB,oFAAgF;AAChF,oFAAgF;AAChF,0GAAoG;AACpG,gDAI8B;AAC9B,uCAIqB;AACrB,4DAKqC;AACrC,0DAAoE;AAEvD,QAAA,eAAe,GAAG;IAC3B,CAAC,qBAAa,CAAC,SAAS,CAAC,gCACrB,CAAC,6BAAqB,CAAC,EAAE;YACrB,EAAE,EAAE,6BAAqB;YACzB,2FAA2F;YAC3F,aAAa,EAAE,gCAAc,CAAC,WAAW;YACzC,SAAS,EAAE;gBACP,gGAAgG;gBAChG,CAAC,0BAAkB,CAAC,SAAS,CAAC,EAAE,IAAA,qBAAS,GAAE;gBAC3C,8EAA8E;gBAC9E,CAAC,0BAAkB,CAAC,UAAU,CAAC,EAAE,uBAAW;aAC/C;YACD,UAAU,EAAE;gBACR,KAAK,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;aACvC;SACJ;QACD,gBAAgB;QAChB,MAAM,EAAE,0BAAa;QACrB,2CAA2C;QAC3C,OAAO,EAAE,2BAAc;QACvB,cAAc;QACd,IAAI,kCACG,wBAAW,KACd,UAAU,kCACH,wBAAW,CAAC,UAAU,KACzB,YAAY,EAAE,iBAAiB,UAUpC,IAAA,mCAAsB,EACrB,OAAO,EACP,gDAAwC,CAC3C;QAED,kGAAkG;QAClG,KAAK,EAAE;YACH,EAAE,EAAE,OAAO;YACX,aAAa,EAAE,gCAAc,CAAC,WAAW;YACzC,UAAU,EAAE;gBACR,YAAY,EAAE,kCAAkC;gBAChD,QAAQ,EAAE;oBACN,aAAa,EAAE,kDAAsB,CAAC,WAAW;oBACjD,SAAS,EAAE;wBACP,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE;4BAC1B,UAAU,EAAE,mCAA2B;4BACvC,UAAU,EAAE;gCACR,YAAY,EAAE,YAAY;6BAC7B;yBACsB;qBAC9B;oBACD,UAAU,EAAE;wBACR,YAAY,EAAE,aAAa;qBAC9B;iBACJ;aACJ;SACJ,GACJ;IACD,CAAC,qBAAa,CAAC,aAAa,CAAC,EAAE;QAC3B,CAAC,6BAAqB,CAAC,EAAE;YACrB,EAAE,EAAE,6BAAqB;YACzB,SAAS,EAAE;gBACP,kCAAkC;gBAClC,CAAC,0BAAkB,CAAC,SAAS,CAAC,EAAE,IAAA,qBAAS,EAAC,KAAK,EAAE,EAAE,CAAC;aACvD;SACJ;QACD,+BAA+B;QAC/B,MAAM,EAAE;YACJ,UAAU,EAAE;gBACR,KAAK,EAAE,SAAS,CAAA,yBAAyB;aAC5C;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -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;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.riskScore = void 0;
|
|
23
|
+
const types_1 = require("../../services/types");
|
|
24
|
+
const types_2 = require("../../types");
|
|
25
|
+
const risk_score_configurator_1 = require("./risk-score-configurator");
|
|
26
|
+
const risk_score_widget_1 = require("./risk-score-widget");
|
|
27
|
+
const tileDescriptionConfiguratorTemplatePath = `tiles.properties.template[0]`;
|
|
28
|
+
const dataSourceConfiguratorTemplatePath = `tiles.properties.template[1]`;
|
|
29
|
+
/***********************************************************************************************************
|
|
30
|
+
* KPI widget definition starts here
|
|
31
|
+
***********************************************************************************************************/
|
|
32
|
+
exports.riskScore = {
|
|
33
|
+
/***************************************************************************************************
|
|
34
|
+
* Paths to important settings in this type definition
|
|
35
|
+
***************************************************************************************************/
|
|
36
|
+
paths: {
|
|
37
|
+
widget: {
|
|
38
|
+
[types_2.WellKnownPathKey.Root]: types_1.DEFAULT_PIZZAGNA_ROOT,
|
|
39
|
+
},
|
|
40
|
+
configurator: {
|
|
41
|
+
[types_2.WellKnownPathKey.Root]: types_1.DEFAULT_PIZZAGNA_ROOT,
|
|
42
|
+
// this points at the component type you need to change if you want to change the component for data source configuration
|
|
43
|
+
[types_2.WellKnownPathKey.DataSourceConfigComponentType]: `${dataSourceConfiguratorTemplatePath}.componentType`,
|
|
44
|
+
// this points at the component type you need to change if you want to change the component for tile description configuration
|
|
45
|
+
[types_2.WellKnownPathKey.TileDescriptionConfigComponentType]: `${tileDescriptionConfiguratorTemplatePath}.componentType`,
|
|
46
|
+
// for the default data source configuration component, this changes the list of data sources to pick from
|
|
47
|
+
[types_2.WellKnownPathKey.DataSourceProviders]: `${dataSourceConfiguratorTemplatePath}.properties.dataSourceProviders`,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
/***************************************************************************************************
|
|
51
|
+
* Widget section describes the structural part of the KPI widget
|
|
52
|
+
***************************************************************************************************/
|
|
53
|
+
widget: risk_score_widget_1.riskScoreWidget,
|
|
54
|
+
/***************************************************************************************************
|
|
55
|
+
* Configurator section describes the form that is used to configure the widget
|
|
56
|
+
***************************************************************************************************/
|
|
57
|
+
configurator: risk_score_configurator_1.riskScoreConfigurator,
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=risk-score.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-score.js","sourceRoot":"","sources":["../../../../../../../src/lib/widget-types/risk-score/risk-score.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;;;AAGjB,gDAA6D;AAC7D,uCAA+C;AAC/C,uEAAkE;AAClE,2DAAsD;AAEtD,MAAM,uCAAuC,GAAG,8BAA8B,CAAC;AAC/E,MAAM,kCAAkC,GAAG,8BAA8B,CAAC;AAE1E;;6GAE6G;AAChG,QAAA,SAAS,GAA0B;IAC5C;;yGAEqG;IACrG,KAAK,EAAE;QACH,MAAM,EAAE;YACJ,CAAC,wBAAgB,CAAC,IAAI,CAAC,EAAE,6BAAqB;SACjD;QACD,YAAY,EAAE;YACV,CAAC,wBAAgB,CAAC,IAAI,CAAC,EAAE,6BAAqB;YAC9C,yHAAyH;YACzH,CAAC,wBAAgB,CAAC,6BAA6B,CAAC,EAAE,GAAG,kCAAkC,gBAAgB;YACvG,8HAA8H;YAC9H,CAAC,wBAAgB,CAAC,kCAAkC,CAAC,EAAE,GAAG,uCAAuC,gBAAgB;YACjH,0GAA0G;YAC1G,CAAC,wBAAgB,CAAC,mBAAmB,CAAC,EAAE,GAAG,kCAAkC,iCAAiC;SACjH;KACJ;IACD;;yGAEqG;IACrG,MAAM,EAAE,mCAAe;IACvB;;yGAEqG;IACrG,YAAY,EAAE,+CAAqB;CACtC,CAAC"}
|
|
@@ -596,38 +596,38 @@
|
|
|
596
596
|
<source>Remove</source>
|
|
597
597
|
<context-group purpose="location">
|
|
598
598
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
599
|
-
<context context-type="linenumber">
|
|
599
|
+
<context context-type="linenumber">197</context>
|
|
600
600
|
</context-group>
|
|
601
601
|
<context-group purpose="location">
|
|
602
602
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
603
|
-
<context context-type="linenumber">
|
|
603
|
+
<context context-type="linenumber">197</context>
|
|
604
604
|
</context-group>
|
|
605
605
|
<context-group purpose="location">
|
|
606
606
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
607
|
-
<context context-type="linenumber">
|
|
607
|
+
<context context-type="linenumber">197</context>
|
|
608
608
|
</context-group>
|
|
609
609
|
<context-group purpose="location">
|
|
610
610
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
611
|
-
<context context-type="linenumber">
|
|
611
|
+
<context context-type="linenumber">197</context>
|
|
612
612
|
</context-group>
|
|
613
613
|
</trans-unit>
|
|
614
614
|
<trans-unit id="0e0f4abd3e0ba041e65167d13502b5506faddadc" datatype="html">
|
|
615
615
|
<source>Display Transforms</source>
|
|
616
616
|
<context-group purpose="location">
|
|
617
617
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
618
|
-
<context context-type="linenumber">
|
|
618
|
+
<context context-type="linenumber">200</context>
|
|
619
619
|
</context-group>
|
|
620
620
|
<context-group purpose="location">
|
|
621
621
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
622
|
-
<context context-type="linenumber">
|
|
622
|
+
<context context-type="linenumber">200</context>
|
|
623
623
|
</context-group>
|
|
624
624
|
<context-group purpose="location">
|
|
625
625
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
626
|
-
<context context-type="linenumber">
|
|
626
|
+
<context context-type="linenumber">200</context>
|
|
627
627
|
</context-group>
|
|
628
628
|
<context-group purpose="location">
|
|
629
629
|
<context context-type="sourcefile">src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.html</context>
|
|
630
|
-
<context context-type="linenumber">
|
|
630
|
+
<context context-type="linenumber">200</context>
|
|
631
631
|
</context-group>
|
|
632
632
|
</trans-unit>
|
|
633
633
|
<trans-unit id="6252070156626006029" datatype="html">
|
|
@@ -1045,6 +1045,14 @@
|
|
|
1045
1045
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.html</context>
|
|
1046
1046
|
<context context-type="linenumber">11</context>
|
|
1047
1047
|
</context-group>
|
|
1048
|
+
<context-group purpose="location">
|
|
1049
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1050
|
+
<context context-type="linenumber">11</context>
|
|
1051
|
+
</context-group>
|
|
1052
|
+
<context-group purpose="location">
|
|
1053
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1054
|
+
<context context-type="linenumber">91</context>
|
|
1055
|
+
</context-group>
|
|
1048
1056
|
<context-group purpose="location">
|
|
1049
1057
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.html</context>
|
|
1050
1058
|
<context context-type="linenumber">11</context>
|
|
@@ -1064,6 +1072,10 @@
|
|
|
1064
1072
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.html</context>
|
|
1065
1073
|
<context context-type="linenumber">21,20</context>
|
|
1066
1074
|
</context-group>
|
|
1075
|
+
<context-group purpose="location">
|
|
1076
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1077
|
+
<context context-type="linenumber">21,20</context>
|
|
1078
|
+
</context-group>
|
|
1067
1079
|
<context-group purpose="location">
|
|
1068
1080
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.html</context>
|
|
1069
1081
|
<context context-type="linenumber">89</context>
|
|
@@ -1087,6 +1099,10 @@
|
|
|
1087
1099
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.html</context>
|
|
1088
1100
|
<context context-type="linenumber">27</context>
|
|
1089
1101
|
</context-group>
|
|
1102
|
+
<context-group purpose="location">
|
|
1103
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1104
|
+
<context context-type="linenumber">27</context>
|
|
1105
|
+
</context-group>
|
|
1090
1106
|
<context-group purpose="location">
|
|
1091
1107
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.html</context>
|
|
1092
1108
|
<context context-type="linenumber">37</context>
|
|
@@ -1273,6 +1289,67 @@
|
|
|
1273
1289
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.ts</context>
|
|
1274
1290
|
<context context-type="linenumber">150</context>
|
|
1275
1291
|
</context-group>
|
|
1292
|
+
<context-group purpose="location">
|
|
1293
|
+
<context context-type="sourcefile">src/lib/constants/default-palette.ts</context>
|
|
1294
|
+
<context context-type="linenumber">74</context>
|
|
1295
|
+
</context-group>
|
|
1296
|
+
</trans-unit>
|
|
1297
|
+
<trans-unit id="cee9a1f7aa61303650890f5c5daabc71daf3107c" datatype="html">
|
|
1298
|
+
<source>Min Value</source>
|
|
1299
|
+
<context-group purpose="location">
|
|
1300
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1301
|
+
<context context-type="linenumber">35</context>
|
|
1302
|
+
</context-group>
|
|
1303
|
+
<context-group purpose="location">
|
|
1304
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1305
|
+
<context context-type="linenumber">42</context>
|
|
1306
|
+
</context-group>
|
|
1307
|
+
</trans-unit>
|
|
1308
|
+
<trans-unit id="c500899f62c2504443a67509337443e3dd0005c7" datatype="html">
|
|
1309
|
+
<source>Max Value</source>
|
|
1310
|
+
<context-group purpose="location">
|
|
1311
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1312
|
+
<context context-type="linenumber">50</context>
|
|
1313
|
+
</context-group>
|
|
1314
|
+
<context-group purpose="location">
|
|
1315
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1316
|
+
<context context-type="linenumber">57</context>
|
|
1317
|
+
</context-group>
|
|
1318
|
+
</trans-unit>
|
|
1319
|
+
<trans-unit id="81a16af84152d50c71c652f155efe59f76fc188b" datatype="html">
|
|
1320
|
+
<source>Use Float Label</source>
|
|
1321
|
+
<context-group purpose="location">
|
|
1322
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1323
|
+
<context context-type="linenumber">69</context>
|
|
1324
|
+
</context-group>
|
|
1325
|
+
</trans-unit>
|
|
1326
|
+
<trans-unit id="a23855f42e50ae75752c9b086ddabd27e708f41b" datatype="html">
|
|
1327
|
+
<source>Float Label</source>
|
|
1328
|
+
<context-group purpose="location">
|
|
1329
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1330
|
+
<context context-type="linenumber">76</context>
|
|
1331
|
+
</context-group>
|
|
1332
|
+
</trans-unit>
|
|
1333
|
+
<trans-unit id="d45dab34c95e21ef6f1a0f41470714470e67f187" datatype="html">
|
|
1334
|
+
<source>Set float label</source>
|
|
1335
|
+
<context-group purpose="location">
|
|
1336
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1337
|
+
<context context-type="linenumber">83</context>
|
|
1338
|
+
</context-group>
|
|
1339
|
+
</trans-unit>
|
|
1340
|
+
<trans-unit id="737d0ca16e8e241cdfec093293da801a55a5aa7a" datatype="html">
|
|
1341
|
+
<source>Set description</source>
|
|
1342
|
+
<context-group purpose="location">
|
|
1343
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1344
|
+
<context context-type="linenumber">98</context>
|
|
1345
|
+
</context-group>
|
|
1346
|
+
</trans-unit>
|
|
1347
|
+
<trans-unit id="df8e266a4c9278828f1b014f67653ce0beb57f9a" datatype="html">
|
|
1348
|
+
<source> Description cannot be longer than <x id="INTERPOLATION" equiv-text="{{ MAX_DESCRIPTION_LENGTH }}"/> characters. </source>
|
|
1349
|
+
<context-group purpose="location">
|
|
1350
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.html</context>
|
|
1351
|
+
<context context-type="linenumber">102,104</context>
|
|
1352
|
+
</context-group>
|
|
1276
1353
|
</trans-unit>
|
|
1277
1354
|
<trans-unit id="784fdd6b2dc26499eca6e15094b55f0b1c1e1b7a" datatype="html">
|
|
1278
1355
|
<source>Thresholds</source>
|
|
@@ -1767,6 +1844,10 @@
|
|
|
1767
1844
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.html</context>
|
|
1768
1845
|
<context context-type="linenumber">10,11</context>
|
|
1769
1846
|
</context-group>
|
|
1847
|
+
<context-group purpose="location">
|
|
1848
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.html</context>
|
|
1849
|
+
<context context-type="linenumber">10,11</context>
|
|
1850
|
+
</context-group>
|
|
1770
1851
|
</trans-unit>
|
|
1771
1852
|
<trans-unit id="79e4ae6fc9c1cd1ee331414b873fb40154ad1e95" datatype="html">
|
|
1772
1853
|
<source> Add new value
|
|
@@ -1775,6 +1856,10 @@
|
|
|
1775
1856
|
<context context-type="sourcefile">src/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.html</context>
|
|
1776
1857
|
<context context-type="linenumber">24,25</context>
|
|
1777
1858
|
</context-group>
|
|
1859
|
+
<context-group purpose="location">
|
|
1860
|
+
<context context-type="sourcefile">src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.html</context>
|
|
1861
|
+
<context context-type="linenumber">24,25</context>
|
|
1862
|
+
</context-group>
|
|
1778
1863
|
</trans-unit>
|
|
1779
1864
|
<trans-unit id="f43d8212e6ffbc04ea0190118e7f893824ec2686" datatype="html">
|
|
1780
1865
|
<source>Default Metric</source>
|
|
@@ -2592,6 +2677,13 @@
|
|
|
2592
2677
|
<context context-type="linenumber">73</context>
|
|
2593
2678
|
</context-group>
|
|
2594
2679
|
</trans-unit>
|
|
2680
|
+
<trans-unit id="1575742678514522985" datatype="html">
|
|
2681
|
+
<source>Not Applicable</source>
|
|
2682
|
+
<context-group purpose="location">
|
|
2683
|
+
<context context-type="sourcefile">src/lib/constants/default-palette.ts</context>
|
|
2684
|
+
<context context-type="linenumber">75</context>
|
|
2685
|
+
</context-group>
|
|
2686
|
+
</trans-unit>
|
|
2595
2687
|
<trans-unit id="7020649912797295071" datatype="html">
|
|
2596
2688
|
<source>Whoops, something went wrong</source>
|
|
2597
2689
|
<context-group purpose="location">
|
|
@@ -2648,6 +2740,10 @@
|
|
|
2648
2740
|
<context context-type="sourcefile">src/lib/widget-types/kpi/kpi-configurator.ts</context>
|
|
2649
2741
|
<context context-type="linenumber">104</context>
|
|
2650
2742
|
</context-group>
|
|
2743
|
+
<context-group purpose="location">
|
|
2744
|
+
<context context-type="sourcefile">src/lib/widget-types/risk-score/risk-score-configurator.ts</context>
|
|
2745
|
+
<context context-type="linenumber">83</context>
|
|
2746
|
+
</context-group>
|
|
2651
2747
|
<context-group purpose="location">
|
|
2652
2748
|
<context context-type="sourcefile">src/lib/widget-types/table/table-configurator.ts</context>
|
|
2653
2749
|
<context context-type="linenumber">69</context>
|
|
@@ -2699,6 +2795,10 @@
|
|
|
2699
2795
|
<context context-type="sourcefile">src/lib/widget-types/proportional/proportional-configurator.ts</context>
|
|
2700
2796
|
<context context-type="linenumber">89</context>
|
|
2701
2797
|
</context-group>
|
|
2798
|
+
<context-group purpose="location">
|
|
2799
|
+
<context context-type="sourcefile">src/lib/widget-types/risk-score/risk-score-configurator.ts</context>
|
|
2800
|
+
<context context-type="linenumber">53</context>
|
|
2801
|
+
</context-group>
|
|
2702
2802
|
</trans-unit>
|
|
2703
2803
|
<trans-unit id="6035790414336461958" datatype="html">
|
|
2704
2804
|
<source>Si Units Formatter</source>
|
|
@@ -2835,6 +2935,13 @@
|
|
|
2835
2935
|
<context context-type="linenumber">99</context>
|
|
2836
2936
|
</context-group>
|
|
2837
2937
|
</trans-unit>
|
|
2938
|
+
<trans-unit id="3928624441515896168" datatype="html">
|
|
2939
|
+
<source>Empty Risk Score Widget</source>
|
|
2940
|
+
<context-group purpose="location">
|
|
2941
|
+
<context context-type="sourcefile">src/lib/widget-types/risk-score/risk-score-widget.ts</context>
|
|
2942
|
+
<context context-type="linenumber">115</context>
|
|
2943
|
+
</context-group>
|
|
2944
|
+
</trans-unit>
|
|
2838
2945
|
<trans-unit id="2186745583942244132" datatype="html">
|
|
2839
2946
|
<source>No Formatter</source>
|
|
2840
2947
|
<context-group purpose="location">
|