@nova-ui/dashboards 13.0.7-4420 → 13.0.7-4441

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.
Files changed (138) hide show
  1. package/esm2020/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.mjs +17 -7
  2. package/esm2020/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.mjs +46 -1
  3. package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.mjs +11 -11
  4. package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +11 -11
  5. package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +11 -11
  6. package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +11 -11
  7. package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.mjs +111 -10
  8. package/esm2020/lib/components/timeseries-widget/public-api.mjs +4 -1
  9. package/esm2020/lib/components/timeseries-widget/timeseries-helpers.mjs +36 -0
  10. package/esm2020/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.mjs +144 -0
  11. package/esm2020/lib/components/timeseries-widget/timeseries-widget.component.mjs +37 -11
  12. package/esm2020/lib/components/timeseries-widget/transformer/loess.mjs +219 -0
  13. package/esm2020/lib/components/timeseries-widget/transformer/public-api.mjs +29 -0
  14. package/esm2020/lib/components/timeseries-widget/transformer/transformer-change-point.mjs +104 -0
  15. package/esm2020/lib/components/timeseries-widget/transformer/transformer-difference.mjs +58 -0
  16. package/esm2020/lib/components/timeseries-widget/transformer/transformer-floating-average.mjs +41 -0
  17. package/esm2020/lib/components/timeseries-widget/transformer/transformer-lin-reg.mjs +66 -0
  18. package/esm2020/lib/components/timeseries-widget/transformer/transformer-loess-standardize.mjs +29 -0
  19. package/esm2020/lib/components/timeseries-widget/transformer/transformer-loess.mjs +38 -0
  20. package/esm2020/lib/components/timeseries-widget/transformer/transformer-normalize.mjs +47 -0
  21. package/esm2020/lib/components/timeseries-widget/transformer/transformer-percentile-std.mjs +58 -0
  22. package/esm2020/lib/components/timeseries-widget/transformer/transformer-standardize.mjs +47 -0
  23. package/esm2020/lib/components/timeseries-widget/types.mjs +30 -1
  24. package/esm2020/lib/dashboards.module.mjs +12 -5
  25. package/esm2020/lib/services/types.mjs +4 -1
  26. package/fesm2015/nova-ui-dashboards.mjs +1170 -265
  27. package/fesm2015/nova-ui-dashboards.mjs.map +1 -1
  28. package/fesm2020/nova-ui-dashboards.mjs +1157 -264
  29. package/fesm2020/nova-ui-dashboards.mjs.map +1 -1
  30. package/lib/components/providers/refresher.d.ts +1 -1
  31. package/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +4 -3
  32. package/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +7 -3
  33. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +3 -3
  34. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +3 -3
  35. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +3 -3
  36. package/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +3 -3
  37. package/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +15 -3
  38. package/lib/components/timeseries-widget/public-api.d.ts +3 -0
  39. package/lib/components/timeseries-widget/timeseries-helpers.d.ts +6 -0
  40. package/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +40 -0
  41. package/lib/components/timeseries-widget/timeseries-widget.component.d.ts +13 -4
  42. package/lib/components/timeseries-widget/transformer/loess.d.ts +6 -0
  43. package/lib/components/timeseries-widget/transformer/public-api.d.ts +9 -0
  44. package/lib/components/timeseries-widget/transformer/transformer-change-point.d.ts +2 -0
  45. package/lib/components/timeseries-widget/transformer/transformer-difference.d.ts +2 -0
  46. package/lib/components/timeseries-widget/transformer/transformer-floating-average.d.ts +2 -0
  47. package/lib/components/timeseries-widget/transformer/transformer-lin-reg.d.ts +2 -0
  48. package/lib/components/timeseries-widget/transformer/transformer-loess-standardize.d.ts +2 -0
  49. package/lib/components/timeseries-widget/transformer/transformer-loess.d.ts +2 -0
  50. package/lib/components/timeseries-widget/transformer/transformer-normalize.d.ts +2 -0
  51. package/lib/components/timeseries-widget/transformer/transformer-percentile-std.d.ts +2 -0
  52. package/lib/components/timeseries-widget/transformer/transformer-standardize.d.ts +2 -0
  53. package/lib/components/timeseries-widget/types.d.ts +35 -0
  54. package/lib/dashboards.module.d.ts +10 -9
  55. package/lib/services/types.d.ts +19 -13
  56. package/package.json +1 -1
  57. package/sdk/atoms/spec/timeseries/legend-series.atom.d.ts +12 -0
  58. package/sdk/atoms/spec/timeseries/legend-series.atom.js +85 -0
  59. package/sdk/atoms/spec/timeseries/legend-series.atom.js.map +1 -0
  60. package/sdk/atoms/spec/timeseries/timeseries.atom.d.ts +10 -0
  61. package/sdk/atoms/spec/timeseries/timeseries.atom.js +53 -0
  62. package/sdk/atoms/spec/timeseries/timeseries.atom.js.map +1 -0
  63. package/sdk/atoms/src/lib/components/providers/refresher.d.ts +1 -1
  64. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.d.ts +3 -2
  65. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js +16 -5
  66. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/status-bar-chart/status-bar-chart.component.js.map +1 -1
  67. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.d.ts +7 -3
  68. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +45 -0
  69. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js.map +1 -1
  70. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.d.ts +2 -2
  71. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js +4 -3
  72. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/line-chart.component.js.map +1 -1
  73. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.d.ts +2 -2
  74. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js +4 -3
  75. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js.map +1 -1
  76. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.d.ts +2 -2
  77. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js +4 -3
  78. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js.map +1 -1
  79. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.d.ts +2 -2
  80. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js +4 -3
  81. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js.map +1 -1
  82. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.d.ts +14 -2
  83. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js +105 -3
  84. package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/xy-chart.component.js.map +1 -1
  85. package/sdk/atoms/src/lib/components/timeseries-widget/public-api.d.ts +3 -0
  86. package/sdk/atoms/src/lib/components/timeseries-widget/public-api.js +3 -0
  87. package/sdk/atoms/src/lib/components/timeseries-widget/public-api.js.map +1 -1
  88. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.d.ts +6 -0
  89. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js +40 -0
  90. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-helpers.js.map +1 -0
  91. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.d.ts +37 -0
  92. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js +160 -0
  93. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.js.map +1 -0
  94. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.d.ts +13 -4
  95. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js +29 -2
  96. package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
  97. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.d.ts +6 -0
  98. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js +223 -0
  99. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js.map +1 -0
  100. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.d.ts +9 -0
  101. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.js +32 -0
  102. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/public-api.js.map +1 -0
  103. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.d.ts +2 -0
  104. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js +110 -0
  105. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-change-point.js.map +1 -0
  106. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.d.ts +2 -0
  107. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js +63 -0
  108. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-difference.js.map +1 -0
  109. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.d.ts +2 -0
  110. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js +46 -0
  111. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-floating-average.js.map +1 -0
  112. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.d.ts +2 -0
  113. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js +71 -0
  114. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-lin-reg.js.map +1 -0
  115. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.d.ts +2 -0
  116. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js +34 -0
  117. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess-standardize.js.map +1 -0
  118. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.d.ts +2 -0
  119. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js +43 -0
  120. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-loess.js.map +1 -0
  121. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.d.ts +2 -0
  122. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js +52 -0
  123. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-normalize.js.map +1 -0
  124. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.d.ts +2 -0
  125. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js +65 -0
  126. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-percentile-std.js.map +1 -0
  127. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.d.ts +2 -0
  128. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js +53 -0
  129. package/sdk/atoms/src/lib/components/timeseries-widget/transformer/transformer-standardize.js.map +1 -0
  130. package/sdk/atoms/src/lib/components/timeseries-widget/types.d.ts +35 -0
  131. package/sdk/atoms/src/lib/components/timeseries-widget/types.js +30 -1
  132. package/sdk/atoms/src/lib/components/timeseries-widget/types.js.map +1 -1
  133. package/sdk/atoms/src/lib/dashboards.module.js +3 -0
  134. package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
  135. package/sdk/atoms/src/lib/services/types.d.ts +19 -13
  136. package/sdk/atoms/src/lib/services/types.js +4 -0
  137. package/sdk/atoms/src/lib/services/types.js.map +1 -1
  138. package/sdk/locale/messages.en.xlf +148 -15
