@tectra-ng/charts 0.4.4 → 0.4.6

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 (40) hide show
  1. package/column/README.md +1 -1
  2. package/combo/README.md +1 -1
  3. package/core/README.md +1 -0
  4. package/fesm2022/tectra-ng-charts-column.mjs +15 -9
  5. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-charts-combo.mjs +24 -14
  7. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-charts-core.mjs +44 -18
  9. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-charts-gantt.mjs +2 -2
  11. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-charts-heatmap.mjs +44 -10
  13. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-charts-org-chart.mjs +77 -24
  15. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-charts-pie.mjs +17 -9
  17. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-waterfall.mjs +18 -9
  19. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts.mjs +1 -1
  21. package/heatmap/README.md +2 -0
  22. package/org-chart/README.md +7 -2
  23. package/package.json +5 -5
  24. package/pie/README.md +1 -1
  25. package/types/tectra-ng-charts-column.d.ts +6 -0
  26. package/types/tectra-ng-charts-column.d.ts.map +1 -1
  27. package/types/tectra-ng-charts-combo.d.ts +6 -0
  28. package/types/tectra-ng-charts-combo.d.ts.map +1 -1
  29. package/types/tectra-ng-charts-core.d.ts +22 -2
  30. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  31. package/types/tectra-ng-charts-heatmap.d.ts +19 -3
  32. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
  33. package/types/tectra-ng-charts-org-chart.d.ts +32 -10
  34. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  35. package/types/tectra-ng-charts-pie.d.ts +1 -0
  36. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  37. package/types/tectra-ng-charts-waterfall.d.ts +4 -0
  38. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  39. package/types/tectra-ng-charts.d.ts +1 -1
  40. package/waterfall/README.md +1 -1
package/column/README.md CHANGED
@@ -70,4 +70,4 @@ import { TxColumnChart } from '@tectra-ng/charts/column';
70
70
 
71
71
  ## Notes
72
72
 
73
- Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and shows the tooltip beside the cursor (a tap or the keyboard pins it above the column with an arrow); a stack also shows its total. Only the outer end of a stack is rounded and the segments are split by a thin card-coloured gap. Bars grow from the zero line once when the chart appears and slide to new values on change; both are off with reduced motion. The bar width, the gap between grouped bars and the radius come from the `chart.bar` tokens.
73
+ Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and shows the tooltip beside the cursor (a tap or the keyboard pins it above the column with an arrow); a stack also shows its total. Only the outer end of a stack is rounded and the segments are split by a thin card-coloured gap. Each bar is one SVG path with its rounded end (`barPath(rect, end, radius)` of `@tectra-ng/charts/core` draws it; the radius shrinks to fit a thin or short bar), so the fill and the gap outline share one shape; `unstyled` draws square bars. Bars grow from the zero line once when the chart appears and slide to new values on change; both are off with reduced motion. The bar width, the gap between grouped bars and the radius come from the `chart.bar` tokens.
package/combo/README.md CHANGED
@@ -80,4 +80,4 @@ import { TxComboChart } from '@tectra-ng/charts/combo';
80
80
 
81
81
  ## Notes
82
82
 
83
- The ticks of the second axis stand on the grid lines of the main one, and zero sits on one line for both, so there is one grid and no double lines; with `y2Min` / `y2Max` the second axis keeps its own ticks. Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and marks the line values; the tooltip follows the mouse (with the keyboard or a tap it stands above the highest of them). Columns grow once when the chart appears and lines draw in from the left; both slide to new values on change and are off with reduced motion.
83
+ The ticks of the second axis stand on the grid lines of the main one, and zero sits on one line for both, so there is one grid and no double lines; with `y2Min` / `y2Max` the second axis keeps its own ticks. Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and marks the line values; the tooltip follows the mouse (with the keyboard or a tap it stands above the highest of them). Each column is one SVG path with its rounded end (`barPath` of `@tectra-ng/charts/core`), so the fill and the gap outline of a stack share one shape; `unstyled` draws square columns. Columns grow once when the chart appears and lines draw in from the left; both slide to new values on change and are off with reduced motion.
package/core/README.md CHANGED
@@ -36,6 +36,7 @@ import { linearScale, niceDomain, chartNumberFormatter, TxChartSeries } from '@t
36
36
  | Function | What it does |
37
37
  |---|---|
38
38
  | `linePath(points, curve)`, `areaPath(top, bottom, curve)` | SVG paths; `null` points split the path; curves `smooth` (monotone), `straight`, `step` |
39
+ | `barPath(rect, end, radius?)` | SVG path of a bar with the two corners of one `end` (`top`, `bottom`, `left`, `right`) or `all` four rounded, the radius shrunk to fit; `null` keeps it square. The column, combo and waterfall charts draw their bars with it, so a stroke follows the rounded fill |
39
40
  | `stackValues(series, 'normal' \| '100%')` | `[from, to]` per value; positive and negative values stack apart |
40
41
  | `largestTriangleThreeBuckets(points, threshold)`, `decimateSeries(points, threshold)` | Thin long series and keep their shape |
41
42
  | `normalizeSeries(series, categories, xType)` | Turns `TxChartSeries[]` into labels, x values and a value table |
@@ -1,4 +1,4 @@
1
- import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
1
+ import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, barPath, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, parseRatio, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
2
2
  import * as i0 from "@angular/core";
