@nova-ui/dashboards 12.0.17 → 13.0.1-3938
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/common/common.module.mjs +41 -0
- package/esm2020/lib/common/components/preview-overlay/preview-overlay.component.mjs +35 -0
- package/{esm2015/lib/common/components/public-api.js → esm2020/lib/common/components/public-api.mjs} +0 -0
- package/esm2020/lib/common/components/widget-error/widget-error.component.mjs +54 -0
- package/{esm2015/lib/common/constants.js → esm2020/lib/common/constants.mjs} +0 -0
- package/esm2020/lib/common/pipes/dashboard-unit-conversion-pipe.mjs +57 -0
- package/{esm2015/lib/common/pipes/public-api.js → esm2020/lib/common/pipes/public-api.mjs} +0 -0
- package/{esm2015/lib/common/public-api.js → esm2020/lib/common/public-api.mjs} +0 -0
- package/esm2020/lib/components/dashboard/dashboard.component.mjs +222 -0
- package/{esm2015/lib/components/dashboard/default-gridster-config.js → esm2020/lib/components/dashboard/default-gridster-config.mjs} +0 -0
- package/{esm2015/lib/components/dashboard/public-api.js → esm2020/lib/components/dashboard/public-api.mjs} +0 -0
- package/{esm2015/lib/components/dashboard/types.js → esm2020/lib/components/dashboard/types.mjs} +0 -0
- package/esm2020/lib/components/embedded-content/embedded-content.component.mjs +95 -0
- package/esm2020/lib/components/kpi-widget/kpi.component.mjs +119 -0
- package/{esm2015/lib/components/kpi-widget/public-api.js → esm2020/lib/components/kpi-widget/public-api.mjs} +0 -0
- package/{esm2015/lib/components/kpi-widget/types.js → esm2020/lib/components/kpi-widget/types.mjs} +0 -0
- package/esm2020/lib/components/layouts/base-layout.mjs +118 -0
- package/{esm2015/lib/components/layouts/public-api.js → esm2020/lib/components/layouts/public-api.mjs} +0 -0
- package/esm2020/lib/components/layouts/stack/stack.component.mjs +65 -0
- package/esm2020/lib/components/layouts/tiles/tiles.component.mjs +99 -0
- package/esm2020/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.mjs +62 -0
- package/esm2020/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.mjs +76 -0
- package/esm2020/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.mjs +60 -0
- package/esm2020/lib/components/list-widget/list-widget.component.mjs +105 -0
- package/{esm2015/lib/components/list-widget/public-api.js → esm2020/lib/components/list-widget/public-api.mjs} +0 -0
- package/{esm2015/lib/components/list-widget/types.js → esm2020/lib/components/list-widget/types.mjs} +0 -0
- package/esm2020/lib/components/loading/loading.component.mjs +51 -0
- package/{esm2015/lib/components/loading/public-api.js → esm2020/lib/components/loading/public-api.mjs} +0 -0
- package/esm2020/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.mjs +152 -0
- package/esm2020/lib/components/proportional-widget/proportional-widget.component.mjs +328 -0
- package/{esm2015/lib/components/proportional-widget/public-api.js → esm2020/lib/components/proportional-widget/public-api.mjs} +0 -0
- package/{esm2015/lib/components/proportional-widget/types.js → esm2020/lib/components/proportional-widget/types.mjs} +0 -0
- package/esm2020/lib/components/providers/data-source-adapter.mjs +145 -0
- package/esm2020/lib/components/providers/drilldown-data-source-adapter.mjs +114 -0
- package/{esm2015/lib/components/providers/event-bus-debugger.js → esm2020/lib/components/providers/event-bus-debugger.mjs} +4 -4
- package/esm2020/lib/components/providers/interaction/interaction-handler.mjs +56 -0
- package/esm2020/lib/components/providers/interaction/url-interaction-handler.mjs +69 -0
- package/esm2020/lib/components/providers/kpi-color-prioritizer.mjs +107 -0
- package/esm2020/lib/components/providers/kpi-data-source-adapter.mjs +109 -0
- package/esm2020/lib/components/providers/kpi-scale-sync-broker.mjs +143 -0
- package/esm2020/lib/components/providers/kpi-status-content-fallback-adapter.mjs +104 -0
- package/esm2020/lib/components/providers/loading-adapter.mjs +72 -0
- package/esm2020/lib/components/providers/pizzagna-broadcaster.service.mjs +84 -0
- package/{esm2015/lib/components/providers/public-api.js → esm2020/lib/components/providers/public-api.mjs} +0 -0
- package/{esm2015/lib/components/providers/refresher-settings.service.js → esm2020/lib/components/providers/refresher-settings.service.mjs} +4 -4
- package/esm2020/lib/components/providers/refresher.mjs +105 -0
- package/esm2020/lib/components/providers/status-content-fallback-adapter.mjs +67 -0
- package/esm2020/lib/components/providers/table-data-source-adapter.mjs +83 -0
- package/esm2020/lib/components/providers/timeseries-data-source-adapter.mjs +72 -0
- package/{esm2015/lib/components/providers/types.js → esm2020/lib/components/providers/types.mjs} +0 -0
- package/{esm2015/lib/components/public-api.js → esm2020/lib/components/public-api.mjs} +0 -0
- package/esm2020/lib/components/table-widget/addons/search-feature-addon.service.mjs +101 -0
- package/esm2020/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.mjs +79 -0
- package/{esm2015/lib/components/table-widget/delayed-mouse-presence-detection.directive.js → esm2020/lib/components/table-widget/delayed-mouse-presence-detection.directive.mjs} +4 -4
- package/{esm2015/lib/components/table-widget/public-api.js → esm2020/lib/components/table-widget/public-api.mjs} +0 -0
- package/esm2020/lib/components/table-widget/table-widget.component.mjs +493 -0
- package/{esm2015/lib/components/table-widget/types.js → esm2020/lib/components/table-widget/types.mjs} +0 -0
- package/{esm2015/lib/components/template-load-error/template-load-error.component.js → esm2020/lib/components/template-load-error/template-load-error.component.mjs} +4 -4
- package/{esm2015/lib/components/time-frame-selection/public-api.js → esm2020/lib/components/time-frame-selection/public-api.mjs} +0 -0
- package/esm2020/lib/components/time-frame-selection/timeframe-selection.component.mjs +129 -0
- package/{esm2015/lib/components/timeseries-widget/chart-presets/public-api.js → esm2020/lib/components/timeseries-widget/chart-presets/public-api.mjs} +0 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.mjs +73 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +152 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.mjs +110 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +62 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +62 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +79 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +62 -0
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs +160 -0
- package/{esm2015/lib/components/timeseries-widget/public-api.js → esm2020/lib/components/timeseries-widget/public-api.mjs} +0 -0
- package/{esm2015/lib/components/timeseries-widget/timeseries-chart-preset.service.js → esm2020/lib/components/timeseries-widget/timeseries-chart-preset.service.mjs} +4 -4
- package/esm2020/lib/components/timeseries-widget/timeseries-scales.service.mjs +85 -0
- package/esm2020/lib/components/timeseries-widget/timeseries-widget.component.mjs +69 -0
- package/{esm2015/lib/components/timeseries-widget/types.js → esm2020/lib/components/timeseries-widget/types.mjs} +0 -0
- package/{esm2015/lib/components/types.js → esm2020/lib/components/types.mjs} +0 -0
- package/{esm2015/lib/components/widget/public-api.js → esm2020/lib/components/widget/public-api.mjs} +0 -0
- package/{esm2015/lib/components/widget/types.js → esm2020/lib/components/widget/types.mjs} +0 -0
- package/esm2020/lib/components/widget/widget-body/widget-body.component.mjs +88 -0
- package/esm2020/lib/components/widget/widget-body-content/widget-body-content.component.mjs +75 -0
- package/{esm2015/lib/components/widget/widget-header/types.js → esm2020/lib/components/widget/widget-header/types.mjs} +0 -0
- package/esm2020/lib/components/widget/widget-header/widget-header.component.mjs +202 -0
- package/esm2020/lib/components/widget/widget.component.mjs +65 -0
- package/{esm2015/lib/components/widget-search/types.js → esm2020/lib/components/widget-search/types.mjs} +0 -0
- package/esm2020/lib/components/widget-search/widget-search.component.mjs +111 -0
- package/{esm2015/lib/configurator/components/color-picker/HTMLcolors.js → esm2020/lib/configurator/components/color-picker/HTMLcolors.mjs} +0 -0
- package/esm2020/lib/configurator/components/color-picker/color-picker.component.mjs +183 -0
- package/{esm2015/lib/configurator/components/color-picker/color.service.js → esm2020/lib/configurator/components/color-picker/color.service.mjs} +4 -4
- package/esm2020/lib/configurator/components/configurator/configurator.component.mjs +116 -0
- package/esm2020/lib/configurator/components/drop-area/drop-area.component.mjs +30 -0
- package/esm2020/lib/configurator/components/form-stack/form-stack.component.mjs +86 -0
- package/esm2020/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.mjs +43 -0
- package/esm2020/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.mjs +84 -0
- package/{esm2015/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js → esm2020/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.mjs} +5 -5
- package/{esm2015/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js → esm2020/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.mjs} +4 -4
- package/esm2020/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.mjs +84 -0
- package/{esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js → esm2020/lib/configurator/components/formatters/link-formatter/link-formatter.component.mjs} +5 -5
- package/{esm2015/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js → esm2020/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.mjs} +4 -4
- package/{esm2015/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js → esm2020/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.mjs} +4 -4
- package/esm2020/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.mjs +119 -0
- package/{esm2015/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js → esm2020/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.mjs} +5 -5
- package/{esm2015/lib/configurator/components/formatters/types.js → esm2020/lib/configurator/components/formatters/types.mjs} +0 -0
- package/esm2020/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.mjs +92 -0
- package/esm2020/lib/configurator/components/heading/configurator-heading.component.mjs +49 -0
- package/esm2020/lib/configurator/components/items-dynamic/items-dynamic.component.mjs +146 -0
- package/{esm2015/lib/common/components/preview-overlay/preview-overlay.component.js → esm2020/lib/configurator/components/preview-placeholder/preview-placeholder.component.mjs} +7 -15
- package/{esm2015/lib/configurator/components/public-api.js → esm2020/lib/configurator/components/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/types.js → esm2020/lib/configurator/components/types.mjs} +0 -0
- package/esm2020/lib/configurator/components/widget-cloner/widget-cloner.component.mjs +169 -0
- package/{esm2015/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.js → esm2020/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.mjs} +4 -4
- package/esm2020/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.mjs +83 -0
- package/esm2020/lib/configurator/components/widget-editor/widget-editor.component.mjs +147 -0
- package/esm2020/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.mjs +69 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.mjs +121 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.mjs +152 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.mjs +197 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.mjs +74 -0
- package/{esm2015/lib/configurator/components/widgets/configurator-items/data-source-error/public-api.js → esm2020/lib/configurator/components/widgets/configurator-items/data-source-error/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.mjs +41 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.mjs +133 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.mjs +44 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.mjs +101 -0
- package/{esm2015/lib/configurator/components/widgets/configurator-items/public-api.js → esm2020/lib/configurator/components/widgets/configurator-items/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/public-api.js → esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.js → esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.mjs} +8 -14
- package/{esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.js → esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/types.js → esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/types.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.mjs +168 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.mjs +139 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.mjs +56 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.mjs +150 -0
- package/esm2020/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.mjs +90 -0
- package/esm2020/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.mjs +74 -0
- package/esm2020/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.mjs +159 -0
- package/{esm2015/lib/configurator/components/widgets/drilldown/public-api.js → esm2020/lib/configurator/components/widgets/drilldown/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.mjs +92 -0
- package/{esm2015/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/public-api.js → esm2020/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/kpi/public-api.js → esm2020/lib/configurator/components/widgets/kpi/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/kpi/types.js → esm2020/lib/configurator/components/widgets/kpi/types.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.mjs +72 -0
- package/esm2020/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.mjs +87 -0
- package/esm2020/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.mjs +165 -0
- package/esm2020/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.mjs +107 -0
- package/esm2020/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.mjs +167 -0
- package/{esm2015/lib/configurator/components/widgets/proportional/public-api.js → esm2020/lib/configurator/components/widgets/proportional/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/public-api.js → esm2020/lib/configurator/components/widgets/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.mjs +79 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.mjs +117 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.mjs +53 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.mjs +43 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.mjs +258 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.mjs +263 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.mjs +122 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.mjs +308 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.mjs +109 -0
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.mjs +250 -0
- package/esm2020/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.mjs +121 -0
- package/{esm2015/lib/configurator/components/widgets/table/public-api.js → esm2020/lib/configurator/components/widgets/table/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/widgets/timeseries/public-api.js → esm2020/lib/configurator/components/widgets/timeseries/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.mjs +111 -0
- package/esm2020/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.mjs +67 -0
- package/esm2020/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.mjs +106 -0
- package/{esm2015/lib/configurator/components/widgets/timeseries/types.js → esm2020/lib/configurator/components/widgets/timeseries/types.mjs} +0 -0
- package/{esm2015/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.js → esm2020/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.mjs} +5 -5
- package/esm2020/lib/configurator/components/wizard/dashwiz/dashwiz.component.mjs +344 -0
- package/{esm2015/lib/configurator/components/wizard/dashwiz/dashwiz.service.js → esm2020/lib/configurator/components/wizard/dashwiz/dashwiz.service.mjs} +4 -4
- package/{esm2015/lib/configurator/components/wizard/dashwiz/model.js → esm2020/lib/configurator/components/wizard/dashwiz/model.mjs} +0 -0
- package/{esm2015/lib/configurator/components/wizard/dashwiz/public-api.js → esm2020/lib/configurator/components/wizard/dashwiz/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.mjs +131 -0
- package/{esm2015/lib/configurator/components/wizard/dashwiz-step/public-api.js → esm2020/lib/configurator/components/wizard/dashwiz-step/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/wizard/public-api.js → esm2020/lib/configurator/components/wizard/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/components/wizard/types.js → esm2020/lib/configurator/components/wizard/types.mjs} +0 -0
- package/{esm2015/lib/configurator/configurator.module.js → esm2020/lib/configurator/configurator.module.mjs} +5 -6
- package/{esm2015/lib/configurator/functions/has-control-in-error-state.js → esm2020/lib/configurator/functions/has-control-in-error-state.mjs} +0 -0
- package/{esm2015/lib/configurator/functions/public-api.js → esm2020/lib/configurator/functions/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/pipe/add-data.pipe.js → esm2020/lib/configurator/pipe/add-data.pipe.mjs} +4 -4
- package/esm2020/lib/configurator/pipe/pizzagna-root.pipe.mjs +45 -0
- package/{esm2015/lib/configurator/pipe/public-api.js → esm2020/lib/configurator/pipe/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/pipe/widget-configurator-section-header.pipe.js → esm2020/lib/configurator/pipe/widget-configurator-section-header.pipe.mjs} +4 -4
- package/{esm2015/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js → esm2020/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.mjs} +4 -4
- package/{esm2015/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.js → esm2020/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.mjs} +4 -4
- package/{esm2015/lib/configurator/public-api.js → esm2020/lib/configurator/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/services/configurator-data-source-manager.service.mjs +89 -0
- package/{esm2015/lib/configurator/services/configurator-heading.service.js → esm2020/lib/configurator/services/configurator-heading.service.mjs} +4 -4
- package/esm2020/lib/configurator/services/configurator.service.mjs +142 -0
- package/{esm2015/lib/configurator/services/converters/base-converter.js → esm2020/lib/configurator/services/converters/base-converter.mjs} +4 -4
- package/{esm2015/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.js → esm2020/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.mjs} +5 -5
- package/esm2020/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.mjs +107 -0
- package/esm2020/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.mjs +68 -0
- package/{esm2015/lib/configurator/services/converters/public-api.js → esm2020/lib/configurator/services/converters/public-api.mjs} +0 -0
- package/esm2020/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.mjs +81 -0
- package/{esm2015/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.js → esm2020/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.mjs} +5 -5
- package/esm2020/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.mjs +64 -0
- package/esm2020/lib/configurator/services/converters/table/table-columns-converter.service.mjs +180 -0
- package/esm2020/lib/configurator/services/converters/table/table-filters-converter.service.mjs +67 -0
- package/{esm2015/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.js → esm2020/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.mjs} +4 -4
- package/esm2020/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.mjs +170 -0
- package/{esm2015/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.js → esm2020/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.mjs} +8 -5
- package/{esm2015/lib/configurator/services/converters/types.js → esm2020/lib/configurator/services/converters/types.mjs} +0 -0
- package/{esm2015/lib/configurator/services/kpi-widget-color.service.js → esm2020/lib/configurator/services/kpi-widget-color.service.mjs} +4 -4
- package/{esm2015/lib/configurator/services/preview.service.js → esm2020/lib/configurator/services/preview.service.mjs} +4 -4
- package/{esm2015/lib/configurator/services/public-api.js → esm2020/lib/configurator/services/public-api.mjs} +0 -0
- package/{esm2015/lib/configurator/services/timeframe-serialization.service.js → esm2020/lib/configurator/services/timeframe-serialization.service.mjs} +4 -4
- package/{esm2015/lib/configurator/services/types.js → esm2020/lib/configurator/services/types.mjs} +0 -0
- package/{esm2015/lib/configurator/services/widget-cloner.service.js → esm2020/lib/configurator/services/widget-cloner.service.mjs} +4 -4
- package/esm2020/lib/configurator/services/widget-editor.service.mjs +61 -0
- package/{esm2015/lib/configurator/types.js → esm2020/lib/configurator/types.mjs} +0 -0
- package/{esm2015/lib/constants/default-palette.js → esm2020/lib/constants/default-palette.mjs} +0 -0
- package/{esm2015/lib/constants/public-api.js → esm2020/lib/constants/public-api.mjs} +0 -0
- package/{esm2015/lib/constants/si-units-prefixes.js → esm2020/lib/constants/si-units-prefixes.mjs} +0 -0
- package/{esm2015/lib/dashboards.module.js → esm2020/lib/dashboards.module.mjs} +5 -6
- package/{esm2015/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.js → esm2020/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.mjs} +4 -4
- package/{esm2015/lib/directives/public-api.js → esm2020/lib/directives/public-api.mjs} +0 -0
- package/{esm2015/lib/directives/widget-editor/public-api.js → esm2020/lib/directives/widget-editor/public-api.mjs} +0 -0
- package/{esm2015/lib/directives/widget-editor/widget-editor.directive.js → esm2020/lib/directives/widget-editor/widget-editor.directive.mjs} +4 -4
- package/esm2020/lib/functions/get-parent-component-id.mjs +30 -0
- package/{esm2015/lib/functions/map-data-to-formatter-properties.js → esm2020/lib/functions/map-data-to-formatter-properties.mjs} +0 -0
- package/{esm2015/lib/functions/merge-changes.js → esm2020/lib/functions/merge-changes.mjs} +0 -0
- package/{esm2015/lib/functions/on-mark-as-touched.js → esm2020/lib/functions/on-mark-as-touched.mjs} +0 -0
- package/{esm2015/lib/functions/parse-string-with-data.js → esm2020/lib/functions/parse-string-with-data.mjs} +0 -0
- package/esm2020/lib/functions/proportional-aggregators/field-mapper.mjs +33 -0
- package/esm2020/lib/functions/proportional-aggregators/percentage-aggregator.mjs +44 -0
- package/{esm2015/lib/functions/proportional-aggregators/public-api.js → esm2020/lib/functions/proportional-aggregators/public-api.mjs} +0 -0
- package/{esm2015/lib/functions/proportional-aggregators/sum-aggregator.js → esm2020/lib/functions/proportional-aggregators/sum-aggregator.mjs} +0 -0
- package/{esm2015/lib/functions/proportional-aggregators/types.js → esm2020/lib/functions/proportional-aggregators/types.mjs} +0 -0
- package/{esm2015/lib/functions/public-api.js → esm2020/lib/functions/public-api.mjs} +0 -0
- package/{esm2015/lib/pizzagna/components/pizzagna/pizzagna.component.js → esm2020/lib/pizzagna/components/pizzagna/pizzagna.component.mjs} +6 -10
- package/{esm2015/lib/pizzagna/components/pizzagna/public-api.js → esm2020/lib/pizzagna/components/pizzagna/public-api.mjs} +0 -0
- package/esm2020/lib/pizzagna/directives/component-portal/component-portal.directive.mjs +306 -0
- package/{esm2015/lib/pizzagna/directives/component-portal/public-api.js → esm2020/lib/pizzagna/directives/component-portal/public-api.mjs} +0 -0
- package/{esm2015/lib/pizzagna/functions/get-pizzagna-property-path.js → esm2020/lib/pizzagna/functions/get-pizzagna-property-path.mjs} +0 -0
- package/{esm2015/lib/pizzagna/functions/public-api.js → esm2020/lib/pizzagna/functions/public-api.mjs} +0 -0
- package/{esm2015/lib/pizzagna/pizzagna.module.js → esm2020/lib/pizzagna/pizzagna.module.mjs} +5 -5
- package/{esm2015/lib/pizzagna/public-api.js → esm2020/lib/pizzagna/public-api.mjs} +0 -0
- package/{esm2015/lib/pizzagna/services/component-portal.service.js → esm2020/lib/pizzagna/services/component-portal.service.mjs} +4 -4
- package/{esm2015/lib/pizzagna/services/component-registry.service.js → esm2020/lib/pizzagna/services/component-registry.service.mjs} +4 -4
- package/esm2020/lib/pizzagna/services/dynamic-component-creator.service.mjs +63 -0
- package/esm2020/lib/pizzagna/services/pizzagna.service.mjs +133 -0
- package/{esm2015/lib/pizzagna/services/public-api.js → esm2020/lib/pizzagna/services/public-api.mjs} +0 -0
- package/esm2020/lib/services/category-chart-util.service.mjs +126 -0
- package/{esm2015/lib/services/event-registry.service.js → esm2020/lib/services/event-registry.service.mjs} +4 -4
- package/esm2020/lib/services/kpi-color-comparators-registry.service.mjs +68 -0
- package/{esm2015/lib/services/proportional-content-aggregators-registry.service.js → esm2020/lib/services/proportional-content-aggregators-registry.service.mjs} +4 -4
- package/{esm2015/lib/services/provider-registry.service.js → esm2020/lib/services/provider-registry.service.mjs} +4 -4
- package/{esm2015/lib/services/public-api.js → esm2020/lib/services/public-api.mjs} +0 -0
- package/esm2020/lib/services/registry-service.mjs +83 -0
- package/{esm2015/lib/services/table-formatter-registry.service.js → esm2020/lib/services/table-formatter-registry.service.mjs} +13 -13
- package/{esm2015/lib/services/types.js → esm2020/lib/services/types.mjs} +0 -0
- package/esm2020/lib/services/url-interaction.service.mjs +52 -0
- package/{esm2015/lib/services/widget-configuration.service.js → esm2020/lib/services/widget-configuration.service.mjs} +4 -4
- package/{esm2015/lib/services/widget-removal.service.js → esm2020/lib/services/widget-removal.service.mjs} +4 -4
- package/esm2020/lib/services/widget-to-dashboard-event-proxy.service.mjs +152 -0
- package/esm2020/lib/services/widget-types.service.mjs +88 -0
- package/{esm2015/lib/types.js → esm2020/lib/types.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/configurator/components.js → esm2020/lib/widget-types/common/configurator/components.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/configurator/public-api.js → esm2020/lib/widget-types/common/configurator/public-api.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/public-api.js → esm2020/lib/widget-types/common/public-api.mjs} +0 -0
- package/esm2020/lib/widget-types/common/widget/components.mjs +133 -0
- package/{esm2015/lib/widget-types/common/widget/legend.js → esm2020/lib/widget-types/common/widget/legend.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/widget/providers.js → esm2020/lib/widget-types/common/widget/providers.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/widget/public-api.js → esm2020/lib/widget-types/common/widget/public-api.mjs} +0 -0
- package/{esm2015/lib/widget-types/common/widget/types.js → esm2020/lib/widget-types/common/widget/types.mjs} +0 -0
- package/{esm2015/lib/widget-types/drilldown/drilldown-configurator.js → esm2020/lib/widget-types/drilldown/drilldown-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/drilldown/drilldown-widget.mjs +95 -0
- package/{esm2015/lib/widget-types/drilldown/drilldown.js → esm2020/lib/widget-types/drilldown/drilldown.mjs} +0 -0
- package/{esm2015/lib/widget-types/embedded-content/embedded-content-configurator.js → esm2020/lib/widget-types/embedded-content/embedded-content-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/embedded-content/embedded-content-widget.mjs +73 -0
- package/{esm2015/lib/widget-types/embedded-content/embedded-content.js → esm2020/lib/widget-types/embedded-content/embedded-content.mjs} +0 -0
- package/{esm2015/lib/widget-types/kpi/kpi-configurator.js → esm2020/lib/widget-types/kpi/kpi-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/kpi/kpi-widget.mjs +105 -0
- package/{esm2015/lib/widget-types/kpi/kpi.js → esm2020/lib/widget-types/kpi/kpi.mjs} +0 -0
- package/{esm2015/lib/widget-types/preview-placeholder.js → esm2020/lib/widget-types/preview-placeholder.mjs} +0 -0
- package/{esm2015/lib/widget-types/proportional/donut-content-configurator-slice.js → esm2020/lib/widget-types/proportional/donut-content-configurator-slice.mjs} +0 -0
- package/{esm2015/lib/widget-types/proportional/proportional-configurator.js → esm2020/lib/widget-types/proportional/proportional-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/proportional/proportional-widget.mjs +91 -0
- package/{esm2015/lib/widget-types/proportional/proportional.js → esm2020/lib/widget-types/proportional/proportional.mjs} +0 -0
- package/{esm2015/lib/widget-types/public-api.js → esm2020/lib/widget-types/public-api.mjs} +0 -0
- package/{esm2015/lib/widget-types/table/default-table-formatters.js → esm2020/lib/widget-types/table/default-table-formatters.mjs} +0 -0
- package/{esm2015/lib/widget-types/table/table-configurator.js → esm2020/lib/widget-types/table/table-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/table/table-widget.mjs +111 -0
- package/{esm2015/lib/widget-types/table/table.js → esm2020/lib/widget-types/table/table.mjs} +0 -0
- package/{esm2015/lib/widget-types/timeseries/timeseries-configurator.js → esm2020/lib/widget-types/timeseries/timeseries-configurator.mjs} +0 -0
- package/esm2020/lib/widget-types/timeseries/timeseries-widget.mjs +122 -0
- package/{esm2015/lib/widget-types/timeseries/timeseries.js → esm2020/lib/widget-types/timeseries/timeseries.mjs} +0 -0
- package/{esm2015/nova-ui-dashboards.js → esm2020/nova-ui-dashboards.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/{nova-ui-dashboards.js → nova-ui-dashboards.mjs} +1195 -1463
- package/fesm2015/nova-ui-dashboards.mjs.map +1 -0
- package/fesm2020/nova-ui-dashboards.mjs +16252 -0
- package/fesm2020/nova-ui-dashboards.mjs.map +1 -0
- package/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.d.ts +1 -1
- package/lib/components/providers/data-source-adapter.d.ts +1 -1
- package/lib/components/providers/kpi-color-prioritizer.d.ts +1 -1
- package/lib/components/providers/refresher.d.ts +1 -1
- package/lib/components/providers/status-content-fallback-adapter.d.ts +1 -1
- package/lib/components/widget-search/widget-search.component.d.ts +1 -1
- package/lib/configurator/components/configurator/configurator.component.d.ts +1 -1
- package/lib/configurator/services/converters/base-converter.d.ts +1 -1
- package/package.json +36 -17
- package/sdk/atoms/spec/test.po.js +1 -1
- package/sdk/atoms/spec/test.po.js.map +1 -1
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.js +10 -10
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.js.map +1 -1
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.spec.js +1 -1
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.spec.js.map +1 -1
- package/sdk/atoms/src/lib/common/common.module.js +1 -2
- package/sdk/atoms/src/lib/common/common.module.js.map +1 -1
- package/sdk/atoms/src/lib/common/components/preview-overlay/preview-overlay.component.js +1 -1
- 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 +6 -6
- 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 +1 -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 +17 -17
- 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 +8 -8
- 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 +12 -12
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/base-layout.js +3 -3
- package/sdk/atoms/src/lib/components/layouts/base-layout.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/stack/stack.component.js +5 -5
- 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 +5 -5
- 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 +7 -7
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.js +10 -10
- 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 +4 -4
- 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 +8 -8
- 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 +6 -6
- 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 +6 -6
- 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 +15 -15
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/components/providers/data-source-adapter.js +11 -11
- 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 +3 -3
- package/sdk/atoms/src/lib/components/providers/drilldown-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/event-bus-debugger.js +4 -4
- package/sdk/atoms/src/lib/components/providers/event-bus-debugger.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/interaction/interaction-handler.js +2 -2
- 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 +3 -3
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-color-prioritizer.js +4 -4
- 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 +5 -5
- 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 +4 -4
- 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 +5 -5
- 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 +4 -4
- package/sdk/atoms/src/lib/components/providers/loading-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/pizzagna-broadcaster.service.js +6 -6
- package/sdk/atoms/src/lib/components/providers/pizzagna-broadcaster.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher-settings.service.js +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher-settings.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher.d.ts +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher.js +4 -4
- package/sdk/atoms/src/lib/components/providers/refresher.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/status-content-fallback-adapter.d.ts +1 -1
- package/sdk/atoms/src/lib/components/providers/status-content-fallback-adapter.js +3 -3
- package/sdk/atoms/src/lib/components/providers/status-content-fallback-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/table-data-source-adapter.js +7 -7
- package/sdk/atoms/src/lib/components/providers/table-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/timeseries-data-source-adapter.js +3 -3
- package/sdk/atoms/src/lib/components/providers/timeseries-data-source-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/search-feature-addon.service.js +5 -5
- 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 +12 -10
- 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 +7 -7
- 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 +31 -31
- 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 -1
- 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 +12 -12
- 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 +6 -6
- 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 +7 -7
- 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 +4 -4
- 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 +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +8 -8
- 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-chart-preset.service.js +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-chart-preset.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +3 -3
- 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 +6 -6
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget-body/widget-body.component.js +8 -8
- 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 +7 -7
- 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 +27 -27
- 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 +3 -3
- package/sdk/atoms/src/lib/components/widget/widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget-search/widget-search.component.d.ts +1 -1
- package/sdk/atoms/src/lib/components/widget-search/widget-search.component.js +8 -8
- 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 +12 -12
- 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 +2 -2
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js +6 -6
- 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 -1
- 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 +4 -4
- 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 -1
- 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 +6 -6
- 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 +4 -4
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 -1
- 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 +4 -4
- 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 +6 -6
- 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 +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 +8 -8
- 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 -1
- 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 +7 -7
- 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-coordinator.service.js +2 -2
- package/sdk/atoms/src/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.js +7 -7
- 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 +8 -8
- 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.component.js +3 -3
- 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 +6 -6
- 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 +8 -8
- 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 +9 -9
- 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 +6 -6
- 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 -1
- 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 +8 -8
- 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 +5 -5
- 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 +14 -14
- 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 +12 -12
- 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/refresher-configuration.component.js +12 -12
- 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/thresholds-configuration/thresholds-configuration.component.js +9 -9
- 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 +3 -3
- 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 +11 -11
- 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 +7 -7
- 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 +4 -4
- 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 +10 -10
- 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 +8 -8
- 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 +5 -5
- 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 +5 -5
- 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 +9 -9
- 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 +8 -8
- 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 +10 -10
- 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/table/columns-editor/column-configuration/description-configuration/description-configuration.component.js +7 -7
- 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 +6 -6
- 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 -1
- 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 -1
- 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 +13 -13
- 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 +19 -19
- 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 +7 -7
- 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 +15 -15
- 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 +7 -7
- 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 +12 -12
- 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 +7 -7
- 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/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js +10 -10
- 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 +4 -4
- 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 +7 -7
- 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 +12 -12
- 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 +24 -24
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.service.js +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.js +12 -12
- 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 +1 -2
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/add-data.pipe.js +3 -3
- 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 -1
- 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 -1
- 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 +3 -3
- 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 +2 -2
- 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 +5 -5
- package/sdk/atoms/src/lib/configurator/services/configurator-data-source-manager.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator-heading.service.js +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator-heading.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js +11 -11
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/base-converter.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/base-converter.js +2 -2
- package/sdk/atoms/src/lib/configurator/services/converters/base-converter.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.js +8 -8
- 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 +9 -9
- 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/proportional/proportional-widget-chart-options-converter.service.js +9 -9
- package/sdk/atoms/src/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.js +9 -9
- 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 +8 -8
- 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/shared/title-and-description-converter/title-and-description-converter.service.js +9 -9
- package/sdk/atoms/src/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-columns-converter.service.js +14 -14
- 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/table/table-filters-converter.service.js +6 -6
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-filters-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.js +15 -15
- 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 +26 -26
- 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 +7 -7
- 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/kpi-widget-color.service.js +1 -1
- package/sdk/atoms/src/lib/configurator/services/kpi-widget-color.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/preview.service.js +1 -1
- package/sdk/atoms/src/lib/configurator/services/preview.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/timeframe-serialization.service.js +3 -3
- package/sdk/atoms/src/lib/configurator/services/timeframe-serialization.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/widget-cloner.service.js +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 +2 -2
- package/sdk/atoms/src/lib/configurator/services/widget-editor.service.js.map +1 -1
- package/sdk/atoms/src/lib/constants/default-palette.js +1 -1
- package/sdk/atoms/src/lib/constants/default-palette.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.js +1 -2
- 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 +4 -4
- 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 +9 -9
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js.map +1 -1
- package/sdk/atoms/src/lib/functions/merge-changes.js +3 -3
- package/sdk/atoms/src/lib/functions/merge-changes.js.map +1 -1
- package/sdk/atoms/src/lib/functions/proportional-aggregators/field-mapper.js +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 +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 +1 -1
- package/sdk/atoms/src/lib/functions/proportional-aggregators/sum-aggregator.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/components/pizzagna/pizzagna.component.js +9 -9
- 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 +13 -13
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/pizzagna.module.js +1 -1
- package/sdk/atoms/src/lib/pizzagna/pizzagna.module.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/component-portal.service.js +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 +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/component-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/dynamic-component-creator.service.js +4 -4
- package/sdk/atoms/src/lib/pizzagna/services/dynamic-component-creator.service.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.js +6 -6
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/category-chart-util.service.js +6 -6
- package/sdk/atoms/src/lib/services/category-chart-util.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/event-registry.service.js +1 -1
- package/sdk/atoms/src/lib/services/event-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/kpi-color-comparators-registry.service.js +1 -1
- package/sdk/atoms/src/lib/services/kpi-color-comparators-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/proportional-content-aggregators-registry.service.js +1 -1
- package/sdk/atoms/src/lib/services/proportional-content-aggregators-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/registry-service.js +3 -3
- package/sdk/atoms/src/lib/services/registry-service.js.map +1 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js +4 -4
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/unit-test-registry.service.js +1 -1
- package/sdk/atoms/src/lib/services/unit-test-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/url-interaction.service.js +1 -1
- package/sdk/atoms/src/lib/services/url-interaction.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/widget-configuration.service.js +1 -1
- package/sdk/atoms/src/lib/services/widget-configuration.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/widget-removal.service.js +4 -4
- 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 +8 -8
- 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 +3 -3
- package/sdk/atoms/src/lib/services/widget-types.service.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-widget.js +2 -2
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-widget.js +2 -2
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-widget.js +3 -3
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-widget.js +3 -3
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table-widget.js +3 -3
- package/sdk/atoms/src/lib/widget-types/table/table-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-widget.js +3 -3
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-widget.js.map +1 -1
- package/sdk/locale/messages.en.xlf +176 -172
- package/sdk/schematics/ng-add/index.d.ts +2 -0
- package/sdk/schematics/ng-add/index.js +27 -16
- package/sdk/schematics/ng-add/index.js.map +1 -0
- package/sdk/schematics/ng-add/index.spec.d.ts +1 -0
- package/sdk/schematics/ng-add/index.spec.js +134 -0
- package/sdk/schematics/ng-add/index.spec.js.map +1 -0
- package/sdk/schematics/ng-add/schema.json +4 -4
- package/bundles/nova-ui-dashboards.umd.js +0 -17845
- package/bundles/nova-ui-dashboards.umd.js.map +0 -1
- package/esm2015/lib/common/common.module.js +0 -42
- package/esm2015/lib/common/components/widget-error/widget-error.component.js +0 -58
- package/esm2015/lib/common/pipes/dashboard-unit-conversion-pipe.js +0 -57
- package/esm2015/lib/components/dashboard/dashboard.component.js +0 -232
- package/esm2015/lib/components/embedded-content/embedded-content.component.js +0 -96
- package/esm2015/lib/components/kpi-widget/kpi.component.js +0 -128
- package/esm2015/lib/components/layouts/base-layout.js +0 -118
- package/esm2015/lib/components/layouts/stack/stack.component.js +0 -68
- package/esm2015/lib/components/layouts/tiles/tiles.component.js +0 -105
- package/esm2015/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.js +0 -68
- package/esm2015/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.js +0 -82
- package/esm2015/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.js +0 -66
- package/esm2015/lib/components/list-widget/list-widget.component.js +0 -105
- package/esm2015/lib/components/loading/loading.component.js +0 -56
- package/esm2015/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.js +0 -152
- package/esm2015/lib/components/proportional-widget/proportional-widget.component.js +0 -340
- package/esm2015/lib/components/providers/data-source-adapter.js +0 -146
- package/esm2015/lib/components/providers/drilldown-data-source-adapter.js +0 -115
- package/esm2015/lib/components/providers/interaction/interaction-handler.js +0 -57
- package/esm2015/lib/components/providers/interaction/url-interaction-handler.js +0 -70
- package/esm2015/lib/components/providers/kpi-color-prioritizer.js +0 -110
- package/esm2015/lib/components/providers/kpi-data-source-adapter.js +0 -104
- package/esm2015/lib/components/providers/kpi-scale-sync-broker.js +0 -138
- package/esm2015/lib/components/providers/kpi-status-content-fallback-adapter.js +0 -106
- package/esm2015/lib/components/providers/loading-adapter.js +0 -72
- package/esm2015/lib/components/providers/pizzagna-broadcaster.service.js +0 -84
- package/esm2015/lib/components/providers/refresher.js +0 -106
- package/esm2015/lib/components/providers/status-content-fallback-adapter.js +0 -68
- package/esm2015/lib/components/providers/table-data-source-adapter.js +0 -84
- package/esm2015/lib/components/providers/timeseries-data-source-adapter.js +0 -72
- package/esm2015/lib/components/table-widget/addons/search-feature-addon.service.js +0 -104
- package/esm2015/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.js +0 -81
- package/esm2015/lib/components/table-widget/table-widget.component.js +0 -503
- package/esm2015/lib/components/time-frame-selection/timeframe-selection.component.js +0 -134
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.js +0 -67
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +0 -149
- package/esm2015/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +0 -112
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +0 -66
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +0 -66
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +0 -83
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +0 -66
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +0 -156
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +0 -86
- package/esm2015/lib/components/timeseries-widget/timeseries-widget.component.js +0 -74
- package/esm2015/lib/components/widget/widget-body/widget-body.component.js +0 -92
- package/esm2015/lib/components/widget/widget-body-content/widget-body-content.component.js +0 -78
- package/esm2015/lib/components/widget/widget-header/widget-header.component.js +0 -207
- package/esm2015/lib/components/widget/widget.component.js +0 -69
- package/esm2015/lib/components/widget-search/widget-search.component.js +0 -121
- package/esm2015/lib/configurator/components/color-picker/color-picker.component.js +0 -191
- package/esm2015/lib/configurator/components/configurator/configurator.component.js +0 -122
- package/esm2015/lib/configurator/components/drop-area/drop-area.component.js +0 -34
- package/esm2015/lib/configurator/components/form-stack/form-stack.component.js +0 -90
- package/esm2015/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.js +0 -46
- package/esm2015/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.js +0 -86
- package/esm2015/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js +0 -85
- package/esm2015/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js +0 -120
- package/esm2015/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.js +0 -95
- package/esm2015/lib/configurator/components/heading/configurator-heading.component.js +0 -53
- package/esm2015/lib/configurator/components/items-dynamic/items-dynamic.component.js +0 -151
- package/esm2015/lib/configurator/components/preview-placeholder/preview-placeholder.component.js +0 -35
- package/esm2015/lib/configurator/components/widget-cloner/widget-cloner.component.js +0 -168
- package/esm2015/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.js +0 -90
- package/esm2015/lib/configurator/components/widget-editor/widget-editor.component.js +0 -143
- package/esm2015/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js +0 -75
- package/esm2015/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js +0 -132
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.js +0 -158
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.js +0 -207
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.js +0 -75
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.js +0 -45
- package/esm2015/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.js +0 -137
- package/esm2015/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.js +0 -48
- package/esm2015/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.js +0 -107
- package/esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.js +0 -174
- package/esm2015/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.js +0 -146
- package/esm2015/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.js +0 -56
- package/esm2015/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.js +0 -151
- package/esm2015/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.js +0 -96
- package/esm2015/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.js +0 -78
- package/esm2015/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.js +0 -165
- package/esm2015/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.js +0 -96
- package/esm2015/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.js +0 -76
- package/esm2015/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.js +0 -90
- package/esm2015/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.js +0 -171
- package/esm2015/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.js +0 -113
- package/esm2015/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.js +0 -162
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.js +0 -86
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.js +0 -119
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +0 -56
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.js +0 -46
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.js +0 -270
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.js +0 -270
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.js +0 -129
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.js +0 -323
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.js +0 -110
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js +0 -262
- package/esm2015/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.js +0 -125
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js +0 -115
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.js +0 -72
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.js +0 -113
- package/esm2015/lib/configurator/components/wizard/dashwiz/dashwiz.component.js +0 -351
- package/esm2015/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.js +0 -135
- package/esm2015/lib/configurator/pipe/pizzagna-root.pipe.js +0 -46
- package/esm2015/lib/configurator/services/configurator-data-source-manager.service.js +0 -90
- package/esm2015/lib/configurator/services/configurator.service.js +0 -137
- package/esm2015/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.js +0 -108
- package/esm2015/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.js +0 -68
- package/esm2015/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.js +0 -81
- package/esm2015/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.js +0 -65
- package/esm2015/lib/configurator/services/converters/table/table-columns-converter.service.js +0 -182
- package/esm2015/lib/configurator/services/converters/table/table-filters-converter.service.js +0 -68
- package/esm2015/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.js +0 -168
- package/esm2015/lib/configurator/services/widget-editor.service.js +0 -62
- package/esm2015/lib/functions/get-parent-component-id.js +0 -30
- package/esm2015/lib/functions/proportional-aggregators/field-mapper.js +0 -33
- package/esm2015/lib/functions/proportional-aggregators/percentage-aggregator.js +0 -45
- package/esm2015/lib/pizzagna/directives/component-portal/component-portal.directive.js +0 -297
- package/esm2015/lib/pizzagna/services/dynamic-component-creator.service.js +0 -60
- package/esm2015/lib/pizzagna/services/pizzagna.service.js +0 -134
- package/esm2015/lib/services/category-chart-util.service.js +0 -123
- package/esm2015/lib/services/kpi-color-comparators-registry.service.js +0 -65
- package/esm2015/lib/services/registry-service.js +0 -83
- package/esm2015/lib/services/url-interaction.service.js +0 -53
- package/esm2015/lib/services/widget-to-dashboard-event-proxy.service.js +0 -152
- package/esm2015/lib/services/widget-types.service.js +0 -86
- package/esm2015/lib/widget-types/common/widget/components.js +0 -130
- package/esm2015/lib/widget-types/drilldown/drilldown-widget.js +0 -80
- package/esm2015/lib/widget-types/embedded-content/embedded-content-widget.js +0 -64
- package/esm2015/lib/widget-types/kpi/kpi-widget.js +0 -90
- package/esm2015/lib/widget-types/proportional/proportional-widget.js +0 -81
- package/esm2015/lib/widget-types/table/table-widget.js +0 -101
- package/esm2015/lib/widget-types/timeseries/timeseries-widget.js +0 -111
- package/fesm2015/nova-ui-dashboards.js.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
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 { ChangeDetectorRef, Component, Inject, Optional } from "@angular/core";
|
|
21
|
+
import { EventBus } from "@nova-ui/bits";
|
|
22
|
+
import { areaGrid, AreaRenderer, Chart, ChartAssist, stackedAreaAccessors, stackedPercentageArea, } from "@nova-ui/charts";
|
|
23
|
+
import { DATA_SOURCE, PIZZAGNA_EVENT_BUS } from "../../../../../types";
|
|
24
|
+
import { TimeseriesScalesService } from "../../../timeseries-scales.service";
|
|
25
|
+
import { XYChartComponent } from "../xy-chart.component";
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
import * as i1 from "../../../timeseries-scales.service";
|
|
28
|
+
import * as i2 from "@nova-ui/charts";
|
|
29
|
+
import * as i3 from "@angular/common";
|
|
30
|
+
import * as i4 from "@nova-ui/bits";
|
|
31
|
+
export class StackedPercentageAreaChartComponent extends XYChartComponent {
|
|
32
|
+
constructor(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
33
|
+
super(eventBus, dataSource, timeseriesScalesService, changeDetector);
|
|
34
|
+
this.renderer = new AreaRenderer();
|
|
35
|
+
this.valueAccessorKey = "y1";
|
|
36
|
+
}
|
|
37
|
+
createAccessors(colorProvider) {
|
|
38
|
+
return stackedAreaAccessors(colorProvider);
|
|
39
|
+
}
|
|
40
|
+
createChartAssist(palette) {
|
|
41
|
+
const grid = areaGrid();
|
|
42
|
+
grid.config().axis.left.fit = true;
|
|
43
|
+
const chart = new Chart(grid);
|
|
44
|
+
return new ChartAssist(chart, stackedPercentageArea, palette);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
StackedPercentageAreaChartComponent.lateLoadKey = "StackedPercentageAreaChartComponent";
|
|
48
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: i1.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
/** @nocollapse */ StackedPercentageAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: StackedPercentageAreaChartComponent, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0, template: "<div class=\"nui-chart-layout h-100 px-3 py-3\">\n <div class=\"axis-label-left nui-text-small\">\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"!legendSeries.secondaryLink\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.secondaryLink\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}\n"], components: [{ type: i2.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { type: i2.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { type: i2.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { type: i2.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { type: i2.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }], directives: [{ type: i2.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: "nui-stacked-percentage-area-chart", template: "<div class=\"nui-chart-layout h-100 px-3 py-3\">\n <div class=\"axis-label-left nui-text-small\">\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n legendSeries,\n 'y',\n 'tick',\n valueAccessorKey\n )\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"!legendSeries.secondaryLink\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.secondaryLink\"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}\n"] }]
|
|
53
|
+
}], ctorParameters: function () { return [{ type: i4.EventBus, decorators: [{
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
56
|
+
}] }, { type: undefined, decorators: [{
|
|
57
|
+
type: Optional
|
|
58
|
+
}, {
|
|
59
|
+
type: Inject,
|
|
60
|
+
args: [DATA_SOURCE]
|
|
61
|
+
}] }, { type: i1.TimeseriesScalesService }, { type: i0.ChangeDetectorRef }]; } });
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2tlZC1wZXJjZW50YWdlLWFyZWEtY2hhcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3RpbWVzZXJpZXMtd2lkZ2V0L2NoYXJ0LXByZXNldHMveHktY2hhcnQvY2hhcnQtdHlwZXMvc3RhY2tlZC1wZXJjZW50YWdlLWFyZWEtY2hhcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3RpbWVzZXJpZXMtd2lkZ2V0L2NoYXJ0LXByZXNldHMveHktY2hhcnQveHktY2hhcnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXM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GFzc109XCJbXG4gICAgICAgICAgICBsZWdlbmRTaG91bGRCZUFsaWduZWRSaWdodCgpID8gJ2xlZ2VuZCBzY3JvbGxhYmxlJyA6ICdsZWdlbmQtYm90dG9tJ1xuICAgICAgICBdXCJcbiAgICA+XG4gICAgICAgIDxudWktbGVnZW5kXG4gICAgICAgICAgICBjbGFzcz1cIm0tYXV0b1wiXG4gICAgICAgICAgICBbYWN0aXZlXT1cImNoYXJ0QXNzaXN0LmlzTGVnZW5kQWN0aXZlXCJcbiAgICAgICAgICAgIFtpbnRlcmFjdGl2ZV09XCJ0cnVlXCJcbiAgICAgICAgICAgIFtvcmllbnRhdGlvbl09XCJcbiAgICAgICAgICAgICAgICBsZWdlbmRTaG91bGRCZUFsaWduZWRSaWdodCgpID8gJ3ZlcnRpY2FsJyA6ICdob3Jpem9udGFsJ1xuICAgICAgICAgICAgXCJcbiAgICAgICAgPlxuICAgICAgICAgICAgPG51aS1sZWdlbmQtc2VyaWVzXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJ4eS1jaGFydF9fbGVnZW5kLXNlcmllc1wiXG4gICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwiXG4gICAgICAgICAgICAgICAgICAgICd4eS1jaGFydF9fbGVnZW5kLXNlcmllcy0tc3RhdGUtJyArXG4gICAgICAgICAgICAgICAgICAgIGNoYXJ0QXNzaXN0LnJlbmRlclN0YXRlc0luZGV4W2xlZ2VuZFNlcmllcy5pZF0/LnN0YXRlXG4gICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAqbmdGb3I9XCJcbiAgICAgICAgICAgICAgICAgICAgbGV0IGxlZ2VuZFNlcmllcyBvZiBjaGFydEFzc2lzdC5sZWdlbmRTZXJpZXNTZXQ7XG4gICAgICAgICAgICAgICAgICAgIHRyYWNrQnk6IGNoYXJ0QXNzaXN0LnNlcmllc1RyYWNrQnlGblxuICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgW2lzU2VsZWN0ZWRdPVwiIWNoYXJ0QXNzaXN0LmlzU2VyaWVzSGlkZGVuKGxlZ2VuZFNlcmllcy5pZClcIlxuICAgICAgICAgICAgICAgIChpc1NlbGVjdGVkQ2hhbmdlKT1cIlxuICAgICAgICAgICAgICAgICAgICBjaGFydEFzc2lzdC50b2dnbGVTZXJpZXMobGVnZW5kU2VyaWVzLmlkLCAkZXZlbnQpXG4gICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAobW91c2VlbnRlcik9XCJjaGFydEFzc2lzdC5lbXBoYXNpemVTZXJpZXMobGVnZW5kU2VyaWVzLmlkKVwiXG4gICAgICAgICAgICAgICAgKG1vdXNlbGVhdmUpPVwiY2hhcnRBc3Npc3QucmVzZXRWaXNpYmxlU2VyaWVzKClcIlxuICAgICAgICAgICAgICAgIFtzZXJpZXNSZW5kZXJTdGF0ZV09XCJcbiAgICAgICAgICAgICAgICAgICAgY2hhcnRBc3Npc3QucmVuZGVyU3RhdGVzSW5kZXhbbGVnZW5kU2VyaWVzLmlkXT8uc3RhdGVcbiAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxudWktcmljaC1sZWdlbmQtdGlsZVxuICAgICAgICAgICAgICAgICAgICBbdmFsdWVdPVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBjaGFydEFzc2lzdC5nZXRIaWdobGlnaHRlZFZhbHVlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZ2VuZFNlcmllcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAneScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3RpY2snLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlQWNjZXNzb3JLZXlcbiAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgW2JhY2tncm91bmRDb2xvcl09XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoYXJ0QXNzaXN0LnBhbGV0dGUuc3RhbmRhcmRDb2xvcnMuZ2V0KGxlZ2VuZFNlcmllcy5pZClcbiAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgW2NvbG9yXT1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgY2hhcnRBc3Npc3QucGFsZXR0ZS50ZXh0Q29sb3JzLmdldChsZWdlbmRTZXJpZXMuaWQpXG4gICAgICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8bnVpLWNoYXJ0LW1hcmtlclxuICAgICAgICAgICAgICAgICAgICAgICAgcmlnaHRFZGdlXG4gICAgICAgICAgICAgICAgICAgICAgICBbbWFya2VyXT1cImNoYXJ0QXNzaXN0Lm1hcmtlcnMuZ2V0KGxlZ2VuZFNlcmllcy5pZClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2NvbG9yXT1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNoYXJ0QXNzaXN0LnBhbGV0dGUuc3RhbmRhcmRDb2xvcnMuZ2V0KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWdlbmRTZXJpZXMuaWRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIDwvbnVpLWNoYXJ0LW1hcmtlcj5cbiAgICAgICAgICAgICAgICA8L251aS1yaWNoLWxlZ2VuZC10aWxlPlxuICAgICAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb25cbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJkZXNjcmlwdGlvbi1jb250YWluZXIgZC1mbGV4IGZsZXgtY29sdW1uIG51aS10ZXh0LXNtYWxsIGp1c3RpZnktY29udGVudC1jZW50ZXJcIlxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCIhbGVnZW5kU2VyaWVzLmxpbmtcIlxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJkZXNjcmlwdGlvbiBkZXNjcmlwdGlvbi1wcmltYXJ5XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cIntcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnbnVpLXRleHQtbGluay1zbWFsbCBsaW5rJzogc2VyaWVzSW50ZXJhY3RpdmVcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIm9uUHJpbWFyeURlc2NDbGljaygkZXZlbnQsIGxlZ2VuZFNlcmllcylcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyBsZWdlbmRTZXJpZXMubGVnZW5kRGVzY3JpcHRpb25QcmltYXJ5IH19XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8YVxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJkZXNjcmlwdGlvbiBkZXNjcmlwdGlvbi1wcmltYXJ5IG51aS10ZXh0LWxpbmstc21hbGwgbGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwiJGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwibGVnZW5kU2VyaWVzLmxpbmtcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2hyZWZdPVwibGVnZW5kU2VyaWVzLmxpbmtcIlxuICAgICAgICAgICAgICAgICAgICAgICAgcmVsPVwibm9vcGVuZXIgbm9yZWZlcnJlclwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbdGl0bGVdPVwibGVnZW5kU2VyaWVzLmxlZ2VuZERlc2NyaXB0aW9uUHJpbWFyeVwiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgIHt7IGxlZ2VuZFNlcmllcy5sZWdlbmREZXNjcmlwdGlvblByaW1hcnkgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9hPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImRlc2NyaXB0aW9uIGRlc2NyaXB0aW9uLXNlY29uZGFyeVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cIiFsZWdlbmRTZXJpZXMuc2Vjb25kYXJ5TGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBbdGl0bGVdPVwibGVnZW5kU2VyaWVzLmxlZ2VuZERlc2NyaXB0aW9uU2Vjb25kYXJ5XCJcbiAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAge3sgbGVnZW5kU2VyaWVzLmxlZ2VuZERlc2NyaXB0aW9uU2Vjb25kYXJ5IH19XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8YVxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJkZXNjcmlwdGlvbiBkZXNjcmlwdGlvbi1zZWNvbmRhcnkgbnVpLXRleHQtbGluay1zbWFsbCBsaW5rXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCIkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJsZWdlbmRTZXJpZXMuc2Vjb25kYXJ5TGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBbaHJlZl09XCJsZWdlbmRTZXJpZXMuc2Vjb25kYXJ5TGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICByZWw9XCJub29wZW5lciBub3JlZmVycmVyXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFt0aXRsZV09XCJsZWdlbmRTZXJpZXMubGVnZW5kRGVzY3JpcHRpb25TZWNvbmRhcnlcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyBsZWdlbmRTZXJpZXMubGVnZW5kRGVzY3JpcHRpb25TZWNvbmRhcnkgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9hPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9udWktbGVnZW5kLXNlcmllcz5cbiAgICAgICAgPC9udWktbGVnZW5kPlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
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 { ChangeDetectorRef, Inject, Injectable, Optional, } from "@angular/core";
|
|
21
|
+
import { merge } from "rxjs";
|
|
22
|
+
import { takeUntil } from "rxjs/operators";
|
|
23
|
+
import { EventBus } from "@nova-ui/bits";
|
|
24
|
+
import { ChartPalette, defaultColorProvider, InteractionType, INTERACTION_DATA_POINTS_EVENT, INTERACTION_VALUES_EVENT, SequentialColorProvider, SET_DOMAIN_EVENT, ZoomPlugin, } from "@nova-ui/charts";
|
|
25
|
+
import { INTERACTION, SET_TIMEFRAME } from "../../../../services/types";
|
|
26
|
+
import { DATA_SOURCE, PIZZAGNA_EVENT_BUS, } from "../../../../types";
|
|
27
|
+
import { LegendPlacement } from "../../../../widget-types/common/widget/legend";
|
|
28
|
+
import { TimeseriesScalesService } from "../../timeseries-scales.service";
|
|
29
|
+
import { TimeseriesInteractionType } from "../../types";
|
|
30
|
+
import { TimeseriesChartComponent } from "../timeseries-chart.component";
|
|
31
|
+
import * as i0 from "@angular/core";
|
|
32
|
+
import * as i1 from "../../timeseries-scales.service";
|
|
33
|
+
import * as i2 from "@nova-ui/bits";
|
|
34
|
+
export class XYChartComponent extends TimeseriesChartComponent {
|
|
35
|
+
constructor(eventBus, dataSource, timeseriesScalesService, changeDetector) {
|
|
36
|
+
super(timeseriesScalesService, dataSource);
|
|
37
|
+
this.eventBus = eventBus;
|
|
38
|
+
this.timeseriesScalesService = timeseriesScalesService;
|
|
39
|
+
this.changeDetector = changeDetector;
|
|
40
|
+
this.valueAccessorKey = "y";
|
|
41
|
+
this.collectionId = "";
|
|
42
|
+
}
|
|
43
|
+
mapSeriesSet(data, scales) {
|
|
44
|
+
return data.map((series) => ({
|
|
45
|
+
...series,
|
|
46
|
+
scales: scales,
|
|
47
|
+
renderer: this.renderer,
|
|
48
|
+
accessors: this.accessors,
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
/** Checks if legend should be shown. */
|
|
52
|
+
hasLegend() {
|
|
53
|
+
return (this.configuration.legendPlacement &&
|
|
54
|
+
this.configuration.legendPlacement !== LegendPlacement.None);
|
|
55
|
+
}
|
|
56
|
+
/** Checks if legend should be aligned to right. */
|
|
57
|
+
legendShouldBeAlignedRight() {
|
|
58
|
+
return this.configuration.legendPlacement === LegendPlacement.Right;
|
|
59
|
+
}
|
|
60
|
+
onPrimaryDescClick(event, legendSeries) {
|
|
61
|
+
if (!this.seriesInteractive) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
event.stopPropagation();
|
|
65
|
+
this.eventBus.getStream(INTERACTION).next({
|
|
66
|
+
payload: {
|
|
67
|
+
data: legendSeries,
|
|
68
|
+
interactionType: TimeseriesInteractionType.Series,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/** Updates chart data. */
|
|
73
|
+
updateChartData() {
|
|
74
|
+
this.chartAssist.update(this.mapSeriesSet(this.widgetData.series, this.scales));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Initialize chart
|
|
78
|
+
*/
|
|
79
|
+
buildChart() {
|
|
80
|
+
this.buildChart$.next();
|
|
81
|
+
const colorProvider = this.configuration.chartColors &&
|
|
82
|
+
this.configuration.chartColors?.length > 0
|
|
83
|
+
? new SequentialColorProvider(this.configuration.chartColors)
|
|
84
|
+
: defaultColorProvider();
|
|
85
|
+
const palette = new ChartPalette(colorProvider);
|
|
86
|
+
this.accessors = this.createAccessors(palette.standardColors);
|
|
87
|
+
this.chartAssist = this.createChartAssist(palette);
|
|
88
|
+
const chart = this.chartAssist.chart;
|
|
89
|
+
if (this.configuration.enableZoom) {
|
|
90
|
+
chart.addPlugin(new ZoomPlugin());
|
|
91
|
+
}
|
|
92
|
+
chart
|
|
93
|
+
.getEventBus()
|
|
94
|
+
.getStream(SET_DOMAIN_EVENT)
|
|
95
|
+
.pipe(takeUntil(merge(this.destroy$, this.buildChart$)))
|
|
96
|
+
.subscribe((event) => {
|
|
97
|
+
const payload = event.data;
|
|
98
|
+
const newDomain = payload[Object.keys(payload)[0]];
|
|
99
|
+
this.eventBus.getStream(SET_TIMEFRAME).next({
|
|
100
|
+
payload: {
|
|
101
|
+
startDatetime: newDomain[0],
|
|
102
|
+
endDatetime: newDomain[1],
|
|
103
|
+
selectedPresetId: null,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
this.setupInteraction();
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Subscribe to chart events and emit
|
|
111
|
+
*/
|
|
112
|
+
setupInteraction() {
|
|
113
|
+
// interaction with chart data points
|
|
114
|
+
this.chartAssist.chart
|
|
115
|
+
.getEventBus()
|
|
116
|
+
.getStream(INTERACTION_DATA_POINTS_EVENT)
|
|
117
|
+
.pipe(takeUntil(merge(this.destroy$, this.buildChart$)))
|
|
118
|
+
.subscribe((values) => {
|
|
119
|
+
const payload = values.data;
|
|
120
|
+
if (payload.interactionType === InteractionType.Click) {
|
|
121
|
+
this.eventBus.getStream(INTERACTION).next({
|
|
122
|
+
payload: {
|
|
123
|
+
data: payload.dataPoints,
|
|
124
|
+
interactionType: TimeseriesInteractionType.DataPoints,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
// interaction with values
|
|
130
|
+
this.chartAssist.chart
|
|
131
|
+
.getEventBus()
|
|
132
|
+
.getStream(INTERACTION_VALUES_EVENT)
|
|
133
|
+
.pipe(takeUntil(merge(this.destroy$, this.buildChart$)))
|
|
134
|
+
.subscribe((values) => {
|
|
135
|
+
const payload = values.data;
|
|
136
|
+
if (payload.interactionType === InteractionType.Click) {
|
|
137
|
+
this.eventBus.getStream(INTERACTION).next({
|
|
138
|
+
payload: {
|
|
139
|
+
data: payload.values,
|
|
140
|
+
interactionType: TimeseriesInteractionType.Values,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/** @nocollapse */ XYChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: XYChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: i1.TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
/** @nocollapse */ XYChartComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: XYChartComponent });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: XYChartComponent, decorators: [{
|
|
150
|
+
type: Injectable
|
|
151
|
+
}], ctorParameters: function () { return [{ type: i2.EventBus, decorators: [{
|
|
152
|
+
type: Inject,
|
|
153
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
154
|
+
}] }, { type: undefined, decorators: [{
|
|
155
|
+
type: Optional
|
|
156
|
+
}, {
|
|
157
|
+
type: Inject,
|
|
158
|
+
args: [DATA_SOURCE]
|
|
159
|
+
}] }, { type: i1.TimeseriesScalesService }, { type: i0.ChangeDetectorRef }]; } });
|
|
160
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieHktY2hhcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3RpbWVzZXJpZXMtd2lkZ2V0L2NoYXJ0LXByZXNldHMveHktY2hhcnQveHktY2hhcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RC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QocGFsZXR0ZSk7XG5cbiAgICAgICAgY29uc3QgY2hhcnQgPSB0aGlzLmNoYXJ0QXNzaXN0LmNoYXJ0O1xuICAgICAgICBpZiAodGhpcy5jb25maWd1cmF0aW9uLmVuYWJsZVpvb20pIHtcbiAgICAgICAgICAgIGNoYXJ0LmFkZFBsdWdpbihuZXcgWm9vbVBsdWdpbigpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNoYXJ0XG4gICAgICAgICAgICAuZ2V0RXZlbnRCdXMoKVxuICAgICAgICAgICAgLmdldFN0cmVhbShTRVRfRE9NQUlOX0VWRU5UKVxuICAgICAgICAgICAgLnBpcGUodGFrZVVudGlsKG1lcmdlKHRoaXMuZGVzdHJveSQsIHRoaXMuYnVpbGRDaGFydCQpKSlcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgcGF5bG9hZCA9IDxJU2V0RG9tYWluRXZlbnRQYXlsb2FkPmV2ZW50LmRhdGE7XG4gICAgICAgICAgICAgICAgY29uc3QgbmV3RG9tYWluID0gcGF5bG9hZFtPYmplY3Qua2V5cyhwYXlsb2FkKVswXV07XG4gICAgICAgICAgICAgICAgdGhpcy5ldmVudEJ1cy5nZXRTdHJlYW0oU0VUX1RJTUVGUkFNRSkubmV4dCh7XG4gICAgICAgICAgICAgICAgICAgIHBheWxvYWQ6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXJ0RGF0ZXRpbWU6IG5ld0RvbWFpblswXSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGVuZERhdGV0aW1lOiBuZXdEb21haW5bMV0sXG4gICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZFByZXNldElkOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy5zZXR1cEludGVyYWN0aW9uKCk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogU3Vic2NyaWJlIHRvIGNoYXJ0IGV2ZW50cyBhbmQgZW1pdFxuICAgICAqL1xuICAgIHByb3RlY3RlZCBzZXR1cEludGVyYWN0aW9uKCkge1xuICAgICAgICAvLyBpbnRlcmFjdGlvbiB3aXRoIGNoYXJ0IGRhdGEgcG9pbnRzXG4gICAgICAgIHRoaXMuY2hhcnRBc3Npc3QuY2hhcnRcbiAgICAgICAgICAgIC5nZXRFdmVudEJ1cygpXG4gICAgICAgICAgICAuZ2V0U3RyZWFtKElOVEVSQUNUSU9OX0RBVEFfUE9JTlRTX0VWRU5UKVxuICAgICAgICAgICAgLnBpcGUodGFrZVVudGlsKG1lcmdlKHRoaXMuZGVzdHJveSQsIHRoaXMuYnVpbGRDaGFydCQpKSlcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKHZhbHVlczogSUNoYXJ0RXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBwYXlsb2FkOiBJSW50ZXJhY3Rpb25EYXRhUG9pbnRzRXZlbnQgPSB2YWx1ZXMuZGF0YTtcbiAgICAgICAgICAgICAgICBpZiAocGF5bG9hZC5pbnRlcmFjdGlvblR5cGUgPT09IEludGVyYWN0aW9uVHlwZS5DbGljaykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmV2ZW50QnVzLmdldFN0cmVhbShJTlRFUkFDVElPTikubmV4dCh7XG4gICAgICAgICAgICAgICAgICAgICAgICBwYXlsb2FkOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogcGF5bG9hZC5kYXRhUG9pbnRzIGFzIElEYXRhUG9pbnRzUGF5bG9hZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnRlcmFjdGlvblR5cGU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRpbWVzZXJpZXNJbnRlcmFjdGlvblR5cGUuRGF0YVBvaW50cyxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIC8vIGludGVyYWN0aW9uIHdpdGggdmFsdWVzXG4gICAgICAgIHRoaXMuY2hhcnRBc3Npc3QuY2hhcnRcbiAgICAgICAgICAgIC5nZXRFdmVudEJ1cygpXG4gICAgICAgICAgICAuZ2V0U3RyZWFtKElOVEVSQUNUSU9OX1ZBTFVFU19FVkVOVClcbiAgICAgICAgICAgIC5waXBlKHRha2VVbnRpbChtZXJnZSh0aGlzLmRlc3Ryb3kkLCB0aGlzLmJ1aWxkQ2hhcnQkKSkpXG4gICAgICAgICAgICAuc3Vic2NyaWJlKCh2YWx1ZXM6IElDaGFydEV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgcGF5bG9hZDogSUludGVyYWN0aW9uVmFsdWVzUGF5bG9hZCA9IHZhbHVlcy5kYXRhO1xuICAgICAgICAgICAgICAgIGlmIChwYXlsb2FkLmludGVyYWN0aW9uVHlwZSA9PT0gSW50ZXJhY3Rpb25UeXBlLkNsaWNrKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZXZlbnRCdXMuZ2V0U3RyZWFtKElOVEVSQUNUSU9OKS5uZXh0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBheWxvYWQ6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBwYXlsb2FkLnZhbHVlcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnRlcmFjdGlvblR5cGU6IFRpbWVzZXJpZXNJbnRlcmFjdGlvblR5cGUuVmFsdWVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
|
|
File without changes
|
|
@@ -46,12 +46,12 @@ export class TimeseriesChartPresetService {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesChartPresetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
/** @nocollapse */ TimeseriesChartPresetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesChartPresetService, providedIn: "root" });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesChartPresetService, decorators: [{
|
|
52
52
|
type: Injectable,
|
|
53
53
|
args: [{
|
|
54
54
|
providedIn: "root",
|
|
55
55
|
}]
|
|
56
56
|
}], ctorParameters: function () { return []; } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1jaGFydC1wcmVzZXQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy90aW1lc2VyaWVzLXdpZGdldC90aW1lc2VyaWVzLWNoYXJ0LXByZXNldC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4R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hcnRQcmVzZXQuTGluZV06IHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRUeXBlOiBMaW5lQ2hhcnRDb21wb25lbnQubGF0ZUxvYWRLZXksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW1RpbWVzZXJpZXNDaGFydFByZXNldC5TdGFja2VkQXJlYV06IHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRUeXBlOiBTdGFja2VkQXJlYUNoYXJ0Q29tcG9uZW50LmxhdGVMb2FkS2V5LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtUaW1lc2VyaWVzQ2hhcnRQcmVzZXQuU3RhY2tlZFBlcmNlbnRhZ2VBcmVhXToge1xuICAgICAgICAgICAgICAgIGNvbXBvbmVudFR5cGU6IFN0YWNrZWRQZXJjZW50YWdlQXJlYUNoYXJ0Q29tcG9uZW50LmxhdGVMb2FkS2V5LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtUaW1lc2VyaWVzQ2hhcnRQcmVzZXQuU3RhY2tlZEJhcl06IHtcbiAgICAgICAgICAgICAgICBjb21wb25lbnRUeXBlOiBTdGFja2VkQmFyQ2hhcnRDb21wb25lbnQubGF0ZUxvYWRLZXksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW1RpbWVzZXJpZXNDaGFydFByZXNldC5TdGF0dXNCYXJdOiB7XG4gICAgICAgICAgICAgICAgY29tcG9uZW50VHlwZTogU3RhdHVzQmFyQ2hhcnRDb21wb25lbnQubGF0ZUxvYWRLZXksXG4gICAgICAgICAgICB9LFxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Injectable } from "@angular/core";
|
|
21
|
+
import { duration } from "moment/moment";
|
|
22
|
+
import { UnitBase, UnitConversionService } from "@nova-ui/bits";
|
|
23
|
+
import { LinearScale, TimeIntervalScale, TimeScale, } from "@nova-ui/charts";
|
|
24
|
+
import { DashboardUnitConversionPipe } from "../../common/pipes/dashboard-unit-conversion-pipe";
|
|
25
|
+
import { TimeseriesScaleType } from "./types";
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
import * as i1 from "@nova-ui/bits";
|
|
28
|
+
/**
|
|
29
|
+
* This service handles scale creation and configuration for the timeseries widget
|
|
30
|
+
*/
|
|
31
|
+
export class TimeseriesScalesService {
|
|
32
|
+
constructor(unitConversionService) {
|
|
33
|
+
this.unitConversionService = unitConversionService;
|
|
34
|
+
this.unitConversionPipe = new DashboardUnitConversionPipe(this.unitConversionService);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Creates a scale based on given configuration
|
|
38
|
+
*
|
|
39
|
+
* @param scaleConfig
|
|
40
|
+
*/
|
|
41
|
+
getScale(scaleConfig, units) {
|
|
42
|
+
let scale;
|
|
43
|
+
switch (scaleConfig.type) {
|
|
44
|
+
case TimeseriesScaleType.Time: {
|
|
45
|
+
scale = new TimeScale();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case TimeseriesScaleType.Linear: {
|
|
49
|
+
scale = new LinearScale();
|
|
50
|
+
scale.formatters.tick = (value) => this.unitConversionPipe.transform(value, units, UnitBase.Standard);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case TimeseriesScaleType.TimeInterval: {
|
|
54
|
+
scale = new TimeIntervalScale(duration(1, "hour"));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
this.updateConfiguration(scale, scaleConfig);
|
|
59
|
+
return scale;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Currently only TimeIntervalScale has configuration
|
|
63
|
+
*
|
|
64
|
+
* @param scale
|
|
65
|
+
* @param scaleConfig
|
|
66
|
+
*/
|
|
67
|
+
updateConfiguration(scale, scaleConfig) {
|
|
68
|
+
if (scaleConfig.type === TimeseriesScaleType.TimeInterval &&
|
|
69
|
+
scale instanceof TimeIntervalScale) {
|
|
70
|
+
const interval = scaleConfig.properties?.interval;
|
|
71
|
+
if (typeof interval === "number") {
|
|
72
|
+
if (interval <= 0) {
|
|
73
|
+
throw new Error("Interval value must be greater than zero.");
|
|
74
|
+
}
|
|
75
|
+
scale.interval(duration(interval, "seconds"));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** @nocollapse */ TimeseriesScalesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesScalesService, deps: [{ token: i1.UnitConversionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
+
/** @nocollapse */ TimeseriesScalesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesScalesService });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesScalesService, decorators: [{
|
|
83
|
+
type: Injectable
|
|
84
|
+
}], ctorParameters: function () { return [{ type: i1.UnitConversionService }]; } });
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy1zY2FsZXMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy90aW1lc2VyaWVzLXdpZGdldC90aW1lc2VyaWVzLXNjYWxlcy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4RUFBOEU7QUFDOUUsK0VBQStFO0FBQy9FLDhFQUE4RTtBQUM5RSw0REFBNEQ7QUFDNUQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSx1REFBdUQ7QUFDdkQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSw0RUFBNEU7QUFDNUUsK0VBQStFO0FBQy9FLDBFQUEwRTtBQUMxRSxpRkFBaUY7QUFDakYsNkVBQTZFO0FBQzdFLGlCQUFpQjtBQUVqQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLFFBQVEsRUFBRSxxQkFBcUIsRUFBYyxNQUFNLGVBQWUsQ0FBQztBQUM1RSxPQ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XJzLnRpY2sgPSAodmFsdWU6IHN0cmluZyB8IG51bWJlciB8IHVuZGVmaW5lZCkgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy51bml0Q29udmVyc2lvblBpcGUudHJhbnNmb3JtKFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICAgICAgICAgICAgICB1bml0cyxcbiAgICAgICAgICAgICAgICAgICAgICAgIFVuaXRCYXNlLlN0YW5kYXJkXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjYXNlIFRpbWVzZXJpZXNTY2FsZVR5cGUuVGltZUludGVydmFsOiB7XG4gICAgICAgICAgICAgICAgc2NhbGUgPSBuZXcgVGltZUludGVydmFsU2NhbGUoZHVyYXRpb24oMSwgXCJob3VyXCIpKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMudXBkYXRlQ29uZmlndXJhdGlvbihzY2FsZSwgc2NhbGVDb25maWcpO1xuXG4gICAgICAgIHJldHVybiBzY2FsZTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBDdXJyZW50bHkgb25seSBUaW1lSW50ZXJ2YWxTY2FsZSBoYXMgY29uZmlndXJhdGlvblxuICAgICAqXG4gICAgICogQHBhcmFtIHNjYWxlXG4gICAgICogQHBhcmFtIHNjYWxlQ29uZmlnXG4gICAgICovXG4gICAgcHVibGljIHVwZGF0ZUNvbmZpZ3VyYXRpb24oXG4gICAgICAgIHNjYWxlOiBJU2NhbGU8YW55PixcbiAgICAgICAgc2NhbGVDb25maWc6IElUaW1lc2VyaWVzU2NhbGVDb25maWdcbiAgICApOiB2b2lkIHtcbiAgICAgICAgaWYgKFxuICAgICAgICAgICAgc2NhbGVDb25maWcudHlwZSA9PT0gVGltZXNlcmllc1NjYWxlVHlwZS5UaW1lSW50ZXJ2YWwgJiZcbiAgICAgICAgICAgIHNjYWxlIGluc3RhbmNlb2YgVGltZUludGVydmFsU2NhbGVcbiAgICAgICAgKSB7XG4gICAgICAgICAgICBjb25zdCBpbnRlcnZhbCA9IHNjYWxlQ29uZmlnLnByb3BlcnRpZXM/LmludGVydmFsO1xuICAgICAgICAgICAgaWYgKHR5cGVvZiBpbnRlcnZhbCA9PT0gXCJudW1iZXJcIikge1xuICAgICAgICAgICAgICAgIGlmIChpbnRlcnZhbCA8PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiSW50ZXJ2YWwgdmFsdWUgbXVzdCBiZSBncmVhdGVyIHRoYW4gemVyby5cIlxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBzY2FsZS5pbnRlcnZhbChkdXJhdGlvbihpbnRlcnZhbCwgXCJzZWNvbmRzXCIpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ChangeDetectorRef, Component, HostBinding, Input, } from "@angular/core";
|
|
21
|
+
import { TimeseriesChartPresetService } from "./timeseries-chart-preset.service";
|
|
22
|
+
import { TimeseriesChartPreset, } from "./types";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
import * as i1 from "./timeseries-chart-preset.service";
|
|
25
|
+
import * as i2 from "@nova-ui/bits";
|
|
26
|
+
import * as i3 from "@angular/common";
|
|
27
|
+
import * as i4 from "../../pizzagna/directives/component-portal/component-portal.directive";
|
|
28
|
+
import * as i5 from "@angular/cdk/portal";
|
|
29
|
+
/** @ignore */
|
|
30
|
+
export class TimeseriesWidgetComponent {
|
|
31
|
+
constructor(timeseriesChartPresetService, changeDetector) {
|
|
32
|
+
this.timeseriesChartPresetService = timeseriesChartPresetService;
|
|
33
|
+
this.changeDetector = changeDetector;
|
|
34
|
+
this.elementClass = "";
|
|
35
|
+
}
|
|
36
|
+
ngOnChanges(changes) {
|
|
37
|
+
if (changes.configuration) {
|
|
38
|
+
const configurationCurrent = changes.configuration.currentValue;
|
|
39
|
+
const configurationPrevious = changes.configuration.previousValue;
|
|
40
|
+
if (configurationCurrent?.preset !== configurationPrevious?.preset) {
|
|
41
|
+
this.chartPreset =
|
|
42
|
+
this.timeseriesChartPresetService.presets[this.configuration?.preset ?? TimeseriesChartPreset.Line];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** Checks if chart should be shown. */
|
|
47
|
+
shouldShowChart() {
|
|
48
|
+
return (this.widgetData?.series?.length ?? 0) > 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
TimeseriesWidgetComponent.lateLoadKey = "TimeseriesWidgetComponent";
|
|
52
|
+
/** @nocollapse */ TimeseriesWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesWidgetComponent, deps: [{ token: i1.TimeseriesChartPresetService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
/** @nocollapse */ TimeseriesWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TimeseriesWidgetComponent, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"h-100\" *ngIf=\"shouldShowChart()\">\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", components: [{ type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimeseriesWidgetComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: "nui-timeseries-widget", template: "<div class=\"h-100\" *ngIf=\"shouldShowChart()\">\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n" }]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.TimeseriesChartPresetService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { widgetData: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], configuration: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], collectionId: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], elementClass: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}, {
|
|
66
|
+
type: HostBinding,
|
|
67
|
+
args: ["class"]
|
|
68
|
+
}] } });
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXNlcmllcy13aWRnZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL3RpbWVzZXJpZXMtd2lkZ2V0L3RpbWVzZXJpZX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XRDb25maWcgPVxuICAgICAgICAgICAgICAgIGNoYW5nZXMuY29uZmlndXJhdGlvbi5wcmV2aW91c1ZhbHVlO1xuXG4gICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgY29uZmlndXJhdGlvbkN1cnJlbnQ/LnByZXNldCAhPT0gY29uZmlndXJhdGlvblByZXZpb3VzPy5wcmVzZXRcbiAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgIHRoaXMuY2hhcnRQcmVzZXQgPVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnRpbWVzZXJpZXNDaGFydFByZXNldFNlcnZpY2UucHJlc2V0c1tcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlndXJhdGlvbj8ucHJlc2V0ID8/IFRpbWVzZXJpZXNDaGFydFByZXNldC5MaW5lXG4gICAgICAgICAgICAgICAgICAgIF07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKiogQ2hlY2tzIGlmIGNoYXJ0IHNob3VsZCBiZSBzaG93bi4gKi9cbiAgICBwdWJsaWMgc2hvdWxkU2hvd0NoYXJ0KCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gKHRoaXMud2lkZ2V0RGF0YT8uc2VyaWVzPy5sZW5ndGggPz8gMCkgPiAwO1xuICAgIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJoLTEwMFwiICpuZ0lmPVwic2hvdWxkU2hvd0NoYXJ0KClcIj5cbiAgICA8bmctY29udGFpbmVyXG4gICAgICAgIG51aUNvbXBvbmVudFBvcnRhbFxuICAgICAgICBjb21wb25lbnRJZD1cInRpbWVzZXJpZXNXaWRnZXRDaGFydFwiXG4gICAgICAgIFtjb21wb25lbnRUeXBlXT1cImNoYXJ0UHJlc2V0LmNvbXBvbmVudFR5cGVcIlxuICAgICAgICBbcHJvcGVydGllc109XCJ7XG4gICAgICAgICAgICB3aWRnZXREYXRhOiB3aWRnZXREYXRhLFxuICAgICAgICAgICAgY29uZmlndXJhdGlvbjogY29uZmlndXJhdGlvbixcbiAgICAgICAgICAgIGNvbGxlY3Rpb25JZDogY29sbGVjdGlvbklkIHx8IGNvbmZpZ3VyYXRpb24/LmNvbGxlY3Rpb25JZFxuICAgICAgICB9XCJcbiAgICAgICAgI2NvbXBvbmVudFBvcnRhbD1cIm51aUNvbXBvbmVudFBvcnRhbFwiXG4gICAgPlxuICAgICAgICA8bmctdGVtcGxhdGVcbiAgICAgICAgICAgIFtjZGtQb3J0YWxPdXRsZXRdPVwiY29tcG9uZW50UG9ydGFsLnBvcnRhbFwiXG4gICAgICAgICAgICAoYXR0YWNoZWQpPVwiY29tcG9uZW50UG9ydGFsLmF0dGFjaGVkKCRldmVudClcIlxuICAgICAgICA+XG4gICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgPC9uZy1jb250YWluZXI+XG48L2Rpdj5cbjxkaXYgKm5nSWY9XCIhc2hvdWxkU2hvd0NoYXJ0KClcIj5cbiAgICA8bnVpLWltYWdlIGltYWdlPVwibm8tZGF0YS10by1zaG93XCI+PC9udWktaW1hZ2U+XG48L2Rpdj5cbiJdfQ==
|
|
File without changes
|
|
File without changes
|
package/{esm2015/lib/components/widget/public-api.js → esm2020/lib/components/widget/public-api.mjs}
RENAMED
|
File without changes
|
|
File without changes
|