@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
@@ -1,161 +0,0 @@
1
- import { GaugeMode } from "./constants";
2
- import { IGaugeConfig, IGaugeThresholdDatum, IGaugeThresholdsData, IGaugeThresholdsConfig } from "./types";
3
- import { ChartAssist } from "../core/chart-assists/chart-assist";
4
- import { Renderer } from "../core/common/renderer";
5
- import { IRadialScales, Scales } from "../core/common/scales/types";
6
- import { IAccessors, IChartAssistSeries, IDataSeries } from "../core/common/types";
7
- import { IAllAround } from "../core/grid/types";
8
- import { DonutGaugeLabelsPlugin } from "../core/plugins/gauge/donut-gauge-labels-plugin";
9
- import { LinearGaugeLabelsPlugin } from "../core/plugins/gauge/linear-gauge-labels-plugin";
10
- /**
11
- * @ignore
12
- * Attributes needed by a gauge
13
- */
14
- export interface IGaugeRenderingAttributes {
15
- /** Accessors for the gauge quantity segment */
16
- quantityAccessors: IAccessors;
17
- /** Accessors for the gauge remainder segment */
18
- remainderAccessors: IAccessors;
19
- /** Scales for the gauge */
20
- scales: Scales;
21
- /** Renderer for the primary gauge visualization */
22
- mainRenderer: Renderer<IAccessors>;
23
- /** Renderer for the gauge threshold visualization */
24
- thresholdsRenderer: Renderer<IAccessors>;
25
- }
26
- /**
27
- * @ignore
28
- * Interface for an object that can be used to create the rendering attributes needed by a gauge
29
- */
30
- export interface IGaugeRenderingTools {
31
- /** Function for creating quantity accessors */
32
- quantityAccessorFunction: () => IAccessors;
33
- /** Function for creating remainder accessors */
34
- remainderAccessorFunction: () => IAccessors;
35
- /** Function for creating scales */
36
- scaleFunction: () => Scales | IRadialScales;
37
- /** Function for creating a main renderer */
38
- mainRendererFunction: () => Renderer<IAccessors>;
39
- /** Function for creating a thresholds renderer */
40
- thresholdsRendererFunction: () => Renderer<IAccessors>;
41
- }
42
- /**
43
- * Convenience utility for simplifying gauge usage
44
- */
45
- export declare class GaugeUtil {
46
- /** Value used for unifying the linear-style gauge visualization into a single bar stack */
47
- static readonly DATA_CATEGORY = "gauge";
48
- /**
49
- * Creates a ChartAssist pre-configured based on the provided IGaugeConfig and GaugeMode
50
- *
51
- * @param gaugeConfig The gauge configuration
52
- * @param mode The gauge mode
53
- * @param labelsPlugin Optional labels plugin for direct control of label configuration. If not provided, a plugin will
54
- * be generated automatically.
55
- *
56
- * @returns {ChartAssist} A pre-configured chart assist
57
- */
58
- static createChartAssist(gaugeConfig: IGaugeConfig, mode: GaugeMode, labelsPlugin?: DonutGaugeLabelsPlugin | LinearGaugeLabelsPlugin): ChartAssist;
59
- /**
60
- * Assembles a gauge series set with all of the standard scales, renderers, accessors, etc. needed for creating a gauge visualization
61
- *
62
- * @param gaugeConfig The configuration for the gauge
63
- * @param mode The mode of the gauge (Donut, Horizontal, or Vertical)
64
- *
65
- * @returns {IChartAssistSeries<IAccessors>[]} The assembled series set
66
- */
67
- static assembleSeriesSet(gaugeConfig: IGaugeConfig, mode: GaugeMode): IChartAssistSeries<IAccessors>[];
68
- /**
69
- * Updates the series set based on the provided configuration
70
- *
71
- * @param seriesSet The set of series to update
72
- * @param gaugeConfig The configuration for the gauge
73
- *
74
- * @returns {IChartAssistSeries<IAccessors>[]} The updated series set
75
- */
76
- static update(seriesSet: IChartAssistSeries<IAccessors>[], gaugeConfig: IGaugeConfig): IChartAssistSeries<IAccessors>[];
77
- /**
78
- * Convenience function for creating a standard standard set of threshold configs. Includes configurations for warning and error thresholds.
79
- *
80
- * @param warningVal Value for the warning threshold
81
- * @param criticalVal Value for the critical threshold
82
- *
83
- * @returns {IGaugeThresholdsConfig} The thresholds configuration
84
- */
85
- static createStandardThresholdsConfig(warningVal: number, criticalVal: number): IGaugeThresholdsConfig;
86
- /**
87
- * Gets a new instance of the provided grid margin with updated values (if needed) to accommodate the label clearance specified
88
- * in the provided gauge configuration
89
- *
90
- * @param gaugeConfig The gauge's configuration
91
- * @param mode The mode of the gauge
92
- * @param margin The margin to update
93
- *
94
- * @returns {IAllAround<number>} The updated margin
95
- */
96
- static getMarginForLabelClearance(gaugeConfig: IGaugeConfig, mode: GaugeMode, margin: IAllAround<number>): IAllAround<number>;
97
- /**
98
- * Generates a set of chart series used for visualizing the gauge's quantity and remainder data
99
- *
100
- * @param gaugeConfig The configuration for the gauge
101
- * @param renderingAttributes The attributes needed to visualized the thresholds
102
- * @param activeThreshold The currently active threshold
103
- *
104
- * @returns {IChartAssistSeries<IAccessors<any>>[]} A set of chart series representing the quantity and remainder data
105
- */
106
- static generateQuantityAndRemainderSeriesSet(gaugeConfig: IGaugeConfig, renderingAttributes: IGaugeRenderingAttributes, activeThreshold?: IGaugeThresholdDatum): IChartAssistSeries<IAccessors<any>>[];
107
- /**
108
- * Generates a series for visualizing the gauge's thresholds
109
- *
110
- * @param gaugeConfig The configuration for the gauge
111
- * @param renderingAttributes The attributes needed to visualized the thresholds
112
- *
113
- * @returns {IChartAssistSeries<IAccessors>} The threshold series
114
- */
115
- static generateThresholdSeries(gaugeConfig: IGaugeConfig, renderingAttributes: IGaugeRenderingAttributes): IChartAssistSeries<IAccessors>;
116
- /**
117
- * Generates the attributes required to instantiate a standard gauge in the specified mode
118
- *
119
- * @param gaugeConfig The configuration for the gauge
120
- * @param mode The mode of the gauge (Donut, Horizontal, or Vertical)
121
- *
122
- * @returns {IGaugeRenderingAttributes} The attributes required to instantiate a gauge
123
- */
124
- static generateRenderingAttributes(gaugeConfig: IGaugeConfig, mode: GaugeMode): IGaugeRenderingAttributes;
125
- /**
126
- * Generates rendering tools for standard gauge attributes
127
- *
128
- * @param gaugeConfig The configuration for the gauge
129
- * @param mode The mode of the gauge (Donut, Horizontal, or Vertical)
130
- *
131
- * @returns {IGaugeRenderingTools} The rendering tools for standard gauge attributes
132
- */
133
- static generateRenderingTools(gaugeConfig: IGaugeConfig, mode: GaugeMode): IGaugeRenderingTools;
134
- /**
135
- * Generates quantity and remainder data in the format needed by the gauge visualization
136
- *
137
- * @param gaugeConfig The configuration for the gauge
138
- *
139
- * @returns {Partial<IDataSeries<IAccessors>>[]} Array of partial IDataSeries objects including the 'id' and 'data' properties of the quantity and remainder
140
- * series needed by the gauge visualization
141
- */
142
- static generateQuantityAndRemainderData(gaugeConfig: IGaugeConfig): Partial<IDataSeries<IAccessors>>[];
143
- /**
144
- * Generates threshold data in the form needed by the gauge's thresholds visualization
145
- *
146
- * @param gaugeConfig The configuration for the gauge
147
- *
148
- * @returns {Partial<IDataSeries<IAccessors, IGaugeThresholdDatum>>} A partial IDataSeries object including the 'id' and 'data' properties of the thresholds
149
- * series used for the the gauge's thresholds visualization
150
- */
151
- static generateThresholdsData(gaugeConfig: IGaugeConfig): Partial<IDataSeries<IAccessors, IGaugeThresholdDatum>>;
152
- /**
153
- * Generates visualization-specific thresholds data based on the gauge's configuration
154
- *
155
- * @param gaugeConfig The gauge configuration
156
- *
157
- * @returns {IGaugeThresholdsData} Thresholds data modified for use by the gauge visualization
158
- */
159
- static prepareThresholdsData(gaugeConfig: IGaugeConfig): IGaugeThresholdsData;
160
- private static clampConfigToRange;
161
- }
@@ -1,3 +0,0 @@
1
- export * from "./constants";
2
- export * from "./gauge-util";
3
- export * from "./types";
package/gauge/types.d.ts DELETED
@@ -1,89 +0,0 @@
1
- import { Formatter } from "../core/common/scales/types";
2
- /**
3
- * Configuration for a gauge
4
- */
5
- export interface IGaugeConfig {
6
- /** The value of the gauge */
7
- value: number;
8
- /** The max value of the gauge */
9
- max: number;
10
- /** Optional threshold configuration */
11
- thresholds?: IGaugeThresholdsConfig;
12
- /** Optional configuration for value labels (currently only used for thresholds) */
13
- labels?: IGaugeLabelsConfig;
14
- /** The color to display for the quantity when no threshold is active */
15
- defaultQuantityColor?: string;
16
- /** The color to display for the unfilled segment */
17
- remainderColor?: string;
18
- /** Used for linear gauges; sets the thickness of the bar. */
19
- linearThickness?: number;
20
- }
21
- /**
22
- * Configuration for a gauge's thresholds
23
- */
24
- export interface IGaugeThresholdsConfig {
25
- /** An array of the gauge's threshold definitions */
26
- definitions: GaugeThresholdDefs;
27
- /** Set to true to disable the threshold markers */
28
- disableMarkers?: boolean;
29
- /** The radius of the threshold marker dots */
30
- markerRadius?: number;
31
- /** Boolean indicating whether the threshold trigger direction should be reversed */
32
- reversed?: boolean;
33
- }
34
- /**
35
- * Configuration for a gauge's value labels (currently only used for threshold markers)
36
- */
37
- export interface IGaugeLabelsConfig {
38
- /**
39
- * Optional custom formatter for the value labels (currently only threshold labels are supported)
40
- */
41
- formatter?: Formatter<any>;
42
- /**
43
- * Amount of space (in pixels) to reserve on the side of the grid for the labels.
44
- * For the donut gauge, the clearance is applied to all sides; for the linear gauge
45
- * the clearance is applied only to the side on which the labels appear.
46
- */
47
- clearance?: number;
48
- /**
49
- * Currently only supported on linear gauges. Set this to true to change the side of the gauge
50
- * that the labels appear on. When false, the default sides are right for vertical gauge
51
- * and bottom for horizontal gauge.
52
- */
53
- flipped?: boolean;
54
- }
55
- /**
56
- * Map of threshold IDs to IGaugeThresholdDef objects
57
- */
58
- export type GaugeThresholdDefs = Record<string, IGaugeThresholdDef>;
59
- /**
60
- * Configuration definition for a gauge threshold
61
- */
62
- export interface IGaugeThresholdDef {
63
- /** The ID of the threshold */
64
- id: string;
65
- /** The value of the threshold */
66
- value: number;
67
- /** Boolean indicating whether the threshold is enabled */
68
- enabled: boolean;
69
- /** String indicating the display color of the threshold */
70
- color: string;
71
- }
72
- /**
73
- * Interface for a gauge threshold datum
74
- */
75
- export interface IGaugeThresholdDatum extends IGaugeThresholdDef {
76
- /** Boolean indicating whether the threshold is hit */
77
- hit?: boolean;
78
- /** Additional metadata as needed */
79
- [key: string]: any;
80
- }
81
- /**
82
- * Data used for visualizing thresholds on a gauge
83
- */
84
- export interface IGaugeThresholdsData {
85
- /** A collection of thresholds */
86
- thresholds: IGaugeThresholdDatum[];
87
- /** The currently active threshold */
88
- activeThreshold?: IGaugeThresholdDatum;
89
- }
@@ -1,79 +0,0 @@
1
- import { AfterContentInit, EventEmitter } from "@angular/core";
2
- import { RenderState } from "../../renderers/types";
3
- import { LegendComponent } from "../legend.component";
4
- import * as i0 from "@angular/core";
5
- /** @ignore */
6
- export declare const LEGEND_SERIES_CLASS_NAME = "nui-legend-series";
7
- export declare class LegendSeriesComponent implements AfterContentInit {
8
- private legend;
9
- /**
10
- * Sets the series active status
11
- *
12
- * @param {boolean} active The new active status
13
- */
14
- set active(active: boolean);
15
- /**
16
- * Sets the series interactive mode switch
17
- *
18
- * @param {boolean} interactive The new interactive mode
19
- */
20
- set interactive(interactive: boolean);
21
- /**
22
- * Gets the series interactive mode value
23
- *
24
- * @returns {boolean} The current interactive mode
25
- */
26
- get interactive(): boolean;
27
- /**
28
- * Set whether the series is selected
29
- */
30
- isSelected: boolean;
31
- /**
32
- * Emits an event with a boolean value indicating a new selected status
33
- */
34
- isSelectedChange: EventEmitter<any>;
35
- /**
36
- * The primary description of the series
37
- */
38
- descriptionPrimary: string;
39
- /**
40
- * The secondary description of the series
41
- */
42
- descriptionSecondary: string;
43
- /**
44
- * The series icon
45
- */
46
- icon: string;
47
- /**
48
- * Color of the series
49
- */
50
- color: string;
51
- /**
52
- * The render state of the legend series
53
- */
54
- set seriesRenderState(renderState: RenderState);
55
- get seriesRenderState(): RenderState;
56
- private projectedDescription;
57
- get isInteractiveClassApplied(): boolean;
58
- isHorizontalClassApplied: boolean;
59
- get isActiveClassApplied(): boolean;
60
- private _seriesRenderState;
61
- private _active;
62
- private _interactive;
63
- constructor(legend: LegendComponent);
64
- ngAfterContentInit(): void;
65
- /**
66
- * Emits an isSelectedChange event on series click if the series is in interactive mode
67
- */
68
- onClick(): void;
69
- /**
70
- * @returns boolean indicating whether the series has a primary or secondary description
71
- */
72
- hasInputDescription(): boolean;
73
- /**
74
- * @returns boolean indicating whether the series has a projected description
75
- */
76
- hasProjectedDescription(): boolean;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendSeriesComponent, [{ optional: true; host: true; }]>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendSeriesComponent, "nui-legend-series", never, { "active": { "alias": "active"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "descriptionPrimary": { "alias": "descriptionPrimary"; "required": false; }; "descriptionSecondary": { "alias": "descriptionSecondary"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "seriesRenderState": { "alias": "seriesRenderState"; "required": false; }; }, { "isSelectedChange": "isSelectedChange"; }, never, ["*", "[legendMenu]", "[description]"], false, never>;
79
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BasicLegendTileComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<BasicLegendTileComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<BasicLegendTileComponent, "nui-basic-legend-tile", never, {}, {}, never, ["*"], false, never>;
5
- }
@@ -1,2 +0,0 @@
1
- export * from "./basic-legend-tile/basic-legend-tile.component";
2
- export * from "./rich-legend-tile/rich-legend-tile.component";
@@ -1,33 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef } from "@angular/core";
2
- import { LegendSeriesComponent } from "../../legend-series/legend-series.component";
3
- import { LegendComponent } from "../../legend.component";
4
- import * as i0 from "@angular/core";
5
- export declare class RichLegendTileComponent implements AfterContentInit, AfterViewInit {
6
- private legendSeries;
7
- private legend;
8
- private changeDetector;
9
- /**
10
- * The series unit label
11
- */
12
- unitLabel: string;
13
- /**
14
- * The current value of the series
15
- */
16
- value: string;
17
- /**
18
- * The series color
19
- */
20
- backgroundColor: string;
21
- /**
22
- * Color for the text
23
- */
24
- color: string;
25
- seriesHasAdditionalContent: boolean;
26
- constructor(legendSeries: LegendSeriesComponent, legend: LegendComponent, changeDetector: ChangeDetectorRef);
27
- ngAfterContentInit(): void;
28
- ngAfterViewInit(): void;
29
- hasInputValue(): boolean;
30
- hasInputUnitLabel(): boolean;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<RichLegendTileComponent, [{ host: true; }, { optional: true; host: true; }, null]>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<RichLegendTileComponent, "nui-rich-legend-tile", never, { "unitLabel": { "alias": "unitLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*", "[leftEdge]", "[rightEdge]", "[top]", "[bottom]"], false, never>;
33
- }
@@ -1,37 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
- import { LegendOrientation } from "./types";
3
- import * as i0 from "@angular/core";
4
- export declare class LegendComponent implements OnChanges, OnDestroy {
5
- /**
6
- * EventEmitter for notifying subscribers of a change in the active state
7
- */
8
- activeChanged: EventEmitter<boolean>;
9
- /**
10
- * The active state
11
- */
12
- active: boolean;
13
- /**
14
- * The legend's interactive mode switch
15
- */
16
- interactive: boolean;
17
- /**
18
- * The legend's orientation
19
- */
20
- orientation: LegendOrientation;
21
- /**
22
- * The legend's overall series color. Individual legend series may override this.
23
- */
24
- seriesColor: string;
25
- /**
26
- * The legend's overall series icon. Individual legend series may override this.
27
- */
28
- seriesIcon: string;
29
- /**
30
- * The legend's overall series unit label. Individual legend series may override this.
31
- */
32
- seriesUnitLabel: string;
33
- ngOnChanges(changes: SimpleChanges): void;
34
- ngOnDestroy(): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "nui-legend", never, { "active": { "alias": "active"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "seriesColor": { "alias": "seriesColor"; "required": false; }; "seriesIcon": { "alias": "seriesIcon"; "required": false; }; "seriesUnitLabel": { "alias": "seriesUnitLabel"; "required": false; }; }, {}, never, ["*"], false, never>;
37
- }
@@ -1,3 +0,0 @@
1
- export * from "./legend-series/legend-series.component";
2
- export * from "./legend-tile/public-api";
3
- export * from "./legend.component";
package/legend/types.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare enum LegendOrientation {
2
- vertical = "vertical",
3
- horizontal = "horizontal"
4
- }
package/public-api.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export { ChartTooltipDirective } from "./chart-tooltips/chart-tooltip.directive";
2
- export { ChartTooltipComponent } from "./chart-tooltips/chart-tooltip.component";
3
- export { ChartDonutContentComponent } from "./chart-donut-content/chart-donut-content.component";
4
- export { ChartTooltipsComponent } from "./chart-tooltips/chart-tooltips.component";
5
- export { ChartPopoverComponent } from "./chart-popover/chart-popover.component";
6
- export { ChartMarkerComponent } from "./chart-marker/chart-marker.component";
7
- export * from "./charts.module";
8
- export * from "./chart/chart.component";
9
- export * from "./gauge/public-api";
10
- export * from "./chart-collection/public-api";
11
- export * from "./core/public-api";
12
- export * from "./legend/public-api";
13
- export * from "./renderers/public-api";
14
- export * from "./constants";
15
- export * from "./thresholds/public-api";
@@ -1,11 +0,0 @@
1
- import { IAccessors } from "../../core/common/types";
2
- export interface INoopAccessors extends IAccessors {
3
- data: any;
4
- /** Series level accessors - e.g. for colors, markers, etc. */
5
- series: any;
6
- }
7
- export declare class NoopAccessors implements INoopAccessors {
8
- series: any;
9
- data: any;
10
- constructor();
11
- }
@@ -1,3 +0,0 @@
1
- export * from "./xy-accessors";
2
- export * from "./noop-accessors";
3
- export * from "./rectangle-accessors";
@@ -1,30 +0,0 @@
1
- import { DataAccessor, IAccessors, IDataAccessors, ISeriesAccessors, SeriesAccessor } from "../../core/common/types";
2
- export interface IStartEndRangeAccessors extends IDataAccessors {
3
- start: DataAccessor;
4
- end: DataAccessor;
5
- }
6
- export interface IValueThicknessAccessors extends IDataAccessors {
7
- value: DataAccessor;
8
- thickness: DataAccessor;
9
- }
10
- export interface IRectangleDataAccessors extends IDataAccessors {
11
- startX?: DataAccessor;
12
- endX?: DataAccessor;
13
- thicknessX?: DataAccessor;
14
- startY?: DataAccessor;
15
- endY?: DataAccessor;
16
- thicknessY?: DataAccessor;
17
- }
18
- export interface IRectangleSeriesAccessors extends ISeriesAccessors {
19
- color?: SeriesAccessor;
20
- marker?: SeriesAccessor;
21
- }
22
- export interface IRectangleAccessors extends IAccessors {
23
- data: IRectangleDataAccessors;
24
- series: IRectangleSeriesAccessors;
25
- }
26
- export declare class RectangleAccessors implements IRectangleAccessors {
27
- data: IRectangleDataAccessors;
28
- series: IRectangleSeriesAccessors;
29
- constructor();
30
- }
@@ -1,13 +0,0 @@
1
- import { DataAccessor, IAccessors } from "../../core/common/types";
2
- export interface IXYDataAccessors {
3
- /** Accessor for value plotted on the <code>x</code> coordinate */
4
- x: DataAccessor;
5
- /** Accessor for value plotted on the <code>y</code> coordinate */
6
- y: DataAccessor;
7
- /** Additional custom keys to match the base interface */
8
- [key: string]: DataAccessor | undefined;
9
- }
10
- export declare class XYAccessors implements IAccessors {
11
- /** The default data accessors for using with renderers deriving from XYRenderer */
12
- data: IXYDataAccessors;
13
- }
@@ -1,28 +0,0 @@
1
- import { DataAccessor, IAccessors, IDataAccessors, ISeriesAccessors, SeriesAccessor } from "../../core/common/types";
2
- export interface IAreaDataAccessors extends IDataAccessors {
3
- x: DataAccessor;
4
- x0: DataAccessor;
5
- x1: DataAccessor;
6
- absoluteX0: DataAccessor;
7
- absoluteX1: DataAccessor;
8
- y: DataAccessor;
9
- y0: DataAccessor;
10
- y1: DataAccessor;
11
- absoluteY0: DataAccessor;
12
- absoluteY1: DataAccessor;
13
- }
14
- export interface IAreaSeriesAccessors extends ISeriesAccessors {
15
- color?: SeriesAccessor;
16
- marker?: SeriesAccessor;
17
- }
18
- export interface IAreaAccessors extends IAccessors {
19
- data: IAreaDataAccessors;
20
- series: IAreaSeriesAccessors;
21
- }
22
- export declare class AreaAccessors implements IAreaAccessors {
23
- private colorProvider;
24
- private markerProvider;
25
- data: IAreaDataAccessors;
26
- series: IAreaSeriesAccessors;
27
- constructor(colorProvider?: import("../../core/common/types").IValueProvider<string>, markerProvider?: import("../../core/common/types").IValueProvider<import("../../core/common/types").IChartMarker>);
28
- }
@@ -1,7 +0,0 @@
1
- import { XYGrid } from "../../core/grid/xy-grid";
2
- /**
3
- * Creates an {@link XYGrid} with predefined {@link AreaGridConfig}
4
- *
5
- * @returns {XYGrid}
6
- */
7
- export declare function areaGrid(): XYGrid;
@@ -1,41 +0,0 @@
1
- import { Subject } from "rxjs";
2
- import { IScale } from "../../core/common/scales/types";
3
- import { D3Selection, IDataSeries, ILasagnaLayer, IRendererEventPayload } from "../../core/common/types";
4
- import { IAreaRendererConfig, IRenderSeries } from "../types";
5
- import { XYRenderer } from "../xy-renderer";
6
- import { IAreaAccessors } from "./area-accessors";
7
- /**
8
- * Renderer that is able to draw line chart
9
- */
10
- export declare class AreaRenderer extends XYRenderer<IAreaAccessors> {
11
- config: IAreaRendererConfig;
12
- private DEFAULT_CONFIG;
13
- /**
14
- * Creates an instance of AreaRenderer.
15
- * @param {IAreaRendererConfig} [config={}] Renderer configuration object
16
- */
17
- constructor(config?: IAreaRendererConfig);
18
- /** See {@link Renderer#draw} */
19
- draw(renderSeries: IRenderSeries<IAreaAccessors>, rendererSubject: Subject<IRendererEventPayload>): void;
20
- /**
21
- * Renders the line in prepared <path> element
22
- *
23
- * @param {IRenderSeries<IAreaAccessors>} renderSeries
24
- * @param {D3Selection} path D3 Selection with <path> element pre-created and pre-styled
25
- */
26
- drawArea(renderSeries: IRenderSeries<IAreaAccessors>, path: D3Selection<SVGPathElement>): void;
27
- getDomain(data: any[], dataSeries: IDataSeries<IAreaAccessors>, scaleName: string, scale: IScale<any>): any[];
28
- /** See {@link Renderer#getRequiredLayers} */
29
- getRequiredLayers(): ILasagnaLayer[];
30
- /**
31
- * Filters given dataset by domain of provided scale
32
- *
33
- * @param data
34
- * @param dataSeries
35
- * @param scaleName
36
- * @param domain
37
- */
38
- filterDataByDomain(data: any[], dataSeries: IDataSeries<IAreaAccessors>, scaleName: string, domain: any[]): any[];
39
- highlightDataPoint(renderSeries: IRenderSeries<IAreaAccessors>, dataPointIndex: number, rendererSubject: Subject<IRendererEventPayload>): void;
40
- safetyCheck(value: number | undefined): number;
41
- }
@@ -1,6 +0,0 @@
1
- export * from "./area-grid";
2
- export * from "./area-accessors";
3
- export * from "./area-renderer";
4
- export * from "./stacked-area-preprocessor";
5
- export * from "./stacked-percentage-area-preprocessor";
6
- export * from "./stacked-area-accessors";
@@ -1,3 +0,0 @@
1
- import { IAreaAccessors } from "./area-accessors";
2
- import { IChartMarker, IValueProvider } from "../../core/common/types";
3
- export declare function stackedAreaAccessors(colorProvider?: IValueProvider<string>, markerProvider?: IValueProvider<IChartMarker>): IAreaAccessors;
@@ -1,5 +0,0 @@
1
- import { IAreaAccessors } from "./area-accessors";
2
- import { ChartAssist } from "../../core/chart-assists/chart-assist";
3
- import { IChartAssistSeries, IChartSeries } from "../../core/common/types";
4
- export declare function stackedAreaPreprocessor(chartSeriesSet: IChartAssistSeries<IAreaAccessors>[], isVisible: (chartSeries: IChartSeries<IAreaAccessors>) => boolean): IChartSeries<IAreaAccessors>[];
5
- export declare function stackedArea(this: ChartAssist, chartSeriesSet: IChartAssistSeries<IAreaAccessors>[]): IChartAssistSeries<IAreaAccessors>[];
@@ -1,7 +0,0 @@
1
- import { IAreaAccessors } from "./area-accessors";
2
- import { ChartAssist } from "../../core/chart-assists/chart-assist";
3
- import { IChartAssistSeries, IChartSeries } from "../../core/common/types";
4
- export declare function stackedPercentageAreaPreprocessor(chartSeriesSet: IChartSeries<IAreaAccessors>[], isVisible: (chartSeries: IChartSeries<IAreaAccessors>) => boolean): IChartSeries<IAreaAccessors>[];
5
- export declare function stackedPercentageArea(this: ChartAssist, chartSeriesSet: IChartAssistSeries<IAreaAccessors>[]): IChartAssistSeries<IAreaAccessors>[];
6
- export declare function calculateDomainValueCombinedTotals(baseAccessorKey: string, valueAccessorKey: string, chartSeries: IChartSeries<IAreaAccessors>, isVisible: any, domainValueCombinedTotals: Record<any, number>): void;
7
- export declare function applyStackMetadata(baseAccessorKey: string, valueAccessorKey: string, chartSeries: IChartSeries<IAreaAccessors>, isVisible: any, domainValueStacks: Record<any, number>, domainValueCombinedTotals: Record<any, number>): void;
@@ -1,13 +0,0 @@
1
- import { IChartMarker, IValueProvider } from "../../../core/common/types";
2
- import { IBarChartConfig } from "../types";
3
- import { IBarAccessors } from "./bar-accessors";
4
- /**
5
- * Creates {@link VerticalBarAccessors} or {@link VerticalBarAccessors}
6
- * using {@link IBarChartConfig#horizontal} horizontal property. Default orientation is **vertical**.
7
- *
8
- * @param {IBarChartConfig} [config]
9
- * @param {IValueProvider<string>} [colorProvider]
10
- * @param {IValueProvider<IChartMarker>} [markerProvider]
11
- * @returns {IBarAccessors}
12
- */
13
- export declare function barAccessors(config?: IBarChartConfig, colorProvider?: IValueProvider<string>, markerProvider?: IValueProvider<IChartMarker>): IBarAccessors;