3
3
  import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
4
4
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
@@ -49,6 +49,7 @@ function columnBars(input) {
49
49
  series: seriesIndex,
50
50
  index,
51
51
  ...rect,
52
+ path: barPath(rect, end, input.barRadius),
52
53
  color: seriesColor(input.colors[seriesIndex], seriesIndex),
53
54
  end,
54
55
  dir: horizontal ? positive ? "right" : "left" : positive ? "up" : "down",
@@ -69,6 +70,7 @@ const COLUMN_THEME = { chart: chartTokens };
69
70
  const DEFAULT_WIDTH = .56;
70
71
  const DEFAULT_HORIZONTAL_WIDTH = .64;
71
72
  const DEFAULT_GROUP_GAP = 3;
73
+ const DEFAULT_RADIUS = 5;
72
74
  const LABEL_FONT_SIZE = 11;
73
75
  const EDGE_SLACK = 8;
74
76
  var TxColumnChart = class TxColumnChart {
@@ -153,8 +155,10 @@ var TxColumnChart = class TxColumnChart {
153
155
  geometry = signal({
154
156
  width: DEFAULT_WIDTH,
155
157
  horizontalWidth: DEFAULT_HORIZONTAL_WIDTH,
156
- gap: DEFAULT_GROUP_GAP
158
+ gap: DEFAULT_GROUP_GAP,
159
+ radius: DEFAULT_RADIUS
157
160
  }, ...ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []);
161
+ barRadius = computed(() => this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.geometry().radius), ...ngDevMode ? [{ debugName: "barRadius" }] : /* istanbul ignore next */ []);
158
162
  intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
159
163
  list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
160
164
  table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
@@ -238,7 +242,8 @@ var TxColumnChart = class TxColumnChart {
238
242
  }
239
243
  return format(value, series, index);
240
244
  } : null,
241
- labelFontSize: LABEL_FONT_SIZE
245
+ labelFontSize: LABEL_FONT_SIZE,
246
+ barRadius: this.barRadius()
242
247
  });
243
248
  }, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
244
249
  columns = computed(() => {
@@ -477,10 +482,11 @@ var TxColumnChart = class TxColumnChart {
477
482
  const next = {
478
483
  width: readTokenNumber(element, "--tx-chart-bar-width", DEFAULT_WIDTH),
479
484
  horizontalWidth: readTokenNumber(element, "--tx-chart-bar-horizontal-width", DEFAULT_HORIZONTAL_WIDTH),
480
- gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP)
485
+ gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP),
486
+ radius: readTokenNumber(element, "--tx-chart-bar-radius", DEFAULT_RADIUS)
481
487
  };
482
488
  const current = this.geometry();
483
- if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap) this.geometry.set(next);
489
+ if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap || current.radius !== next.radius) this.geometry.set(next);
484
490
  }
485
491
  static ɵfac = i0.ɵɵngDeclareFactory({
486
492
  minVersion: "12.0.0",
@@ -769,8 +775,8 @@ var TxColumnChart = class TxColumnChart {
769
775
  isSignal: true
770
776
  }],
771
777
  ngImport: i0,
772
- 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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-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-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
773
- styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-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-column-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-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-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-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"],
778
+ 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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
779
+ styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"],
774
780
  dependencies: [
775
781
  {
776
782
  kind: "component",
@@ -878,8 +884,8 @@ i0.ɵɵngDeclareClassMetadata({
878
884
  "[class.tx-column-chart--active]": "active() !== null"
879
885
  },
880
886
  viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],
881
- 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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-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-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
882
- styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-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-column-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-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-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-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"]
887
+ 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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
888
+ styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"]
883
889
  }]
884
890
  }],
