@nova-ui/dashboards 17.0.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/nova-ui-dashboards.mjs +639 -615
- package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
- package/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +1 -1
- package/lib/components/timeseries-widget/types.d.ts +6 -6
- package/lib/services/registry-service.d.ts +1 -1
- package/lib/widget-types/kpi/kpi-widget.d.ts +1 -1
- package/lib/widget-types/proportional/proportional-widget.d.ts +1 -1
- package/lib/widget-types/risk-score/risk-score-widget.d.ts +1 -1
- package/lib/widget-types/timeseries/timeseries-widget.d.ts +1 -1
- package/package.json +15 -19
- package/sdk/atoms/spec/configurator/configurator-section.atom.js.map +1 -1
- package/sdk/atoms/spec/configurator/configurator.atom.js.map +1 -1
- package/sdk/atoms/spec/dashboard.atom.js.map +1 -1
- package/sdk/atoms/spec/test.po.js.map +1 -1
- package/sdk/atoms/spec/timeseries/legend-series.atom.js.map +1 -1
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.js +1 -0
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.js.map +1 -1
- package/sdk/atoms/src/lib/common/components/preview-overlay/preview-overlay.component.js +1 -0
- package/sdk/atoms/src/lib/common/components/preview-overlay/preview-overlay.component.js.map +1 -1
- package/sdk/atoms/src/lib/common/components/widget-error/widget-error.component.js +1 -0
- package/sdk/atoms/src/lib/common/components/widget-error/widget-error.component.js.map +1 -1
- package/sdk/atoms/src/lib/common/pipes/dashboard-unit-conversion-pipe.js +4 -1
- package/sdk/atoms/src/lib/common/pipes/dashboard-unit-conversion-pipe.js.map +1 -1
- package/sdk/atoms/src/lib/components/dashboard/dashboard.component.js +1 -0
- package/sdk/atoms/src/lib/components/dashboard/dashboard.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/embedded-content/embedded-content.component.js +1 -0
- package/sdk/atoms/src/lib/components/embedded-content/embedded-content.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js +1 -0
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/base-layout.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/stack/stack.component.js +1 -0
- package/sdk/atoms/src/lib/components/layouts/stack/stack.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/tiles/tiles.component.js +1 -0
- package/sdk/atoms/src/lib/components/layouts/tiles/tiles.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.js +1 -0
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.js +1 -0
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.js +1 -0
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/list-widget/list-widget.component.js +1 -0
- package/sdk/atoms/src/lib/components/list-widget/list-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/loading/loading.component.js +1 -0
- package/sdk/atoms/src/lib/components/loading/loading.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.js +1 -0
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.js +1 -2
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/drilldown-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/interaction/interaction-handler.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/interaction/url-interaction-handler.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-color-prioritizer.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-scale-sync-broker.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-status-content-fallback-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/loading-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/pizzagna-broadcaster.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/timeseries-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js +1 -0
- package/sdk/atoms/src/lib/components/risk-score-tile/risk-score-tile.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/search-feature-addon.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/delayed-mouse-presence-detection.directive.js +1 -0
- package/sdk/atoms/src/lib/components/table-widget/delayed-mouse-presence-detection.directive.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js +1 -0
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/template-load-error/template-load-error.component.js +1 -0
- package/sdk/atoms/src/lib/components/template-load-error/template-load-error.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/time-frame-selection/timeframe-selection.component.js +1 -0
- package/sdk/atoms/src/lib/components/time-frame-selection/timeframe-selection.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +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/timeseries-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js.map +1 -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.js +3 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js +1 -0
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js +1 -2
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/types.d.ts +6 -6
- package/sdk/atoms/src/lib/components/widget/widget-body/widget-body.component.js +1 -0
- package/sdk/atoms/src/lib/components/widget/widget-body/widget-body.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget-body-content/widget-body-content.component.js +1 -0
- package/sdk/atoms/src/lib/components/widget/widget-body-content/widget-body-content.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js +1 -0
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget.component.js +1 -0
- package/sdk/atoms/src/lib/components/widget/widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget-search/widget-search.component.js +1 -0
- package/sdk/atoms/src/lib/components/widget-search/widget-search.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/color-picker/color-picker.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/color-picker/color-picker.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/color-picker/color.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/drop-area/drop-area.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/drop-area/drop-area.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/form-stack/form-stack.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/form-stack/form-stack.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.js +2 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/heading/configurator-heading.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/heading/configurator-heading.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/preview-placeholder/preview-placeholder.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/preview-placeholder/preview-placeholder.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-cloner/widget-cloner.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widget-cloner/widget-cloner.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor/widget-editor.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widget-editor/widget-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion-header/widget-editor-accordion-header.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion-header/widget-editor-accordion-header.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.js +2 -2
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.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.js +1 -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 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/functions/has-control-in-error-state.js +1 -2
- package/sdk/atoms/src/lib/configurator/functions/has-control-in-error-state.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/add-data.pipe.js +4 -1
- package/sdk/atoms/src/lib/configurator/pipe/add-data.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/pizzagna-root.pipe.js +1 -0
- package/sdk/atoms/src/lib/configurator/pipe/pizzagna-root.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/widget-configurator-section-header.pipe.js +1 -0
- package/sdk/atoms/src/lib/configurator/pipe/widget-configurator-section-header.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js +1 -0
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.js +1 -0
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator-data-source-manager.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-columns-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/widget-cloner.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/widget-editor.service.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.js +1 -0
- package/sdk/atoms/src/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.js.map +1 -1
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js +1 -0
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js.map +1 -1
- package/sdk/atoms/src/lib/functions/get-parent-component-id.js +1 -2
- package/sdk/atoms/src/lib/functions/get-parent-component-id.js.map +1 -1
- package/sdk/atoms/src/lib/functions/map-data-to-formatter-properties.js +1 -2
- package/sdk/atoms/src/lib/functions/map-data-to-formatter-properties.js.map +1 -1
- package/sdk/atoms/src/lib/functions/merge-changes.js +1 -2
- package/sdk/atoms/src/lib/functions/merge-changes.js.map +1 -1
- package/sdk/atoms/src/lib/functions/on-mark-as-touched.js +1 -2
- package/sdk/atoms/src/lib/functions/on-mark-as-touched.js.map +1 -1
- package/sdk/atoms/src/lib/functions/parse-string-with-data.js +1 -2
- package/sdk/atoms/src/lib/functions/parse-string-with-data.js.map +1 -1
- package/sdk/atoms/src/lib/functions/proportional-aggregators/field-mapper.js.map +1 -1
- package/sdk/atoms/src/lib/functions/proportional-aggregators/percentage-aggregator.js.map +1 -1
- package/sdk/atoms/src/lib/functions/proportional-aggregators/sum-aggregator.js.map +1 -1
- package/sdk/atoms/src/lib/functions/round-array-values.js +1 -2
- package/sdk/atoms/src/lib/functions/round-array-values.js.map +1 -1
- package/sdk/atoms/src/lib/functions/timeseries-datetime-formatter.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/components/pizzagna/pizzagna.component.js +1 -0
- package/sdk/atoms/src/lib/pizzagna/components/pizzagna/pizzagna.component.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js +1 -0
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/functions/get-pizzagna-property-path.js +1 -2
- package/sdk/atoms/src/lib/pizzagna/functions/get-pizzagna-property-path.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/component-portal.service.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/component-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/category-chart-util.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/event-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/registry-service.js.map +1 -1
- package/sdk/atoms/src/lib/services/url-interaction.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/widget-removal.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/widget-to-dashboard-event-proxy.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/widget-types.service.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/widget/components.js +2 -2
- package/sdk/atoms/src/lib/widget-types/common/widget/components.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/widget/providers.js +2 -2
- package/sdk/atoms/src/lib/widget-types/common/widget/providers.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-widget.d.ts +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-widget.d.ts +1 -1
- package/sdk/atoms/src/lib/widget-types/risk-score/risk-score-widget.d.ts +1 -1
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-widget.d.ts +1 -1
- package/sdk/schematics/ng-add/index.js +1 -1
- package/sdk/schematics/ng-add/index.js.map +1 -1
- package/esm2022/lib/common/common.module.mjs +0 -41
- package/esm2022/lib/common/components/preview-overlay/preview-overlay.component.mjs +0 -35
- package/esm2022/lib/common/components/public-api.mjs +0 -22
- package/esm2022/lib/common/components/widget-error/widget-error.component.mjs +0 -54
- package/esm2022/lib/common/constants.mjs +0 -22
- package/esm2022/lib/common/pipes/dashboard-unit-conversion-pipe.mjs +0 -57
- package/esm2022/lib/common/pipes/public-api.mjs +0 -21
- package/esm2022/lib/common/public-api.mjs +0 -24
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +0 -222
- package/esm2022/lib/components/dashboard/default-gridster-config.mjs +0 -78
- package/esm2022/lib/components/dashboard/public-api.mjs +0 -22
- package/esm2022/lib/components/dashboard/types.mjs +0 -21
- package/esm2022/lib/components/embedded-content/embedded-content.component.mjs +0 -95
- package/esm2022/lib/components/kpi-widget/kpi.component.mjs +0 -129
- package/esm2022/lib/components/kpi-widget/public-api.mjs +0 -22
- package/esm2022/lib/components/kpi-widget/types.mjs +0 -25
- package/esm2022/lib/components/layouts/base-layout.mjs +0 -118
- package/esm2022/lib/components/layouts/public-api.mjs +0 -23
- package/esm2022/lib/components/layouts/stack/stack.component.mjs +0 -65
- package/esm2022/lib/components/layouts/tiles/tiles.component.mjs +0 -99
- package/esm2022/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.mjs +0 -62
- package/esm2022/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.mjs +0 -76
- package/esm2022/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.mjs +0 -60
- package/esm2022/lib/components/list-widget/list-widget.component.mjs +0 -109
- package/esm2022/lib/components/list-widget/public-api.mjs +0 -25
- package/esm2022/lib/components/list-widget/types.mjs +0 -21
- package/esm2022/lib/components/loading/loading.component.mjs +0 -51
- package/esm2022/lib/components/loading/public-api.mjs +0 -21
- package/esm2022/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.mjs +0 -152
- package/esm2022/lib/components/proportional-widget/proportional-widget.component.mjs +0 -333
- package/esm2022/lib/components/proportional-widget/public-api.mjs +0 -23
- package/esm2022/lib/components/proportional-widget/types.mjs +0 -27
- package/esm2022/lib/components/providers/data-source-adapter.mjs +0 -145
- package/esm2022/lib/components/providers/drilldown-data-source-adapter.mjs +0 -114
- package/esm2022/lib/components/providers/event-bus-debugger.mjs +0 -58
- package/esm2022/lib/components/providers/interaction/interaction-handler.mjs +0 -54
- package/esm2022/lib/components/providers/interaction/url-interaction-handler.mjs +0 -69
- package/esm2022/lib/components/providers/kpi-color-prioritizer.mjs +0 -107
- package/esm2022/lib/components/providers/kpi-data-source-adapter.mjs +0 -109
- package/esm2022/lib/components/providers/kpi-scale-sync-broker.mjs +0 -143
- package/esm2022/lib/components/providers/kpi-status-content-fallback-adapter.mjs +0 -104
- package/esm2022/lib/components/providers/loading-adapter.mjs +0 -72
- package/esm2022/lib/components/providers/pizzagna-broadcaster.service.mjs +0 -84
- package/esm2022/lib/components/providers/public-api.mjs +0 -28
- package/esm2022/lib/components/providers/refresher-settings.service.mjs +0 -52
- package/esm2022/lib/components/providers/refresher.mjs +0 -105
- package/esm2022/lib/components/providers/status-content-fallback-adapter.mjs +0 -67
- package/esm2022/lib/components/providers/table-data-source-adapter.mjs +0 -90
- package/esm2022/lib/components/providers/timeseries-data-source-adapter.mjs +0 -72
- package/esm2022/lib/components/providers/types.mjs +0 -22
- package/esm2022/lib/components/public-api.mjs +0 -37
- package/esm2022/lib/components/risk-score-tile/public-api.mjs +0 -22
- package/esm2022/lib/components/risk-score-tile/risk-score-tile.component.mjs +0 -115
- package/esm2022/lib/components/risk-score-tile/types.mjs +0 -25
- package/esm2022/lib/components/table-widget/addons/paginator-feature-addon.service.mjs +0 -116
- package/esm2022/lib/components/table-widget/addons/search-feature-addon.service.mjs +0 -101
- package/esm2022/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.mjs +0 -84
- package/esm2022/lib/components/table-widget/delayed-mouse-presence-detection.directive.mjs +0 -74
- package/esm2022/lib/components/table-widget/public-api.mjs +0 -23
- package/esm2022/lib/components/table-widget/table-widget.component.mjs +0 -612
- package/esm2022/lib/components/table-widget/types.mjs +0 -26
- package/esm2022/lib/components/template-load-error/public-api.mjs +0 -21
- package/esm2022/lib/components/template-load-error/template-load-error.component.mjs +0 -38
- package/esm2022/lib/components/time-frame-selection/public-api.mjs +0 -21
- package/esm2022/lib/components/time-frame-selection/timeframe-selection.component.mjs +0 -127
- package/esm2022/lib/components/timeseries-widget/chart-presets/public-api.mjs +0 -27
- package/esm2022/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.mjs +0 -73
- package/esm2022/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +0 -237
- package/esm2022/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.mjs +0 -175
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +0 -62
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +0 -68
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +0 -84
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +0 -62
- package/esm2022/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs +0 -347
- package/esm2022/lib/components/timeseries-widget/public-api.mjs +0 -27
- package/esm2022/lib/components/timeseries-widget/timeseries-chart-preset.service.mjs +0 -57
- package/esm2022/lib/components/timeseries-widget/timeseries-helpers.mjs +0 -44
- package/esm2022/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.mjs +0 -150
- package/esm2022/lib/components/timeseries-widget/timeseries-scales.service.mjs +0 -180
- package/esm2022/lib/components/timeseries-widget/timeseries-widget.component.mjs +0 -111
- package/esm2022/lib/components/timeseries-widget/transformer/loess.mjs +0 -220
- package/esm2022/lib/components/timeseries-widget/transformer/public-api.mjs +0 -29
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-change-point.mjs +0 -104
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-difference.mjs +0 -58
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-floating-average.mjs +0 -41
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-lin-reg.mjs +0 -66
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-loess-standardize.mjs +0 -29
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-loess.mjs +0 -38
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-normalize.mjs +0 -47
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-percentile-std.mjs +0 -58
- package/esm2022/lib/components/timeseries-widget/transformer/transformer-standardize.mjs +0 -47
- package/esm2022/lib/components/timeseries-widget/types.mjs +0 -76
- package/esm2022/lib/components/types.mjs +0 -25
- package/esm2022/lib/components/widget/public-api.mjs +0 -26
- package/esm2022/lib/components/widget/types.mjs +0 -21
- package/esm2022/lib/components/widget/widget-body/widget-body.component.mjs +0 -88
- package/esm2022/lib/components/widget/widget-body-content/widget-body-content.component.mjs +0 -75
- package/esm2022/lib/components/widget/widget-header/types.mjs +0 -21
- package/esm2022/lib/components/widget/widget-header/widget-header.component.mjs +0 -202
- package/esm2022/lib/components/widget/widget.component.mjs +0 -65
- package/esm2022/lib/components/widget-search/types.mjs +0 -21
- package/esm2022/lib/components/widget-search/widget-search.component.mjs +0 -111
- package/esm2022/lib/configurator/components/color-picker/HTMLcolors.mjs +0 -163
- package/esm2022/lib/configurator/components/color-picker/color-picker.component.mjs +0 -183
- package/esm2022/lib/configurator/components/color-picker/color.service.mjs +0 -56
- package/esm2022/lib/configurator/components/configurator/configurator.component.mjs +0 -119
- package/esm2022/lib/configurator/components/drop-area/drop-area.component.mjs +0 -30
- package/esm2022/lib/configurator/components/form-stack/form-stack.component.mjs +0 -86
- package/esm2022/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.mjs +0 -43
- package/esm2022/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.mjs +0 -84
- package/esm2022/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.mjs +0 -89
- package/esm2022/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.mjs +0 -47
- package/esm2022/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.mjs +0 -85
- package/esm2022/lib/configurator/components/formatters/link-formatter/link-formatter.component.mjs +0 -61
- package/esm2022/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.mjs +0 -35
- package/esm2022/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.mjs +0 -44
- package/esm2022/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.mjs +0 -120
- package/esm2022/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.mjs +0 -105
- package/esm2022/lib/configurator/components/formatters/types.mjs +0 -21
- package/esm2022/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.mjs +0 -92
- package/esm2022/lib/configurator/components/heading/configurator-heading.component.mjs +0 -49
- package/esm2022/lib/configurator/components/items-dynamic/items-dynamic.component.mjs +0 -148
- package/esm2022/lib/configurator/components/preview-placeholder/preview-placeholder.component.mjs +0 -31
- package/esm2022/lib/configurator/components/public-api.mjs +0 -46
- package/esm2022/lib/configurator/components/types.mjs +0 -21
- package/esm2022/lib/configurator/components/widget-cloner/widget-cloner.component.mjs +0 -184
- package/esm2022/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.mjs +0 -57
- package/esm2022/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.mjs +0 -83
- package/esm2022/lib/configurator/components/widget-editor/widget-editor.component.mjs +0 -146
- package/esm2022/lib/configurator/components/widget-editor-accordion/widget-editor-accordion-header/widget-editor-accordion-header.component.mjs +0 -25
- package/esm2022/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.mjs +0 -73
- package/esm2022/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.mjs +0 -122
- package/esm2022/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.mjs +0 -153
- package/esm2022/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.mjs +0 -198
- package/esm2022/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.mjs +0 -74
- package/esm2022/lib/configurator/components/widgets/configurator-items/data-source-error/public-api.mjs +0 -22
- package/esm2022/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.mjs +0 -41
- package/esm2022/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.mjs +0 -133
- package/esm2022/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.mjs +0 -44
- package/esm2022/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.mjs +0 -107
- package/esm2022/lib/configurator/components/widgets/configurator-items/public-api.mjs +0 -31
- package/esm2022/lib/configurator/components/widgets/configurator-items/refresher-configuration/public-api.mjs +0 -22
- package/esm2022/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.mjs +0 -237
- package/esm2022/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.mjs +0 -44
- package/esm2022/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/types.mjs +0 -21
- package/esm2022/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.mjs +0 -170
- package/esm2022/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.mjs +0 -106
- package/esm2022/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.mjs +0 -140
- package/esm2022/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.mjs +0 -56
- package/esm2022/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.mjs +0 -151
- package/esm2022/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.mjs +0 -91
- package/esm2022/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.mjs +0 -68
- package/esm2022/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.mjs +0 -154
- package/esm2022/lib/configurator/components/widgets/drilldown/public-api.mjs +0 -22
- package/esm2022/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.mjs +0 -92
- package/esm2022/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/public-api.mjs +0 -21
- package/esm2022/lib/configurator/components/widgets/kpi/public-api.mjs +0 -22
- package/esm2022/lib/configurator/components/widgets/kpi/types.mjs +0 -33
- package/esm2022/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.mjs +0 -72
- package/esm2022/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.mjs +0 -87
- package/esm2022/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.mjs +0 -166
- package/esm2022/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.mjs +0 -108
- package/esm2022/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.mjs +0 -167
- package/esm2022/lib/configurator/components/widgets/proportional/public-api.mjs +0 -25
- package/esm2022/lib/configurator/components/widgets/public-api.mjs +0 -27
- package/esm2022/lib/configurator/components/widgets/risk-score/public-api.mjs +0 -22
- package/esm2022/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/public-api.mjs +0 -21
- package/esm2022/lib/configurator/components/widgets/risk-score/risk-score-tiles-configuration/risk-score-tiles-configuration.component.mjs +0 -92
- package/esm2022/lib/configurator/components/widgets/risk-score/types.mjs +0 -21
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.mjs +0 -80
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.mjs +0 -117
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.mjs +0 -53
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.mjs +0 -43
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.mjs +0 -259
- package/esm2022/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.mjs +0 -264
- package/esm2022/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.mjs +0 -123
- package/esm2022/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.mjs +0 -309
- package/esm2022/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.mjs +0 -109
- package/esm2022/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.mjs +0 -250
- package/esm2022/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.mjs +0 -122
- package/esm2022/lib/configurator/components/widgets/table/public-api.mjs +0 -32
- package/esm2022/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.mjs +0 -190
- package/esm2022/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.mjs +0 -39
- package/esm2022/lib/configurator/components/widgets/timeseries/public-api.mjs +0 -25
- package/esm2022/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.mjs +0 -111
- package/esm2022/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.mjs +0 -68
- package/esm2022/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.mjs +0 -107
- package/esm2022/lib/configurator/components/widgets/timeseries/types.mjs +0 -21
- package/esm2022/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.mjs +0 -174
- package/esm2022/lib/configurator/components/wizard/dashwiz/dashwiz.component.mjs +0 -354
- package/esm2022/lib/configurator/components/wizard/dashwiz/dashwiz.service.mjs +0 -33
- package/esm2022/lib/configurator/components/wizard/dashwiz/model.mjs +0 -21
- package/esm2022/lib/configurator/components/wizard/dashwiz/public-api.mjs +0 -23
- package/esm2022/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.mjs +0 -131
- package/esm2022/lib/configurator/components/wizard/dashwiz-step/public-api.mjs +0 -21
- package/esm2022/lib/configurator/components/wizard/public-api.mjs +0 -23
- package/esm2022/lib/configurator/components/wizard/types.mjs +0 -21
- package/esm2022/lib/configurator/configurator.module.mjs +0 -443
- package/esm2022/lib/configurator/functions/has-control-in-error-state.mjs +0 -56
- package/esm2022/lib/configurator/functions/public-api.mjs +0 -21
- package/esm2022/lib/configurator/pipe/add-data.pipe.mjs +0 -47
- package/esm2022/lib/configurator/pipe/pizzagna-root.pipe.mjs +0 -45
- package/esm2022/lib/configurator/pipe/public-api.mjs +0 -25
- package/esm2022/lib/configurator/pipe/widget-configurator-section-header.pipe.mjs +0 -38
- package/esm2022/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.mjs +0 -50
- package/esm2022/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.mjs +0 -48
- package/esm2022/lib/configurator/public-api.mjs +0 -26
- package/esm2022/lib/configurator/services/configurator-data-source-manager.service.mjs +0 -89
- package/esm2022/lib/configurator/services/configurator-heading.service.mjs +0 -33
- package/esm2022/lib/configurator/services/configurator.service.mjs +0 -149
- package/esm2022/lib/configurator/services/converters/base-converter.mjs +0 -71
- package/esm2022/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.mjs +0 -86
- package/esm2022/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.mjs +0 -107
- package/esm2022/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.mjs +0 -68
- package/esm2022/lib/configurator/services/converters/public-api.mjs +0 -26
- package/esm2022/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.mjs +0 -81
- package/esm2022/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.mjs +0 -81
- package/esm2022/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.mjs +0 -64
- package/esm2022/lib/configurator/services/converters/table/table-columns-converter.service.mjs +0 -183
- package/esm2022/lib/configurator/services/converters/table/table-filters-converter.service.mjs +0 -65
- package/esm2022/lib/configurator/services/converters/table/table-scroll-type-converter.service.mjs +0 -68
- package/esm2022/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.mjs +0 -85
- package/esm2022/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.mjs +0 -172
- package/esm2022/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.mjs +0 -75
- package/esm2022/lib/configurator/services/converters/types.mjs +0 -22
- package/esm2022/lib/configurator/services/kpi-widget-color.service.mjs +0 -42
- package/esm2022/lib/configurator/services/preview.service.mjs +0 -40
- package/esm2022/lib/configurator/services/public-api.mjs +0 -29
- package/esm2022/lib/configurator/services/timeframe-serialization.service.mjs +0 -49
- package/esm2022/lib/configurator/services/types.mjs +0 -21
- package/esm2022/lib/configurator/services/widget-cloner.service.mjs +0 -56
- package/esm2022/lib/configurator/services/widget-editor.service.mjs +0 -65
- package/esm2022/lib/configurator/types.mjs +0 -26
- package/esm2022/lib/constants/default-palette.mjs +0 -82
- package/esm2022/lib/constants/public-api.mjs +0 -21
- package/esm2022/lib/constants/si-units-prefixes.mjs +0 -114
- package/esm2022/lib/dashboards.module.mjs +0 -335
- package/esm2022/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.mjs +0 -52
- package/esm2022/lib/directives/public-api.mjs +0 -22
- package/esm2022/lib/directives/widget-editor/public-api.mjs +0 -21
- package/esm2022/lib/directives/widget-editor/widget-editor.directive.mjs +0 -104
- package/esm2022/lib/functions/get-parent-component-id.mjs +0 -30
- package/esm2022/lib/functions/map-data-to-formatter-properties.mjs +0 -44
- package/esm2022/lib/functions/merge-changes.mjs +0 -110
- package/esm2022/lib/functions/on-mark-as-touched.mjs +0 -35
- package/esm2022/lib/functions/parse-string-with-data.mjs +0 -44
- package/esm2022/lib/functions/proportional-aggregators/field-mapper.mjs +0 -33
- package/esm2022/lib/functions/proportional-aggregators/percentage-aggregator.mjs +0 -44
- package/esm2022/lib/functions/proportional-aggregators/public-api.mjs +0 -24
- package/esm2022/lib/functions/proportional-aggregators/sum-aggregator.mjs +0 -35
- package/esm2022/lib/functions/proportional-aggregators/types.mjs +0 -21
- package/esm2022/lib/functions/public-api.mjs +0 -24
- package/esm2022/lib/functions/round-array-values.mjs +0 -32
- package/esm2022/lib/functions/timeseries-datetime-formatter.mjs +0 -40
- package/esm2022/lib/pizzagna/components/pizzagna/pizzagna.component.mjs +0 -134
- package/esm2022/lib/pizzagna/components/pizzagna/public-api.mjs +0 -21
- package/esm2022/lib/pizzagna/directives/component-portal/component-portal.directive.mjs +0 -306
- package/esm2022/lib/pizzagna/directives/component-portal/public-api.mjs +0 -21
- package/esm2022/lib/pizzagna/functions/get-pizzagna-property-path.mjs +0 -41
- package/esm2022/lib/pizzagna/functions/public-api.mjs +0 -21
- package/esm2022/lib/pizzagna/pizzagna.module.mjs +0 -39
- package/esm2022/lib/pizzagna/public-api.mjs +0 -26
- package/esm2022/lib/pizzagna/services/component-portal.service.mjs +0 -65
- package/esm2022/lib/pizzagna/services/component-registry.service.mjs +0 -54
- package/esm2022/lib/pizzagna/services/dynamic-component-creator.service.mjs +0 -63
- package/esm2022/lib/pizzagna/services/pizzagna.service.mjs +0 -133
- package/esm2022/lib/pizzagna/services/public-api.mjs +0 -24
- package/esm2022/lib/services/category-chart-util.service.mjs +0 -126
- package/esm2022/lib/services/event-registry.service.mjs +0 -48
- package/esm2022/lib/services/kpi-color-comparators-registry.service.mjs +0 -68
- package/esm2022/lib/services/proportional-content-aggregators-registry.service.mjs +0 -39
- package/esm2022/lib/services/provider-registry.service.mjs +0 -294
- package/esm2022/lib/services/public-api.mjs +0 -31
- package/esm2022/lib/services/registry-service.mjs +0 -83
- package/esm2022/lib/services/table-formatter-registry.service.mjs +0 -98
- package/esm2022/lib/services/types.mjs +0 -81
- package/esm2022/lib/services/unit-test-registry.service.mjs +0 -41
- package/esm2022/lib/services/url-interaction.service.mjs +0 -52
- package/esm2022/lib/services/widget-configuration.service.mjs +0 -35
- package/esm2022/lib/services/widget-removal.service.mjs +0 -60
- package/esm2022/lib/services/widget-to-dashboard-event-proxy.service.mjs +0 -151
- package/esm2022/lib/services/widget-types.service.mjs +0 -88
- package/esm2022/lib/types.mjs +0 -77
- package/esm2022/lib/widget-types/common/configurator/components.mjs +0 -51
- package/esm2022/lib/widget-types/common/configurator/public-api.mjs +0 -21
- package/esm2022/lib/widget-types/common/public-api.mjs +0 -22
- package/esm2022/lib/widget-types/common/widget/components.mjs +0 -133
- package/esm2022/lib/widget-types/common/widget/legend.mjs +0 -26
- package/esm2022/lib/widget-types/common/widget/providers.mjs +0 -44
- package/esm2022/lib/widget-types/common/widget/public-api.mjs +0 -24
- package/esm2022/lib/widget-types/common/widget/types.mjs +0 -29
- package/esm2022/lib/widget-types/drilldown/drilldown-configurator.mjs +0 -148
- package/esm2022/lib/widget-types/drilldown/drilldown-widget.mjs +0 -95
- package/esm2022/lib/widget-types/drilldown/drilldown.mjs +0 -50
- package/esm2022/lib/widget-types/embedded-content/embedded-content-configurator.mjs +0 -110
- package/esm2022/lib/widget-types/embedded-content/embedded-content-widget.mjs +0 -73
- package/esm2022/lib/widget-types/embedded-content/embedded-content.mjs +0 -48
- package/esm2022/lib/widget-types/kpi/kpi-configurator.mjs +0 -271
- package/esm2022/lib/widget-types/kpi/kpi-widget.mjs +0 -105
- package/esm2022/lib/widget-types/kpi/kpi.mjs +0 -61
- package/esm2022/lib/widget-types/preview-placeholder.mjs +0 -59
- package/esm2022/lib/widget-types/proportional/donut-content-configurator-slice.mjs +0 -133
- package/esm2022/lib/widget-types/proportional/proportional-configurator.mjs +0 -281
- package/esm2022/lib/widget-types/proportional/proportional-widget.mjs +0 -91
- package/esm2022/lib/widget-types/proportional/proportional.mjs +0 -54
- package/esm2022/lib/widget-types/public-api.mjs +0 -24
- package/esm2022/lib/widget-types/risk-score/risk-score-configurator.mjs +0 -201
- package/esm2022/lib/widget-types/risk-score/risk-score-widget.mjs +0 -101
- package/esm2022/lib/widget-types/risk-score/risk-score.mjs +0 -56
- package/esm2022/lib/widget-types/table/default-table-formatters.mjs +0 -49
- package/esm2022/lib/widget-types/table/table-configurator.mjs +0 -158
- package/esm2022/lib/widget-types/table/table-widget.mjs +0 -111
- package/esm2022/lib/widget-types/table/table.mjs +0 -39
- package/esm2022/lib/widget-types/timeseries/timeseries-configurator.mjs +0 -183
- package/esm2022/lib/widget-types/timeseries/timeseries-widget.mjs +0 -122
- package/esm2022/lib/widget-types/timeseries/timeseries.mjs +0 -52
- package/esm2022/nova-ui-dashboards.mjs +0 -5
- package/esm2022/public-api.mjs +0 -31
- package/sdk/locale/messages.en.xlf +0 -2764
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to
|
|
5
|
-
// deal in the Software without restriction, including without limitation the
|
|
6
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
import { Injectable } from "@angular/core";
|
|
21
|
-
import { StatusBarChartComponent } from "./chart-presets/status-bar-chart/status-bar-chart.component";
|
|
22
|
-
import { LineChartComponent } from "./chart-presets/xy-chart/chart-types/line-chart.component";
|
|
23
|
-
import { StackedAreaChartComponent } from "./chart-presets/xy-chart/chart-types/stacked-area-chart.component";
|
|
24
|
-
import { StackedBarChartComponent } from "./chart-presets/xy-chart/chart-types/stacked-bar-chart.component";
|
|
25
|
-
import { StackedPercentageAreaChartComponent } from "./chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component";
|
|
26
|
-
import { TimeseriesChartPreset } from "./types";
|
|
27
|
-
import * as i0 from "@angular/core";
|
|
28
|
-
export class TimeseriesChartPresetService {
|
|
29
|
-
constructor() {
|
|
30
|
-
this.presets = {
|
|
31
|
-
[TimeseriesChartPreset.Line]: {
|
|
32
|
-
componentType: LineChartComponent.lateLoadKey,
|
|
33
|
-
},
|
|
34
|
-
[TimeseriesChartPreset.StackedArea]: {
|
|
35
|
-
componentType: StackedAreaChartComponent.lateLoadKey,
|
|
36
|
-
},
|
|
37
|
-
[TimeseriesChartPreset.StackedPercentageArea]: {
|
|
38
|
-
componentType: StackedPercentageAreaChartComponent.lateLoadKey,
|
|
39
|
-
},
|
|
40
|
-
[TimeseriesChartPreset.StackedBar]: {
|
|
41
|
-
componentType: StackedBarChartComponent.lateLoadKey,
|
|
42
|
-
},
|
|
43
|
-
[TimeseriesChartPreset.StatusBar]: {
|
|
44
|
-
componentType: StatusBarChartComponent.lateLoadKey,
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesChartPresetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
49
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesChartPresetService, providedIn: "root" }); }
|
|
50
|
-
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesChartPresetService, decorators: [{
|
|
52
|
-
type: Injectable,
|
|
53
|
-
args: [{
|
|
54
|
-
providedIn: "root",
|
|
55
|
-
}]
|
|
56
|
-
}], ctorParameters: () => [] });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1jaGFydC1wcmVzZXQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy90aW1lc2VyaWVzLXdpZGdldC90aW1lc2VyaWVzLWNoYXJ0LXByZXNldC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4RUFBOEU7QUFDOUUsK0VBQStFO0FBQy9FLDhFQUE4RTtBQUM5RSw0REFBNEQ7QUFDNUQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSx1REFBdUQ7QUFDdkQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSw0RUFBNEU7QUFDNUUsK0VBQStFO0FBQy9FLDBFQUEwRTtBQUMxRSxpRkFBaUY7QUFDakYsNkVBQTZFO0FBQzdFLGlCQUFpQjtBQUVqQixP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hdGVMb2FkS2V5LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtUaW1lc2VyaWVzQ2hhcnRQcmVzZXQuU3RhY2tlZFBlcmNlbnRhZ2VBcmVhXToge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudFR5cGU6IFN0YWNrZWRQZXJjZW50YWdlQXJlYUNoYXJ0Q29tcG9uZW50LmxhdGVMb2FkS2V5LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtUaW1lc2VyaWVzQ2hhcnRQcmVzZXQuU3RhY2tlZEJhcl06IHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRUeXBlOiBTdGFja2VkQmFyQ2hhcnRDb21wb25lbnQubGF0ZUxvYWRLZXksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW1RpbWVzZXJpZXNDaGFydFByZXNldC5TdGF0dXNCYXJdOiB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50VHlwZTogU3RhdHVzQmFyQ2hhcnRDb21wb25lbnQubGF0ZUxvYWRLZXksXG4gICAgICAgICAgICB9LFxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to
|
|
5
|
-
// deal in the Software without restriction, including without limitation the
|
|
6
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
import { TimeseriesChartTypes } from "./types";
|
|
21
|
-
export function metricsSeriesMeasurementsMinMax(series, axisUnits) {
|
|
22
|
-
if (axisUnits === "percent") {
|
|
23
|
-
return { min: 0, max: 100 };
|
|
24
|
-
}
|
|
25
|
-
// skips percent measurements as they are displayed on the left y-axis and would affect right y-axis domain
|
|
26
|
-
const nonPercentMetrics = series.filter((metric) => metric.metricUnits !== "percent" && metric.data?.length);
|
|
27
|
-
// case where there are no measurements for non-percent metrics, e.g when a license expires
|
|
28
|
-
if (nonPercentMetrics.length === 0) {
|
|
29
|
-
return { min: -1, max: 1 };
|
|
30
|
-
}
|
|
31
|
-
const measurements = nonPercentMetrics.flatMap((m) => m.data ?? []);
|
|
32
|
-
return measurements.reduce((acc, measurement) => ({
|
|
33
|
-
min: Math.min(acc.min, measurement.y),
|
|
34
|
-
max: Math.max(acc.max, measurement.y),
|
|
35
|
-
}), { min: measurements[0].y, max: measurements[0].y });
|
|
36
|
-
}
|
|
37
|
-
export function hasTimeseriesWidgetSummaryLegend(type) {
|
|
38
|
-
return (type === TimeseriesChartTypes.alert ||
|
|
39
|
-
type === TimeseriesChartTypes.event ||
|
|
40
|
-
type === TimeseriesChartTypes.multi);
|
|
41
|
-
}
|
|
42
|
-
export const SUMMARY_LEGEND_BCG_COLOR = "var(--nui-color-chart-sum)";
|
|
43
|
-
export const SUMMARY_L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FzVGltZXNlcmllc1dpZGdldFN1bW1hcnlMZWdlbmQoXG4gICAgdHlwZTogVGltZXNlcmllc0NoYXJ0VHlwZXNcbik6IGJvb2xlYW4ge1xuICAgIHJldHVybiAoXG4gICAgICAgIHR5cGUgPT09IFRpbWVzZXJpZXNDaGFydFR5cGVzLmFsZXJ0IHx8XG4gICAgICAgIHR5cGUgPT09IFRpbWVzZXJpZXNDaGFydFR5cGVzLmV2ZW50IHx8XG4gICAgICAgIHR5cGUgPT09IFRpbWVzZXJpZXNDaGFydFR5cGVzLm11bHRpXG4gICAgKTtcbn1cblxuZXhwb3J0IGNvbnN0IFNVTU1BUllfTEVHRU5EX0JDR19DT0xPUiA9IFwidmFyKC0tbnVpLWNvbG9yLWNoYXJ0LXN1bSlcIjtcbmV4cG9ydCBjb25zdCBTVU1NQVJZX0xFR0VORF9DT0xPUiA9IFwidmFyKC0tbnVpLWNvbG9yLXRleHQtaW52ZXJzZSlcIjtcbiJdfQ==
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to
|
|
5
|
-
// deal in the Software without restriction, including without limitation the
|
|
6
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
import { Component, ElementRef, Inject, Input, } from "@angular/core";
|
|
21
|
-
import { Subject } from "rxjs";
|
|
22
|
-
import { takeUntil } from "rxjs/operators";
|
|
23
|
-
import { EventBus } from "@nova-ui/bits";
|
|
24
|
-
import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, } from "@nova-ui/charts";
|
|
25
|
-
import { PIZZAGNA_EVENT_BUS } from "../../../types";
|
|
26
|
-
import * as i0 from "@angular/core";
|
|
27
|
-
import * as i1 from "@nova-ui/charts";
|
|
28
|
-
import * as i2 from "@angular/common";
|
|
29
|
-
import * as i3 from "@nova-ui/bits";
|
|
30
|
-
export const TIMESERIES_INSPECTION_MENU_ZOOM_IN = {
|
|
31
|
-
id: "TIMESERIES_INSPECTION_MENU_ZOOM_IN",
|
|
32
|
-
};
|
|
33
|
-
export const TIMESERIES_INSPECTION_MENU_ZOOM_OUT = {
|
|
34
|
-
id: "TIMESERIES_INSPECTION_MENU_ZOOM_OUT",
|
|
35
|
-
};
|
|
36
|
-
export const TIMESERIES_INSPECTION_MENU_EXPLORE = {
|
|
37
|
-
id: "TIMESERIES_INSPECTION_MENU_EXPLORE",
|
|
38
|
-
};
|
|
39
|
-
export const TIMESERIES_INSPECTION_MENU_CLOSE = {
|
|
40
|
-
id: "TIMESERIES_INSPECTION_MENU_CLOSE",
|
|
41
|
-
};
|
|
42
|
-
export const TIMESERIES_INSPECTION_MENU_SYNCHRONIZE = {
|
|
43
|
-
id: "TIMESERIES_INSPECTION_MENU_SYNCHRONIZE",
|
|
44
|
-
};
|
|
45
|
-
export const TIMESERIES_INSPECTION_MENU_CLEAR = {
|
|
46
|
-
id: "TIMESERIES_INSPECTION_MENU_CLEAR",
|
|
47
|
-
};
|
|
48
|
-
export class TimeseriesInspectionMenuComponent {
|
|
49
|
-
constructor(element, eventBus, syncService) {
|
|
50
|
-
this.element = element;
|
|
51
|
-
this.eventBus = eventBus;
|
|
52
|
-
this.syncService = syncService;
|
|
53
|
-
this.exploringEnabled = false;
|
|
54
|
-
this.allowed = false;
|
|
55
|
-
this.offset = 38;
|
|
56
|
-
this.destroy$ = new Subject();
|
|
57
|
-
}
|
|
58
|
-
ngOnInit() {
|
|
59
|
-
this.plugin.zoomCreated$.subscribe(() => this.explore(false));
|
|
60
|
-
this.eventBus
|
|
61
|
-
.getStream(TIMESERIES_INSPECTION_MENU_SYNCHRONIZE)
|
|
62
|
-
.subscribe(() => {
|
|
63
|
-
const { startDate, endDate } = this.plugin.getInspectionFrame();
|
|
64
|
-
if (startDate && endDate) {
|
|
65
|
-
this.syncService.syncPositionInsideCollection(this.collectionId ?? "", startDate, endDate);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
this.eventBus
|
|
69
|
-
.getStream(TIMESERIES_INSPECTION_MENU_CLEAR)
|
|
70
|
-
.subscribe(() => this.clearZoom());
|
|
71
|
-
this.plugin?.openPopover$
|
|
72
|
-
.pipe(takeUntil(this.destroy$))
|
|
73
|
-
.subscribe((x) => {
|
|
74
|
-
// moves element to the correct position
|
|
75
|
-
this.element.nativeElement.style.left = this.offset + x + "px";
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
ngOnChanges(changes) {
|
|
79
|
-
if (changes.allowed?.currentValue) {
|
|
80
|
-
this.plugin.showPopover();
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
this.plugin.closePopover();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
ngOnDestroy() {
|
|
87
|
-
this.destroy$.next();
|
|
88
|
-
this.destroy$.complete();
|
|
89
|
-
}
|
|
90
|
-
clearZoom() {
|
|
91
|
-
this.syncService.clearZoomInsideCollection(this.collectionId ?? "");
|
|
92
|
-
this.eventBus.next(TIMESERIES_INSPECTION_MENU_CLOSE, {});
|
|
93
|
-
}
|
|
94
|
-
isZoomInAllowed() {
|
|
95
|
-
const { startDate, endDate } = this.plugin.getInspectionFrame();
|
|
96
|
-
if (!startDate || !endDate) {
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
// doesn't allow zoom for timeframe smaller than 10 minutes
|
|
100
|
-
return endDate.diff(startDate, "minutes") > 10;
|
|
101
|
-
}
|
|
102
|
-
zoomIn() {
|
|
103
|
-
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
104
|
-
this.eventBus.next(TIMESERIES_INSPECTION_MENU_ZOOM_IN, {
|
|
105
|
-
payload: inspectionTimeframe,
|
|
106
|
-
});
|
|
107
|
-
this.syncService.clearZoomInsideCollection(this.collectionId ?? "");
|
|
108
|
-
}
|
|
109
|
-
zoomOut() {
|
|
110
|
-
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
111
|
-
this.eventBus.next(TIMESERIES_INSPECTION_MENU_ZOOM_OUT, {
|
|
112
|
-
payload: inspectionTimeframe,
|
|
113
|
-
});
|
|
114
|
-
setTimeout(() => {
|
|
115
|
-
this.plugin.closePopover();
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
explore(openSidePanel = false) {
|
|
119
|
-
const inspectionTimeframe = this.plugin.getInspectionFrame();
|
|
120
|
-
this.eventBus.next(TIMESERIES_INSPECTION_MENU_EXPLORE, {
|
|
121
|
-
payload: {
|
|
122
|
-
ids: this.metricIds,
|
|
123
|
-
startDate: inspectionTimeframe.startDate,
|
|
124
|
-
endDate: inspectionTimeframe.endDate,
|
|
125
|
-
openSidePanel,
|
|
126
|
-
exploringEnabled: this.exploringEnabled,
|
|
127
|
-
},
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesInspectionMenuComponent, deps: [{ token: i0.ElementRef }, { token: PIZZAGNA_EVENT_BUS }, { token: i1.TimeseriesZoomPluginsSyncService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
131
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: { plugin: "plugin", exploringEnabled: "exploringEnabled", metricIds: "metricIds", collectionId: "collectionId", allowed: "allowed" }, usesOnChanges: true, ngImport: i0, template: "<nui-popover\n class=\"popover\"\n trigger=\"openPopoverSubject\"\n placement=\"right\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [container]=\"element.nativeElement\"\n [openPopover]=\"plugin.openPopover$\"\n [closePopover]=\"plugin.closePopover$\"\n [hasPadding]=\"false\"\n [withGrowAfterOpen]=\"true\"\n>\n</nui-popover>\n\n<ng-template #popoverTemplate>\n <div class=\"inspection-menu\">\n <button\n *ngIf=\"exploringEnabled\"\n nui-button\n type=\"button\"\n icon=\"details\"\n title=\"Inspect selection in the data explorer\"\n i18n-title\n (click)=\"explore(true)\"\n ></button>\n <button\n *ngIf=\"isZoomInAllowed()\"\n nui-button\n type=\"button\"\n icon=\"zoom-in\"\n title=\"Zoom In\"\n i18n-title\n (click)=\"zoomIn()\"\n ></button>\n <button\n nui-button\n type=\"button\"\n icon=\"zoom-out\"\n title=\"Zoom Out\"\n i18n-title\n (click)=\"zoomOut()\"\n ></button>\n <button\n nui-button\n type=\"button\"\n icon=\"remove\"\n title=\"Clear selection\"\n i18n-title\n (click)=\"clearZoom()\"\n ></button>\n </div>\n</ng-template>\n", styles: [":host{position:absolute;top:5px}.popover{position:absolute;pointer-events:none}:host ::ng-deep nui-overlay-arrow{display:none!important}.inspection-menu{display:flex;flex-direction:column;align-items:center;justify-content:center}.inspection-menu ::ng-deep button{border:0}.inspection-menu ::ng-deep .nui-button.is-empty{min-width:25px!important;min-height:25px!important}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i3.PopoverComponent, selector: "nui-popover", inputs: ["closePopover", "openPopover", "disabled", "trigger", "template", "placement", "popoverTitle", "icon", "modal", "container", "hasPadding", "preventClosing", "unlimited", "delay", "withGrowAfterOpen", "popoverOverlayPosition"], outputs: ["shown", "hidden"] }] }); }
|
|
132
|
-
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesInspectionMenuComponent, decorators: [{
|
|
134
|
-
type: Component,
|
|
135
|
-
args: [{ selector: "nui-timeseries-inspection-menu", template: "<nui-popover\n class=\"popover\"\n trigger=\"openPopoverSubject\"\n placement=\"right\"\n [unlimited]=\"true\"\n [template]=\"popoverTemplate\"\n [container]=\"element.nativeElement\"\n [openPopover]=\"plugin.openPopover$\"\n [closePopover]=\"plugin.closePopover$\"\n [hasPadding]=\"false\"\n [withGrowAfterOpen]=\"true\"\n>\n</nui-popover>\n\n<ng-template #popoverTemplate>\n <div class=\"inspection-menu\">\n <button\n *ngIf=\"exploringEnabled\"\n nui-button\n type=\"button\"\n icon=\"details\"\n title=\"Inspect selection in the data explorer\"\n i18n-title\n (click)=\"explore(true)\"\n ></button>\n <button\n *ngIf=\"isZoomInAllowed()\"\n nui-button\n type=\"button\"\n icon=\"zoom-in\"\n title=\"Zoom In\"\n i18n-title\n (click)=\"zoomIn()\"\n ></button>\n <button\n nui-button\n type=\"button\"\n icon=\"zoom-out\"\n title=\"Zoom Out\"\n i18n-title\n (click)=\"zoomOut()\"\n ></button>\n <button\n nui-button\n type=\"button\"\n icon=\"remove\"\n title=\"Clear selection\"\n i18n-title\n (click)=\"clearZoom()\"\n ></button>\n </div>\n</ng-template>\n", styles: [":host{position:absolute;top:5px}.popover{position:absolute;pointer-events:none}:host ::ng-deep nui-overlay-arrow{display:none!important}.inspection-menu{display:flex;flex-direction:column;align-items:center;justify-content:center}.inspection-menu ::ng-deep button{border:0}.inspection-menu ::ng-deep .nui-button.is-empty{min-width:25px!important;min-height:25px!important}\n"] }]
|
|
136
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i3.EventBus, decorators: [{
|
|
137
|
-
type: Inject,
|
|
138
|
-
args: [PIZZAGNA_EVENT_BUS]
|
|
139
|
-
}] }, { type: i1.TimeseriesZoomPluginsSyncService }], propDecorators: { plugin: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}], exploringEnabled: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], metricIds: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], collectionId: [{
|
|
146
|
-
type: Input
|
|
147
|
-
}], allowed: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}] } });
|
|
150
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1pbnNwZWN0aW9uLW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3RpbWVzZXJpZXMtd2lkZ2V0L3RpbWVzZXJpZXMtaW5zcGVjdGlvbi1tZW51L3RpbWVzZXJpZXMtaW5zcGVjdGlvbi1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy90aW1lc2VyaWVzLXdpZGdldC90aW1lc2VyaWVzLWluc3BlY3Rpb24tbWVudS90aW1lc2VyaWVzLWluc3BlY3Rpb24tbWVudS5jb21wb25lbnQuaHRt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cHJpdmF0ZSBvZmZzZXQgPSAzODtcbiAgICBwcml2YXRlIGRlc3Ryb3kkID0gbmV3IFN1YmplY3Q8dm9pZD4oKTtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBwdWJsaWMgZWxlbWVudDogRWxlbWVudFJlZixcbiAgICAgICAgQEluamVjdChQSVpaQUdOQV9FVkVOVF9CVVMpIHByaXZhdGUgZXZlbnRCdXM6IEV2ZW50QnVzPElFdmVudD4sXG4gICAgICAgIHByaXZhdGUgc3luY1NlcnZpY2U6IFRpbWVzZXJpZXNab29tUGx1Z2luc1N5bmNTZXJ2aWNlXG4gICAgKSB7fVxuICAgIHB1YmxpYyBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5wbHVnaW4uem9vbUNyZWF0ZWQkLnN1YnNjcmliZSgoKSA9PiB0aGlzLmV4cGxvcmUoZmFsc2UpKTtcblxuICAgICAgICB0aGlzLmV2ZW50QnVzXG4gICAgICAgICAgICAuZ2V0U3RyZWFtKFRJTUVTRVJJRVNfSU5TUEVDVElPTl9NRU5VX1NZTkNIUk9OSVpFKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBzdGFydERhdGUsIGVuZERhdGUgfSA9IHRoaXMucGx1Z2luLmdldEluc3BlY3Rpb25GcmFtZSgpO1xuICAgICAgICAgICAgICAgIGlmIChzdGFydERhdGUgJiYgZW5kRGF0ZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnN5bmNTZXJ2aWNlLnN5bmNQb3NpdGlvbkluc2lkZUNvbGxlY3Rpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbGxlY3Rpb25JZCA/PyBcIlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RhcnREYXRlLFxuICAgICAgICAgICAgICAgICAgICAgICAgZW5kRGF0ZVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgIC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i10aXRsZVxuICAgICAgICAgICAgKGNsaWNrKT1cInpvb21JbigpXCJcbiAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICBudWktYnV0dG9uXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIGljb249XCJ6b29tLW91dFwiXG4gICAgICAgICAgICB0aXRsZT1cIlpvb20gT3V0XCJcbiAgICAgICAgICAgIGkxOG4tdGl0bGVcbiAgICAgICAgICAgIChjbGljayk9XCJ6b29tT3V0KClcIlxuICAgICAgICA+PC9idXR0b24+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIG51aS1idXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgaWNvbj1cInJlbW92ZVwiXG4gICAgICAgICAgICB0aXRsZT1cIkNsZWFyIHNlbGVjdGlvblwiXG4gICAgICAgICAgICBpMThuLXRpdGxlXG4gICAgICAgICAgICAoY2xpY2spPVwiY2xlYXJab29tKClcIlxuICAgICAgICA+PC9idXR0b24+XG4gICAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to
|
|
5
|
-
// deal in the Software without restriction, including without limitation the
|
|
6
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
import { Injectable } from "@angular/core";
|
|
21
|
-
import { duration } from "moment/moment";
|
|
22
|
-
import { UnitBase, UnitConversionService } from "@nova-ui/bits";
|
|
23
|
-
import { LinearScale, TimeIntervalScale, TimeScale, } from "@nova-ui/charts";
|
|
24
|
-
import { TimeseriesScaleType, TimeseriesChartPreset, } from "./types";
|
|
25
|
-
import { DashboardUnitConversionPipe } from "../../common/pipes/public-api";
|
|
26
|
-
import { roundToOptimalDecimals } from "../../functions/round-array-values";
|
|
27
|
-
import { timeSeriesDatetimeFormatter } from "../../functions/timeseries-datetime-formatter";
|
|
28
|
-
import * as i0 from "@angular/core";
|
|
29
|
-
import * as i1 from "@nova-ui/bits";
|
|
30
|
-
/**
|
|
31
|
-
* This service handles scale creation and configuration for the timeseries widget
|
|
32
|
-
*/
|
|
33
|
-
export class TimeseriesScalesService {
|
|
34
|
-
constructor(unitConversionService) {
|
|
35
|
-
this.unitConversionService = unitConversionService;
|
|
36
|
-
this.unitConversionPipe = new DashboardUnitConversionPipe(this.unitConversionService);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Creates a scale based on given configuration
|
|
40
|
-
*
|
|
41
|
-
* @param scaleConfig
|
|
42
|
-
*/
|
|
43
|
-
getScale(scaleConfig, units, widgetConfig) {
|
|
44
|
-
let scale;
|
|
45
|
-
switch (scaleConfig.type) {
|
|
46
|
-
case TimeseriesScaleType.Time: {
|
|
47
|
-
scale = new TimeScale();
|
|
48
|
-
scale.isTimeseriesScale = true;
|
|
49
|
-
scale.formatters.title = timeSeriesDatetimeFormatter;
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
case TimeseriesScaleType.Linear: {
|
|
53
|
-
scale = new LinearScale();
|
|
54
|
-
scale.isTimeseriesScale = true;
|
|
55
|
-
scale.formatters.tick = (value, isLabelFormatter) => this.unitConversionPipe.transform(value, scaleConfig.properties?.axisUnits ?? units, UnitBase.Standard);
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
case TimeseriesScaleType.TimeInterval: {
|
|
59
|
-
scale = new TimeIntervalScale(duration(1, "hour"));
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
this.updateConfiguration(scale, scaleConfig, widgetConfig);
|
|
64
|
-
return scale;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Currently only TimeIntervalScale has configuration
|
|
68
|
-
*
|
|
69
|
-
* @param scale
|
|
70
|
-
* @param scaleConfig
|
|
71
|
-
*/
|
|
72
|
-
updateConfiguration(scale, scaleConfig, widgetConfig) {
|
|
73
|
-
switch (scaleConfig.type) {
|
|
74
|
-
case TimeseriesScaleType.Time: {
|
|
75
|
-
const interval = scaleConfig.properties?.timeInterval;
|
|
76
|
-
if (interval?.startDatetime && interval?.endDatetime) {
|
|
77
|
-
scale.fixDomain([
|
|
78
|
-
interval.startDatetime,
|
|
79
|
-
interval.endDatetime,
|
|
80
|
-
]);
|
|
81
|
-
}
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
case TimeseriesScaleType.TimeInterval: {
|
|
85
|
-
const interval = scaleConfig.properties?.interval;
|
|
86
|
-
if (typeof interval === "number") {
|
|
87
|
-
if (interval <= 0) {
|
|
88
|
-
throw new Error("Interval value must be greater than zero.");
|
|
89
|
-
}
|
|
90
|
-
if (scale instanceof TimeIntervalScale) {
|
|
91
|
-
scale.interval(duration(interval, "seconds"));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
case TimeseriesScaleType.Linear: {
|
|
97
|
-
if (scaleConfig.properties?.axisUnits) {
|
|
98
|
-
scale.scaleUnits = scaleConfig.properties.axisUnits;
|
|
99
|
-
}
|
|
100
|
-
if (widgetConfig?.preset === TimeseriesChartPreset.StatusBar) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (scaleConfig.properties?.axisUnits === "percent" &&
|
|
104
|
-
scale.setFixDomainValues) {
|
|
105
|
-
scale.setFixDomainValues([0, 25, 50, 75, 100]);
|
|
106
|
-
}
|
|
107
|
-
if (scaleConfig.properties?.axisUnits !== "percent" &&
|
|
108
|
-
scaleConfig.properties?.domain &&
|
|
109
|
-
scale.setFixDomainValues) {
|
|
110
|
-
let domainAdjusted;
|
|
111
|
-
switch (widgetConfig?.preset) {
|
|
112
|
-
case TimeseriesChartPreset.StackedBar:
|
|
113
|
-
domainAdjusted = this.getStackedBarScaleDomain(scaleConfig.properties.domain);
|
|
114
|
-
break;
|
|
115
|
-
case TimeseriesChartPreset.StackedArea:
|
|
116
|
-
domainAdjusted = this.getStackedAreaScaleDomain(scaleConfig.properties.domain.max);
|
|
117
|
-
break;
|
|
118
|
-
default:
|
|
119
|
-
domainAdjusted = this.getLineScaleDomain(scaleConfig.properties.domain);
|
|
120
|
-
}
|
|
121
|
-
scale.setFixDomainValues(domainAdjusted);
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
getStackedBarScaleDomain({ min, max, }) {
|
|
128
|
-
if (max === 0 || max % 4 > 0) {
|
|
129
|
-
max = max + 4 - (max % 4);
|
|
130
|
-
}
|
|
131
|
-
const increment = Math.floor((max - min) / 4);
|
|
132
|
-
return [
|
|
133
|
-
min,
|
|
134
|
-
min + increment,
|
|
135
|
-
min + 2 * increment,
|
|
136
|
-
max - increment,
|
|
137
|
-
max,
|
|
138
|
-
];
|
|
139
|
-
}
|
|
140
|
-
getLineScaleDomain({ min, max, }) {
|
|
141
|
-
if (min > max) {
|
|
142
|
-
const tmp = min;
|
|
143
|
-
min = max;
|
|
144
|
-
max = tmp;
|
|
145
|
-
}
|
|
146
|
-
const extentRange = Math.abs((max - min) / ((max + min) / 2));
|
|
147
|
-
// for small domain ranges increase domain so that spikes are not exaggerated
|
|
148
|
-
if (extentRange < 0.5) {
|
|
149
|
-
min = min - Math.abs(min) * 0.5;
|
|
150
|
-
max = max + Math.abs(max) * 0.5;
|
|
151
|
-
}
|
|
152
|
-
// handles zero case
|
|
153
|
-
if (min === 0 && max === 0) {
|
|
154
|
-
min = -1;
|
|
155
|
-
max = 1;
|
|
156
|
-
}
|
|
157
|
-
// special case for real small number since not using si prefix anymore
|
|
158
|
-
if (Math.abs(max - min) < 0.04) {
|
|
159
|
-
max += 0.04;
|
|
160
|
-
}
|
|
161
|
-
const point = (max - min) / 4;
|
|
162
|
-
return roundToOptimalDecimals([
|
|
163
|
-
min,
|
|
164
|
-
min + point,
|
|
165
|
-
min + 2 * point,
|
|
166
|
-
max - point,
|
|
167
|
-
max,
|
|
168
|
-
]);
|
|
169
|
-
}
|
|
170
|
-
getStackedAreaScaleDomain(max) {
|
|
171
|
-
const point = max / 4;
|
|
172
|
-
return [0, point, point * 2, max - point, max];
|
|
173
|
-
}
|
|
174
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesScalesService, deps: [{ token: i1.UnitConversionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
175
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesScalesService }); }
|
|
176
|
-
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeseriesScalesService, decorators: [{
|
|
178
|
-
type: Injectable
|
|
179
|
-
}], ctorParameters: () => [{ type: i1.UnitConversionService }] });
|
|
180
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1zY2FsZXMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy90aW1lc2VyaWVzLXdpZGdldC90aW1lc2VyaWVzLXNjYWxlcy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4RUFBOEU7QUFDOUUsK0VBQStFO0FBQy9FLDhFQUE4RTtBQUM5RSw0REFBNEQ7QUFDNUQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSx1REFBdUQ7QUFDdkQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSw0RUFBNEU7QUFDNUUsK0VBQStFO0FBQy9FLDBFQUEwRTtBQUMxRSxpRkFBaUY7QUFDakYsNkVBQTZFO0FBQzdFLGlCQUFpQjtBQUVqQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLFFBQVEsRUFBRSxxQkFBcUIsRUFBYyxNQUFNLGVBQWUsQ0FBQztBQUM1RSxPQUFPLEVBRUgsV0FBVyxFQUNYLGlCQUFpQixFQUNqQixTQUFTLEdBQ1osTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBR0gsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN4QixNQUFNLFNBQVMsQ0FBQztBQ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VyO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgY2FzZSBUaW1lc2VyaWVzU2NhbGVUeXBlLkxpbmVhcjoge1xuICAgICAgICAgICAgICAgIHNjYWxlID0gbmV3IExpbmVhclNjYWxlKCk7XG4gICAgICAgICAgICAgICAgc2NhbGUuaXNUaW1lc2VyaWVzU2NhbGUgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHNjYWxlLmZvcm1hdHRlcnMudGljayA9IChcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHN0cmluZyB8IG51bWJlciB8IHVuZGVmaW5lZCxcbiAgICAgICAgICAgICAgICAgICAgaXNMYWJlbEZvcm1hdHRlcj86IGJvb2xlYW5cbiAgICAgICAgICAgICAgICApID0+XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudW5pdENvbnZlcnNpb25QaXBlLnRyYW5zZm9ybShcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVDb25maWcucHJvcGVydGllcz8uYXhpc1VuaXRzID8/IHVuaXRzLFxuICAgICAgICAgICAgICAgICAgICAgICAgVW5pdEJhc2UuU3RhbmRhcmRcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNhc2UgVGltZXNlcmllc1NjYWxlVHlwZS5UaW1lSW50ZXJ2YWw6IHtcbiAgICAgICAgICAgICAgICBzY2FsZSA9IG5ldyBUaW1lSW50ZXJ2YWxTY2FsZShkdXJhdGlvbigxLCBcImhvdXJcIikpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy51cGRhdGVDb25maWd1cmF0aW9uKHNjYWxlLCBzY2FsZUNvbmZpZywgd2lkZ2V0Q29uZmlnKTtcblxuICAgICAgICByZXR1cm4gc2NhbGU7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQ3VycmVudGx5IG9ubHkgVGltZUludGVydmFsU2NhbGUgaGFzIGNvbmZpZ3VyYXRpb25cbiAgICAgKlxuICAgICAqIEBwYXJhbSBzY2FsZVxuICAgICAqIEBwYXJhbSBzY2FsZUNvbmZpZ1xuICAgICAqL1xuICAgIHB1YmxpYyB1cGRhdGVDb25maWd1cmF0aW9uKFxuICAgICAgICBzY2FsZTogSVNjYWxlPGFueT4sXG4gICAgICAgIHNjYWxlQ29uZmlnOiBJVGltZXNlcmllc1NjYWxlQ29uZmlnLFxuICAgICAgICB3aWRnZXRDb25maWc/OiBJVGltZXNlcmllc1dpZGdldENvbmZpZ1xuICAgICk6IHZvaWQge1xuICAgICAgICBzd2l0Y2ggKHNjYWxlQ29uZmlnLnR5cGUpIHtcbiAgICAgICAgICAgIGNhc2UgVGltZXNlcmllc1NjYWxlVHlwZS5UaW1lOiB7XG4gICAgICAgICAgICAgICAgY29uc3QgaW50ZXJ2YWwgPSBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzPy50aW1lSW50ZXJ2YWw7XG4gICAgICAgICAgICAgICAgaWYgKGludGVydmFsPy5zdGFydERhdGV0aW1lICYmIGludGVydmFsPy5lbmREYXRldGltZSkge1xuICAgICAgICAgICAgICAgICAgICBzY2FsZS5maXhEb21haW4oW1xuICAgICAgICAgICAgICAgICAgICAgICAgaW50ZXJ2YWwuc3RhcnREYXRldGltZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGludGVydmFsLmVuZERhdGV0aW1lLFxuICAgICAgICAgICAgICAgICAgICBdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjYXNlIFRpbWVzZXJpZXNTY2FsZVR5cGUuVGltZUludGVydmFsOiB7XG4gICAgICAgICAgICAgICAgY29uc3QgaW50ZXJ2YWwgPSBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzPy5pbnRlcnZhbDtcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIGludGVydmFsID09PSBcIm51bWJlclwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChpbnRlcnZhbCA8PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJJbnRlcnZhbCB2YWx1ZSBtdXN0IGJlIGdyZWF0ZXIgdGhhbiB6ZXJvLlwiXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmIChzY2FsZSBpbnN0YW5jZW9mIFRpbWVJbnRlcnZhbFNjYWxlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzY2FsZS5pbnRlcnZhbChkdXJhdGlvbihpbnRlcnZhbCwgXCJzZWNvbmRzXCIpKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNhc2UgVGltZXNlcmllc1NjYWxlVHlwZS5MaW5lYXI6IHtcbiAgICAgICAgICAgICAgICBpZiAoc2NhbGVDb25maWcucHJvcGVydGllcz8uYXhpc1VuaXRzKSB7XG4gICAgICAgICAgICAgICAgICAgIHNjYWxlLnNjYWxlVW5pdHMgPSBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzLmF4aXNVbml0cztcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAod2lkZ2V0Q29uZmlnPy5wcmVzZXQgPT09IFRpbWVzZXJpZXNDaGFydFByZXNldC5TdGF0dXNCYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgc2NhbGVDb25maWcucHJvcGVydGllcz8uYXhpc1VuaXRzID09PSBcInBlcmNlbnRcIiAmJlxuICAgICAgICAgICAgICAgICAgICBzY2FsZS5zZXRGaXhEb21haW5WYWx1ZXNcbiAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgc2NhbGUuc2V0Rml4RG9tYWluVmFsdWVzKFswLCAyNSwgNTAsIDc1LCAxMDBdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICAgICAgICBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzPy5heGlzVW5pdHMgIT09IFwicGVyY2VudFwiICYmXG4gICAgICAgICAgICAgICAgICAgIHNjYWxlQ29uZmlnLnByb3BlcnRpZXM/LmRvbWFpbiAmJlxuICAgICAgICAgICAgICAgICAgICBzY2FsZS5zZXRGaXhEb21haW5WYWx1ZXNcbiAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGRvbWFpbkFkanVzdGVkO1xuICAgICAgICAgICAgICAgICAgICBzd2l0Y2ggKHdpZGdldENvbmZpZz8ucHJlc2V0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFRpbWVzZXJpZXNDaGFydFByZXNldC5TdGFja2VkQmFyOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvbWFpbkFkanVzdGVkID0gdGhpcy5nZXRTdGFja2VkQmFyU2NhbGVEb21haW4oXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlQ29uZmlnLnByb3BlcnRpZXMuZG9tYWluXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgVGltZXNlcmllc0NoYXJ0UHJlc2V0LlN0YWNrZWRBcmVhOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvbWFpbkFkanVzdGVkID0gdGhpcy5nZXRTdGFja2VkQXJlYVNjYWxlRG9tYWluKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzLmRvbWFpbi5tYXhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkb21haW5BZGp1c3RlZCA9IHRoaXMuZ2V0TGluZVNjYWxlRG9tYWluKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZUNvbmZpZy5wcm9wZXJ0aWVzLmRvbWFpblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBzY2FsZS5zZXRGaXhEb21haW5WYWx1ZXMoZG9tYWluQWRqdXN0ZWQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0U3RhY2tlZEJhclNjYWxlRG9tYWluKHtcbiAgICAgICAgbWluLFxuICAgICAgICBtYXgsXG4gICAgfToge1xuICAgICAgICBtaW46IG51bWJlcjtcbiAgICAgICAgbWF4OiBudW1iZXI7XG4gICAgfSk6IG51bWJlcltdIHtcbiAgICAgICAgaWYgKG1heCA9PT0gMCB8fCBtYXggJSA0ID4gMCkge1xuICAgICAgICAgICAgbWF4ID0gbWF4ICsgNCAtIChtYXggJSA0KTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBpbmNyZW1lbnQgPSBNYXRoLmZsb29yKChtYXggLSBtaW4pIC8gNCk7XG4gICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICBtaW4sXG4gICAgICAgICAgICBtaW4gKyBpbmNyZW1lbnQsXG4gICAgICAgICAgICBtaW4gKyAyICogaW5jcmVtZW50LFxuICAgICAgICAgICAgbWF4IC0gaW5jcmVtZW50LFxuICAgICAgICAgICAgbWF4LFxuICAgICAgICBdO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0TGluZVNjYWxlRG9tYWluKHtcbiAgICAgICAgbWluLFxuICAgICAgICBtYXgsXG4gICAgfToge1xuICAgICAgICBtaW46IG51bWJlcjtcbiAgICAgICAgbWF4OiBudW1iZXI7XG4gICAgfSk6IG51bWJlcltdIHtcbiAgICAgICAgaWYgKG1pbiA+IG1heCkge1xuICAgICAgICAgICAgY29uc3QgdG1wID0gbWluO1xuICAgICAgICAgICAgbWluID0gbWF4O1xuICAgICAgICAgICAgbWF4ID0gdG1wO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgZXh0ZW50UmFuZ2UgPSBNYXRoLmFicygobWF4IC0gbWluKSAvICgobWF4ICsgbWluKSAvIDIpKTtcblxuICAgICAgICAvLyBmb3Igc21hbGwgZG9tYWluIHJhbmdlcyBpbmNyZWFzZSBkb21haW4gc28gdGhhdCBzcGlrZXMgYXJlIG5vdCBleGFnZ2VyYXRlZFxuICAgICAgICBpZiAoZXh0ZW50UmFuZ2UgPCAwLjUpIHtcbiAgICAgICAgICAgIG1pbiA9IG1pbiAtIE1hdGguYWJzKG1pbikgKiAwLjU7XG4gICAgICAgICAgICBtYXggPSBtYXggKyBNYXRoLmFicyhtYXgpICogMC41O1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaGFuZGxlcyB6ZXJvIGNhc2VcbiAgICAgICAgaWYgKG1pbiA9PT0gMCAmJiBtYXggPT09IDApIHtcbiAgICAgICAgICAgIG1pbiA9IC0xO1xuICAgICAgICAgICAgbWF4ID0gMTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHNwZWNpYWwgY2FzZSBmb3IgcmVhbCBzbWFsbCBudW1iZXIgc2luY2Ugbm90IHVzaW5nIHNpIHByZWZpeCBhbnltb3JlXG4gICAgICAgIGlmIChNYXRoLmFicyhtYXggLSBtaW4pIDwgMC4wNCkge1xuICAgICAgICAgICAgbWF4ICs9IDAuMDQ7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBwb2ludCA9IChtYXggLSBtaW4pIC8gNDtcbiAgICAgICAgcmV0dXJuIHJvdW5kVG9PcHRpbWFsRGVjaW1hbHMoW1xuICAgICAgICAgICAgbWluLFxuICAgICAgICAgICAgbWluICsgcG9pbnQsXG4gICAgICAgICAgICBtaW4gKyAyICogcG9pbnQsXG4gICAgICAgICAgICBtYXggLSBwb2ludCxcbiAgICAgICAgICAgIG1heCxcbiAgICAgICAgXSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRTdGFja2VkQXJlYVNjYWxlRG9tYWluKG1heDogbnVtYmVyKTogbnVtYmVyW10ge1xuICAgICAgICBjb25zdCBwb2ludCA9IG1heCAvIDQ7XG4gICAgICAgIHJldHVybiBbMCwgcG9pbnQsIHBvaW50ICogMiwgbWF4IC0gcG9pbnQsIG1heF07XG4gICAgfVxufVxuIl19
|