@tectra-ng/charts 0.4.2 → 0.4.4

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 (99) hide show
  1. package/bar-list/README.md +1 -1
  2. package/boxplot/README.md +1 -1
  3. package/bullet/README.md +1 -1
  4. package/candlestick/README.md +1 -1
  5. package/column/README.md +3 -3
  6. package/combo/README.md +1 -1
  7. package/core/README.md +8 -6
  8. package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
  9. package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
  10. package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
  11. package/fesm2022/tectra-ng-charts-candlestick.mjs +26 -10
  12. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-column.mjs +4 -4
  14. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-charts-combo.mjs +3 -3
  16. package/fesm2022/tectra-ng-charts-core.mjs +107 -44
  17. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-funnel.mjs +37 -13
  19. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-gantt.mjs +490 -30
  21. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-gauge.mjs +82 -37
  23. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-charts-heatmap.mjs +15 -15
  25. package/fesm2022/tectra-ng-charts-line.mjs +3 -3
  26. package/fesm2022/tectra-ng-charts-org-chart.mjs +57 -29
  27. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-charts-pie.mjs +50 -20
  29. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
  31. package/fesm2022/tectra-ng-charts-radial-bar.mjs +8 -7
  32. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-charts-range-area.mjs +116 -61
  34. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-charts-rank-line.mjs +82 -34
  36. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-charts-sankey.mjs +102 -21
  38. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
  40. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +56 -10
  41. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-charts-sunburst.mjs +34 -6
  43. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
  45. package/fesm2022/tectra-ng-charts-waterfall.mjs +60 -23
  46. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-charts.mjs +1 -1
  48. package/funnel/README.md +2 -2
  49. package/gantt/README.md +12 -8
  50. package/gauge/README.md +3 -3
  51. package/line/README.md +1 -1
  52. package/org-chart/README.md +1 -0
  53. package/package.json +5 -5
  54. package/pie/README.md +5 -4
  55. package/radar/README.md +1 -1
  56. package/radial-bar/README.md +2 -2
  57. package/range-area/README.md +2 -1
  58. package/rank-line/README.md +3 -2
  59. package/sankey/README.md +1 -1
  60. package/segmented-bar/README.md +2 -1
  61. package/treemap/README.md +1 -1
  62. package/types/tectra-ng-charts-bar-list.d.ts +1 -1
  63. package/types/tectra-ng-charts-boxplot.d.ts +1 -1
  64. package/types/tectra-ng-charts-bullet.d.ts +1 -1
  65. package/types/tectra-ng-charts-candlestick.d.ts +7 -3
  66. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-column.d.ts +3 -3
  68. package/types/tectra-ng-charts-combo.d.ts +1 -1
  69. package/types/tectra-ng-charts-core.d.ts +45 -10
  70. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-funnel.d.ts +9 -2
  72. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-gantt.d.ts +166 -10
  74. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-gauge.d.ts +21 -6
  76. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-line.d.ts +1 -1
  78. package/types/tectra-ng-charts-org-chart.d.ts +13 -2
  79. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  80. package/types/tectra-ng-charts-pie.d.ts +13 -4
  81. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  82. package/types/tectra-ng-charts-radar.d.ts +1 -1
  83. package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
  84. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  85. package/types/tectra-ng-charts-range-area.d.ts +12 -3
  86. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  87. package/types/tectra-ng-charts-rank-line.d.ts +28 -10
  88. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  89. package/types/tectra-ng-charts-sankey.d.ts +36 -9
  90. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  91. package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
  92. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  93. package/types/tectra-ng-charts-sunburst.d.ts +10 -0
  94. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  95. package/types/tectra-ng-charts-treemap.d.ts +1 -1
  96. package/types/tectra-ng-charts-waterfall.d.ts +25 -6
  97. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  98. package/types/tectra-ng-charts.d.ts +1 -1
  99. package/waterfall/README.md +5 -5
@@ -1,4 +1,4 @@
1
- import { TxChartActive, TxChartCurve, TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat } from "@tectra-ng/charts/core";
1
+ import { TxChartActive, TxChartAnnotation, TxChartCurve, TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat } from "@tectra-ng/charts/core";
2
2
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
3
3
  import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
4
4
  import * as i0 from "@angular/core";
