@tectra-ng/charts 0.1.9 → 0.2.1

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