885
891
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-column.mjs","names":[],"sources":["../../../../packages/charts/column/src/column-layout.ts","../../../../packages/charts/column/src/column.icons.ts","../../../../packages/charts/column/src/column.theme.ts","../../../../packages/charts/column/src/column-chart.component.ts","../../../../packages/charts/column/src/column-chart.component.html"],"sourcesContent":["import { TxBandScale, TxContinuousScale, TxStackedValue, seriesColor, textWidth } from '@tectra-ng/charts/core';\nimport { TxColumnChartBar } from './column-chart.types';\n\n/** Everything `columnBars` needs to lay the bars out: scales, series values and label settings. */\nexport interface TxColumnLayoutInput {\n /** Category scale. */\n band: TxBandScale;\n /** Value scale. */\n value: TxContinuousScale;\n /** Draws horizontal bars with the categories on the left. */\n horizontal: boolean;\n /** Stacks the series instead of placing them side by side. */\n stacked: boolean;\n /** Share of the category band the bars of one category take (0.05 to 1). */\n widthRatio: number;\n /** Gap in px between grouped bars of one category. */\n groupGap: number;\n /** Values per series and category; `null` for a gap. */\n values: readonly (readonly (number | null)[])[];\n /** Start and end of each value in a stack, per series and category. */\n stackedValues: readonly TxStackedValue[][];\n /** Indexes of the series that are not hidden. */\n visible: readonly number[];\n /** Own colors per series; the palette fills the gaps. */\n colors: readonly (string | undefined)[];\n /** Formats the data label of a value; `null` draws no labels. */\n labels: ((value: number, series: number, index: number) => string) | null;\n /** Font size of data labels in px, used to check whether they fit. */\n labelFontSize: number;\n}\n\n/** Lays out the bars of a grouped or stacked column chart, with their data labels. */\nexport function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[] {\n const { band, value, horizontal, stacked, visible } = input;\n const group = band.bandwidth * Math.min(1, Math.max(0.05, input.widthRatio));\n const slots = stacked ? 1 : Math.max(1, visible.length);\n const slotSize = (group - input.groupGap * (slots - 1)) / slots;\n const bars: TxColumnChartBar[] = [];\n const outermost = new Map<string, number>();\n\n if (stacked) {\n for (const seriesIndex of visible) {\n input.stackedValues[seriesIndex]?.forEach((entry, index) => {\n if (!entry || entry[0] === entry[1]) return;\n const sign = entry[1] > entry[0] ? 1 : -1;\n outermost.set(`${index}:${sign}`, seriesIndex);\n });\n }\n }\n\n visible.forEach((seriesIndex, slot) => {\n const raw = input.values[seriesIndex] ?? [];\n raw.forEach((rawValue, index) => {\n if (rawValue === null || rawValue === undefined) return;\n const base = value.domain[0] > 0 ? value.domain[0] : value.domain[1] < 0 ? value.domain[1] : 0;\n const [from, to] = stacked ? (input.stackedValues[seriesIndex]?.[index] ?? [0, 0]) : [base, rawValue];\n if (from === to) return;\n const start = band.center(index) - group / 2 + (stacked ? 0 : slot * (slotSize + input.groupGap));\n const a = value.map(from);\n const b = value.map(to);\n const positive = to >= from;\n const isEnd = stacked ? outermost.get(`${index}:${positive ? 1 : -1}`) === seriesIndex : true;\n const end = !isEnd || from === to ? null : horizontal ? (positive ? 'right' : 'left') : positive ? 'top' : 'bottom';\n const rect = horizontal\n ? { x: Math.min(a, b), y: start, width: Math.abs(b - a), height: slotSize }\n : { x: start, y: Math.min(a, b), width: slotSize, height: Math.abs(b - a) };\n const text = input.labels ? input.labels(rawValue, seriesIndex, index) : null;\n const textSize = text ? textWidth(text, input.labelFontSize) : 0;\n const inside = !!text && (horizontal ? rect.width >= textSize + 8 && rect.height >= input.labelFontSize + 2 : rect.height >= input.labelFontSize + 6 && rect.width >= textSize + 4);\n const outsideAllowed = !stacked;\n const showLabel = !!text && (inside || outsideAllowed);\n bars.push({\n key: `${seriesIndex}:${index}`,\n series: seriesIndex,\n index,\n ...rect,\n color: seriesColor(input.colors[seriesIndex], seriesIndex),\n end,\n dir: horizontal ? (positive ? 'right' : 'left') : positive ? 'up' : 'down',\n label: showLabel ? text : null,\n labelX: horizontal ? (inside ? rect.x + rect.width / 2 : positive ? rect.x + rect.width + 4 : rect.x - 4) : rect.x + rect.width / 2,\n labelY: horizontal ? rect.y + rect.height / 2 : inside ? rect.y + rect.height / 2 : positive ? rect.y - 4 : rect.y + rect.height + 4,\n inside,\n });\n });\n });\n return bars;\n}\n","import { TxIconSet, txIconChartBar, txIconDot } from '@tectra-ng/icons';\n\nexport const COLUMN_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n dot: txIconDot,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const COLUMN_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxBandScale,\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxValueScaleKind,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n chartTable,\n cycleIndex,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n normalizeSeries,\n readTokenNumber,\n seriesColor,\n stackExtent,\n stackValues,\n stepIndex,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n chartAnnotationShapes,\n chartCategoryIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { columnBars } from './column-layout';\nimport { TxColumnChartPart, TxColumnChartPointEvent, TxColumnChartSeriesToggle, TxColumnChartStackType } from './column-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { COLUMN_ICON_DEFAULTS } from './column.icons';\nimport { COLUMN_THEME } from './column.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst DEFAULT_HORIZONTAL_WIDTH = 0.64;\nconst DEFAULT_GROUP_GAP = 3;\nconst LABEL_FONT_SIZE = 11;\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-column-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand, TxChartAnnotations],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-column-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'horizontal() ? \"horizontal\" : \"vertical\"',\n '[class.tx-column-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-column-chart--entering]': 'entrance.active()',\n '[class.tx-column-chart--morph]': 'morph()',\n '[class.tx-column-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-column-chart--stacked]': 'isStacked()',\n '[class.tx-column-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],\n})\nexport class TxColumnChart {\n private readonly columnTheme = injectTokens(COLUMN_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxColumnChartStackType>('normal');\n readonly height = input<TxChartHeight>(350);\n readonly horizontal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dataLabels = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('dot');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode | undefined>(undefined);\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabelWidth = input(220);\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxColumnChartPart, TxColumnChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxColumnChartSeriesToggle>();\n readonly barClick = output<TxColumnChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('columnChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly geometry = signal({ width: DEFAULT_WIDTH, horizontalWidth: DEFAULT_HORIZONTAL_WIDTH, gap: DEFAULT_GROUP_GAP });\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], 'category'));\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly stackedValues = computed(() => {\n const visible = new Set(this.visibleIndexes());\n return stackValues(\n this.table().values.map((row, index) => (visible.has(index) ? row : row.map(() => null))),\n this.stackType(),\n );\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n if (this.isStacked()) {\n return stackExtent(this.stackedValues());\n }\n return extent(this.visibleIndexes().flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly percentStack = computed(() => this.isStacked() && this.stackType() === '100%');\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.percentStack() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const horizontal = this.horizontal();\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n horizontal,\n category: {\n kind: 'band',\n labels: this.table().labels,\n count: this.table().labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: true,\n min: this.percentStack() ? 0 : this.yMin(),\n max: this.percentStack() ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid() ?? 'value',\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly band = computed(() => this.layout().category as TxBandScale);\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly bars = computed(() => {\n const layout = this.layout();\n const geometry = this.geometry();\n const format = this.formatValue();\n const percent = this.percentStack();\n const stacked = this.stackedValues();\n return columnBars({\n band: this.band(),\n value: layout.value,\n horizontal: this.horizontal(),\n stacked: this.isStacked(),\n widthRatio: this.horizontal() ? geometry.horizontalWidth : geometry.width,\n groupGap: geometry.gap,\n values: this.table().values,\n stackedValues: stacked,\n visible: this.visibleIndexes(),\n colors: this.list().map((item) => item.color),\n labels: this.dataLabels()\n ? (value, series, index) => {\n if (percent) {\n const entry = stacked[series]?.[index];\n return entry ? chartNumberFormatter(this.intl(), 'percent')(entry[1] - entry[0]) : '';\n }\n return format(value, series, index);\n }\n : null,\n labelFontSize: LABEL_FONT_SIZE,\n });\n });\n\n readonly columns = computed(() => {\n const boxes = new Map<number, { x1: number; y1: number; x2: number; y2: number; negative: boolean }>();\n for (const bar of this.bars()) {\n const box = boxes.get(bar.index);\n const negative = bar.end === 'bottom' || bar.end === 'left';\n if (!box) {\n boxes.set(bar.index, { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative });\n } else {\n box.x1 = Math.min(box.x1, bar.x);\n box.y1 = Math.min(box.y1, bar.y);\n box.x2 = Math.max(box.x2, bar.x + bar.width);\n box.y2 = Math.max(box.y2, bar.y + bar.height);\n box.negative = box.negative && negative;\n }\n }\n return boxes;\n });\n\n readonly hoverBand = computed(() => {\n const active = this.active();\n return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n const band = this.band();\n const labels = this.table().labels;\n return chartAnnotationShapes(this.annotations(), {\n plot: layout.plot,\n horizontal: this.horizontal(),\n x: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : band.center(index);\n },\n xSpan: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];\n },\n y: (value) => layout.value.map(value),\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.valueFormatter();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n const raw = active ? values[active.index] : values.reduce<number>((sum, value) => sum + (value ?? 0), 0);\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat\n ? { value: raw === null || raw === undefined ? '—' : format(raw), caption: active ? this.table().labels[active.index] : this.translations().chartTotal }\n : {}),\n };\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const box = this.columns().get(active.index);\n if (!box) return null;\n const single = this.tooltipMode() === 'single';\n const bar = single ? this.bars().find((item) => item.index === active.index && item.series === active.series) : null;\n const area = bar ? { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative: bar.end === 'bottom' || bar.end === 'left' } : box;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n const title = this.table().labels[active.index] ?? '';\n if (this.horizontal()) {\n return area.negative\n ? { title, rows, total, index: active.index, x: area.x1, y: (area.y1 + area.y2) / 2, placement: 'left' }\n : { title, rows, total, index: active.index, x: area.x2, y: (area.y1 + area.y2) / 2, placement: 'right' };\n }\n return area.negative\n ? { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y2, placement: 'bottom' }\n : { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y1, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const values = this.table().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), this.horizontal() ? t.chartBar : t.chartColumn, this.list().length, this.table().labels.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() =>\n chartTable(\n this.table().labels,\n this.list().map((item, index) => ({ name: item.name, values: this.table().values[index] })),\n this.valueFormatter(),\n ),\n );\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isActive(index: number, series: number): boolean {\n const active = this.active();\n return !!active && active.index === index && (this.tooltipMode() === 'shared' || active.series === series);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const index = this.categoryAt(event.x, event.y);\n if (index < 0) {\n this.active.set(null);\n return;\n }\n const series = this.seriesAt(index, event.x, event.y);\n this.active.set({ index, series, pointerY: null, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.barClick.emit({ seriesIndex: series, dataPointIndex: index, value: this.table().values[series][index], category: this.table().labels[index] ?? '' });\n }\n }\n\n private categoryAt(x: number, y: number): number {\n const plot = this.layout().plot;\n const inside = x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK;\n return inside && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const count = this.table().labels.length;\n const current = this.active();\n const visible = this.visibleIndexes();\n const horizontal = this.horizontal();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n const seriesKeys = horizontal ? ['ArrowLeft', 'ArrowRight'] : ['ArrowUp', 'ArrowDown'];\n if (seriesKeys.includes(event.key)) {\n series = cycleIndex(series, event.key === seriesKeys[1] ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = horizontal ? stepIndex(event.key, index, count, 'ArrowDown', 'ArrowUp') : stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.table().labels[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private seriesAt(index: number, x: number, y: number): number {\n 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);\n if (hit) return hit.series;\n const candidates = this.bars().filter((bar) => bar.index === index);\n if (!this.isStacked() && candidates.length) {\n const along = (bar: (typeof candidates)[number]) => (this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2));\n return candidates.reduce((best, bar) => (along(bar) < along(best) ? bar : best)).series;\n }\n return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n width: readTokenNumber(element, '--tx-chart-bar-width', DEFAULT_WIDTH),\n horizontalWidth: readTokenNumber(element, '--tx-chart-bar-horizontal-width', DEFAULT_HORIZONTAL_WIDTH),\n gap: readTokenNumber(element, '--tx-chart-bar-group-gap', DEFAULT_GROUP_GAP),\n };\n const current = this.geometry();\n if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap) {\n this.geometry.set(next);\n }\n }\n}\n","<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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-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-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAgCA,SAAgB,WAAW,OAA0B;CACnD,MAAM,EAAE,MAAM,OAAO,YAAY,SAAS,YAAY;CACtD,MAAM,QAAQ,KAAK,YAAY,KAAK,IAAI,GAAG,KAAK,IAAI,KAAM,MAAM,UAAU,CAAC;CAC3E,MAAM,QAAQ,UAAU,IAAI,KAAK,IAAI,GAAG,QAAQ,MAAM;CACtD,MAAM,YAAY,QAAQ,MAAM,YAAY,QAAQ,MAAM;CAC1D,MAAM,OAA2B,CAAA;CACjC,MAAM,4BAAY,IAAI,IAAG;CAEzB,IAAI,SACF,KAAK,MAAM,eAAe,SACxB,MAAM,cAAc,YAAY,EAAE,SAAS,OAAO,UAAS;EACzD,IAAI,CAAC,SAAS,MAAM,OAAO,MAAM,IAAI;EACrC,MAAM,OAAO,MAAM,KAAK,MAAM,KAAK,IAAI;EACvC,UAAU,IAAI,GAAG,MAAK,GAAI,QAAQ,WAAW;CAC/C,CAAC;CAIL,QAAQ,SAAS,aAAa,SAAQ;EAEpC,CADY,MAAM,OAAO,gB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../../../packages/charts/column/src/column.icons.ts","../../../../packages/charts/column/src/column.theme.ts","../../../../packages/charts/column/src/column-chart.component.ts","../../../../packages/charts/column/src/column-chart.component.html"],"sourcesContent":["import { TxBandScale, TxContinuousScale, TxStackedValue, barPath, seriesColor, textWidth } from '@tectra-ng/charts/core';\nimport { TxColumnChartBar } from './column-chart.types';\n\n/** Everything `columnBars` needs to lay the bars out: scales, series values and label settings. */\nexport interface TxColumnLayoutInput {\n /** Category scale. */\n band: TxBandScale;\n /** Value scale. */\n value: TxContinuousScale;\n /** Draws horizontal bars with the categories on the left. */\n horizontal: boolean;\n /** Stacks the series instead of placing them side by side. */\n stacked: boolean;\n /** Share of the category band the bars of one category take (0.05 to 1). */\n widthRatio: number;\n /** Gap in px between grouped bars of one category. */\n groupGap: number;\n /** Values per series and category; `null` for a gap. */\n values: readonly (readonly (number | null)[])[];\n /** Start and end of each value in a stack, per series and category. */\n stackedValues: readonly TxStackedValue[][];\n /** Indexes of the series that are not hidden. */\n visible: readonly number[];\n /** Own colors per series; the palette fills the gaps. */\n colors: readonly (string | undefined)[];\n /** Formats the data label of a value; `null` draws no labels. */\n labels: ((value: number, series: number, index: number) => string) | null;\n /** Font size of data labels in px, used to check whether they fit. */\n labelFontSize: number;\n /** Corner radius in px of the outer end of a bar (0 by default); it shrinks to fit a thin or short bar. */\n barRadius?: number;\n}\n\n/** Lays out the bars of a grouped or stacked column chart, with their data labels. */\nexport function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[] {\n const { band, value, horizontal, stacked, visible } = input;\n const group = band.bandwidth * Math.min(1, Math.max(0.05, input.widthRatio));\n const slots = stacked ? 1 : Math.max(1, visible.length);\n const slotSize = (group - input.groupGap * (slots - 1)) / slots;\n const bars: TxColumnChartBar[] = [];\n const outermost = new Map<string, number>();\n\n if (stacked) {\n for (const seriesIndex of visible) {\n input.stackedValues[seriesIndex]?.forEach((entry, index) => {\n if (!entry || entry[0] === entry[1]) return;\n const sign = entry[1] > entry[0] ? 1 : -1;\n outermost.set(`${index}:${sign}`, seriesIndex);\n });\n }\n }\n\n visible.forEach((seriesIndex, slot) => {\n const raw = input.values[seriesIndex] ?? [];\n raw.forEach((rawValue, index) => {\n if (rawValue === null || rawValue === undefined) return;\n const base = value.domain[0] > 0 ? value.domain[0] : value.domain[1] < 0 ? value.domain[1] : 0;\n const [from, to] = stacked ? (input.stackedValues[seriesIndex]?.[index] ?? [0, 0]) : [base, rawValue];\n if (from === to) return;\n const start = band.center(index) - group / 2 + (stacked ? 0 : slot * (slotSize + input.groupGap));\n const a = value.map(from);\n const b = value.map(to);\n const positive = to >= from;\n const isEnd = stacked ? outermost.get(`${index}:${positive ? 1 : -1}`) === seriesIndex : true;\n const end = !isEnd || from === to ? null : horizontal ? (positive ? 'right' : 'left') : positive ? 'top' : 'bottom';\n const rect = horizontal\n ? { x: Math.min(a, b), y: start, width: Math.abs(b - a), height: slotSize }\n : { x: start, y: Math.min(a, b), width: slotSize, height: Math.abs(b - a) };\n const text = input.labels ? input.labels(rawValue, seriesIndex, index) : null;\n const textSize = text ? textWidth(text, input.labelFontSize) : 0;\n const inside = !!text && (horizontal ? rect.width >= textSize + 8 && rect.height >= input.labelFontSize + 2 : rect.height >= input.labelFontSize + 6 && rect.width >= textSize + 4);\n const outsideAllowed = !stacked;\n const showLabel = !!text && (inside || outsideAllowed);\n bars.push({\n key: `${seriesIndex}:${index}`,\n series: seriesIndex,\n index,\n ...rect,\n path: barPath(rect, end, input.barRadius),\n color: seriesColor(input.colors[seriesIndex], seriesIndex),\n end,\n dir: horizontal ? (positive ? 'right' : 'left') : positive ? 'up' : 'down',\n label: showLabel ? text : null,\n labelX: horizontal ? (inside ? rect.x + rect.width / 2 : positive ? rect.x + rect.width + 4 : rect.x - 4) : rect.x + rect.width / 2,\n labelY: horizontal ? rect.y + rect.height / 2 : inside ? rect.y + rect.height / 2 : positive ? rect.y - 4 : rect.y + rect.height + 4,\n inside,\n });\n });\n });\n return bars;\n}\n","import { TxIconSet, txIconChartBar, txIconDot } from '@tectra-ng/icons';\n\nexport const COLUMN_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n dot: txIconDot,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const COLUMN_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxBandScale,\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxValueScaleKind,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n chartTable,\n cycleIndex,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n normalizeSeries,\n parseRatio,\n readTokenNumber,\n seriesColor,\n stackExtent,\n stackValues,\n stepIndex,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n chartAnnotationShapes,\n chartCategoryIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { columnBars } from './column-layout';\nimport { TxColumnChartPart, TxColumnChartPointEvent, TxColumnChartSeriesToggle, TxColumnChartStackType } from './column-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { COLUMN_ICON_DEFAULTS } from './column.icons';\nimport { COLUMN_THEME } from './column.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst DEFAULT_HORIZONTAL_WIDTH = 0.64;\nconst DEFAULT_GROUP_GAP = 3;\nconst DEFAULT_RADIUS = 5;\nconst LABEL_FONT_SIZE = 11;\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-column-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand, TxChartAnnotations],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-column-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'horizontal() ? \"horizontal\" : \"vertical\"',\n '[class.tx-column-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-column-chart--entering]': 'entrance.active()',\n '[class.tx-column-chart--morph]': 'morph()',\n '[class.tx-column-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-column-chart--stacked]': 'isStacked()',\n '[class.tx-column-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],\n})\nexport class TxColumnChart {\n private readonly columnTheme = injectTokens(COLUMN_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxColumnChartStackType>('normal');\n readonly height = input<TxChartHeight>(350);\n readonly horizontal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dataLabels = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('dot');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode | undefined>(undefined);\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabelWidth = input(220);\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxColumnChartPart, TxColumnChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxColumnChartSeriesToggle>();\n readonly barClick = output<TxColumnChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('columnChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly geometry = signal({ width: DEFAULT_WIDTH, horizontalWidth: DEFAULT_HORIZONTAL_WIDTH, gap: DEFAULT_GROUP_GAP, radius: DEFAULT_RADIUS });\n readonly barRadius = computed(() => (this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.geometry().radius)));\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], 'category'));\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly stackedValues = computed(() => {\n const visible = new Set(this.visibleIndexes());\n return stackValues(\n this.table().values.map((row, index) => (visible.has(index) ? row : row.map(() => null))),\n this.stackType(),\n );\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n if (this.isStacked()) {\n return stackExtent(this.stackedValues());\n }\n return extent(this.visibleIndexes().flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly percentStack = computed(() => this.isStacked() && this.stackType() === '100%');\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.percentStack() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const horizontal = this.horizontal();\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n horizontal,\n category: {\n kind: 'band',\n labels: this.table().labels,\n count: this.table().labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: true,\n min: this.percentStack() ? 0 : this.yMin(),\n max: this.percentStack() ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid() ?? 'value',\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly band = computed(() => this.layout().category as TxBandScale);\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly bars = computed(() => {\n const layout = this.layout();\n const geometry = this.geometry();\n const format = this.formatValue();\n const percent = this.percentStack();\n const stacked = this.stackedValues();\n return columnBars({\n band: this.band(),\n value: layout.value,\n horizontal: this.horizontal(),\n stacked: this.isStacked(),\n widthRatio: this.horizontal() ? geometry.horizontalWidth : geometry.width,\n groupGap: geometry.gap,\n values: this.table().values,\n stackedValues: stacked,\n visible: this.visibleIndexes(),\n colors: this.list().map((item) => item.color),\n labels: this.dataLabels()\n ? (value, series, index) => {\n if (percent) {\n const entry = stacked[series]?.[index];\n return entry ? chartNumberFormatter(this.intl(), 'percent')(entry[1] - entry[0]) : '';\n }\n return format(value, series, index);\n }\n : null,\n labelFontSize: LABEL_FONT_SIZE,\n barRadius: this.barRadius(),\n });\n });\n\n readonly columns = computed(() => {\n const boxes = new Map<number, { x1: number; y1: number; x2: number; y2: number; negative: boolean }>();\n for (const bar of this.bars()) {\n const box = boxes.get(bar.index);\n const negative = bar.end === 'bottom' || bar.end === 'left';\n if (!box) {\n boxes.set(bar.index, { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative });\n } else {\n box.x1 = Math.min(box.x1, bar.x);\n box.y1 = Math.min(box.y1, bar.y);\n box.x2 = Math.max(box.x2, bar.x + bar.width);\n box.y2 = Math.max(box.y2, bar.y + bar.height);\n box.negative = box.negative && negative;\n }\n }\n return boxes;\n });\n\n readonly hoverBand = computed(() => {\n const active = this.active();\n return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n const band = this.band();\n const labels = this.table().labels;\n return chartAnnotationShapes(this.annotations(), {\n plot: layout.plot,\n horizontal: this.horizontal(),\n x: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : band.center(index);\n },\n xSpan: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];\n },\n y: (value) => layout.value.map(value),\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.valueFormatter();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n const raw = active ? values[active.index] : values.reduce<number>((sum, value) => sum + (value ?? 0), 0);\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat\n ? { value: raw === null || raw === undefined ? '—' : format(raw), caption: active ? this.table().labels[active.index] : this.translations().chartTotal }\n : {}),\n };\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const box = this.columns().get(active.index);\n if (!box) return null;\n const single = this.tooltipMode() === 'single';\n const bar = single ? this.bars().find((item) => item.index === active.index && item.series === active.series) : null;\n const area = bar ? { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative: bar.end === 'bottom' || bar.end === 'left' } : box;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n const title = this.table().labels[active.index] ?? '';\n if (this.horizontal()) {\n return area.negative\n ? { title, rows, total, index: active.index, x: area.x1, y: (area.y1 + area.y2) / 2, placement: 'left' }\n : { title, rows, total, index: active.index, x: area.x2, y: (area.y1 + area.y2) / 2, placement: 'right' };\n }\n return area.negative\n ? { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y2, placement: 'bottom' }\n : { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y1, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const values = this.table().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), this.horizontal() ? t.chartBar : t.chartColumn, this.list().length, this.table().labels.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() =>\n chartTable(\n this.table().labels,\n this.list().map((item, index) => ({ name: item.name, values: this.table().values[index] })),\n this.valueFormatter(),\n ),\n );\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isActive(index: number, series: number): boolean {\n const active = this.active();\n return !!active && active.index === index && (this.tooltipMode() === 'shared' || active.series === series);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const index = this.categoryAt(event.x, event.y);\n if (index < 0) {\n this.active.set(null);\n return;\n }\n const series = this.seriesAt(index, event.x, event.y);\n this.active.set({ index, series, pointerY: null, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.barClick.emit({ seriesIndex: series, dataPointIndex: index, value: this.table().values[series][index], category: this.table().labels[index] ?? '' });\n }\n }\n\n private categoryAt(x: number, y: number): number {\n const plot = this.layout().plot;\n const inside = x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK;\n return inside && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const count = this.table().labels.length;\n const current = this.active();\n const visible = this.visibleIndexes();\n const horizontal = this.horizontal();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n const seriesKeys = horizontal ? ['ArrowLeft', 'ArrowRight'] : ['ArrowUp', 'ArrowDown'];\n if (seriesKeys.includes(event.key)) {\n series = cycleIndex(series, event.key === seriesKeys[1] ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = horizontal ? stepIndex(event.key, index, count, 'ArrowDown', 'ArrowUp') : stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.table().labels[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private seriesAt(index: number, x: number, y: number): number {\n 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);\n if (hit) return hit.series;\n const candidates = this.bars().filter((bar) => bar.index === index);\n if (!this.isStacked() && candidates.length) {\n const along = (bar: (typeof candidates)[number]) => (this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2));\n return candidates.reduce((best, bar) => (along(bar) < along(best) ? bar : best)).series;\n }\n return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n width: readTokenNumber(element, '--tx-chart-bar-width', DEFAULT_WIDTH),\n horizontalWidth: readTokenNumber(element, '--tx-chart-bar-horizontal-width', DEFAULT_HORIZONTAL_WIDTH),\n gap: readTokenNumber(element, '--tx-chart-bar-group-gap', DEFAULT_GROUP_GAP),\n radius: readTokenNumber(element, '--tx-chart-bar-radius', DEFAULT_RADIUS),\n };\n const current = this.geometry();\n if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap || current.radius !== next.radius) {\n this.geometry.set(next);\n }\n }\n}\n","<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-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-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-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g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,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,qBAAqB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACpB,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC3B,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,4 +1,4 @@
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";
1
+ import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, areaPath, barPath, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, linePath, normalizeSeries, parseRatio, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, toggleKey } from "@tectra-ng/charts/core";
2
2
  import * as i0 from "@angular/core";
3
3
  import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
4
4
  import { uniqueId } from "@tectra-ng/core/a11y";
@@ -44,16 +44,21 @@ function comboBars(input) {
44
44
  const b = scale.map(to);
45
45
  const positive = to >= from;
46
46
  const isEnd = stacked ? outermost.get(`${slot}:${index}:${positive ? 1 : -1}`) === series : true;
47
+ const rect = {
48
+ x: band.center(index) - group / 2 + slot * (slotSize + input.groupGap),
49
+ y: Math.min(a, b),
50
+ width: slotSize,
51
+ height: Math.abs(b - a)
52
+ };
53
+ const end = isEnd ? positive ? "top" : "bottom" : null;
47
54
  bars.push({
48
55
  key: `${series}:${index}`,
49
56
  series,
50
57
  index,
51
- x: band.center(index) - group / 2 + slot * (slotSize + input.groupGap),
52
- y: Math.min(a, b),
53
- width: slotSize,
54
- height: Math.abs(b - a),
58
+ ...rect,
59
+ path: barPath(rect, end, input.barRadius),
55
60
  color: seriesColor(input.colors[series], series),
56
- end: isEnd ? positive ? "top" : "bottom" : null,
61
+ end,
57
62
  dir: positive ? "up" : "down"
58
63
  });
59
64
  });
