@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,1218 @@
1
+ import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, areaPath, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, linePath, normalizeSeries, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, toggleKey } from "@tectra-ng/charts/core";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
4
+ import { uniqueId } from "@tectra-ng/core/a11y";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { TxLocaleService, formatMessage, injectTranslations } from "@tectra-ng/core/i18n";
7
+ import { optionalBoolean } from "@tectra-ng/core/utils";
8
+ import { toStyleObject } from "@tectra-ng/themes";
9
+ function baseOf(scale) {
10
+ const [d0, d1] = scale.domain;
11
+ return d0 > 0 ? d0 : d1 < 0 ? d1 : 0;
12
+ }
13
+ function comboSlots(columns, axes, stacked) {
14
+ const slots = /* @__PURE__ */ new Map();
15
+ if (!stacked) {
16
+ columns.forEach((series, slot) => slots.set(series, slot));
17
+ return slots;
18
+ }
19
+ const used = [...new Set(columns.map((series) => axes[series] ?? 0))];
20
+ columns.forEach((series) => slots.set(series, used.indexOf(axes[series] ?? 0)));
21
+ return slots;
22
+ }
23
+ function comboBars(input) {
24
+ const { band, columns, stacked } = input;
25
+ const slots = comboSlots(columns, input.axes, stacked);
26
+ const slotCount = Math.max(1, new Set(slots.values()).size);
27
+ const group = band.bandwidth * Math.min(1, Math.max(.05, input.widthRatio));
28
+ const slotSize = (group - input.groupGap * (slotCount - 1)) / slotCount;
29
+ const outermost = /* @__PURE__ */ new Map();
30
+ if (stacked) for (const series of columns) input.stackedValues[series]?.forEach((entry, index) => {
31
+ if (!entry || entry[0] === entry[1]) return;
32
+ outermost.set(`${slots.get(series)}:${index}:${entry[1] > entry[0] ? 1 : -1}`, series);
33
+ });
34
+ const bars = [];
35
+ for (const series of columns) {
36
+ const scale = input.scales[input.axes[series] ?? 0] ?? input.scales[0];
37
+ const slot = slots.get(series) ?? 0;
38
+ (input.values[series] ?? []).forEach((raw, index) => {
39
+ if (raw === null || raw === void 0) return;
40
+ const [from, to] = stacked ? input.stackedValues[series]?.[index] ?? [0, 0] : [baseOf(scale), raw];
41
+ if (from === to) return;
42
+ const a = scale.map(from);
43
+ const b = scale.map(to);
44
+ const positive = to >= from;
45
+ const isEnd = stacked ? outermost.get(`${slot}:${index}:${positive ? 1 : -1}`) === series : true;
46
+ bars.push({
47
+ key: `${series}:${index}`,
48
+ series,
49
+ index,
50
+ x: band.center(index) - group / 2 + slot * (slotSize + input.groupGap),
51
+ y: Math.min(a, b),
52
+ width: slotSize,
53
+ height: Math.abs(b - a),
54
+ color: seriesColor(input.colors[series], series),
55
+ end: isEnd ? positive ? "top" : "bottom" : null,
56
+ dir: positive ? "up" : "down"
57
+ });
58
+ });
59
+ }
60
+ return bars;
61
+ }
62
+ const DEFAULT_WIDTH = .56;
63
+ const DEFAULT_GROUP_GAP = 3;
64
+ const EDGE_SLACK = 8;
65
+ var TxComboChart = class TxComboChart {
66
+ locale = inject(TxLocaleService);
67
+ host = inject(ElementRef);
68
+ translations = injectTranslations();
69
+ series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
70
+ categories = input([], ...ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []);
71
+ annotations = input([], ...ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []);
72
+ height = input(350, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
73
+ stacked = input(false, {
74
+ ...ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {},
75
+ transform: booleanAttribute
76
+ });
77
+ curve = input("smooth", ...ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []);
78
+ markers = input(true, {
79
+ ...ngDevMode ? { debugName: "markers" } : /* istanbul ignore next */ {},
80
+ transform: booleanAttribute
81
+ });
82
+ showLegend = input(true, {
83
+ ...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
84
+ transform: booleanAttribute
85
+ });
86
+ legendPosition = input("top", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
87
+ legendAlign = input("start", ...ngDevMode ? [{ debugName: "legendAlign" }] : /* istanbul ignore next */ []);
88
+ legendVariant = input("dot", ...ngDevMode ? [{ debugName: "legendVariant" }] : /* istanbul ignore next */ []);
89
+ showTooltip = input(true, {
90
+ ...ngDevMode ? { debugName: "showTooltip" } : /* istanbul ignore next */ {},
91
+ transform: booleanAttribute
92
+ });
93
+ tooltipMode = input("shared", ...ngDevMode ? [{ debugName: "tooltipMode" }] : /* istanbul ignore next */ []);
94
+ tooltipFormatter = input(null, ...ngDevMode ? [{ debugName: "tooltipFormatter" }] : /* istanbul ignore next */ []);
95
+ valueFormat = input("number", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
96
+ y2ValueFormat = input(void 0, ...ngDevMode ? [{ debugName: "y2ValueFormat" }] : /* istanbul ignore next */ []);
97
+ yScale = input("linear", ...ngDevMode ? [{ debugName: "yScale" }] : /* istanbul ignore next */ []);
98
+ yMin = input(void 0, ...ngDevMode ? [{ debugName: "yMin" }] : /* istanbul ignore next */ []);
99
+ yMax = input(void 0, ...ngDevMode ? [{ debugName: "yMax" }] : /* istanbul ignore next */ []);
100
+ y2Min = input(void 0, ...ngDevMode ? [{ debugName: "y2Min" }] : /* istanbul ignore next */ []);
101
+ y2Max = input(void 0, ...ngDevMode ? [{ debugName: "y2Max" }] : /* istanbul ignore next */ []);
102
+ xAxisTitle = input("", ...ngDevMode ? [{ debugName: "xAxisTitle" }] : /* istanbul ignore next */ []);
103
+ yAxisTitle = input("", ...ngDevMode ? [{ debugName: "yAxisTitle" }] : /* istanbul ignore next */ []);
104
+ y2AxisTitle = input("", ...ngDevMode ? [{ debugName: "y2AxisTitle" }] : /* istanbul ignore next */ []);
105
+ grid = input("value", ...ngDevMode ? [{ debugName: "grid" }] : /* istanbul ignore next */ []);
106
+ xAxisPosition = input("bottom", ...ngDevMode ? [{ debugName: "xAxisPosition" }] : /* istanbul ignore next */ []);
107
+ yAxisPosition = input("left", ...ngDevMode ? [{ debugName: "yAxisPosition" }] : /* istanbul ignore next */ []);
108
+ labelMode = input("auto", ...ngDevMode ? [{ debugName: "labelMode" }] : /* istanbul ignore next */ []);
109
+ maxLabelWidth = input(220, ...ngDevMode ? [{ debugName: "maxLabelWidth" }] : /* istanbul ignore next */ []);
110
+ toolbar = input(true, {
111
+ ...ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {},
112
+ transform: booleanAttribute
113
+ });
114
+ loading = input(false, {
115
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
116
+ transform: booleanAttribute
117
+ });
118
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
119
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
120
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
121
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
122
+ unstyled = input(void 0, {
123
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
124
+ transform: optionalBoolean
125
+ });
126
+ seriesToggle = output();
127
+ pointClick = output();
128
+ legendTemplate = contentChild(TxChartLegendTemplate, ...ngDevMode ? [{ debugName: "legendTemplate" }] : /* istanbul ignore next */ []);
129
+ tooltipTemplate = contentChild(TxChartTooltipTemplate, ...ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []);
130
+ frame = viewChild(TxChartFrame, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
131
+ isUnstyled = injectUnstyled(this.unstyled);
132
+ passThrough = injectPassThrough("comboChart", this, this.pt, this.ptOptions);
133
+ tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-chart"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
134
+ hostStyle = computed(() => ({
135
+ ...this.tokenStyle(),
136
+ ...this.passThrough().root?.style
137
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
138
+ entrance = injectChartEntrance();
139
+ morph = signal(false, ...ngDevMode ? [{ debugName: "morph" }] : /* istanbul ignore next */ []);
140
+ uid = uniqueId("tx-combo-chart");
141
+ hidden = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
142
+ focusedSeries = signal(null, ...ngDevMode ? [{ debugName: "focusedSeries" }] : /* istanbul ignore next */ []);
143
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
144
+ geometry = signal({
145
+ width: DEFAULT_WIDTH,
146
+ gap: DEFAULT_GROUP_GAP
147
+ }, ...ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []);
148
+ intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
149
+ list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
150
+ table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
151
+ keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`), ...ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []);
152
+ types = computed(() => this.list().map((item) => item.type ?? "column"), ...ngDevMode ? [{ debugName: "types" }] : /* istanbul ignore next */ []);
153
+ axes = computed(() => this.list().map((item) => item.axis === "secondary" ? 1 : 0), ...ngDevMode ? [{ debugName: "axes" }] : /* istanbul ignore next */ []);
154
+ hasSecondary = computed(() => this.axes().includes(1), ...ngDevMode ? [{ debugName: "hasSecondary" }] : /* istanbul ignore next */ []);
155
+ visibleIndexes = computed(() => this.keys().flatMap((key, index) => this.hidden().has(key) ? [] : [index]), ...ngDevMode ? [{ debugName: "visibleIndexes" }] : /* istanbul ignore next */ []);
156
+ columnIndexes = computed(() => this.visibleIndexes().filter((index) => this.types()[index] === "column"), ...ngDevMode ? [{ debugName: "columnIndexes" }] : /* istanbul ignore next */ []);
157
+ lineIndexes = computed(() => this.visibleIndexes().filter((index) => this.types()[index] !== "column"), ...ngDevMode ? [{ debugName: "lineIndexes" }] : /* istanbul ignore next */ []);
158
+ isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
159
+ legendShown = computed(() => this.showLegend() && this.list().length > 1, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
160
+ size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, void 0, this.toolbar()), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
161
+ stackedValues = computed(() => {
162
+ const values = this.table().values;
163
+ if (!this.stacked()) return values.map((row) => row.map(() => null));
164
+ const columns = new Set(this.columnIndexes());
165
+ const result = values.map((row) => row.map(() => null));
166
+ for (const axis of [0, 1]) {
167
+ const rows = values.map((row, index) => columns.has(index) && this.axes()[index] === axis ? row : row.map(() => null));
168
+ stackValues(rows, "normal").forEach((row, index) => {
169
+ if (columns.has(index) && this.axes()[index] === axis) result[index] = row;
170
+ });
171
+ }
172
+ return result;
173
+ }, ...ngDevMode ? [{ debugName: "stackedValues" }] : /* istanbul ignore next */ []);
174
+ axisExtent(axis) {
175
+ const values = [];
176
+ const columns = this.columnIndexes().filter((index) => this.axes()[index] === axis);
177
+ const lines = this.lineIndexes().filter((index) => this.axes()[index] === axis);
178
+ if (!columns.length && !lines.length) return null;
179
+ if (this.stacked() && columns.length) {
180
+ const [min, max] = stackExtent(columns.map((index) => this.stackedValues()[index]));
181
+ values.push(min, max);
182
+ } else columns.forEach((index) => values.push(...this.table().values[index]));
183
+ lines.forEach((index) => values.push(...this.table().values[index]));
184
+ return extent(values);
185
+ }
186
+ layout = computed(() => {
187
+ const { width, height } = this.size();
188
+ const secondary = this.hasSecondary();
189
+ return cartesianLayout({
190
+ width,
191
+ height,
192
+ intl: this.intl(),
193
+ category: {
194
+ kind: "band",
195
+ labels: this.table().labels,
196
+ count: this.table().labels.length,
197
+ labelMode: this.labelMode(),
198
+ maxLabelWidth: this.maxLabelWidth(),
199
+ title: this.xAxisTitle() || void 0
200
+ },
201
+ value: {
202
+ extent: this.axisExtent(0) ?? [0, 1],
203
+ scale: this.yScale(),
204
+ format: this.valueFormat(),
205
+ includeZero: true,
206
+ min: this.yMin(),
207
+ max: this.yMax(),
208
+ title: this.yAxisTitle() || void 0
209
+ },
210
+ secondaryValue: secondary ? {
211
+ extent: this.axisExtent(1) ?? [0, 1],
212
+ format: this.y2Format(),
213
+ includeZero: true,
214
+ min: this.y2Min(),
215
+ max: this.y2Max(),
216
+ title: this.y2AxisTitle() || void 0
217
+ } : void 0,
218
+ grid: this.grid(),
219
+ xAxisPosition: this.xAxisPosition(),
220
+ yAxisPosition: this.yAxisPosition()
221
+ });
222
+ }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
223
+ y2Format = computed(() => this.y2ValueFormat() ?? this.valueFormat(), ...ngDevMode ? [{ debugName: "y2Format" }] : /* istanbul ignore next */ []);
224
+ band = computed(() => this.layout().category, ...ngDevMode ? [{ debugName: "band" }] : /* istanbul ignore next */ []);
225
+ scales = computed(() => {
226
+ const layout = this.layout();
227
+ return [layout.value, layout.secondaryValue ?? layout.value];
228
+ }, ...ngDevMode ? [{ debugName: "scales" }] : /* istanbul ignore next */ []);
229
+ formatters = computed(() => [chartNumberFormatter(this.intl(), this.valueFormat()), chartNumberFormatter(this.intl(), this.y2Format())], ...ngDevMode ? [{ debugName: "formatters" }] : /* istanbul ignore next */ []);
230
+ formatValue = computed(() => {
231
+ const custom = this.tooltipFormatter();
232
+ const formatters = this.formatters();
233
+ const axes = this.axes();
234
+ return (value, seriesIndex, dataPointIndex) => custom ? custom(value, {
235
+ seriesIndex,
236
+ dataPointIndex
237
+ }) : formatters[axes[seriesIndex] ?? 0](value);
238
+ }, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
239
+ bars = computed(() => {
240
+ const geometry = this.geometry();
241
+ return comboBars({
242
+ band: this.band(),
243
+ scales: this.scales(),
244
+ axes: this.axes(),
245
+ stacked: this.stacked(),
246
+ widthRatio: geometry.width,
247
+ groupGap: geometry.gap,
248
+ values: this.table().values,
249
+ stackedValues: this.stackedValues(),
250
+ columns: this.columnIndexes(),
251
+ colors: this.list().map((item) => item.color)
252
+ });
253
+ }, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
254
+ paths = computed(() => {
255
+ const band = this.band();
256
+ const curve = this.curve();
257
+ return this.lineIndexes().map((seriesIndex) => {
258
+ const scale = this.scales()[this.axes()[seriesIndex]];
259
+ const [d0, d1] = scale.domain;
260
+ const base = scale.map(d0 <= 0 && d1 >= 0 ? 0 : d0);
261
+ const points = this.table().values[seriesIndex].map((value, index) => value === null ? null : {
262
+ x: band.center(index),
263
+ y: scale.map(value),
264
+ index
265
+ });
266
+ const color = seriesColor(this.list()[seriesIndex].color, seriesIndex);
267
+ return {
268
+ index: seriesIndex,
269
+ key: this.keys()[seriesIndex],
270
+ color,
271
+ line: linePath(points, curve),
272
+ area: this.types()[seriesIndex] === "area" ? areaPath(points, points.map((point) => point ? {
273
+ x: point.x,
274
+ y: base
275
+ } : null), curve) : "",
276
+ points: this.markers() && points.length <= this.layout().plot.width / 6 ? points : [],
277
+ gradient: `${this.uid}-fill-${seriesIndex}`
278
+ };
279
+ });
280
+ }, ...ngDevMode ? [{ debugName: "paths" }] : /* istanbul ignore next */ []);
281
+ activePoints = computed(() => {
282
+ const active = this.active();
283
+ if (!active) return [];
284
+ const x = this.band().center(active.index);
285
+ return this.lineIndexes().flatMap((seriesIndex) => {
286
+ const value = this.table().values[seriesIndex][active.index];
287
+ if (value === null || this.tooltipMode() === "single" && seriesIndex !== active.series) return [];
288
+ return [{
289
+ x,
290
+ y: this.scales()[this.axes()[seriesIndex]].map(value),
291
+ color: seriesColor(this.list()[seriesIndex].color, seriesIndex),
292
+ series: seriesIndex
293
+ }];
294
+ });
295
+ }, ...ngDevMode ? [{ debugName: "activePoints" }] : /* istanbul ignore next */ []);
296
+ hoverBand = computed(() => {
297
+ const active = this.active();
298
+ return active ? chartBandRect(this.band(), active.index, this.layout().plot) : null;
299
+ }, ...ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []);
300
+ annotationShapes = computed(() => {
301
+ const band = this.band();
302
+ const labels = this.table().labels;
303
+ return chartAnnotationShapes(this.annotations(), {
304
+ plot: this.layout().plot,
305
+ x: (value) => {
306
+ const index = chartCategoryIndex(value, labels);
307
+ return index < 0 ? null : band.center(index);
308
+ },
309
+ xSpan: (value) => {
310
+ const index = chartCategoryIndex(value, labels);
311
+ return index < 0 ? null : [band.start(index), band.start(index) + band.step];
312
+ },
313
+ y: (value, axis) => this.scales()[axis === "secondary" ? 1 : 0].map(value)
314
+ });
315
+ }, ...ngDevMode ? [{ debugName: "annotationShapes" }] : /* istanbul ignore next */ []);
316
+ legendItems = computed(() => {
317
+ const stat = this.legendVariant() === "stat";
318
+ const active = this.active();
319
+ const format = this.formatValue();
320
+ return this.list().map((item, index) => {
321
+ const values = this.table().values[index] ?? [];
322
+ const raw = active ? values[active.index] : this.types()[index] === "column" ? values.reduce((sum, value) => sum + (value ?? 0), 0) : lastValue(values);
323
+ const at = active?.index ?? -1;
324
+ return {
325
+ key: this.keys()[index],
326
+ label: item.name,
327
+ color: seriesColor(item.color, index),
328
+ hidden: this.hidden().has(this.keys()[index]),
329
+ marker: this.types()[index] === "column" ? "dot" : "line",
330
+ ...stat ? {
331
+ value: raw === null || raw === void 0 ? "—" : format(raw, index, at),
332
+ caption: active ? this.table().labels[active.index] : this.translations().chartTotal
333
+ } : {}
334
+ };
335
+ });
336
+ }, ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
337
+ tooltip = computed(() => {
338
+ const active = this.active();
339
+ if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === "stat") return null;
340
+ const format = this.formatValue();
341
+ const single = this.tooltipMode() === "single";
342
+ const rows = this.visibleIndexes().filter((seriesIndex) => !single || seriesIndex === active.series).flatMap((seriesIndex) => {
343
+ const raw = this.table().values[seriesIndex][active.index];
344
+ if (raw === null) return [];
345
+ return [{
346
+ label: this.list()[seriesIndex].name,
347
+ value: format(raw, seriesIndex, active.index),
348
+ color: seriesColor(this.list()[seriesIndex].color, seriesIndex),
349
+ raw,
350
+ seriesIndex,
351
+ active: seriesIndex === active.series
352
+ }];
353
+ });
354
+ if (!rows.length) return null;
355
+ const tops = [...this.bars().filter((bar) => bar.index === active.index && (!single || bar.series === active.series)).map((bar) => bar.y), ...this.activePoints().map((point) => point.y)];
356
+ const y = tops.length ? Math.min(...tops) : this.layout().plot.top;
357
+ return {
358
+ title: this.table().labels[active.index] ?? "",
359
+ rows,
360
+ index: active.index,
361
+ x: this.band().center(active.index),
362
+ y,
363
+ placement: "top"
364
+ };
365
+ }, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
366
+ summary = computed(() => {
367
+ const t = this.translations();
368
+ const text = chartSummary(t, this.intl(), t.chartCombo, this.list().length, this.table().labels.length, null);
369
+ return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;
370
+ }, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
371
+ dataTable = computed(() => {
372
+ const formatters = this.formatters();
373
+ const axes = this.axes();
374
+ return chartTable(this.table().labels, this.list().map((item, index) => ({
375
+ name: item.name,
376
+ values: this.table().values[index]
377
+ })), (value, seriesIndex) => formatters[axes[seriesIndex] ?? 0](value));
378
+ }, ...ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []);
379
+ constructor() {
380
+ afterNextRender(() => setTimeout(() => this.morph.set(true), 120));
381
+ afterRenderEffect(() => {
382
+ this.dt();
383
+ this.readGeometry();
384
+ });
385
+ }
386
+ isActive(index, series) {
387
+ const active = this.active();
388
+ return !!active && active.index === index && (this.tooltipMode() === "shared" || active.series === series);
389
+ }
390
+ onPointer(event) {
391
+ if (event.type === "leave") {
392
+ this.active.set(null);
393
+ return;
394
+ }
395
+ const plot = this.layout().plot;
396
+ const index = 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 ? -1 : this.band().indexAt(event.x);
397
+ if (index < 0) {
398
+ this.active.set(null);
399
+ return;
400
+ }
401
+ const series = this.seriesAt(index, event.x, event.y);
402
+ this.active.set({
403
+ index,
404
+ series,
405
+ pointerY: event.y,
406
+ keyboard: false
407
+ });
408
+ if (event.type === "click" && series >= 0) this.pointClick.emit({
409
+ seriesIndex: series,
410
+ dataPointIndex: index,
411
+ value: this.table().values[series][index],
412
+ category: this.table().labels[index] ?? ""
413
+ });
414
+ }
415
+ onNavigate(event) {
416
+ if (event.key === "Escape") {
417
+ this.active.set(null);
418
+ return;
419
+ }
420
+ const count = this.table().labels.length;
421
+ const current = this.active();
422
+ const visible = this.visibleIndexes();
423
+ let index = current?.index ?? -1;
424
+ let series = current?.series ?? visible[0] ?? -1;
425
+ if (event.key === "ArrowUp" || event.key === "ArrowDown") {
426
+ series = cycleIndex(series, event.key === "ArrowDown" ? 1 : -1, visible);
427
+ index = Math.max(0, index);
428
+ } else index = stepIndex(event.key, index, count);
429
+ if (index < 0 || series < 0) return;
430
+ this.active.set({
431
+ index,
432
+ series,
433
+ pointerY: null,
434
+ keyboard: true
435
+ });
436
+ const value = this.table().values[series][index];
437
+ this.frame()?.announce(formatMessage(this.translations().chartPoint, {
438
+ series: this.list()[series].name,
439
+ category: this.table().labels[index] ?? "",
440
+ value: value === null ? "—" : this.formatValue()(value, series, index)
441
+ }));
442
+ }
443
+ onLegendToggle(key) {
444
+ const index = this.keys().indexOf(key);
445
+ this.hidden.update((keys) => toggleKey(keys, key));
446
+ this.seriesToggle.emit({
447
+ seriesIndex: index,
448
+ name: this.list()[index]?.name ?? "",
449
+ hidden: this.hidden().has(key)
450
+ });
451
+ }
452
+ onLegendHover(key) {
453
+ const index = key === null ? -1 : this.keys().indexOf(key);
454
+ this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? "") ? index : null);
455
+ }
456
+ seriesAt(index, x, y) {
457
+ let best = -1;
458
+ let distance = Infinity;
459
+ for (const point of this.lineIndexes()) {
460
+ const value = this.table().values[point][index];
461
+ if (value === null) continue;
462
+ const next = Math.abs(this.scales()[this.axes()[point]].map(value) - y);
463
+ if (next < distance) {
464
+ distance = next;
465
+ best = point;
466
+ }
467
+ }
468
+ const hit = this.bars().find((bar) => bar.index === index && x >= bar.x && x <= bar.x + bar.width && y >= bar.y && y <= bar.y + bar.height);
469
+ if (hit && distance > EDGE_SLACK) return hit.series;
470
+ if (best >= 0) return best;
471
+ const candidates = this.bars().filter((bar) => bar.index === index);
472
+ return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;
473
+ }
474
+ readGeometry() {
475
+ const element = this.host.nativeElement;
476
+ const next = {
477
+ width: readTokenNumber(element, "--tx-chart-bar-width", DEFAULT_WIDTH),
478
+ gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP)
479
+ };
480
+ const current = this.geometry();
481
+ if (current.width !== next.width || current.gap !== next.gap) this.geometry.set(next);
482
+ }
483
+ static ɵfac = i0.ɵɵngDeclareFactory({
484
+ minVersion: "12.0.0",
485
+ version: "22.2.3",
486
+ ngImport: i0,
487
+ type: TxComboChart,
488
+ deps: [],
489
+ target: i0.ɵɵFactoryTarget.Component
490
+ });
491
+ static ɵcmp = i0.ɵɵngDeclareComponent({
492
+ minVersion: "17.0.0",
493
+ version: "22.2.3",
494
+ type: TxComboChart,
495
+ isStandalone: true,
496
+ selector: "tx-combo-chart",
497
+ inputs: {
498
+ series: {
499
+ classPropertyName: "series",
500
+ publicName: "series",
501
+ isSignal: true,
502
+ isRequired: false,
503
+ transformFunction: null
504
+ },
505
+ categories: {
506
+ classPropertyName: "categories",
507
+ publicName: "categories",
508
+ isSignal: true,
509
+ isRequired: false,
510
+ transformFunction: null
511
+ },
512
+ annotations: {
513
+ classPropertyName: "annotations",
514
+ publicName: "annotations",
515
+ isSignal: true,
516
+ isRequired: false,
517
+ transformFunction: null
518
+ },
519
+ height: {
520
+ classPropertyName: "height",
521
+ publicName: "height",
522
+ isSignal: true,
523
+ isRequired: false,
524
+ transformFunction: null
525
+ },
526
+ stacked: {
527
+ classPropertyName: "stacked",
528
+ publicName: "stacked",
529
+ isSignal: true,
530
+ isRequired: false,
531
+ transformFunction: null
532
+ },
533
+ curve: {
534
+ classPropertyName: "curve",
535
+ publicName: "curve",
536
+ isSignal: true,
537
+ isRequired: false,
538
+ transformFunction: null
539
+ },
540
+ markers: {
541
+ classPropertyName: "markers",
542
+ publicName: "markers",
543
+ isSignal: true,
544
+ isRequired: false,
545
+ transformFunction: null
546
+ },
547
+ showLegend: {
548
+ classPropertyName: "showLegend",
549
+ publicName: "showLegend",
550
+ isSignal: true,
551
+ isRequired: false,
552
+ transformFunction: null
553
+ },
554
+ legendPosition: {
555
+ classPropertyName: "legendPosition",
556
+ publicName: "legendPosition",
557
+ isSignal: true,
558
+ isRequired: false,
559
+ transformFunction: null
560
+ },
561
+ legendAlign: {
562
+ classPropertyName: "legendAlign",
563
+ publicName: "legendAlign",
564
+ isSignal: true,
565
+ isRequired: false,
566
+ transformFunction: null
567
+ },
568
+ legendVariant: {
569
+ classPropertyName: "legendVariant",
570
+ publicName: "legendVariant",
571
+ isSignal: true,
572
+ isRequired: false,
573
+ transformFunction: null
574
+ },
575
+ showTooltip: {
576
+ classPropertyName: "showTooltip",
577
+ publicName: "showTooltip",
578
+ isSignal: true,
579
+ isRequired: false,
580
+ transformFunction: null
581
+ },
582
+ tooltipMode: {
583
+ classPropertyName: "tooltipMode",
584
+ publicName: "tooltipMode",
585
+ isSignal: true,
586
+ isRequired: false,
587
+ transformFunction: null
588
+ },
589
+ tooltipFormatter: {
590
+ classPropertyName: "tooltipFormatter",
591
+ publicName: "tooltipFormatter",
592
+ isSignal: true,
593
+ isRequired: false,
594
+ transformFunction: null
595
+ },
596
+ valueFormat: {
597
+ classPropertyName: "valueFormat",
598
+ publicName: "valueFormat",
599
+ isSignal: true,
600
+ isRequired: false,
601
+ transformFunction: null
602
+ },
603
+ y2ValueFormat: {
604
+ classPropertyName: "y2ValueFormat",
605
+ publicName: "y2ValueFormat",
606
+ isSignal: true,
607
+ isRequired: false,
608
+ transformFunction: null
609
+ },
610
+ yScale: {
611
+ classPropertyName: "yScale",
612
+ publicName: "yScale",
613
+ isSignal: true,
614
+ isRequired: false,
615
+ transformFunction: null
616
+ },
617
+ yMin: {
618
+ classPropertyName: "yMin",
619
+ publicName: "yMin",
620
+ isSignal: true,
621
+ isRequired: false,
622
+ transformFunction: null
623
+ },
624
+ yMax: {
625
+ classPropertyName: "yMax",
626
+ publicName: "yMax",
627
+ isSignal: true,
628
+ isRequired: false,
629
+ transformFunction: null
630
+ },
631
+ y2Min: {
632
+ classPropertyName: "y2Min",
633
+ publicName: "y2Min",
634
+ isSignal: true,
635
+ isRequired: false,
636
+ transformFunction: null
637
+ },
638
+ y2Max: {
639
+ classPropertyName: "y2Max",
640
+ publicName: "y2Max",
641
+ isSignal: true,
642
+ isRequired: false,
643
+ transformFunction: null
644
+ },
645
+ xAxisTitle: {
646
+ classPropertyName: "xAxisTitle",
647
+ publicName: "xAxisTitle",
648
+ isSignal: true,
649
+ isRequired: false,
650
+ transformFunction: null
651
+ },
652
+ yAxisTitle: {
653
+ classPropertyName: "yAxisTitle",
654
+ publicName: "yAxisTitle",
655
+ isSignal: true,
656
+ isRequired: false,
657
+ transformFunction: null
658
+ },
659
+ y2AxisTitle: {
660
+ classPropertyName: "y2AxisTitle",
661
+ publicName: "y2AxisTitle",
662
+ isSignal: true,
663
+ isRequired: false,
664
+ transformFunction: null
665
+ },
666
+ grid: {
667
+ classPropertyName: "grid",
668
+ publicName: "grid",
669
+ isSignal: true,
670
+ isRequired: false,
671
+ transformFunction: null
672
+ },
673
+ xAxisPosition: {
674
+ classPropertyName: "xAxisPosition",
675
+ publicName: "xAxisPosition",
676
+ isSignal: true,
677
+ isRequired: false,
678
+ transformFunction: null
679
+ },
680
+ yAxisPosition: {
681
+ classPropertyName: "yAxisPosition",
682
+ publicName: "yAxisPosition",
683
+ isSignal: true,
684
+ isRequired: false,
685
+ transformFunction: null
686
+ },
687
+ labelMode: {
688
+ classPropertyName: "labelMode",
689
+ publicName: "labelMode",
690
+ isSignal: true,
691
+ isRequired: false,
692
+ transformFunction: null
693
+ },
694
+ maxLabelWidth: {
695
+ classPropertyName: "maxLabelWidth",
696
+ publicName: "maxLabelWidth",
697
+ isSignal: true,
698
+ isRequired: false,
699
+ transformFunction: null
700
+ },
701
+ toolbar: {
702
+ classPropertyName: "toolbar",
703
+ publicName: "toolbar",
704
+ isSignal: true,
705
+ isRequired: false,
706
+ transformFunction: null
707
+ },
708
+ loading: {
709
+ classPropertyName: "loading",
710
+ publicName: "loading",
711
+ isSignal: true,
712
+ isRequired: false,
713
+ transformFunction: null
714
+ },
715
+ ariaLabel: {
716
+ classPropertyName: "ariaLabel",
717
+ publicName: "ariaLabel",
718
+ isSignal: true,
719
+ isRequired: false,
720
+ transformFunction: null
721
+ },
722
+ dt: {
723
+ classPropertyName: "dt",
724
+ publicName: "dt",
725
+ isSignal: true,
726
+ isRequired: false,
727
+ transformFunction: null
728
+ },
729
+ pt: {
730
+ classPropertyName: "pt",
731
+ publicName: "pt",
732
+ isSignal: true,
733
+ isRequired: false,
734
+ transformFunction: null
735
+ },
736
+ ptOptions: {
737
+ classPropertyName: "ptOptions",
738
+ publicName: "ptOptions",
739
+ isSignal: true,
740
+ isRequired: false,
741
+ transformFunction: null
742
+ },
743
+ unstyled: {
744
+ classPropertyName: "unstyled",
745
+ publicName: "unstyled",
746
+ isSignal: true,
747
+ isRequired: false,
748
+ transformFunction: null
749
+ }
750
+ },
751
+ outputs: {
752
+ seriesToggle: "seriesToggle",
753
+ pointClick: "pointClick"
754
+ },
755
+ host: {
756
+ properties: {
757
+ "class": "passThrough().root?.class",
758
+ "style": "hostStyle()",
759
+ "attr.data-styled": "!isUnstyled() || null",
760
+ "class.tx-combo-chart--fill": "typeof height() === \"string\"",
761
+ "class.tx-combo-chart--entering": "entrance.active()",
762
+ "class.tx-combo-chart--morph": "morph()",
763
+ "class.tx-combo-chart--focused": "focusedSeries() !== null",
764
+ "class.tx-combo-chart--stacked": "stacked()",
765
+ "class.tx-combo-chart--active": "active() !== null"
766
+ },
767
+ classAttribute: "tx-combo-chart"
768
+ },
769
+ queries: [{
770
+ propertyName: "legendTemplate",
771
+ first: true,
772
+ predicate: TxChartLegendTemplate,
773
+ descendants: true,
774
+ isSignal: true
775
+ }, {
776
+ propertyName: "tooltipTemplate",
777
+ first: true,
778
+ predicate: TxChartTooltipTemplate,
779
+ descendants: true,
780
+ isSignal: true
781
+ }],
782
+ viewQueries: [{
783
+ propertyName: "frame",
784
+ first: true,
785
+ predicate: TxChartFrame,
786
+ descendants: true,
787
+ isSignal: true
788
+ }],
789
+ ngImport: i0,
790
+ 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-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 (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-combo-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-combo-chart__bar\"\n [class.tx-combo-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-combo-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-combo-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-combo-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @for (path of paths(); track path.key) {\n <svg:g\n class=\"tx-combo-chart__series\"\n [class.tx-combo-chart__series--focused]=\"focusedSeries() === path.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-combo-chart-color]=\"path.color\"\n [attr.data-series]=\"path.index\"\n >\n @if (path.area) {\n <svg:linearGradient [attr.id]=\"path.gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <svg:stop class=\"tx-combo-chart__stop-from\" offset=\"0\" [style.stop-color]=\"path.color\" />\n <svg:stop class=\"tx-combo-chart__stop-to\" offset=\"0.95\" [style.stop-color]=\"path.color\" />\n </svg:linearGradient>\n <svg:path\n class=\"tx-combo-chart__area\"\n [class]=\"passThrough().area?.class\"\n [style]=\"passThrough().area?.style\"\n [attr.d]=\"path.area\"\n [attr.fill]=\"'url(#' + path.gradient + ')'\"\n />\n }\n <svg:path\n class=\"tx-combo-chart__line\"\n [class]=\"passThrough().line?.class\"\n [style]=\"passThrough().line?.style\"\n [attr.d]=\"path.line\"\n [style.stroke]=\"path.color\"\n />\n @for (point of path.points; track $index) {\n @if (point) {\n <svg:circle\n class=\"tx-combo-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n [style.fill]=\"path.color\"\n />\n }\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n <svg:circle class=\"tx-combo-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n <svg:circle class=\"tx-combo-chart__marker\" [class]=\"passThrough().marker?.class\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
791
+ styles: [":host{display:block;min-width:0}:host(.tx-combo-chart--fill){height:100%}.tx-combo-chart__bar{fill:var(--tx-combo-chart-color);transform-box:fill-box}.tx-combo-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-combo-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-combo-chart__line{fill:none;stroke-linecap:round;stroke-linejoin:round}.tx-combo-chart__area,.tx-combo-chart__line,.tx-combo-chart__point,.tx-combo-chart__marker,.tx-combo-chart__halo{pointer-events:none}:host([data-styled]) .tx-combo-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-combo-chart__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-combo-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-combo-chart__line{stroke-width:var(--tx-chart-line-stroke-width)}:host([data-styled]) .tx-combo-chart__stop-from{stop-opacity:var(--tx-chart-line-area-opacity-from)}:host([data-styled]) .tx-combo-chart__stop-to{stop-opacity:var(--tx-chart-line-area-opacity-to)}:host([data-styled]) .tx-combo-chart__point{r:var(--tx-chart-line-point-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-combo-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-combo-chart__halo{r:var(--tx-chart-marker-halo-radius);opacity:var(--tx-chart-marker-halo-opacity)}:host([data-styled]) .tx-combo-chart__series{transition:opacity var(--tx-chart-motion-update-duration) ease}:host([data-styled].tx-combo-chart--stacked) .tx-combo-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-combo-chart--active) .tx-combo-chart__bar:not(.tx-combo-chart__bar--active),:host([data-styled].tx-combo-chart--focused) .tx-combo-chart__bar:not(.tx-combo-chart__bar--focused){fill:color-mix(in oklab,var(--tx-combo-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-combo-chart--focused) .tx-combo-chart__series:not(.tx-combo-chart__series--focused){opacity:var(--tx-chart-line-dimmed-opacity)}:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__bar{transition:fill 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-combo-chart--morph) .tx-combo-chart__line,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__area{transition:d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__point{transition:cx var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),cy var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-combo-chart--entering) .tx-combo-chart__bar{animation:tx-combo-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-combo-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-combo-chart--entering) .tx-combo-chart__series{animation:tx-combo-chart-reveal var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-combo-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-combo-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-combo-chart__bar,:host([data-styled]) .tx-combo-chart__series,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__line,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__area,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__point{transition:none;animation:none}}\n"],
792
+ dependencies: [
793
+ {
794
+ kind: "component",
795
+ type: TxChartFrame,
796
+ selector: "tx-chart-frame",
797
+ inputs: [
798
+ "height",
799
+ "size",
800
+ "legendItems",
801
+ "showLegend",
802
+ "legendPosition",
803
+ "legendAlign",
804
+ "legendVariant",
805
+ "legendToggle",
806
+ "legendTemplate",
807
+ "empty",
808
+ "loading",
809
+ "emptyIcon",
810
+ "summary",
811
+ "table",
812
+ "tooltip",
813
+ "tooltipTemplate",
814
+ "tooltipPlacement",
815
+ "panelStyle",
816
+ "parts",
817
+ "styled",
818
+ "interactive",
819
+ "actionKeys",
820
+ "zoomable",
821
+ "zoomedIn",
822
+ "plotHeight",
823
+ "toolbar",
824
+ "exportName"
825
+ ],
826
+ outputs: [
827
+ "sizeChange",
828
+ "pointer",
829
+ "navigate",
830
+ "legendToggled",
831
+ "legendHovered",
832
+ "tooltipClosed",
833
+ "zoomed",
834
+ "panned",
835
+ "zoomReset"
836
+ ]
837
+ },
838
+ {
839
+ kind: "component",
840
+ type: TxChartAxes,
841
+ selector: "g[tx-chart-axes]",
842
+ inputs: [
843
+ "tx-chart-axes",
844
+ "gridPart",
845
+ "axisPart"
846
+ ]
847
+ },
848
+ {
849
+ kind: "component",
850
+ type: TxChartHoverBand,
851
+ selector: "g[tx-chart-hover-band]",
852
+ inputs: ["tx-chart-hover-band", "part"]
853
+ },
854
+ {
855
+ kind: "component",
856
+ type: TxChartAnnotations,
857
+ selector: "g[tx-chart-annotations]",
858
+ inputs: [
859
+ "tx-chart-annotations",
860
+ "part",
861
+ "layer"
862
+ ]
863
+ }
864
+ ],
865
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
866
+ });
867
+ };
868
+ i0.ɵɵngDeclareClassMetadata({
869
+ minVersion: "12.0.0",
870
+ version: "22.2.3",
871
+ ngImport: i0,
872
+ type: TxComboChart,
873
+ decorators: [{
874
+ type: Component,
875
+ args: [{
876
+ selector: "tx-combo-chart",
877
+ imports: [
878
+ TxChartFrame,
879
+ TxChartAxes,
880
+ TxChartHoverBand,
881
+ TxChartAnnotations
882
+ ],
883
+ changeDetection: ChangeDetectionStrategy.OnPush,
884
+ host: {
885
+ class: "tx-combo-chart",
886
+ "[class]": "passThrough().root?.class",
887
+ "[style]": "hostStyle()",
888
+ "[attr.data-styled]": "!isUnstyled() || null",
889
+ "[class.tx-combo-chart--fill]": "typeof height() === \"string\"",
890
+ "[class.tx-combo-chart--entering]": "entrance.active()",
891
+ "[class.tx-combo-chart--morph]": "morph()",
892
+ "[class.tx-combo-chart--focused]": "focusedSeries() !== null",
893
+ "[class.tx-combo-chart--stacked]": "stacked()",
894
+ "[class.tx-combo-chart--active]": "active() !== null"
895
+ },
896
+ 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-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 (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-combo-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-combo-chart__bar\"\n [class.tx-combo-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-combo-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-combo-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-combo-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @for (path of paths(); track path.key) {\n <svg:g\n class=\"tx-combo-chart__series\"\n [class.tx-combo-chart__series--focused]=\"focusedSeries() === path.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-combo-chart-color]=\"path.color\"\n [attr.data-series]=\"path.index\"\n >\n @if (path.area) {\n <svg:linearGradient [attr.id]=\"path.gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <svg:stop class=\"tx-combo-chart__stop-from\" offset=\"0\" [style.stop-color]=\"path.color\" />\n <svg:stop class=\"tx-combo-chart__stop-to\" offset=\"0.95\" [style.stop-color]=\"path.color\" />\n </svg:linearGradient>\n <svg:path\n class=\"tx-combo-chart__area\"\n [class]=\"passThrough().area?.class\"\n [style]=\"passThrough().area?.style\"\n [attr.d]=\"path.area\"\n [attr.fill]=\"'url(#' + path.gradient + ')'\"\n />\n }\n <svg:path\n class=\"tx-combo-chart__line\"\n [class]=\"passThrough().line?.class\"\n [style]=\"passThrough().line?.style\"\n [attr.d]=\"path.line\"\n [style.stroke]=\"path.color\"\n />\n @for (point of path.points; track $index) {\n @if (point) {\n <svg:circle\n class=\"tx-combo-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n [style.fill]=\"path.color\"\n />\n }\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n <svg:circle class=\"tx-combo-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n <svg:circle class=\"tx-combo-chart__marker\" [class]=\"passThrough().marker?.class\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
897
+ styles: [":host{display:block;min-width:0}:host(.tx-combo-chart--fill){height:100%}.tx-combo-chart__bar{fill:var(--tx-combo-chart-color);transform-box:fill-box}.tx-combo-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-combo-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-combo-chart__line{fill:none;stroke-linecap:round;stroke-linejoin:round}.tx-combo-chart__area,.tx-combo-chart__line,.tx-combo-chart__point,.tx-combo-chart__marker,.tx-combo-chart__halo{pointer-events:none}:host([data-styled]) .tx-combo-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-combo-chart__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-combo-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-combo-chart__line{stroke-width:var(--tx-chart-line-stroke-width)}:host([data-styled]) .tx-combo-chart__stop-from{stop-opacity:var(--tx-chart-line-area-opacity-from)}:host([data-styled]) .tx-combo-chart__stop-to{stop-opacity:var(--tx-chart-line-area-opacity-to)}:host([data-styled]) .tx-combo-chart__point{r:var(--tx-chart-line-point-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-combo-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-combo-chart__halo{r:var(--tx-chart-marker-halo-radius);opacity:var(--tx-chart-marker-halo-opacity)}:host([data-styled]) .tx-combo-chart__series{transition:opacity var(--tx-chart-motion-update-duration) ease}:host([data-styled].tx-combo-chart--stacked) .tx-combo-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-combo-chart--active) .tx-combo-chart__bar:not(.tx-combo-chart__bar--active),:host([data-styled].tx-combo-chart--focused) .tx-combo-chart__bar:not(.tx-combo-chart__bar--focused){fill:color-mix(in oklab,var(--tx-combo-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-combo-chart--focused) .tx-combo-chart__series:not(.tx-combo-chart__series--focused){opacity:var(--tx-chart-line-dimmed-opacity)}:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__bar{transition:fill 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-combo-chart--morph) .tx-combo-chart__line,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__area{transition:d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__point{transition:cx var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),cy var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-combo-chart--entering) .tx-combo-chart__bar{animation:tx-combo-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-combo-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-combo-chart--entering) .tx-combo-chart__series{animation:tx-combo-chart-reveal var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-combo-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-combo-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-combo-chart__bar,:host([data-styled]) .tx-combo-chart__series,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__line,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__area,:host([data-styled].tx-combo-chart--morph) .tx-combo-chart__point{transition:none;animation:none}}\n"]
898
+ }]
899
+ }],
900
+ ctorParameters: () => [],
901
+ propDecorators: {
902
+ series: [{
903
+ type: i0.Input,
904
+ args: [{
905
+ isSignal: true,
906
+ alias: "series",
907
+ required: false
908
+ }]
909
+ }],
910
+ categories: [{
911
+ type: i0.Input,
912
+ args: [{
913
+ isSignal: true,
914
+ alias: "categories",
915
+ required: false
916
+ }]
917
+ }],
918
+ annotations: [{
919
+ type: i0.Input,
920
+ args: [{
921
+ isSignal: true,
922
+ alias: "annotations",
923
+ required: false
924
+ }]
925
+ }],
926
+ height: [{
927
+ type: i0.Input,
928
+ args: [{
929
+ isSignal: true,
930
+ alias: "height",
931
+ required: false
932
+ }]
933
+ }],
934
+ stacked: [{
935
+ type: i0.Input,
936
+ args: [{
937
+ isSignal: true,
938
+ alias: "stacked",
939
+ required: false
940
+ }]
941
+ }],
942
+ curve: [{
943
+ type: i0.Input,
944
+ args: [{
945
+ isSignal: true,
946
+ alias: "curve",
947
+ required: false
948
+ }]
949
+ }],
950
+ markers: [{
951
+ type: i0.Input,
952
+ args: [{
953
+ isSignal: true,
954
+ alias: "markers",
955
+ required: false
956
+ }]
957
+ }],
958
+ showLegend: [{
959
+ type: i0.Input,
960
+ args: [{
961
+ isSignal: true,
962
+ alias: "showLegend",
963
+ required: false
964
+ }]
965
+ }],
966
+ legendPosition: [{
967
+ type: i0.Input,
968
+ args: [{
969
+ isSignal: true,
970
+ alias: "legendPosition",
971
+ required: false
972
+ }]
973
+ }],
974
+ legendAlign: [{
975
+ type: i0.Input,
976
+ args: [{
977
+ isSignal: true,
978
+ alias: "legendAlign",
979
+ required: false
980
+ }]
981
+ }],
982
+ legendVariant: [{
983
+ type: i0.Input,
984
+ args: [{
985
+ isSignal: true,
986
+ alias: "legendVariant",
987
+ required: false
988
+ }]
989
+ }],
990
+ showTooltip: [{
991
+ type: i0.Input,
992
+ args: [{
993
+ isSignal: true,
994
+ alias: "showTooltip",
995
+ required: false
996
+ }]
997
+ }],
998
+ tooltipMode: [{
999
+ type: i0.Input,
1000
+ args: [{
1001
+ isSignal: true,
1002
+ alias: "tooltipMode",
1003
+ required: false
1004
+ }]
1005
+ }],
1006
+ tooltipFormatter: [{
1007
+ type: i0.Input,
1008
+ args: [{
1009
+ isSignal: true,
1010
+ alias: "tooltipFormatter",
1011
+ required: false
1012
+ }]
1013
+ }],
1014
+ valueFormat: [{
1015
+ type: i0.Input,
1016
+ args: [{
1017
+ isSignal: true,
1018
+ alias: "valueFormat",
1019
+ required: false
1020
+ }]
1021
+ }],
1022
+ y2ValueFormat: [{
1023
+ type: i0.Input,
1024
+ args: [{
1025
+ isSignal: true,
1026
+ alias: "y2ValueFormat",
1027
+ required: false
1028
+ }]
1029
+ }],
1030
+ yScale: [{
1031
+ type: i0.Input,
1032
+ args: [{
1033
+ isSignal: true,
1034
+ alias: "yScale",
1035
+ required: false
1036
+ }]
1037
+ }],
1038
+ yMin: [{
1039
+ type: i0.Input,
1040
+ args: [{
1041
+ isSignal: true,
1042
+ alias: "yMin",
1043
+ required: false
1044
+ }]
1045
+ }],
1046
+ yMax: [{
1047
+ type: i0.Input,
1048
+ args: [{
1049
+ isSignal: true,
1050
+ alias: "yMax",
1051
+ required: false
1052
+ }]
1053
+ }],
1054
+ y2Min: [{
1055
+ type: i0.Input,
1056
+ args: [{
1057
+ isSignal: true,
1058
+ alias: "y2Min",
1059
+ required: false
1060
+ }]
1061
+ }],
1062
+ y2Max: [{
1063
+ type: i0.Input,
1064
+ args: [{
1065
+ isSignal: true,
1066
+ alias: "y2Max",
1067
+ required: false
1068
+ }]
1069
+ }],
1070
+ xAxisTitle: [{
1071
+ type: i0.Input,
1072
+ args: [{
1073
+ isSignal: true,
1074
+ alias: "xAxisTitle",
1075
+ required: false
1076
+ }]
1077
+ }],
1078
+ yAxisTitle: [{
1079
+ type: i0.Input,
1080
+ args: [{
1081
+ isSignal: true,
1082
+ alias: "yAxisTitle",
1083
+ required: false
1084
+ }]
1085
+ }],
1086
+ y2AxisTitle: [{
1087
+ type: i0.Input,
1088
+ args: [{
1089
+ isSignal: true,
1090
+ alias: "y2AxisTitle",
1091
+ required: false
1092
+ }]
1093
+ }],
1094
+ grid: [{
1095
+ type: i0.Input,
1096
+ args: [{
1097
+ isSignal: true,
1098
+ alias: "grid",
1099
+ required: false
1100
+ }]
1101
+ }],
1102
+ xAxisPosition: [{
1103
+ type: i0.Input,
1104
+ args: [{
1105
+ isSignal: true,
1106
+ alias: "xAxisPosition",
1107
+ required: false
1108
+ }]
1109
+ }],
1110
+ yAxisPosition: [{
1111
+ type: i0.Input,
1112
+ args: [{
1113
+ isSignal: true,
1114
+ alias: "yAxisPosition",
1115
+ required: false
1116
+ }]
1117
+ }],
1118
+ labelMode: [{
1119
+ type: i0.Input,
1120
+ args: [{
1121
+ isSignal: true,
1122
+ alias: "labelMode",
1123
+ required: false
1124
+ }]
1125
+ }],
1126
+ maxLabelWidth: [{
1127
+ type: i0.Input,
1128
+ args: [{
1129
+ isSignal: true,
1130
+ alias: "maxLabelWidth",
1131
+ required: false
1132
+ }]
1133
+ }],
1134
+ toolbar: [{
1135
+ type: i0.Input,
1136
+ args: [{
1137
+ isSignal: true,
1138
+ alias: "toolbar",
1139
+ required: false
1140
+ }]
1141
+ }],
1142
+ loading: [{
1143
+ type: i0.Input,
1144
+ args: [{
1145
+ isSignal: true,
1146
+ alias: "loading",
1147
+ required: false
1148
+ }]
1149
+ }],
1150
+ ariaLabel: [{
1151
+ type: i0.Input,
1152
+ args: [{
1153
+ isSignal: true,
1154
+ alias: "ariaLabel",
1155
+ required: false
1156
+ }]
1157
+ }],
1158
+ dt: [{
1159
+ type: i0.Input,
1160
+ args: [{
1161
+ isSignal: true,
1162
+ alias: "dt",
1163
+ required: false
1164
+ }]
1165
+ }],
1166
+ pt: [{
1167
+ type: i0.Input,
1168
+ args: [{
1169
+ isSignal: true,
1170
+ alias: "pt",
1171
+ required: false
1172
+ }]
1173
+ }],
1174
+ ptOptions: [{
1175
+ type: i0.Input,
1176
+ args: [{
1177
+ isSignal: true,
1178
+ alias: "ptOptions",
1179
+ required: false
1180
+ }]
1181
+ }],
1182
+ unstyled: [{
1183
+ type: i0.Input,
1184
+ args: [{
1185
+ isSignal: true,
1186
+ alias: "unstyled",
1187
+ required: false
1188
+ }]
1189
+ }],
1190
+ seriesToggle: [{
1191
+ type: i0.Output,
1192
+ args: ["seriesToggle"]
1193
+ }],
1194
+ pointClick: [{
1195
+ type: i0.Output,
1196
+ args: ["pointClick"]
1197
+ }],
1198
+ legendTemplate: [{
1199
+ type: i0.ContentChild,
1200
+ args: [i0.forwardRef(() => TxChartLegendTemplate), { isSignal: true }]
1201
+ }],
1202
+ tooltipTemplate: [{
1203
+ type: i0.ContentChild,
1204
+ args: [i0.forwardRef(() => TxChartTooltipTemplate), { isSignal: true }]
1205
+ }],
1206
+ frame: [{
1207
+ type: i0.ViewChild,
1208
+ args: [i0.forwardRef(() => TxChartFrame), { isSignal: true }]
1209
+ }]
1210
+ }
1211
+ });
1212
+ function lastValue(values) {
1213
+ for (let index = values.length - 1; index >= 0; index--) if (values[index] !== null) return values[index];
1214
+ return null;
1215
+ }
1216
+ export { TxComboChart, comboBars, comboSlots };
1217
+
1218
+ //# sourceMappingURL=tectra-ng-charts-combo.mjs.map