@@ -22,7 +22,7 @@ export declare class Refresher implements OnDestroy, IConfigurable {
22
22
  protected enabled: boolean;
23
23
  protected overrideDefaultSettings: boolean;
24
24
  protected interval: number;
25
- protected eventDef: EventDefinition<void>;
25
+ protected eventDef: EventDefinition<unknown>;
26
26
  readonly destroy$: Subject<void>;
27
27
  constructor(eventBus: EventBus<IWidgetEvent>, ngZone: NgZone, refresherSettings: RefresherSettingsService);
28
28
  updateConfiguration(properties: IRefresherProperties): void;
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, OnInit } from "@angular/core";
2
2
  import { EventBus, IconService, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { IAccessors, IChartAssistSeries, Renderer, SparkChartAssist, StatusAccessors } from "@nova-ui/charts";
3
+ import { IAccessors, IChartAssistSeries, Renderer, SparkChartAssist, StatusAccessors, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { TimeseriesScalesService } from "../../timeseries-scales.service";
5
5
  import { ITimeseriesWidgetStatusData } from "../../types";
6
6
  import { TimeseriesChartComponent } from "../timeseries-chart.component";
@@ -10,13 +10,14 @@ export declare class StatusBarChartComponent extends TimeseriesChartComponent<IT
10
10
  timeseriesScalesService: TimeseriesScalesService;
11
11
  changeDetector: ChangeDetectorRef;
12
12
  protected eventBus: EventBus<IEvent>;
13
+ zoomPluginsSyncService: TimeseriesZoomPluginsSyncService;
13
14
  static lateLoadKey: string;
14
15
  chartAssist: SparkChartAssist;
15
16
  collectionId: string;
16
17
  protected accessors: StatusAccessors;
17
18
  protected renderer: Renderer<IAccessors>;
18
19
  private chartUpdate$;
19
- constructor(iconService: IconService, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, eventBus: EventBus<IEvent>);
20
+ constructor(iconService: IconService, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, eventBus: EventBus<IEvent>, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
20
21
  ngOnInit(): void;
21
22
  getDataPointData(series: IChartAssistSeries<IAccessors>, key: string): any;
22
23
  protected buildChart(): void;
@@ -31,7 +32,7 @@ export declare class StatusBarChartComponent extends TimeseriesChartComponent<IT
31
32
  */
32
33
  protected transformData(data: ITimeseriesWidgetStatusData[], isIntervalProgression: boolean): IStatusData[];
33
34
  private setGridConfigFromConfiguration;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarChartComponent, [null, { optional: true; }, null, null, null]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarChartComponent, [null, { optional: true; }, null, null, null, null]>;
35
36
  static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarChartComponent, "nui-status-bar-chart", never, {}, {}, never, never>;
36
37
  }
37
38
  interface IStatusData {
@@ -1,11 +1,11 @@
1
- import { OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
2
  import { Subject } from "rxjs";
3
3
  import { IDataSource } from "@nova-ui/bits";
4
4
  import { IXYScales } from "@nova-ui/charts";
5
5
  import { TimeseriesScalesService } from "../timeseries-scales.service";
6
- import { ITimeseriesOutput, ITimeseriesWidgetConfig, ITimeseriesWidgetSeriesData } from "../types";
6
+ import { ITimeseriesOutput, ITimeseriesWidgetConfig, ITimeseriesWidgetData, ITimeseriesWidgetSeriesData } from "../types";
7
7
  import * as i0 from "@angular/core";
8
- export declare abstract class TimeseriesChartComponent<T = ITimeseriesWidgetSeriesData> implements OnChanges, OnDestroy {
8
+ export declare abstract class TimeseriesChartComponent<T = ITimeseriesWidgetSeriesData> implements OnChanges, OnDestroy, OnInit {
9
9
  timeseriesScalesService: TimeseriesScalesService;
10
10
  dataSource: IDataSource;
11
11
  widgetData: ITimeseriesOutput<T>;
@@ -17,8 +17,12 @@ export declare abstract class TimeseriesChartComponent<T = ITimeseriesWidgetSeri
17
17
  protected chartBuilt: boolean;
18
18
  get seriesInteractive(): boolean;
19
19
  protected constructor(timeseriesScalesService: TimeseriesScalesService, dataSource: IDataSource);
20
+ ngOnInit(): void;
20
21
  ngOnChanges(changes: SimpleChanges): void;
21
22
  ngOnDestroy(): void;
23
+ protected applyPreviousTransformer(previousData: any): void;
24
+ protected transformSeriesData(serie: ITimeseriesWidgetData<T>): void;
25
+ updateYAxisDomain(): void;
22
26
  /** Updates chart data. */
23
27
  protected abstract updateChartData(): void;
24
28
  protected abstract buildChart(): void;
@@ -1,14 +1,14 @@
1
1
  import { ChangeDetectorRef } from "@angular/core";
2
2
  import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { ChartAssist, ChartPalette, IAccessors, IValueProvider } from "@nova-ui/charts";
3
+ import { ChartAssist, ChartPalette, IAccessors, IValueProvider, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { TimeseriesScalesService } from "../../../timeseries-scales.service";
5
5
  import { XYChartComponent } from "../xy-chart.component";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class LineChartComponent extends XYChartComponent {
8
8
  static lateLoadKey: string;
9
- constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef);
9
+ constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
10
10
  protected createAccessors(colorProvider: IValueProvider<string>): IAccessors;
11
11
  protected createChartAssist(palette: ChartPalette): ChartAssist;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<LineChartComponent, [null, { optional: true; }, null, null]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LineChartComponent, [null, { optional: true; }, null, null, null]>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<LineChartComponent, "nui-line-chart", never, {}, {}, never, never>;
14
14
  }
@@ -1,14 +1,14 @@
1
1
  import { ChangeDetectorRef } from "@angular/core";
2
2
  import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { ChartAssist, ChartPalette, IAccessors, IValueProvider } from "@nova-ui/charts";
3
+ import { ChartAssist, ChartPalette, IAccessors, IValueProvider, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { TimeseriesScalesService } from "../../../timeseries-scales.service";
5
5
  import { XYChartComponent } from "../xy-chart.component";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class StackedAreaChartComponent extends XYChartComponent {
8
8
  static lateLoadKey: string;
9
- constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef);
9
+ constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
10
10
  protected createAccessors(colorProvider: IValueProvider<string>): IAccessors;
11
11
  protected createChartAssist(palette: ChartPalette): ChartAssist;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<StackedAreaChartComponent, [null, { optional: true; }, null, null]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<StackedAreaChartComponent, [null, { optional: true; }, null, null, null]>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<StackedAreaChartComponent, "nui-stacked-area-chart", never, {}, {}, never, never>;
14
14
  }
@@ -1,15 +1,15 @@
1
1
  import { ChangeDetectorRef } from "@angular/core";
2
2
  import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { ChartAssist, ChartPalette, IAccessors, IChartAssistSeries, IValueProvider, IXYScales } from "@nova-ui/charts";
3
+ import { ChartAssist, ChartPalette, IAccessors, IChartAssistSeries, IValueProvider, IXYScales, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { TimeseriesScalesService } from "../../../timeseries-scales.service";
5
5
  import { XYChartComponent } from "../xy-chart.component";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class StackedBarChartComponent extends XYChartComponent {
8
8
  static lateLoadKey: string;
9
- constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef);
9
+ constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
10
10
  mapSeriesSet(data: any[], scales: IXYScales): IChartAssistSeries<IAccessors>[];
11
11
  protected createAccessors(colorProvider: IValueProvider<string>): IAccessors;
12
12
  protected createChartAssist(palette: ChartPalette): ChartAssist;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<StackedBarChartComponent, [null, { optional: true; }, null, null]>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<StackedBarChartComponent, [null, { optional: true; }, null, null, null]>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<StackedBarChartComponent, "nui-stacked-bar-chart", never, {}, {}, never, never>;
15
15
  }
@@ -1,14 +1,14 @@
1
1
  import { ChangeDetectorRef } from "@angular/core";
2
2
  import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { ChartAssist, ChartPalette, IAccessors, IValueProvider } from "@nova-ui/charts";
3
+ import { ChartAssist, ChartPalette, IAccessors, IValueProvider, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { TimeseriesScalesService } from "../../../timeseries-scales.service";
5
5
  import { XYChartComponent } from "../xy-chart.component";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class StackedPercentageAreaChartComponent extends XYChartComponent {
8
8
  static lateLoadKey: string;
9
- constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef);
9
+ constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
10
10
  protected createAccessors(colorProvider: IValueProvider<string>): IAccessors;
11
11
  protected createChartAssist(palette: ChartPalette): ChartAssist;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<StackedPercentageAreaChartComponent, [null, { optional: true; }, null, null]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<StackedPercentageAreaChartComponent, [null, { optional: true; }, null, null, null]>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<StackedPercentageAreaChartComponent, "nui-stacked-percentage-area-chart", never, {}, {}, never, never>;
14
14
  }
@@ -1,20 +1,28 @@
1
1
  import { ChangeDetectorRef, OnChanges, OnDestroy } from "@angular/core";
2
2
  import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
3
- import { ChartAssist, ChartPalette, IAccessors, IChartAssistSeries, IValueProvider, IXYScales, Renderer } from "@nova-ui/charts";
3
+ import { ChartAssist, ChartPalette, IAccessors, IChartAssistSeries, IValueProvider, IXYScales, Renderer, TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService } from "@nova-ui/charts";
4
4
  import { IHasChangeDetector } from "../../../../types";
5
5
  import { TimeseriesScalesService } from "../../timeseries-scales.service";
6
+ import { ITimeseriesWidgetSeriesData, TimeseriesTransformer } from "../../types";
6
7
  import { TimeseriesChartComponent } from "../timeseries-chart.component";
7
8
  import * as i0 from "@angular/core";
9
+ interface ITransformerDescription {
10
+ displayName: string;
11
+ transformer?: (data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean) => ITimeseriesWidgetSeriesData[];
12
+ }
8
13
  export declare abstract class XYChartComponent extends TimeseriesChartComponent implements OnChanges, OnDestroy, IHasChangeDetector {
9
14
  protected eventBus: EventBus<IEvent>;
10
15
  timeseriesScalesService: TimeseriesScalesService;
11
16
  changeDetector: ChangeDetectorRef;
17
+ zoomPluginsSyncService: TimeseriesZoomPluginsSyncService;
12
18
  chartAssist: ChartAssist;
13
19
  valueAccessorKey: string;
14
20
  collectionId: string;
21
+ zoomPlugin: TimeseriesZoomPlugin;
15
22
  protected renderer: Renderer<IAccessors>;
16
23
  protected accessors: IAccessors;
17
- constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef);
24
+ transformers: Map<TimeseriesTransformer, ITransformerDescription>;
25
+ constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
18
26
  protected abstract createAccessors(colorProvider: IValueProvider<string>): IAccessors;
19
27
  protected abstract createChartAssist(palette: ChartPalette): ChartAssist;
20
28
  mapSeriesSet(data: any[], scales: IXYScales): IChartAssistSeries<IAccessors>[];
@@ -33,6 +41,10 @@ export declare abstract class XYChartComponent extends TimeseriesChartComponent
33
41
  * Subscribe to chart events and emit
34
42
  */
35
43
  protected setupInteraction(): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<XYChartComponent, [null, { optional: true; }, null, null]>;
44
+ displayLegendMenu(): boolean;
45
+ removeMetric(metricId: string): void;
46
+ transformData(metricId: string, trId: TimeseriesTransformer): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<XYChartComponent, [null, { optional: true; }, null, null, null]>;
37
48
  static ɵprov: i0.ɵɵInjectableDeclaration<XYChartComponent>;
38
49
  }
50
+ export {};
@@ -2,3 +2,6 @@ export * from "./types";
2
2
  export * from "./timeseries-widget.component";
3
3
  export * from "./timeseries-chart-preset.service";
4
4
  export * from "./chart-presets/public-api";
5
+ export * from "./transformer/public-api";
6
+ export * from "./timeseries-inspection-menu/timeseries-inspection-menu.component";
7
+ export * from "./timeseries-helpers";
@@ -0,0 +1,6 @@
1
+ import { UnitOption } from "@nova-ui/bits";
2
+ import { ITimeseriesWidgetData } from "./types";
3
+ export declare function metricsSeriesMeasurementsMinMax(series: ITimeseriesWidgetData<any>[], axisUnits: UnitOption): {
4
+ min: number;
5
+ max: number;
6
+ };
@@ -0,0 +1,40 @@
1
+ import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
+ import { EventBus, IEvent, IEventDefinition } from "@nova-ui/bits";
3
+ import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, ITimeseriesZoomPluginInspectionFrame } from "@nova-ui/charts";
4
+ import moment from "moment/moment";
5
+ import * as i0 from "@angular/core";
6
+ export declare const TIMESERIES_INSPECTION_MENU_ZOOM_IN: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>;
7
+ export declare const TIMESERIES_INSPECTION_MENU_ZOOM_OUT: IEventDefinition<IEvent<ITimeseriesZoomPluginInspectionFrame>>;
8
+ export declare const TIMESERIES_INSPECTION_MENU_EXPLORE: IEventDefinition<IEvent<ITimeseriesZoomPluginExploreData>>;
9
+ export declare const TIMESERIES_INSPECTION_MENU_CLOSE: IEventDefinition<IEvent<void>>;
10
+ export declare const TIMESERIES_INSPECTION_MENU_SYNCHRONIZE: IEventDefinition<IEvent<void>>;
11
+ export interface ITimeseriesZoomPluginExploreData {
12
+ ids: string;
13
+ startDate: moment.Moment;
14
+ endDate: moment.Moment;
15
+ openSidePanel: boolean;
16
+ exploringEnabled: boolean;
17
+ }
18
+ export declare class TimeseriesInspectionMenuComponent implements OnInit, OnChanges, OnDestroy {
19
+ element: ElementRef;
20
+ private eventBus;
21
+ private syncService;
22
+ plugin: TimeseriesZoomPlugin;
23
+ exploringEnabled: boolean;
24
+ metricIds?: string;
25
+ collectionId?: string;
26
+ allowed?: boolean;
27
+ private offset;
28
+ private destroy$;
29
+ constructor(element: ElementRef, eventBus: EventBus<IEvent>, syncService: TimeseriesZoomPluginsSyncService);
30
+ ngOnInit(): void;
31
+ ngOnChanges(changes: SimpleChanges): void;
32
+ ngOnDestroy(): void;
33
+ clearZoom(): void;
34
+ isZoomInAllowed(): boolean;
35
+ zoomIn(): void;
36
+ zoomOut(): void;
37
+ explore(openSidePanel?: boolean): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeseriesInspectionMenuComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimeseriesInspectionMenuComponent, "nui-timeseries-inspection-menu", never, { "plugin": "plugin"; "exploringEnabled": "exploringEnabled"; "metricIds": "metricIds"; "collectionId": "collectionId"; "allowed": "allowed"; }, {}, never, never>;
40
+ }
@@ -1,22 +1,31 @@
1
- import { ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
1
+ import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges } from "@angular/core";
2
+ import { TimeseriesZoomPlugin, TimeseriesZoomPluginsSyncService, ZoomPlugin } from "@nova-ui/charts";
2
3
  import { IHasChangeDetector } from "../../types";
3
4
  import { TimeseriesChartPresetService } from "./timeseries-chart-preset.service";
4
- import { IChartPreset, ITimeseriesOutput, ITimeseriesWidgetConfig } from "./types";
5
+ import { IChartPreset, ITimeseriesOutput, ITimeseriesWidgetConfig, TimeseriesWidgetProjectType } from "./types";
5
6
  import * as i0 from "@angular/core";
6
7
  /** @ignore */
7
- export declare class TimeseriesWidgetComponent implements OnChanges, IHasChangeDetector {
8
+ export declare class TimeseriesWidgetComponent implements OnInit, OnChanges, IHasChangeDetector {
8
9
  timeseriesChartPresetService: TimeseriesChartPresetService;
9
10
  changeDetector: ChangeDetectorRef;
11
+ zoomPluginsSyncService: TimeseriesZoomPluginsSyncService;
10
12
  static lateLoadKey: string;
11
13
  widgetData?: ITimeseriesOutput;
12
14
  configuration?: ITimeseriesWidgetConfig;
13
15
  collectionId?: string;
14
16
  elementClass: string;
15
17
  chartPreset: IChartPreset;
16
- constructor(timeseriesChartPresetService: TimeseriesChartPresetService, changeDetector: ChangeDetectorRef);
18
+ zoomPlugin: ZoomPlugin | TimeseriesZoomPlugin;
19
+ allowPopover: boolean;
20
+ timeseriesWidgetProjectType: typeof TimeseriesWidgetProjectType;
21
+ constructor(timeseriesChartPresetService: TimeseriesChartPresetService, changeDetector: ChangeDetectorRef, zoomPluginsSyncService: TimeseriesZoomPluginsSyncService);
22
+ ngOnInit(): void;
17
23
  ngOnChanges(changes: SimpleChanges): void;
18
24
  /** Checks if chart should be shown. */
19
25
  shouldShowChart(): boolean;
26
+ toggleLeave(): void;
27
+ toggleEnter(): void;
28
+ isExploringEnabled(): boolean;
20
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TimeseriesWidgetComponent, never>;
21
30
  static ɵcmp: i0.ɵɵComponentDeclaration<TimeseriesWidgetComponent, "nui-timeseries-widget", never, { "widgetData": "widgetData"; "configuration": "configuration"; "collectionId": "collectionId"; "elementClass": "elementClass"; }, {}, never, never>;
22
31
  }
@@ -0,0 +1,6 @@
1
+ export declare function loess(): {
2
+ (xval: number[], yval: number[], weights: number[]): number[];
3
+ bandwidth(x: any): any;
4
+ robustnessIterations(x: any): any;
5
+ accuracy(x: any): any;
6
+ };
@@ -0,0 +1,9 @@
1
+ export * from "./transformer-difference";
2
+ export * from "./transformer-change-point";
3
+ export * from "./transformer-floating-average";
4
+ export * from "./transformer-loess";
5
+ export * from "./transformer-normalize";
6
+ export * from "./transformer-lin-reg";
7
+ export * from "./transformer-loess-standardize";
8
+ export * from "./transformer-percentile-std";
9
+ export * from "./transformer-standardize";
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformChangePoint(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformDifference(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformFloatingAverage(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformLinReg(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformLoessStandardize(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformLoessSmoothing(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformNormalize(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformPercentileStd(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -0,0 +1,2 @@
1
+ import { ITimeseriesWidgetSeriesData } from "../types";
2
+ export declare function transformStandardize(data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean): ITimeseriesWidgetSeriesData[];
@@ -19,6 +19,12 @@ export interface ITimeseriesWidgetConfig {
19
19
  [key: string]: any;
20
20
  };
21
21
  hasAdjacentChart?: boolean;
22
+ groupUniqueId?: string;
23
+ allowLegendMenu?: boolean;
24
+ metricIds?: string;
25
+ realTimeIds?: string[];
26
+ type?: number;
27
+ projectType?: TimeseriesWidgetProjectType;
22
28
  }
23
29
  export interface ITimeseriesWidgetSeries {
24
30
  id: string;
@@ -30,8 +36,11 @@ export interface ITimeseriesWidgetData<T = ITimeseriesWidgetSeriesData> {
30
36
  name: string;
31
37
  description: string;
32
38
  data: T[];
39
+ rawData?: T[];
40
+ transformer?: (data: T[], hasPercentile?: boolean) => T[];
33
41
  link?: string;
34
42
  secondaryLink?: string;
43
+ metricUnits?: UnitOption;
35
44
  }
36
45
  export interface ITimeseriesWidgetSeriesData {
37
46
  x: any;
@@ -91,3 +100,29 @@ export declare enum TimeseriesChartPreset {
91
100
  StackedBar = "stackedBar",
92
101
  StatusBar = "statusBar"
93
102
  }
103
+ /** Enumeration of timeseries chart types recieved from the backend */
104
+ export declare enum TimeseriesChartTypes {
105
+ gauge = 1,
106
+ counter = 2,
107
+ event = 3,
108
+ alert = 4,
109
+ state = 5,
110
+ multi = 6,
111
+ dpaWaitTime = 7
112
+ }
113
+ export declare enum TimeseriesTransformer {
114
+ None = "none",
115
+ Normalize = "normalize",
116
+ ChangePoint = "changePoint",
117
+ Difference = "difference",
118
+ Linear = "linear",
119
+ PercentileStd = "percentileStd",
120
+ Smoothing = "smoothing",
121
+ LoessStandardize = "loessStandardize",
122
+ Standardize = "standardize",
123
+ FloatingAverage = "floatingAverage"
124
+ }
125
+ export declare enum TimeseriesWidgetProjectType {
126
+ ModernDashboard = 0,
127
+ PerfstackApp = 1
128
+ }
@@ -32,17 +32,18 @@ import * as i26 from "./components/list-widget/list-elements/list-group-item/lis
32
32
  import * as i27 from "./components/list-widget/list-elements/list-navigation-bar/list-navigation-bar.component";
33
33
  import * as i28 from "./components/widget-search/widget-search.component";
34
34
  import * as i29 from "./components/proportional-widget/proportional-donut-content/proportional-donut-content.component";
35
- import * as i30 from "./common/common.module";
36
- import * as i31 from "angular-gridster2";
37
- import * as i32 from "@nova-ui/bits";
38
- import * as i33 from "@nova-ui/charts";
39
- import * as i34 from "./configurator/configurator.module";
40
- import * as i35 from "./pizzagna/pizzagna.module";
41
- import * as i36 from "@angular/cdk/scrolling";
42
- import * as i37 from "@angular/forms";
35
+ import * as i30 from "./components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component";
36
+ import * as i31 from "./common/common.module";
37
+ import * as i32 from "angular-gridster2";
38
+ import * as i33 from "@nova-ui/bits";
39
+ import * as i34 from "@nova-ui/charts";
40
+ import * as i35 from "./configurator/configurator.module";
41
+ import * as i36 from "./pizzagna/pizzagna.module";
42
+ import * as i37 from "@angular/cdk/scrolling";
43
+ import * as i38 from "@angular/forms";
43
44
  export declare class NuiDashboardsModule {
44
45
  constructor(widgetTypesService: WidgetTypesService, componentRegistry: ComponentRegistryService, eventRegistry: EventRegistryService, kpiFormattersRegistry: KpiFormattersRegistryService);
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<NuiDashboardsModule, never>;
46
- static ɵmod: i0.ɵɵNgModuleDeclaration<NuiDashboardsModule, [typeof i1.DashboardComponent, typeof i2.EmbeddedContentComponent, typeof i3.GridsterItemWidgetIdDirective, typeof i4.KpiComponent, typeof i5.LineChartComponent, typeof i6.LoadingComponent, typeof i7.ProportionalWidgetComponent, typeof i8.StackComponent, typeof i9.StackedAreaChartComponent, typeof i10.StackedBarChartComponent, typeof i11.StackedPercentageAreaChartComponent, typeof i12.StatusBarChartComponent, typeof i13.TableWidgetComponent, typeof i14.DelayedMousePresenceDetectionDirective, typeof i15.TemplateLoadErrorComponent, typeof i16.TilesComponent, typeof i17.TimeframeSelectionComponent, typeof i18.TimeseriesWidgetComponent, typeof i19.WidgetBodyComponent, typeof i20.WidgetBodyContentComponent, typeof i21.WidgetComponent, typeof i22.WidgetEditorDirective, typeof i23.WidgetHeaderComponent, typeof i24.ListWidgetComponent, typeof i25.ListLeafItemComponent, typeof i26.ListGroupItemComponent, typeof i27.ListNavigationBarComponent, typeof i28.WidgetSearchComponent, typeof i29.ProportionalDonutContentComponent], [typeof i30.NuiDashboardsCommonModule, typeof i31.GridsterModule, typeof i32.NuiBusyModule, typeof i32.NuiButtonModule, typeof i33.NuiChartsModule, typeof i34.NuiDashboardConfiguratorModule, typeof i32.NuiIconModule, typeof i32.NuiImageModule, typeof i32.NuiMenuModule, typeof i35.NuiPizzagnaModule, typeof i32.NuiPopupModule, typeof i32.NuiProgressModule, typeof i32.NuiTableModule, typeof i32.NuiTimeFrameBarModule, typeof i36.ScrollingModule, typeof i32.NuiTimeFramePickerModule, typeof i37.ReactiveFormsModule, typeof i32.NuiSpinnerModule, typeof i32.NuiTooltipModule, typeof i32.NuiSearchModule, typeof i32.NuiCommonModule, typeof i32.NuiRepeatModule, typeof i32.NuiSelectModule], [typeof i1.DashboardComponent, typeof i2.EmbeddedContentComponent, typeof i3.GridsterItemWidgetIdDirective, typeof i4.KpiComponent, typeof i5.LineChartComponent, typeof i6.LoadingComponent, typeof i7.ProportionalWidgetComponent, typeof i8.StackComponent, typeof i9.StackedAreaChartComponent, typeof i10.StackedBarChartComponent, typeof i11.StackedPercentageAreaChartComponent, typeof i12.StatusBarChartComponent, typeof i13.TableWidgetComponent, typeof i14.DelayedMousePresenceDetectionDirective, typeof i15.TemplateLoadErrorComponent, typeof i16.TilesComponent, typeof i17.TimeframeSelectionComponent, typeof i18.TimeseriesWidgetComponent, typeof i19.WidgetBodyComponent, typeof i20.WidgetBodyContentComponent, typeof i21.WidgetComponent, typeof i22.WidgetEditorDirective, typeof i23.WidgetHeaderComponent, typeof i24.ListWidgetComponent, typeof i25.ListLeafItemComponent, typeof i26.ListGroupItemComponent, typeof i27.ListNavigationBarComponent, typeof i28.WidgetSearchComponent, typeof i29.ProportionalDonutContentComponent]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NuiDashboardsModule, [typeof i1.DashboardComponent, typeof i2.EmbeddedContentComponent, typeof i3.GridsterItemWidgetIdDirective, typeof i4.KpiComponent, typeof i5.LineChartComponent, typeof i6.LoadingComponent, typeof i7.ProportionalWidgetComponent, typeof i8.StackComponent, typeof i9.StackedAreaChartComponent, typeof i10.StackedBarChartComponent, typeof i11.StackedPercentageAreaChartComponent, typeof i12.StatusBarChartComponent, typeof i13.TableWidgetComponent, typeof i14.DelayedMousePresenceDetectionDirective, typeof i15.TemplateLoadErrorComponent, typeof i16.TilesComponent, typeof i17.TimeframeSelectionComponent, typeof i18.TimeseriesWidgetComponent, typeof i19.WidgetBodyComponent, typeof i20.WidgetBodyContentComponent, typeof i21.WidgetComponent, typeof i22.WidgetEditorDirective, typeof i23.WidgetHeaderComponent, typeof i24.ListWidgetComponent, typeof i25.ListLeafItemComponent, typeof i26.ListGroupItemComponent, typeof i27.ListNavigationBarComponent, typeof i28.WidgetSearchComponent, typeof i29.ProportionalDonutContentComponent, typeof i30.TimeseriesInspectionMenuComponent], [typeof i31.NuiDashboardsCommonModule, typeof i32.GridsterModule, typeof i33.NuiBusyModule, typeof i33.NuiButtonModule, typeof i34.NuiChartsModule, typeof i35.NuiDashboardConfiguratorModule, typeof i33.NuiIconModule, typeof i33.NuiImageModule, typeof i33.NuiMenuModule, typeof i36.NuiPizzagnaModule, typeof i33.NuiPopupModule, typeof i33.NuiProgressModule, typeof i33.NuiTableModule, typeof i33.NuiTimeFrameBarModule, typeof i37.ScrollingModule, typeof i33.NuiTimeFramePickerModule, typeof i38.ReactiveFormsModule, typeof i33.NuiSpinnerModule, typeof i33.NuiTooltipModule, typeof i33.NuiSearchModule, typeof i33.NuiCommonModule, typeof i33.NuiRepeatModule, typeof i33.NuiSelectModule, typeof i33.NuiPopoverModule], [typeof i1.DashboardComponent, typeof i2.EmbeddedContentComponent, typeof i3.GridsterItemWidgetIdDirective, typeof i4.KpiComponent, typeof i5.LineChartComponent, typeof i6.LoadingComponent, typeof i7.ProportionalWidgetComponent, typeof i8.StackComponent, typeof i9.StackedAreaChartComponent, typeof i10.StackedBarChartComponent, typeof i11.StackedPercentageAreaChartComponent, typeof i12.StatusBarChartComponent, typeof i13.TableWidgetComponent, typeof i14.DelayedMousePresenceDetectionDirective, typeof i15.TemplateLoadErrorComponent, typeof i16.TilesComponent, typeof i17.TimeframeSelectionComponent, typeof i18.TimeseriesWidgetComponent, typeof i19.WidgetBodyComponent, typeof i20.WidgetBodyContentComponent, typeof i21.WidgetComponent, typeof i22.WidgetEditorDirective, typeof i23.WidgetHeaderComponent, typeof i24.ListWidgetComponent, typeof i25.ListLeafItemComponent, typeof i26.ListGroupItemComponent, typeof i27.ListNavigationBarComponent, typeof i28.WidgetSearchComponent, typeof i29.ProportionalDonutContentComponent, typeof i30.TimeseriesInspectionMenuComponent]>;
47
48
  static ɵinj: i0.ɵɵInjectorDeclaration<NuiDashboardsModule>;
48
49
  }
@@ -1,6 +1,5 @@
1
1
  import { StaticProvider } from "@angular/core";
2
- import { GridsterItem } from "angular-gridster2";
3
- import { EventDefinition, IEventDefinition } from "@nova-ui/bits";
2
+ import { EventDefinition, IEvent, IEventDefinition } from "@nova-ui/bits";
4
3
  import { IInteractionPayload } from "../components/providers/interaction/interaction-handler";
5
4
  import { IDataSourceBusyPayload } from "../components/providers/types";
6
5
  import { ISerializableTimeframe } from "../types";
@@ -21,19 +20,25 @@ export interface IRegistryAddOptions {
21
20
  }
22
21
  export interface IAddFormattersOptions extends Pick<IRegistryAddOptions, "overrideExisting"> {
23
22
  }
24
- export interface IWidgetResizePayload {
25
- widgetId: number;
26
- height: number;
27
- width: number;
23
+ export interface IRemoveMetricPayload {
24
+ metricId: string;
25
+ groupUniqueId: string;
28
26
  }
29
- export declare const REFRESH: EventDefinition<void>;
30
- export declare const SCROLL_NEXT_PAGE: EventDefinition<void>;
31
- export declare const WIDGET_REMOVE: EventDefinition<void>;
32
- export declare const WIDGET_EDIT: EventDefinition<void>;
33
- export declare const WIDGET_CREATE: EventDefinition<void>;
34
- export declare const WIDGET_READY: EventDefinition<void>;
27
+ export interface IWidgetPayload {
28
+ widgetId: string;
29
+ }
30
+ export interface IWidgetResizePayload extends IWidgetPayload {
31
+ height?: number;
32
+ width?: number;
33
+ }
34
+ export declare const REFRESH: EventDefinition<unknown>;
35
+ export declare const SCROLL_NEXT_PAGE: EventDefinition<unknown>;
36
+ export declare const WIDGET_REMOVE: EventDefinition<unknown>;
37
+ export declare const WIDGET_EDIT: EventDefinition<unknown>;
38
+ export declare const WIDGET_CREATE: EventDefinition<unknown>;
39
+ export declare const WIDGET_READY: EventDefinition<unknown>;
35
40
  export declare const WIDGET_RESIZE: EventDefinition<IWidgetResizePayload>;
36
- export declare const WIDGET_POSITION_CHANGE: EventDefinition<GridsterItem>;
41
+ export declare const WIDGET_POSITION_CHANGE: EventDefinition<unknown>;
37
42
  export declare const WIDGET_SEARCH: EventDefinition<string>;
38
43
  export declare const SET_PROPERTY_VALUE: EventDefinition<ISetPropertyPayload>;
39
44
  export declare const SET_TIMEFRAME: EventDefinition<ISerializableTimeframe>;
@@ -75,3 +80,4 @@ export declare const NOVA_KPI_FORMATTERS_REGISTRY = "NOVA_KPI_FORMATTERS_REGISTR
75
80
  export declare const NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY = "NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY";
76
81
  export declare const NOVA_TEST_REGISTRY = "NOVA_TEST_REGISTRY";
77
82
  export declare const NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER = "NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER";
83
+ export declare const CHART_METRIC_REMOVE: IEventDefinition<IEvent<IRemoveMetricPayload>>;
package/package.json CHANGED
@@ -61,7 +61,7 @@
61
61
  "moment": "^2.29.4"
62
62
  },
63
63
  "schematics": "./sdk/schematics/collection.json",
64
- "version": "13.0.7-4420",
64
+ "version": "13.0.7-4441",
65
65
  "module": "fesm2015/nova-ui-dashboards.mjs",
66
66
  "es2020": "fesm2020/nova-ui-dashboards.mjs",
67
67
  "esm2020": "esm2020/nova-ui-dashboards.mjs",
@@ -0,0 +1,12 @@
1
+ import { Atom, ButtonAtom, IconAtom, MenuItemAtom } from "@nova-ui/bits/sdk/atoms";
2
+ export declare class LegendSeriesAtom extends Atom {
3
+ static CSS_CLASS: string;
4
+ private root;
5
+ getValue(): Promise<string>;
6
+ getDescriptionPrimary(): Promise<string>;
7
+ getDescriptionSecondary(): Promise<string>;
8
+ getMenuButton(): ButtonAtom;
9
+ getTransformIcon(): IconAtom;
10
+ getTransform(transformName: string): Promise<MenuItemAtom | undefined>;
11
+ private getTransformGroup;
12
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to
6
+ // deal in the Software without restriction, including without limitation the
7
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
+ // sell copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.LegendSeriesAtom = void 0;
23
+ const tslib_1 = require("tslib");
24
+ const protractor_1 = require("protractor");
25
+ const atoms_1 = require("@nova-ui/bits/sdk/atoms");
26
+ class LegendSeriesAtom extends atoms_1.Atom {
27
+ constructor() {
28
+ super(...arguments);
29
+ this.root = this.getElement();
30
+ }
31
+ getValue() {
32
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
+ return yield this.root
34
+ .all(protractor_1.by.className("nui-rich-legend-tile"))
35
+ .first()
36
+ .getText();
37
+ });
38
+ }
39
+ getDescriptionPrimary() {
40
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
+ return yield this.root
42
+ .all(protractor_1.by.className("description-primary"))
43
+ .first()
44
+ .getText();
45
+ });
46
+ }
47
+ getDescriptionSecondary() {
48
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
49
+ return yield this.root
50
+ .all(protractor_1.by.className("description-secondary"))
51
+ .first()
52
+ .getText();
53
+ });
54
+ }
55
+ getMenuButton() {
56
+ return atoms_1.Atom.findIn(atoms_1.ButtonAtom, this.root);
57
+ }
58
+ getTransformIcon() {
59
+ return atoms_1.Atom.findIn(atoms_1.IconAtom, this.root);
60
+ }
61
+ getTransform(transformName) {
62
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
63
+ // opens legend menu
64
+ yield this.hover();
65
+ yield this.getMenuButton().click();
66
+ const group = this.getTransformGroup();
67
+ const count = yield atoms_1.Atom.findCount(atoms_1.MenuItemAtom, group);
68
+ const transforms = new Array(count)
69
+ .fill(0)
70
+ .map((_, index) => atoms_1.Atom.findIn(atoms_1.MenuItemAtom, group, index))
71
+ .slice(1);
72
+ for (const transform of transforms) {
73
+ if ((yield transform.getElement().getText()) === transformName) {
74
+ return transform;
75
+ }
76
+ }
77
+ });
78
+ }
79
+ getTransformGroup() {
80
+ return (0, protractor_1.element)(protractor_1.by.xpath("//nui-menu-group[@header='Display Transforms']"));
81
+ }
82
+ }
83
+ exports.LegendSeriesAtom = LegendSeriesAtom;
84
+ LegendSeriesAtom.CSS_CLASS = "nui-legend-series";
85
+ //# sourceMappingURL=legend-series.atom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legend-series.atom.js","sourceRoot":"","sources":["../../../../../spec/timeseries/legend-series.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,2CAAwD;AAExD,mDAKiC;AAEjC,MAAa,gBAAiB,SAAQ,YAAI;IAA1C;;QAGY,SAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IA0DrC,CAAC;IAxDgB,QAAQ;;YACjB,OAAO,MAAM,IAAI,CAAC,IAAI;iBACjB,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;iBACzC,KAAK,EAAE;iBACP,OAAO,EAAE,CAAC;QACnB,CAAC;KAAA;IAEY,qBAAqB;;YAC9B,OAAO,MAAM,IAAI,CAAC,IAAI;iBACjB,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;iBACxC,KAAK,EAAE;iBACP,OAAO,EAAE,CAAC;QACnB,CAAC;KAAA;IAEY,uBAAuB;;YAChC,OAAO,MAAM,IAAI,CAAC,IAAI;iBACjB,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;iBAC1C,KAAK,EAAE;iBACP,OAAO,EAAE,CAAC;QACnB,CAAC;KAAA;IAEM,aAAa;QAChB,OAAO,YAAI,CAAC,MAAM,CAAC,kBAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEM,gBAAgB;QACnB,OAAO,YAAI,CAAC,MAAM,CAAC,gBAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAEY,YAAY,CACrB,aAAqB;;YAErB,oBAAoB;YACpB,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACnB,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC;YAEnC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvC,MAAM,KAAK,GAAG,MAAM,YAAI,CAAC,SAAS,CAAC,oBAAY,EAAE,KAAK,CAAC,CAAC;YAExD,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;iBAC9B,IAAI,CAAC,CAAC,CAAC;iBACP,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,YAAI,CAAC,MAAM,CAAC,oBAAY,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;iBAC1D,KAAK,CAAC,CAAC,CAAC,CAAC;YAEd,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;gBAChC,IAAI,CAAC,MAAM,SAAS,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,aAAa,EAAE;oBAC5D,OAAO,SAAS,CAAC;iBACpB;aACJ;QACL,CAAC;KAAA;IAEO,iBAAiB;QACrB,OAAO,IAAA,oBAAO,EACV,eAAE,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAC7D,CAAC;IACN,CAAC;;AA5DL,4CA6DC;AA5DiB,0BAAS,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Atom } from "@nova-ui/bits/sdk/atoms";
2
+ import { ChartAtom } from "@nova-ui/charts/sdk/atoms/chart/atoms/chart.atom";
3
+ import { LegendSeriesAtom } from "./legend-series.atom";
4
+ export declare class TimeseriesAtom extends Atom {
5
+ static CSS_CLASS: string;
6
+ private root;
7
+ get chart(): ChartAtom;
8
+ getLegendSeries(): Promise<LegendSeriesAtom[]>;
9
+ transformSeries(transformName: string, index: number): Promise<void>;
10
+ }