@@ -67,6 +72,7 @@ const COMBO_ICON_DEFAULTS = {
67
72
  const COMBO_THEME = { chart: chartTokens };
68
73
  const DEFAULT_WIDTH = .56;
69
74
  const DEFAULT_GROUP_GAP = 3;
75
+ const DEFAULT_RADIUS = 5;
70
76
  const EDGE_SLACK = 8;
71
77
  var TxComboChart = class TxComboChart {
72
78
  comboTheme = injectTokens(COMBO_THEME);
@@ -150,8 +156,10 @@ var TxComboChart = class TxComboChart {
150
156
  active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
151
157
  geometry = signal({
152
158
  width: DEFAULT_WIDTH,
153
- gap: DEFAULT_GROUP_GAP
159
+ gap: DEFAULT_GROUP_GAP,
160
+ radius: DEFAULT_RADIUS
154
161
  }, ...ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []);
162
+ barRadius = computed(() => this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.geometry().radius), ...ngDevMode ? [{ debugName: "barRadius" }] : /* istanbul ignore next */ []);
155
163
  intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
156
164
  list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
157
165
  table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
@@ -255,7 +263,8 @@ var TxComboChart = class TxComboChart {
255
263
  values: this.table().values,
256
264
  stackedValues: this.stackedValues(),
257
265
  columns: this.columnIndexes(),
258
- colors: this.list().map((item) => item.color)
266
+ colors: this.list().map((item) => item.color),
267
+ barRadius: this.barRadius()
259
268
  });
260
269
  }, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
