@nova-ui/charts 19.0.2 → 20.0.3

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 (180) hide show
  1. package/bundles/css/styles.css +1 -1
  2. package/fesm2022/nova-ui-charts.mjs +49 -49
  3. package/fesm2022/nova-ui-charts.mjs.map +1 -1
  4. package/index.d.ts +4104 -3
  5. package/package.json +10 -2
  6. package/chart/chart.component.d.ts +0 -22
  7. package/chart-collection/chart-collection-id.directive.d.ts +0 -19
  8. package/chart-collection/chart-collection.service.d.ts +0 -11
  9. package/chart-collection/public-api.d.ts +0 -2
  10. package/chart-donut-content/chart-donut-content.component.d.ts +0 -15
  11. package/chart-marker/chart-marker.component.d.ts +0 -22
  12. package/chart-popover/chart-popover.component.d.ts +0 -22
  13. package/chart-tooltips/chart-tooltip.component.d.ts +0 -7
  14. package/chart-tooltips/chart-tooltip.directive.d.ts +0 -28
  15. package/chart-tooltips/chart-tooltips.component.d.ts +0 -41
  16. package/charts.module.d.ts +0 -21
  17. package/constants.d.ts +0 -30
  18. package/core/chart-assists/chart-assist.d.ts +0 -120
  19. package/core/chart-assists/public-api.d.ts +0 -3
  20. package/core/chart-assists/spark-chart-assist.d.ts +0 -49
  21. package/core/chart-assists/types.d.ts +0 -59
  22. package/core/chart-collection.d.ts +0 -51
  23. package/core/chart.d.ts +0 -46
  24. package/core/common/chart-plugin.d.ts +0 -9
  25. package/core/common/data-manager.d.ts +0 -25
  26. package/core/common/data-series.d.ts +0 -11
  27. package/core/common/event-bus.d.ts +0 -6
  28. package/core/common/lasagna.d.ts +0 -15
  29. package/core/common/mouse-interactive-area.d.ts +0 -23
  30. package/core/common/palette/chart-palette.d.ts +0 -12
  31. package/core/common/palette/default-providers.d.ts +0 -4
  32. package/core/common/palette/mapped-value-provider.d.ts +0 -14
  33. package/core/common/palette/markers/path-marker.d.ts +0 -19
  34. package/core/common/palette/markers/svg-marker.d.ts +0 -11
  35. package/core/common/palette/palettes.d.ts +0 -20
  36. package/core/common/palette/processed-color-provider.d.ts +0 -13
  37. package/core/common/palette/public-api.d.ts +0 -11
  38. package/core/common/palette/sequential-chart-marker-provider.d.ts +0 -10
  39. package/core/common/palette/sequential-color-provider.d.ts +0 -9
  40. package/core/common/palette/sequential-value-provider.d.ts +0 -13
  41. package/core/common/palette/text-color-provider.d.ts +0 -27
  42. package/core/common/public-api.d.ts +0 -12
  43. package/core/common/render-engine.d.ts +0 -59
  44. package/core/common/renderer.d.ts +0 -110
  45. package/core/common/scales/band-scale.d.ts +0 -91
  46. package/core/common/scales/constants.d.ts +0 -2
  47. package/core/common/scales/domain-calculation/automatic-domain.d.ts +0 -19
  48. package/core/common/scales/domain-calculation/domain-with-auxiliary-series.d.ts +0 -9
  49. package/core/common/scales/domain-calculation/domain-with-ticks.d.ts +0 -3
  50. package/core/common/scales/domain-calculation/merge-domains.d.ts +0 -8
  51. package/core/common/scales/formatters/datetime-formatter.d.ts +0 -5
  52. package/core/common/scales/formatters/public-api.d.ts +0 -1
  53. package/core/common/scales/helpers/convert.d.ts +0 -10
  54. package/core/common/scales/helpers/domain.d.ts +0 -2
  55. package/core/common/scales/helpers/invert.d.ts +0 -2
  56. package/core/common/scales/helpers/is-in-range.d.ts +0 -8
  57. package/core/common/scales/linear-scale.d.ts +0 -12
  58. package/core/common/scales/noop-scale.d.ts +0 -21
  59. package/core/common/scales/point-scale.d.ts +0 -55
  60. package/core/common/scales/public-api.d.ts +0 -15
  61. package/core/common/scales/scale.d.ts +0 -44
  62. package/core/common/scales/time-interval-scale.d.ts +0 -30
  63. package/core/common/scales/time-scale.d.ts +0 -13
  64. package/core/common/scales/types.d.ts +0 -144
  65. package/core/common/types.d.ts +0 -327
  66. package/core/common/utility.service.d.ts +0 -53
  67. package/core/grid/config/area-grid-config.d.ts +0 -7
  68. package/core/grid/config/axis-config.d.ts +0 -20
  69. package/core/grid/config/bar-grid-config.d.ts +0 -7
  70. package/core/grid/config/bar-horizontal-grid-config.d.ts +0 -7
  71. package/core/grid/config/bar-status-grid-config.d.ts +0 -6
  72. package/core/grid/config/border-config.d.ts +0 -9
  73. package/core/grid/config/dimension-config.d.ts +0 -31
  74. package/core/grid/config/grid-config.d.ts +0 -16
  75. package/core/grid/config/linear-gauge-grid-config-fn.d.ts +0 -11
  76. package/core/grid/config/public-api.d.ts +0 -11
  77. package/core/grid/config/spark-chart-grid-config.d.ts +0 -9
  78. package/core/grid/config/xy-grid-config.d.ts +0 -10
  79. package/core/grid/default-text-overflow-handler.d.ts +0 -10
  80. package/core/grid/grid.d.ts +0 -125
  81. package/core/grid/public-api.d.ts +0 -5
  82. package/core/grid/radial-grid.d.ts +0 -9
  83. package/core/grid/types.d.ts +0 -285
  84. package/core/grid/xy-grid.d.ts +0 -107
  85. package/core/plugins/chart-donut-content-plugin.d.ts +0 -15
  86. package/core/plugins/chart-popover-plugin.d.ts +0 -39
  87. package/core/plugins/gauge/constants.d.ts +0 -12
  88. package/core/plugins/gauge/donut-gauge-labels-plugin.d.ts +0 -21
  89. package/core/plugins/gauge/linear-gauge-labels-plugin.d.ts +0 -26
  90. package/core/plugins/gauge/public-api.d.ts +0 -4
  91. package/core/plugins/gauge/types.d.ts +0 -16
  92. package/core/plugins/interaction/interaction-label-plugin.d.ts +0 -24
  93. package/core/plugins/interaction/interaction-line-plugin.d.ts +0 -18
  94. package/core/plugins/interaction/public-api.d.ts +0 -2
  95. package/core/plugins/mouse-interactive-area-plugin.d.ts +0 -14
  96. package/core/plugins/public-api.d.ts +0 -12
  97. package/core/plugins/radial-popover-plugin.d.ts +0 -8
  98. package/core/plugins/render-engine-plugin.d.ts +0 -12
  99. package/core/plugins/timeseries-zoom-plugin-sync.service.d.ts +0 -13
  100. package/core/plugins/timeseries-zoom-plugin.d.ts +0 -55
  101. package/core/plugins/tooltips/bar-tooltips-plugin.d.ts +0 -5
  102. package/core/plugins/tooltips/chart-tooltips-plugin.d.ts +0 -63
  103. package/core/plugins/tooltips/index.d.ts +0 -3
  104. package/core/plugins/tooltips/radial-tooltips-plugin.d.ts +0 -23
  105. package/core/plugins/types.d.ts +0 -30
  106. package/core/plugins/zoom-plugin.d.ts +0 -23
  107. package/core/public-api.d.ts +0 -7
  108. package/core/types.d.ts +0 -8
  109. package/gauge/constants.d.ts +0 -54
  110. package/gauge/gauge-util.d.ts +0 -161
  111. package/gauge/public-api.d.ts +0 -3
  112. package/gauge/types.d.ts +0 -89
  113. package/legend/legend-series/legend-series.component.d.ts +0 -79
  114. package/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.d.ts +0 -5
  115. package/legend/legend-tile/public-api.d.ts +0 -2
  116. package/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.d.ts +0 -33
  117. package/legend/legend.component.d.ts +0 -37
  118. package/legend/public-api.d.ts +0 -3
  119. package/legend/types.d.ts +0 -4
  120. package/public-api.d.ts +0 -15
  121. package/renderers/accessors/noop-accessors.d.ts +0 -11
  122. package/renderers/accessors/public-api.d.ts +0 -3
  123. package/renderers/accessors/rectangle-accessors.d.ts +0 -30
  124. package/renderers/accessors/xy-accessors.d.ts +0 -13
  125. package/renderers/area/area-accessors.d.ts +0 -28
  126. package/renderers/area/area-grid.d.ts +0 -7
  127. package/renderers/area/area-renderer.d.ts +0 -41
  128. package/renderers/area/public-api.d.ts +0 -6
  129. package/renderers/area/stacked-area-accessors.d.ts +0 -3
  130. package/renderers/area/stacked-area-preprocessor.d.ts +0 -5
  131. package/renderers/area/stacked-percentage-area-preprocessor.d.ts +0 -7
  132. package/renderers/bar/accessors/bar-accessors-fn.d.ts +0 -13
  133. package/renderers/bar/accessors/bar-accessors.d.ts +0 -24
  134. package/renderers/bar/accessors/horizontal-bar-accessors.d.ts +0 -8
  135. package/renderers/bar/accessors/public-api.d.ts +0 -6
  136. package/renderers/bar/accessors/status-accessors-fn.d.ts +0 -3
  137. package/renderers/bar/accessors/status-accessors.d.ts +0 -17
  138. package/renderers/bar/accessors/vertical-bar-accessors.d.ts +0 -8
  139. package/renderers/bar/bar-grid.d.ts +0 -10
  140. package/renderers/bar/bar-renderer.d.ts +0 -47
  141. package/renderers/bar/bar-scales.d.ts +0 -10
  142. package/renderers/bar/highlight-strategies/bar-highlight-strategy-outline.d.ts +0 -15
  143. package/renderers/bar/highlight-strategies/bar-highlight-strategy.d.ts +0 -23
  144. package/renderers/bar/highlight-strategies/bar-series-highlight-strategy.d.ts +0 -21
  145. package/renderers/bar/highlight-strategies/public-api.d.ts +0 -3
  146. package/renderers/bar/linear-gauge-renderer-config.d.ts +0 -7
  147. package/renderers/bar/linear-gauge-thresholds-renderer.d.ts +0 -25
  148. package/renderers/bar/preprocessor-utils.d.ts +0 -4
  149. package/renderers/bar/public-api.d.ts +0 -8
  150. package/renderers/bar/stacked-preprocessor.d.ts +0 -5
  151. package/renderers/bar/types.d.ts +0 -13
  152. package/renderers/constants.d.ts +0 -12
  153. package/renderers/line/calculate-missing-data.d.ts +0 -10
  154. package/renderers/line/interaction-strategies/line-select-series-interaction-strategy.d.ts +0 -15
  155. package/renderers/line/interaction-strategies/public-api.d.ts +0 -1
  156. package/renderers/line/line-accessors.d.ts +0 -37
  157. package/renderers/line/line-renderer.d.ts +0 -46
  158. package/renderers/line/missing-data-line-renderer-config.d.ts +0 -8
  159. package/renderers/line/public-api.d.ts +0 -5
  160. package/renderers/marker-utils.d.ts +0 -21
  161. package/renderers/noop-renderer.d.ts +0 -19
  162. package/renderers/public-api.d.ts +0 -10
  163. package/renderers/radial/accessors/radial-accessors.d.ts +0 -22
  164. package/renderers/radial/gauge/donut-gauge-renderer-config.d.ts +0 -7
  165. package/renderers/radial/gauge/donut-gauge-rendering-util.d.ts +0 -6
  166. package/renderers/radial/gauge/donut-gauge-thresholds-renderer.d.ts +0 -24
  167. package/renderers/radial/pie-renderer.d.ts +0 -8
  168. package/renderers/radial/public-api.d.ts +0 -9
  169. package/renderers/radial/radial-grid-fn.d.ts +0 -2
  170. package/renderers/radial/radial-preprocessor.d.ts +0 -12
  171. package/renderers/radial/radial-renderer.d.ts +0 -33
  172. package/renderers/radial/radial-scales.d.ts +0 -5
  173. package/renderers/side-indicator-renderer.d.ts +0 -55
  174. package/renderers/types.d.ts +0 -99
  175. package/renderers/xy-renderer.d.ts +0 -15
  176. package/thresholds/public-api.d.ts +0 -4
  177. package/thresholds/thresholds-service.d.ts +0 -114
  178. package/thresholds/thresholds-summary-grid-config.d.ts +0 -7
  179. package/thresholds/thresholds-top-grid-config.d.ts +0 -7
  180. package/thresholds/types.d.ts +0 -21
