@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,84 +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 get from "lodash/get";
|
|
22
|
-
import { distinctUntilChanged, map } from "rxjs/operators";
|
|
23
|
-
import { getParentComponentId } from "../../functions/get-parent-component-id";
|
|
24
|
-
import { parseStringWithData } from "../../functions/parse-string-with-data";
|
|
25
|
-
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
|
|
26
|
-
import * as i0 from "@angular/core";
|
|
27
|
-
import * as i1 from "../../pizzagna/services/pizzagna.service";
|
|
28
|
-
export class PizzagnaBroadcasterService {
|
|
29
|
-
constructor(pizzagnaService) {
|
|
30
|
-
this.pizzagnaService = pizzagnaService;
|
|
31
|
-
this.defaultTrackOn = "pizzagna";
|
|
32
|
-
this.subscriptions = [];
|
|
33
|
-
}
|
|
34
|
-
setComponent(component, componentId) {
|
|
35
|
-
this.component = component;
|
|
36
|
-
this.componentId = componentId;
|
|
37
|
-
this.parentComponentId = getParentComponentId(componentId);
|
|
38
|
-
this.initChangeSubscriptions();
|
|
39
|
-
}
|
|
40
|
-
updateConfiguration(properties) {
|
|
41
|
-
this.configs = properties?.configs;
|
|
42
|
-
}
|
|
43
|
-
initChangeSubscriptions() {
|
|
44
|
-
for (const config of this.configs) {
|
|
45
|
-
const observable = this.getObservableFor(config);
|
|
46
|
-
if (!observable) {
|
|
47
|
-
console.warn("no observable found on 'PizzagnaBroadcasterService', for part: ", config);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
const subscription = observable.subscribe((v) => {
|
|
51
|
-
for (const path of config.paths) {
|
|
52
|
-
const validatedPath = parseStringWithData(path, this);
|
|
53
|
-
this.pizzagnaService.setProperty(validatedPath, v);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
this.subscriptions.push(subscription);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
getObservableFor(config) {
|
|
60
|
-
const trackOn = config.trackOn || this.defaultTrackOn;
|
|
61
|
-
const observable = trackOn === "component"
|
|
62
|
-
? this.getComponentObservableFor(config)
|
|
63
|
-
: this.getPizzagnaObservableFor(config);
|
|
64
|
-
return observable;
|
|
65
|
-
}
|
|
66
|
-
getPizzagnaObservableFor(part) {
|
|
67
|
-
return this.pizzagnaService.pizzaChanged.pipe(map((v) => get(v, part.key)), distinctUntilChanged());
|
|
68
|
-
}
|
|
69
|
-
getComponentObservableFor(part) {
|
|
70
|
-
const obs = get(this.component, part.key);
|
|
71
|
-
return obs?.pipe(distinctUntilChanged());
|
|
72
|
-
}
|
|
73
|
-
ngOnDestroy() {
|
|
74
|
-
for (const subscription of this.subscriptions) {
|
|
75
|
-
subscription.unsubscribe();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PizzagnaBroadcasterService, deps: [{ token: i1.PizzagnaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
79
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PizzagnaBroadcasterService }); }
|
|
80
|
-
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PizzagnaBroadcasterService, decorators: [{
|
|
82
|
-
type: Injectable
|
|
83
|
-
}], ctorParameters: () => [{ type: i1.PizzagnaService }] });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGl6emFnbmEtYnJvYWRjYXN0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NvbXBvbmVudElkKTtcblxuICAgICAgICB0aGlzLmluaXRDaGFuZ2VTdWJzY3JpcHRpb25zKCk7XG4gICAgfVxuXG4gICAgcHVibGljIHVwZGF0ZUNvbmZpZ3VyYXRpb24ocHJvcGVydGllczogSVByb3BlcnRpZXMpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5jb25maWdzID0gcHJvcGVydGllcz8uY29uZmlncztcbiAgICB9XG5cbiAgICBwcml2YXRlIGluaXRDaGFuZ2VTdWJzY3JpcHRpb25zKCkge1xuICAgICAgICBmb3IgKGNvbnN0IGNvbmZpZyBvZiB0aGlzLmNvbmZpZ3MpIHtcbiAgICAgICAgICAgIGNvbnN0IG9ic2VydmFibGUgPSB0aGlzLmdldE9ic2VydmFibGVGb3IoY29uZmlnKTtcblxuICAgICAgICAgICAgaWYgKCFvYnNlcnZhYmxlKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS53YXJuKFxuICAgICAgICAgICAgICAgICAgICBcIm5vIG9ic2VydmFibGUgZm91bmQgb24gJ1BpenphZ25hQnJvYWRjYXN0ZXJTZXJ2aWNlJywgZm9yIHBhcnQ6IFwiLFxuICAgICAgICAgICAgICAgICAgICBjb25maWdcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY29uc3Qgc3Vic2NyaXB0aW9uID0gb2JzZXJ2YWJsZS5zdWJzY3JpYmUoKHYpID0+IHtcbiAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IHBhdGggb2YgY29uZmlnLnBhdGhzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHZhbGlkYXRlZFBhdGggPSBwYXJzZVN0cmluZ1dpdGhEYXRhKHBhdGgsIHRoaXMpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnBpenphZ25hU2VydmljZS5zZXRQcm9wZXJ0eSh2YWxpZGF0ZWRQYXRoLCB2KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHRoaXMuc3Vic2NyaXB0aW9ucy5wdXNoKHN1YnNjcmlwdGlvbik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIGdldE9ic2VydmFibGVGb3IoY29uZmlnOiBJQnJvYWRjYXN0ZXJDb25maWcpIHtcbiAgICAgICAgY29uc3QgdHJhY2tPbjogQnJvYWRjYXN0ZXJUcmFja09uVHlwZSA9XG4gICAgICAgICAgICBjb25maWcudHJhY2tPbiB8fCB0aGlzLmRlZmF1bHRUcmFja09uO1xuICAgICAgICBjb25zdCBvYnNlcnZhYmxlOiBPYnNlcnZhYmxlPGFueT4gPVxuICAgICAgICAgICAgdHJhY2tPbiA9PT0gXCJjb21wb25lbnRcIlxuICAgICAgICAgICAgICAgID8gdGhpcy5nZXRDb21wb25lbnRPYnNlcnZhYmxlRm9yKGNvbmZpZylcbiAgICAgICAgICAgICAgICA6IHRoaXMuZ2V0UGl6emFnbmFPYnNlcnZhYmxlRm9yKGNvbmZpZyk7XG4gICAgICAgIHJldHVybiBvYnNlcnZhYmxlO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0UGl6emFnbmFPYnNlcnZhYmxlRm9yKHBhcnQ6IElCcm9hZGNhc3RlckNvbmZpZykge1xuICAgICAgICByZXR1cm4gdGhpcy5waXp6YWduYVNlcnZpY2UucGl6emFDaGFuZ2VkLnBpcGUoXG4gICAgICAgICAgICBtYXAoKHYpID0+IGdldCh2LCBwYXJ0LmtleSkpLFxuICAgICAgICAgICAgZGlzdGluY3RVbnRpbENoYW5nZWQoKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0Q29tcG9uZW50T2JzZXJ2YWJsZUZvcihwYXJ0OiBJQnJvYWRjYXN0ZXJDb25maWcpIHtcbiAgICAgICAgY29uc3Qgb2JzOiBPYnNlcnZhYmxlPGFueT4gPSBnZXQodGhpcy5jb21wb25lbnQsIHBhcnQua2V5KTtcbiAgICAgICAgcmV0dXJuIG9icz8ucGlwZShkaXN0aW5jdFVudGlsQ2hhbmdlZCgpKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgICAgIGZvciAoY29uc3Qgc3Vic2NyaXB0aW9uIG9mIHRoaXMuc3Vic2NyaXB0aW9ucykge1xuICAgICAgICAgICAgc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
@@ -1,28 +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
|
-
export * from "./refresher";
|
|
21
|
-
export * from "./refresher-settings.service";
|
|
22
|
-
export * from "./data-source-adapter";
|
|
23
|
-
export * from "./timeseries-data-source-adapter";
|
|
24
|
-
export * from "./table-data-source-adapter";
|
|
25
|
-
export * from "./interaction/interaction-handler";
|
|
26
|
-
export * from "./interaction/url-interaction-handler";
|
|
27
|
-
export * from "./types";
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9wcm92aWRlcnMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERBQTREO0FBQzVELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsdURBQXVEO0FBQ3ZELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLCtFQUErRTtBQUMvRSwwRUFBMEU7QUFDMUUsaUZBQWlGO0FBQ2pGLDZFQUE2RTtBQUM3RSxpQkFBaUI7QUFFakIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyDCqSAyMDIyIFNvbGFyV2luZHMgV29ybGR3aWRlLCB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LyAgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UgQU5EIE5PTklORlJJTkdFTUVOVC4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFXG4vLyAgQVVUSE9SUyBPUiBDT1BZUklHSFQgSE9MREVSUyBCRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdFUyBPUiBPVEhFUlxuLy8gIExJQUJJTElUWSwgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIFRPUlQgT1IgT1RIRVJXSVNFLCBBUklTSU5HIEZST00sXG4vLyAgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgU09GVFdBUkUgT1IgVEhFIFVTRSBPUiBPVEhFUiBERUFMSU5HUyBJTlxuLy8gIFRIRSBTT0ZUV0FSRS5cblxuZXhwb3J0ICogZnJvbSBcIi4vcmVmcmVzaGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZWZyZXNoZXItc2V0dGluZ3Muc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGF0YS1zb3VyY2UtYWRhcHRlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdGltZXNlcmllcy1kYXRhLXNvdXJjZS1hZGFwdGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi90YWJsZS1kYXRhLXNvdXJjZS1hZGFwdGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9pbnRlcmFjdGlvbi9pbnRlcmFjdGlvbi1oYW5kbGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9pbnRlcmFjdGlvbi91cmwtaW50ZXJhY3Rpb24taGFuZGxlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdHlwZXNcIjtcbiJdfQ==
|
|
@@ -1,52 +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 { BehaviorSubject } from "rxjs";
|
|
22
|
-
import { DEFAULT_REFRESH_INTERVAL } from "./types";
|
|
23
|
-
import * as i0 from "@angular/core";
|
|
24
|
-
/**
|
|
25
|
-
* This provider allows a system wide definition of widget refresh rates.
|
|
26
|
-
*/
|
|
27
|
-
export class RefresherSettingsService {
|
|
28
|
-
constructor() {
|
|
29
|
-
this._refreshRateSeconds = DEFAULT_REFRESH_INTERVAL;
|
|
30
|
-
this.refreshRateSeconds$ = new BehaviorSubject(this.refreshRateSeconds);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* This is a system wide definition of refresh rate. Widgets have to be configured to use
|
|
34
|
-
* the system settings to leverage this value.
|
|
35
|
-
*/
|
|
36
|
-
get refreshRateSeconds() {
|
|
37
|
-
return this._refreshRateSeconds;
|
|
38
|
-
}
|
|
39
|
-
set refreshRateSeconds(value) {
|
|
40
|
-
this._refreshRateSeconds = value;
|
|
41
|
-
this.refreshRateSeconds$.next(this._refreshRateSeconds);
|
|
42
|
-
}
|
|
43
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RefresherSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RefresherSettingsService, providedIn: "root" }); }
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RefresherSettingsService, decorators: [{
|
|
47
|
-
type: Injectable,
|
|
48
|
-
args: [{
|
|
49
|
-
providedIn: "root",
|
|
50
|
-
}]
|
|
51
|
-
}] });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmcmVzaGVyLXNldHRpbmdzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvcHJvdmlkZXJzL3JlZnJlc2hlci1zZXR0aW5ncy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4RUFBOEU7QUFDOUUsK0VBQStFO0FBQy9FLDhFQUE4RTtBQUM5RSw0REFBNEQ7QUFDNUQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSx1REFBdUQ7QUFDdkQsRUFBRTtBQU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Jlc2ggcmF0ZS4gV2lkZ2V0cyBoYXZlIHRvIGJlIGNvbmZpZ3VyZWQgdG8gdXNlXG4gICAgICogdGhlIHN5c3RlbSBzZXR0aW5ncyB0byBsZXZlcmFnZSB0aGlzIHZhbHVlLlxuICAgICAqL1xuICAgIHB1YmxpYyBnZXQgcmVmcmVzaFJhdGVTZWNvbmRzKCk6IG51bWJlciB7XG4gICAgICAgIHJldHVybiB0aGlzLl9yZWZyZXNoUmF0ZVNlY29uZHM7XG4gICAgfVxuXG4gICAgcHVibGljIHNldCByZWZyZXNoUmF0ZVNlY29uZHModmFsdWU6IG51bWJlcikge1xuICAgICAgICB0aGlzLl9yZWZyZXNoUmF0ZVNlY29uZHMgPSB2YWx1ZTtcbiAgICAgICAgdGhpcy5yZWZyZXNoUmF0ZVNlY29uZHMkLm5leHQodGhpcy5fcmVmcmVzaFJhdGVTZWNvbmRzKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,105 +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 { Inject, Injectable, NgZone } from "@angular/core";
|
|
21
|
-
import { Subject } from "rxjs";
|
|
22
|
-
import { takeUntil } from "rxjs/operators";
|
|
23
|
-
import { EventBus } from "@nova-ui/bits";
|
|
24
|
-
import { RefresherSettingsService } from "./refresher-settings.service";
|
|
25
|
-
import { DEFAULT_REFRESH_INTERVAL } from "./types";
|
|
26
|
-
import { REFRESH } from "../../services/types";
|
|
27
|
-
import { PIZZAGNA_EVENT_BUS } from "../../types";
|
|
28
|
-
import * as i0 from "@angular/core";
|
|
29
|
-
import * as i1 from "./refresher-settings.service";
|
|
30
|
-
import * as i2 from "@nova-ui/bits";
|
|
31
|
-
/**
|
|
32
|
-
* This provider emits the REFRESH event every X milliseconds
|
|
33
|
-
*/
|
|
34
|
-
export class Refresher {
|
|
35
|
-
constructor(eventBus, ngZone, refresherSettings) {
|
|
36
|
-
this.eventBus = eventBus;
|
|
37
|
-
this.ngZone = ngZone;
|
|
38
|
-
this.refresherSettings = refresherSettings;
|
|
39
|
-
this.enabled = true;
|
|
40
|
-
this.overrideDefaultSettings = true;
|
|
41
|
-
this.interval = DEFAULT_REFRESH_INTERVAL;
|
|
42
|
-
this.eventDef = REFRESH;
|
|
43
|
-
this.destroy$ = new Subject();
|
|
44
|
-
this.refresherSettings.refreshRateSeconds$
|
|
45
|
-
.pipe(takeUntil(this.destroy$))
|
|
46
|
-
.subscribe((systemRefreshRate) => {
|
|
47
|
-
if (!this.overrideDefaultSettings) {
|
|
48
|
-
this.initializeInterval();
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
updateConfiguration(properties) {
|
|
53
|
-
this.interval = properties.interval ?? DEFAULT_REFRESH_INTERVAL;
|
|
54
|
-
this.enabled = properties.enabled ?? true;
|
|
55
|
-
this.overrideDefaultSettings =
|
|
56
|
-
properties.overrideDefaultSettings ?? true;
|
|
57
|
-
this.eventDef = properties.event ?? REFRESH;
|
|
58
|
-
this.initializeInterval();
|
|
59
|
-
}
|
|
60
|
-
ngOnDestroy() {
|
|
61
|
-
this.clearInterval();
|
|
62
|
-
this.destroy$.next();
|
|
63
|
-
this.destroy$.complete();
|
|
64
|
-
}
|
|
65
|
-
initializeInterval() {
|
|
66
|
-
this.clearInterval();
|
|
67
|
-
if (typeof this.interval === "undefined" ||
|
|
68
|
-
this.getInterval() <= 0 ||
|
|
69
|
-
this.enabled === false) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
this.ngZone.runOutsideAngular(() => {
|
|
73
|
-
// running timeout outside of angular zone to prevent visual tests from timing out
|
|
74
|
-
this.intervalRef = setInterval(() => {
|
|
75
|
-
this.ngZone.run(() => {
|
|
76
|
-
// callback function should be executed in zone to preserve the angular change detection
|
|
77
|
-
this.performAction();
|
|
78
|
-
});
|
|
79
|
-
}, this.getInterval() * 1000);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
performAction() {
|
|
83
|
-
this.eventBus.getStream(this.eventDef).next({});
|
|
84
|
-
}
|
|
85
|
-
getInterval() {
|
|
86
|
-
return this.overrideDefaultSettings
|
|
87
|
-
? this.interval
|
|
88
|
-
: this.refresherSettings.refreshRateSeconds;
|
|
89
|
-
}
|
|
90
|
-
clearInterval() {
|
|
91
|
-
if (typeof this.intervalRef !== "undefined") {
|
|
92
|
-
clearInterval(this.intervalRef);
|
|
93
|
-
this.intervalRef = undefined;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Refresher, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: i0.NgZone }, { token: i1.RefresherSettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
97
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Refresher }); }
|
|
98
|
-
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Refresher, decorators: [{
|
|
100
|
-
type: Injectable
|
|
101
|
-
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
102
|
-
type: Inject,
|
|
103
|
-
args: [PIZZAGNA_EVENT_BUS]
|
|
104
|
-
}] }, { type: i0.NgZone }, { type: i1.RefresherSettingsService }] });
|
|
105
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmcmVzaGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3Byb3ZpZGVycy9yZWZyZXNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseURBQXlEO0FBQ3pELEVBQUU7QUFDRiwrRUFBK0U7QUFDL0UsNEVBQTRFO0FBQzVFLDhFQUE4RTtBQUM5RSwrRUFBK0U7QUFDL0UsOEVBQThFO0FBQzlFLDREQUE0RDtBQUM1RCxFQUFFO0FBQ0YsNkVBQTZFO0FBQzdFLHVEQUF1RDtBQUN2RCxFQUFFO0FBQ0YsNkVBQTZFO0FBQzdFLDRFQUE0RTtBQUM1RSwrRUFBK0U7QUFDL0UsMEVBQTBFO0FBQzFFLGlGQUFpRjtBQUNqRiw2RUFBNkU7QUFDN0UsaUJBQWlCO0FBRWpCLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBYSxNQUFNLGVBQWUsQ0FBQzt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6IHZvaWQge1xuICAgICAgICB0aGlzLmV2ZW50QnVzLmdldFN0cmVhbSh0aGlzLmV2ZW50RGVmKS5uZXh0KHt9KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGdldEludGVydmFsKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5vdmVycmlkZURlZmF1bHRTZXR0aW5nc1xuICAgICAgICAgICAgPyB0aGlzLmludGVydmFsXG4gICAgICAgICAgICA6IHRoaXMucmVmcmVzaGVyU2V0dGluZ3MucmVmcmVzaFJhdGVTZWNvbmRzO1xuICAgIH1cblxuICAgIHByaXZhdGUgY2xlYXJJbnRlcnZhbCgpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmludGVydmFsUmVmICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICBjbGVhckludGVydmFsKHRoaXMuaW50ZXJ2YWxSZWYpO1xuICAgICAgICAgICAgdGhpcy5pbnRlcnZhbFJlZiA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,67 +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 { Inject, Injectable } from "@angular/core";
|
|
21
|
-
import { Subject } from "rxjs";
|
|
22
|
-
import { takeUntil } from "rxjs/operators";
|
|
23
|
-
import { EventBus } from "@nova-ui/bits";
|
|
24
|
-
import { DATA_SOURCE_OUTPUT } from "../../configurator/types";
|
|
25
|
-
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
|
|
26
|
-
import { PizzagnaLayer, PIZZAGNA_EVENT_BUS } from "../../types";
|
|
27
|
-
import * as i0 from "@angular/core";
|
|
28
|
-
import * as i1 from "../../pizzagna/services/pizzagna.service";
|
|
29
|
-
import * as i2 from "@nova-ui/bits";
|
|
30
|
-
export class StatusContentFallbackAdapter {
|
|
31
|
-
constructor(eventBus, pizzagnaService) {
|
|
32
|
-
this.eventBus = eventBus;
|
|
33
|
-
this.pizzagnaService = pizzagnaService;
|
|
34
|
-
this.destroy$ = new Subject();
|
|
35
|
-
this.eventBus
|
|
36
|
-
.getStream(DATA_SOURCE_OUTPUT)
|
|
37
|
-
.pipe(takeUntil(this.destroy$))
|
|
38
|
-
.subscribe((event) => {
|
|
39
|
-
this.handleDataSourceOutput(event);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
ngOnDestroy() {
|
|
43
|
-
this.destroy$.next();
|
|
44
|
-
this.destroy$.complete();
|
|
45
|
-
}
|
|
46
|
-
setComponent(component, componentId) {
|
|
47
|
-
this.componentId = componentId;
|
|
48
|
-
}
|
|
49
|
-
handleDataSourceOutput(event) {
|
|
50
|
-
this.pizzagnaService.setProperty({
|
|
51
|
-
componentId: this.componentId,
|
|
52
|
-
propertyPath: ["fallbackKey"],
|
|
53
|
-
pizzagnaKey: PizzagnaLayer.Data,
|
|
54
|
-
}, typeof event.payload?.error?.type !== "undefined"
|
|
55
|
-
? event.payload?.error?.type.toString()
|
|
56
|
-
: undefined);
|
|
57
|
-
}
|
|
58
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusContentFallbackAdapter, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: i1.PizzagnaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
59
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusContentFallbackAdapter }); }
|
|
60
|
-
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusContentFallbackAdapter, decorators: [{
|
|
62
|
-
type: Injectable
|
|
63
|
-
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
64
|
-
type: Inject,
|
|
65
|
-
args: [PIZZAGNA_EVENT_BUS]
|
|
66
|
-
}] }, { type: i1.PizzagnaService }] });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLWNvbnRlbnQtZmFsbGJhY2stYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9wcm92aWRlcnMvc3RhdHVzLWNvbnRlbnQtZmFsbGJhY2stYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0R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hbmRsZURhdGFTb3VyY2VPdXRwdXQoXG4gICAgICAgIGV2ZW50OiBJRXZlbnQ8YW55IHwgSURhdGFTb3VyY2VPdXRwdXRQYXlsb2FkPGFueT4+XG4gICAgKTogdm9pZCB7XG4gICAgICAgIHRoaXMucGl6emFnbmFTZXJ2aWNlLnNldFByb3BlcnR5KFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudElkOiB0aGlzLmNvbXBvbmVudElkLFxuICAgICAgICAgICAgICAgIHByb3BlcnR5UGF0aDogW1wiZmFsbGJhY2tLZXlcIl0sXG4gICAgICAgICAgICAgICAgcGl6emFnbmFLZXk6IFBpenphZ25hTGF5ZXIuRGF0YSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB0eXBlb2YgZXZlbnQucGF5bG9hZD8uZXJyb3I/LnR5cGUgIT09IFwidW5kZWZpbmVkXCJcbiAgICAgICAgICAgICAgICA/IGV2ZW50LnBheWxvYWQ/LmVycm9yPy50eXBlLnRvU3RyaW5nKClcbiAgICAgICAgICAgICAgICA6IHVuZGVmaW5lZFxuICAgICAgICApO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,90 +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 { __decorate, __metadata, __param } from "tslib";
|
|
21
|
-
import { Inject, Optional } from "@angular/core";
|
|
22
|
-
// eslint-disable-next-line import/no-deprecated
|
|
23
|
-
import { merge, zip } from "rxjs";
|
|
24
|
-
import { debounceTime, map, startWith,
|
|
25
|
-
// eslint-disable-next-line import/no-deprecated
|
|
26
|
-
switchMap, takeUntil, tap, } from "rxjs/operators";
|
|
27
|
-
import { EventBus, VirtualViewportManager, } from "@nova-ui/bits";
|
|
28
|
-
import { DataSourceAdapter } from "./data-source-adapter";
|
|
29
|
-
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
|
|
30
|
-
import { REFRESH, SCROLL_NEXT_PAGE, SET_NEXT_PAGE, WIDGET_READY, } from "../../services/types";
|
|
31
|
-
import { DATA_SOURCE, PizzagnaLayer, PIZZAGNA_EVENT_BUS, } from "../../types";
|
|
32
|
-
let TableDataSourceAdapter = class TableDataSourceAdapter extends DataSourceAdapter {
|
|
33
|
-
constructor(eventBus, dataSource, pizzagnaService, virtualViewport) {
|
|
34
|
-
super(eventBus, dataSource, pizzagnaService);
|
|
35
|
-
this.virtualViewport = virtualViewport;
|
|
36
|
-
}
|
|
37
|
-
setupRefreshListener() {
|
|
38
|
-
// Note: We should wait until TableWidget is ready to be able to proceed with reset event
|
|
39
|
-
// We can also listen after SCROLL_NEXT_PAGE instead of WIDGET_READY because right now
|
|
40
|
-
// they are executed simultaneously but we don't know how things will change in the future
|
|
41
|
-
const refresh$ = zip(this.eventBus.getStream(WIDGET_READY), this.eventBus.getStream(REFRESH)).pipe(
|
|
42
|
-
// Note: Using startWith() to re-trigger the REFRESH stream that was triggered at least on time before WIDGET_READY
|
|
43
|
-
// eslint-disable-next-line import/no-deprecated
|
|
44
|
-
switchMap(() =>
|
|
45
|
-
// eslint-disable-next-line import/no-deprecated
|
|
46
|
-
this.eventBus.getStream(REFRESH).pipe(startWith(undefined))), tap(() => this.virtualViewport.reset({ emitFirstPage: false })), map(() => { }));
|
|
47
|
-
// eslint-disable-next-line import/no-deprecated
|
|
48
|
-
merge(refresh$, this.eventBus.getStream(SCROLL_NEXT_PAGE), this.eventBus.getStream(SET_NEXT_PAGE))
|
|
49
|
-
.pipe(
|
|
50
|
-
// Note: While SCROLL_NEXT_PAGE is triggered on TableWidget initialization aka WIDGET_READY
|
|
51
|
-
// we might encounter REFRESH and SCROLL_NEXT_PAGE triggered at the same time.
|
|
52
|
-
// Setting a small debounceTime will help us manage simultaneous requests
|
|
53
|
-
debounceTime(10), tap(() => this.handleRefresh()), takeUntil(this.destroy$))
|
|
54
|
-
.subscribe();
|
|
55
|
-
}
|
|
56
|
-
updateAdapterProperties(properties) {
|
|
57
|
-
this.dataPath = properties.dataPath;
|
|
58
|
-
this.dataFieldsPath = properties.dataFieldsPath;
|
|
59
|
-
this.totalItemsPath = properties.totalItemsPath;
|
|
60
|
-
}
|
|
61
|
-
updateOutput(output) {
|
|
62
|
-
const total = output?.paginator?.total;
|
|
63
|
-
const items = output?.repeat?.itemsSource;
|
|
64
|
-
const dataFields = output?.dataFields;
|
|
65
|
-
this.pizzagnaService.setProperty({
|
|
66
|
-
pizzagnaKey: PizzagnaLayer.Data,
|
|
67
|
-
componentId: this.componentId,
|
|
68
|
-
propertyPath: [this.totalItemsPath],
|
|
69
|
-
}, total);
|
|
70
|
-
this.pizzagnaService.setProperty({
|
|
71
|
-
pizzagnaKey: PizzagnaLayer.Data,
|
|
72
|
-
componentId: this.componentId,
|
|
73
|
-
propertyPath: [this.dataPath],
|
|
74
|
-
}, items);
|
|
75
|
-
this.pizzagnaService.setProperty({
|
|
76
|
-
pizzagnaKey: PizzagnaLayer.Data,
|
|
77
|
-
componentId: this.componentId,
|
|
78
|
-
propertyPath: [this.dataFieldsPath],
|
|
79
|
-
}, dataFields);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
TableDataSourceAdapter = __decorate([
|
|
83
|
-
__param(0, Inject(PIZZAGNA_EVENT_BUS)),
|
|
84
|
-
__param(1, Inject(DATA_SOURCE)),
|
|
85
|
-
__param(3, Optional()),
|
|
86
|
-
__metadata("design:paramtypes", [EventBus, Object, PizzagnaService,
|
|
87
|
-
VirtualViewportManager])
|
|
88
|
-
], TableDataSourceAdapter);
|
|
89
|
-
export { TableDataSourceAdapter };
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtZGF0YS1zb3VyY2UtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9wcm92aWRlcnMvdGFibGUtZGF0YS1zb3VyY2UtYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERBQTREO0FBQzVELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsdURBQXVEO0FBQ3ZELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLCtFQUErRTtBQUMvRSwwRUFBMEU7QUFDMUUsaUZBQWlGO0FBQ2pGLDZFQUE2RTtBQUM3RSxp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ID0gb3V0cHV0Py5kYXRhRmllbGRzO1xuXG4gICAgICAgIHRoaXMucGl6emFnbmFTZXJ2aWNlLnNldFByb3BlcnR5KFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHBpenphZ25hS2V5OiBQaXp6YWduYUxheWVyLkRhdGEsXG4gICAgICAgICAgICAgICAgY29tcG9uZW50SWQ6IHRoaXMuY29tcG9uZW50SWQsXG4gICAgICAgICAgICAgICAgcHJvcGVydHlQYXRoOiBbdGhpcy50b3RhbEl0ZW1zUGF0aF0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdG90YWxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLnBpenphZ25hU2VydmljZS5zZXRQcm9wZXJ0eShcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBwaXp6YWduYUtleTogUGl6emFnbmFMYXllci5EYXRhLFxuICAgICAgICAgICAgICAgIGNvbXBvbmVudElkOiB0aGlzLmNvbXBvbmVudElkLFxuICAgICAgICAgICAgICAgIHByb3BlcnR5UGF0aDogW3RoaXMuZGF0YVBhdGhdLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGl0ZW1zXG4gICAgICAgICk7XG5cbiAgICAgICAgdGhpcy5waXp6YWduYVNlcnZpY2Uuc2V0UHJvcGVydHkoXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgcGl6emFnbmFLZXk6IFBpenphZ25hTGF5ZXIuRGF0YSxcbiAgICAgICAgICAgICAgICBjb21wb25lbnRJZDogdGhpcy5jb21wb25lbnRJZCxcbiAgICAgICAgICAgICAgICBwcm9wZXJ0eVBhdGg6IFt0aGlzLmRhdGFGaWVsZHNQYXRoXSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBkYXRhRmllbGRzXG4gICAgICAgICk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,72 +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 { __decorate, __metadata, __param } from "tslib";
|
|
21
|
-
import { Inject } from "@angular/core";
|
|
22
|
-
import clone from "lodash/clone";
|
|
23
|
-
import { EventBus, } from "@nova-ui/bits";
|
|
24
|
-
import { DataSourceAdapter } from "./data-source-adapter";
|
|
25
|
-
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
|
|
26
|
-
import { DATA_SOURCE, PIZZAGNA_EVENT_BUS } from "../../types";
|
|
27
|
-
let TimeseriesDataSourceAdapter = class TimeseriesDataSourceAdapter extends DataSourceAdapter {
|
|
28
|
-
constructor(eventBus, dataSource, pizzagnaService) {
|
|
29
|
-
super(eventBus, dataSource, pizzagnaService);
|
|
30
|
-
this.seriesIndex = [];
|
|
31
|
-
}
|
|
32
|
-
updateConfiguration(properties) {
|
|
33
|
-
this.seriesIndex = clone(properties.series);
|
|
34
|
-
super.updateConfiguration(properties);
|
|
35
|
-
}
|
|
36
|
-
processOutput(value) {
|
|
37
|
-
if (!value) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
...value,
|
|
42
|
-
series: this.buildSeriesSet(value?.series),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Builds the series set by mapping the series selected in the configurator to the data received from the data source.
|
|
47
|
-
* @param data
|
|
48
|
-
*/
|
|
49
|
-
buildSeriesSet(data) {
|
|
50
|
-
if (!data) {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
// displaying only series which are in widget config
|
|
54
|
-
return data
|
|
55
|
-
.filter((series) => this.seriesIndex.find((s) => s.selectedSeriesId === series.id))
|
|
56
|
-
.map((series) => ({
|
|
57
|
-
id: series.id,
|
|
58
|
-
data: series.data,
|
|
59
|
-
link: series.link,
|
|
60
|
-
secondaryLink: series.secondaryLink,
|
|
61
|
-
legendDescriptionPrimary: this.seriesIndex.find((s) => s.selectedSeriesId === series.id)?.label,
|
|
62
|
-
legendDescriptionSecondary: series.description,
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
TimeseriesDataSourceAdapter = __decorate([
|
|
67
|
-
__param(0, Inject(PIZZAGNA_EVENT_BUS)),
|
|
68
|
-
__param(1, Inject(DATA_SOURCE)),
|
|
69
|
-
__metadata("design:paramtypes", [EventBus, Object, PizzagnaService])
|
|
70
|
-
], TimeseriesDataSourceAdapter);
|
|
71
|
-
export { TimeseriesDataSourceAdapter };
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1kYXRhLXNvdXJjZS1hZGFwdGVyLmpzIiwic291cmNlUm9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gIC8vIGRpc3BsYXlpbmcgb25seSBzZXJpZXMgd2hpY2ggYXJlIGluIHdpZGdldCBjb25maWdcbiAgICAgICAgcmV0dXJuIGRhdGFcbiAgICAgICAgICAgIC5maWx0ZXIoKHNlcmllczogSVRpbWVzZXJpZXNXaWRnZXREYXRhKSA9PlxuICAgICAgICAgICAgICAgIHRoaXMuc2VyaWVzSW5kZXguZmluZCgocykgPT4gcy5zZWxlY3RlZFNlcmllc0lkID09PSBzZXJpZXMuaWQpXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAubWFwKChzZXJpZXM6IElUaW1lc2VyaWVzV2lkZ2V0RGF0YSkgPT4gKHtcbiAgICAgICAgICAgICAgICBpZDogc2VyaWVzLmlkLFxuICAgICAgICAgICAgICAgIGRhdGE6IHNlcmllcy5kYXRhLFxuICAgICAgICAgICAgICAgIGxpbms6IHNlcmllcy5saW5rLFxuICAgICAgICAgICAgICAgIHNlY29uZGFyeUxpbms6IHNlcmllcy5zZWNvbmRhcnlMaW5rLFxuICAgICAgICAgICAgICAgIGxlZ2VuZERlc2NyaXB0aW9uUHJpbWFyeTogdGhpcy5zZXJpZXNJbmRleC5maW5kKFxuICAgICAgICAgICAgICAgICAgICAocykgPT4gcy5zZWxlY3RlZFNlcmllc0lkID09PSBzZXJpZXMuaWRcbiAgICAgICAgICAgICAgICApPy5sYWJlbCxcbiAgICAgICAgICAgICAgICBsZWdlbmREZXNjcmlwdGlvblNlY29uZGFyeTogc2VyaWVzLmRlc2NyaXB0aW9uLFxuICAgICAgICAgICAgfSkpO1xuICAgIH1cbn1cbiJdfQ==
|