@nova-ui/dashboards 12.0.40 → 12.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.
- package/bundles/nova-ui-dashboards.umd.js +1005 -412
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/components/public-api.js +2 -1
- package/esm2015/lib/components/risk-score-tile/public-api.js +22 -0
- package/esm2015/lib/components/risk-score-tile/risk-score-tile.component.js +124 -0
- package/esm2015/lib/components/risk-score-tile/types.js +25 -0
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +1 -1
- package/esm2015/lib/components/timeseries-widget/timeseries-helpers.js +2 -2
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +6 -9
- package/esm2015/lib/configurator/components/widgets/configurator-items/public-api.js +2 -1
- package/esm2015/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.js +112 -0
- package/esm2015/lib/configurator/components/widgets/public-api.js +2 -1
- package/esm2015/lib/configurator/components/widgets/risk-score/public-api.js +22 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.js +21 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +96 -0
- package/esm2015/lib/configurator/components/widgets/risk-score/types.js +21 -0
- package/esm2015/lib/configurator/configurator.module.js +9 -1
- package/esm2015/lib/dashboards.module.js +19 -7
- package/esm2015/lib/services/provider-registry.service.js +8 -3
- package/esm2015/lib/services/table-formatter-registry.service.js +12 -1
- package/esm2015/lib/services/types.js +2 -1
- package/esm2015/lib/widget-types/risk-score/risk-score-configurator.js +201 -0
- package/esm2015/lib/widget-types/risk-score/risk-score-widget.js +86 -0
- package/esm2015/lib/widget-types/risk-score/risk-score.js +56 -0
- package/fesm2015/nova-ui-dashboards.js +675 -100
- package/fesm2015/nova-ui-dashboards.js.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/timeseries-helpers.d.ts +1 -1
- 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 +3 -3
- 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/timeseries-helpers.d.ts +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +1 -1
- 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.js +5 -8
- 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/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 +96 -0
|
@@ -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,204 @@
|
|
|
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
|
+
exports.riskScoreConfigurator = exports.DEFAULT_RISK_SCORE_FORMATTERS = void 0;
|
|
23
|
+
const form_stack_component_1 = require("../../configurator/components/form-stack/form-stack.component");
|
|
24
|
+
const raw_formatter_component_1 = require("../../configurator/components/formatters/raw-formatter/raw-formatter.component");
|
|
25
|
+
const widget_configurator_section_component_1 = require("../../configurator/components/widget-configurator-section/widget-configurator-section.component");
|
|
26
|
+
const data_source_configuration_component_1 = require("../../configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component");
|
|
27
|
+
const data_source_error_component_1 = require("../../configurator/components/widgets/configurator-items/data-source-error/data-source-error.component");
|
|
28
|
+
const risk_score_tile_description_configuration_component_1 = require("../../configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component");
|
|
29
|
+
const title_and_description_configuration_component_1 = require("../../configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component");
|
|
30
|
+
const risk_score_tiles_configuration_component_1 = require("../../configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component");
|
|
31
|
+
const presentation_configuration_component_1 = require("../../configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component");
|
|
32
|
+
const types_1 = require("../../services/types");
|
|
33
|
+
const types_2 = require("../../types");
|
|
34
|
+
const components_1 = require("../common/configurator/components");
|
|
35
|
+
/* eslint-enable max-len */
|
|
36
|
+
exports.DEFAULT_RISK_SCORE_FORMATTERS = [
|
|
37
|
+
{
|
|
38
|
+
componentType: raw_formatter_component_1.RawFormatterComponent.lateLoadKey,
|
|
39
|
+
label: $localize `Raw Formatter`,
|
|
40
|
+
dataTypes: {
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
value: null,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
exports.riskScoreConfigurator = {
|
|
47
|
+
[types_2.PizzagnaLayer.Structure]: {
|
|
48
|
+
[types_1.DEFAULT_PIZZAGNA_ROOT]: {
|
|
49
|
+
id: types_1.DEFAULT_PIZZAGNA_ROOT,
|
|
50
|
+
// base layout of the configurator - all form components referenced herein will be stacked in a column
|
|
51
|
+
componentType: form_stack_component_1.FormStackComponent.lateLoadKey,
|
|
52
|
+
properties: {
|
|
53
|
+
elementClass: "flex-grow-1 overflow-auto nui-scroll-shadows",
|
|
54
|
+
// references to other components laid out in this form
|
|
55
|
+
nodes: ["presentation", "tiles"],
|
|
56
|
+
},
|
|
57
|
+
providers: {
|
|
58
|
+
[types_2.WellKnownProviders.FormattersRegistry]: {
|
|
59
|
+
providerId: types_1.NOVA_RISK_SCORE_FORMATTERS_REGISTRY,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
// /presentation
|
|
64
|
+
presentation: {
|
|
65
|
+
id: "presentation",
|
|
66
|
+
componentType: widget_configurator_section_component_1.WidgetConfiguratorSectionComponent.lateLoadKey,
|
|
67
|
+
properties: {
|
|
68
|
+
headerText: $localize `Presentation`,
|
|
69
|
+
nodes: ["titleAndDescription", "refresher"],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
// /presentation/titleAndDescription
|
|
73
|
+
titleAndDescription: {
|
|
74
|
+
id: "titleAndDescription",
|
|
75
|
+
componentType: title_and_description_configuration_component_1.TitleAndDescriptionConfigurationComponent.lateLoadKey,
|
|
76
|
+
providers: {
|
|
77
|
+
converter: {
|
|
78
|
+
providerId: types_1.NOVA_TITLE_AND_DESCRIPTION_CONVERTER,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
refresher: components_1.REFRESHER_CONFIGURATOR,
|
|
83
|
+
// /tiles
|
|
84
|
+
tiles: {
|
|
85
|
+
id: "tiles",
|
|
86
|
+
componentType: risk_score_tiles_configuration_component_1.RiskScoreTilesConfigurationComponent.lateLoadKey,
|
|
87
|
+
properties: {
|
|
88
|
+
// these components serve as a template for every KPI tile created
|
|
89
|
+
template: [
|
|
90
|
+
{
|
|
91
|
+
// Risk Score tile description (label) configuration section
|
|
92
|
+
id: "description",
|
|
93
|
+
componentType: risk_score_tile_description_configuration_component_1.RiskScoreTileDescriptionConfigurationComponent.lateLoadKey,
|
|
94
|
+
properties: {},
|
|
95
|
+
providers: {
|
|
96
|
+
// converter transforms the data between the widget and the form
|
|
97
|
+
[types_2.WellKnownProviders.Converter]: {
|
|
98
|
+
providerId: types_1.NOVA_KPI_SECTION_CONVERTER,
|
|
99
|
+
properties: {
|
|
100
|
+
formParts: [
|
|
101
|
+
{
|
|
102
|
+
previewPath: "properties.widgetData",
|
|
103
|
+
keys: [
|
|
104
|
+
"label",
|
|
105
|
+
"minValue",
|
|
106
|
+
"maxValue",
|
|
107
|
+
"description",
|
|
108
|
+
"useStaticLabel",
|
|
109
|
+
"staticLabel",
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
// data source configuration section
|
|
119
|
+
id: "dataSource",
|
|
120
|
+
componentType: data_source_configuration_component_1.DataSourceConfigurationComponent.lateLoadKey,
|
|
121
|
+
properties: {
|
|
122
|
+
// for the DataSourceConfigurationComponent, this defines the list of data sources to pick from
|
|
123
|
+
dataSourceProviders: [],
|
|
124
|
+
errorComponent: data_source_error_component_1.DataSourceErrorComponent.lateLoadKey,
|
|
125
|
+
},
|
|
126
|
+
providers: {
|
|
127
|
+
// converter transforms the data source metadata between the widget and the form
|
|
128
|
+
[types_2.WellKnownProviders.Converter]: {
|
|
129
|
+
providerId: types_1.NOVA_KPI_SECTION_CONVERTER,
|
|
130
|
+
properties: {
|
|
131
|
+
formParts: [
|
|
132
|
+
{
|
|
133
|
+
// this component updates 'providerId' of 'dataSource'
|
|
134
|
+
previewPath: "providers.dataSource",
|
|
135
|
+
// TODO: Remove 'properties' key in v10 - NUI-5831
|
|
136
|
+
keys: ["providerId", "properties"],
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
// this component updates 'properties' of 'dataSource' via an adapter
|
|
140
|
+
previewPath: "providers.adapter.properties.dataSource",
|
|
141
|
+
keys: ["properties"],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
[types_2.WellKnownProviders.Broadcaster]: {
|
|
147
|
+
providerId: types_1.NOVA_PIZZAGNA_BROADCASTER,
|
|
148
|
+
properties: {
|
|
149
|
+
configs: [
|
|
150
|
+
{
|
|
151
|
+
trackOn: "component",
|
|
152
|
+
key: "dataFieldIds",
|
|
153
|
+
paths: [
|
|
154
|
+
"data.{parentComponentId}/formatting.properties.dataFieldIds",
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "formatting",
|
|
164
|
+
componentType: presentation_configuration_component_1.PresentationConfigurationComponent.lateLoadKey,
|
|
165
|
+
providers: {
|
|
166
|
+
[types_2.WellKnownProviders.Converter]: {
|
|
167
|
+
providerId: types_1.NOVA_KPI_SECTION_CONVERTER,
|
|
168
|
+
properties: {
|
|
169
|
+
formParts: [
|
|
170
|
+
{
|
|
171
|
+
previewPath: "properties.configuration.formatters.Value",
|
|
172
|
+
keys: ["formatter"],
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
properties: {
|
|
179
|
+
// Note: Now you should define your formatters in the KpiFormatterRegistry which can contain more formatter options
|
|
180
|
+
// formatters: DEFAULT_RISK_SCORE_FORMATTERS,
|
|
181
|
+
// Set default formatter to the configuration section as RawFormatterComponent.
|
|
182
|
+
// In case Risk Scrore doesn't use the formatters yet, it will be overridden with default formatter value on first save
|
|
183
|
+
formatter: {
|
|
184
|
+
componentType: raw_formatter_component_1.RawFormatterComponent.lateLoadKey,
|
|
185
|
+
properties: {
|
|
186
|
+
dataFieldIds: {
|
|
187
|
+
value: "value",
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
providers: {
|
|
196
|
+
// converter transforms the data between the widget and the form
|
|
197
|
+
[types_2.WellKnownProviders.Converter]: {
|
|
198
|
+
providerId: types_1.NOVA_KPI_TILES_CONVERTER,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=risk-score-configurator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-score-configurator.js","sourceRoot":"","sources":["../../../../../../../src/lib/widget-types/risk-score/risk-score-configurator.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;;;AAKjB,wGAAmG;AACnG,4HAAuH;AACvH,2JAAqJ;AACrJ,gLAA0K;AAC1K,wJAAkJ;AAClJ,gOAAwN;AACxN,8MAAuM;AACvM,uLAAgL;AAChL,0MAAqM;AACrM,gDAO8B;AAC9B,uCAIqB;AACrB,kEAA2E;AAE3E,2BAA2B;AAEd,QAAA,6BAA6B,GAA2B;IACjE;QACI,aAAa,EAAE,+CAAqB,CAAC,WAAW;QAChD,KAAK,EAAE,SAAS,CAAA,eAAe;QAC/B,SAAS,EAAE;YACP,aAAa;YACb,KAAK,EAAE,IAAI;SACd;KACJ;CACJ,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACjC,CAAC,qBAAa,CAAC,SAAS,CAAC,EAAE;QACvB,CAAC,6BAAqB,CAAC,EAAE;YACrB,EAAE,EAAE,6BAAqB;YACzB,sGAAsG;YACtG,aAAa,EAAE,yCAAkB,CAAC,WAAW;YAC7C,UAAU,EAAE;gBACR,YAAY,EAAE,8CAA8C;gBAC5D,uDAAuD;gBACvD,KAAK,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC;aACnC;YACD,SAAS,EAAE;gBACP,CAAC,0BAAkB,CAAC,kBAA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EAAgE;gBAChE,CAAC,0BAAkB,CAAC,SAAS,CAAC,EAAE;oBAC5B,UAAU,EAAE,gCAAwB;iBACb;aAC9B;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -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,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]: 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" }) }) }, 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]: 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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ClC,CAAC,0BAAkB,CAAC,SAAS,CAAC,EAAE,qBAAS,CAAC,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"}
|