@tectra-ng/charts 0.0.1 → 0.2.0

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 (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -1
  3. package/bar-list/README.md +30 -0
  4. package/boxplot/README.md +62 -0
  5. package/bullet/README.md +53 -0
  6. package/candlestick/README.md +57 -0
  7. package/column/README.md +73 -0
  8. package/combo/README.md +83 -0
  9. package/core/README.md +62 -0
  10. package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
  11. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
  13. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
  14. package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
  15. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
  16. package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
  17. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
  18. package/fesm2022/tectra-ng-charts-column.mjs +1166 -0
  19. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -0
  20. package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
  21. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-charts-core.mjs +3679 -0
  23. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
  25. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
  27. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
  29. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
  31. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-charts-line.mjs +1541 -0
  33. package/fesm2022/tectra-ng-charts-line.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
  35. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-charts-pie.mjs +1059 -0
  37. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
  39. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
  41. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
  43. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
  45. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
  47. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
  49. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
  51. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
  52. package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
  53. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
  54. package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
  55. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
  56. package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
  57. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
  58. package/fesm2022/tectra-ng-charts.mjs +4 -0
  59. package/fesm2022/tectra-ng-charts.mjs.map +1 -0
  60. package/funnel/README.md +53 -0
  61. package/gantt/README.md +53 -0
  62. package/gauge/README.md +41 -0
  63. package/heatmap/README.md +47 -0
  64. package/line/README.md +86 -0
  65. package/org-chart/README.md +57 -0
  66. package/package.json +173 -4
  67. package/pie/README.md +66 -0
  68. package/radar/README.md +64 -0
  69. package/radial-bar/README.md +62 -0
  70. package/range-area/README.md +66 -0
  71. package/rank-line/README.md +51 -0
  72. package/sankey/README.md +52 -0
  73. package/scatter/README.md +71 -0
  74. package/segmented-bar/README.md +35 -0
  75. package/sunburst/README.md +55 -0
  76. package/treemap/README.md +47 -0
  77. package/types/tectra-ng-charts-bar-list.d.ts +724 -0
  78. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
  79. package/types/tectra-ng-charts-boxplot.d.ts +882 -0
  80. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
  81. package/types/tectra-ng-charts-bullet.d.ts +833 -0
  82. package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
  83. package/types/tectra-ng-charts-candlestick.d.ts +854 -0
  84. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
  85. package/types/tectra-ng-charts-column.d.ts +951 -0
  86. package/types/tectra-ng-charts-column.d.ts.map +1 -0
  87. package/types/tectra-ng-charts-combo.d.ts +987 -0
  88. package/types/tectra-ng-charts-combo.d.ts.map +1 -0
  89. package/types/tectra-ng-charts-core.d.ts +859 -0
  90. package/types/tectra-ng-charts-core.d.ts.map +1 -0
  91. package/types/tectra-ng-charts-funnel.d.ts +857 -0
  92. package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
  93. package/types/tectra-ng-charts-gantt.d.ts +884 -0
  94. package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
  95. package/types/tectra-ng-charts-gauge.d.ts +859 -0
  96. package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
  97. package/types/tectra-ng-charts-heatmap.d.ts +914 -0
  98. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
  99. package/types/tectra-ng-charts-line.d.ts +1023 -0
  100. package/types/tectra-ng-charts-line.d.ts.map +1 -0
  101. package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
  102. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
  103. package/types/tectra-ng-charts-pie.d.ts +983 -0
  104. package/types/tectra-ng-charts-pie.d.ts.map +1 -0
  105. package/types/tectra-ng-charts-radar.d.ts +903 -0
  106. package/types/tectra-ng-charts-radar.d.ts.map +1 -0
  107. package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
  108. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
  109. package/types/tectra-ng-charts-range-area.d.ts +897 -0
  110. package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
  111. package/types/tectra-ng-charts-rank-line.d.ts +839 -0
  112. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
  113. package/types/tectra-ng-charts-sankey.d.ts +866 -0
  114. package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
  115. package/types/tectra-ng-charts-scatter.d.ts +987 -0
  116. package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
  117. package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
  118. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
  119. package/types/tectra-ng-charts-sunburst.d.ts +864 -0
  120. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
  121. package/types/tectra-ng-charts-treemap.d.ts +847 -0
  122. package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
  123. package/types/tectra-ng-charts-waterfall.d.ts +869 -0
  124. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
  125. package/types/tectra-ng-charts.d.ts +2 -0
  126. package/types/tectra-ng-charts.d.ts.map +1 -0
  127. package/waterfall/README.md +60 -0
@@ -0,0 +1,809 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
3
+ import { TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartTooltipTemplate, cartesianLayout, chartBandRect, chartNumberFormatter, chartSummary, initialChartSize, injectChartEntrance, readTokenNumber, stepIndex } from "@tectra-ng/charts/core";
4
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
5
+ import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
6
+ import { optionalBoolean } from "@tectra-ng/core/utils";
7
+ import { toStyleObject } from "@tectra-ng/themes";
8
+ function waterfallSteps(items) {
9
+ let running = 0;
10
+ return items.map((item, index) => {
11
+ if (item.total) return {
12
+ index,
13
+ label: item.label,
14
+ kind: "total",
15
+ change: running,
16
+ from: 0,
17
+ to: running,
18
+ color: item.color ?? null
19
+ };
20
+ const change = item.value !== null && item.value !== void 0 && Number.isFinite(item.value) ? item.value : 0;
21
+ const from = running;
22
+ running += change;
23
+ return {
24
+ index,
25
+ label: item.label,
26
+ kind: change < 0 ? "down" : "up",
27
+ change,
28
+ from,
29
+ to: running,
30
+ color: item.color ?? null
31
+ };
32
+ });
33
+ }
34
+ function waterfallExtent(steps) {
35
+ let min = 0;
36
+ let max = 0;
37
+ for (const step of steps) {
38
+ min = Math.min(min, step.from, step.to);
39
+ max = Math.max(max, step.from, step.to);
40
+ }
41
+ return [min, max];
42
+ }
43
+ const DEFAULT_WIDTH = .56;
44
+ const LABEL_GAP = 4;
45
+ var TxWaterfallChart = class TxWaterfallChart {
46
+ locale = inject(TxLocaleService);
47
+ host = inject(ElementRef);
48
+ translations = injectTranslations();
49
+ items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
50
+ height = input(350, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
51
+ dataLabels = input(true, {
52
+ ...ngDevMode ? { debugName: "dataLabels" } : /* istanbul ignore next */ {},
53
+ transform: booleanAttribute
54
+ });
55
+ connectors = input(true, {
56
+ ...ngDevMode ? { debugName: "connectors" } : /* istanbul ignore next */ {},
57
+ transform: booleanAttribute
58
+ });
59
+ showLegend = input(true, {
60
+ ...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
61
+ transform: booleanAttribute
62
+ });
63
+ legendPosition = input("top", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
64
+ legendAlign = input("start", ...ngDevMode ? [{ debugName: "legendAlign" }] : /* istanbul ignore next */ []);
65
+ showTooltip = input(true, {
66
+ ...ngDevMode ? { debugName: "showTooltip" } : /* istanbul ignore next */ {},
67
+ transform: booleanAttribute
68
+ });
69
+ valueFormat = input("number", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
70
+ yMin = input(void 0, ...ngDevMode ? [{ debugName: "yMin" }] : /* istanbul ignore next */ []);
71
+ yMax = input(void 0, ...ngDevMode ? [{ debugName: "yMax" }] : /* istanbul ignore next */ []);
72
+ xAxisTitle = input("", ...ngDevMode ? [{ debugName: "xAxisTitle" }] : /* istanbul ignore next */ []);
73
+ yAxisTitle = input("", ...ngDevMode ? [{ debugName: "yAxisTitle" }] : /* istanbul ignore next */ []);
74
+ grid = input("value", ...ngDevMode ? [{ debugName: "grid" }] : /* istanbul ignore next */ []);
75
+ labelMode = input("auto", ...ngDevMode ? [{ debugName: "labelMode" }] : /* istanbul ignore next */ []);
76
+ maxLabelWidth = input(220, ...ngDevMode ? [{ debugName: "maxLabelWidth" }] : /* istanbul ignore next */ []);
77
+ toolbar = input(true, {
78
+ ...ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {},
79
+ transform: booleanAttribute
80
+ });
81
+ loading = input(false, {
82
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
83
+ transform: booleanAttribute
84
+ });
85
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
86
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
87
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
88
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
89
+ unstyled = input(void 0, {
90
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
91
+ transform: optionalBoolean
92
+ });
93
+ barClick = output();
94
+ tooltipTemplate = contentChild(TxChartTooltipTemplate, ...ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []);
95
+ frame = viewChild(TxChartFrame, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
96
+ isUnstyled = injectUnstyled(this.unstyled);
97
+ passThrough = injectPassThrough("waterfallChart", this, this.pt, this.ptOptions);
98
+ tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-chart"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
99
+ hostStyle = computed(() => ({
100
+ ...this.tokenStyle(),
101
+ ...this.passThrough().root?.style
102
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
103
+ entrance = injectChartEntrance();
104
+ morph = signal(false, ...ngDevMode ? [{ debugName: "morph" }] : /* istanbul ignore next */ []);
105
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
106
+ barWidth = signal(DEFAULT_WIDTH, ...ngDevMode ? [{ debugName: "barWidth" }] : /* istanbul ignore next */ []);
107
+ intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
108
+ list = computed(() => this.items() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
109
+ steps = computed(() => waterfallSteps(this.list()), ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
110
+ isEmpty = computed(() => !this.list().length, ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
111
+ kinds = computed(() => new Set(this.steps().map((step) => step.kind)), ...ngDevMode ? [{ debugName: "kinds" }] : /* istanbul ignore next */ []);
112
+ legendShown = computed(() => this.showLegend() && this.kinds().size > 1, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
113
+ size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, void 0, this.toolbar()), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
114
+ valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()), ...ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []);
115
+ signed = computed(() => {
116
+ const format = this.valueFormatter();
117
+ return (value) => value > 0 ? `+${format(value)}` : value < 0 ? `−${format(-value)}` : format(value);
118
+ }, ...ngDevMode ? [{ debugName: "signed" }] : /* istanbul ignore next */ []);
119
+ layout = computed(() => {
120
+ const { width, height } = this.size();
121
+ const labels = this.steps().map((step) => step.label);
122
+ return cartesianLayout({
123
+ width,
124
+ height,
125
+ intl: this.intl(),
126
+ category: {
127
+ kind: "band",
128
+ labels,
129
+ count: labels.length,
130
+ labelMode: this.labelMode(),
131
+ maxLabelWidth: this.maxLabelWidth(),
132
+ title: this.xAxisTitle() || void 0
133
+ },
134
+ value: {
135
+ extent: waterfallExtent(this.steps()),
136
+ format: this.valueFormat(),
137
+ includeZero: true,
138
+ min: this.yMin(),
139
+ max: this.yMax(),
140
+ title: this.yAxisTitle() || void 0
141
+ },
142
+ grid: this.grid()
143
+ });
144
+ }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
145
+ bars = computed(() => {
146
+ const layout = this.layout();
147
+ const band = layout.category;
148
+ const width = band.bandwidth * Math.min(1, Math.max(.05, this.barWidth()));
149
+ const scale = layout.value;
150
+ return this.steps().map((step) => {
151
+ const a = scale.map(step.from);
152
+ const b = scale.map(step.to);
153
+ const y = Math.min(a, b);
154
+ const height = Math.max(1, Math.abs(b - a));
155
+ const above = step.kind === "total" ? step.to >= 0 : step.change >= 0;
156
+ return {
157
+ ...step,
158
+ key: `${step.index}:${step.label}`,
159
+ x: band.center(step.index) - width / 2,
160
+ y,
161
+ width,
162
+ height,
163
+ text: this.dataLabels() ? step.kind === "total" ? this.valueFormatter()(step.to) : this.signed()(step.change) : null,
164
+ textY: above ? y - LABEL_GAP : y + height + LABEL_GAP,
165
+ above
166
+ };
167
+ });
168
+ }, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
169
+ hoverBand = computed(() => {
170
+ const index = this.active();
171
+ return index === null ? null : chartBandRect(this.layout().category, index, this.layout().plot);
172
+ }, ...ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []);
173
+ connectorLines = computed(() => {
174
+ if (!this.connectors()) return [];
175
+ const bars = this.bars();
176
+ const scale = this.layout().value;
177
+ return bars.slice(0, -1).map((bar, index) => {
178
+ const next = bars[index + 1];
179
+ return {
180
+ key: `${bar.key}>${next.key}`,
181
+ x1: bar.x + bar.width,
182
+ x2: next.x,
183
+ y: scale.map(bar.to)
184
+ };
185
+ });
186
+ }, ...ngDevMode ? [{ debugName: "connectorLines" }] : /* istanbul ignore next */ []);
187
+ legendItems = computed(() => {
188
+ const t = this.translations();
189
+ const names = {
190
+ up: t.chartIncrease,
191
+ down: t.chartDecrease,
192
+ total: t.chartTotal
193
+ };
194
+ return [
195
+ "up",
196
+ "down",
197
+ "total"
198
+ ].filter((kind) => this.kinds().has(kind)).map((kind) => ({
199
+ key: kind,
200
+ label: names[kind],
201
+ color: `var(--tx-chart-waterfall-${kind}-color)`
202
+ }));
203
+ }, ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
204
+ tooltip = computed(() => {
205
+ const index = this.active();
206
+ if (index === null || !this.showTooltip()) return null;
207
+ const bar = this.bars()[index];
208
+ if (!bar) return null;
209
+ const t = this.translations();
210
+ const color = bar.color ?? `var(--tx-chart-waterfall-${bar.kind}-color)`;
211
+ const rows = bar.kind === "total" ? [{
212
+ label: t.chartTotal,
213
+ value: this.valueFormatter()(bar.to),
214
+ color,
215
+ raw: bar.to,
216
+ seriesIndex: 0,
217
+ active: true
218
+ }] : [{
219
+ label: t.chartChange,
220
+ value: this.signed()(bar.change),
221
+ color,
222
+ raw: bar.change,
223
+ seriesIndex: 0,
224
+ active: true
225
+ }, {
226
+ label: t.chartTotal,
227
+ value: this.valueFormatter()(bar.to),
228
+ color: "transparent",
229
+ raw: bar.to,
230
+ seriesIndex: 1
231
+ }];
232
+ return {
233
+ title: bar.label,
234
+ rows,
235
+ index,
236
+ x: bar.x + bar.width / 2,
237
+ y: bar.above ? bar.y : bar.y + bar.height,
238
+ placement: bar.above ? "top" : "bottom"
239
+ };
240
+ }, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
241
+ summary = computed(() => {
242
+ const t = this.translations();
243
+ const steps = this.steps();
244
+ const last = steps[steps.length - 1];
245
+ const text = chartSummary(t, this.intl(), t.chartWaterfall, 1, steps.length, null);
246
+ const withTotal = last ? `${text}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(last.to)}` : text;
247
+ return this.ariaLabel() ? `${this.ariaLabel()}. ${withTotal}` : withTotal;
248
+ }, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
249
+ dataTable = computed(() => {
250
+ const t = this.translations();
251
+ return {
252
+ columns: [{
253
+ key: "change",
254
+ label: t.chartChange
255
+ }, {
256
+ key: "total",
257
+ label: t.chartTotal
258
+ }],
259
+ rows: this.steps().map((step) => ({
260
+ label: step.label,
261
+ cells: [step.kind === "total" ? "—" : this.signed()(step.change), this.valueFormatter()(step.to)]
262
+ }))
263
+ };
264
+ }, ...ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []);
265
+ constructor() {
266
+ afterNextRender(() => setTimeout(() => this.morph.set(true), 120));
267
+ afterRenderEffect(() => {
268
+ this.dt();
269
+ const next = readTokenNumber(this.host.nativeElement, "--tx-chart-bar-width", DEFAULT_WIDTH);
270
+ if (next !== this.barWidth()) this.barWidth.set(next);
271
+ });
272
+ }
273
+ onPointer(event) {
274
+ if (event.type === "leave") {
275
+ this.active.set(null);
276
+ return;
277
+ }
278
+ const plot = this.layout().plot;
279
+ const band = this.layout().category;
280
+ const index = event.x >= plot.left && event.x <= plot.left + plot.width && event.y >= plot.top - 8 && event.y <= plot.top + plot.height + 8 ? band.indexAt(event.x) : -1;
281
+ this.active.set(index >= 0 ? index : null);
282
+ if (event.type === "click" && index >= 0) {
283
+ const step = this.steps()[index];
284
+ this.barClick.emit({
285
+ index,
286
+ label: step.label,
287
+ change: step.change,
288
+ total: step.to,
289
+ kind: step.kind
290
+ });
291
+ }
292
+ }
293
+ onNavigate(event) {
294
+ if (event.key === "Escape") {
295
+ this.active.set(null);
296
+ return;
297
+ }
298
+ const index = stepIndex(event.key, this.active() ?? -1, this.steps().length);
299
+ if (index < 0) return;
300
+ this.active.set(index);
301
+ const step = this.steps()[index];
302
+ const t = this.translations();
303
+ this.frame()?.announce(step.kind === "total" ? `${step.label}: ${t.chartTotal} ${this.valueFormatter()(step.to)}` : `${step.label}: ${this.signed()(step.change)}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(step.to)}`);
304
+ }
305
+ static ɵfac = i0.ɵɵngDeclareFactory({
306
+ minVersion: "12.0.0",
307
+ version: "22.2.3",
308
+ ngImport: i0,
309
+ type: TxWaterfallChart,
310
+ deps: [],
311
+ target: i0.ɵɵFactoryTarget.Component
312
+ });
313
+ static ɵcmp = i0.ɵɵngDeclareComponent({
314
+ minVersion: "17.0.0",
315
+ version: "22.2.3",
316
+ type: TxWaterfallChart,
317
+ isStandalone: true,
318
+ selector: "tx-waterfall-chart",
319
+ inputs: {
320
+ items: {
321
+ classPropertyName: "items",
322
+ publicName: "items",
323
+ isSignal: true,
324
+ isRequired: false,
325
+ transformFunction: null
326
+ },
327
+ height: {
328
+ classPropertyName: "height",
329
+ publicName: "height",
330
+ isSignal: true,
331
+ isRequired: false,
332
+ transformFunction: null
333
+ },
334
+ dataLabels: {
335
+ classPropertyName: "dataLabels",
336
+ publicName: "dataLabels",
337
+ isSignal: true,
338
+ isRequired: false,
339
+ transformFunction: null
340
+ },
341
+ connectors: {
342
+ classPropertyName: "connectors",
343
+ publicName: "connectors",
344
+ isSignal: true,
345
+ isRequired: false,
346
+ transformFunction: null
347
+ },
348
+ showLegend: {
349
+ classPropertyName: "showLegend",
350
+ publicName: "showLegend",
351
+ isSignal: true,
352
+ isRequired: false,
353
+ transformFunction: null
354
+ },
355
+ legendPosition: {
356
+ classPropertyName: "legendPosition",
357
+ publicName: "legendPosition",
358
+ isSignal: true,
359
+ isRequired: false,
360
+ transformFunction: null
361
+ },
362
+ legendAlign: {
363
+ classPropertyName: "legendAlign",
364
+ publicName: "legendAlign",
365
+ isSignal: true,
366
+ isRequired: false,
367
+ transformFunction: null
368
+ },
369
+ showTooltip: {
370
+ classPropertyName: "showTooltip",
371
+ publicName: "showTooltip",
372
+ isSignal: true,
373
+ isRequired: false,
374
+ transformFunction: null
375
+ },
376
+ valueFormat: {
377
+ classPropertyName: "valueFormat",
378
+ publicName: "valueFormat",
379
+ isSignal: true,
380
+ isRequired: false,
381
+ transformFunction: null
382
+ },
383
+ yMin: {
384
+ classPropertyName: "yMin",
385
+ publicName: "yMin",
386
+ isSignal: true,
387
+ isRequired: false,
388
+ transformFunction: null
389
+ },
390
+ yMax: {
391
+ classPropertyName: "yMax",
392
+ publicName: "yMax",
393
+ isSignal: true,
394
+ isRequired: false,
395
+ transformFunction: null
396
+ },
397
+ xAxisTitle: {
398
+ classPropertyName: "xAxisTitle",
399
+ publicName: "xAxisTitle",
400
+ isSignal: true,
401
+ isRequired: false,
402
+ transformFunction: null
403
+ },
404
+ yAxisTitle: {
405
+ classPropertyName: "yAxisTitle",
406
+ publicName: "yAxisTitle",
407
+ isSignal: true,
408
+ isRequired: false,
409
+ transformFunction: null
410
+ },
411
+ grid: {
412
+ classPropertyName: "grid",
413
+ publicName: "grid",
414
+ isSignal: true,
415
+ isRequired: false,
416
+ transformFunction: null
417
+ },
418
+ labelMode: {
419
+ classPropertyName: "labelMode",
420
+ publicName: "labelMode",
421
+ isSignal: true,
422
+ isRequired: false,
423
+ transformFunction: null
424
+ },
425
+ maxLabelWidth: {
426
+ classPropertyName: "maxLabelWidth",
427
+ publicName: "maxLabelWidth",
428
+ isSignal: true,
429
+ isRequired: false,
430
+ transformFunction: null
431
+ },
432
+ toolbar: {
433
+ classPropertyName: "toolbar",
434
+ publicName: "toolbar",
435
+ isSignal: true,
436
+ isRequired: false,
437
+ transformFunction: null
438
+ },
439
+ loading: {
440
+ classPropertyName: "loading",
441
+ publicName: "loading",
442
+ isSignal: true,
443
+ isRequired: false,
444
+ transformFunction: null
445
+ },
446
+ ariaLabel: {
447
+ classPropertyName: "ariaLabel",
448
+ publicName: "ariaLabel",
449
+ isSignal: true,
450
+ isRequired: false,
451
+ transformFunction: null
452
+ },
453
+ dt: {
454
+ classPropertyName: "dt",
455
+ publicName: "dt",
456
+ isSignal: true,
457
+ isRequired: false,
458
+ transformFunction: null
459
+ },
460
+ pt: {
461
+ classPropertyName: "pt",
462
+ publicName: "pt",
463
+ isSignal: true,
464
+ isRequired: false,
465
+ transformFunction: null
466
+ },
467
+ ptOptions: {
468
+ classPropertyName: "ptOptions",
469
+ publicName: "ptOptions",
470
+ isSignal: true,
471
+ isRequired: false,
472
+ transformFunction: null
473
+ },
474
+ unstyled: {
475
+ classPropertyName: "unstyled",
476
+ publicName: "unstyled",
477
+ isSignal: true,
478
+ isRequired: false,
479
+ transformFunction: null
480
+ }
481
+ },
482
+ outputs: { barClick: "barClick" },
483
+ host: {
484
+ properties: {
485
+ "class": "passThrough().root?.class",
486
+ "style": "hostStyle()",
487
+ "attr.data-styled": "!isUnstyled() || null",
488
+ "class.tx-waterfall-chart--fill": "typeof height() === \"string\"",
489
+ "class.tx-waterfall-chart--entering": "entrance.active()",
490
+ "class.tx-waterfall-chart--morph": "morph()",
491
+ "class.tx-waterfall-chart--active": "active() !== null"
492
+ },
493
+ classAttribute: "tx-waterfall-chart"
494
+ },
495
+ queries: [{
496
+ propertyName: "tooltipTemplate",
497
+ first: true,
498
+ predicate: TxChartTooltipTemplate,
499
+ descendants: true,
500
+ isSignal: true
501
+ }],
502
+ viewQueries: [{
503
+ propertyName: "frame",
504
+ first: true,
505
+ predicate: TxChartFrame,
506
+ descendants: true,
507
+ isSignal: true
508
+ }],
509
+ ngImport: i0,
510
+ template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
511
+ styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{clip-path:inset(0 round var(--tx-chart-bar-radius));transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=up]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-up-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=down]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-down-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=total]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-total-color))}:host([data-styled]) .tx-waterfall-chart__connector{stroke:var(--tx-chart-waterfall-connector-color);stroke-opacity:1;stroke-width:var(--tx-chart-waterfall-connector-width);stroke-dasharray:var(--tx-chart-waterfall-connector-dash)}:host([data-styled]) .tx-waterfall-chart__label{fill:var(--tx-chart-bar-outside-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar:not(.tx-waterfall-chart__bar--active){opacity:var(--tx-chart-waterfall-dimmed-opacity)}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-waterfall-chart--morph) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__bar{animation:tx-waterfall-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-waterfall-chart-order, 0) * var(--tx-chart-motion-stagger) * 2)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__connectors,:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__labels{animation:tx-waterfall-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-waterfall-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-waterfall-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-waterfall-chart__bar,:host([data-styled]) .tx-waterfall-chart__connectors,:host([data-styled]) .tx-waterfall-chart__labels{transition:none;animation:none}}\n"],
512
+ dependencies: [
513
+ {
514
+ kind: "component",
515
+ type: TxChartFrame,
516
+ selector: "tx-chart-frame",
517
+ inputs: [
518
+ "height",
519
+ "size",
520
+ "legendItems",
521
+ "showLegend",
522
+ "legendPosition",
523
+ "legendAlign",
524
+ "legendVariant",
525
+ "legendToggle",
526
+ "legendTemplate",
527
+ "empty",
528
+ "loading",
529
+ "emptyIcon",
530
+ "summary",
531
+ "table",
532
+ "tooltip",
533
+ "tooltipTemplate",
534
+ "tooltipPlacement",
535
+ "panelStyle",
536
+ "parts",
537
+ "styled",
538
+ "interactive",
539
+ "actionKeys",
540
+ "zoomable",
541
+ "zoomedIn",
542
+ "plotHeight",
543
+ "toolbar",
544
+ "exportName"
545
+ ],
546
+ outputs: [
547
+ "sizeChange",
548
+ "pointer",
549
+ "navigate",
550
+ "legendToggled",
551
+ "legendHovered",
552
+ "tooltipClosed",
553
+ "zoomed",
554
+ "panned",
555
+ "zoomReset"
556
+ ]
557
+ },
558
+ {
559
+ kind: "component",
560
+ type: TxChartAxes,
561
+ selector: "g[tx-chart-axes]",
562
+ inputs: [
563
+ "tx-chart-axes",
564
+ "gridPart",
565
+ "axisPart"
566
+ ]
567
+ },
568
+ {
569
+ kind: "component",
570
+ type: TxChartHoverBand,
571
+ selector: "g[tx-chart-hover-band]",
572
+ inputs: ["tx-chart-hover-band", "part"]
573
+ }
574
+ ],
575
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
576
+ });
577
+ };
578
+ i0.ɵɵngDeclareClassMetadata({
579
+ minVersion: "12.0.0",
580
+ version: "22.2.3",
581
+ ngImport: i0,
582
+ type: TxWaterfallChart,
583
+ decorators: [{
584
+ type: Component,
585
+ args: [{
586
+ selector: "tx-waterfall-chart",
587
+ imports: [
588
+ TxChartFrame,
589
+ TxChartAxes,
590
+ TxChartHoverBand
591
+ ],
592
+ changeDetection: ChangeDetectionStrategy.OnPush,
593
+ host: {
594
+ class: "tx-waterfall-chart",
595
+ "[class]": "passThrough().root?.class",
596
+ "[style]": "hostStyle()",
597
+ "[attr.data-styled]": "!isUnstyled() || null",
598
+ "[class.tx-waterfall-chart--fill]": "typeof height() === \"string\"",
599
+ "[class.tx-waterfall-chart--entering]": "entrance.active()",
600
+ "[class.tx-waterfall-chart--morph]": "morph()",
601
+ "[class.tx-waterfall-chart--active]": "active() !== null"
602
+ },
603
+ template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
604
+ styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{clip-path:inset(0 round var(--tx-chart-bar-radius));transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=up]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-up-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=down]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-down-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=total]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-total-color))}:host([data-styled]) .tx-waterfall-chart__connector{stroke:var(--tx-chart-waterfall-connector-color);stroke-opacity:1;stroke-width:var(--tx-chart-waterfall-connector-width);stroke-dasharray:var(--tx-chart-waterfall-connector-dash)}:host([data-styled]) .tx-waterfall-chart__label{fill:var(--tx-chart-bar-outside-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar:not(.tx-waterfall-chart__bar--active){opacity:var(--tx-chart-waterfall-dimmed-opacity)}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-waterfall-chart--morph) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__bar{animation:tx-waterfall-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-waterfall-chart-order, 0) * var(--tx-chart-motion-stagger) * 2)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__connectors,:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__labels{animation:tx-waterfall-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-waterfall-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-waterfall-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-waterfall-chart__bar,:host([data-styled]) .tx-waterfall-chart__connectors,:host([data-styled]) .tx-waterfall-chart__labels{transition:none;animation:none}}\n"]
605
+ }]
606
+ }],
607
+ ctorParameters: () => [],
608
+ propDecorators: {
609
+ items: [{
610
+ type: i0.Input,
611
+ args: [{
612
+ isSignal: true,
613
+ alias: "items",
614
+ required: false
615
+ }]
616
+ }],
617
+ height: [{
618
+ type: i0.Input,
619
+ args: [{
620
+ isSignal: true,
621
+ alias: "height",
622
+ required: false
623
+ }]
624
+ }],
625
+ dataLabels: [{
626
+ type: i0.Input,
627
+ args: [{
628
+ isSignal: true,
629
+ alias: "dataLabels",
630
+ required: false
631
+ }]
632
+ }],
633
+ connectors: [{
634
+ type: i0.Input,
635
+ args: [{
636
+ isSignal: true,
637
+ alias: "connectors",
638
+ required: false
639
+ }]
640
+ }],
641
+ showLegend: [{
642
+ type: i0.Input,
643
+ args: [{
644
+ isSignal: true,
645
+ alias: "showLegend",
646
+ required: false
647
+ }]
648
+ }],
649
+ legendPosition: [{
650
+ type: i0.Input,
651
+ args: [{
652
+ isSignal: true,
653
+ alias: "legendPosition",
654
+ required: false
655
+ }]
656
+ }],
657
+ legendAlign: [{
658
+ type: i0.Input,
659
+ args: [{
660
+ isSignal: true,
661
+ alias: "legendAlign",
662
+ required: false
663
+ }]
664
+ }],
665
+ showTooltip: [{
666
+ type: i0.Input,
667
+ args: [{
668
+ isSignal: true,
669
+ alias: "showTooltip",
670
+ required: false
671
+ }]
672
+ }],
673
+ valueFormat: [{
674
+ type: i0.Input,
675
+ args: [{
676
+ isSignal: true,
677
+ alias: "valueFormat",
678
+ required: false
679
+ }]
680
+ }],
681
+ yMin: [{
682
+ type: i0.Input,
683
+ args: [{
684
+ isSignal: true,
685
+ alias: "yMin",
686
+ required: false
687
+ }]
688
+ }],
689
+ yMax: [{
690
+ type: i0.Input,
691
+ args: [{
692
+ isSignal: true,
693
+ alias: "yMax",
694
+ required: false
695
+ }]
696
+ }],
697
+ xAxisTitle: [{
698
+ type: i0.Input,
699
+ args: [{
700
+ isSignal: true,
701
+ alias: "xAxisTitle",
702
+ required: false
703
+ }]
704
+ }],
705
+ yAxisTitle: [{
706
+ type: i0.Input,
707
+ args: [{
708
+ isSignal: true,
709
+ alias: "yAxisTitle",
710
+ required: false
711
+ }]
712
+ }],
713
+ grid: [{
714
+ type: i0.Input,
715
+ args: [{
716
+ isSignal: true,
717
+ alias: "grid",
718
+ required: false
719
+ }]
720
+ }],
721
+ labelMode: [{
722
+ type: i0.Input,
723
+ args: [{
724
+ isSignal: true,
725
+ alias: "labelMode",
726
+ required: false
727
+ }]
728
+ }],
729
+ maxLabelWidth: [{
730
+ type: i0.Input,
731
+ args: [{
732
+ isSignal: true,
733
+ alias: "maxLabelWidth",
734
+ required: false
735
+ }]
736
+ }],
737
+ toolbar: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "toolbar",
742
+ required: false
743
+ }]
744
+ }],
745
+ loading: [{
746
+ type: i0.Input,
747
+ args: [{
748
+ isSignal: true,
749
+ alias: "loading",
750
+ required: false
751
+ }]
752
+ }],
753
+ ariaLabel: [{
754
+ type: i0.Input,
755
+ args: [{
756
+ isSignal: true,
757
+ alias: "ariaLabel",
758
+ required: false
759
+ }]
760
+ }],
761
+ dt: [{
762
+ type: i0.Input,
763
+ args: [{
764
+ isSignal: true,
765
+ alias: "dt",
766
+ required: false
767
+ }]
768
+ }],
769
+ pt: [{
770
+ type: i0.Input,
771
+ args: [{
772
+ isSignal: true,
773
+ alias: "pt",
774
+ required: false
775
+ }]
776
+ }],
777
+ ptOptions: [{
778
+ type: i0.Input,
779
+ args: [{
780
+ isSignal: true,
781
+ alias: "ptOptions",
782
+ required: false
783
+ }]
784
+ }],
785
+ unstyled: [{
786
+ type: i0.Input,
787
+ args: [{
788
+ isSignal: true,
789
+ alias: "unstyled",
790
+ required: false
791
+ }]
792
+ }],
793
+ barClick: [{
794
+ type: i0.Output,
795
+ args: ["barClick"]
796
+ }],
797
+ tooltipTemplate: [{
798
+ type: i0.ContentChild,
799
+ args: [i0.forwardRef(() => TxChartTooltipTemplate), { isSignal: true }]
800
+ }],
801
+ frame: [{
802
+ type: i0.ViewChild,
803
+ args: [i0.forwardRef(() => TxChartFrame), { isSignal: true }]
804
+ }]
805
+ }
806
+ });
807
+ export { TxWaterfallChart, waterfallExtent, waterfallSteps };
808
+
809
+ //# sourceMappingURL=tectra-ng-charts-waterfall.mjs.map