@tectra-ng/charts 0.4.3 → 0.4.5
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.
- package/column/README.md +1 -1
- package/combo/README.md +1 -1
- package/core/README.md +1 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
- package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
- package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
- package/fesm2022/tectra-ng-charts-candlestick.mjs +3 -3
- package/fesm2022/tectra-ng-charts-column.mjs +18 -12
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +27 -17
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-core.mjs +70 -44
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +10 -8
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +5 -5
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +3 -3
- package/fesm2022/tectra-ng-charts-heatmap.mjs +59 -25
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-org-chart.mjs +100 -47
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +40 -20
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-range-area.mjs +3 -3
- package/fesm2022/tectra-ng-charts-rank-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-sankey.mjs +3 -3
- package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-sunburst.mjs +3 -3
- package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
- package/fesm2022/tectra-ng-charts-waterfall.mjs +21 -12
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts.mjs +1 -1
- package/heatmap/README.md +2 -0
- package/org-chart/README.md +7 -2
- package/package.json +5 -5
- package/pie/README.md +1 -1
- package/types/tectra-ng-charts-column.d.ts +6 -0
- package/types/tectra-ng-charts-column.d.ts.map +1 -1
- package/types/tectra-ng-charts-combo.d.ts +6 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -1
- package/types/tectra-ng-charts-core.d.ts +22 -2
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +1 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-heatmap.d.ts +19 -3
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +32 -10
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +1 -0
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +4 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
- package/types/tectra-ng-charts.d.ts +1 -1
- package/waterfall/README.md +1 -1
|
@@ -82,7 +82,7 @@ var TxTreemapTileTemplate = class TxTreemapTileTemplate {
|
|
|
82
82
|
}
|
|
83
83
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
84
84
|
minVersion: "12.0.0",
|
|
85
|
-
version: "22.2.
|
|
85
|
+
version: "22.2.6",
|
|
86
86
|
ngImport: i0,
|
|
87
87
|
type: TxTreemapTileTemplate,
|
|
88
88
|
deps: [],
|
|
@@ -90,7 +90,7 @@ var TxTreemapTileTemplate = class TxTreemapTileTemplate {
|
|
|
90
90
|
});
|
|
91
91
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
92
92
|
minVersion: "14.0.0",
|
|
93
|
-
version: "22.2.
|
|
93
|
+
version: "22.2.6",
|
|
94
94
|
type: TxTreemapTileTemplate,
|
|
95
95
|
isStandalone: true,
|
|
96
96
|
selector: "ng-template[txTreemapTile]",
|
|
@@ -99,7 +99,7 @@ var TxTreemapTileTemplate = class TxTreemapTileTemplate {
|
|
|
99
99
|
};
|
|
100
100
|
i0.ɵɵngDeclareClassMetadata({
|
|
101
101
|
minVersion: "12.0.0",
|
|
102
|
-
version: "22.2.
|
|
102
|
+
version: "22.2.6",
|
|
103
103
|
ngImport: i0,
|
|
104
104
|
type: TxTreemapTileTemplate,
|
|
105
105
|
decorators: [{
|
|
@@ -332,7 +332,7 @@ var TxTreemap = class TxTreemap {
|
|
|
332
332
|
}
|
|
333
333
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
334
334
|
minVersion: "12.0.0",
|
|
335
|
-
version: "22.2.
|
|
335
|
+
version: "22.2.6",
|
|
336
336
|
ngImport: i0,
|
|
337
337
|
type: TxTreemap,
|
|
338
338
|
deps: [],
|
|
@@ -340,7 +340,7 @@ var TxTreemap = class TxTreemap {
|
|
|
340
340
|
});
|
|
341
341
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
342
342
|
minVersion: "17.0.0",
|
|
343
|
-
version: "22.2.
|
|
343
|
+
version: "22.2.6",
|
|
344
344
|
type: TxTreemap,
|
|
345
345
|
isStandalone: true,
|
|
346
346
|
selector: "tx-treemap",
|
|
@@ -531,7 +531,7 @@ var TxTreemap = class TxTreemap {
|
|
|
531
531
|
};
|
|
532
532
|
i0.ɵɵngDeclareClassMetadata({
|
|
533
533
|
minVersion: "12.0.0",
|
|
534
|
-
version: "22.2.
|
|
534
|
+
version: "22.2.6",
|
|
535
535
|
ngImport: i0,
|
|
536
536
|
type: TxTreemap,
|
|
537
537
|
decorators: [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
|
|
3
|
-
import { TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartTooltipTemplate, cartesianLayout, chartBandRect, chartNumberFormatter, chartSummary, compactValueFormatter, initialChartSize, injectChartEntrance, readTokenNumber, stepIndex, textWidth } from "@tectra-ng/charts/core";
|
|
3
|
+
import { TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartTooltipTemplate, barPath, cartesianLayout, chartBandRect, chartNumberFormatter, chartSummary, compactValueFormatter, initialChartSize, injectChartEntrance, parseRatio, readTokenNumber, stepIndex, textWidth } from "@tectra-ng/charts/core";
|
|
4
4
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
5
|
import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
6
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
@@ -63,6 +63,7 @@ function visibleLabels(boxes, gap = 4) {
|
|
|
63
63
|
const WATERFALL_ICON_DEFAULTS = { "chart-bar": txIconChartBar };
|
|
64
64
|
const WATERFALL_THEME = { chart: chartTokens };
|
|
65
65
|
const DEFAULT_WIDTH = .56;
|
|
66
|
+
const DEFAULT_RADIUS = 5;
|
|
66
67
|
const LABEL_GAP = 4;
|
|
67
68
|
const LABEL_FONT_SIZE = 11;
|
|
68
69
|
function signedFormat(format) {
|
|
@@ -131,6 +132,8 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
131
132
|
morph = signal(false, ...ngDevMode ? [{ debugName: "morph" }] : /* istanbul ignore next */ []);
|
|
132
133
|
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
133
134
|
barWidth = signal(DEFAULT_WIDTH, ...ngDevMode ? [{ debugName: "barWidth" }] : /* istanbul ignore next */ []);
|
|
135
|
+
tokenRadius = signal(DEFAULT_RADIUS, ...ngDevMode ? [{ debugName: "tokenRadius" }] : /* istanbul ignore next */ []);
|
|
136
|
+
barRadius = computed(() => this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.tokenRadius()), ...ngDevMode ? [{ debugName: "barRadius" }] : /* istanbul ignore next */ []);
|
|
134
137
|
intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
|
|
135
138
|
list = computed(() => this.items() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
136
139
|
steps = computed(() => waterfallSteps(this.list()), ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
|
|
@@ -173,19 +176,24 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
173
176
|
const band = layout.category;
|
|
174
177
|
const width = band.bandwidth * Math.min(1, Math.max(.05, this.barWidth()));
|
|
175
178
|
const scale = layout.value;
|
|
179
|
+
const radius = this.barRadius();
|
|
176
180
|
const bars = this.steps().map((step) => {
|
|
177
181
|
const a = scale.map(step.from);
|
|
178
182
|
const b = scale.map(step.to);
|
|
179
183
|
const y = Math.min(a, b);
|
|
180
184
|
const height = Math.max(1, Math.abs(b - a));
|
|
181
185
|
const above = step.kind === "total" ? step.to >= 0 : step.change >= 0;
|
|
182
|
-
|
|
183
|
-
...step,
|
|
184
|
-
key: `${step.index}:${step.label}`,
|
|
186
|
+
const rect = {
|
|
185
187
|
x: band.center(step.index) - width / 2,
|
|
186
188
|
y,
|
|
187
189
|
width,
|
|
188
|
-
height
|
|
190
|
+
height
|
|
191
|
+
};
|
|
192
|
+
return {
|
|
193
|
+
...step,
|
|
194
|
+
key: `${step.index}:${step.label}`,
|
|
195
|
+
...rect,
|
|
196
|
+
path: barPath(rect, "all", radius),
|
|
189
197
|
text: this.dataLabels() ? this.labelText(step.kind === "total", step.kind === "total" ? step.to : step.change, band.step) : null,
|
|
190
198
|
textY: above ? y - LABEL_GAP : y + height + LABEL_GAP,
|
|
191
199
|
above
|
|
@@ -305,6 +313,7 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
305
313
|
this.dt();
|
|
306
314
|
const next = readTokenNumber(this.host.nativeElement, "--tx-chart-bar-width", DEFAULT_WIDTH);
|
|
307
315
|
if (next !== this.barWidth()) this.barWidth.set(next);
|
|
316
|
+
this.tokenRadius.set(readTokenNumber(this.host.nativeElement, "--tx-chart-bar-radius", DEFAULT_RADIUS));
|
|
308
317
|
});
|
|
309
318
|
}
|
|
310
319
|
onPointer(event) {
|
|
@@ -345,7 +354,7 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
345
354
|
}
|
|
346
355
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
347
356
|
minVersion: "12.0.0",
|
|
348
|
-
version: "22.2.
|
|
357
|
+
version: "22.2.6",
|
|
349
358
|
ngImport: i0,
|
|
350
359
|
type: TxWaterfallChart,
|
|
351
360
|
deps: [],
|
|
@@ -353,7 +362,7 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
353
362
|
});
|
|
354
363
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
355
364
|
minVersion: "17.0.0",
|
|
356
|
-
version: "22.2.
|
|
365
|
+
version: "22.2.6",
|
|
357
366
|
type: TxWaterfallChart,
|
|
358
367
|
isStandalone: true,
|
|
359
368
|
selector: "tx-waterfall-chart",
|
|
@@ -548,8 +557,8 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
548
557
|
isSignal: true
|
|
549
558
|
}],
|
|
550
559
|
ngImport: i0,
|
|
551
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:
|
|
552
|
-
styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{
|
|
560
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.d]=\"bar.path\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.text) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
|
|
561
|
+
styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=up]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-up-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=down]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-down-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=total]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-total-color))}:host([data-styled]) .tx-waterfall-chart__connector{stroke:var(--tx-chart-waterfall-connector-color);stroke-opacity:1;stroke-width:var(--tx-chart-waterfall-connector-width);stroke-dasharray:var(--tx-chart-waterfall-connector-dash)}:host([data-styled]) .tx-waterfall-chart__label{fill:var(--tx-chart-bar-outside-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar:not(.tx-waterfall-chart__bar--active){opacity:var(--tx-chart-waterfall-dimmed-opacity)}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-waterfall-chart--morph) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__bar{animation:tx-waterfall-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-waterfall-chart-order, 0) * var(--tx-chart-motion-stagger) * 2)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__connectors,:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__labels{animation:tx-waterfall-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-waterfall-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-waterfall-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-waterfall-chart__bar,:host([data-styled]) .tx-waterfall-chart__connectors,:host([data-styled]) .tx-waterfall-chart__labels{transition:none;animation:none}}\n"],
|
|
553
562
|
dependencies: [
|
|
554
563
|
{
|
|
555
564
|
kind: "component",
|
|
@@ -619,7 +628,7 @@ var TxWaterfallChart = class TxWaterfallChart {
|
|
|
619
628
|
};
|
|
620
629
|
i0.ɵɵngDeclareClassMetadata({
|
|
621
630
|
minVersion: "12.0.0",
|
|
622
|
-
version: "22.2.
|
|
631
|
+
version: "22.2.6",
|
|
623
632
|
ngImport: i0,
|
|
624
633
|
type: TxWaterfallChart,
|
|
625
634
|
decorators: [{
|
|
@@ -643,8 +652,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
643
652
|
"[class.tx-waterfall-chart--active]": "active() !== null"
|
|
644
653
|
},
|
|
645
654
|
viewProviders: [provideTxIconDefaults(WATERFALL_ICON_DEFAULTS)],
|
|
646
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:
|
|
647
|
-
styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{
|
|
655
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.d]=\"bar.path\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.text) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
|
|
656
|
+
styles: [":host{display:block;min-width:0}:host(.tx-waterfall-chart--fill){height:100%}.tx-waterfall-chart__bar{fill:var(--tx-waterfall-chart-own, currentColor);transform-box:fill-box}.tx-waterfall-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-waterfall-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-waterfall-chart__connector{stroke:currentColor;stroke-opacity:.4}.tx-waterfall-chart__connectors,.tx-waterfall-chart__labels{pointer-events:none}:host([data-styled]) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=up]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-up-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=down]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-down-color))}:host([data-styled]) .tx-waterfall-chart__bar[data-kind=total]{fill:var(--tx-waterfall-chart-own, var(--tx-chart-waterfall-total-color))}:host([data-styled]) .tx-waterfall-chart__connector{stroke:var(--tx-chart-waterfall-connector-color);stroke-opacity:1;stroke-width:var(--tx-chart-waterfall-connector-width);stroke-dasharray:var(--tx-chart-waterfall-connector-dash)}:host([data-styled]) .tx-waterfall-chart__label{fill:var(--tx-chart-bar-outside-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar:not(.tx-waterfall-chart__bar--active){opacity:var(--tx-chart-waterfall-dimmed-opacity)}:host([data-styled].tx-waterfall-chart--active) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-waterfall-chart--morph) .tx-waterfall-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__bar{animation:tx-waterfall-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-waterfall-chart-order, 0) * var(--tx-chart-motion-stagger) * 2)}:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__connectors,:host([data-styled].tx-waterfall-chart--entering) .tx-waterfall-chart__labels{animation:tx-waterfall-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-waterfall-chart-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-waterfall-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-waterfall-chart__bar,:host([data-styled]) .tx-waterfall-chart__connectors,:host([data-styled]) .tx-waterfall-chart__labels{transition:none;animation:none}}\n"]
|
|
648
657
|
}]
|
|
649
658
|
}],
|
|
650
659
|
ctorParameters: () => [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-waterfall.mjs","names":[],"sources":["../../../../packages/charts/waterfall/src/waterfall-layout.ts","../../../../packages/charts/waterfall/src/waterfall.icons.ts","../../../../packages/charts/waterfall/src/waterfall.theme.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.html"],"sourcesContent":["import { TxWaterfallItem, TxWaterfallStep } from './waterfall-chart.types';\n\nfunction finite(value: number | null | undefined): value is number {\n return value !== null && value !== undefined && Number.isFinite(value);\n}\n\n/**\n * Turns items into steps with a running total; a total item shows the sum so far, or its own value\n * (an opening balance, a measured subtotal) that the next steps start from. Missing values count as zero.\n */\nexport function waterfallSteps(items: readonly TxWaterfallItem[]): TxWaterfallStep[] {\n let running = 0;\n return items.map((item, index) => {\n if (item.total) {\n running = finite(item.value) ? item.value : running;\n return { index, label: item.label, kind: 'total', change: running, from: 0, to: running, color: item.color ?? null };\n }\n const change = finite(item.value) ? item.value : 0;\n const from = running;\n running += change;\n return { index, label: item.label, kind: change < 0 ? 'down' : 'up', change, from, to: running, color: item.color ?? null };\n });\n}\n\n/** Smallest and largest running total, always including 0. */\nexport function waterfallExtent(steps: readonly TxWaterfallStep[]): [number, number] {\n let min = 0;\n let max = 0;\n for (const step of steps) {\n min = Math.min(min, step.from, step.to);\n max = Math.max(max, step.from, step.to);\n }\n return [min, max];\n}\n\n/** Box of a data label: horizontal centre, width, top and bottom in px. */\nexport interface TxWaterfallLabelBox {\n /** Horizontal centre, in px. */\n x: number;\n /** Width, in px. */\n width: number;\n /** Top edge, in px. */\n top: number;\n /** Bottom edge, in px. */\n bottom: number;\n /** Totals are placed first, so they win a collision. */\n total: boolean;\n}\n\n/** Which data labels to draw: totals first, then left to right, leaving out any label that overlaps a kept one. */\nexport function visibleLabels(boxes: readonly TxWaterfallLabelBox[], gap = 4): boolean[] {\n const order = boxes.map((_, index) => index).sort((a, b) => Number(boxes[b].total) - Number(boxes[a].total) || a - b);\n const kept: TxWaterfallLabelBox[] = [];\n const visible = boxes.map(() => false);\n for (const index of order) {\n const box = boxes[index];\n const hits = kept.some(\n (other) => Math.abs(other.x - box.x) < (other.width + box.width) / 2 + gap && box.top < other.bottom && other.top < box.bottom,\n );\n if (!hits) {\n kept.push(box);\n visible[index] = true;\n }\n }\n return visible;\n}\n","import { TxIconSet, txIconChartBar } from '@tectra-ng/icons';\n\nexport const WATERFALL_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const WATERFALL_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 TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n compactValueFormatter,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n stepIndex,\n textWidth,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { visibleLabels, waterfallExtent, waterfallSteps } from './waterfall-layout';\nimport { TxWaterfallBarEvent, TxWaterfallChartBar, TxWaterfallChartPart, TxWaterfallConnector, TxWaterfallItem, TxWaterfallKind } from './waterfall-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WATERFALL_ICON_DEFAULTS } from './waterfall.icons';\nimport { WATERFALL_THEME } from './waterfall.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst LABEL_GAP = 4;\nconst LABEL_FONT_SIZE = 11;\n\nfunction signedFormat(format: (value: number) => string): (value: number) => string {\n return (value) => (value > 0 ? `+${format(value)}` : value < 0 ? `−${format(-value)}` : format(value));\n}\n\n@Component({\n selector: 'tx-waterfall-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand],\n templateUrl: './waterfall-chart.component.html',\n styleUrl: './waterfall-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-waterfall-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-waterfall-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-waterfall-chart--entering]': 'entrance.active()',\n '[class.tx-waterfall-chart--morph]': 'morph()',\n '[class.tx-waterfall-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(WATERFALL_ICON_DEFAULTS)],\n})\nexport class TxWaterfallChart {\n private readonly waterfallTheme = injectTokens(WATERFALL_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly items = input<readonly TxWaterfallItem[] | null | undefined>([]);\n readonly height = input<TxChartHeight>(350);\n readonly dataLabels = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly connectors = input<boolean, unknown>(true, { 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 showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\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>('value');\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<TxWaterfallChartPart, TxWaterfallChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly barClick = output<TxWaterfallBarEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('waterfallChart', 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 readonly active = signal<number | null>(null);\n readonly barWidth = signal(DEFAULT_WIDTH);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly list = computed(() => this.items() ?? []);\n readonly steps = computed(() => waterfallSteps(this.list()));\n readonly isEmpty = computed(() => !this.list().length);\n readonly kinds = computed(() => new Set(this.steps().map((step) => step.kind)));\n readonly legendShown = computed(() => this.showLegend() && this.kinds().size > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly signed = computed(() => signedFormat(this.valueFormatter()));\n private readonly shortFormatter = computed(() => compactValueFormatter(this.intl(), this.valueFormat()));\n private readonly shortSigned = computed(() => signedFormat(this.shortFormatter()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const labels = this.steps().map((step) => step.label);\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: {\n kind: 'band',\n labels,\n count: labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: waterfallExtent(this.steps()),\n format: this.valueFormat(),\n includeZero: true,\n min: this.yMin(),\n max: this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n });\n });\n\n readonly bars = computed<TxWaterfallChartBar[]>(() => {\n const layout = this.layout();\n const band = layout.category as TxBandScale;\n const width = band.bandwidth * Math.min(1, Math.max(0.05, this.barWidth()));\n const scale = layout.value;\n const bars = this.steps().map((step) => {\n const a = scale.map(step.from);\n const b = scale.map(step.to);\n const y = Math.min(a, b);\n const height = Math.max(1, Math.abs(b - a));\n const above = step.kind === 'total' ? step.to >= 0 : step.change >= 0;\n return {\n ...step,\n key: `${step.index}:${step.label}`,\n x: band.center(step.index) - width / 2,\n y,\n width,\n height,\n text: this.dataLabels() ? this.labelText(step.kind === 'total', step.kind === 'total' ? step.to : step.change, band.step) : null,\n textY: above ? y - LABEL_GAP : y + height + LABEL_GAP,\n above,\n };\n });\n const visible = visibleLabels(\n bars.map((bar) => ({\n x: bar.x + bar.width / 2,\n width: textWidth(bar.text ?? '', LABEL_FONT_SIZE),\n top: bar.above ? bar.textY - LABEL_FONT_SIZE : bar.textY,\n bottom: bar.above ? bar.textY : bar.textY + LABEL_FONT_SIZE,\n total: bar.kind === 'total',\n })),\n );\n return bars.map((bar, index) => (visible[index] ? bar : { ...bar, text: null }));\n });\n\n readonly hoverBand = computed(() => {\n const index = this.active();\n return index === null ? null : chartBandRect(this.layout().category as TxBandScale, index, this.layout().plot);\n });\n\n readonly connectorLines = computed<TxWaterfallConnector[]>(() => {\n if (!this.connectors()) return [];\n const bars = this.bars();\n const scale = this.layout().value;\n return bars.slice(0, -1).map((bar, index) => {\n const next = bars[index + 1];\n return { key: `${bar.key}>${next.key}`, x1: bar.x + bar.width, x2: next.x, y: scale.map(bar.to) };\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const t = this.translations();\n const names: Record<TxWaterfallKind, string> = { up: t.chartIncrease, down: t.chartDecrease, total: t.chartTotal };\n return (['up', 'down', 'total'] as const)\n .filter((kind) => this.kinds().has(kind))\n .map((kind) => ({ key: kind, label: names[kind], color: `var(--tx-chart-waterfall-${kind}-color)` }));\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const index = this.active();\n if (index === null || !this.showTooltip()) return null;\n const bar = this.bars()[index];\n if (!bar) return null;\n const t = this.translations();\n const color = bar.color ?? `var(--tx-chart-waterfall-${bar.kind}-color)`;\n const rows =\n bar.kind === 'total'\n ? [{ label: t.chartTotal, value: this.valueFormatter()(bar.to), color, raw: bar.to, seriesIndex: 0, active: true }]\n : [\n { label: t.chartChange, value: this.signed()(bar.change), color, raw: bar.change, seriesIndex: 0, active: true },\n { label: t.chartTotal, value: this.valueFormatter()(bar.to), color: 'transparent', raw: bar.to, seriesIndex: 1 },\n ];\n return { title: bar.label, rows, index, x: bar.x + bar.width / 2, y: bar.above ? bar.y : bar.y + bar.height, placement: bar.above ? 'top' : 'bottom' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const steps = this.steps();\n const last = steps[steps.length - 1];\n const text = chartSummary(t, this.intl(), t.chartWaterfall, 1, steps.length, null);\n const withTotal = last ? `${text}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(last.to)}` : text;\n return this.ariaLabel() ? `${this.ariaLabel()}. ${withTotal}` : withTotal;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n return {\n columns: [\n { key: 'change', label: t.chartChange },\n { key: 'total', label: t.chartTotal },\n ],\n rows: this.steps().map((step) => ({\n label: step.label,\n cells: [step.kind === 'total' ? '—' : this.signed()(step.change), this.valueFormatter()(step.to)],\n })),\n };\n });\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n const next = readTokenNumber(this.host.nativeElement, '--tx-chart-bar-width', DEFAULT_WIDTH);\n if (next !== this.barWidth()) this.barWidth.set(next);\n });\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const plot = this.layout().plot;\n const band = this.layout().category as TxBandScale;\n const inside = event.x >= plot.left && event.x <= plot.left + plot.width && event.y >= plot.top - 8 && event.y <= plot.top + plot.height + 8;\n const index = inside ? band.indexAt(event.x) : -1;\n this.active.set(index >= 0 ? index : null);\n if (event.type === 'click' && index >= 0) {\n const step = this.steps()[index];\n this.barClick.emit({ index, label: step.label, change: step.change, total: step.to, kind: step.kind });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const index = stepIndex(event.key, this.active() ?? -1, this.steps().length);\n if (index < 0) return;\n this.active.set(index);\n const step = this.steps()[index];\n const t = this.translations();\n this.frame()?.announce(\n step.kind === 'total'\n ? `${step.label}: ${t.chartTotal} ${this.valueFormatter()(step.to)}`\n : `${step.label}: ${this.signed()(step.change)}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(step.to)}`,\n );\n }\n\n private labelText(total: boolean, value: number, room: number): string {\n const full = total ? this.valueFormatter()(value) : this.signed()(value);\n return textWidth(full, LABEL_FONT_SIZE) <= room - LABEL_GAP ? full : total ? this.shortFormatter()(value) : this.shortSigned()(value);\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 [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.text) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [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AA,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,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,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,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
|
+
{"version":3,"file":"tectra-ng-charts-waterfall.mjs","names":[],"sources":["../../../../packages/charts/waterfall/src/waterfall-layout.ts","../../../../packages/charts/waterfall/src/waterfall.icons.ts","../../../../packages/charts/waterfall/src/waterfall.theme.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.html"],"sourcesContent":["import { TxWaterfallItem, TxWaterfallStep } from './waterfall-chart.types';\n\nfunction finite(value: number | null | undefined): value is number {\n return value !== null && value !== undefined && Number.isFinite(value);\n}\n\n/**\n * Turns items into steps with a running total; a total item shows the sum so far, or its own value\n * (an opening balance, a measured subtotal) that the next steps start from. Missing values count as zero.\n */\nexport function waterfallSteps(items: readonly TxWaterfallItem[]): TxWaterfallStep[] {\n let running = 0;\n return items.map((item, index) => {\n if (item.total) {\n running = finite(item.value) ? item.value : running;\n return { index, label: item.label, kind: 'total', change: running, from: 0, to: running, color: item.color ?? null };\n }\n const change = finite(item.value) ? item.value : 0;\n const from = running;\n running += change;\n return { index, label: item.label, kind: change < 0 ? 'down' : 'up', change, from, to: running, color: item.color ?? null };\n });\n}\n\n/** Smallest and largest running total, always including 0. */\nexport function waterfallExtent(steps: readonly TxWaterfallStep[]): [number, number] {\n let min = 0;\n let max = 0;\n for (const step of steps) {\n min = Math.min(min, step.from, step.to);\n max = Math.max(max, step.from, step.to);\n }\n return [min, max];\n}\n\n/** Box of a data label: horizontal centre, width, top and bottom in px. */\nexport interface TxWaterfallLabelBox {\n /** Horizontal centre, in px. */\n x: number;\n /** Width, in px. */\n width: number;\n /** Top edge, in px. */\n top: number;\n /** Bottom edge, in px. */\n bottom: number;\n /** Totals are placed first, so they win a collision. */\n total: boolean;\n}\n\n/** Which data labels to draw: totals first, then left to right, leaving out any label that overlaps a kept one. */\nexport function visibleLabels(boxes: readonly TxWaterfallLabelBox[], gap = 4): boolean[] {\n const order = boxes.map((_, index) => index).sort((a, b) => Number(boxes[b].total) - Number(boxes[a].total) || a - b);\n const kept: TxWaterfallLabelBox[] = [];\n const visible = boxes.map(() => false);\n for (const index of order) {\n const box = boxes[index];\n const hits = kept.some(\n (other) => Math.abs(other.x - box.x) < (other.width + box.width) / 2 + gap && box.top < other.bottom && other.top < box.bottom,\n );\n if (!hits) {\n kept.push(box);\n visible[index] = true;\n }\n }\n return visible;\n}\n","import { TxIconSet, txIconChartBar } from '@tectra-ng/icons';\n\nexport const WATERFALL_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const WATERFALL_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 TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n barPath,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n compactValueFormatter,\n initialChartSize,\n injectChartEntrance,\n parseRatio,\n readTokenNumber,\n stepIndex,\n textWidth,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { visibleLabels, waterfallExtent, waterfallSteps } from './waterfall-layout';\nimport { TxWaterfallBarEvent, TxWaterfallChartBar, TxWaterfallChartPart, TxWaterfallConnector, TxWaterfallItem, TxWaterfallKind } from './waterfall-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WATERFALL_ICON_DEFAULTS } from './waterfall.icons';\nimport { WATERFALL_THEME } from './waterfall.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst DEFAULT_RADIUS = 5;\nconst LABEL_GAP = 4;\nconst LABEL_FONT_SIZE = 11;\n\nfunction signedFormat(format: (value: number) => string): (value: number) => string {\n return (value) => (value > 0 ? `+${format(value)}` : value < 0 ? `−${format(-value)}` : format(value));\n}\n\n@Component({\n selector: 'tx-waterfall-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand],\n templateUrl: './waterfall-chart.component.html',\n styleUrl: './waterfall-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-waterfall-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-waterfall-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-waterfall-chart--entering]': 'entrance.active()',\n '[class.tx-waterfall-chart--morph]': 'morph()',\n '[class.tx-waterfall-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(WATERFALL_ICON_DEFAULTS)],\n})\nexport class TxWaterfallChart {\n private readonly waterfallTheme = injectTokens(WATERFALL_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly items = input<readonly TxWaterfallItem[] | null | undefined>([]);\n readonly height = input<TxChartHeight>(350);\n readonly dataLabels = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly connectors = input<boolean, unknown>(true, { 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 showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\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>('value');\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<TxWaterfallChartPart, TxWaterfallChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly barClick = output<TxWaterfallBarEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('waterfallChart', 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 readonly active = signal<number | null>(null);\n readonly barWidth = signal(DEFAULT_WIDTH);\n readonly tokenRadius = signal(DEFAULT_RADIUS);\n readonly barRadius = computed(() => (this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.tokenRadius())));\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly list = computed(() => this.items() ?? []);\n readonly steps = computed(() => waterfallSteps(this.list()));\n readonly isEmpty = computed(() => !this.list().length);\n readonly kinds = computed(() => new Set(this.steps().map((step) => step.kind)));\n readonly legendShown = computed(() => this.showLegend() && this.kinds().size > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly signed = computed(() => signedFormat(this.valueFormatter()));\n private readonly shortFormatter = computed(() => compactValueFormatter(this.intl(), this.valueFormat()));\n private readonly shortSigned = computed(() => signedFormat(this.shortFormatter()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const labels = this.steps().map((step) => step.label);\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: {\n kind: 'band',\n labels,\n count: labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: waterfallExtent(this.steps()),\n format: this.valueFormat(),\n includeZero: true,\n min: this.yMin(),\n max: this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n });\n });\n\n readonly bars = computed<TxWaterfallChartBar[]>(() => {\n const layout = this.layout();\n const band = layout.category as TxBandScale;\n const width = band.bandwidth * Math.min(1, Math.max(0.05, this.barWidth()));\n const scale = layout.value;\n const radius = this.barRadius();\n const bars = this.steps().map((step) => {\n const a = scale.map(step.from);\n const b = scale.map(step.to);\n const y = Math.min(a, b);\n const height = Math.max(1, Math.abs(b - a));\n const above = step.kind === 'total' ? step.to >= 0 : step.change >= 0;\n const rect = { x: band.center(step.index) - width / 2, y, width, height };\n return {\n ...step,\n key: `${step.index}:${step.label}`,\n ...rect,\n path: barPath(rect, 'all', radius),\n text: this.dataLabels() ? this.labelText(step.kind === 'total', step.kind === 'total' ? step.to : step.change, band.step) : null,\n textY: above ? y - LABEL_GAP : y + height + LABEL_GAP,\n above,\n };\n });\n const visible = visibleLabels(\n bars.map((bar) => ({\n x: bar.x + bar.width / 2,\n width: textWidth(bar.text ?? '', LABEL_FONT_SIZE),\n top: bar.above ? bar.textY - LABEL_FONT_SIZE : bar.textY,\n bottom: bar.above ? bar.textY : bar.textY + LABEL_FONT_SIZE,\n total: bar.kind === 'total',\n })),\n );\n return bars.map((bar, index) => (visible[index] ? bar : { ...bar, text: null }));\n });\n\n readonly hoverBand = computed(() => {\n const index = this.active();\n return index === null ? null : chartBandRect(this.layout().category as TxBandScale, index, this.layout().plot);\n });\n\n readonly connectorLines = computed<TxWaterfallConnector[]>(() => {\n if (!this.connectors()) return [];\n const bars = this.bars();\n const scale = this.layout().value;\n return bars.slice(0, -1).map((bar, index) => {\n const next = bars[index + 1];\n return { key: `${bar.key}>${next.key}`, x1: bar.x + bar.width, x2: next.x, y: scale.map(bar.to) };\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const t = this.translations();\n const names: Record<TxWaterfallKind, string> = { up: t.chartIncrease, down: t.chartDecrease, total: t.chartTotal };\n return (['up', 'down', 'total'] as const)\n .filter((kind) => this.kinds().has(kind))\n .map((kind) => ({ key: kind, label: names[kind], color: `var(--tx-chart-waterfall-${kind}-color)` }));\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const index = this.active();\n if (index === null || !this.showTooltip()) return null;\n const bar = this.bars()[index];\n if (!bar) return null;\n const t = this.translations();\n const color = bar.color ?? `var(--tx-chart-waterfall-${bar.kind}-color)`;\n const rows =\n bar.kind === 'total'\n ? [{ label: t.chartTotal, value: this.valueFormatter()(bar.to), color, raw: bar.to, seriesIndex: 0, active: true }]\n : [\n { label: t.chartChange, value: this.signed()(bar.change), color, raw: bar.change, seriesIndex: 0, active: true },\n { label: t.chartTotal, value: this.valueFormatter()(bar.to), color: 'transparent', raw: bar.to, seriesIndex: 1 },\n ];\n return { title: bar.label, rows, index, x: bar.x + bar.width / 2, y: bar.above ? bar.y : bar.y + bar.height, placement: bar.above ? 'top' : 'bottom' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const steps = this.steps();\n const last = steps[steps.length - 1];\n const text = chartSummary(t, this.intl(), t.chartWaterfall, 1, steps.length, null);\n const withTotal = last ? `${text}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(last.to)}` : text;\n return this.ariaLabel() ? `${this.ariaLabel()}. ${withTotal}` : withTotal;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n return {\n columns: [\n { key: 'change', label: t.chartChange },\n { key: 'total', label: t.chartTotal },\n ],\n rows: this.steps().map((step) => ({\n label: step.label,\n cells: [step.kind === 'total' ? '—' : this.signed()(step.change), this.valueFormatter()(step.to)],\n })),\n };\n });\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n const next = readTokenNumber(this.host.nativeElement, '--tx-chart-bar-width', DEFAULT_WIDTH);\n if (next !== this.barWidth()) this.barWidth.set(next);\n this.tokenRadius.set(readTokenNumber(this.host.nativeElement, '--tx-chart-bar-radius', DEFAULT_RADIUS));\n });\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const plot = this.layout().plot;\n const band = this.layout().category as TxBandScale;\n const inside = event.x >= plot.left && event.x <= plot.left + plot.width && event.y >= plot.top - 8 && event.y <= plot.top + plot.height + 8;\n const index = inside ? band.indexAt(event.x) : -1;\n this.active.set(index >= 0 ? index : null);\n if (event.type === 'click' && index >= 0) {\n const step = this.steps()[index];\n this.barClick.emit({ index, label: step.label, change: step.change, total: step.to, kind: step.kind });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const index = stepIndex(event.key, this.active() ?? -1, this.steps().length);\n if (index < 0) return;\n this.active.set(index);\n const step = this.steps()[index];\n const t = this.translations();\n this.frame()?.announce(\n step.kind === 'total'\n ? `${step.label}: ${t.chartTotal} ${this.valueFormatter()(step.to)}`\n : `${step.label}: ${this.signed()(step.change)}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(step.to)}`,\n );\n }\n\n private labelText(total: boolean, value: number, room: number): string {\n const full = total ? this.valueFormatter()(value) : this.signed()(value);\n return textWidth(full, LABEL_FONT_SIZE) <= room - LABEL_GAP ? full : total ? this.shortFormatter()(value) : this.shortSigned()(value);\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 [legendToggle]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.d]=\"bar.path\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.text) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n }\n </svg:g>\n }\n</tx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.md
CHANGED
|
@@ -25,6 +25,8 @@ import { TxHeatmap, TxHeatmapRowHeader, TxHeatmapRowValue, heatmapCalendar } fro
|
|
|
25
25
|
| pt | Classes and styles of the parts: `root`, `scroll`, `grid`, `head`, `row`, `lead`, `groups`, `group`, `groupLabel`, `columns`, `column`, `value`, `cell`, `legend` |
|
|
26
26
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
27
27
|
| unstyled | Removes the tectra styles and keeps the behaviour |
|
|
28
|
+
| rowHeaderTemplate | The row header as a `TemplateRef` (context `{ $implicit: row, row }`) — for a component that wraps the heatmap and gets the template from its own content; it wins over a `txHeatmapRowHeader` template inside the heatmap |
|
|
29
|
+
| rowValueTemplate | The value column as a `TemplateRef`, like `rowHeaderTemplate`; it wins over a `txHeatmapRowValue` template |
|
|
28
30
|
|
|
29
31
|
Tones: `success`, `danger`, `warn`, `info` (striped), `pending` (outlined), `neutral`. A cell with a `value` and no `tone` takes the scale colour.
|
|
30
32
|
|
package/org-chart/README.md
CHANGED
|
@@ -24,11 +24,13 @@ The chart does not change `nodes` itself: handle `nodeToggle`, `expandAll`, `col
|
|
|
24
24
|
| height | Height of the canvas (`calc(100vh - 15rem)`) |
|
|
25
25
|
| busy | Dims the canvas and blocks it while data loads |
|
|
26
26
|
| pathKinds | Node `kind`s that draw the path to the root on hover; `null` — every node |
|
|
27
|
-
| minFitZoom | Smallest zoom of "fit to screen" (0.6), so cards stay readable on a phone; a tree still too wide is centred on its root, one too tall starts at the top |
|
|
27
|
+
| minFitZoom | Smallest zoom of "fit to screen" (0.6), so cards stay readable on a phone; a tree still too wide is centred on its root, one too tall starts at the top. Below 0.2 (the smallest zoom of the buttons and the wheel) the fit goes further out and zooming out may follow it down; `0` always fits the whole tree, however big |
|
|
28
|
+
| pageHotkeys | The hotkeys work from anywhere on the page, not only on the focused canvas — for a page where the chart is the main content. Typing in a field, a dialog, a menu or a listbox keeps its keys; the arrow keys move the canvas only while nothing else has the focus. Turn it on for one chart per page |
|
|
28
29
|
| dt | Design tokens of this chart (`chart`, group `orgChart`) |
|
|
29
30
|
| pt | Classes and styles of the parts: `root`, `bar`, `toolbar`, `canvas`, `stage`, `minimap`, `hint` |
|
|
30
31
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
31
32
|
| unstyled | Removes the tectra styles and keeps the behaviour |
|
|
33
|
+
| nodeTemplate | Own card as a `TemplateRef` (context as `txOrgChartNode`) — for a component that wraps the chart and gets the template from its own content; it wins over a `txOrgChartNode` template inside the chart |
|
|
32
34
|
|
|
33
35
|
## Outputs
|
|
34
36
|
| Name | Description |
|
|
@@ -46,6 +48,9 @@ The chart does not change `nodes` itself: handle `nodeToggle`, `expandAll`, `col
|
|
|
46
48
|
| txOrgChartNode | `<ng-template txOrgChartNode let-node let-highlighted="highlighted" let-inPath="inPath" let-toggle="toggle">` — own card; `<tx-org-chart-card [node]="node">` is the default card for reuse |
|
|
47
49
|
|
|
48
50
|
## Keyboard
|
|
51
|
+
|
|
52
|
+
The zoom, fit and search keys work while the canvas has the focus; with `pageHotkeys` they work on the whole page.
|
|
53
|
+
|
|
49
54
|
| Key | Action |
|
|
50
55
|
|---|---|
|
|
51
56
|
| Tab | Moves through the toolbar, the canvas, the cards and their chevrons |
|
|
@@ -53,6 +58,6 @@ The chart does not change `nodes` itself: handle `nodeToggle`, `expandAll`, `col
|
|
|
53
58
|
| 0 | Reset the zoom to 100% |
|
|
54
59
|
| F | Fit the tree to the canvas |
|
|
55
60
|
| / | Focus the search |
|
|
56
|
-
| Arrow keys | Move the canvas (when it has the focus) |
|
|
61
|
+
| Arrow keys | Move the canvas (when it has the focus, or with `pageHotkeys` when nothing has the focus) |
|
|
57
62
|
| Enter / Space | Click the focused card |
|
|
58
63
|
| Escape | Leave the full screen |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/charts",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Angular charts drawn as SVG with no chart library: line and area, column and bar, combo with two value axes, scatter and bubble, pie and donut, radar, radial bar, gauge, funnel, waterfall, bullet, candlestick, box plot, range area, gantt, sankey, sunburst, bar list, segmented bar, heatmap, treemap, rank chart, org chart on one core of scales, axes, legend, tooltip and accessibility. Server rendered, themed by design tokens, dark mode ready.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com/components/line-chart",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@angular/common": "^22.2.0",
|
|
57
57
|
"@angular/core": "^22.2.0",
|
|
58
58
|
"@angular/router": "^22.2.0",
|
|
59
|
-
"@tectra-ng/core": "^0.4.
|
|
60
|
-
"@tectra-ng/icons": "^0.4.
|
|
61
|
-
"@tectra-ng/themes": "^0.4.
|
|
62
|
-
"@tectra-ng/ui": "^0.4.
|
|
59
|
+
"@tectra-ng/core": "^0.4.5",
|
|
60
|
+
"@tectra-ng/icons": "^0.4.5",
|
|
61
|
+
"@tectra-ng/themes": "^0.4.5",
|
|
62
|
+
"@tectra-ng/ui": "^0.4.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@angular/router": {
|
package/pie/README.md
CHANGED
|
@@ -64,4 +64,4 @@ import { TxPieChart, TxPieLegendPipe } from '@tectra-ng/charts/pie';
|
|
|
64
64
|
|
|
65
65
|
## Notes
|
|
66
66
|
|
|
67
|
-
A hovered segment moves out a little, the others fade, the centre shows its value and name, and the tooltip sits at the segment's outer edge with an arrow, on the side the segment faces. `pieLegend(data)` / `data | txPieLegend` return `{ label, value, percent, color }` in series order; `percent` is 0–100 and not rounded, `color` is the CSS variable of the palette slot (it follows the theme). Segments turn in once when the chart appears and morph to new values on change; both are off with reduced motion.
|
|
67
|
+
A hovered segment moves out a little (the `chart.pie.hoverOffset` token, 6px; the chart keeps that much room around the donut, so it never leaves the plot), the others fade, the centre shows its value and name, and the tooltip sits at the segment's outer edge with an arrow, on the side the segment faces. `pieLegend(data)` / `data | txPieLegend` return `{ label, value, percent, color }` in series order; `percent` is 0–100 and not rounded, `color` is the CSS variable of the palette slot (it follows the theme). A segment of half the circle or more, and a single segment that fills the whole ring, stay in place; a full ring is drawn as one closed shape, so the segment gap leaves no seams on it. Segments turn in once when the chart appears and morph to new values on change; both are off with reduced motion.
|
|
@@ -22,6 +22,8 @@ export interface TxColumnChartBar {
|
|
|
22
22
|
width: number;
|
|
23
23
|
/** Height of the bar. */
|
|
24
24
|
height: number;
|
|
25
|
+
/** SVG path of the bar with its rounded end; the fill and the segment gap outline share this one shape. */
|
|
26
|
+
path: string;
|
|
25
27
|
/** Color of the bar. */
|
|
26
28
|
color: string;
|
|
27
29
|
/** Side with the rounded end of the bar; `null` for a bar that is not the outermost of a stack. */
|
|
@@ -83,6 +85,8 @@ export interface TxColumnLayoutInput {
|
|
|
83
85
|
labels: ((value: number, series: number, index: number) => string) | null;
|
|
84
86
|
/** Font size of data labels in px, used to check whether they fit. */
|
|
85
87
|
labelFontSize: number;
|
|
88
|
+
/** Corner radius in px of the outer end of a bar (0 by default); it shrinks to fit a thin or short bar. */
|
|
89
|
+
barRadius?: number;
|
|
86
90
|
}
|
|
87
91
|
/** Lays out the bars of a grouped or stacked column chart, with their data labels. */
|
|
88
92
|
export declare function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[];
|
|
@@ -183,7 +187,9 @@ export declare class TxColumnChart {
|
|
|
183
187
|
width: number;
|
|
184
188
|
horizontalWidth: number;
|
|
185
189
|
gap: number;
|
|
190
|
+
radius: number;
|
|
186
191
|
}>;
|
|
192
|
+
readonly barRadius: import("@angular/core").Signal<number>;
|
|
187
193
|
private readonly intl;
|
|
188
194
|
private readonly list;
|
|
189
195
|
readonly table: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxSeriesTable>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-column.d.ts","names":[],"sources":["../../../../packages/charts/column/src/column-chart.types.ts","../../../../packages/charts/column/src/column-layout.ts","../../../../packages/charts/column/src/column-chart.component.ts"],"mappings":";;;;;YAGY;;YAGA,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-column.d.ts","names":[],"sources":["../../../../packages/charts/column/src/column-chart.types.ts","../../../../packages/charts/column/src/column-layout.ts","../../../../packages/charts/column/src/column-chart.component.ts"],"mappings":";;;;;YAGY;;YAGA,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBCzDe;;EAEf,MAAM;;EAEN,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,wBAAwB;;EAExB;;EAEA;;EAEA,UAAU,eAAe,gBAAgB;;EAEzC;;EAEA;;;wBAIc,WAAW,OAAO,sBAAsB;;;;;qBCmE3C;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,gCAAM,qBAAA;;WACN,oCAAU,wCAAA;;WACV,qCAAW,qBAAA;;WACX,iCAAO;;WACP,mCAAS,YAAA;;WACT,gCAAM,YAAA;;WACN,oCAAU;;WACV,oCAAU;;WACV,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,uCAAa,YAAA;;WACb,qCAAW;;WACX,qCAAW,YAAA;;WACX,0CAAgB,YAAA;;WAChB,qCAAW,YAAA;;WACX,gCAAM,YAAA;;WACN,8BAAI;;WACJ,8BAAI;;WACJ,oCAAU;;WACV,oCAAU;;WACV,8BAA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A;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -33,6 +33,8 @@ export interface TxComboChartBar {
|
|
|
33
33
|
width: number;
|
|
34
34
|
/** Height of the bar. */
|
|
35
35
|
height: number;
|
|
36
|
+
/** SVG path of the bar with its rounded end; the fill and the segment gap outline share this one shape. */
|
|
37
|
+
path: string;
|
|
36
38
|
/** Color of the bar. */
|
|
37
39
|
color: string;
|
|
38
40
|
/** Side with the rounded end of the bar; `null` for a bar that is not the outermost of a stack. */
|
|
@@ -108,6 +110,8 @@ export interface TxComboBarsInput {
|
|
|
108
110
|
columns: readonly number[];
|
|
109
111
|
/** Own colors per series; the palette fills the gaps. */
|
|
110
112
|
colors: readonly (string | undefined)[];
|
|
113
|
+
/** Corner radius in px of the outer end of a column (0 by default); it shrinks to fit a thin or short column. */
|
|
114
|
+
barRadius?: number;
|
|
111
115
|
}
|
|
112
116
|
/**
|
|
113
117
|
* Assigns each column series the slot it occupies in a category: its own when grouped, one per axis when stacked.
|
|
@@ -218,7 +222,9 @@ export declare class TxComboChart {
|
|
|
218
222
|
readonly geometry: import("@angular/core").WritableSignal<{
|
|
219
223
|
width: number;
|
|
220
224
|
gap: number;
|
|
225
|
+
radius: number;
|
|
221
226
|
}>;
|
|
227
|
+
readonly barRadius: import("@angular/core").Signal<number>;
|
|
222
228
|
private readonly intl;
|
|
223
229
|
private readonly list;
|
|
224
230
|
readonly table: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxSeriesTable>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-combo.d.ts","names":[],"sources":["../../../../packages/charts/combo/src/combo-chart.types.ts","../../../../packages/charts/combo/src/combo-layout.ts","../../../../packages/charts/combo/src/combo-chart.component.ts"],"mappings":";;;;;YAGY;;YAGA;;iBAGK,2BAA2B;;EAE1C,OAAO;;EAEP,OAAO;;;YAIG,oBAAoB;;YAGpB,mBAAmB;;iBAGd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-combo.d.ts","names":[],"sources":["../../../../packages/charts/combo/src/combo-chart.types.ts","../../../../packages/charts/combo/src/combo-layout.ts","../../../../packages/charts/combo/src/combo-chart.component.ts"],"mappings":";;;;;YAGY;;YAGA;;iBAGK,2BAA2B;;EAE1C,OAAO;;EAEP,OAAO;;;YAIG,oBAAoB;;YAGpB,mBAAmB;;iBAGd;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;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;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -469,7 +469,9 @@ export declare function polar(cx: number, cy: number, radius: number, angle: num
|
|
|
469
469
|
export declare function maxCornerRadius(inner: number, outer: number, sweep: number): number;
|
|
470
470
|
/**
|
|
471
471
|
* SVG path of a pie or donut segment from `start` to `end` radians, with optional rounded corners;
|
|
472
|
-
* `inner` of `0` makes a pie slice.
|
|
472
|
+
* `inner` of `0` makes a pie slice. A full turn is one closed disc or ring (the outer circle and the
|
|
473
|
+
* inner one drawn the other way round, so the hole stays empty with any fill rule) without radial
|
|
474
|
+
* edges, so a stroke draws no seams across it.
|
|
473
475
|
*/
|
|
474
476
|
export declare function arcPath(cx: number, cy: number, inner: number, outer: number, start: number, end: number, corner?: number): string;
|
|
475
477
|
/** Bounding box of a unit-circle arc between two angles in radians. */
|
|
@@ -502,6 +504,24 @@ export declare function strokeArc(cx: number, cy: number, radius: number, start:
|
|
|
502
504
|
* circle.
|
|
503
505
|
*/
|
|
504
506
|
export declare function angleFrom(x: number, y: number, cx: number, cy: number, start: number): number;
|
|
507
|
+
/** Rounded corners of a bar: the two of one end, all four (`all`), or none (`null`). */
|
|
508
|
+
export type TxBarEnd = 'top' | 'bottom' | 'left' | 'right' | 'all' | null;
|
|
509
|
+
/** A bar box in px. */
|
|
510
|
+
export interface TxBarRect {
|
|
511
|
+
/** Left edge. */
|
|
512
|
+
x: number;
|
|
513
|
+
/** Top edge. */
|
|
514
|
+
y: number;
|
|
515
|
+
/** Width. */
|
|
516
|
+
width: number;
|
|
517
|
+
/** Height. */
|
|
518
|
+
height: number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* SVG path of a bar of a column, combo or waterfall chart: a rectangle whose corners on the `end` side (or all four)
|
|
522
|
+
* are rounded by `radius`, shrunk so it fits the bar. The fill and a stroke drawn on it share this one shape.
|
|
523
|
+
*/
|
|
524
|
+
export declare function barPath(rect: TxBarRect, end: TxBarEnd, radius?: number): string;
|
|
505
525
|
/** How series stack: `normal` adds values, `100%` turns each category into shares. */
|
|
506
526
|
export type TxChartStackType = 'normal' | '100%';
|
|
507
527
|
/** `[from, to]` of a stacked value, or `null` for a gap. */
|
|
@@ -947,7 +967,7 @@ export declare class TxChartAnnotations {
|
|
|
947
967
|
private readonly coreTheme;
|
|
948
968
|
readonly shapes: import("@angular/core").InputSignal<readonly TxChartAnnotationShape[]>;
|
|
949
969
|
readonly part: import("@angular/core").InputSignal<TxPassThroughPart | undefined>;
|
|
950
|
-
readonly layer: import("@angular/core").InputSignal<"
|
|
970
|
+
readonly layer: import("@angular/core").InputSignal<"all" | "back" | "front">;
|
|
951
971
|
readonly shown: import("@angular/core").Signal<readonly TxChartAnnotationShape[]>;
|
|
952
972
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxChartAnnotations, never>;
|
|
953
973
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxChartAnnotations, "g[tx-chart-annotations]", never, {
|