@@ -18,7 +18,7 @@ export interface TxRangeSeries {
18
18
  /** How the x values are read: as `category` labels or as `time`. */
19
19
  export type TxRangeAreaXType = 'category' | 'time';
20
20
  /** Parts of `tx-range-area-chart` that `pt` can style. */
21
- export type TxRangeAreaChartPart = TxChartPart | 'band' | 'edge' | 'line' | 'marker' | 'crosshair';
21
+ export type TxRangeAreaChartPart = TxChartPart | 'band' | 'edge' | 'line' | 'marker' | 'crosshair' | 'annotation';
22
22
  /** SVG paths of one drawn series. */
23
23
  export interface TxRangeAreaPath {
24
24
  /** Index of the series. */
@@ -102,6 +102,8 @@ export declare class TxRangeAreaChart {
102
102
  readonly yAxisTitle: import("@angular/core").InputSignal<string>;
103
103
  /** Grid lines: `value`, `category`, `both` or `none` */
104
104
  readonly grid: import("@angular/core").InputSignal<TxChartGridMode>;
105
+ /** Marks on the plot: `{ type: 'x-line', x }`, `{ type: 'y-line', y }`, `{ type: 'x-band', from, to }`, `{ type: 'y-band', from, to }`, `{ type: 'point', x, y }`, each with an optional `label`, `tone` (`neutral`, `primary`, `success`, `info`, `warn`, `danger`) or `color`; `x` is a category label (or index) or a date with `xType="time"`; bands and lines sit behind the series, points and labels on top */
106
+ readonly annotations: import("@angular/core").InputSignal<readonly TxChartAnnotation[] | null | undefined>;
105
107
  /** Labels that do not fit: `auto`, `rotate` or `skip` */
106
108
  readonly labelMode: import("@angular/core").InputSignal<TxChartLabelMode>;
107
109
  /** Most x labels to show (10) */
@@ -114,7 +116,7 @@ export declare class TxRangeAreaChart {
114
116
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
115
117
  /** Design tokens of this chart (`chart`) — band opacity, edge and line widths, palette */
116
118
  readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
117
- /** Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `band`, `edge`, `line`, `marker`, `crosshair`, `tooltip`, `empty`, `skeleton` */
119
+ /** Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `band`, `edge`, `line`, `marker`, `crosshair`, `annotation`, `tooltip`, `empty`, `skeleton` */
118
120
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxRangeAreaChartPart, import("@tectra-ng/core/config").TxPassThroughValue<TxRangeAreaChart>>> | undefined>;
119
121
  /** How `pt` merges with the global pass-through */
120
122
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
@@ -153,6 +155,7 @@ export declare class TxRangeAreaChart {
153
155
  readonly layout: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxCartesianLayout>;
154
156
  readonly positions: import("@angular/core").Signal<number[]>;
155
157
  readonly paths: import("@angular/core").Signal<TxRangeAreaPath[]>;
158
+ readonly annotationShapes: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartAnnotationShape[]>;
156
159
  readonly crosshair: import("@angular/core").Signal<{
157
160
  x: number;
158
161
  y1: number;
@@ -184,6 +187,7 @@ export declare class TxRangeAreaChart {
184
187
  onLegendToggle(key: string): void;
185
188
  onLegendHover(key: string | null): void;
186
189
  private event;
190
+ private xPosition;
187
191
  private nearestSeries;
188
192
  static ɵfac: i0.ɵɵFactoryDeclaration<TxRangeAreaChart, never>;
189
193
  static ɵcmp: i0.ɵɵComponentDeclaration<TxRangeAreaChart, "tx-range-area-chart", never, {
@@ -272,6 +276,11 @@ export declare class TxRangeAreaChart {
272
276
  "required": false;
273
277
  "isSignal": true;
274
278
  };
279
+ "annotations": {
280
+ "alias": "annotations";
281
+ "required": false;
282
+ "isSignal": true;
283
+ };
275
284
  "labelMode": {
276
285
  "alias": "labelMode";
277
286
  "required": false;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-range-area.d.ts","names":[],"sources":["../../../../packages/charts/range-area/src/range-area-chart.types.ts","../../../../packages/charts/range-area/src/range-area-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBCaW;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,gCAAM,qBAAA;;WACN,oCAAU,wCAAA;;WACV,+BAAK,YAAA;;WACL,gCAAM,YAAA;;WACN,+BAAK,YAAA;;WACL,+BAAK;;WACL,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,uCAAa,YAAA;;WACb,qCAAW;;WACX,qCAAW,YAAA;;WACX,8BAAI;;WACJ,8BAAI;;WACJ,oCAAU;;WACV,oCAAU;;WACV,8BAAI,YAAA;;WACJ,mCAAS,YAAA;;WACT,mCAAS;;WACT,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,uDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ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AA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-range-area.d.ts","names":[],"sources":["../../../../packages/charts/range-area/src/range-area-chart.types.ts","../../../../packages/charts/range-area/src/range-area-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBCkBW;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,gCAAM,qBAAA;;WACN,oCAAU,wCAAA;;WACV,+BAAK,YAAA;;WACL,gCAAM,YAAA;;WACN,+BAAK,YAAA;;WACL,+BAAK;;WACL,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,uCAAa,YAAA;;WACb,qCAAW;;WACX,qCAAW,YAAA;;WACX,8BAAI;;WACJ,8BAAI;;WACJ,oCAAU;;WACV,oCAAU;;WACV,8BAAI,YAAA;;WACJ,qCAAW,qBAAA;;WACX,mCAAS,YAAA;;WACT,mCAAS;;WACT,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,uDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,sCAAY,iBAAA;;WACZ,oCAAU,iBAAA;WAEV,wCAAc,OAAA;WACd,yCAAe,OAAA;mBACP;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,uDAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ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AAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
@@ -1,4 +1,4 @@
1
- import { TxChartHeight, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate } from "@tectra-ng/charts/core";
1
+ import { TxChartHeight, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxTimeInterval } from "@tectra-ng/charts/core";
2
2
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
3
3
  import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
4
4
  import * as i0 from "@angular/core";
@@ -54,22 +54,34 @@ export interface TxRankLineEvent {
54
54
  /** Note of the point. */
55
55
  note?: string;
56
56
  }
57
+ /** How `tx-rank-chart` writes a date: `Intl.DateTimeFormat` options or a function of the time in ms. */
58
+ export type TxRankDateFormat = Intl.DateTimeFormatOptions | ((time: number) => string);
57
59
  /** Parts of `tx-rank-line` that `pt` can style. */
58
60
  export type TxRankLinePart = TxChartPart | 'line' | 'marker';
59
61
  /** Number of colours in the rank line palette; series beyond it reuse them. */
60
62
  export declare const TX_RANK_LINE_COLORS = 12;
61
63
  /** CSS colour of the series at an index, taken from the rank line palette and wrapping around. */
62
64
  export declare function rankLineColor(index: number): string;
63
- /** Distance between rank ticks: 10 above 20 ranks, 5 otherwise. */
65
+ /** Distance between rank ticks: every rank up to 10 ranks, 5 up to 20, 10 deeper. */
64
66
  export declare function rankTickStep(maxRank: number): number;
67
+ /** Ranks that get a tick: 1, then every multiple of the tick step up to `maxRank`. */
68
+ export declare function rankTicks(maxRank: number): number[];
65
69
  /**
66
70
  * Earliest and latest time of all series in ms, widened by half a day on each side when they are equal; `null` without data.
67
71
  */
68
72
  export declare function rankTimeExtent(series: readonly TxRankSeries[]): [number, number] | null;
69
- /** Vertical position in px of a rank inside the plot; rank 0 is at the top and ranks are clamped to the scale. */
73
+ /**
74
+ * Vertical position in px of a rank inside the plot: rank 1 on the top edge, `maxRank` on the bottom edge, deeper ranks
75
+ * clamped to the bottom; a scale of one rank puts it in the middle.
76
+ */
70
77
  export declare function rankY(rank: number, maxRank: number, top: number, height: number): number;
71
78
  /**
72
- * `<tx-rank-chart>` — positions over time (search ranks, leaderboards): rank 1 on top, one straight line per series in its own colour, a gap where a check has no rank, a tooltip with the date and time, the series, the rank and an optional note. Points sit at their real times on a time axis.
79
+ * Calendar step of the data: the step that covers the smallest gap between two times; without a gap, a day for times at
80
+ * local midnight and a minute otherwise.
81
+ */
82
+ export declare function rankTimeStep(times: readonly number[]): TxTimeInterval;
83
+ /**
84
+ * `<tx-rank-chart>` — positions over time (search ranks, leaderboards): rank 1 on top, one straight line per series in its own colour, a gap where a check has no rank, a tooltip with the date, the series, the rank and an optional note. Points sit at their real times on a time axis.
73
85
  * @see https://tectra-ng.com/components/rank-chart
74
86
  */
75
87
  export declare class TxRankChart {
@@ -78,10 +90,12 @@ export declare class TxRankChart {
78
90
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
79
91
  /** `{ name, color?, points: { time, rank | null, note? }[] }[]` — a `null` rank leaves a gap; without `color` the series takes one of 12 line colours by its index (`rankLineColor(index)`) */
80
92
  readonly series: import("@angular/core").InputSignal<readonly TxRankSeries[] | null | undefined>;
81
- /** The deepest rank on the axis (20); ticks by 5 up to 20, by 10 deeper; deeper ranks sit on the bottom line */
93
+ /** The deepest rank on the axis (20); rank 1 sits on the top line and `maxRank` on the bottom line; every rank gets a tick up to 10 ranks, then ticks go by 5 up to 20 and by 10 deeper; deeper ranks sit on the bottom line */
82
94
  readonly maxRank: import("@angular/core").InputSignal<number>;
83
95
  /** Caption of the rank in the tooltip and the data table (`Position: 3`) */
84
96
  readonly rankLabel: import("@angular/core").InputSignal<string>;
97
+ /** How the tooltip, the summary and the data table write a date: `Intl.DateTimeFormat` options or `(time) => string`; by default a date, with the time of day only when checks are less than a day apart */
98
+ readonly dateFormat: import("@angular/core").InputSignal<TxRankDateFormat | null | undefined>;
85
99
  /** Height: px (360) or `'100%'` of a parent with a definite height */
86
100
  readonly height: import("@angular/core").InputSignal<TxChartHeight>;
87
101
  /** Shows a legend that hides and shows series */
@@ -134,19 +148,18 @@ export declare class TxRankChart {
134
148
  readonly colors: import("@angular/core").Signal<string[]>;
135
149
  readonly extent: import("@angular/core").Signal<[number, number] | null>;
136
150
  readonly isEmpty: import("@angular/core").Signal<boolean>;
137
- readonly dateTimeFormat: import("@angular/core").Signal<Intl.DateTimeFormat>;
151
+ readonly formatTime: import("@angular/core").Signal<(time: number) => string>;
138
152
  readonly layout: import("@angular/core").Signal<{
139
153
  plot: import("@tectra-ng/charts/core").TxChartPlot;
140
154
  axes: {
155
+ zero: null;
141
156
  grid: {
142
- y1: number;
143
- y2: number;
144
157
  x1: number;
158
+ y1: number;
145
159
  x2: number;
146
- zero?: boolean;
160
+ y2: number;
147
161
  }[];
148
162
  axes: import("@tectra-ng/charts/core").TxChartAxisModel[];
149
- zero: import("@tectra-ng/charts/core").TxChartGridLine | null;
150
163
  };
151
164
  x: (time: number) => number;
152
165
  maxRank: number;
@@ -193,6 +206,11 @@ export declare class TxRankChart {
193
206
  "required": false;
194
207
  "isSignal": true;
195
208
  };
209
+ "dateFormat": {
210
+ "alias": "dateFormat";
211
+ "required": false;
212
+ "isSignal": true;
213
+ };
196
214
  "height": {
197
215
  "alias": "height";
198
216
  "required": false;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-rank-line.d.ts","names":[],"sources":["../../../../packages/charts/rank-line/src/rank-line.types.ts","../../../../packages/charts/rank-line/src/rank-line-layout.ts","../../../../packages/charts/rank-line/src/rank-line.component.ts"],"mappings":";;;;;iBAGiB;;EAEf,wBAAwB;;EAExB;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,iBAAiB;;;iBAIF;;EAEf;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A;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-rank-line.d.ts","names":[],"sources":["../../../../packages/charts/rank-line/src/rank-line.types.ts","../../../../packages/charts/rank-line/src/rank-line-layout.ts","../../../../packages/charts/rank-line/src/rank-line.component.ts"],"mappings":";;;;;iBAGiB;;EAEf,wBAAwB;;EAExB;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,iBAAiB;;;iBAIF;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU,mBAAmB,KAAK,0BAA0B;;YAGlD,iBAAiB;;qBC1DhB;;wBAGG,cAAc;;wBAKd,aAAa;;wBAKb,UAAU;;;;wBAaV,eAAe,iBAAiB;;;;;wBAoBhC,MAAM,cAAc,iBAAiB,aAAa;;;;;wBAUlD,aAAa,2BAA2B;;;;;qBCG3C;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,gCAAM,qBAAA;;WACN,iCAAO;;WACP,mCAAS;;WACT,oCAAU,YAAA;;WACV,gCAAM,YAAA;;WACN,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,uCAAa,YAAA;;WACb,qCAAW;;WACX,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,oCAAU,iBAAA;;WACV,sCAAY;IAAmB;IAAc;IAAgB;;WAE7D,wCAAc,OAAA;WACd,yCAAe,OAAA;mBACP;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ;WAER,gCAAM,eAAA;WACN,gCAAM;WACN,qCAAW;WACX,8BAAI,gDAAA;mBAEI;WACR,8BAAI,gBAAA;WACJ,8BAAI;WACJ,gCAAM;WACN,gCAAM;WACN,iCAAO;WACP,oCAAU,QAAA;WAWV,gCAAM;;;;;;;;;;;;IAuBkB,IAAA;;;WAGxB,+BAAK;;;;;;;WAkBL,iCAAO,OAAA;WACP,sCAAY,OAAA;WAEZ,qCAAW,OAAA;WAIX,iCAAO,OAAA;WAeP,iCAAO;WAQP,mCAAS;;;;;;;;;;EAYlB,UAAU,OAAO;EAoBjB,WAAW,OAAO;EA6BlB,eAAe;SAjMJ,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
@@ -87,6 +87,21 @@ export interface TxSankeyLayout {
87
87
  /** Number of columns. */
88
88
  columns: number;
89
89
  }
90
+ /** A placed node label of `tx-sankey-chart`. */
91
+ export interface TxSankeyLabel {
92
+ /** Id of the node. */
93
+ key: string;
94
+ /** Horizontal position of the text anchor, in px. */
95
+ x: number;
96
+ /** Vertical centre of the text, in px. */
97
+ y: number;
98
+ /** `end` for a label left of its node, `start` for one on the right. */
99
+ anchor: 'start' | 'end';
100
+ /** Name shown, shortened with an ellipsis when it had to be. */
101
+ label: string;
102
+ /** Formatted value shown after the name; empty when hidden or when it does not fit. */
103
+ value: string;
104
+ }
90
105
  /** Payload of the node click event of `tx-sankey-chart`. */
91
106
  export interface TxSankeyNodeEvent {
92
107
  /** Id of the node. */
@@ -132,6 +147,25 @@ export declare function sankeyRibbonPath(x0: number, y0: number, x1: number, y1:
132
147
  export declare function sankeyLinkY(x0: number, y0: number, x1: number, y1: number, x: number): number;
133
148
  /** Positions nodes in columns and sizes the links; cycles are broken and invalid links dropped. */
134
149
  export declare function sankeyLayout(nodesInput: readonly TxSankeyNode[], linksInput: readonly TxSankeyLink[], options: TxSankeyOptions): TxSankeyLayout;
150
+ /** Settings of `sankeyLabels`. */
151
+ export interface TxSankeyLabelOptions {
152
+ /** Width of the area, in px. */
153
+ width: number;
154
+ /** Gap between a node and its label, in px. */
155
+ labelGap: number;
156
+ /** Font size of the labels, in px. */
157
+ fontSize: number;
158
+ /** Formatted value of each node by its index; empty strings hide values. */
159
+ values: readonly string[];
160
+ /** Narrowest shortened name worth showing, in px (default 40). */
161
+ minWidth?: number;
162
+ }
163
+ /**
164
+ * Places the node labels so they stay inside the area and clear of the nodes and of each other: the last column on
165
+ * the left of its nodes, the others on the right; a label that does not fit moves to the other side, drops its value,
166
+ * is shortened with an ellipsis or, when even that does not fit, is hidden.
167
+ */
168
+ export declare function sankeyLabels(nodes: readonly TxSankeyLayoutNode[], options: TxSankeyLabelOptions): TxSankeyLabel[];
135
169
  /** The node or the link that is hovered or focused, by index. */
136
170
  type TxSankeyActive = {
137
171
  kind: 'node';
@@ -149,7 +183,7 @@ export declare class TxSankeyChart {
149
183
  private locale;
150
184
  private host;
151
185
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
152
- /** `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name */
186
+ /** `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name. Names sit right of their nodes (left in the last column); a name that would run into a node or another name moves to the other side, drops its value, is shortened or is hidden (the tooltip still names the node) */
153
187
  readonly nodes: import("@angular/core").InputSignal<readonly TxSankeyNode[] | null | undefined>;
154
188
  /** `{ source, target, value, color? }[]` — flows between node ids; self links, zero values and links that close a cycle are left out. An empty list shows "No data" */
155
189
  readonly links: import("@angular/core").InputSignal<readonly TxSankeyLink[] | null | undefined>;
@@ -205,14 +239,7 @@ export declare class TxSankeyChart {
205
239
  readonly layout: import("@angular/core").Signal<import("@tectra-ng/charts/sankey").TxSankeyLayout>;
206
240
  readonly isEmpty: import("@angular/core").Signal<boolean>;
207
241
  readonly drawnLinks: import("@angular/core").Signal<TxSankeyLayoutLink[]>;
208
- readonly labels: import("@angular/core").Signal<{
209
- key: string;
210
- x: number;
211
- y: number;
212
- anchor: string;
213
- label: string;
214
- value: string;
215
- }[]>;
242
+ readonly labels: import("@angular/core").Signal<import("@tectra-ng/charts/sankey").TxSankeyLabel[]>;
216
243
  readonly related: import("@angular/core").Signal<{
217
244
  links: Set<number>;
218
245
  nodes: Set<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-sankey.d.ts","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-chart.types.ts","../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;;;YAKpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,QAAQ;;EA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AU,MAAM;EAIhB,UAAU,OAAO;EAiBjB,WAAW,OAAO;UAoBV;UAeA;SA7LG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-sankey.d.ts","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-chart.types.ts","../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;;;YAKpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBC7He;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA;;;wBAMc,eAAe,YAAY,YAAY,YAAY;;wBAMnD,iBAAiB,YAAY,YAAY,YAAY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AAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
@@ -37,7 +37,7 @@ export interface TxSegmentedBarSegment {
37
37
  isEmpty: boolean;
38
38
  }
39
39
  /** Parts of `tx-segmented-bar` that `pt` can style. */
40
- export type TxSegmentedBarPart = 'root' | 'track' | 'segment' | 'legend' | 'legendItem' | 'dot' | 'label' | 'value' | 'percent' | 'aside';
40
+ export type TxSegmentedBarPart = 'root' | 'track' | 'segment' | 'legend' | 'legendItem' | 'dot' | 'label' | 'value' | 'percent' | 'aside' | 'skeleton';
41
41
  /**
42
42
  * Turns items into segments with shares and formatted value and percent texts; `percentFormat` defaults to `format`.
43
43
  */
@@ -49,6 +49,7 @@ export declare function segmentedBarSegments(items: readonly TxSegmentedBarItem[
49
49
  export declare class TxSegmentedBar {
50
50
  private readonly segmentedBarTheme;
51
51
  private locale;
52
+ readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
52
53
  /** `{ key, label, value, tone? }[]` — parts in the order they are drawn; zero and negative values are not drawn */
53
54
  readonly items: import("@angular/core").InputSignal<readonly TxSegmentedBarItem[] | null | undefined>;
54
55
  /** `small` (thin rounded bar, default) or `large` (tall bar with the percent inside each segment) */
@@ -65,11 +66,13 @@ export declare class TxSegmentedBar {
65
66
  readonly monoLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
66
67
  /** Format of values: `number`, `integer`, `compact`, `percent` or a function */
67
68
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
69
+ /** Shows a skeleton bar and legend of the same size */
70
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
68
71
  /** What the bar shows; names the legend list, or starts the summary read on the bar when the legend is hidden */
69
72
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
70
73
  /** Design tokens of this bar (`chart`, group `segmentedBar`) */
71
74
  readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
72
- /** Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside` */
75
+ /** Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside`, `skeleton` */
73
76
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxSegmentedBarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxSegmentedBar>>> | undefined>;
74
77
  /** How `pt` merges with the global pass-through */
75
78
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
@@ -84,6 +87,7 @@ export declare class TxSegmentedBar {
84
87
  readonly segments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
85
88
  readonly barSegments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
86
89
  readonly legendSegments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
90
+ readonly skeletonItems: import("@angular/core").Signal<number[]>;
87
91
  readonly summary: import("@angular/core").Signal<string>;
88
92
  static ɵfac: i0.ɵɵFactoryDeclaration<TxSegmentedBar, never>;
89
93
  static ɵcmp: i0.ɵɵComponentDeclaration<TxSegmentedBar, "tx-segmented-bar", never, {
@@ -127,6 +131,11 @@ export declare class TxSegmentedBar {
127
131
  "required": false;
128
132
  "isSignal": true;
129
133
  };
134
+ "loading": {
135
+ "alias": "loading";
136
+ "required": false;
137
+ "isSignal": true;
138
+ };
130
139
  "ariaLabel": {
131
140
  "alias": "ariaLabel";
132
141
  "required": false;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-segmented-bar.d.ts","names":[],"sources":["../../../../packages/charts/segmented-bar/src/segmented-bar.types.ts","../../../../packages/charts/segmented-bar/src/segmented-bar-segments.ts","../../../../packages/charts/segmented-bar/src/segmented-bar.component.ts"],"mappings":";;;;;YACY;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;EAEN;;;YAIU;;;;wBCjCI,qBACd,gBAAgB,yCAChB,QAAQ,uBACR,gBAAe,wBACd;;;;;qBCiBU;mBACM;UAET;;WAEC,+BAAK,qBAAA;;WACL,8BAAI,YAAA;;WACJ,oCAAU;;WACV,mCAAS;;WACT,qCAAW;;WACX,2CAAiB;;WACjB,oCAAU;;WACV,qCAAW,YAAA;;WACX,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,mCAAS;;;mBAED;WACR,kCAAQ,iDAAA;WAGR,qCAAW,iDAAA;WACX,wCAAc,iDAAA;WACd,iCAAO;SA7BL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-segmented-bar.d.ts","names":[],"sources":["../../../../packages/charts/segmented-bar/src/segmented-bar.types.ts","../../../../packages/charts/segmented-bar/src/segmented-bar-segments.ts","../../../../packages/charts/segmented-bar/src/segmented-bar.component.ts"],"mappings":";;;;;YACY;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;EAEN;;;YAIU;;;;wBCjCI,qBACd,gBAAgB,yCAChB,QAAQ,uBACR,gBAAe,wBACd;;;;;qBCuBU;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,+BAAK,qBAAA;;WACL,8BAAI,YAAA;;WACJ,oCAAU;;WACV,mCAAS;;WACT,qCAAW;;WACX,2CAAiB;;WACjB,oCAAU;;WACV,qCAAW,YAAA;;WACX,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,mCAAS;;;mBAED;WACR,kCAAQ,iDAAA;WAGR,qCAAW,iDAAA;WACX,wCAAc,iDAAA;WACd,uCAAa;WACb,iCAAO;SAhCL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
@@ -77,6 +77,16 @@ export interface TxSunburstOptions {
77
77
  export declare function sunburstArcs(roots: readonly TxSunburstItem[], options: TxSunburstOptions): TxSunburstArc[];
78
78
  /** The arc under a point, or `null` outside all arcs. */
79
79
  export declare function sunburstArcAt(arcs: readonly TxSunburstArc[], x: number, y: number, cx: number, cy: number): TxSunburstArc | null;
80
+ /**
81
+ * Tells whether a horizontal label box of `width` × `height` centred at (`x`, `y`) lies inside an arc, keeping `padding`
82
+ * px from its edges; points along the box outline are checked against both radii and both angles.
83
+ */
84
+ export declare function sunburstLabelFits(arc: Pick<TxSunburstArc, 'start' | 'end' | 'inner' | 'outer'>, box: {
85
+ x: number;
86
+ y: number;
87
+ width: number;
88
+ height: number;
89
+ }, cx: number, cy: number, padding?: number): boolean;
80
90
  /**
81
91
  * `<tx-sunburst-chart>` — a hierarchy as nested rings: each ring is a level, each segment is its share of the parent. Click a segment to zoom into it, click the centre to go back. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
82
92
  * @see https://tectra-ng.com/components/sunburst-chart
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-sunburst.d.ts","names":[],"sources":["../../../../packages/charts/sunburst/src/sunburst-chart.types.ts","../../../../packages/charts/sunburst/src/sunburst-layout.ts","../../../../packages/charts/sunburst/src/sunburst-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA,oBAAoB;;EAEpB;;;YAIU,sBAAsB;;iBAGjB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,MAAM;;;wBCpDQ,cAAc,MAAM;;wBAOpB,cAAc,gBAAgB,kBAAkB;EAA4B,gBAAgB;EAAkB,OAAO;;;iBAapH;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,aAAa,gBAAgB,kBAAkB,SAAS,oBAAoB;;wBA+C5E,cAAc,eAAe,iBAAiB,WAAW,WAAW,YAAY,aAAa;;;;;qBCrBhG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A;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-sunburst.d.ts","names":[],"sources":["../../../../packages/charts/sunburst/src/sunburst-chart.types.ts","../../../../packages/charts/sunburst/src/sunburst-layout.ts","../../../../packages/charts/sunburst/src/sunburst-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA,oBAAoB;;EAEpB;;;YAIU,sBAAsB;;iBAGjB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,MAAM;;;wBCpDQ,cAAc,MAAM;;wBAOpB,cAAc,gBAAgB,kBAAkB;EAA4B,gBAAgB;EAAkB,OAAO;;;iBAapH;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,aAAa,gBAAgB,kBAAkB,SAAS,oBAAoB;;wBA+C5E,cAAc,eAAe,iBAAiB,WAAW,WAAW,YAAY,aAAa;;;;;wBAW7F,kBACd,KAAK,KAAK,qDACV;EAAO;EAAW;EAAW;EAAe;GAC5C,YACA,YACA;;;;;qBCrCW;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,8BAAI,YAAA,0BAAA;;WACJ,gCAAM;;WACN,gCAAM,YAAA;;WACN,oCAAU;;WACV,qCAAW;;WACX,+BAAK;;WACL,oCAAU;;WACV,qCAAW,YAAA;;WACX,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,sCAAY,iBAAA;;WACZ,qCAAW;WAEX,yCAAe,OAAA;mBACP;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ;WACR,kCAAQ;;;;;mBAEA;WACR,+BAAK,gBAAA;WAIL,+BAAK;WACL,gCAAM;WACN,8BAAI,gDAAA;WACJ,iCAAO;WAEP,6BAAG;;;;;WAKH,8BAAI,OAAA;WACJ,+BAAK;WACL,oCAAU;WACV,+BAAK,OAAA;WACL,mCAAS,OAAA;WAKT,wCAAc,wCAAA;WACd,0CAAgB,QAAA;WAKhB,kCAAQ;;;;;;;;;;;;;;;;;;;;;WAoBR,gCAAM;;;;;WAQN,oCAAU;;;;WAKV,iCAAO,OAAA;WAyBP,iCAAO;WAQP,mCAAS;;;;;;;;;;;EAkBlB,MAAM;EAKN,UAAU,OAAO;EAcjB,WAAW,OAAO;EAiClB;UAMQ;UAOA;UAQA;UAYA;SA3OG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
@@ -147,7 +147,7 @@ export declare class TxTreemap {
147
147
  readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
148
148
  /** `(value, { seriesIndex, dataPointIndex }) => string` for the tooltip value */
149
149
  readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
150
- /** Format of values: `number`, `integer`, `compact`, `percent` or a function */
150
+ /** Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
151
151
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
152
152
  /** Shows a skeleton of the same size */
153
153
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
6
6
  export interface TxWaterfallItem {
7
7
  /** Name of the step. */
8
8
  label: string;
9
- /** Change added to the running total; negative values go down. */
9
+ /** Change added to the running total; negative values go down. On a total: its own value, which the next steps start from. */
10
10
  value?: number | null;
11
- /** Draws the running total so far instead of a change. */
11
+ /** Draws a total from zero: the running total so far, or `value` when set (an opening balance, a measured subtotal). */
12
12
  total?: boolean;
13
13
  /** Own colour of the bar. */
14
14
  color?: string;
@@ -78,11 +78,27 @@ export interface TxWaterfallBarEvent {
78
78
  kind: TxWaterfallKind;
79
79
  }
80
80
  /**
81
- * Turns items into steps with a running total; a total item shows the sum so far and missing values count as zero.
81
+ * Turns items into steps with a running total; a total item shows the sum so far, or its own value
82
+ * (an opening balance, a measured subtotal) that the next steps start from. Missing values count as zero.
82
83
  */
83
84
  export declare function waterfallSteps(items: readonly TxWaterfallItem[]): TxWaterfallStep[];
84
85
  /** Smallest and largest running total, always including 0. */
85
86
  export declare function waterfallExtent(steps: readonly TxWaterfallStep[]): [number, number];
87
+ /** Box of a data label: horizontal centre, width, top and bottom in px. */
88
+ export interface TxWaterfallLabelBox {
89
+ /** Horizontal centre, in px. */
90
+ x: number;
91
+ /** Width, in px. */
92
+ width: number;
93
+ /** Top edge, in px. */
94
+ top: number;
95
+ /** Bottom edge, in px. */
96
+ bottom: number;
97
+ /** Totals are placed first, so they win a collision. */
98
+ total: boolean;
99
+ }
100
+ /** Which data labels to draw: totals first, then left to right, leaving out any label that overlaps a kept one. */
101
+ export declare function visibleLabels(boxes: readonly TxWaterfallLabelBox[], gap?: number): boolean[];
86
102
  /**
87
103
  * `<tx-waterfall-chart>` — how a starting value turns into a result step by step: each bar floats from the running total, increases and decreases in their own colours, total bars close a section. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
88
104
  * @see https://tectra-ng.com/components/waterfall-chart
@@ -92,11 +108,11 @@ export declare class TxWaterfallChart {
92
108
  private locale;
93
109
  private host;
94
110
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
95
- /** `{ label, value?, total?, color? }[]` — a step adds `value` to the running total; `total: true` draws the running total from zero instead. An empty list shows "No data" */
111
+ /** `{ label, value?, total?, color? }[]` — a step adds `value` to the running total; `total: true` draws the running total from zero instead, or its own `value` (an opening balance, a measured subtotal) that the next steps start from. An empty list shows "No data" */
96
112
  readonly items: import("@angular/core").InputSignal<readonly TxWaterfallItem[] | null | undefined>;
97
113
  /** Height in px (350), or a CSS size such as `'100%'` of a parent with a definite height */
98
114
  readonly height: import("@angular/core").InputSignal<TxChartHeight>;
99
- /** Writes the signed change (or the total) above or below each bar (on by default) */
115
+ /** Writes the signed change (or the total) above or below each bar (on by default); a label wider than its column turns compact (`+$36.4K`), one that still overlaps another is left out, totals first */
100
116
  readonly dataLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
101
117
  /** Draws a dashed line from each bar's end to the next bar (on by default) */
102
118
  readonly connectors: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -108,7 +124,7 @@ export declare class TxWaterfallChart {
108
124
  readonly legendAlign: import("@angular/core").InputSignal<TxChartLegendAlign>;
109
125
  /** Shows the change and the running total on hover and keyboard focus */
110
126
  readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
111
- /** Value axis, labels and tooltip format: `number`, `integer`, `compact`, `percent` or a function */
127
+ /** Value axis, labels and tooltip format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
112
128
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
113
129
  /** Fixed start of the value axis */
114
130
  readonly yMin: import("@angular/core").InputSignal<number | undefined>;
@@ -161,6 +177,8 @@ export declare class TxWaterfallChart {
161
177
  readonly size: import("@angular/core").WritableSignal<import("@tectra-ng/charts/core").TxChartSize>;
162
178
  readonly valueFormatter: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartValueFormatter>;
163
179
  readonly signed: import("@angular/core").Signal<(value: number) => string>;
180
+ private readonly shortFormatter;
181
+ private readonly shortSigned;
164
182
  readonly layout: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxCartesianLayout>;
165
183
  readonly bars: import("@angular/core").Signal<TxWaterfallChartBar[]>;
166
184
  readonly hoverBand: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartRect | null>;
@@ -181,6 +199,7 @@ export declare class TxWaterfallChart {
181
199
  constructor();
182
200
  onPointer(event: TxChartPointerEvent): void;
183
201
  onNavigate(event: KeyboardEvent): void;
202
+ private labelText;
184
203
  static ɵfac: i0.ɵɵFactoryDeclaration<TxWaterfallChart, never>;
185
204
  static ɵcmp: i0.ɵɵComponentDeclaration<TxWaterfallChart, "tx-waterfall-chart", never, {
186
205
  "items": {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-waterfall.d.ts","names":[],"sources":["../../../../packages/charts/waterfall/src/waterfall-chart.types.ts","../../../../packages/charts/waterfall/src/waterfall-layout.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;;iBAIe,4BAA4B;;EAE3C;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;;;;wBC5EQ,eAAe,gBAAgB,oBAAoB;;wBAcnD,gBAAgB,gBAAgB;;;;;qBCoDnC;mBACM;UAET;UACA;WACC,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;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-waterfall.d.ts","names":[],"sources":["../../../../packages/charts/waterfall/src/waterfall-chart.types.ts","../../../../packages/charts/waterfall/src/waterfall-layout.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;;iBAIe,4BAA4B;;EAE3C;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;;;;;wBCvEQ,eAAe,gBAAgB,oBAAoB;;wBAenD,gBAAgB,gBAAgB;;iBAW/B;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;wBAIc,cAAc,gBAAgB,uBAAuB;;;;;qBC4BxD;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,+BAAK,qBAAA;;WACL,gCAAM,YAAA;;WACN,oCAAU;;WACV,oCAAU;;WACV,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,qCAAW;;WACX,qCAAW,YAAA;;WACX,8BAAI;;WACJ,8BAAI;;WACJ,oCAAU;;WACV,oCAAU;;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AAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
@@ -1,3 +1,3 @@
1
1
  /** Version of the installed `@tectra-ng/charts` package, written in when the package is built. */
2
- export declare const TECTRA_CHARTS_VERSION = "0.4.2";
2
+ export declare const TECTRA_CHARTS_VERSION = "0.4.4";
3
3
  //# sourceMappingURL=tectra-ng-charts.d.ts.map
@@ -7,21 +7,21 @@ import { TxWaterfallChart } from '@tectra-ng/charts/waterfall';
7
7
  ```
8
8
 
9
9
  ```html
10
- <tx-waterfall-chart [items]="[{ label: 'Start', value: 120 }, { label: 'Costs', value: -45 }, { label: 'Result', total: true }]" />
10
+ <tx-waterfall-chart [items]="[{ label: 'Start', value: 120, total: true }, { label: 'Costs', value: -45 }, { label: 'Result', total: true }]" />
11
11
  ```
12
12
 
13
13
  ## Inputs
14
14
  | Name | Description |
15
15
  |---|---|
16
- | items | `{ label, value?, total?, color? }[]` — a step adds `value` to the running total; `total: true` draws the running total from zero instead. An empty list shows "No data" |
16
+ | items | `{ label, value?, total?, color? }[]` — a step adds `value` to the running total; `total: true` draws the running total from zero instead, or its own `value` (an opening balance, a measured subtotal) that the next steps start from. An empty list shows "No data" |
17
17
  | height | Height in px (350), or a CSS size such as `'100%'` of a parent with a definite height |
18
- | dataLabels | Writes the signed change (or the total) above or below each bar (on by default) |
18
+ | dataLabels | Writes the signed change (or the total) above or below each bar (on by default); a label wider than its column turns compact (`+$36.4K`), one that still overlaps another is left out, totals first |
19
19
  | connectors | Draws a dashed line from each bar's end to the next bar (on by default) |
20
20
  | showLegend | Shows the legend of increase, decrease and total when there is more than one kind |
21
21
  | legendPosition | `top`, `bottom`, `left` or `right` |
22
22
  | legendAlign | `start`, `center` or `end` for a top or bottom legend |
23
23
  | showTooltip | Shows the change and the running total on hover and keyboard focus |
24
- | valueFormat | Value axis, labels and tooltip format: `number`, `integer`, `compact`, `percent` or a function |
24
+ | valueFormat | Value axis, labels and tooltip format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
25
25
  | yMin | Fixed start of the value axis |
26
26
  | yMax | Fixed end of the value axis |
27
27
  | xAxisTitle | Title of the category axis |
@@ -57,4 +57,4 @@ import { TxWaterfallChart } from '@tectra-ng/charts/waterfall';
57
57
 
58
58
  ## Notes
59
59
 
60
- The legend only names the colours, so it does not hide anything. Hovering anywhere in a step's column lays a soft band under it and fades the others. Bars grow one after another from their start once and slide to new values; both are off with reduced motion.
60
+ The legend only names the colours, so it does not hide anything. Totals are neutral by default (`chart.waterfall.totalColor`), apart from the increase green and the primary colour. Hovering anywhere in a step's column lays a soft band under it and fades the others. Bars grow one after another from their start once and slide to new values; both are off with reduced motion.