261
270
  paths = computed(() => {
@@ -482,10 +491,11 @@ var TxComboChart = class TxComboChart {
482
491
  const element = this.host.nativeElement;
483
492
  const next = {
484
493
  width: readTokenNumber(element, "--tx-chart-bar-width", DEFAULT_WIDTH),
485
- gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP)
494
+ gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP),
495
+ radius: readTokenNumber(element, "--tx-chart-bar-radius", DEFAULT_RADIUS)
486
496
  };
487
497
  const current = this.geometry();
488
- if (current.width !== next.width || current.gap !== next.gap) this.geometry.set(next);
498
+ if (current.width !== next.width || current.gap !== next.gap || current.radius !== next.radius) this.geometry.set(next);
489
499
  }
490
500
  static ɵfac = i0.ɵɵngDeclareFactory({
491
501
  minVersion: "12.0.0",
@@ -794,8 +804,8 @@ var TxComboChart = class TxComboChart {
794
804
  isSignal: true
795
805
  }],
796
806
  ngImport: i0,
797
- 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",
798
- 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"],
807
+ 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:path\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.d]=\"bar.path\"\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",
808
+ 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__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,d 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"],
799
809
  dependencies: [
800
810
  {
801
811
  kind: "component",
@@ -902,8 +912,8 @@ i0.ɵɵngDeclareClassMetadata({
902
912
  "[class.tx-combo-chart--active]": "active() !== null"
903
913
  },
904
914
  viewProviders: [provideTxIconDefaults(COMBO_ICON_DEFAULTS)],
905
- 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",
906
- 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"]
915
+ 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:path\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.d]=\"bar.path\"\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",
916
+ 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__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,d 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"]
907
917
  }]
908
918
  }],
909
919
  ctorParameters: () => [],