@nova-ui/charts 12.0.17 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/css/styles.css +3 -1
- package/chart/chart.component.d.ts +3 -0
- package/chart-collection/chart-collection-id.directive.d.ts +3 -0
- package/chart-collection/chart-collection.service.d.ts +3 -0
- package/chart-donut-content/chart-donut-content.component.d.ts +3 -0
- package/chart-marker/chart-marker.component.d.ts +3 -0
- package/chart-popover/chart-popover.component.d.ts +3 -0
- package/chart-tooltips/chart-tooltip.component.d.ts +3 -0
- package/chart-tooltips/chart-tooltip.directive.d.ts +3 -0
- package/chart-tooltips/chart-tooltips.component.d.ts +3 -0
- package/charts.module.d.ts +18 -0
- package/core/plugins/chart-popover-plugin.d.ts +2 -2
- package/core/plugins/tooltips/chart-tooltips-plugin.d.ts +2 -2
- package/esm2020/chart/chart.component.mjs +104 -0
- package/esm2020/chart-collection/chart-collection-id.directive.mjs +56 -0
- package/esm2020/chart-collection/chart-collection.service.mjs +45 -0
- package/{esm2015/chart-collection/public-api.js → esm2020/chart-collection/public-api.mjs} +0 -0
- package/{esm2015/chart-donut-content/chart-donut-content.component.js → esm2020/chart-donut-content/chart-donut-content.component.mjs} +12 -13
- package/esm2020/chart-marker/chart-marker.component.mjs +94 -0
- package/esm2020/chart-popover/chart-popover.component.mjs +85 -0
- package/esm2020/chart-tooltips/chart-tooltip.component.mjs +50 -0
- package/esm2020/chart-tooltips/chart-tooltip.directive.mjs +96 -0
- package/esm2020/chart-tooltips/chart-tooltips.component.mjs +193 -0
- package/esm2020/charts.module.mjs +101 -0
- package/{esm2015/constants.js → esm2020/constants.mjs} +0 -0
- package/esm2020/core/chart-assists/chart-assist.mjs +352 -0
- package/{esm2015/core/chart-assists/public-api.js → esm2020/core/chart-assists/public-api.mjs} +0 -0
- package/{esm2015/core/chart-assists/spark-chart-assist.js → esm2020/core/chart-assists/spark-chart-assist.mjs} +0 -0
- package/{esm2015/core/chart-assists/types.js → esm2020/core/chart-assists/types.mjs} +0 -0
- package/esm2020/core/chart-collection.mjs +145 -0
- package/esm2020/core/chart.mjs +197 -0
- package/{esm2015/core/common/chart-plugin.js → esm2020/core/common/chart-plugin.mjs} +0 -0
- package/esm2020/core/common/data-manager.mjs +108 -0
- package/{esm2015/core/common/data-series.js → esm2020/core/common/data-series.mjs} +0 -0
- package/{esm2015/core/common/event-bus.js → esm2020/core/common/event-bus.mjs} +0 -0
- package/{esm2015/core/common/lasagna.js → esm2020/core/common/lasagna.mjs} +0 -0
- package/esm2020/core/common/mouse-interactive-area.mjs +133 -0
- package/{esm2015/core/common/palette/chart-palette.js → esm2020/core/common/palette/chart-palette.mjs} +0 -0
- package/{esm2015/core/common/palette/color.helper.js → esm2020/core/common/palette/color.helper.mjs} +0 -0
- package/{esm2015/core/common/palette/default-providers.js → esm2020/core/common/palette/default-providers.mjs} +0 -0
- package/{esm2015/core/common/palette/mapped-value-provider.js → esm2020/core/common/palette/mapped-value-provider.mjs} +0 -0
- package/{esm2015/core/common/palette/markers/path-marker.js → esm2020/core/common/palette/markers/path-marker.mjs} +0 -0
- package/{esm2015/core/common/palette/markers/svg-marker.js → esm2020/core/common/palette/markers/svg-marker.mjs} +0 -0
- package/esm2020/core/common/palette/palettes.mjs +147 -0
- package/{esm2015/core/common/palette/processed-color-provider.js → esm2020/core/common/palette/processed-color-provider.mjs} +0 -0
- package/{esm2015/core/common/palette/public-api.js → esm2020/core/common/palette/public-api.mjs} +0 -0
- package/{esm2015/core/common/palette/sequential-chart-marker-provider.js → esm2020/core/common/palette/sequential-chart-marker-provider.mjs} +0 -0
- package/{esm2015/core/common/palette/sequential-color-provider.js → esm2020/core/common/palette/sequential-color-provider.mjs} +0 -0
- package/{esm2015/core/common/palette/sequential-value-provider.js → esm2020/core/common/palette/sequential-value-provider.mjs} +0 -0
- package/{esm2015/core/common/palette/text-color-provider.js → esm2020/core/common/palette/text-color-provider.mjs} +0 -0
- package/{esm2015/core/common/public-api.js → esm2020/core/common/public-api.mjs} +0 -0
- package/{esm2015/core/common/render-engine.js → esm2020/core/common/render-engine.mjs} +0 -0
- package/esm2020/core/common/renderer.mjs +184 -0
- package/{esm2015/core/common/scales/band-scale.js → esm2020/core/common/scales/band-scale.mjs} +0 -0
- package/{esm2015/core/common/scales/constants.js → esm2020/core/common/scales/constants.mjs} +0 -0
- package/{esm2015/core/common/scales/domain-calculation/automatic-domain.js → esm2020/core/common/scales/domain-calculation/automatic-domain.mjs} +0 -0
- package/{esm2015/core/common/scales/domain-calculation/domain-with-auxiliary-series.js → esm2020/core/common/scales/domain-calculation/domain-with-auxiliary-series.mjs} +0 -0
- package/{esm2015/core/common/scales/domain-calculation/domain-with-ticks.js → esm2020/core/common/scales/domain-calculation/domain-with-ticks.mjs} +0 -0
- package/{esm2015/core/common/scales/domain-calculation/merge-domains.js → esm2020/core/common/scales/domain-calculation/merge-domains.mjs} +0 -0
- package/esm2020/core/common/scales/formatters/datetime-formatter.mjs +40 -0
- package/{esm2015/core/common/scales/formatters/public-api.js → esm2020/core/common/scales/formatters/public-api.mjs} +0 -0
- package/{esm2015/core/common/scales/helpers/convert.js → esm2020/core/common/scales/helpers/convert.mjs} +0 -0
- package/{esm2015/core/common/scales/helpers/domain.js → esm2020/core/common/scales/helpers/domain.mjs} +0 -0
- package/{esm2015/core/common/scales/helpers/invert.js → esm2020/core/common/scales/helpers/invert.mjs} +0 -0
- package/{esm2015/core/common/scales/helpers/is-in-range.js → esm2020/core/common/scales/helpers/is-in-range.mjs} +0 -0
- package/esm2020/core/common/scales/linear-scale.mjs +46 -0
- package/{esm2015/core/common/scales/noop-scale.js → esm2020/core/common/scales/noop-scale.mjs} +0 -0
- package/{esm2015/core/common/scales/point-scale.js → esm2020/core/common/scales/point-scale.mjs} +0 -0
- package/{esm2015/core/common/scales/public-api.js → esm2020/core/common/scales/public-api.mjs} +0 -0
- package/{esm2015/core/common/scales/scale.js → esm2020/core/common/scales/scale.mjs} +0 -0
- package/{esm2015/core/common/scales/time-interval-scale.js → esm2020/core/common/scales/time-interval-scale.mjs} +0 -0
- package/{esm2015/core/common/scales/time-scale.js → esm2020/core/common/scales/time-scale.mjs} +0 -0
- package/{esm2015/core/common/scales/types.js → esm2020/core/common/scales/types.mjs} +0 -0
- package/{esm2015/core/common/types.js → esm2020/core/common/types.mjs} +0 -0
- package/{esm2015/core/common/utility.service.js → esm2020/core/common/utility.service.mjs} +2 -3
- package/{esm2015/core/grid/config/area-grid-config.js → esm2020/core/grid/config/area-grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/axis-config.js → esm2020/core/grid/config/axis-config.mjs} +0 -0
- package/{esm2015/core/grid/config/bar-grid-config.js → esm2020/core/grid/config/bar-grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/bar-horizontal-grid-config.js → esm2020/core/grid/config/bar-horizontal-grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/bar-status-grid-config.js → esm2020/core/grid/config/bar-status-grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/border-config.js → esm2020/core/grid/config/border-config.mjs} +0 -0
- package/{esm2015/core/grid/config/dimension-config.js → esm2020/core/grid/config/dimension-config.mjs} +0 -0
- package/{esm2015/core/grid/config/grid-config.js → esm2020/core/grid/config/grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/linear-gauge-grid-config-fn.js → esm2020/core/grid/config/linear-gauge-grid-config-fn.mjs} +0 -0
- package/{esm2015/core/grid/config/public-api.js → esm2020/core/grid/config/public-api.mjs} +0 -0
- package/{esm2015/core/grid/config/spark-chart-grid-config.js → esm2020/core/grid/config/spark-chart-grid-config.mjs} +0 -0
- package/{esm2015/core/grid/config/xy-grid-config.js → esm2020/core/grid/config/xy-grid-config.mjs} +0 -0
- package/esm2020/core/grid/default-text-overflow-handler.mjs +56 -0
- package/esm2020/core/grid/grid.mjs +309 -0
- package/{esm2015/core/grid/public-api.js → esm2020/core/grid/public-api.mjs} +0 -0
- package/{esm2015/core/grid/radial-grid.js → esm2020/core/grid/radial-grid.mjs} +0 -0
- package/{esm2015/core/grid/types.js → esm2020/core/grid/types.mjs} +0 -0
- package/esm2020/core/grid/xy-grid.mjs +768 -0
- package/{esm2015/core/plugins/chart-donut-content-plugin.js → esm2020/core/plugins/chart-donut-content-plugin.mjs} +0 -0
- package/esm2020/core/plugins/chart-popover-plugin.mjs +134 -0
- package/{esm2015/core/plugins/gauge/constants.js → esm2020/core/plugins/gauge/constants.mjs} +0 -0
- package/esm2020/core/plugins/gauge/donut-gauge-labels-plugin.mjs +156 -0
- package/esm2020/core/plugins/gauge/linear-gauge-labels-plugin.mjs +168 -0
- package/{esm2015/core/plugins/gauge/public-api.js → esm2020/core/plugins/gauge/public-api.mjs} +0 -0
- package/{esm2015/core/plugins/gauge/types.js → esm2020/core/plugins/gauge/types.mjs} +0 -0
- package/esm2020/core/plugins/interaction/interaction-label-plugin.mjs +164 -0
- package/{esm2015/core/plugins/interaction/interaction-line-plugin.js → esm2020/core/plugins/interaction/interaction-line-plugin.mjs} +1 -1
- package/{esm2015/core/plugins/interaction/public-api.js → esm2020/core/plugins/interaction/public-api.mjs} +0 -0
- package/{esm2015/core/plugins/mouse-interactive-area-plugin.js → esm2020/core/plugins/mouse-interactive-area-plugin.mjs} +1 -1
- package/{esm2015/core/plugins/public-api.js → esm2020/core/plugins/public-api.mjs} +0 -0
- package/esm2020/core/plugins/radial-popover-plugin.mjs +47 -0
- package/{esm2015/core/plugins/render-engine-plugin.js → esm2020/core/plugins/render-engine-plugin.mjs} +1 -1
- package/{esm2015/core/plugins/tooltips/bar-tooltips-plugin.js → esm2020/core/plugins/tooltips/bar-tooltips-plugin.mjs} +0 -0
- package/esm2020/core/plugins/tooltips/chart-tooltips-plugin.mjs +200 -0
- package/{esm2015/core/plugins/tooltips/index.js → esm2020/core/plugins/tooltips/index.mjs} +0 -0
- package/{esm2015/core/plugins/tooltips/radial-tooltips-plugin.js → esm2020/core/plugins/tooltips/radial-tooltips-plugin.mjs} +0 -0
- package/{esm2015/core/plugins/types.js → esm2020/core/plugins/types.mjs} +0 -0
- package/{esm2015/core/plugins/zoom-plugin.js → esm2020/core/plugins/zoom-plugin.mjs} +1 -1
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/{esm2015/core/types.js → esm2020/core/types.mjs} +0 -0
- package/{esm2015/gauge/constants.js → esm2020/gauge/constants.mjs} +0 -0
- package/{esm2015/gauge/gauge-util.js → esm2020/gauge/gauge-util.mjs} +77 -54
- package/{esm2015/gauge/public-api.js → esm2020/gauge/public-api.mjs} +0 -0
- package/{esm2015/gauge/types.js → esm2020/gauge/types.mjs} +0 -0
- package/esm2020/legend/legend-series/legend-series.component.mjs +159 -0
- package/esm2020/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.mjs +30 -0
- package/{esm2015/legend/legend-tile/public-api.js → esm2020/legend/legend-tile/public-api.mjs} +0 -0
- package/esm2020/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.mjs +76 -0
- package/esm2020/legend/legend.component.mjs +69 -0
- package/{esm2015/legend/public-api.js → esm2020/legend/public-api.mjs} +0 -0
- package/{esm2015/legend/types.js → esm2020/legend/types.mjs} +0 -0
- package/{esm2015/nova-ui-charts.js → esm2020/nova-ui-charts.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/renderers/accessors/noop-accessors.js → esm2020/renderers/accessors/noop-accessors.mjs} +0 -0
- package/{esm2015/renderers/accessors/public-api.js → esm2020/renderers/accessors/public-api.mjs} +0 -0
- package/{esm2015/renderers/accessors/rectangle-accessors.js → esm2020/renderers/accessors/rectangle-accessors.mjs} +0 -0
- package/{esm2015/renderers/accessors/xy-accessors.js → esm2020/renderers/accessors/xy-accessors.mjs} +0 -0
- package/esm2020/renderers/area/area-accessors.mjs +43 -0
- package/{esm2015/renderers/area/area-grid.js → esm2020/renderers/area/area-grid.mjs} +0 -0
- package/esm2020/renderers/area/area-renderer.mjs +163 -0
- package/{esm2015/renderers/area/public-api.js → esm2020/renderers/area/public-api.mjs} +0 -0
- package/{esm2015/renderers/area/stacked-area-accessors.js → esm2020/renderers/area/stacked-area-accessors.mjs} +0 -0
- package/esm2020/renderers/area/stacked-area-preprocessor.mjs +60 -0
- package/esm2020/renderers/area/stacked-percentage-area-preprocessor.mjs +83 -0
- package/{esm2015/renderers/bar/accessors/bar-accessors-fn.js → esm2020/renderers/bar/accessors/bar-accessors-fn.mjs} +0 -0
- package/{esm2015/renderers/bar/accessors/bar-accessors.js → esm2020/renderers/bar/accessors/bar-accessors.mjs} +0 -0
- package/esm2020/renderers/bar/accessors/horizontal-bar-accessors.mjs +36 -0
- package/{esm2015/renderers/bar/accessors/public-api.js → esm2020/renderers/bar/accessors/public-api.mjs} +0 -0
- package/{esm2015/renderers/bar/accessors/status-accessors-fn.js → esm2020/renderers/bar/accessors/status-accessors-fn.mjs} +0 -0
- package/{esm2015/renderers/bar/accessors/status-accessors.js → esm2020/renderers/bar/accessors/status-accessors.mjs} +0 -0
- package/esm2020/renderers/bar/accessors/vertical-bar-accessors.mjs +36 -0
- package/{esm2015/renderers/bar/bar-grid.js → esm2020/renderers/bar/bar-grid.mjs} +0 -0
- package/esm2020/renderers/bar/bar-renderer.mjs +251 -0
- package/{esm2015/renderers/bar/bar-scales.js → esm2020/renderers/bar/bar-scales.mjs} +0 -0
- package/esm2020/renderers/bar/highlight-strategies/bar-highlight-strategy.mjs +137 -0
- package/esm2020/renderers/bar/highlight-strategies/bar-series-highlight-strategy.mjs +82 -0
- package/{esm2015/renderers/bar/highlight-strategies/public-api.js → esm2020/renderers/bar/highlight-strategies/public-api.mjs} +0 -0
- package/{esm2015/renderers/bar/linear-gauge-renderer-config.js → esm2020/renderers/bar/linear-gauge-renderer-config.mjs} +0 -0
- package/esm2020/renderers/bar/linear-gauge-thresholds-renderer.mjs +77 -0
- package/esm2020/renderers/bar/preprocessor-utils.mjs +32 -0
- package/{esm2015/renderers/bar/public-api.js → esm2020/renderers/bar/public-api.mjs} +0 -0
- package/esm2020/renderers/bar/stacked-preprocessor.mjs +66 -0
- package/{esm2015/renderers/bar/types.js → esm2020/renderers/bar/types.mjs} +0 -0
- package/{esm2015/renderers/constants.js → esm2020/renderers/constants.mjs} +0 -0
- package/esm2020/renderers/line/calculate-missing-data.mjs +66 -0
- package/{esm2015/renderers/line/interaction-strategies/line-select-series-interaction-strategy.js → esm2020/renderers/line/interaction-strategies/line-select-series-interaction-strategy.mjs} +0 -0
- package/{esm2015/renderers/line/interaction-strategies/public-api.js → esm2020/renderers/line/interaction-strategies/public-api.mjs} +0 -0
- package/{esm2015/renderers/line/line-accessors.js → esm2020/renderers/line/line-accessors.mjs} +0 -0
- package/esm2020/renderers/line/line-renderer.mjs +210 -0
- package/{esm2015/renderers/line/missing-data-line-renderer-config.js → esm2020/renderers/line/missing-data-line-renderer-config.mjs} +0 -0
- package/{esm2015/renderers/line/public-api.js → esm2020/renderers/line/public-api.mjs} +0 -0
- package/esm2020/renderers/marker-utils.mjs +149 -0
- package/{esm2015/renderers/noop-renderer.js → esm2020/renderers/noop-renderer.mjs} +0 -0
- package/{esm2015/renderers/public-api.js → esm2020/renderers/public-api.mjs} +0 -0
- package/{esm2015/renderers/radial/accessors/radial-accessors.js → esm2020/renderers/radial/accessors/radial-accessors.mjs} +0 -0
- package/{esm2015/renderers/radial/gauge/donut-gauge-renderer-config.js → esm2020/renderers/radial/gauge/donut-gauge-renderer-config.mjs} +0 -0
- package/{esm2015/renderers/radial/gauge/donut-gauge-rendering-util.js → esm2020/renderers/radial/gauge/donut-gauge-rendering-util.mjs} +0 -0
- package/{esm2015/renderers/radial/gauge/donut-gauge-thresholds-renderer.js → esm2020/renderers/radial/gauge/donut-gauge-thresholds-renderer.mjs} +0 -0
- package/{esm2015/renderers/radial/pie-renderer.js → esm2020/renderers/radial/pie-renderer.mjs} +0 -0
- package/{esm2015/renderers/radial/public-api.js → esm2020/renderers/radial/public-api.mjs} +0 -0
- package/{esm2015/renderers/radial/radial-grid-fn.js → esm2020/renderers/radial/radial-grid-fn.mjs} +0 -0
- package/esm2020/renderers/radial/radial-preprocessor.mjs +54 -0
- package/esm2020/renderers/radial/radial-renderer.mjs +180 -0
- package/{esm2015/renderers/radial/radial-scales.js → esm2020/renderers/radial/radial-scales.mjs} +0 -0
- package/{esm2015/renderers/side-indicator-renderer.js → esm2020/renderers/side-indicator-renderer.mjs} +0 -0
- package/{esm2015/renderers/types.js → esm2020/renderers/types.mjs} +0 -0
- package/esm2020/renderers/xy-renderer.mjs +54 -0
- package/{esm2015/thresholds/public-api.js → esm2020/thresholds/public-api.mjs} +0 -0
- package/esm2020/thresholds/thresholds-service.mjs +391 -0
- package/{esm2015/thresholds/thresholds-summary-grid-config.js → esm2020/thresholds/thresholds-summary-grid-config.mjs} +0 -0
- package/{esm2015/thresholds/thresholds-top-grid-config.js → esm2020/thresholds/thresholds-top-grid-config.mjs} +0 -0
- package/{esm2015/thresholds/types.js → esm2020/thresholds/types.mjs} +0 -0
- package/fesm2015/{nova-ui-charts.js → nova-ui-charts.mjs} +1264 -1252
- package/fesm2015/nova-ui-charts.mjs.map +1 -0
- package/fesm2020/nova-ui-charts.mjs +9922 -0
- package/fesm2020/nova-ui-charts.mjs.map +1 -0
- package/legend/legend-series/legend-series.component.d.ts +3 -0
- package/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.d.ts +3 -0
- package/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.d.ts +3 -0
- package/legend/legend.component.d.ts +3 -0
- package/nova-ui-charts.d.ts +1 -0
- package/package.json +33 -14
- package/renderers/marker-utils.d.ts +2 -2
- package/sdk/atoms/chart/donut-chart-test.po.js +1 -1
- package/sdk/atoms/chart/donut-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/line-chart-test.po.js +1 -1
- package/sdk/atoms/chart/line-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/pie-chart-test.po.js +1 -1
- package/sdk/atoms/chart/pie-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/spark-chart-test.po.js +2 -2
- package/sdk/atoms/chart/spark-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/test.po.js +1 -1
- package/sdk/atoms/chart/test.po.js.map +1 -1
- package/sdk/atoms/chart/thresholds-summary-test.po.js +4 -4
- package/sdk/atoms/chart/thresholds-summary-test.po.js.map +1 -1
- package/sdk/atoms/chart/time-frame-bar-test.po.js +3 -3
- package/sdk/atoms/chart/time-frame-bar-test.po.js.map +1 -1
- package/sdk/locale/messages.en.xlf +118 -121
- package/thresholds/thresholds-service.d.ts +3 -0
- package/bundles/nova-ui-charts.umd.js +0 -11049
- package/bundles/nova-ui-charts.umd.js.map +0 -1
- package/esm2015/chart/chart.component.js +0 -102
- package/esm2015/chart-collection/chart-collection-id.directive.js +0 -52
- package/esm2015/chart-collection/chart-collection.service.js +0 -42
- package/esm2015/chart-marker/chart-marker.component.js +0 -93
- package/esm2015/chart-popover/chart-popover.component.js +0 -82
- package/esm2015/chart-tooltips/chart-tooltip.component.js +0 -44
- package/esm2015/chart-tooltips/chart-tooltip.directive.js +0 -95
- package/esm2015/chart-tooltips/chart-tooltips.component.js +0 -192
- package/esm2015/charts.module.js +0 -74
- package/esm2015/core/chart-assists/chart-assist.js +0 -353
- package/esm2015/core/chart-collection.js +0 -145
- package/esm2015/core/chart.js +0 -195
- package/esm2015/core/common/data-manager.js +0 -109
- package/esm2015/core/common/mouse-interactive-area.js +0 -134
- package/esm2015/core/common/palette/palettes.js +0 -149
- package/esm2015/core/common/renderer.js +0 -185
- package/esm2015/core/common/scales/formatters/datetime-formatter.js +0 -43
- package/esm2015/core/common/scales/linear-scale.js +0 -46
- package/esm2015/core/grid/default-text-overflow-handler.js +0 -57
- package/esm2015/core/grid/grid.js +0 -309
- package/esm2015/core/grid/xy-grid.js +0 -773
- package/esm2015/core/plugins/chart-popover-plugin.js +0 -136
- package/esm2015/core/plugins/gauge/donut-gauge-labels-plugin.js +0 -157
- package/esm2015/core/plugins/gauge/linear-gauge-labels-plugin.js +0 -171
- package/esm2015/core/plugins/interaction/interaction-label-plugin.js +0 -164
- package/esm2015/core/plugins/radial-popover-plugin.js +0 -48
- package/esm2015/core/plugins/tooltips/chart-tooltips-plugin.js +0 -202
- package/esm2015/legend/legend-series/legend-series.component.js +0 -142
- package/esm2015/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.js +0 -31
- package/esm2015/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.js +0 -71
- package/esm2015/legend/legend.component.js +0 -67
- package/esm2015/renderers/area/area-accessors.js +0 -43
- package/esm2015/renderers/area/area-renderer.js +0 -178
- package/esm2015/renderers/area/stacked-area-preprocessor.js +0 -60
- package/esm2015/renderers/area/stacked-percentage-area-preprocessor.js +0 -83
- package/esm2015/renderers/bar/accessors/horizontal-bar-accessors.js +0 -29
- package/esm2015/renderers/bar/accessors/vertical-bar-accessors.js +0 -29
- package/esm2015/renderers/bar/bar-renderer.js +0 -265
- package/esm2015/renderers/bar/highlight-strategies/bar-highlight-strategy.js +0 -138
- package/esm2015/renderers/bar/highlight-strategies/bar-series-highlight-strategy.js +0 -82
- package/esm2015/renderers/bar/linear-gauge-thresholds-renderer.js +0 -83
- package/esm2015/renderers/bar/preprocessor-utils.js +0 -32
- package/esm2015/renderers/bar/stacked-preprocessor.js +0 -63
- package/esm2015/renderers/line/calculate-missing-data.js +0 -66
- package/esm2015/renderers/line/line-renderer.js +0 -216
- package/esm2015/renderers/marker-utils.js +0 -147
- package/esm2015/renderers/radial/radial-preprocessor.js +0 -48
- package/esm2015/renderers/radial/radial-renderer.js +0 -183
- package/esm2015/renderers/xy-renderer.js +0 -55
- package/esm2015/thresholds/thresholds-service.js +0 -393
- package/fesm2015/nova-ui-charts.js.map +0 -1
- package/nova-ui-charts.metadata.json +0 -1
package/bundles/css/styles.css
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.nui-chart{display:block;height:100%;width:100%}.nui-chart .hidden{display:none}.nui-chart svg{display:block}.nui-chart .sw-hidden{opacity:0;visibility:hidden}.nui-chart .tick-hidden-text text{opacity:0}.nui-chart .sw-line{fill:none;stroke-width:2px;shape-rendering:auto}.nui-chart .sw-interaction-layer .tooltip-group text{font-size:12px}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-marker{stroke:#fff}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-bg{fill:#333;fill:var(--nui-color-bg-mid_dark,#333)}.nui-chart .nui-chart-hidden{visibility:hidden}.nui-chart .brush .selection{fill:#0079aa;fill:var(--nui-color-active,#0079aa);fill-opacity:.2}.nui-chart nui-chart-point-marker[color-index="14"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="2"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="8"] .nui-chart-point-marker{shape-rendering:crispEdges}.nui-chart .nui-chart-column-separator{stroke:#fff;stroke-width:1}.nui-chart .nui-chart-trend-line{stroke:#111;stroke:var(--black,#111);stroke-width:1}.nui-chart .trend-line-arrow{fill:#111;fill:var(--black,#111)}.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-error,.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-warning{fill-opacity:1}.nui-chart .nui-chart-highlight-tooltip-text{font-weight:800}.nui-chart .nui-chart-point-marker-hidden{visibility:hidden}.nui-chart .nui-chart-percentile-line{stroke-width:2px;stroke-dasharray:5,5,2,5}.nui-chart .nui-chart-percentile-text{font-size:10px;font-weight:600}.nui-chart .nui-chart-annotation-line{stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.nui-chart .nui-chart-annotation-line--hover{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa)}.nui-chart .nui-chart-annotation-note{fill:#0079aa;fill:var(--nui-color-text-link,#0079aa);font-weight:600;mix-blend-mode:hue}.nui-chart .nui-chart-annotation-hover-rect{fill:transparent;cursor:pointer}.nui-chart .nui-chart-annotation-hover-rect--hidden{fill:transparent}.nui-chart .nui-chart-annotation-background-rect{fill:#fff;fill:var(--white,#fff)}.nui-chart .nui-chart-annotation-hover-highlight{fill-opacity:.2}.nui-chart .nui-chart-annotation-hover-highlight--hidden{fill:transparent}.nui-chart .nui-chart-annotation-hover-marker{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa);pointer-events:none}.nui-chart .nui-chart-baseline-series.tilebox .tilebox-unit,.nui-chart .nui-chart-baseline-series.tilebox .tilebox-value,.nui-chart .nui-chart-other-series.tilebox .tilebox-unit,.nui-chart .nui-chart-other-series.tilebox .tilebox-value{color:#111;color:var(--nui-color-text-default,#111)}.sw-mark-layer .nui-chart .nui-chart-baseline-series{mix-blend-mode:multiply}.nui-chart .nui-chart-no-data-line{shape-rendering:auto;stroke-dasharray:1,3;stroke-width:unset;fill:none}.nui-chart .bar-outline{stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart-grid .sw-axis .domain{display:none}.nui-chart-grid .sw-axis line,.nui-chart-grid .sw-axis path{stroke:#999;stroke:var(--nui-color-line-strong,#999);fill:none;shape-rendering:crispEdges}.nui-chart-grid .sw-axis line.nui-regular-line{stroke-dasharray:1 1}.nui-chart-grid .sw-axis text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-grid .sw-axis text.chart-label{font-weight:700}.nui-chart-grid .sw-axis-grid{stroke-dasharray:1 1}.nui-chart-grid .sw-axis-grid line{stroke:hsla(0,0%,7%,.15);stroke:var(--nui-color-line-default-transparent,hsla(0,0%,7%,.15))}.nui-chart-grid .sw-axis-grid line.nui-zero-line{opacity:.5;stroke-dasharray:none;stroke:#999;stroke:var(--nui-color-line-dark,#999)}.nui-chart-grid .gauge-labels{transition-property:opacity;transition-duration:.2s}.nui-chart-grid .gauge-labels text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-border{stroke:#999;stroke:var(--nui-color-line-strong,#999);stroke-width:1px;shape-rendering:crispEdges}.nui-chart-border--thick{stroke-width:3px}.nui-chart-highlight-tooltip-text{fill:#fff;fill:var(--nui-color-text-light,#fff);font-weight:800}.data-series-container{transition-property:opacity;transition-duration:.2s}.nui-chart .pointer-events{pointer-events:auto}.nui-chart .pointer-events-click{cursor:pointer}.nui-chart .mouse-interactive-area{cursor:crosshair}.nui-chart .interaction-line{stroke:#111;stroke:var(--nui-color-bg-inverse,#111);stroke-width:1px;shape-rendering:crispEdges}.nui-chart .interaction-label{fill:#111;fill:var(--nui-color-bg-inverse,#111)}.nui-chart .interaction-label__text{fill:#fff;fill:var(--nui-color-text-inverse,#fff)}.nui-chart--path__outline{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart--path__outline-fill{fill:#fff;fill:var(--nui-color-bg-light,#fff)}.nui-chart-tooltip-pane{pointer-events:none!important}.nui-chart--path__outline,_:-ms-lang(x){stroke-width:1px}.nui-chart-area,.nui-chart-line-cap{stroke:#fff;stroke:var(--nui-color-bg-light,#fff);stroke-width:1px}.nui-chart-layout{display:grid;grid-template:"axis-label-left axis-label-right ." 0fr "chart chart legend" 1fr "axis-label-bottom axis-label-bottom ." 0fr "legend-bottom legend-bottom ." 0fr/1fr 1fr auto}.nui-chart-layout .axis-label-left{grid-area:axis-label-left;justify-self:start;margin-bottom:5px;margin-right:5px}.nui-chart-layout .axis-label-right{grid-area:axis-label-right;justify-self:end;margin-bottom:5px;margin-left:5px}.nui-chart-layout .axis-label-bottom{grid-area:axis-label-bottom;justify-self:center;margin-top:5px}.nui-chart-layout .chart{grid-area:chart;display:flex;justify-content:stretch}.nui-chart-layout .chart.has-overlay{position:relative}.nui-chart-layout .chart.has-overlay .overlay{position:absolute;box-sizing:border-box;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.nui-chart-layout .legend{grid-area:legend;align-self:start;padding-left:5px}.nui-chart-layout .legend.scrollable{overflow:auto;height:100%}.nui-chart-layout .legend-bottom{grid-area:legend-bottom;justify-self:center;margin-top:5px}@media print{.nui-chart-layout{page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}}.nui-legend-series{padding:2px;max-width:250px;cursor:default;background-color:#fff;background-color:var(--nui-color-bg-content,#fff)}.nui-legend-series:not(.nui-legend-series--horizontal):not(:last-child){margin-bottom:1px}.nui-legend-series .nui-legend-series__tile-wrapper{display:flex;justify-content:center}.nui-legend-series .nui-legend-series__tile{display:flex}.nui-legend-series--horizontal:not(:last-child){margin-right:10px}.nui-legend-series:empty{display:none}.nui-legend-series.description-min-width--unset .description{min-width:unset!important}.nui-legend-series .description{line-height:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-left:5px;padding-right:5px;min-width:130px}.nui-legend-series .description-container{overflow:hidden}.nui-legend-series .description-primary{font-weight:600;color:#111;color:var(--nui-color-text-default,#111)}.nui-legend-series .description-primary:not(:last-child){margin-bottom:-3px}.nui-legend-series .description-secondary{color:hsla(0,0%,7%,.6);color:var(--nui-color-text-secondary,hsla(0,0%,7%,.6))}.nui-legend-series .description-secondary:not(:first-child){margin-top:-1px}.nui-legend-series--interactive{cursor:pointer}.nui-legend-series--interactive .nui-legend-series__tile-wrapper{position:relative}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-wrapper{align-self:center;position:absolute;visibility:hidden;top:50%;left:50%;transform:translate(-50%,-50%)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-mark{background:no-repeat 0;border:2px solid #0079aa;border-color:var(--nui-color-active,#0079aa);background-color:#fff;background-color:var(--nui-color-bg-content,#fff);background-size:16px;border-radius:3px;min-width:16px;width:16px;height:16px;transition:background-color .3s,border-color .3s}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-glyph{width:100%;height:100%;background-size:12px;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+");display:none}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark{background-color:#0079aa;background-color:var(--nui-color-active,#0079aa);border-color:#0079aa;border-color:var(--nui-color-active,#0079aa)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark>.nui-legend-series__checkbox-glyph{display:block}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__checkbox-wrapper,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__checkbox-wrapper{visibility:visible}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__tile,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__tile{visibility:hidden}.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:hover{background-color:#f2f2f2;background-color:var(--nui-color-bg-light-hover,#f2f2f2)}.nui-legend-series--interactive:hover .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:not(:hover) .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:#fafafa;background-color:var(--nui-color-bg-secondary,#fafafa)}.nui-legend-series .nui-legend-series--state-deemphasized,.nui-legend-series:not(:hover) .nui-legend-series--state-hidden .description-container{opacity:.3}
|
|
1
|
+
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.nui-chart{display:block;height:100%;width:100%}.nui-chart .hidden{display:none}.nui-chart svg{display:block}.nui-chart .sw-hidden{opacity:0;visibility:hidden}.nui-chart .tick-hidden-text text{opacity:0}.nui-chart .sw-line{fill:none;stroke-width:2px;shape-rendering:auto}.nui-chart .sw-interaction-layer .tooltip-group text{font-size:12px}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-marker{stroke:#fff}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-bg{fill:var(--nui-color-bg-mid_dark,#333)}.nui-chart .nui-chart-hidden{visibility:hidden}.nui-chart .brush .selection{fill:var(--nui-color-active,#0079aa);fill-opacity:.2}.nui-chart nui-chart-point-marker[color-index="2"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="8"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="14"] .nui-chart-point-marker{shape-rendering:crispEdges}.nui-chart .nui-chart-column-separator{stroke:#fff;stroke-width:1}.nui-chart .nui-chart-trend-line{stroke:var(--black,#111);stroke-width:1}.nui-chart .trend-line-arrow{fill:var(--black,#111)}.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-error,.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-warning{fill-opacity:1}.nui-chart .nui-chart-highlight-tooltip-text{font-weight:800}.nui-chart .nui-chart-point-marker-hidden{visibility:hidden}.nui-chart .nui-chart-percentile-line{stroke-width:2px;stroke-dasharray:5,5,2,5}.nui-chart .nui-chart-percentile-text{font-size:10px;font-weight:600}.nui-chart .nui-chart-annotation-line{stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.nui-chart .nui-chart-annotation-line--hover{stroke:var(--nui-color-text-link,#0079aa)}.nui-chart .nui-chart-annotation-note{fill:var(--nui-color-text-link,#0079aa);font-weight:600;mix-blend-mode:hue}.nui-chart .nui-chart-annotation-hover-rect{fill:transparent;cursor:pointer}.nui-chart .nui-chart-annotation-hover-rect--hidden{fill:transparent}.nui-chart .nui-chart-annotation-background-rect{fill:var(--white,#fff)}.nui-chart .nui-chart-annotation-hover-highlight{fill-opacity:.2}.nui-chart .nui-chart-annotation-hover-highlight--hidden{fill:transparent}.nui-chart .nui-chart-annotation-hover-marker{stroke:var(--nui-color-text-link,#0079aa);pointer-events:none}.nui-chart .nui-chart-other-series.tilebox .tilebox-value,.nui-chart .nui-chart-baseline-series.tilebox .tilebox-value,.nui-chart .nui-chart-other-series.tilebox .tilebox-unit,.nui-chart .nui-chart-baseline-series.tilebox .tilebox-unit{color:var(--nui-color-text-default,#111)}.sw-mark-layer .nui-chart .nui-chart-baseline-series{mix-blend-mode:multiply}.nui-chart .nui-chart-no-data-line{shape-rendering:auto;stroke-dasharray:1,3;stroke-width:unset;fill:none}.nui-chart .bar-outline{stroke-width:1px;stroke:var(--nui-color-bg-light,#fff)}.nui-chart-grid .sw-axis .domain{display:none}.nui-chart-grid .sw-axis path,.nui-chart-grid .sw-axis line{stroke:var(--nui-color-line-strong,#999999);fill:none;shape-rendering:crispEdges}.nui-chart-grid .sw-axis line.nui-regular-line{stroke-dasharray:1 1}.nui-chart-grid .sw-axis text{fill:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));font-size:11px}.nui-chart-grid .sw-axis text.chart-label{font-weight:700}.nui-chart-grid .sw-axis-grid{stroke-dasharray:1 1}.nui-chart-grid .sw-axis-grid line{stroke:var(--nui-color-line-default-transparent,rgba(17, 17, 17, .15))}.nui-chart-grid .sw-axis-grid line.nui-zero-line{opacity:.5;stroke-dasharray:none;stroke:var(--nui-color-line-dark,#999999)}.nui-chart-grid .gauge-labels{transition-property:opacity;transition-duration:.2s}.nui-chart-grid .gauge-labels text{fill:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));font-size:11px}.nui-chart-border{stroke:var(--nui-color-line-strong,#999999);stroke-width:1px;shape-rendering:crispEdges}.nui-chart-border--thick{stroke-width:3px}.nui-chart-highlight-tooltip-text{fill:var(--nui-color-text-light,#fff);font-weight:800}.data-series-container{transition-property:opacity;transition-duration:.2s}.nui-chart .pointer-events{pointer-events:auto}.nui-chart .pointer-events-click{cursor:pointer}.nui-chart .mouse-interactive-area{cursor:crosshair}.nui-chart .interaction-line{stroke:var(--nui-color-bg-inverse,#111);stroke-width:1px;shape-rendering:crispEdges}.nui-chart .interaction-label{fill:var(--nui-color-bg-inverse,#111)}.nui-chart .interaction-label__text{fill:var(--nui-color-text-inverse,#fff)}.nui-chart--path__outline{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;stroke:var(--nui-color-bg-light,#fff)}.nui-chart--path__outline-fill{fill:var(--nui-color-bg-light,#fff)}.nui-chart-tooltip-pane{pointer-events:none!important}_:-ms-lang(x),.nui-chart--path__outline{stroke-width:1px}.nui-chart-area,.nui-chart-line-cap{stroke:var(--nui-color-bg-light,#fff);stroke-width:1px}.nui-chart-layout{display:grid;grid-template:"axis-label-left axis-label-right ." 0fr "chart chart legend" 1fr "axis-label-bottom axis-label-bottom ." 0fr "legend-bottom legend-bottom ." 0fr / 1fr 1fr auto}.nui-chart-layout .axis-label-left{grid-area:axis-label-left;justify-self:start;margin-bottom:5px;margin-right:5px}.nui-chart-layout .axis-label-right{grid-area:axis-label-right;justify-self:end;margin-bottom:5px;margin-left:5px}.nui-chart-layout .axis-label-bottom{grid-area:axis-label-bottom;justify-self:center;margin-top:5px}.nui-chart-layout .chart{grid-area:chart;display:flex;justify-content:stretch}.nui-chart-layout .chart.has-overlay{position:relative}.nui-chart-layout .chart.has-overlay .overlay{position:absolute;box-sizing:border-box;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.nui-chart-layout .legend{grid-area:legend;align-self:start;padding-left:5px}.nui-chart-layout .legend.scrollable{overflow:auto;height:100%}.nui-chart-layout .legend-bottom{grid-area:legend-bottom;justify-self:center;margin-top:5px}@media print{.nui-chart-layout{page-break-inside:avoid;break-inside:avoid}}.nui-legend-series{padding:2px;max-width:250px;cursor:default;background-color:var(--nui-color-bg-content,#fff)}.nui-legend-series:not(.nui-legend-series--horizontal):not(:last-child){margin-bottom:1px}.nui-legend-series .nui-legend-series__tile-wrapper{display:flex;justify-content:center}.nui-legend-series .nui-legend-series__tile{display:flex}.nui-legend-series--horizontal:not(:last-child){margin-right:10px}.nui-legend-series:empty{display:none}.nui-legend-series.description-min-width--unset .description{min-width:unset!important}.nui-legend-series .description{line-height:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-left:5px;padding-right:5px;min-width:130px}.nui-legend-series .description-container{overflow:hidden}.nui-legend-series .description-primary{font-weight:600;color:var(--nui-color-text-default,#111)}.nui-legend-series .description-primary:not(:last-child){margin-bottom:-3px}.nui-legend-series .description-secondary{color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6))}.nui-legend-series .description-secondary:not(:first-child){margin-top:-1px}.nui-legend-series--interactive{cursor:pointer}.nui-legend-series--interactive .nui-legend-series__tile-wrapper{position:relative}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-wrapper{align-self:center;position:absolute;visibility:hidden;top:50%;left:50%;transform:translate(-50%,-50%)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-mark{border:solid 2px;background:no-repeat 0 center;border-color:var(--nui-color-active,#0079aa);background-color:var(--nui-color-bg-content,#fff);background-size:16px;border-radius:3px;min-width:16px;width:16px;height:16px;transition:background-color .3s,border-color .3s}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-glyph{width:100%;height:100%;background-size:12px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+);display:none}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark>.nui-legend-series__checkbox-glyph{display:block}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__checkbox-wrapper,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__checkbox-wrapper{visibility:visible}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__tile,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__tile{visibility:hidden}.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui-legend-series--interactive:hover{background-color:var(--nui-color-bg-light-hover,#f2f2f2)}.nui-legend-series--interactive:hover .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui-legend-series--interactive:not(:hover) .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:var(--nui-color-bg-secondary,#fafafa)}.nui-legend-series:not(:hover) .nui-legend-series--state-hidden .description-container{opacity:.3}.nui-legend-series .nui-legend-series--state-deemphasized{opacity:.3}
|
|
2
|
+
|
|
3
|
+
/*# sourceMappingURL=styles.css.map*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { IChart, IChartComponent } from "../core/common/types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ChartComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy, IChartComponent, OnChanges {
|
|
4
5
|
private elRef;
|
|
5
6
|
private ngZone;
|
|
@@ -16,4 +17,6 @@ export declare class ChartComponent implements OnInit, AfterContentInit, AfterVi
|
|
|
16
17
|
ngOnDestroy(): void;
|
|
17
18
|
redraw: () => void;
|
|
18
19
|
private intersectionObserverCallback;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "nui-chart", never, { "chart": "chart"; }, {}, never, never>;
|
|
19
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit } from "@angular/core";
|
|
2
2
|
import { IChartComponent } from "../core/common/types";
|
|
3
3
|
import { ChartCollectionService } from "./chart-collection.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* This directive represents a grouping behavior that is separated from chart components. Any chart component
|
|
6
7
|
* registering the CHART_COMPONENT provider can be injected into this.
|
|
@@ -13,4 +14,6 @@ export declare class ChartCollectionIdDirective implements AfterViewInit {
|
|
|
13
14
|
collectionId: string;
|
|
14
15
|
constructor(chartComponent: IChartComponent, chartCollectionService: ChartCollectionService);
|
|
15
16
|
ngAfterViewInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartCollectionIdDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartCollectionIdDirective, "[nuiChartCollectionId]", never, { "collectionId": "nuiChartCollectionId"; }, {}, never>;
|
|
16
19
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ChartCollection } from "../core/chart-collection";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* This service registers collections of charts identified by given id. It is used primarily by the ChartCollectionId directive.
|
|
4
5
|
*/
|
|
5
6
|
export declare class ChartCollectionService {
|
|
6
7
|
private collections;
|
|
7
8
|
getChartCollection(collectionId: string): ChartCollection;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartCollectionService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartCollectionService>;
|
|
8
11
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { ChartDonutContentPlugin } from "../core/plugins/chart-donut-content-plugin";
|
|
3
3
|
import { IElementPosition } from "../core/plugins/types";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ChartDonutContentComponent implements OnDestroy, OnChanges {
|
|
5
6
|
/** The plugin instance */
|
|
6
7
|
plugin: ChartDonutContentPlugin;
|
|
@@ -9,4 +10,6 @@ export declare class ChartDonutContentComponent implements OnDestroy, OnChanges
|
|
|
9
10
|
private contentPositionUpdateSubscription;
|
|
10
11
|
ngOnChanges(changes: SimpleChanges): void;
|
|
11
12
|
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartDonutContentComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartDonutContentComponent, "nui-chart-donut-content", never, { "plugin": "plugin"; }, {}, never, ["*"]>;
|
|
12
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { IChartMarker } from "../core/common/types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ChartMarkerComponent implements OnDestroy, AfterViewInit, OnChanges {
|
|
4
5
|
private changeDetector;
|
|
5
6
|
marker: IChartMarker;
|
|
@@ -16,4 +17,6 @@ export declare class ChartMarkerComponent implements OnDestroy, AfterViewInit, O
|
|
|
16
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
18
|
ngOnDestroy(): void;
|
|
18
19
|
private renderMarkerSvg;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartMarkerComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartMarkerComponent, "nui-chart-marker", never, { "marker": "marker"; "drawLine": "drawLine"; "color": "color"; "maxSize": "maxSize"; }, {}, never, never>;
|
|
19
22
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnIn
|
|
|
2
2
|
import { PopoverComponent } from "@nova-ui/bits";
|
|
3
3
|
import { IDataPointsPayload } from "../core/common/types";
|
|
4
4
|
import { ChartPopoverPlugin } from "../core/plugins/chart-popover-plugin";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ChartPopoverComponent implements OnChanges, OnInit, OnDestroy {
|
|
6
7
|
private changeDetector;
|
|
7
8
|
element: ElementRef;
|
|
@@ -16,4 +17,6 @@ export declare class ChartPopoverComponent implements OnChanges, OnInit, OnDestr
|
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
ngOnDestroy(): void;
|
|
18
19
|
private initPlugin;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartPopoverComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartPopoverComponent, "nui-chart-popover", never, { "plugin": "plugin"; "template": "template"; }, { "update": "update"; }, never, never>;
|
|
19
22
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ChartTooltipComponent {
|
|
3
4
|
template: TemplateRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartTooltipComponent, "nui-chart-tooltip", never, { "template": "template"; }, {}, never, never>;
|
|
4
7
|
}
|
|
@@ -2,6 +2,7 @@ import { Overlay, OverlayPositionBuilder, ScrollStrategyOptions } from "@angular
|
|
|
2
2
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
3
3
|
import { ElementRef, OnDestroy, OnInit, TemplateRef } from "@angular/core";
|
|
4
4
|
import { Subject } from "rxjs";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/** @ignore */
|
|
6
7
|
export declare class ChartTooltipDirective implements OnInit, OnDestroy {
|
|
7
8
|
private overlay;
|
|
@@ -22,4 +23,6 @@ export declare class ChartTooltipDirective implements OnInit, OnDestroy {
|
|
|
22
23
|
hide(): void;
|
|
23
24
|
ngOnDestroy(): void;
|
|
24
25
|
getOverlayElement(): HTMLElement;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartTooltipDirective, "[nuiChartTooltip]", never, { "template": "template"; "openRemoteControl": "openRemoteControl"; "closeRemoteControl": "closeRemoteControl"; "positions": "positions"; }, {}, never>;
|
|
25
28
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, QueryList, SimpleC
|
|
|
2
2
|
import { Subject } from "rxjs";
|
|
3
3
|
import { ChartTooltipsPlugin } from "../core/plugins/tooltips/chart-tooltips-plugin";
|
|
4
4
|
import { ChartTooltipDirective } from "./chart-tooltip.directive";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ChartTooltipsComponent implements OnChanges, OnDestroy {
|
|
6
7
|
private changeDetector;
|
|
7
8
|
plugin: ChartTooltipsPlugin;
|
|
@@ -35,4 +36,6 @@ export declare class ChartTooltipsComponent implements OnChanges, OnDestroy {
|
|
|
35
36
|
*/
|
|
36
37
|
private startSimulation;
|
|
37
38
|
private isVertical;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipsComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartTooltipsComponent, "nui-chart-tooltips", never, { "plugin": "plugin"; "template": "template"; }, {}, never, never>;
|
|
38
41
|
}
|
package/charts.module.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import "d3-selection-multi";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./legend/legend.component";
|
|
4
|
+
import * as i2 from "./legend/legend-series/legend-series.component";
|
|
5
|
+
import * as i3 from "./legend/legend-tile/basic-legend-tile/basic-legend-tile.component";
|
|
6
|
+
import * as i4 from "./legend/legend-tile/rich-legend-tile/rich-legend-tile.component";
|
|
7
|
+
import * as i5 from "./chart/chart.component";
|
|
8
|
+
import * as i6 from "./chart-collection/chart-collection-id.directive";
|
|
9
|
+
import * as i7 from "./chart-marker/chart-marker.component";
|
|
10
|
+
import * as i8 from "./chart-popover/chart-popover.component";
|
|
11
|
+
import * as i9 from "./chart-donut-content/chart-donut-content.component";
|
|
12
|
+
import * as i10 from "./chart-tooltips/chart-tooltips.component";
|
|
13
|
+
import * as i11 from "./chart-tooltips/chart-tooltip.component";
|
|
14
|
+
import * as i12 from "./chart-tooltips/chart-tooltip.directive";
|
|
15
|
+
import * as i13 from "@nova-ui/bits";
|
|
16
|
+
import * as i14 from "@angular/cdk/overlay";
|
|
2
17
|
export declare class NuiChartsModule {
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NuiChartsModule, never>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NuiChartsModule, [typeof i1.LegendComponent, typeof i2.LegendSeriesComponent, typeof i3.BasicLegendTileComponent, typeof i4.RichLegendTileComponent, typeof i5.ChartComponent, typeof i6.ChartCollectionIdDirective, typeof i7.ChartMarkerComponent, typeof i8.ChartPopoverComponent, typeof i9.ChartDonutContentComponent, typeof i10.ChartTooltipsComponent, typeof i11.ChartTooltipComponent, typeof i12.ChartTooltipDirective], [typeof i13.NuiCommonModule, typeof i13.NuiIconModule, typeof i13.NuiPopoverModule, typeof i14.OverlayModule], [typeof i1.LegendComponent, typeof i2.LegendSeriesComponent, typeof i4.RichLegendTileComponent, typeof i3.BasicLegendTileComponent, typeof i5.ChartComponent, typeof i6.ChartCollectionIdDirective, typeof i7.ChartMarkerComponent, typeof i8.ChartPopoverComponent, typeof i9.ChartDonutContentComponent, typeof i10.ChartTooltipsComponent, typeof i11.ChartTooltipComponent, typeof i12.ChartTooltipDirective]>;
|
|
20
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NuiChartsModule>;
|
|
3
21
|
}
|
|
@@ -22,9 +22,9 @@ export declare class ChartPopoverPlugin extends ChartPlugin {
|
|
|
22
22
|
/** Emits the popover's target position */
|
|
23
23
|
updatePositionSubject: Subject<IElementPosition>;
|
|
24
24
|
/** Emits an event indicating the popover should open */
|
|
25
|
-
openPopoverSubject: Subject<
|
|
25
|
+
openPopoverSubject: Subject<void>;
|
|
26
26
|
/** Emits an event indicating the popover should close */
|
|
27
|
-
closePopoverSubject: Subject<
|
|
27
|
+
closePopoverSubject: Subject<void>;
|
|
28
28
|
/** The target position of the popover */
|
|
29
29
|
popoverTargetPosition: IElementPosition;
|
|
30
30
|
/** The default plugin configuration */
|
|
@@ -30,11 +30,11 @@ export declare class ChartTooltipsPlugin extends ChartPlugin {
|
|
|
30
30
|
/**
|
|
31
31
|
* This publishes an event to show tooltips
|
|
32
32
|
*/
|
|
33
|
-
showSubject: Subject<
|
|
33
|
+
showSubject: Subject<void>;
|
|
34
34
|
/**
|
|
35
35
|
* This publishes an event to hide tooltips
|
|
36
36
|
*/
|
|
37
|
-
hideSubject: Subject<
|
|
37
|
+
hideSubject: Subject<void>;
|
|
38
38
|
protected overlaySetup: ConnectedPosition[];
|
|
39
39
|
private isChartInView;
|
|
40
40
|
private destroy$;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { ChangeDetectorRef, Component, ElementRef, forwardRef, Input, NgZone, } from "@angular/core";
|
|
21
|
+
import debounce from "lodash/debounce";
|
|
22
|
+
import { CHART_COMPONENT, CHART_VIEW_STATUS_EVENT, REFRESH_EVENT, } from "../constants";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export class ChartComponent {
|
|
25
|
+
constructor(elRef, ngZone, cd) {
|
|
26
|
+
this.elRef = elRef;
|
|
27
|
+
this.ngZone = ngZone;
|
|
28
|
+
this.cd = cd;
|
|
29
|
+
this.redraw = () => {
|
|
30
|
+
this.chart.updateDimensions();
|
|
31
|
+
this.cd.detectChanges();
|
|
32
|
+
};
|
|
33
|
+
this.intersectionObserverCallback = (entries, observer) => {
|
|
34
|
+
// Since we're only listening for intersection changes for one target (the chart itself), the 'entries' argument always has just one element.
|
|
35
|
+
const data = {
|
|
36
|
+
isChartInView: entries[0].isIntersecting,
|
|
37
|
+
};
|
|
38
|
+
this.chart
|
|
39
|
+
.getEventBus()
|
|
40
|
+
.getStream(CHART_VIEW_STATUS_EVENT)
|
|
41
|
+
.next({ data });
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
ngOnInit() {
|
|
45
|
+
this.intersectionObserver = new IntersectionObserver(this.intersectionObserverCallback);
|
|
46
|
+
this.intersectionObserver.observe(this.elRef.nativeElement);
|
|
47
|
+
}
|
|
48
|
+
ngOnChanges(changes) {
|
|
49
|
+
if (changes["chart"]) {
|
|
50
|
+
const previousChart = changes["chart"].previousValue;
|
|
51
|
+
if (previousChart) {
|
|
52
|
+
previousChart.destroy();
|
|
53
|
+
}
|
|
54
|
+
if (this.chart) {
|
|
55
|
+
this.chart.build(this.elRef.nativeElement);
|
|
56
|
+
this.redraw();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
ngAfterContentInit() {
|
|
61
|
+
this.chart
|
|
62
|
+
.getEventBus()
|
|
63
|
+
.getStream(REFRESH_EVENT)
|
|
64
|
+
.subscribe(() => {
|
|
65
|
+
this.chart.updateDimensions();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
ngAfterViewInit() {
|
|
69
|
+
this.resizeHandler = debounce(() => this.redraw(), 10);
|
|
70
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
71
|
+
// This was suggested here https://github.com/angular/zone.js/issues/1011
|
|
72
|
+
this.ngZone.run(() => this.resizeHandler());
|
|
73
|
+
});
|
|
74
|
+
this.ngZone.runOutsideAngular(() => this.resizeObserver?.observe(this.elRef.nativeElement));
|
|
75
|
+
}
|
|
76
|
+
ngOnDestroy() {
|
|
77
|
+
this.intersectionObserver?.unobserve(this.elRef.nativeElement);
|
|
78
|
+
this.resizeObserver?.unobserve(this.elRef.nativeElement);
|
|
79
|
+
this.chart?.destroy();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
+
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChartComponent, selector: "nui-chart", inputs: { chart: "chart" }, providers: [
|
|
84
|
+
{
|
|
85
|
+
provide: CHART_COMPONENT,
|
|
86
|
+
useExisting: forwardRef(() => ChartComponent),
|
|
87
|
+
},
|
|
88
|
+
], usesOnChanges: true, ngImport: i0, template: "", isInline: true });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartComponent, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{
|
|
92
|
+
selector: "nui-chart",
|
|
93
|
+
template: "",
|
|
94
|
+
providers: [
|
|
95
|
+
{
|
|
96
|
+
provide: CHART_COMPONENT,
|
|
97
|
+
useExisting: forwardRef(() => ChartComponent),
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
}]
|
|
101
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { chart: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}] } });
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NoYXJ0L2NoYXJ0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERBQTREO0FBQzVELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsdURBQXVEO0FBQ3ZELEVBQUU7QUFD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lRGltZW5zaW9ucygpO1xuICAgICAgICB0aGlzLmNkLmRldGVjdENoYW5nZXMoKTtcbiAgICB9O1xuXG4gICAgcHJpdmF0ZSBpbnRlcnNlY3Rpb25PYnNlcnZlckNhbGxiYWNrID0gKFxuICAgICAgICBlbnRyaWVzOiBJbnRlcnNlY3Rpb25PYnNlcnZlckVudHJ5W10sXG4gICAgICAgIG9ic2VydmVyOiBJbnRlcnNlY3Rpb25PYnNlcnZlclxuICAgICk6IHZvaWQgPT4ge1xuICAgICAgICAvLyBTaW5jZSB3ZSdyZSBvbmx5IGxpc3RlbmluZyBmb3IgaW50ZXJzZWN0aW9uIGNoYW5nZXMgZm9yIG9uZSB0YXJnZXQgKHRoZSBjaGFydCBpdHNlbGYpLCB0aGUgJ2VudHJpZXMnIGFyZ3VtZW50IGFsd2F5cyBoYXMganVzdCBvbmUgZWxlbWVudC5cbiAgICAgICAgY29uc3QgZGF0YTogSUNoYXJ0Vmlld1N0YXR1c0V2ZW50UGF5bG9hZCA9IHtcbiAgICAgICAgICAgIGlzQ2hhcnRJblZpZXc6IGVudHJpZXNbMF0uaXNJbnRlcnNlY3RpbmcsXG4gICAgICAgIH07XG4gICAgICAgIHRoaXMuY2hhcnRcbiAgICAgICAgICAgIC5nZXRFdmVudEJ1cygpXG4gICAgICAgICAgICAuZ2V0U3RyZWFtKENIQVJUX1ZJRVdfU1RBVFVTX0VWRU5UKVxuICAgICAgICAgICAgLm5leHQoeyBkYXRhIH0pO1xuICAgIH07XG59XG4iXX0=
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Directive, Inject, Input } from "@angular/core";
|
|
21
|
+
import { CHART_COMPONENT } from "../constants";
|
|
22
|
+
import { ChartCollectionService } from "./chart-collection.service";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
import * as i1 from "./chart-collection.service";
|
|
25
|
+
/**
|
|
26
|
+
* This directive represents a grouping behavior that is separated from chart components. Any chart component
|
|
27
|
+
* registering the CHART_COMPONENT provider can be injected into this.
|
|
28
|
+
*
|
|
29
|
+
* A group of charts with the same associated chart collection id will share events broadcasted through their event buses.
|
|
30
|
+
*/
|
|
31
|
+
export class ChartCollectionIdDirective {
|
|
32
|
+
constructor(chartComponent, chartCollectionService) {
|
|
33
|
+
this.chartComponent = chartComponent;
|
|
34
|
+
this.chartCollectionService = chartCollectionService;
|
|
35
|
+
}
|
|
36
|
+
ngAfterViewInit() {
|
|
37
|
+
this.chartCollectionService
|
|
38
|
+
.getChartCollection(this.collectionId)
|
|
39
|
+
.addChart(this.chartComponent.chart);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
ChartCollectionIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartCollectionIdDirective, deps: [{ token: CHART_COMPONENT }, { token: i1.ChartCollectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
ChartCollectionIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: { collectionId: ["nuiChartCollectionId", "collectionId"] }, ngImport: i0 });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartCollectionIdDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: "[nuiChartCollectionId]",
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
50
|
+
type: Inject,
|
|
51
|
+
args: [CHART_COMPONENT]
|
|
52
|
+
}] }, { type: i1.ChartCollectionService }]; }, propDecorators: { collectionId: [{
|
|
53
|
+
type: Input,
|
|
54
|
+
args: ["nuiChartCollectionId"]
|
|
55
|
+
}] } });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtY29sbGVjdGlvbi1pZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY2hhcnQtY29sbGVjdGlvbi9jaGFydC1jb2xsZWN0aW9uLWlkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERB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KlxuICogQSBncm91cCBvZiBjaGFydHMgd2l0aCB0aGUgc2FtZSBhc3NvY2lhdGVkIGNoYXJ0IGNvbGxlY3Rpb24gaWQgd2lsbCBzaGFyZSBldmVudHMgYnJvYWRjYXN0ZWQgdGhyb3VnaCB0aGVpciBldmVudCBidXNlcy5cbiAqL1xuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6IFwiW251aUNoYXJ0Q29sbGVjdGlvbklkXVwiLFxufSlcbmV4cG9ydCBjbGFzcyBDaGFydENvbGxlY3Rpb25JZERpcmVjdGl2ZSBpbXBsZW1lbnRzIEFmdGVyVmlld0luaXQge1xuICAgIEBJbnB1dChcIm51aUNoYXJ0Q29sbGVjdGlvbklkXCIpXG4gICAgcHVibGljIGNvbGxlY3Rpb25JZDogc3RyaW5nO1xuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIEBJbmplY3QoQ0hBUlRfQ09NUE9ORU5UKSBwcml2YXRlIGNoYXJ0Q29tcG9uZW50OiBJQ2hhcnRDb21wb25lbnQsXG4gICAgICAgIHByaXZhdGUgY2hhcnRDb2xsZWN0aW9uU2VydmljZTogQ2hhcnRDb2xsZWN0aW9uU2VydmljZVxuICAgICkge31cblxuICAgIHB1YmxpYyBuZ0FmdGVyVmlld0luaXQoKTogdm9pZCB7XG4gICAgICAgIHRoaXMuY2hhcnRDb2xsZWN0aW9uU2VydmljZVxuICAgICAgICAgICAgLmdldENoYXJ0Q29sbGVjdGlvbih0aGlzLmNvbGxlY3Rpb25JZClcbiAgICAgICAgICAgIC5hZGRDaGFydCh0aGlzLmNoYXJ0Q29tcG9uZW50LmNoYXJ0KTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Injectable } from "@angular/core";
|
|
21
|
+
import isUndefined from "lodash/isUndefined";
|
|
22
|
+
import { ChartCollection } from "../core/chart-collection";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
/**
|
|
25
|
+
* This service registers collections of charts identified by given id. It is used primarily by the ChartCollectionId directive.
|
|
26
|
+
*/
|
|
27
|
+
export class ChartCollectionService {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.collections = {};
|
|
30
|
+
}
|
|
31
|
+
getChartCollection(collectionId) {
|
|
32
|
+
let collection = this.collections[collectionId];
|
|
33
|
+
if (isUndefined(collection)) {
|
|
34
|
+
collection = new ChartCollection();
|
|
35
|
+
this.collections[collectionId] = collection;
|
|
36
|
+
}
|
|
37
|
+
return collection;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
ChartCollectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartCollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
ChartCollectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartCollectionService });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartCollectionService, decorators: [{
|
|
43
|
+
type: Injectable
|
|
44
|
+
}] });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtY29sbGVjdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NoYXJ0LWNvbGxlY3Rpb24vY2hhcnQtY29sbGVjdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YsK0VBQStFO0FBQy9FLDRFQUE0RTtBQUM1RSw4RUFBOEU7QUFDOUUsK0VBQStFO0FBQy9FLDhFQUE4RTtBQUM5RSw0REFBNEQ7QUFDNUQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSx1REFBdUQ7QUFDdkQsRUFBRTtBQUNGLDZFQUE2RTtBQUM3RSw0RUFBNEU7QUFDNUUsK0VBQStFO0FBQy9FLDBFQUEwRTtBQUMxRSxpRkFBaUY7QUFDakYsNkVBQTZFO0FBQzdFLGlCQUFpQjtBQUVqQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sV0FBVyxNQUFNLG9CQUFvQixDQUFDO0FBRTdDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7QUFFM0Q7O0dBRUc7QUF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7XG5pbXBvcnQgaXNVbmRlZmluZWQgZnJvbSBcImxvZGFzaC9pc1VuZGVmaW5lZFwiO1xuXG5pbXBvcnQgeyBDaGFydENvbGxlY3Rpb24gfSBmcm9tIFwiLi4vY29yZS9jaGFydC1jb2xsZWN0aW9uXCI7XG5cbi8qKlxuICogVGhpcyBzZXJ2aWNlIHJlZ2lzdGVycyBjb2xsZWN0aW9ucyBvZiBjaGFydHMgaWRlbnRpZmllZCBieSBnaXZlbiBpZC4gSXQgaXMgdXNlZCBwcmltYXJpbHkgYnkgdGhlIENoYXJ0Q29sbGVjdGlvbklkIGRpcmVjdGl2ZS5cbiAqL1xuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIENoYXJ0Q29sbGVjdGlvblNlcnZpY2Uge1xuICAgIHByaXZhdGUgY29sbGVjdGlvbnM6IHsgW2tleTogc3RyaW5nXTogQ2hhcnRDb2xsZWN0aW9uIH0gPSB7fTtcblxuICAgIHB1YmxpYyBnZXRDaGFydENvbGxlY3Rpb24oY29sbGVjdGlvbklkOiBzdHJpbmcpOiBDaGFydENvbGxlY3Rpb24ge1xuICAgICAgICBsZXQgY29sbGVjdGlvbiA9IHRoaXMuY29sbGVjdGlvbnNbY29sbGVjdGlvbklkXTtcbiAgICAgICAgaWYgKGlzVW5kZWZpbmVkKGNvbGxlY3Rpb24pKSB7XG4gICAgICAgICAgICBjb2xsZWN0aW9uID0gbmV3IENoYXJ0Q29sbGVjdGlvbigpO1xuICAgICAgICAgICAgdGhpcy5jb2xsZWN0aW9uc1tjb2xsZWN0aW9uSWRdID0gY29sbGVjdGlvbjtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29sbGVjdGlvbjtcbiAgICB9XG59XG4iXX0=
|
|
File without changes
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
// THE SOFTWARE.
|
|
20
20
|
import { Component, Input, } from "@angular/core";
|
|
21
21
|
import { ChartDonutContentPlugin } from "../core/plugins/chart-donut-content-plugin";
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
import * as i1 from "@angular/common";
|
|
22
24
|
export class ChartDonutContentComponent {
|
|
23
25
|
ngOnChanges(changes) {
|
|
24
|
-
var _a;
|
|
25
26
|
if (changes.plugin) {
|
|
26
|
-
|
|
27
|
+
this.contentPositionUpdateSubscription?.unsubscribe();
|
|
27
28
|
this.contentPositionUpdateSubscription =
|
|
28
29
|
this.plugin.contentPositionUpdateSubject.subscribe((contentPosition) => {
|
|
29
30
|
this.contentPosition = contentPosition;
|
|
@@ -37,14 +38,12 @@ export class ChartDonutContentComponent {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
ChartDonutContentComponent
|
|
41
|
-
{ type:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtZG9udXQtY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY2hhcnQtZG9udXQtY29udGVudC9jaGFydC1kb251dC1jb250ZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERBQTREO0FBQzVELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsdURBQXVEO0FBQ3ZELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLCtFQUErRTtBQUMvRSwwRUFBMEU7QUFDMUUsaUZBQWlGO0FBQ2pGLDZFQUE2RTtBQUM3RSxpQkFBaUI7QUFFakIsT0FBTyx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UgKi9cbiAgICBASW5wdXQoKSBwdWJsaWMgcGx1Z2luOiBDaGFydERvbnV0Q29udGVudFBsdWdpbjtcblxuICAgIC8qKiBUaGUgY3VycmVudCBjb250ZW50IHBvc2l0aW9uICovXG4gICAgcHVibGljIGNvbnRlbnRQb3NpdGlvbjogSUVsZW1lbnRQb3NpdGlvbjtcblxuICAgIHByaXZhdGUgY29udGVudFBvc2l0aW9uVXBkYXRlU3Vic2NyaXB0aW9uOiBTdWJzY3JpcHRpb247XG5cbiAgICBwdWJsaWMgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcykge1xuICAgICAgICBpZiAoY2hhbmdlcy5wbHVnaW4pIHtcbiAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uVXBkYXRlU3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xuXG4gICAgICAgICAgICB0aGlzLmNvbnRlbnRQb3NpdGlvblVwZGF0ZVN1YnNjcmlwdGlvbiA9XG4gICAgICAgICAgICAgICAgdGhpcy5wbHVnaW4uY29udGVudFBvc2l0aW9uVXBkYXRlU3ViamVjdC5zdWJzY3JpYmUoXG4gICAgICAgICAgICAgICAgICAgIChjb250ZW50UG9zaXRpb246IElFbGVtZW50UG9zaXRpb24pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uID0gY29udGVudFBvc2l0aW9uO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgdGhpcy5wbHVnaW4uY2hhcnQudXBkYXRlRGltZW5zaW9ucygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIG5nT25EZXN0cm95KCkge1xuICAgICAgICBpZiAodGhpcy5jb250ZW50UG9zaXRpb25VcGRhdGVTdWJzY3JpcHRpb24pIHtcbiAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uVXBkYXRlU3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
41
|
+
ChartDonutContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartDonutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
ChartDonutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: { plugin: "plugin" }, usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChartDonutContentComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: "nui-chart-donut-content", template: "<div\n *ngIf=\"plugin && contentPosition\"\n class=\"nui-chart-donut-content d-flex justify-content-center align-items-center text-center\"\n [style.top.px]=\"contentPosition.top\"\n [style.left.px]=\"contentPosition.left\"\n [style.height.px]=\"contentPosition.height\"\n [style.width.px]=\"contentPosition.width\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".nui-chart-donut-content{position:absolute;pointer-events:auto;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
46
|
+
}], propDecorators: { plugin: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}] } });
|
|
49
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Y2hhbmdlcy5wbHVnaW4pIHtcbiAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uVXBkYXRlU3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xuXG4gICAgICAgICAgICB0aGlzLmNvbnRlbnRQb3NpdGlvblVwZGF0ZVN1YnNjcmlwdGlvbiA9XG4gICAgICAgICAgICAgICAgdGhpcy5wbHVnaW4uY29udGVudFBvc2l0aW9uVXBkYXRlU3ViamVjdC5zdWJzY3JpYmUoXG4gICAgICAgICAgICAgICAgICAgIChjb250ZW50UG9zaXRpb246IElFbGVtZW50UG9zaXRpb24pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uID0gY29udGVudFBvc2l0aW9uO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgdGhpcy5wbHVnaW4uY2hhcnQudXBkYXRlRGltZW5zaW9ucygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIG5nT25EZXN0cm95KCkge1xuICAgICAgICBpZiAodGhpcy5jb250ZW50UG9zaXRpb25VcGRhdGVTdWJzY3JpcHRpb24pIHtcbiAgICAgICAgICAgIHRoaXMuY29udGVudFBvc2l0aW9uVXBkYXRlU3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCI8ZGl2XG4gICAgKm5nSWY9XCJwbHVnaW4gJiYgY29udGVudFBvc2l0aW9uXCJcbiAgICBjbGFzcz1cIm51aS1jaGFydC1kb251dC1jb250ZW50IGQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyIGFsaWduLWl0ZW1zLWNlbnRlciB0ZXh0LWNlbnRlclwiXG4gICAgW3N0eWxlLnRvcC5weF09XCJjb250ZW50UG9zaXRpb24udG9wXCJcbiAgICBbc3R5bGUubGVmdC5weF09XCJjb250ZW50UG9zaXRpb24ubGVmdFwiXG4gICAgW3N0eWxlLmhlaWdodC5weF09XCJjb250ZW50UG9zaXRpb24uaGVpZ2h0XCJcbiAgICBbc3R5bGUud2lkdGgucHhdPVwiY29udGVudFBvc2l0aW9uLndpZHRoXCJcbj5cbiAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2Rpdj5cbiJdfQ==
|