package/package.json CHANGED
@@ -14,6 +14,14 @@
14
14
  "types": "./sdk/atoms/*.d.ts",
15
15
  "default": "./sdk/atoms/*.js"
16
16
  },
17
+ "./sdk/atoms-playwright": {
18
+ "types": "./sdk/atmos/index.d.ts",
19
+ "default": "./sdk/atoms-playwright/index.js"
20
+ },
21
+ "./sdk/atoms-playwright/*": {
22
+ "types": "./sdk/atoms-playwright/*.d.ts",
23
+ "default": "./sdk/atoms-playwright/*.js"
24
+ },
17
25
  "./sdk/*": {
18
26
  "default": "./sdk/*"
19
27
  },
@@ -35,7 +43,7 @@
35
43
  "license": "Apache-2.0",
36
44
  "name": "@nova-ui/charts",
37
45
  "dependencies": {
38
- "@nova-ui/bits": "~19.0.2",
46
+ "@nova-ui/bits": "~20.0.3",
39
47
  "tslib": "^2.3.0"
40
48
  },
41
49
  "peerDependencies": {
@@ -50,7 +58,7 @@
50
58
  "type": "git",
51
59
  "url": "https://github.com/solarwinds/nova.git"
52
60
  },
53
- "version": "19.0.2",
61
+ "version": "20.0.3",
54
62
  "module": "fesm2022/nova-ui-charts.mjs",
