@nova-ui/dashboards 12.0.14-3732 → 12.0.14-3739
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/README.md +46 -29
- package/bundles/nova-ui-dashboards.umd.js +1282 -773
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/common/common.module.js +7 -27
- package/esm2015/lib/common/components/preview-overlay/preview-overlay.component.js +7 -3
- package/esm2015/lib/common/components/widget-error/widget-error.component.js +2 -2
- package/esm2015/lib/common/pipes/dashboard-unit-conversion-pipe.js +5 -3
- package/esm2015/lib/components/dashboard/dashboard.component.js +21 -11
- package/esm2015/lib/components/dashboard/default-gridster-config.js +2 -2
- package/esm2015/lib/components/dashboard/types.js +1 -1
- package/esm2015/lib/components/embedded-content/embedded-content.component.js +10 -4
- package/esm2015/lib/components/kpi-widget/kpi.component.js +15 -9
- package/esm2015/lib/components/kpi-widget/types.js +1 -1
- package/esm2015/lib/components/layouts/base-layout.js +24 -14
- package/esm2015/lib/components/layouts/stack/stack.component.js +3 -3
- package/esm2015/lib/components/layouts/tiles/tiles.component.js +4 -4
- package/esm2015/lib/components/list-widget/list-elements/list-group-item/list-group-item.component.js +2 -2
- package/esm2015/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.js +7 -5
- package/esm2015/lib/components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component.js +8 -4
- package/esm2015/lib/components/list-widget/list-widget.component.js +7 -5
- package/esm2015/lib/components/list-widget/types.js +1 -1
- package/esm2015/lib/components/loading/loading.component.js +3 -3
- package/esm2015/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.js +10 -8
- package/esm2015/lib/components/proportional-widget/proportional-widget.component.js +58 -31
- package/esm2015/lib/components/proportional-widget/types.js +1 -1
- package/esm2015/lib/components/providers/data-source-adapter.js +20 -11
- package/esm2015/lib/components/providers/drilldown-data-source-adapter.js +5 -4
- package/esm2015/lib/components/providers/event-bus-debugger.js +4 -3
- package/esm2015/lib/components/providers/interaction/interaction-handler.js +7 -3
- package/esm2015/lib/components/providers/interaction/url-interaction-handler.js +6 -4
- package/esm2015/lib/components/providers/kpi-color-prioritizer.js +3 -2
- package/esm2015/lib/components/providers/kpi-data-source-adapter.js +18 -8
- package/esm2015/lib/components/providers/kpi-scale-sync-broker.js +20 -10
- package/esm2015/lib/components/providers/kpi-status-content-fallback-adapter.js +13 -7
- package/esm2015/lib/components/providers/loading-adapter.js +4 -3
- package/esm2015/lib/components/providers/pizzagna-broadcaster.service.js +2 -3
- package/esm2015/lib/components/providers/refresher-settings.service.js +1 -1
- package/esm2015/lib/components/providers/refresher.js +12 -6
- package/esm2015/lib/components/providers/status-content-fallback-adapter.js +9 -5
- package/esm2015/lib/components/providers/table-data-source-adapter.js +8 -6
- package/esm2015/lib/components/providers/timeseries-data-source-adapter.js +4 -4
- package/esm2015/lib/components/providers/types.js +1 -1
- package/esm2015/lib/components/table-widget/addons/search-feature-addon.service.js +11 -6
- package/esm2015/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.js +23 -10
- package/esm2015/lib/components/table-widget/table-widget.component.js +57 -36
- package/esm2015/lib/components/time-frame-selection/timeframe-selection.component.js +12 -9
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/apply-status-endpoints.js +11 -8
- package/esm2015/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +23 -16
- package/esm2015/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +12 -7
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +3 -3
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +2 -2
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +6 -3
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +2 -2
- package/esm2015/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +19 -11
- package/esm2015/lib/components/timeseries-widget/timeseries-chart-preset.service.js +16 -6
- package/esm2015/lib/components/timeseries-widget/timeseries-scales.service.js +5 -4
- package/esm2015/lib/components/timeseries-widget/timeseries-widget.component.js +6 -5
- package/esm2015/lib/components/timeseries-widget/types.js +1 -1
- package/esm2015/lib/components/types.js +1 -1
- package/esm2015/lib/components/widget/types.js +1 -1
- package/esm2015/lib/components/widget/widget-body/widget-body.component.js +7 -6
- package/esm2015/lib/components/widget/widget-body-content/widget-body-content.component.js +5 -4
- package/esm2015/lib/components/widget/widget-header/widget-header.component.js +13 -10
- package/esm2015/lib/components/widget/widget.component.js +8 -10
- package/esm2015/lib/components/widget-search/widget-search.component.js +6 -5
- package/esm2015/lib/configurator/components/color-picker/color-picker.component.js +22 -11
- package/esm2015/lib/configurator/components/color-picker/color.service.js +3 -2
- package/esm2015/lib/configurator/components/configurator/configurator.component.js +14 -7
- package/esm2015/lib/configurator/components/drop-area/drop-area.component.js +1 -1
- package/esm2015/lib/configurator/components/form-stack/form-stack.component.js +6 -6
- package/esm2015/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-configuration.component.js +2 -2
- package/esm2015/lib/configurator/components/formatters/donut-content-percentage-formatter/donut-content-percentage-formatter.component.js +25 -22
- package/esm2015/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js +40 -26
- package/esm2015/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js +8 -4
- package/esm2015/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js +30 -8
- package/esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +28 -11
- package/esm2015/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js +3 -9
- package/esm2015/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js +4 -6
- package/esm2015/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js +13 -10
- package/esm2015/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js +59 -32
- package/esm2015/lib/configurator/components/formatters/widget-formatter-configurators/donut-formatter-configurator.component.js +5 -6
- package/esm2015/lib/configurator/components/heading/configurator-heading.component.js +3 -3
- package/esm2015/lib/configurator/components/items-dynamic/items-dynamic.component.js +8 -8
- package/esm2015/lib/configurator/components/preview-placeholder/preview-placeholder.component.js +2 -2
- package/esm2015/lib/configurator/components/widget-cloner/widget-cloner.component.js +15 -8
- package/esm2015/lib/configurator/components/widget-configurator-section/widget-configurator-section-coordinator.service.js +6 -4
- package/esm2015/lib/configurator/components/widget-configurator-section/widget-configurator-section.component.js +2 -2
- package/esm2015/lib/configurator/components/widget-editor/widget-editor.component.js +14 -8
- package/esm2015/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js +3 -3
- package/esm2015/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js +17 -9
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.js +12 -8
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.js +28 -14
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.js +4 -4
- package/esm2015/lib/configurator/components/widgets/configurator-items/data-source-error/table/table-data-source-error.component.js +2 -2
- package/esm2015/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.js +4 -4
- package/esm2015/lib/configurator/components/widgets/configurator-items/info-message-configuration/info-message-configuration.component.js +3 -3
- package/esm2015/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.js +14 -10
- package/esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/refresh-rate-configurator.component.js +8 -12
- package/esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresh-rate-configurator/time-units.js +1 -1
- package/esm2015/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.js +26 -10
- package/esm2015/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.js +18 -8
- package/esm2015/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.js +2 -2
- package/esm2015/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.js +32 -16
- package/esm2015/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.js +3 -3
- package/esm2015/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.js +10 -8
- package/esm2015/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.js +20 -15
- package/esm2015/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.js +14 -12
- package/esm2015/lib/configurator/components/widgets/proportional/aggregators-configurators/aggregator-configurator/aggregator-configurator.component.js +6 -5
- package/esm2015/lib/configurator/components/widgets/proportional/aggregators-configurators/field-mapper-aggregator-configurator/field-mapper-aggregator-configurator.component.js +13 -9
- package/esm2015/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.js +33 -19
- package/esm2015/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.js +7 -6
- package/esm2015/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.js +15 -12
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.js +3 -3
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/formatter-configurator.component.js +14 -12
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +2 -2
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/value-selector/value-selector.component.js +2 -2
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.js +47 -23
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.js +38 -25
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.js +5 -6
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.js +47 -27
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.js +10 -10
- package/esm2015/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js +19 -15
- package/esm2015/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.js +16 -11
- package/esm2015/lib/configurator/components/widgets/timeseries/public-api.js +1 -1
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js +7 -7
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.js +3 -3
- package/esm2015/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.js +9 -7
- package/esm2015/lib/configurator/components/wizard/dashwiz/dashwiz-buttons.component.js +76 -60
- package/esm2015/lib/configurator/components/wizard/dashwiz/dashwiz.component.js +21 -12
- package/esm2015/lib/configurator/components/wizard/dashwiz/dashwiz.service.js +1 -1
- package/esm2015/lib/configurator/components/wizard/dashwiz/model.js +1 -1
- package/esm2015/lib/configurator/components/wizard/dashwiz-step/dashwiz-step.component.js +2 -2
- package/esm2015/lib/configurator/components/wizard/types.js +1 -1
- package/esm2015/lib/configurator/configurator.module.js +7 -9
- package/esm2015/lib/configurator/functions/has-control-in-error-state.js +2 -2
- package/esm2015/lib/configurator/pipe/add-data.pipe.js +1 -1
- package/esm2015/lib/configurator/pipe/pizzagna-root.pipe.js +1 -1
- package/esm2015/lib/configurator/pipe/widget-configurator-section-header.pipe.js +1 -1
- package/esm2015/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js +4 -3
- package/esm2015/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.js +2 -3
- package/esm2015/lib/configurator/services/configurator-data-source-manager.service.js +6 -4
- package/esm2015/lib/configurator/services/configurator-heading.service.js +1 -1
- package/esm2015/lib/configurator/services/configurator.service.js +16 -9
- package/esm2015/lib/configurator/services/converters/base-converter.js +6 -4
- package/esm2015/lib/configurator/services/converters/kpi/kpi-section-converter/kpi-section-converter.service.js +3 -3
- package/esm2015/lib/configurator/services/converters/kpi/kpi-tiles-converter.service.js +8 -8
- package/esm2015/lib/configurator/services/converters/proportional/proportional-widget-chart-options-converter.service.js +4 -4
- package/esm2015/lib/configurator/services/converters/shared/generic-array-converter/generic-array-converter.service.js +5 -5
- package/esm2015/lib/configurator/services/converters/shared/generic-converter/generic-converter.service.js +3 -3
- package/esm2015/lib/configurator/services/converters/shared/title-and-description-converter/title-and-description-converter.service.js +3 -5
- package/esm2015/lib/configurator/services/converters/table/table-columns-converter.service.js +22 -12
- package/esm2015/lib/configurator/services/converters/table/table-filters-converter.service.js +3 -3
- package/esm2015/lib/configurator/services/converters/timeseries/timeseries-metadata-converter.service.js +7 -7
- package/esm2015/lib/configurator/services/converters/timeseries/timeseries-series-converter.service.js +15 -12
- package/esm2015/lib/configurator/services/converters/timeseries/timeseries-tile-indicator-data-converter.service.js +6 -6
- package/esm2015/lib/configurator/services/converters/types.js +1 -1
- package/esm2015/lib/configurator/services/kpi-widget-color.service.js +1 -1
- package/esm2015/lib/configurator/services/preview.service.js +1 -1
- package/esm2015/lib/configurator/services/timeframe-serialization.service.js +1 -1
- package/esm2015/lib/configurator/services/types.js +1 -1
- package/esm2015/lib/configurator/services/widget-cloner.service.js +3 -2
- package/esm2015/lib/configurator/services/widget-editor.service.js +1 -1
- package/esm2015/lib/configurator/types.js +2 -2
- package/esm2015/lib/constants/default-palette.js +10 -5
- package/esm2015/lib/dashboards.module.js +3 -3
- package/esm2015/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.js +2 -2
- package/esm2015/lib/directives/widget-editor/widget-editor.directive.js +15 -7
- package/esm2015/lib/functions/get-parent-component-id.js +2 -4
- package/esm2015/lib/functions/map-data-to-formatter-properties.js +1 -1
- package/esm2015/lib/functions/merge-changes.js +20 -9
- package/esm2015/lib/functions/on-mark-as-touched.js +1 -1
- package/esm2015/lib/functions/parse-string-with-data.js +1 -1
- package/esm2015/lib/functions/proportional-aggregators/field-mapper.js +2 -2
- package/esm2015/lib/functions/proportional-aggregators/percentage-aggregator.js +4 -6
- package/esm2015/lib/functions/proportional-aggregators/sum-aggregator.js +3 -3
- package/esm2015/lib/functions/proportional-aggregators/types.js +1 -1
- package/esm2015/lib/pizzagna/components/pizzagna/pizzagna.component.js +17 -9
- package/esm2015/lib/pizzagna/directives/component-portal/component-portal.directive.js +26 -13
- package/esm2015/lib/pizzagna/pizzagna.module.js +6 -23
- package/esm2015/lib/pizzagna/services/component-portal.service.js +6 -2
- package/esm2015/lib/pizzagna/services/component-registry.service.js +5 -2
- package/esm2015/lib/pizzagna/services/dynamic-component-creator.service.js +4 -4
- package/esm2015/lib/pizzagna/services/pizzagna.service.js +33 -15
- package/esm2015/lib/services/category-chart-util.service.js +14 -7
- package/esm2015/lib/services/event-registry.service.js +5 -2
- package/esm2015/lib/services/kpi-color-comparators-registry.service.js +1 -1
- package/esm2015/lib/services/proportional-content-aggregators-registry.service.js +1 -1
- package/esm2015/lib/services/provider-registry.service.js +54 -13
- package/esm2015/lib/services/registry-service.js +6 -4
- package/esm2015/lib/services/table-formatter-registry.service.js +1 -1
- package/esm2015/lib/services/types.js +2 -2
- package/esm2015/lib/services/url-interaction.service.js +1 -1
- package/esm2015/lib/services/widget-removal.service.js +3 -3
- package/esm2015/lib/services/widget-to-dashboard-event-proxy.service.js +14 -8
- package/esm2015/lib/services/widget-types.service.js +16 -6
- package/esm2015/lib/types.js +2 -2
- package/esm2015/lib/widget-types/common/configurator/components.js +7 -3
- package/esm2015/lib/widget-types/common/widget/components.js +3 -3
- package/esm2015/lib/widget-types/common/widget/legend.js +1 -1
- package/esm2015/lib/widget-types/common/widget/providers.js +2 -2
- package/esm2015/lib/widget-types/drilldown/drilldown-configurator.js +4 -7
- package/esm2015/lib/widget-types/drilldown/drilldown-widget.js +4 -12
- package/esm2015/lib/widget-types/drilldown/drilldown.js +6 -6
- package/esm2015/lib/widget-types/embedded-content/embedded-content-configurator.js +4 -7
- package/esm2015/lib/widget-types/embedded-content/embedded-content-widget.js +3 -7
- package/esm2015/lib/widget-types/embedded-content/embedded-content.js +6 -6
- package/esm2015/lib/widget-types/kpi/kpi-configurator.js +18 -11
- package/esm2015/lib/widget-types/kpi/kpi-widget.js +12 -16
- package/esm2015/lib/widget-types/kpi/kpi.js +6 -6
- package/esm2015/lib/widget-types/preview-placeholder.js +4 -7
- package/esm2015/lib/widget-types/proportional/donut-content-configurator-slice.js +11 -5
- package/esm2015/lib/widget-types/proportional/proportional-configurator.js +20 -13
- package/esm2015/lib/widget-types/proportional/proportional-widget.js +4 -8
- package/esm2015/lib/widget-types/proportional/proportional.js +6 -6
- package/esm2015/lib/widget-types/public-api.js +1 -1
- package/esm2015/lib/widget-types/table/default-table-formatters.js +1 -1
- package/esm2015/lib/widget-types/table/table-configurator.js +2 -2
- package/esm2015/lib/widget-types/table/table-widget.js +4 -8
- package/esm2015/lib/widget-types/table/table.js +4 -4
- package/esm2015/lib/widget-types/timeseries/timeseries-configurator.js +6 -13
- package/esm2015/lib/widget-types/timeseries/timeseries-widget.js +9 -14
- package/esm2015/lib/widget-types/timeseries/timeseries.js +6 -6
- package/fesm2015/nova-ui-dashboards.js +1644 -1022
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/common/components/widget-error/widget-error.component.d.ts +1 -1
- package/lib/components/dashboard/dashboard.component.d.ts +1 -1
- package/lib/components/dashboard/types.d.ts +1 -1
- package/lib/components/layouts/base-layout.d.ts +1 -1
- package/lib/components/list-widget/list-elements/list-leaf-item/list-leaf-item.component.d.ts +1 -1
- package/lib/components/proportional-widget/types.d.ts +2 -2
- 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/table-widget/table-widget.component.d.ts +2 -2
- package/lib/components/time-frame-selection/timeframe-selection.component.d.ts +1 -1
- package/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.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/components/widget-cloner/widget-cloner.component.d.ts +1 -1
- package/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.d.ts +1 -1
- package/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.d.ts +1 -1
- package/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.d.ts +1 -1
- package/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.d.ts +1 -1
- package/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.d.ts +1 -1
- package/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.d.ts +1 -1
- package/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.d.ts +1 -1
- package/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.d.ts +1 -1
- package/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.d.ts +1 -1
- package/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.d.ts +1 -1
- package/lib/configurator/components/wizard/dashwiz/dashwiz.component.d.ts +1 -1
- package/lib/configurator/components/wizard/dashwiz/model.d.ts +1 -1
- package/lib/configurator/pipe/pizzagna-root.pipe.d.ts +1 -1
- package/lib/configurator/services/configurator-data-source-manager.service.d.ts +3 -3
- package/lib/configurator/services/configurator.service.d.ts +2 -2
- package/lib/configurator/services/converters/base-converter.d.ts +1 -1
- package/lib/configurator/services/types.d.ts +2 -2
- package/lib/directives/widget-editor/widget-editor.directive.d.ts +1 -1
- package/lib/pizzagna/services/pizzagna.service.d.ts +1 -1
- package/lib/services/registry-service.d.ts +1 -1
- package/lib/services/table-formatter-registry.service.d.ts +1 -1
- package/lib/services/widget-removal.service.d.ts +1 -1
- package/lib/widget-types/proportional/proportional-configurator.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/atoms/spec/configurator/accordion.atom.js +1 -1
- package/sdk/atoms/spec/configurator/accordion.atom.js.map +1 -1
- package/sdk/atoms/spec/configurator/configurator-section.atom.js +1 -1
- package/sdk/atoms/spec/configurator/configurator-section.atom.js.map +1 -1
- package/sdk/atoms/spec/configurator/configurator.atom.d.ts +1 -1
- package/sdk/atoms/spec/configurator/configurator.atom.js +3 -2
- package/sdk/atoms/spec/configurator/configurator.atom.js.map +1 -1
- package/sdk/atoms/spec/configurator/dashboard-wizard.atom.d.ts +1 -1
- package/sdk/atoms/spec/configurator/dashboard-wizard.atom.js +1 -1
- package/sdk/atoms/spec/configurator/dashboard-wizard.atom.js.map +1 -1
- package/sdk/atoms/spec/dashboard.atom.js +3 -2
- package/sdk/atoms/spec/dashboard.atom.js.map +1 -1
- package/sdk/atoms/spec/drilldown.atom.d.ts +1 -1
- package/sdk/atoms/spec/drilldown.atom.js +1 -1
- package/sdk/atoms/spec/drilldown.atom.js.map +1 -1
- package/sdk/atoms/spec/proportional-widget.atom.d.ts +1 -1
- package/sdk/atoms/spec/proportional-widget.atom.js +6 -2
- package/sdk/atoms/spec/proportional-widget.atom.js.map +1 -1
- 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/data-mock.js +2620 -2620
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/data-mock.js.map +1 -1
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.d.ts +2 -2
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.js +24 -20
- 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 +28 -14
- package/sdk/atoms/spec/virtual-dashboards/drilldown-widget-test/drilldown-widget-test.component.spec.js.map +1 -1
- package/sdk/atoms/spec/widget-header.atom.js +1 -1
- package/sdk/atoms/spec/widget-header.atom.js.map +1 -1
- package/sdk/atoms/src/lib/common/common.module.js +4 -17
- 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 +3 -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.d.ts +1 -1
- package/sdk/atoms/src/lib/common/components/widget-error/widget-error.component.js.map +1 -1
- package/sdk/atoms/src/lib/common/pipes/dashboard-unit-conversion-pipe.js +4 -2
- package/sdk/atoms/src/lib/common/pipes/dashboard-unit-conversion-pipe.js.map +1 -1
- package/sdk/atoms/src/lib/components/dashboard/dashboard.component.d.ts +1 -1
- package/sdk/atoms/src/lib/components/dashboard/dashboard.component.js +17 -7
- package/sdk/atoms/src/lib/components/dashboard/dashboard.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/dashboard/default-gridster-config.js.map +1 -1
- package/sdk/atoms/src/lib/components/dashboard/types.d.ts +1 -1
- package/sdk/atoms/src/lib/components/embedded-content/embedded-content.component.js +9 -3
- 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 -6
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/base-layout.d.ts +1 -1
- package/sdk/atoms/src/lib/components/layouts/base-layout.js +22 -12
- package/sdk/atoms/src/lib/components/layouts/base-layout.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/stack/stack.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/layouts/tiles/tiles.component.js +1 -1
- 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-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 +4 -2
- 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 +5 -1
- 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 +4 -2
- 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.map +1 -1
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-donut-content/proportional-donut-content.component.js +7 -5
- 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 +54 -27
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/proportional-widget/types.d.ts +2 -2
- package/sdk/atoms/src/lib/components/proportional-widget/types.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 +16 -7
- 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 -2
- 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 +3 -2
- 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 +6 -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 +4 -2
- 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 +2 -1
- package/sdk/atoms/src/lib/components/providers/kpi-color-prioritizer.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/kpi-data-source-adapter.js +16 -6
- 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 +18 -8
- 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 +11 -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 +3 -2
- package/sdk/atoms/src/lib/components/providers/loading-adapter.js.map +1 -1
- package/sdk/atoms/src/lib/components/providers/pizzagna-broadcaster.service.js +1 -2
- 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.map +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher.d.ts +1 -1
- package/sdk/atoms/src/lib/components/providers/refresher.js +11 -5
- 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 +8 -4
- 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 +5 -3
- 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 +10 -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 +22 -9
- 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/table-widget.component.d.ts +2 -2
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js +53 -32
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/time-frame-selection/timeframe-selection.component.d.ts +1 -1
- package/sdk/atoms/src/lib/components/time-frame-selection/timeframe-selection.component.js +8 -5
- 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 +10 -7
- 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 +20 -13
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +10 -5
- 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.map +1 -1
- 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 +4 -1
- 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.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +16 -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 +15 -5
- 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 -2
- 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 +2 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/types.js.map +1 -1
- package/sdk/atoms/src/lib/components/types.js.map +1 -1
- package/sdk/atoms/src/lib/components/widget/widget-body/widget-body.component.js +4 -3
- 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 +2 -1
- 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 +7 -4
- 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 +5 -5
- 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 +3 -2
- 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 +20 -9
- 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 -1
- package/sdk/atoms/src/lib/configurator/components/color-picker/color.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/configurator/configurator.component.js +9 -4
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/form-stack/form-stack.component.js +1 -1
- 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 +4 -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 +17 -14
- 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 +20 -13
- 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 +4 -2
- 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 +16 -4
- 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 +17 -5
- 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 -4
- package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js +1 -2
- 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 +10 -7
- 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 +34 -17
- 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 +2 -3
- 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 +2 -1
- 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 +5 -5
- package/sdk/atoms/src/lib/configurator/components/items-dynamic/items-dynamic.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-cloner/widget-cloner.component.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-cloner/widget-cloner.component.js +11 -4
- 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 +5 -3
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor/widget-editor.component.js +10 -4
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.js +14 -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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.js +9 -5
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.js +26 -12
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/data-source-error/data-source-error.component.js +2 -2
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.js +2 -1
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.js +12 -7
- 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 +7 -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/refresh-rate-configurator/time-units.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.js +23 -7
- 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 +15 -5
- 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 +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-validator.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.js +28 -12
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.js +9 -6
- 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 +16 -11
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/kpi/kpi-tiles-configuration/kpi-tiles-configuration.component.js +9 -7
- 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 +3 -2
- 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 +9 -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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.js +29 -15
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.js +2 -1
- 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 +13 -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 +2 -1
- 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 +12 -10
- 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.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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.js +40 -18
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/table-columns-configuration.component.js +33 -20
- 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 +4 -4
- 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 +41 -23
- 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 +8 -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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.js +15 -11
- 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 +13 -8
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.js +3 -3
- 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 +2 -1
- 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 +5 -3
- 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 +37 -29
- 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.d.ts +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/dashwiz.component.js +19 -10
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/wizard/dashwiz/model.d.ts +1 -1
- 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 +5 -7
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/functions/has-control-in-error-state.js +1 -1
- package/sdk/atoms/src/lib/configurator/functions/has-control-in-error-state.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/add-data.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/pizzagna-root.pipe.d.ts +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.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js +3 -2
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-form-state.pipe.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/pipe/widget-editor-accordion-header-icon.pipe.js +1 -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.d.ts +3 -3
- package/sdk/atoms/src/lib/configurator/services/configurator-data-source-manager.service.js +5 -3
- 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.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/configurator.service.d.ts +2 -2
- package/sdk/atoms/src/lib/configurator/services/configurator.service.js +15 -8
- 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 +4 -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 +2 -2
- 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 +10 -10
- 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 +3 -3
- 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 +4 -4
- 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 +2 -2
- 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 +2 -4
- 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 +19 -9
- 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 +2 -2
- 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 +6 -6
- 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 +13 -10
- 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 +4 -4
- 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/converters/types.js.map +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.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/timeframe-serialization.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/types.d.ts +2 -2
- package/sdk/atoms/src/lib/configurator/services/widget-cloner.service.js +2 -1
- package/sdk/atoms/src/lib/configurator/services/widget-cloner.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/widget-editor.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/types.js +1 -1
- package/sdk/atoms/src/lib/configurator/types.js.map +1 -1
- package/sdk/atoms/src/lib/constants/default-palette.js +9 -4
- package/sdk/atoms/src/lib/constants/default-palette.js.map +1 -1
- package/sdk/atoms/src/lib/dashboards.module.js +1 -1
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/directives/gridster-item-widget-id/gridster-item-widget-id.directive.js.map +1 -1
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.d.ts +1 -1
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js +14 -6
- package/sdk/atoms/src/lib/directives/widget-editor/widget-editor.directive.js.map +1 -1
- package/sdk/atoms/src/lib/functions/get-parent-component-id.js +1 -3
- package/sdk/atoms/src/lib/functions/get-parent-component-id.js.map +1 -1
- package/sdk/atoms/src/lib/functions/map-data-to-formatter-properties.js.map +1 -1
- package/sdk/atoms/src/lib/functions/merge-changes.js +19 -8
- package/sdk/atoms/src/lib/functions/merge-changes.js.map +1 -1
- package/sdk/atoms/src/lib/functions/on-mark-as-touched.js.map +1 -1
- package/sdk/atoms/src/lib/functions/parse-string-with-data.js.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 +3 -5
- 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 +2 -2
- 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 +12 -4
- 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 +25 -12
- 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 +3 -13
- package/sdk/atoms/src/lib/pizzagna/pizzagna.module.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/component-portal.service.js +5 -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 +4 -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 +3 -3
- package/sdk/atoms/src/lib/pizzagna/services/dynamic-component-creator.service.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.d.ts +1 -1
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.js +30 -12
- package/sdk/atoms/src/lib/pizzagna/services/pizzagna.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/category-chart-util.service.js +13 -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 +4 -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.map +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 +50 -9
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/registry-service.d.ts +1 -1
- package/sdk/atoms/src/lib/services/registry-service.js +5 -3
- package/sdk/atoms/src/lib/services/registry-service.js.map +1 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.d.ts +1 -1
- package/sdk/atoms/src/lib/services/table-formatter-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.js +1 -1
- package/sdk/atoms/src/lib/services/types.js.map +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.map +1 -1
- package/sdk/atoms/src/lib/services/widget-removal.service.d.ts +1 -1
- package/sdk/atoms/src/lib/services/widget-removal.service.js +2 -2
- 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 +12 -6
- 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 +15 -5
- package/sdk/atoms/src/lib/services/widget-types.service.js.map +1 -1
- package/sdk/atoms/src/lib/types.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/configurator/components.js +5 -1
- package/sdk/atoms/src/lib/widget-types/common/configurator/components.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/widget/components.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/widget/legend.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/common/widget/providers.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-configurator.js +1 -4
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-widget.js +2 -10
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown.js +5 -5
- package/sdk/atoms/src/lib/widget-types/drilldown/drilldown.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-configurator.js +1 -4
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-widget.js +1 -5
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content.js +5 -5
- package/sdk/atoms/src/lib/widget-types/embedded-content/embedded-content.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-configurator.js +16 -9
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-widget.js +9 -13
- package/sdk/atoms/src/lib/widget-types/kpi/kpi-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/kpi/kpi.js +5 -5
- package/sdk/atoms/src/lib/widget-types/kpi/kpi.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/preview-placeholder.js +3 -6
- package/sdk/atoms/src/lib/widget-types/preview-placeholder.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/donut-content-configurator-slice.js +9 -3
- package/sdk/atoms/src/lib/widget-types/proportional/donut-content-configurator-slice.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-configurator.d.ts +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-configurator.js +18 -11
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-widget.js +1 -5
- package/sdk/atoms/src/lib/widget-types/proportional/proportional-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/proportional/proportional.js +5 -5
- package/sdk/atoms/src/lib/widget-types/proportional/proportional.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/default-table-formatters.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table-configurator.js +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table-widget.js +2 -6
- package/sdk/atoms/src/lib/widget-types/table/table-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table.js +3 -3
- package/sdk/atoms/src/lib/widget-types/table/table.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-configurator.js +4 -11
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-configurator.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-widget.js +4 -9
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries-widget.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries.js +5 -5
- package/sdk/atoms/src/lib/widget-types/timeseries/timeseries.js.map +1 -1
- package/sdk/locale/messages.en.xlf +415 -403
|
@@ -5,16 +5,16 @@ exports.PresentationConfigurationV2Component = void 0;
|
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const core_1 = require("@angular/core");
|
|
7
7
|
const forms_1 = require("@angular/forms");
|
|
8
|
-
const bits_1 = require("@nova-ui/bits");
|
|
9
8
|
const isUndefined_1 = tslib_1.__importDefault(require("lodash/isUndefined"));
|
|
10
9
|
const rxjs_1 = require("rxjs");
|
|
11
10
|
const operators_1 = require("rxjs/operators");
|
|
11
|
+
const bits_1 = require("@nova-ui/bits");
|
|
12
12
|
const on_mark_as_touched_1 = require("../../../../../../../functions/on-mark-as-touched");
|
|
13
13
|
const table_formatter_registry_service_1 = require("../../../../../../../services/table-formatter-registry.service");
|
|
14
14
|
const types_1 = require("../../../../../../../types");
|
|
15
15
|
const default_table_formatters_1 = require("../../../../../../../widget-types/table/default-table-formatters");
|
|
16
|
-
const types_2 = require("../../../../../../types");
|
|
17
16
|
const configurator_heading_service_1 = require("../../../../../../services/configurator-heading.service");
|
|
17
|
+
const types_2 = require("../../../../../../types");
|
|
18
18
|
let PresentationConfigurationV2Component = PresentationConfigurationV2Component_1 = class PresentationConfigurationV2Component {
|
|
19
19
|
constructor(formBuilder, changeDetector, configuratorHeading, eventBus, formattersRegistryCommon,
|
|
20
20
|
// used as a fallback, remove in vNext
|
|
@@ -36,10 +36,11 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
36
36
|
this.propertiesFormReady = new rxjs_1.Subject();
|
|
37
37
|
this.subscribeToFormattersRegistry();
|
|
38
38
|
this.form = this.formBuilder.group({
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
componentType: this.formBuilder.control((_b = (_a = this.providedFormatters) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.componentType, forms_1.Validators.required),
|
|
40
|
+
properties: this.formBuilder.control({}, () => { var _a; return ((_a = this.propertiesForm) === null || _a === void 0 ? void 0 : _a.invalid) ? { properties: true } : null; }),
|
|
41
41
|
});
|
|
42
|
-
(_c = this.form
|
|
42
|
+
(_c = this.form
|
|
43
|
+
.get("componentType")) === null || _c === void 0 ? void 0 : _c.valueChanges.pipe(operators_1.takeUntil(this.onDestroy$)).subscribe(() => this.createFormatterConfigurator());
|
|
43
44
|
this.form.valueChanges
|
|
44
45
|
.pipe(operators_1.takeUntil(this.onDestroy$))
|
|
45
46
|
.subscribe(() => {
|
|
@@ -48,7 +49,9 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
48
49
|
this.changeDetector.detectChanges();
|
|
49
50
|
});
|
|
50
51
|
this.eventBus.subscribeUntil(types_2.DATA_SOURCE_OUTPUT, this.onDestroy$, (event) => {
|
|
51
|
-
const { dataFields } = isUndefined_1.default(event.payload.result)
|
|
52
|
+
const { dataFields } = isUndefined_1.default(event.payload.result)
|
|
53
|
+
? event.payload
|
|
54
|
+
: event.payload.result || {};
|
|
52
55
|
this.dataFields = dataFields;
|
|
53
56
|
});
|
|
54
57
|
}
|
|
@@ -84,16 +87,14 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
84
87
|
this.onDestroy$.next();
|
|
85
88
|
this.onDestroy$.complete();
|
|
86
89
|
}
|
|
87
|
-
ngOnChanges(changes) {
|
|
88
|
-
}
|
|
90
|
+
ngOnChanges(changes) { }
|
|
89
91
|
registerOnChange(fn) {
|
|
90
92
|
this.changeFn = fn;
|
|
91
93
|
}
|
|
92
94
|
registerOnTouched(fn) {
|
|
93
95
|
this.touchFn = fn;
|
|
94
96
|
}
|
|
95
|
-
setDisabledState(isDisabled) {
|
|
96
|
-
}
|
|
97
|
+
setDisabledState(isDisabled) { }
|
|
97
98
|
writeValue(obj) {
|
|
98
99
|
this.input = obj;
|
|
99
100
|
this.form.patchValue(obj, { emitEvent: false });
|
|
@@ -101,22 +102,27 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
101
102
|
this.changeDetector.markForCheck();
|
|
102
103
|
}
|
|
103
104
|
validate(c) {
|
|
104
|
-
return this.form.valid &&
|
|
105
|
+
return this.form.valid &&
|
|
106
|
+
(!this.propertiesForm || this.propertiesForm.valid)
|
|
107
|
+
? null
|
|
108
|
+
: { error: "error" };
|
|
105
109
|
}
|
|
106
110
|
getSelectedFormatterDefinition() {
|
|
107
111
|
var _a, _b;
|
|
108
112
|
if (this.providedFormatters.length > 0) {
|
|
109
113
|
const formatterId = (_a = this.form.get("componentType")) === null || _a === void 0 ? void 0 : _a.value;
|
|
110
|
-
return (_b = this.providedFormatters.find(formatter => formatter.componentType === formatterId)) !== null && _b !== void 0 ? _b : null;
|
|
114
|
+
return ((_b = this.providedFormatters.find((formatter) => formatter.componentType === formatterId)) !== null && _b !== void 0 ? _b : null);
|
|
111
115
|
}
|
|
112
116
|
return null;
|
|
113
117
|
}
|
|
114
118
|
getSelectedDataField() {
|
|
115
119
|
var _a, _b;
|
|
116
120
|
const propertiesControl = this.form.controls["properties"];
|
|
117
|
-
if (propertiesControl &&
|
|
121
|
+
if (propertiesControl &&
|
|
122
|
+
this.dataFields &&
|
|
123
|
+
this.dataFields.length > 0) {
|
|
118
124
|
const dataFieldId = (_a = propertiesControl.value.dataFieldIds) === null || _a === void 0 ? void 0 : _a.value;
|
|
119
|
-
return (_b = this.dataFields.find(dataField => dataField.id === dataFieldId)) !== null && _b !== void 0 ? _b : null;
|
|
125
|
+
return ((_b = this.dataFields.find((dataField) => dataField.id === dataFieldId)) !== null && _b !== void 0 ? _b : null);
|
|
120
126
|
}
|
|
121
127
|
return null;
|
|
122
128
|
}
|
|
@@ -166,17 +172,24 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
166
172
|
*/
|
|
167
173
|
createFormatterConfigurator() {
|
|
168
174
|
var _a, _b, _c, _d;
|
|
169
|
-
const formatterDefinition = this.providedFormatters.find(formatter => {
|
|
175
|
+
const formatterDefinition = this.providedFormatters.find((formatter) => {
|
|
176
|
+
var _a;
|
|
177
|
+
return formatter.componentType ===
|
|
178
|
+
((_a = this.form.get("componentType")) === null || _a === void 0 ? void 0 : _a.value);
|
|
179
|
+
});
|
|
170
180
|
// if configurationComponent property is present in formatters configuration, use it to render portal,
|
|
171
181
|
// otherwise, use default ValueSelectorComponent
|
|
172
182
|
if (formatterDefinition) {
|
|
173
|
-
this.formatterConfigurator =
|
|
183
|
+
this.formatterConfigurator =
|
|
184
|
+
(_a = formatterDefinition.configurationComponent) !== null && _a !== void 0 ? _a : "ValueSelectorComponent";
|
|
174
185
|
}
|
|
175
186
|
else {
|
|
176
187
|
this.formatterConfigurator = null;
|
|
177
188
|
}
|
|
178
189
|
// if the currently selected component doesn't match the original value from the input then we reset the form values
|
|
179
|
-
if ((formatterDefinition === null || formatterDefinition === void 0 ? void 0 : formatterDefinition.componentType) !==
|
|
190
|
+
if ((formatterDefinition === null || formatterDefinition === void 0 ? void 0 : formatterDefinition.componentType) !==
|
|
191
|
+
((_b = this.formatter) === null || _b === void 0 ? void 0 : _b.componentType) &&
|
|
192
|
+
((_d = (_c = this.formatter) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.dataFieldIds)) {
|
|
180
193
|
this.formatter.properties.dataFieldIds = { value: null };
|
|
181
194
|
}
|
|
182
195
|
this.formatterConfiguratorProps = {
|
|
@@ -192,13 +205,13 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
192
205
|
}
|
|
193
206
|
// allow by default RawFormatter which has null as dataType
|
|
194
207
|
const sourceDataTypes = { null: true };
|
|
195
|
-
this._dataFields.forEach(f => sourceDataTypes[f.dataType] = true);
|
|
208
|
+
this._dataFields.forEach((f) => (sourceDataTypes[f.dataType] = true));
|
|
196
209
|
this._formatters = this.providedFormatters.filter((f) => {
|
|
197
210
|
// cast to array in case we have a single value
|
|
198
211
|
const formatterDataTypes = f.dataTypes.value instanceof Array
|
|
199
212
|
? f.dataTypes.value
|
|
200
213
|
: [f.dataTypes.value];
|
|
201
|
-
return formatterDataTypes.some(v => sourceDataTypes[v]);
|
|
214
|
+
return formatterDataTypes.some((v) => sourceDataTypes[v]);
|
|
202
215
|
});
|
|
203
216
|
if (this.form) {
|
|
204
217
|
this.createFormatterConfigurator();
|
|
@@ -206,13 +219,16 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
206
219
|
}
|
|
207
220
|
subscribeToFormattersRegistry() {
|
|
208
221
|
this.handleFormattersUpdate(this.formattersRegistry.getItems());
|
|
209
|
-
this.formattersRegistry.stateChanged
|
|
222
|
+
this.formattersRegistry.stateChanged$
|
|
223
|
+
.pipe(operators_1.takeUntil(this.onDestroy$))
|
|
224
|
+
.subscribe((formatters) => {
|
|
210
225
|
this.handleFormattersUpdate(formatters);
|
|
211
226
|
});
|
|
212
227
|
}
|
|
213
228
|
handleFormattersUpdate(formatters) {
|
|
214
229
|
if (formatters !== this.providedFormatters) {
|
|
215
|
-
this.providedFormatters =
|
|
230
|
+
this.providedFormatters =
|
|
231
|
+
(formatters === null || formatters === void 0 ? void 0 : formatters.length) > 0 ? formatters : default_table_formatters_1.DEFAULT_TABLE_FORMATTERS;
|
|
216
232
|
this.updateAvailableFormatters();
|
|
217
233
|
}
|
|
218
234
|
}
|
|
@@ -222,7 +238,7 @@ let PresentationConfigurationV2Component = PresentationConfigurationV2Component_
|
|
|
222
238
|
* nothing should go wrong, but in case "FORMATTERS_REGISTRY" is lost, get table registry
|
|
223
239
|
*/
|
|
224
240
|
get formattersRegistry() {
|
|
225
|
-
return this.formattersRegistryCommon || this.tableFormattersRegistryService;
|
|
241
|
+
return (this.formattersRegistryCommon || this.tableFormattersRegistryService);
|
|
226
242
|
}
|
|
227
243
|
};
|
|
228
244
|
PresentationConfigurationV2Component.lateLoadKey = "PresentationConfigurationV2Component";
|
|
@@ -244,7 +260,9 @@ PresentationConfigurationV2Component = PresentationConfigurationV2Component_1 =
|
|
|
244
260
|
selector: "nui-presentation-configuration-v2",
|
|
245
261
|
templateUrl: "./presentation-configuration-v2.component.html",
|
|
246
262
|
styleUrls: ["./presentation-configuration-v2.component.less"],
|
|
247
|
-
viewProviders: [
|
|
263
|
+
viewProviders: [
|
|
264
|
+
{ provide: forms_1.ControlContainer, useExisting: forms_1.FormGroupDirective },
|
|
265
|
+
],
|
|
248
266
|
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
249
267
|
providers: [
|
|
250
268
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-configuration-v2.component.js","sourceRoot":"","sources":["../../../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.ts"],"names":[],"mappings":";;;;;AAAA,wCAauB;AACvB,0CAYwB;AACxB,
|
|
1
|
+
{"version":3,"file":"presentation-configuration-v2.component.js","sourceRoot":"","sources":["../../../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.ts"],"names":[],"mappings":";;;;;AAAA,wCAauB;AACvB,0CAYwB;AACxB,6EAA6C;AAC7C,+BAA+B;AAC/B,8CAA2C;AAE3C,wCAA6D;AAQ7D,0FAAoF;AACpF,qHAGwE;AACxE,sDAIoC;AACpC,+GAA4G;AAC5G,0GAAqG;AACrG,mDAA6D;AAuB7D,IAAa,oCAAoC,4CAAjD,MAAa,oCAAoC;IA0D7C,YACY,WAAwB,EACzB,cAAiC,EACjC,mBAA+C,EAClB,QAA0B,EAGtD,wBAAkD;IAC1D,sCAAsC;IACtC;;OAEG;IACK,8BAA6D;;QAX7D,gBAAW,GAAX,WAAW,CAAa;QACzB,mBAAc,GAAd,cAAc,CAAmB;QACjC,wBAAmB,GAAnB,mBAA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E;YACX,EAAE,OAAO,EAAE,wBAAgB,EAAE,WAAW,EAAE,0BAAkB,EAAE;SACjE;QACD,eAAe,EAAE,8BAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,yBAAiB;gBAC1B,WAAW,EAAE,iBAAU,CAAC,GAAG,EAAE,CAAC,sCAAoC,CAAC;gBACnE,KAAK,EAAE,IAAI;aACd;YACD;gBACI,OAAO,EAAE,qBAAa;gBACtB,WAAW,EAAE,iBAAU,CAAC,GAAG,EAAE,CAAC,sCAAoC,CAAC;gBACnE,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;IA+DO,mBAAA,aAAM,CAAC,0BAAkB,CAAC,CAAA;IAC1B,mBAAA,eAAQ,EAAE,CAAA;IACV,mBAAA,aAAM,CAAC,2BAAmB,CAAC,CAAA;6CALP,mBAAW;QACT,wBAAiB;QACZ,yDAA0B;QACR,eAAQ;QAGpB,2DAAwB;QAKlB,gEAA6B;GAtEhE,oCAAoC,CA6ThD;AA7TY,oFAAoC"}
|
|
@@ -18,7 +18,9 @@ let TableColumnConfigurationComponent = TableColumnConfigurationComponent_1 = cl
|
|
|
18
18
|
description: this.formBuilder.control({}),
|
|
19
19
|
presentation: this.formBuilder.control({}),
|
|
20
20
|
});
|
|
21
|
-
this.form.valueChanges
|
|
21
|
+
this.form.valueChanges
|
|
22
|
+
.pipe(operators_1.takeUntil(this.onDestroy$))
|
|
23
|
+
.subscribe((value) => {
|
|
22
24
|
var _a;
|
|
23
25
|
const newValue = Object.assign(Object.assign({ id: (_a = this.input) === null || _a === void 0 ? void 0 : _a.id }, value.description), { formatter: value.presentation });
|
|
24
26
|
this.changeFn(newValue);
|
|
@@ -32,12 +34,10 @@ let TableColumnConfigurationComponent = TableColumnConfigurationComponent_1 = cl
|
|
|
32
34
|
registerOnChange(fn) {
|
|
33
35
|
this.changeFn = fn;
|
|
34
36
|
}
|
|
35
|
-
registerOnTouched(fn) {
|
|
36
|
-
}
|
|
37
|
-
setDisabledState(isDisabled) {
|
|
38
|
-
}
|
|
37
|
+
registerOnTouched(fn) { }
|
|
38
|
+
setDisabledState(isDisabled) { }
|
|
39
39
|
validate(c) {
|
|
40
|
-
return this.form.valid ? null : {
|
|
40
|
+
return this.form.valid ? null : { error: "error" };
|
|
41
41
|
}
|
|
42
42
|
writeValue(obj) {
|
|
43
43
|
this.input = obj;
|
|
@@ -78,7 +78,8 @@ TableColumnConfigurationComponent = TableColumnConfigurationComponent_1 = tslib_
|
|
|
78
78
|
},
|
|
79
79
|
],
|
|
80
80
|
}),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
81
|
+
tslib_1.__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
82
|
+
core_1.ChangeDetectorRef])
|
|
82
83
|
], TableColumnConfigurationComponent);
|
|
83
84
|
exports.TableColumnConfigurationComponent = TableColumnConfigurationComponent;
|
|
84
85
|
//# sourceMappingURL=table-column-configuration.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-column-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"table-column-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/table-column-configuration/table-column-configuration.component.ts"],"names":[],"mappings":";;;;;AAAA,wCAMuB;AACvB,0CASwB;AACxB,+BAA+B;AAC/B,8CAA2C;AAG3C,0FAAoF;AAkBpF,IAAa,iCAAiC,yCAA9C,MAAa,iCAAiC;IAc1C,YACY,WAAwB,EACzB,cAAiC;QADhC,gBAAW,GAAX,WAAW,CAAa;QACzB,mBAAc,GAAd,cAAc,CAAmB;QARpC,eAAU,GAAG,IAAI,cAAO,EAAE,CAAC;QAI1B,4BAAuB,GAAG,KAA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AH,GAAG,CAAE,SAAS,KAAI,EAAE;YAClC,WAAW,EAAE,GAAG;SACnB,EACD,EAAE,SAAS,EAAE,KAAK,EAAE,CACvB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACvC,CAAC;IAEM,WAAW;QACd,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;CACJ,CAAA;AApEiB,6CAAW,GAAG,mCAAmC,CAAC;AAQvD;IAAR,YAAK,EAAE;sCAAc,uBAAe;sEAAC;AAC7B;IAAR,YAAK,EAAE;;kFAAiC;AAZhC,iCAAiC;IAhB7C,gBAAS,CAAC;QACP,QAAQ,EAAE,gCAAgC;QAC1C,WAAW,EAAE,6CAA6C;QAC1D,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,yBAAiB;gBAC1B,WAAW,EAAE,iBAAU,CAAC,GAAG,EAAE,CAAC,mCAAiC,CAAC;gBAChE,KAAK,EAAE,IAAI;aACd;YACD;gBACI,OAAO,EAAE,qBAAa;gBACtB,WAAW,EAAE,iBAAU,CAAC,GAAG,EAAE,CAAC,mCAAiC,CAAC;gBAChE,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;6CAgB2B,mBAAW;QACT,wBAAiB;GAhBnC,iCAAiC,CAuE7C;AAvEY,8EAAiC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CdkDragDrop, CdkDragStart } from "@angular/cdk/drag-drop";
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
3
3
|
import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
4
|
-
import { DialogService, EventBus, IDataField, IDataSource, IEvent } from "@nova-ui/bits";
|
|
5
4
|
import { Observable } from "rxjs";
|
|
5
|
+
import { DialogService, EventBus, IDataField, IDataSource, IEvent } from "@nova-ui/bits";
|
|
6
6
|
import { IDataSourceError } from "../../../../../components/providers/types";
|
|
7
7
|
import { ITableWidgetColumnConfig } from "../../../../../components/table-widget/types";
|
|
8
8
|
import { PizzagnaService } from "../../../../../pizzagna/services/pizzagna.service";
|
|
@@ -4,11 +4,11 @@ exports.TableColumnsConfigurationV2Component = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@angular/core");
|
|
6
6
|
const forms_1 = require("@angular/forms");
|
|
7
|
-
const bits_1 = require("@nova-ui/bits");
|
|
8
7
|
const isUndefined_1 = tslib_1.__importDefault(require("lodash/isUndefined"));
|
|
9
8
|
const values_1 = tslib_1.__importDefault(require("lodash/values"));
|
|
10
9
|
const rxjs_1 = require("rxjs");
|
|
11
10
|
const operators_1 = require("rxjs/operators");
|
|
11
|
+
const bits_1 = require("@nova-ui/bits");
|
|
12
12
|
const pizzagna_service_1 = require("../../../../../pizzagna/services/pizzagna.service");
|
|
13
13
|
const table_formatter_registry_service_1 = require("../../../../../services/table-formatter-registry.service");
|
|
14
14
|
const types_1 = require("../../../../../types");
|
|
@@ -36,7 +36,8 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
36
36
|
this.form.controls["columns"].valueChanges
|
|
37
37
|
.pipe(operators_1.takeUntil(this.onDestroy$))
|
|
38
38
|
.subscribe((columns) => {
|
|
39
|
-
this.isWidthMessageDisplayed =
|
|
39
|
+
this.isWidthMessageDisplayed =
|
|
40
|
+
this.getWidthMessageDisplayed(columns);
|
|
40
41
|
this.changeDetector.markForCheck();
|
|
41
42
|
});
|
|
42
43
|
this.eventBus.subscribeUntil(types_2.DATA_SOURCE_CREATED, this.onDestroy$, (event) => {
|
|
@@ -51,7 +52,9 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
51
52
|
if ((_a = event.payload) === null || _a === void 0 ? void 0 : _a.error) {
|
|
52
53
|
return;
|
|
53
54
|
}
|
|
54
|
-
const { dataFields } = isUndefined_1.default(event.payload.result)
|
|
55
|
+
const { dataFields } = isUndefined_1.default(event.payload.result)
|
|
56
|
+
? event.payload
|
|
57
|
+
: event.payload.result || {};
|
|
55
58
|
this.dataSourceFields = dataFields !== null && dataFields !== void 0 ? dataFields : [];
|
|
56
59
|
const disableColumnGeneration = (_d = (_c = (_b = this.dataSource) === null || _b === void 0 ? void 0 : _b.features) === null || _c === void 0 ? void 0 : _c.getFeatureConfig(types_1.WellKnownDataSourceFeatures.DisableTableColumnGeneration)) === null || _d === void 0 ? void 0 : _d.enabled;
|
|
57
60
|
const columns = this.mergeColumns(this.dataSourceFields, this.getColumns());
|
|
@@ -75,7 +78,8 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
75
78
|
});
|
|
76
79
|
}
|
|
77
80
|
get columnForms() {
|
|
78
|
-
return this.form.controls["columns"]
|
|
81
|
+
return this.form.controls["columns"]
|
|
82
|
+
.controls;
|
|
79
83
|
}
|
|
80
84
|
ngOnInit() {
|
|
81
85
|
var _a, _b, _c;
|
|
@@ -100,7 +104,7 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
100
104
|
}
|
|
101
105
|
updateColumns(columns, emitEvent = true) {
|
|
102
106
|
const cols = this.form.controls["columns"];
|
|
103
|
-
cols.controls = columns.map(c => {
|
|
107
|
+
cols.controls = columns.map((c) => {
|
|
104
108
|
const fc = new forms_1.FormControl(c);
|
|
105
109
|
fc.setParent(cols);
|
|
106
110
|
// Nova's markAsTouched function gets attached to formControl during init of TableColumnConfigurationComponent,
|
|
@@ -133,7 +137,7 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
133
137
|
resetColumns(confirmation) {
|
|
134
138
|
const reset = () => {
|
|
135
139
|
var _a;
|
|
136
|
-
const columns = (_a = this.dataSourceFields) === null || _a === void 0 ? void 0 : _a.map(df => ({
|
|
140
|
+
const columns = (_a = this.dataSourceFields) === null || _a === void 0 ? void 0 : _a.map((df) => ({
|
|
137
141
|
id: bits_1.uuid("column"),
|
|
138
142
|
formatter: {
|
|
139
143
|
componentType: "RawFormatterComponent",
|
|
@@ -156,8 +160,7 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
156
160
|
message: $localize `Resetting the columns will revert them to their default configurations. Do you wish to proceed?`,
|
|
157
161
|
confirmText: $localize `Reset Columns`,
|
|
158
162
|
});
|
|
159
|
-
dialog.result
|
|
160
|
-
.then((result) => {
|
|
163
|
+
dialog.result.then((result) => {
|
|
161
164
|
if (result) {
|
|
162
165
|
reset();
|
|
163
166
|
}
|
|
@@ -176,8 +179,8 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
176
179
|
* @param columns
|
|
177
180
|
*/
|
|
178
181
|
mergeColumns(currentDatafields, columns) {
|
|
179
|
-
const currentDatafieldIds = currentDatafields.map(datafield => datafield.id);
|
|
180
|
-
return columns.filter(column => {
|
|
182
|
+
const currentDatafieldIds = currentDatafields.map((datafield) => datafield.id);
|
|
183
|
+
return columns.filter((column) => {
|
|
181
184
|
var _a, _b, _c, _d;
|
|
182
185
|
if (!((_b = (_a = column.formatter) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.dataFieldIds)) {
|
|
183
186
|
return false;
|
|
@@ -220,7 +223,8 @@ let TableColumnsConfigurationV2Component = class TableColumnsConfigurationV2Comp
|
|
|
220
223
|
this.moveItem(event.previousIndex, event.currentIndex);
|
|
221
224
|
}
|
|
222
225
|
cdkDragStarted(event) {
|
|
223
|
-
this.draggedItemHeight =
|
|
226
|
+
this.draggedItemHeight =
|
|
227
|
+
event.source.element.nativeElement.offsetHeight;
|
|
224
228
|
}
|
|
225
229
|
};
|
|
226
230
|
TableColumnsConfigurationV2Component.lateLoadKey = "TableColumnsConfigurationV2Component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-columns-configuration-v2.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.ts"],"names":[],"mappings":";;;;AACA,wCAauB;AACvB,
|
|
1
|
+
{"version":3,"file":"table-columns-configuration-v2.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/table/columns-editor-v2/table-columns-configuration-v2.component.ts"],"names":[],"mappings":";;;;AACA,wCAauB;AACvB,0CAMwB;AACxB,6EAA6C;AAC7C,mEAAmC;AACnC,+BAA2C;AAC3C,8CAA2C;AAE3C,wCAOuB;AAOvB,wFAAoF;AACpF,+GAAyG;AACzG,gDAI8B;AAC9B,4HAAqH;AACrH,6CAA4E;AAS5E,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAoC7C,YACY,WAAwB,EACxB,cAAiC,EACjC,aAA4B,EAC5B,eAAgC,EACjC,iBAAuD,EACvD,sBAAqD,EACxB,QAA0B;QANtD,gBAAW,GAAX,WAAW,CAAa;QACxB,mBAAc,GAAd,cAAc,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QACjC,sBAAiB,GAAjB,iBAAiB,CAAsC;QACvD,2BAAsB,GAAtB,sBAAsB,CAA+B;QACxB,aAAQ,GAAR,QAAQ,CAAkB;QAtCzD,YAAO,GAA+B,EAAE,CAAC;QAUxC,cAAS,GAAG,IAAI,mBAAY,EAAa,CAAC;QAIpD,4FAA4F;QACrF,qBAAgB,GAAsB,EAAE,CAAC;QAEzC,4BAAuB,GAAG,KAAK,CAAC;QAUhC,gBAAW,GAAG,SAAS,CAAA,QAAQ,CAAC;QAE/B,eAAU,GAAkB,IAAI,cAAO,EAAQ,CAAC;QAWpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;SACtC,CAAC,CAAC;QAEH,IAAI,CAA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jD,oCAAoC,CAoShD;AApSY,oFAAoC"}
|
|
@@ -27,23 +27,25 @@ let TableFiltersEditorComponent = class TableFiltersEditorComponent {
|
|
|
27
27
|
});
|
|
28
28
|
this.form.valueChanges
|
|
29
29
|
.pipe(operators_1.takeUntil(this.onDestroy$))
|
|
30
|
-
.subscribe(val => {
|
|
30
|
+
.subscribe((val) => {
|
|
31
31
|
this.setAccordionSubtitleValues(val);
|
|
32
32
|
});
|
|
33
33
|
this.formReady.emit(this.form);
|
|
34
34
|
}
|
|
35
35
|
ngOnChanges(changes) {
|
|
36
36
|
var _a, _b, _c, _d;
|
|
37
|
-
const sortByFormControl = (_a = this.form
|
|
38
|
-
|
|
37
|
+
const sortByFormControl = (_a = this.form
|
|
38
|
+
.get("sorterConfiguration")) === null || _a === void 0 ? void 0 : _a.get("sortBy");
|
|
39
|
+
const descendantSortingFormControl = (_b = this.form
|
|
40
|
+
.get("sorterConfiguration")) === null || _b === void 0 ? void 0 : _b.get("descendantSorting");
|
|
39
41
|
if (changes.sorterConfiguration) {
|
|
40
|
-
const sortedColumn = this.sortableColumns.find(column => { var _a; return column.id === ((_a = this.sorterConfiguration) === null || _a === void 0 ? void 0 : _a.sortBy); });
|
|
42
|
+
const sortedColumn = this.sortableColumns.find((column) => { var _a; return column.id === ((_a = this.sorterConfiguration) === null || _a === void 0 ? void 0 : _a.sortBy); });
|
|
41
43
|
sortByFormControl === null || sortByFormControl === void 0 ? void 0 : sortByFormControl.setValue(sortedColumn === null || sortedColumn === void 0 ? void 0 : sortedColumn.id, { emitEvent: false });
|
|
42
44
|
descendantSortingFormControl === null || descendantSortingFormControl === void 0 ? void 0 : descendantSortingFormControl.setValue((_c = this.sorterConfiguration) === null || _c === void 0 ? void 0 : _c.descendantSorting, { emitEvent: false });
|
|
43
45
|
}
|
|
44
46
|
if (changes.columns) {
|
|
45
47
|
this.sortableColumns = this.columns.filter((column) => { var _a; return !!column.formatter && ((_a = column.sortable) !== null && _a !== void 0 ? _a : true); });
|
|
46
|
-
const sortedColumn = this.sortableColumns.find(column => { var _a; return column.id === ((_a = this.sorterConfiguration) === null || _a === void 0 ? void 0 : _a.sortBy); });
|
|
48
|
+
const sortedColumn = this.sortableColumns.find((column) => { var _a; return column.id === ((_a = this.sorterConfiguration) === null || _a === void 0 ? void 0 : _a.sortBy); });
|
|
47
49
|
sortByFormControl === null || sortByFormControl === void 0 ? void 0 : sortByFormControl.setValue(sortedColumn === null || sortedColumn === void 0 ? void 0 : sortedColumn.id, { emitEvent: false });
|
|
48
50
|
descendantSortingFormControl === null || descendantSortingFormControl === void 0 ? void 0 : descendantSortingFormControl.setValue((_d = this.sorterConfiguration) === null || _d === void 0 ? void 0 : _d.descendantSorting, { emitEvent: false });
|
|
49
51
|
if (this.sortableColumns.length === 0) {
|
|
@@ -60,14 +62,17 @@ let TableFiltersEditorComponent = class TableFiltersEditorComponent {
|
|
|
60
62
|
setAccordionSubtitleValues(val) {
|
|
61
63
|
var _a, _b;
|
|
62
64
|
if (val.sorterConfiguration) {
|
|
63
|
-
const sortedColumn = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find(col => col.id === val.sorterConfiguration.sortBy);
|
|
65
|
+
const sortedColumn = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find((col) => col.id === val.sorterConfiguration.sortBy);
|
|
64
66
|
if (!sortedColumn) {
|
|
65
67
|
this.selectedSortByValue = $localize `No sorting`;
|
|
66
68
|
this.selectedSortOrderValue = "";
|
|
67
|
-
(_b = this.form
|
|
69
|
+
(_b = this.form
|
|
70
|
+
.get("sorterConfiguration")) === null || _b === void 0 ? void 0 : _b.patchValue({ sortBy: "", descendantSorting: "" }, { emitEvent: false });
|
|
68
71
|
return;
|
|
69
72
|
}
|
|
70
|
-
const sortOrder = val.sorterConfiguration.descendantSorting
|
|
73
|
+
const sortOrder = val.sorterConfiguration.descendantSorting
|
|
74
|
+
? $localize `Descending`
|
|
75
|
+
: $localize `Ascending`;
|
|
71
76
|
this.selectedSortByValue = sortedColumn.label;
|
|
72
77
|
this.selectedSortOrderValue = ", " + sortOrder;
|
|
73
78
|
this.changeDetector.detectChanges();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-filters-editor.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"table-filters-editor.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.ts"],"names":[],"mappings":";;;;AAAA,wCAWuB;AACvB,0CAAwD;AACxD,6DAA6B;AAC7B,+BAA+B;AAC/B,8CAA2C;AAQ3C,oGAA+F;AAQ/F,IAAa,2BAA2B,GAAxC,MAAa,2BAA2B;IAiBpC,YACY,WAAwB,EACzB,mBAA+C,EAC/C,cAAiC;QAFhC,gBAAW,GAAX,WAAW,CAAa;QACzB,wBAAmB,GAAnB,mBAAmB,CAA4B;QAC/C,mBAAc,GAAd,cAAc,CAAmB;QAdnC,YAAO,GAAoC,EAAE,CAAC;QAE7C,cAAS,GAAG,IAAI,mBAAY,EAAa,CAAC;QAK7C,oBAAe,GAAoC,EAAE,CAAC;QAErD,eAAU,GAAG,IAAI,cAAO,EAAQ,CAAC;IAMtC,CAAC;IAEJ,QAAQ;QACJ,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC/B,mBAAmB,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;gBACxC,MAAM,EAAE,aAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,EAAE,EAAE,CAAC;gBACnD,iBAAiB,EAAE,aAAG,CAClB,IAAI,CAAC,mBAAmB,EACxB,mBAAmB,EACnB,KAAK,CACR;aACJ,CAAC;SACL,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,YAAY;aACjB,IAAI,CAAC,qBAAS,CAAC,IAAI,CAAC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7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { AbstractControl, FormGroup } from "@angular/forms";
|
|
3
|
-
import { EventBus, IEvent } from "@nova-ui/bits";
|
|
4
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { EventBus, IEvent } from "@nova-ui/bits";
|
|
5
5
|
import { ITimeseriesWidgetData } from "../../../../../components/timeseries-widget/types";
|
|
6
6
|
import { PizzagnaService } from "../../../../../pizzagna/services/pizzagna.service";
|
|
7
7
|
import { IHasChangeDetector, IHasForm } from "../../../../../types";
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimeseriesSeriesCollectionConfigurationComponent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@angular/core");
|
|
6
|
-
const bits_1 = require("@nova-ui/bits");
|
|
7
6
|
const rxjs_1 = require("rxjs");
|
|
8
7
|
const operators_1 = require("rxjs/operators");
|
|
8
|
+
const bits_1 = require("@nova-ui/bits");
|
|
9
9
|
const pizzagna_service_1 = require("../../../../../pizzagna/services/pizzagna.service");
|
|
10
10
|
const types_1 = require("../../../../../types");
|
|
11
11
|
let TimeseriesSeriesCollectionConfigurationComponent = class TimeseriesSeriesCollectionConfigurationComponent {
|
|
@@ -32,7 +32,7 @@ let TimeseriesSeriesCollectionConfigurationComponent = class TimeseriesSeriesCol
|
|
|
32
32
|
onFormReady(form) {
|
|
33
33
|
this.form = form;
|
|
34
34
|
this.formReady.emit(form);
|
|
35
|
-
this.emptySeries$ = this.form.valueChanges.pipe(operators_1.map(result => result.length === 0));
|
|
35
|
+
this.emptySeries$ = this.form.valueChanges.pipe(operators_1.map((result) => result.length === 0));
|
|
36
36
|
}
|
|
37
37
|
onItemsChange(series) {
|
|
38
38
|
this.createSeriesConfigComponents(series);
|
|
@@ -62,7 +62,7 @@ let TimeseriesSeriesCollectionConfigurationComponent = class TimeseriesSeriesCol
|
|
|
62
62
|
}
|
|
63
63
|
createSeriesConfigComponents(series) {
|
|
64
64
|
const parentPath = "series";
|
|
65
|
-
const componentIds = series.map(tile => tile.id);
|
|
65
|
+
const componentIds = series.map((tile) => tile.id);
|
|
66
66
|
this.pizzagnaService.createComponentsFromTemplate(parentPath, componentIds);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeseries-series-collection-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"timeseries-series-collection-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/timeseries/timeseries-series-collection-configuration/timeseries-series-collection-configuration.component.ts"],"names":[],"mappings":";;;;AAAA,wCAWuB;AAEvB,+BAA2C;AAC3C,8CAAqC;AAErC,wCAAuD;AAIvD,wFAAoF;AACpF,gDAK8B;AAQ9B,IAAa,gDAAgD,GAA7D,MAAa,gDAAgD;IAkBzD,YACW,eAAgC,EAChC,cAAiC,EACJ,QAA0B;QAFvD,oBAAe,GAAf,eAAe,CAAiB;QAChC,mBAAc,GAAd,cAAc,CAAmB;QACJ,aAAQ,GAAR,QAAQ,CAAkB;QAdzD,WAAM,GAAmC,EAAE,CAAC;QAI3C,cAAS,GAAG,IAAI,mBAAY,EAAE,CAAC;QAKjC,aAAQ,GAAG,IAAI,cAAO,EAAE,CAAC;IAM9B,CAAC;IAEG,WAAW;QACd,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED,WAAW,CAAC,OAAsB;QAC9B,IAAI,OAAO,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE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gBAAgB,EAAE,IAAI;aACzB;SACJ,CAAC,CAAC;IACP,CAAC;IAEO,4BAA4B,CAChC,MAAsC;QAEtC,MAAM,UAAU,GAAG,QAAQ,CAAC;QAC5B,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,eAAe,CAAC,4BAA4B,CAC7C,UAAU,EACV,YAAY,CACf,CAAC;IACN,CAAC;CACJ,CAAA;AApFU,4DAAW,GAAG,kDAAkD,CAAC;AAE/D;IAAR,YAAK,EAAE;;+EAAiB;AAChB;IAAR,YAAK,EAAE;;qFAAqB;AACpB;IAAR,YAAK,EAAE;;gFAA6C;AAC5C;IAAR,YAAK,EAAE;;yFAA0C;AACzC;IAAR,YAAK,EAAE;;mFAAoC;AAElC;IAAT,aAAM,EAAE;;mFAAgC;AAXhC,gDAAgD;IAL5D,gBAAS,CAAC;QACP,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EAAE,2DAA2D;QACxE,eAAe,EAAE,8BAAuB,CAAC,MAAM;KAClD,CAAC;IAsBO,mBAAA,aAAM,CAAC,0BAAkB,CAAC,CAAA;6CAFH,kCAAe;QAChB,wBAAiB;QACM,eAAQ;GArBjD,gDAAgD,CAuF5D;AAvFY,4GAAgD"}
|
|
@@ -49,7 +49,8 @@ TimeseriesTileDescriptionConfigurationComponent = tslib_1.__decorate([
|
|
|
49
49
|
styleUrls: ["./timeseries-tile-description-configuration.component.less"],
|
|
50
50
|
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
51
51
|
}),
|
|
52
|
-
tslib_1.__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
52
|
+
tslib_1.__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
53
|
+
core_1.ChangeDetectorRef])
|
|
53
54
|
], TimeseriesTileDescriptionConfigurationComponent);
|
|
54
55
|
exports.TimeseriesTileDescriptionConfigurationComponent = TimeseriesTileDescriptionConfigurationComponent;
|
|
55
56
|
//# sourceMappingURL=timeseries-tile-description-configuration.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeseries-tile-description-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"timeseries-tile-description-configuration.component.js","sourceRoot":"","sources":["../../../../../../../../../../src/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.ts"],"names":[],"mappings":";;;;AAAA,wCAWuB;AACvB,0CAAoE;AAUpE,IAAa,+CAA+C,GAA5D,MAAa,+CAA+C;IAcxD,YACY,WAAwB,EACzB,cAAiC;QADhC,gBAAW,GAAX,WAAW,CAAa;QACzB,mBAAc,GAAd,cAAc,CAAmB;QATlC,cAAS,GACf,IAAI,mBAAY,EAAa,CAAC;QACxB,gBAAW,GACjB,IAAI,mBAAY,EAAa,CAAC;IAO/B,CAAC;IAEJ,QAAQ;QACJ,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC/B,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,kBAAU,CAAC,QAAQ,CAAC;SAC3C,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,WAAW,CAAC,OAAsB;QAC9B,IAAI,OAAO,CAAC,KAAK,EAAE;YACf,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC;YACzC,IAAI,KAAK,EAAE;gBACP,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;aAC1C;SACJ;IACL,CAAC;IAED,WAAW;QACP,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ,CAAA;AApCU,2DAAW,GAAG,iDAAiD,CAAC;AAE9D;IAAR,YAAK,EAAE;;8EAAe;AAEb;IAAT,aAAM,EAAE;sCAAY,mBAAY;kFACC;AACxB;IAAT,aAAM,EAAE;sCAAc,mBAAY;oFACD;AAVzB,+CAA+C;IAN3D,gBAAS,CAAC;QACP,QAAQ,EAAE,4CAA4C;QACtD,WAAW,EAAE,4DAA4D;QACzE,SAAS,EAAE,CAAC,4DAA4D,CAAC;QACzE,eAAe,EAAE,8BAAuB,CAAC,MAAM;KAClD,CAAC;6CAgB2B,mBAAW;QACT,wBAAiB;GAhBnC,+CAA+C,CAuC3D;AAvCY,0GAA+C"}
|
|
@@ -35,13 +35,13 @@ let TimeseriesTileIndicatorDataConfigurationComponent = class TimeseriesTileIndi
|
|
|
35
35
|
}
|
|
36
36
|
ngOnChanges(changes) {
|
|
37
37
|
if (changes.allSeries) {
|
|
38
|
-
this.selectedSeries = this.allSeries.find(s => this.selectedSeriesId === s.id);
|
|
38
|
+
this.selectedSeries = this.allSeries.find((s) => this.selectedSeriesId === s.id);
|
|
39
39
|
}
|
|
40
40
|
if (changes.selectedSeriesId) {
|
|
41
41
|
if (!this.allSeries) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
this.selectedSeries = this.allSeries.find(s => this.selectedSeriesId === s.id);
|
|
44
|
+
this.selectedSeries = this.allSeries.find((s) => this.selectedSeriesId === s.id);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
onSelect(selectedSeries) {
|
|
@@ -88,7 +88,9 @@ TimeseriesTileIndicatorDataConfigurationComponent = tslib_1.__decorate([
|
|
|
88
88
|
core_1.Component({
|
|
89
89
|
selector: "nui-timeseries-tile-indicator-data-configuration",
|
|
90
90
|
templateUrl: "./timeseries-tile-indicator-data-configuration.component.html",
|
|
91
|
-
styleUrls: [
|
|
91
|
+
styleUrls: [
|
|
92
|
+
"./timeseries-tile-indicator-data-configuration.component.less",
|
|
93
|
+
],
|
|
92
94
|
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
93
95
|
}),
|
|
94
96
|
tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef,
|