55
63
  "typings": "index.d.ts",
56
64
  "sideEffects": false
@@ -1,22 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
- import { IChart, IChartComponent } from "../core/common/types";
3
- import * as i0 from "@angular/core";
4
- export declare class ChartComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy, IChartComponent, OnChanges {
5
- private elRef;
6
- private ngZone;
7
- private cd;
8
- chart: IChart;
9
- resizeObserver?: ResizeObserver;
10
- private resizeHandler;
11
- private intersectionObserver;
12
- constructor(elRef: ElementRef, ngZone: NgZone, cd: ChangeDetectorRef);
13
- ngOnInit(): void;
14
- ngOnChanges(changes: SimpleChanges): void;
15
- ngAfterContentInit(): void;
16
- ngAfterViewInit(): void;
17
- ngOnDestroy(): void;
18
- redraw: () => void;
19
- private intersectionObserverCallback;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "nui-chart", never, { "chart": { "alias": "chart"; "required": false; }; }, {}, never, never, false, never>;
22
- }
@@ -1,19 +0,0 @@
1
- import { OnChanges, SimpleChanges } from "@angular/core";
2
- import { ChartCollectionService } from "./chart-collection.service";
3
- import { IChartComponent } from "../core/common/types";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * This directive represents a grouping behavior that is separated from chart components. Any chart component
7
- * registering the CHART_COMPONENT provider can be injected into this.
8
- *
9
- * A group of charts with the same associated chart collection id will share events broadcasted through their event buses.
10
- */
11
- export declare class ChartCollectionIdDirective implements OnChanges {
12
- private chartComponent;
13
- private chartCollectionService;
14
- collectionId: string;
15
- constructor(chartComponent: IChartComponent, chartCollectionService: ChartCollectionService);
16
- ngOnChanges(changes: SimpleChanges): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartCollectionIdDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChartCollectionIdDirective, "[nuiChartCollectionId]", never, { "collectionId": { "alias": "nuiChartCollectionId"; "required": false; }; }, {}, never, never, false, never>;
19
- }
@@ -1,11 +0,0 @@
1
- import { ChartCollection } from "../core/chart-collection";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * This service registers collections of charts identified by given id. It is used primarily by the ChartCollectionId directive.
5
- */
6
- export declare class ChartCollectionService {
7
- private collections;
8
- getChartCollection(collectionId: string): ChartCollection;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartCollectionService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<ChartCollectionService>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from "./chart-collection-id.directive";
2
- export * from "./chart-collection.service";
@@ -1,15 +0,0 @@
1
- import { OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
- import { ChartDonutContentPlugin } from "../core/plugins/chart-donut-content-plugin";
3
- import { IElementPosition } from "../core/plugins/types";
4
- import * as i0 from "@angular/core";
5
- export declare class ChartDonutContentComponent implements OnDestroy, OnChanges {
6
- /** The plugin instance */
7
- plugin: ChartDonutContentPlugin;
8
- /** The current content position */
9
- contentPosition: IElementPosition;
10
- private contentPositionUpdateSubscription;
11
- ngOnChanges(changes: SimpleChanges): void;
12
- ngOnDestroy(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartDonutContentComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartDonutContentComponent, "nui-chart-donut-content", never, { "plugin": { "alias": "plugin"; "required": false; }; }, {}, never, ["*"], false, never>;
15
- }
@@ -1,22 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
- import { IChartMarker } from "../core/common/types";
3
- import * as i0 from "@angular/core";
4
- export declare class ChartMarkerComponent implements OnDestroy, AfterViewInit, OnChanges {
5
- private changeDetector;
6
- marker: IChartMarker;
7
- drawLine: boolean;
8
- color: string;
9
- maxSize: number;
10
- svgContent: ElementRef<SVGElement>;
11
- viewBox: string;
12
- height: string;
13
- width: string;
14
- private svg;
15
- constructor(changeDetector: ChangeDetectorRef);
16
- ngAfterViewInit(): void;
17
- ngOnChanges(changes: SimpleChanges): void;
18
- ngOnDestroy(): void;
19
- private renderMarkerSvg;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartMarkerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartMarkerComponent, "nui-chart-marker", never, { "marker": { "alias": "marker"; "required": false; }; "drawLine": { "alias": "drawLine"; "required": false; }; "color": { "alias": "color"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, {}, never, never, false, never>;
22
- }
@@ -1,22 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
2
- import { PopoverComponent } from "@nova-ui/bits";
3
- import { IDataPointsPayload } from "../core/common/types";
4
- import { ChartPopoverPlugin } from "../core/plugins/chart-popover-plugin";
5
- import * as i0 from "@angular/core";
6
- export declare class ChartPopoverComponent implements OnChanges, OnInit, OnDestroy {
7
- private changeDetector;
8
- element: ElementRef;
9
- plugin: ChartPopoverPlugin;
10
- template: TemplateRef<any>;
11
- update: EventEmitter<IDataPointsPayload>;
12
- popover: PopoverComponent;
13
- private readonly destroy$;
14
- private initPlugin$;
15
- constructor(changeDetector: ChangeDetectorRef, element: ElementRef);
16
- ngOnChanges(changes: SimpleChanges): void;
17
- ngOnInit(): void;
18
- ngOnDestroy(): void;
19
- private initPlugin;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartPopoverComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartPopoverComponent, "nui-chart-popover", never, { "plugin": { "alias": "plugin"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, { "update": "update"; }, never, never, false, never>;
22
- }
@@ -1,7 +0,0 @@
1
- import { TemplateRef } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class ChartTooltipComponent {
4
- template: TemplateRef<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartTooltipComponent, "nui-chart-tooltip", never, { "template": { "alias": "template"; "required": false; }; }, {}, never, never, false, never>;
7
- }
@@ -1,28 +0,0 @@
1
- import { Overlay, OverlayPositionBuilder, ScrollStrategyOptions } from "@angular/cdk/overlay";
2
- import { ConnectedPosition } from "@angular/cdk/overlay";
3
- import { ElementRef, OnDestroy, OnInit, TemplateRef } from "@angular/core";
4
- import { Subject } from "rxjs";
5
- import * as i0 from "@angular/core";
6
- /** @ignore */
7
- export declare class ChartTooltipDirective implements OnInit, OnDestroy {
8
- private overlay;
9
- private overlayPositionBuilder;
10
- private scrollStrategyOptions;
11
- elementRef: ElementRef<HTMLElement>;
12
- template: TemplateRef<any>;
13
- openRemoteControl: Subject<void>;
14
- closeRemoteControl: Subject<void>;
15
- positions: ConnectedPosition[];
16
- private overlayRef;
17
- private openSubscription;
18
- private closeSubscription;
19
- private positionStrategy;
20
- constructor(overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, scrollStrategyOptions: ScrollStrategyOptions, elementRef: ElementRef<HTMLElement>);
21
- ngOnInit(): void;
22
- show(): void;
23
- hide(): void;
24
- ngOnDestroy(): void;
25
- getOverlayElement(): HTMLElement;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChartTooltipDirective, "[nuiChartTooltip]", never, { "template": { "alias": "template"; "required": false; }; "openRemoteControl": { "alias": "openRemoteControl"; "required": false; }; "closeRemoteControl": { "alias": "closeRemoteControl"; "required": false; }; "positions": { "alias": "positions"; "required": false; }; }, {}, never, never, false, never>;
28
- }
@@ -1,41 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, QueryList, SimpleChanges } from "@angular/core";
2
- import { Subject } from "rxjs";
3
- import { ChartTooltipDirective } from "./chart-tooltip.directive";
4
- import { ChartTooltipsPlugin } from "../core/plugins/tooltips/chart-tooltips-plugin";
5
- import * as i0 from "@angular/core";
6
- export declare class ChartTooltipsComponent implements OnChanges, OnDestroy {
7
- private changeDetector;
8
- plugin: ChartTooltipsPlugin;
9
- template: ElementRef;
10
- tooltips: QueryList<ChartTooltipDirective>;
11
- openTooltips: Subject<void>;
12
- closeTooltips: Subject<void>;
13
- private unsubscribe$;
14
- private simulation;
15
- private tooltipDirectivesIndex;
16
- private closePending;
17
- private isOpen;
18
- private openTimeout;
19
- private collisionTimeout;
20
- private closeTimeout;
21
- constructor(changeDetector: ChangeDetectorRef);
22
- ngOnChanges(changes: SimpleChanges): void;
23
- ngOnDestroy(): void;
24
- trackByFn(index: number, item: any): string | undefined;
25
- private handleOpen;
26
- private handleClose;
27
- /**
28
- * Runs the D3 forceCollide based tooltip collision avoidance algorithm
29
- */
30
- private avoidTooltipCollisions;
31
- /**
32
- * Starts the force simulation to avoid tooltip overlap
33
- *
34
- * @param tooltipIndex
35
- * @param tooltipPositions
36
- */
37
- private startSimulation;
38
- private isVertical;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipsComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartTooltipsComponent, "nui-chart-tooltips", never, { "plugin": { "alias": "plugin"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, false, never>;
41
- }
@@ -1,21 +0,0 @@
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";
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>;
21
- }
package/constants.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import { InjectionToken } from "@angular/core";
2
- import { IChartComponent, ILasagnaLayer } from "./core/common/types";
3
- export declare const MOUSE_ACTIVE_EVENT = "mouse_active";
4
- export declare const INTERACTION_VALUES_ACTIVE_EVENT = "interaction_values_active";
5
- export declare const INTERACTION_VALUES_EVENT = "interaction_values";
6
- export declare const INTERACTION_COORDINATES_EVENT = "interaction_coordinates";
7
- export declare const HIGHLIGHT_DATA_POINT_EVENT = "highlight_data_point";
8
- export declare const SELECT_DATA_POINT_EVENT = "select_data_point";
9
- export declare const HIGHLIGHT_SERIES_EVENT = "highlight_series";
10
- export declare const INTERACTION_SERIES_EVENT = "interaction_series";
11
- export declare const INTERACTION_DATA_POINTS_EVENT = "interaction_data_points";
12
- export declare const INTERACTION_DATA_POINT_EVENT = "interaction_data_point";
13
- export declare const DESTROY_EVENT = "destroy";
14
- export declare const SET_DOMAIN_EVENT = "set_domain";
15
- export declare const REFRESH_EVENT = "refresh";
16
- export declare const CHART_VIEW_STATUS_EVENT = "chart_view_status";
17
- export declare const SERIES_STATE_CHANGE_EVENT = "series_state_change";
18
- export declare const AXES_STYLE_CHANGE_EVENT = "axes_style_change";
19
- /** @ignore */
20
- export declare const CHART_COMPONENT: InjectionToken<IChartComponent>;
21
- /** @ignore */
22
- export declare const STANDARD_RENDER_LAYERS: {
23
- [name: string]: ILasagnaLayer;
24
- };
25
- /** @ignore */
26
- export declare const DATA_POINT_NOT_FOUND = -1;
27
- /** @ignore */
28
- export declare const DATA_POINT_INTERACTION_RESET = -2;
29
- /** Use this class to prevent DOM elements from triggering mouse-interactive-area events */
30
- export declare const IGNORE_INTERACTION_CLASS = "ignore-interaction";
@@ -1,120 +0,0 @@
1
- import { Observable, Subject } from "rxjs";
2
- import { IChartAssist, IChartAssistEvent, IRenderStatesIndex } from "./types";
3
- import { RenderState } from "../../renderers/types";
4
- import { IAccessors, IChart, IChartAssistSeries, IChartEvent, IChartMarker, IChartPalette, IChartSeries, IDataPointsPayload, IRenderStateData, IValueProvider } from "../common/types";
5
- /**
6
- * Helper class that helps to bootstrap a chart with legend, using data pre-processor.
7
- * It will use the most common settings.
8
- */
9
- export declare class ChartAssist<T extends IAccessors = IAccessors> implements IChartAssist {
10
- chart: IChart;
11
- palette: IChartPalette;
12
- markers: IValueProvider<IChartMarker>;
13
- /**
14
- * Retrieves the display value for a data point on the specified series
15
- *
16
- * @param chartSeries The series containing the data point to get a label for
17
- * @param dataPoint The data point to get a label for
18
- * @param scaleKey The key for the scale potentially containing a formatter that can be used to format the label
19
- * @param formatterName The name of the formatter to use for formatting the label
20
- * @param dataAccessorKey The accessor key to use for accessing the data value if the accessor key differs from the scale key
21
- *
22
- * @returns The display value for a data point
23
- */
24
- static getLabel(chartSeries: IChartSeries<IAccessors>, dataPoint: any, scaleKey: string, formatterName?: string, dataAccessorKey?: string): any;
25
- highlightedDataPoints: IDataPointsPayload;
26
- isLegendActive: boolean;
27
- inputSeriesSet: IChartAssistSeries<IAccessors>[];
28
- legendSeriesSet: IChartAssistSeries<IAccessors>[];
29
- /**
30
- * Subject for subscribing to IChartAssistEvents such as
31
- * ToggleSeries, EmphasizeSeries, and ResetVisibleSeries
32
- */
33
- chartAssistSubject: Subject<IChartAssistEvent>;
34
- private syncHandlerMap;
35
- private getVisibleSeriesWithLegendBackup;
36
- private syncSubscription;
37
- private legendInteractionAssist;
38
- onEvent: (event: IChartEvent) => void;
39
- constructor(chart: IChart, seriesProcessor?: (series: IChartAssistSeries<T>[]) => IChartAssistSeries<T>[], palette?: IChartPalette, markers?: IValueProvider<IChartMarker>);
40
- get renderStatesIndex(): IRenderStatesIndex;
41
- /**
42
- * Convenience stream of highlight events that can be used to populate legend.
43
- * It will return highlighted value for the series (while hovering over datapoints) or the last value from series (while not hovering over and if possible),
44
- * otherwise it'll return null
45
- * @param chartSeries
46
- */
47
- legendLabelData$(chartSeries: IChartSeries<IAccessors>): Observable<any>;
48
- seriesProcessor(series: IChartAssistSeries<IAccessors>[]): IChartAssistSeries<IAccessors>[];
49
- update(inputSeriesSet: IChartAssistSeries<IAccessors>[], updateLegend?: boolean): void;
50
- toggleSeries: (seriesId: string, visible: boolean) => void;
51
- /**
52
- * Resets all visible series to default state
53
- */
54
- resetVisibleSeries: () => void;
55
- /**
56
- * For series that are currently visible, emphasize the given series and deemphasizes all the other ones
57
- *
58
- * @param seriesId
59
- */
60
- emphasizeSeries: (seriesId: string) => void;
61
- isSeriesHidden(seriesId: string): boolean;
62
- seriesTrackByFn(index: number, item: IChartAssistSeries<IAccessors>): string;
63
- /**
64
- * Retrieves the display value for the highlighted data point on the specified series
65
- *
66
- * @param chartSeries The series containing the highlighted data point to get a label for
67
- * @param scaleKey The key for the scale potentially containing a formatter that can be used to format the label
68
- * @param formatterName The name of the formatter to use for formatting the label
69
- * @param dataAccessorKey The accessor key to use for accessing the data value if the accessor key differs from the scale key
70
- *
71
- * @returns The display value for the highlighted data point
72
- */
73
- getHighlightedValue(chartSeries: IChartSeries<IAccessors>, scaleKey: string, formatterName?: string, dataAccessorKey?: string): string | number | undefined;
74
- getVisibleSeriesWithLegend: () => IChartAssistSeries<IAccessors<any>>[];
75
- /**
76
- * Synchronize this chart assist's actions with IChartAssistEvents emitted by the specified
77
- * chart assist, and override this chart assist's getVisibleSeriesWithLegend method with the
78
- * specified chart assist's getVisibleSeriesWithLegend.
79
- *
80
- * Note: If the chart instance of the specified chart assist is replaced by a new chart,
81
- * this method must be invoked again to resume synchronized behavior.
82
- *
83
- * @param {ChartAssist} chartAssist The chart assist to synchronize with
84
- */
85
- syncWithChartAssist(chartAssist: ChartAssist): void;
86
- /**
87
- * Unsynchronize this chart assist's actions from those of the chart assist
88
- * specified in a previous syncWithChartAssist call, and restore this chart
89
- * assist's getVisibleSeriesWithLegend method with the instance used before
90
- * syncWithChartAssist was called.
91
- */
92
- unsyncChartAssist(): void;
93
- private configureChartEventSubscriptions;
94
- private publishRenderStates;
95
- }
96
- export declare class LegendInteractionAssist {
97
- private chartAssist;
98
- private seriesGroups;
99
- private seriesIndex;
100
- renderStatesIndex: IRenderStatesIndex;
101
- constructor(chartAssist: ChartAssist);
102
- update(seriesSet: IChartAssistSeries<IAccessors>[]): void;
103
- getSeriesStates(): IRenderStateData[];
104
- isSeriesHidden(seriesId: string): boolean;
105
- private getSeriesGroups;
106
- /**
107
- * @param groupId id of the parent series
108
- * @param renderState
109
- */
110
- setGroupState(groupId: string, renderState: RenderState): void;
111
- /**
112
- * @param groupId id of the parent series
113
- * @param visible
114
- */
115
- setGroupVisibility(groupId: string, visible: boolean): void;
116
- emphasizeSeries(seriesId: string): void;
117
- resetSeries(): void;
118
- private setRenderState;
119
- private setVisibility;
120
- }
@@ -1,3 +0,0 @@
1
- export * from "./chart-assist";
2
- export * from "./spark-chart-assist";
3
- export * from "./types";
@@ -1,49 +0,0 @@
1
- import { XYGridConfig } from "../../core/grid/config/xy-grid-config";
2
- import { RenderState } from "../../renderers/types";
3
- import { Chart } from "../chart";
4
- import { IChartAssist, ISpark } from "./types";
5
- import { IAccessors, IChartAssistSeries, IChartMarker, IChartPalette, IChartSeries, IDataPointsPayload, IValueProvider } from "../common/types";
6
- /**
7
- * Chart assist implementation to be used with spark charts
8
- */
9
- export declare class SparkChartAssist implements IChartAssist {
10
- readonly showBottomAxis: boolean;
11
- readonly showTopBorder: boolean;
12
- palette: IChartPalette;
13
- markers: IValueProvider<IChartMarker>;
14
- /** Collection of ISpark objects */
15
- sparks: ISpark<IAccessors>[];
16
- /** Used for keeping tabs on the legend's active state */
17
- isLegendActive: boolean;
18
- /** Grid config for all sparks except the last (bottom) one */
19
- readonly gridConfig: XYGridConfig;
20
- /** Grid config for the last (bottom) spark */
21
- readonly lastGridConfig: XYGridConfig;
22
- highlightedDataPoints: IDataPointsPayload;
23
- constructor(showBottomAxis?: boolean, showTopBorder?: boolean, palette?: IChartPalette, markers?: IValueProvider<IChartMarker>);
24
- /**
25
- * Use this method to update the set of sparks if they all consist of only one series.
26
- * If one or more sparks has multiple series use the updateSparks method instead.
27
- *
28
- * See {@link IChartAssist#update}
29
- */
30
- update(inputSeriesSet: IChartAssistSeries<IAccessors>[]): void;
31
- /**
32
- * Use this method to update the set of sparks if any of them consist of more than one series.
33
- *
34
- * @param {ISpark<IAccessors>[]} sparks The collection of sparks to update
35
- */
36
- updateSparks(sparks: ISpark<IAccessors>[]): void;
37
- /** See {@link IChartAssist#getHighlightedValue} */
38
- getHighlightedValue(chartSeries: IChartSeries<IAccessors>, scaleKey: string, formatterName?: string): string | number;
39
- /**
40
- * To use the for-cycle trackBy, set the id value on each spark
41
- * and assign this function to the ngFor trackBy property
42
- */
43
- trackByFn(_index: number, spark: ISpark<IAccessors>): string | undefined;
44
- setRenderState(_seriesId: string, _state: RenderState): void;
45
- getVisibleSeriesWithLegend(): IChartAssistSeries<IAccessors>[];
46
- protected createChart(lastSpark: boolean): Chart;
47
- private configureEventSubscriptions;
48
- private reconfigureChart;
49
- }
@@ -1,59 +0,0 @@
1
- import { RenderState } from "../../renderers/types";
2
- import { IAccessors, IChart, IChartAssistSeries, IChartSeries, IRenderStateData } from "../common/types";
3
- /**
4
- * Interface representing the spark chart assist's
5
- * association between one of its charts and a series set
6
- */
7
- export interface ISpark<TA extends IAccessors> {
8
- chartSeriesSet: IChartAssistSeries<TA>[];
9
- id?: string;
10
- chart?: IChart;
11
- }
12
- /**
13
- * Interface representing an assistant that aids in chart usage
14
- */
15
- export interface IChartAssist {
16
- /**
17
- * Updates the series set for the chart assist's associated chart
18
- *
19
- * @param inputSeriesSet The updated set of series
20
- */
21
- update(inputSeriesSet: IChartAssistSeries<IAccessors>[]): void;
22
- /**
23
- * Gets the current highlighted value for the specified series
24
- *
25
- * @param {IChartSeries<IAccessors>} chartSeries The chart series to get the highlighted value for
26
- * @param {string} scaleKey The key for the datapoint value scale
27
- * @param {string} [formatterName] The name of the formatter if a custom formatter name is set on the scale
28
- *
29
- * @returns {string} The highlighted value
30
- */
31
- getHighlightedValue(chartSeries: IChartSeries<IAccessors>, scaleKey: string, formatterName?: string): string | number | undefined;
32
- /**
33
- * Returns visible series that are represented by a legend
34
- */
35
- getVisibleSeriesWithLegend(): IChartAssistSeries<IAccessors>[];
36
- }
37
- /** Event types that can be emitted from a chart assist */
38
- export declare enum ChartAssistEventType {
39
- ToggleSeries = "ToggleSeries",
40
- ResetVisibleSeries = "ResetVisibleSeries",
41
- EmphasizeSeries = "EmphasizeSeries"
42
- }
43
- /** Interface for chart assist events */
44
- export interface IChartAssistEvent {
45
- type: ChartAssistEventType;
46
- payload: any;
47
- }
48
- /**
49
- * Legend interaction assist uses this class to present the state that consists of emphasisState+visible as one state
50
- */
51
- export declare class ChartAssistRenderStateData implements IRenderStateData {
52
- seriesId: string;
53
- series: IChartAssistSeries<IAccessors>;
54
- emphasisState: RenderState;
55
- visible: boolean;
56
- constructor(seriesId: string, series: IChartAssistSeries<IAccessors>, emphasisState?: RenderState, visible?: boolean);
57
- get state(): RenderState;
58
- }
59
- export type IRenderStatesIndex = Record<string, ChartAssistRenderStateData>;
@@ -1,51 +0,0 @@
1
- import { IChart } from "./common/types";
2
- /**
3
- * @ignore
4
- *
5
- * Chart collection takes care of charts grouping and rebroadcasting selected events coming from one charts to other charts
6
- */
7
- export declare class ChartCollection {
8
- lastIndex: number;
9
- /**
10
- * These events will be rebroadcasted to other charts in the collection
11
- *
12
- * @type {[string]}
13
- */
14
- events: string[];
15
- private charts;
16
- private subscriptions;
17
- private eventBus?;
18
- constructor();
19
- /**
20
- * Register chart in this collection and subscribe to all configured events
21
- *
22
- * @param {IChart} chart
23
- */
24
- addChart(chart: IChart): void;
25
- /**
26
- * Removed chart from the collection and unsubscribes all related subscriptions
27
- *
28
- * @param {IChart} chart
29
- */
30
- removeChart(chart: IChart): void;
31
- /**
32
- * Destroy this collection and release related resources
33
- */
34
- destroy(): void;
35
- private initializeEventBus;
36
- /**
37
- * Register subscription for given chart key on given observable
38
- *
39
- * @param {string} chartKey
40
- * @param {Observable<any>} observable
41
- * @param {(value: any) => void} next
42
- */
43
- private subscribe;
44
- /**
45
- * Unsubscribes subscriptions that belong to given chart key
46
- *
47
- * @param {string} chartKey
48
- */
49
- private unsubscribeChart;
50
- private getChartKey;
51
- }
package/core/chart.d.ts DELETED
@@ -1,46 +0,0 @@
1
- import { Selection } from "d3-selection";
2
- import { ChartPlugin } from "./common/chart-plugin";
3
- import { DataManager } from "./common/data-manager";
4
- import { EventBus } from "./common/event-bus";
5
- import { Lasagna } from "./common/lasagna";
6
- import { RenderEngine } from "./common/render-engine";
7
- import { D3Selection, IAccessors, IChart, IChartConfiguration, IChartEvent, IChartPlugin, IChartSeries, IRenderStateData } from "./common/types";
8
- import { IGrid } from "./grid/types";
9
- export declare class Chart implements IChart {
10
- private grid;
11
- configuration?: IChartConfiguration | undefined;
12
- readonly eventBus: EventBus<IChartEvent<any>>;
13
- element: HTMLElement;
14
- target?: D3Selection<SVGSVGElement>;
15
- filterDefs?: Selection<SVGDefsElement, any, SVGElement, any>;
16
- private dataManager;
17
- private renderEngine;
18
- private updateSubject;
19
- private updateDimensionsSubject;
20
- private seriesStatesSubject;
21
- private plugins;
22
- constructor(grid: IGrid, configuration?: IChartConfiguration | undefined);
23
- getEventBus(): EventBus<IChartEvent>;
24
- getDataManager(): DataManager;
25
- getRenderEngine(): RenderEngine;
26
- getGrid(): IGrid;
27
- addPlugin(plugin: IChartPlugin): void;
28
- removePlugin(classRef: typeof ChartPlugin): void;
29
- addPlugins(...plugins: IChartPlugin[]): void;
30
- removePlugins(...classRefs: (typeof ChartPlugin)[]): void;
31
- hasPlugin(classRef: typeof ChartPlugin): boolean;
32
- build(element: HTMLElement): void;
33
- private configureCssFilters;
34
- protected buildDataManager(): DataManager;
35
- protected buildGrid(): void;
36
- protected buildRenderEngine(lasagna: Lasagna, dataManager: DataManager): RenderEngine;
37
- update(seriesSet: IChartSeries<IAccessors>[]): void;
38
- updateDimensions(): void;
39
- initialize(): void;
40
- destroy(): void;
41
- setSeriesStates(renderStateData: IRenderStateData[]): void;
42
- private onUpdate;
43
- private onUpdateDimensions;
44
- private updateTargetDimensions;
45
- private onSetSeriesStates;
46
- }
@@ -1,9 +0,0 @@
1
- import { IChart, IChartPlugin } from "./types";
2
- export declare abstract class ChartPlugin implements IChartPlugin {
3
- constructor();
4
- chart: IChart;
5
- initialize(): void;
6
- update(): void;
7
- updateDimensions(): void;
8
- destroy(): void;
9
- }