@tectra-ng/charts 0.4.2 → 0.4.4
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/bar-list/README.md +1 -1
- package/boxplot/README.md +1 -1
- package/bullet/README.md +1 -1
- package/candlestick/README.md +1 -1
- package/column/README.md +3 -3
- package/combo/README.md +1 -1
- package/core/README.md +8 -6
- 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 +26 -10
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-column.mjs +4 -4
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +3 -3
- package/fesm2022/tectra-ng-charts-core.mjs +107 -44
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +37 -13
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +490 -30
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +82 -37
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-heatmap.mjs +15 -15
- package/fesm2022/tectra-ng-charts-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-org-chart.mjs +57 -29
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +50 -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 +8 -7
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-range-area.mjs +116 -61
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-rank-line.mjs +82 -34
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sankey.mjs +102 -21
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +56 -10
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sunburst.mjs +34 -6
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
- package/fesm2022/tectra-ng-charts-waterfall.mjs +60 -23
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts.mjs +1 -1
- package/funnel/README.md +2 -2
- package/gantt/README.md +12 -8
- package/gauge/README.md +3 -3
- package/line/README.md +1 -1
- package/org-chart/README.md +1 -0
- package/package.json +5 -5
- package/pie/README.md +5 -4
- package/radar/README.md +1 -1
- package/radial-bar/README.md +2 -2
- package/range-area/README.md +2 -1
- package/rank-line/README.md +3 -2
- package/sankey/README.md +1 -1
- package/segmented-bar/README.md +2 -1
- package/treemap/README.md +1 -1
- package/types/tectra-ng-charts-bar-list.d.ts +1 -1
- package/types/tectra-ng-charts-boxplot.d.ts +1 -1
- package/types/tectra-ng-charts-bullet.d.ts +1 -1
- package/types/tectra-ng-charts-candlestick.d.ts +7 -3
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
- package/types/tectra-ng-charts-column.d.ts +3 -3
- package/types/tectra-ng-charts-combo.d.ts +1 -1
- package/types/tectra-ng-charts-core.d.ts +45 -10
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +9 -2
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-gantt.d.ts +166 -10
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
- package/types/tectra-ng-charts-gauge.d.ts +21 -6
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
- package/types/tectra-ng-charts-line.d.ts +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +13 -2
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +13 -4
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +1 -1
- package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-range-area.d.ts +12 -3
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
- package/types/tectra-ng-charts-rank-line.d.ts +28 -10
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-sankey.d.ts +36 -9
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
- package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-sunburst.d.ts +10 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
- package/types/tectra-ng-charts-treemap.d.ts +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +25 -6
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
- package/types/tectra-ng-charts.d.ts +1 -1
- package/waterfall/README.md +5 -5
|
@@ -14,13 +14,14 @@ import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
|
14
14
|
const E10 = Math.sqrt(50);
|
|
15
15
|
const E5 = Math.sqrt(10);
|
|
16
16
|
const E2 = Math.sqrt(2);
|
|
17
|
-
function tickStep(start, stop, count) {
|
|
17
|
+
function tickStep(start, stop, count, integer = false) {
|
|
18
18
|
const span = Math.abs(stop - start);
|
|
19
19
|
if (!span || count <= 0 || !Number.isFinite(span)) return 0;
|
|
20
20
|
const raw = span / count;
|
|
21
21
|
const base = 10 ** Math.floor(Math.log10(raw));
|
|
22
22
|
const error = raw / base;
|
|
23
|
-
|
|
23
|
+
const factor = error >= E10 ? 10 : error >= E5 ? 5 : error >= E2 ? 2 : 1;
|
|
24
|
+
return integer ? Math.max(1, factor * base) : factor * base;
|
|
24
25
|
}
|
|
25
26
|
function decimalsOf(step) {
|
|
26
27
|
if (!step || !Number.isFinite(step)) return 0;
|
|
@@ -30,17 +31,17 @@ function clean(value, decimals) {
|
|
|
30
31
|
const rounded = Number(value.toFixed(Math.min(20, decimals + 2)));
|
|
31
32
|
return Object.is(rounded, -0) ? 0 : rounded;
|
|
32
33
|
}
|
|
33
|
-
function niceDomain(min, max, count = 5) {
|
|
34
|
+
function niceDomain(min, max, count = 5, integer = false) {
|
|
34
35
|
if (!Number.isFinite(min) || !Number.isFinite(max)) return [0, 1];
|
|
35
36
|
if (min === max) {
|
|
36
37
|
if (min === 0) return [0, 1];
|
|
37
38
|
const pad = Math.abs(min) * .1 || 1;
|
|
38
|
-
return niceDomain(min > 0 ? 0 : min - pad, max < 0 ? 0 : max + pad, count);
|
|
39
|
+
return niceDomain(min > 0 ? 0 : min - pad, max < 0 ? 0 : max + pad, count, integer);
|
|
39
40
|
}
|
|
40
41
|
let start = Math.min(min, max);
|
|
41
42
|
let stop = Math.max(min, max);
|
|
42
43
|
for (let round = 0; round < 3; round++) {
|
|
43
|
-
const step = tickStep(start, stop, count);
|
|
44
|
+
const step = tickStep(start, stop, count, integer);
|
|
44
45
|
const nextStart = Math.floor(start / step) * step;
|
|
45
46
|
const nextStop = Math.ceil(stop / step) * step;
|
|
46
47
|
if (nextStart === start && nextStop === stop) break;
|
|
@@ -49,8 +50,8 @@ function niceDomain(min, max, count = 5) {
|
|
|
49
50
|
}
|
|
50
51
|
return [start, stop];
|
|
51
52
|
}
|
|
52
|
-
function linearTicks(min, max, count = 5) {
|
|
53
|
-
const step = tickStep(min, max, count);
|
|
53
|
+
function linearTicks(min, max, count = 5, integer = false) {
|
|
54
|
+
const step = tickStep(min, max, count, integer);
|
|
54
55
|
if (!step) return Number.isFinite(min) ? [min] : [];
|
|
55
56
|
const decimals = decimalsOf(step);
|
|
56
57
|
const first = Math.ceil(min / step - 1e-9);
|
|
@@ -347,8 +348,25 @@ function dateFormat(intl, options) {
|
|
|
347
348
|
}
|
|
348
349
|
return format;
|
|
349
350
|
}
|
|
351
|
+
function currencyOptions(format) {
|
|
352
|
+
return {
|
|
353
|
+
style: "currency",
|
|
354
|
+
currency: format.currency,
|
|
355
|
+
currencyDisplay: format.currencyDisplay ?? "symbol"
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
function currencyFormatter(intl, format) {
|
|
359
|
+
const exact = numberFormat(intl, currencyOptions(format));
|
|
360
|
+
const whole = numberFormat(intl, {
|
|
361
|
+
...currencyOptions(format),
|
|
362
|
+
minimumFractionDigits: 0,
|
|
363
|
+
maximumFractionDigits: 0
|
|
364
|
+
});
|
|
365
|
+
return (value) => Number.isFinite(value) ? (Number.isInteger(value) ? whole : exact).format(value) : "";
|
|
366
|
+
}
|
|
350
367
|
function chartNumberFormatter(intl, format = "number") {
|
|
351
368
|
if (typeof format === "function") return format;
|
|
369
|
+
if (typeof format === "object") return currencyFormatter(intl, format);
|
|
352
370
|
const formatter = numberFormat(intl, format === "integer" ? { maximumFractionDigits: 0 } : format === "compact" ? {
|
|
353
371
|
notation: "compact",
|
|
354
372
|
maximumFractionDigits: 1
|
|
@@ -360,6 +378,7 @@ function chartNumberFormatter(intl, format = "number") {
|
|
|
360
378
|
}
|
|
361
379
|
function tickFormatter(intl, ticks, format = "number") {
|
|
362
380
|
if (typeof format === "function" || format === "compact" || format === "percent") return chartNumberFormatter(intl, format);
|
|
381
|
+
if (typeof format === "object") return compactValueFormatter(intl, format);
|
|
363
382
|
const step = ticks.length > 1 ? Math.abs(ticks[1] - ticks[0]) : 0;
|
|
364
383
|
const decimals = Math.min(2, decimalsOf(step));
|
|
365
384
|
const formatter = numberFormat(intl, {
|
|
@@ -368,6 +387,18 @@ function tickFormatter(intl, ticks, format = "number") {
|
|
|
368
387
|
});
|
|
369
388
|
return (value) => formatter.format(value);
|
|
370
389
|
}
|
|
390
|
+
function compactValueFormatter(intl, format = "number") {
|
|
391
|
+
if (typeof format === "object") {
|
|
392
|
+
const formatter = numberFormat(intl, {
|
|
393
|
+
...currencyOptions(format),
|
|
394
|
+
notation: "compact",
|
|
395
|
+
minimumFractionDigits: 0,
|
|
396
|
+
maximumFractionDigits: 1
|
|
397
|
+
});
|
|
398
|
+
return (value) => Number.isFinite(value) ? formatter.format(value) : "";
|
|
399
|
+
}
|
|
400
|
+
return chartNumberFormatter(intl, format === "number" ? "compact" : format);
|
|
401
|
+
}
|
|
371
402
|
function compactNumber(value, intl = "en-US") {
|
|
372
403
|
return chartNumberFormatter(intl, "compact")(value);
|
|
373
404
|
}
|
|
@@ -749,9 +780,12 @@ function valueDomain(options, count) {
|
|
|
749
780
|
return logDomain(options.min ?? positiveMin, options.max ?? Math.max(rawMax, positiveMin));
|
|
750
781
|
}
|
|
751
782
|
const includeZero = options.includeZero ?? true;
|
|
752
|
-
const nice = niceDomain(options.min ?? (includeZero ? Math.min(0, rawMin) : rawMin), options.max ?? (includeZero ? Math.max(0, rawMax) : rawMax), count);
|
|
783
|
+
const nice = niceDomain(options.min ?? (includeZero ? Math.min(0, rawMin) : rawMin), options.max ?? (includeZero ? Math.max(0, rawMax) : rawMax), count, options.format === "integer");
|
|
753
784
|
return [options.min ?? nice[0], options.max ?? nice[1]];
|
|
754
785
|
}
|
|
786
|
+
function valueTicksOf(options, domain, count) {
|
|
787
|
+
return options.scale === "log" ? logScale(domain, [0, 1]).ticks(count) : linearTicks(domain[0], domain[1], count, options.format === "integer");
|
|
788
|
+
}
|
|
755
789
|
const NICE_STEPS = [
|
|
756
790
|
1,
|
|
757
791
|
2,
|
|
@@ -759,10 +793,11 @@ const NICE_STEPS = [
|
|
|
759
793
|
5,
|
|
760
794
|
10
|
|
761
795
|
];
|
|
762
|
-
function niceStepAtLeast(raw) {
|
|
796
|
+
function niceStepAtLeast(raw, integer) {
|
|
763
797
|
if (!(raw > 0) || !Number.isFinite(raw)) return 1;
|
|
764
|
-
const
|
|
765
|
-
|
|
798
|
+
const wanted = integer ? Math.max(1, raw) : raw;
|
|
799
|
+
const base = 10 ** Math.floor(Math.log10(wanted));
|
|
800
|
+
return (NICE_STEPS.find((step) => (!integer || Number.isInteger(step * base)) && step * base >= wanted * (1 - 1e-9)) ?? 10) * base;
|
|
766
801
|
}
|
|
767
802
|
function alignedDomain(options, intervals, zeroAt = null) {
|
|
768
803
|
if (intervals < 1 || options.scale === "log" || options.min !== void 0 || options.max !== void 0) return null;
|
|
@@ -775,7 +810,8 @@ function alignedDomain(options, intervals, zeroAt = null) {
|
|
|
775
810
|
max = max < 0 ? 0 : max + 1;
|
|
776
811
|
}
|
|
777
812
|
const below = zeroAt !== null && zeroAt > 0 && zeroAt < intervals ? zeroAt : null;
|
|
778
|
-
|
|
813
|
+
const integer = options.format === "integer";
|
|
814
|
+
let step = below !== null ? niceStepAtLeast(Math.max(max / (intervals - below), -min / below), integer) : niceStepAtLeast((max - min) / intervals, integer);
|
|
779
815
|
for (let round = 0; round < 12; round++) {
|
|
780
816
|
const start = below !== null ? -below * step : Math.floor(min / step + 1e-9) * step;
|
|
781
817
|
if (start + intervals * step >= max - 1e-9 && start <= min + 1e-9) {
|
|
@@ -786,7 +822,7 @@ function alignedDomain(options, intervals, zeroAt = null) {
|
|
|
786
822
|
ticks
|
|
787
823
|
};
|
|
788
824
|
}
|
|
789
|
-
step = niceStepAtLeast(step * 1.0001);
|
|
825
|
+
step = niceStepAtLeast(step * 1.0001, integer);
|
|
790
826
|
}
|
|
791
827
|
return null;
|
|
792
828
|
}
|
|
@@ -804,7 +840,7 @@ function cartesianLayout(options) {
|
|
|
804
840
|
const valueLength = horizontal ? width * .75 : height - fontSize * 3;
|
|
805
841
|
const tickCount = options.value.tickCount ?? Math.max(2, Math.min(horizontal ? 8 : 6, Math.round(valueLength / (horizontal ? 90 : 62))));
|
|
806
842
|
const domain = valueDomain(options.value, tickCount);
|
|
807
|
-
const valueTicks = (options.value
|
|
843
|
+
const valueTicks = valueTicksOf(options.value, domain, tickCount);
|
|
808
844
|
const valueFormat = tickFormatter(options.intl, valueTicks, options.value.format);
|
|
809
845
|
const valueLabels = valueTicks.map((tick) => valueFormat(tick));
|
|
810
846
|
const valueLabelWidth = showValueAxis ? Math.max(0, ...valueLabels.map((label) => textWidth(label, fontSize))) : 0;
|
|
@@ -813,7 +849,7 @@ function cartesianLayout(options) {
|
|
|
813
849
|
const primaryZero = evenTicks ? valueTicks.indexOf(0) : -1;
|
|
814
850
|
const aligned = second && evenTicks ? alignedDomain(second, valueTicks.length - 1, primaryZero > 0 ? primaryZero : null) : null;
|
|
815
851
|
const secondDomain = second ? aligned?.domain ?? valueDomain(second, tickCount) : null;
|
|
816
|
-
const secondTicks = second && secondDomain ? aligned?.ticks ?? (second
|
|
852
|
+
const secondTicks = second && secondDomain ? aligned?.ticks ?? valueTicksOf(second, secondDomain, tickCount) : [];
|
|
817
853
|
const secondFormat = tickFormatter(options.intl, secondTicks, second?.format);
|
|
818
854
|
const secondLabels = secondTicks.map((tick) => secondFormat(tick));
|
|
819
855
|
const secondLabelWidth = second ? Math.max(0, ...secondLabels.map((label) => textWidth(label, fontSize))) : 0;
|
|
@@ -1123,6 +1159,33 @@ function initialChartSize(height, legend, width = 640, toolbar = false) {
|
|
|
1123
1159
|
height: chartBoxHeight(height, legend, toolbar)
|
|
1124
1160
|
};
|
|
1125
1161
|
}
|
|
1162
|
+
const TX_CHART_NARROW_WIDTH = 420;
|
|
1163
|
+
function chartLegendPlace(position, width, narrowWidth = 420) {
|
|
1164
|
+
return (position === "left" || position === "right") && width !== null && width < narrowWidth ? "bottom" : position;
|
|
1165
|
+
}
|
|
1166
|
+
function injectHostWidth() {
|
|
1167
|
+
const host = inject(ElementRef).nativeElement;
|
|
1168
|
+
const destroyRef = inject(DestroyRef);
|
|
1169
|
+
const width = signal(null, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
1170
|
+
afterNextRender(() => {
|
|
1171
|
+
const measure = () => {
|
|
1172
|
+
const next = Math.round(host.getBoundingClientRect().width);
|
|
1173
|
+
if (next > 0 && next !== width()) width.set(next);
|
|
1174
|
+
};
|
|
1175
|
+
measure();
|
|
1176
|
+
const view = host.ownerDocument.defaultView;
|
|
1177
|
+
if (view && "ResizeObserver" in view) {
|
|
1178
|
+
const observer = new view.ResizeObserver(() => measure());
|
|
1179
|
+
observer.observe(host);
|
|
1180
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
return width.asReadonly();
|
|
1184
|
+
}
|
|
1185
|
+
function injectLegendPlace(position) {
|
|
1186
|
+
const width = injectHostWidth();
|
|
1187
|
+
return computed(() => chartLegendPlace(position(), width()));
|
|
1188
|
+
}
|
|
1126
1189
|
const TX_CHART_ENTER_MS = 1100;
|
|
1127
1190
|
function prefersReducedMotion(document) {
|
|
1128
1191
|
return document.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
|
|
@@ -1153,7 +1216,7 @@ var TxChartLegendTemplate = class TxChartLegendTemplate {
|
|
|
1153
1216
|
}
|
|
1154
1217
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1155
1218
|
minVersion: "12.0.0",
|
|
1156
|
-
version: "22.2.
|
|
1219
|
+
version: "22.2.6",
|
|
1157
1220
|
ngImport: i0,
|
|
1158
1221
|
type: TxChartLegendTemplate,
|
|
1159
1222
|
deps: [],
|
|
@@ -1161,7 +1224,7 @@ var TxChartLegendTemplate = class TxChartLegendTemplate {
|
|
|
1161
1224
|
});
|
|
1162
1225
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1163
1226
|
minVersion: "14.0.0",
|
|
1164
|
-
version: "22.2.
|
|
1227
|
+
version: "22.2.6",
|
|
1165
1228
|
type: TxChartLegendTemplate,
|
|
1166
1229
|
isStandalone: true,
|
|
1167
1230
|
selector: "ng-template[txChartLegend]",
|
|
@@ -1170,7 +1233,7 @@ var TxChartLegendTemplate = class TxChartLegendTemplate {
|
|
|
1170
1233
|
};
|
|
1171
1234
|
i0.ɵɵngDeclareClassMetadata({
|
|
1172
1235
|
minVersion: "12.0.0",
|
|
1173
|
-
version: "22.2.
|
|
1236
|
+
version: "22.2.6",
|
|
1174
1237
|
ngImport: i0,
|
|
1175
1238
|
type: TxChartLegendTemplate,
|
|
1176
1239
|
decorators: [{
|
|
@@ -1185,7 +1248,7 @@ var TxChartTooltipTemplate = class TxChartTooltipTemplate {
|
|
|
1185
1248
|
}
|
|
1186
1249
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1187
1250
|
minVersion: "12.0.0",
|
|
1188
|
-
version: "22.2.
|
|
1251
|
+
version: "22.2.6",
|
|
1189
1252
|
ngImport: i0,
|
|
1190
1253
|
type: TxChartTooltipTemplate,
|
|
1191
1254
|
deps: [],
|
|
@@ -1193,7 +1256,7 @@ var TxChartTooltipTemplate = class TxChartTooltipTemplate {
|
|
|
1193
1256
|
});
|
|
1194
1257
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1195
1258
|
minVersion: "14.0.0",
|
|
1196
|
-
version: "22.2.
|
|
1259
|
+
version: "22.2.6",
|
|
1197
1260
|
type: TxChartTooltipTemplate,
|
|
1198
1261
|
isStandalone: true,
|
|
1199
1262
|
selector: "ng-template[txChartTooltip]",
|
|
@@ -1202,7 +1265,7 @@ var TxChartTooltipTemplate = class TxChartTooltipTemplate {
|
|
|
1202
1265
|
};
|
|
1203
1266
|
i0.ɵɵngDeclareClassMetadata({
|
|
1204
1267
|
minVersion: "12.0.0",
|
|
1205
|
-
version: "22.2.
|
|
1268
|
+
version: "22.2.6",
|
|
1206
1269
|
ngImport: i0,
|
|
1207
1270
|
type: TxChartTooltipTemplate,
|
|
1208
1271
|
decorators: [{
|
|
@@ -1258,7 +1321,7 @@ var TxChartLegend = class TxChartLegend {
|
|
|
1258
1321
|
}
|
|
1259
1322
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1260
1323
|
minVersion: "12.0.0",
|
|
1261
|
-
version: "22.2.
|
|
1324
|
+
version: "22.2.6",
|
|
1262
1325
|
ngImport: i0,
|
|
1263
1326
|
type: TxChartLegend,
|
|
1264
1327
|
deps: [],
|
|
@@ -1266,7 +1329,7 @@ var TxChartLegend = class TxChartLegend {
|
|
|
1266
1329
|
});
|
|
1267
1330
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1268
1331
|
minVersion: "17.0.0",
|
|
1269
|
-
version: "22.2.
|
|
1332
|
+
version: "22.2.6",
|
|
1270
1333
|
type: TxChartLegend,
|
|
1271
1334
|
isStandalone: true,
|
|
1272
1335
|
selector: "tx-chart-legend",
|
|
@@ -1400,7 +1463,7 @@ var TxChartLegend = class TxChartLegend {
|
|
|
1400
1463
|
</ng-template>
|
|
1401
1464
|
`,
|
|
1402
1465
|
isInline: true,
|
|
1403
|
-
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;min-width:0}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-position=left]),:host([data-position=right]),:host(.tx-chart-legend--values){flex-direction:column;flex-wrap:nowrap;align-items:stretch}.tx-chart-legend__item{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-transform:inherit;letter-spacing:inherit}button.tx-chart-legend__item{cursor:pointer}.tx-chart-legend__marker{flex-shrink:0;background:var(--tx-chart-legend-item-color)}.tx-chart-legend__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.tx-chart-legend--values) .tx-chart-legend__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto}.tx-chart-legend__value,.tx-chart-legend__percent,.tx-chart-legend__stat{font-variant-numeric:tabular-nums;white-space:nowrap}.tx-chart-legend__value,.tx-chart-legend__percent{text-align:end}:host([data-variant=stat]) .tx-chart-legend__item{flex-direction:column;align-items:flex-start}.tx-chart-legend__head{display:inline-flex;align-items:center;max-width:100%}:host([data-styled]){gap:var(--tx-chart-legend-item-gap);color:var(--tx-chart-legend-color);font-size:var(--tx-chart-legend-font-size);font-weight:var(--tx-chart-legend-font-weight);line-height:1.35}:host([data-styled]) .tx-chart-legend__item{gap:var(--tx-chart-legend-marker-gap);padding:var(--tx-chart-legend-padding-y) var(--tx-chart-legend-padding-x);border-radius:var(--tx-chart-legend-border-radius);transition:color var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) button.tx-chart-legend__item:hover{background:var(--tx-chart-legend-hover-background)}:host([data-styled]) button.tx-chart-legend__item:focus-visible{outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:0}:host([data-styled]) .tx-chart-legend__marker{width:var(--tx-chart-legend-marker-size);height:var(--tx-chart-legend-marker-size);border-radius:var(--tx-chart-legend-marker-radius);transition:background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-chart-legend__item--hidden{color:var(--tx-chart-legend-muted-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__marker{background:transparent;box-shadow:inset 0 0 0 1.5px var(--tx-chart-legend-item-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:line-through;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}:host([data-styled]) .tx-chart-legend__value,:host([data-styled]) .tx-chart-legend__percent{color:var(--tx-chart-legend-value-color);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-chart-legend__value{padding-inline-start:var(--tx-chart-legend-value-gap);color:inherit;font-weight:var(--tx-chart-legend-font-weight)}:host([data-styled]) .tx-chart-legend__percent{min-width:4.5ch;padding-inline-start:var(--tx-chart-legend-percent-gap)}:host([data-styled].tx-chart-legend--values),:host([data-styled][data-position=left]),:host([data-styled][data-position=right]){gap:var(--tx-chart-legend-list-gap)}:host([data-styled][data-variant=line]) .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item[data-marker=line] .tx-chart-legend__marker{width:var(--tx-chart-legend-line-width);height:var(--tx-chart-legend-line-height);border-radius:var(--tx-radius-full)}:host([data-styled][data-variant=line]) .tx-chart-legend__item--hidden .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item--hidden[data-marker=line] .tx-chart-legend__marker{background:repeating-linear-gradient(90deg,var(--tx-chart-legend-item-color) 0 3px,transparent 3px 5px);box-shadow:none}:host([data-styled][data-variant=pill]){gap:calc(var(--tx-chart-legend-item-gap) + 2px)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item{padding:var(--tx-chart-legend-pill-padding-y) var(--tx-chart-legend-pill-padding-x);border-radius:var(--tx-chart-legend-pill-radius);background:color-mix(in srgb,var(--tx-chart-legend-item-color) var(--tx-chart-legend-pill-tint),transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx-chart-legend-item-color) 28%,transparent)}:host([data-styled][data-variant=pill]) button.tx-chart-legend__item:hover{background:color-mix(in srgb,var(--tx-chart-legend-item-color) calc(var(--tx-chart-legend-pill-tint) + 8%),transparent)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item--hidden,:host([data-styled][data-variant=pill]) button.tx-chart-legend__item--hidden:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--tx-chart-legend-pill-border-color)}:host([data-styled][data-variant=stat]){gap:var(--tx-chart-legend-item-gap);align-items:stretch}:host([data-styled][data-variant=stat]) .tx-chart-legend__item{gap:2px;min-width:var(--tx-chart-legend-stat-min-width);padding:var(--tx-chart-legend-stat-padding-y) var(--tx-chart-legend-stat-padding-x);border-radius:var(--tx-chart-legend-stat-radius)}:host([data-styled][data-variant=stat]) .tx-chart-legend__head{gap:var(--tx-chart-legend-marker-gap);color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size)}:host([data-styled][data-variant=stat]) .tx-chart-legend__stat{font-size:var(--tx-chart-legend-stat-value-font-size);font-weight:var(--tx-chart-legend-stat-value-font-weight);line-height:1.2}:host([data-styled][data-variant=stat]) .tx-chart-legend__caption{color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size);font-weight:var(--tx-font-weight-regular)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden{opacity:var(--tx-chart-legend-hidden-opacity)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:none}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-chart-legend__item,:host([data-styled]) .tx-chart-legend__marker{transition:none}}\n"],
|
|
1466
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;min-width:0}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-position=left]),:host([data-position=right]),:host(.tx-chart-legend--values){flex-direction:column;flex-wrap:nowrap;align-items:stretch}.tx-chart-legend__item{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-transform:inherit;letter-spacing:inherit}button.tx-chart-legend__item{cursor:pointer}.tx-chart-legend__marker{flex-shrink:0;background:var(--tx-chart-legend-item-color)}.tx-chart-legend__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.tx-chart-legend--values) .tx-chart-legend__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto}:host(.tx-chart-legend--values) .tx-chart-legend__label{display:-webkit-box;overflow-wrap:break-word;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.tx-chart-legend__value,.tx-chart-legend__percent,.tx-chart-legend__stat{font-variant-numeric:tabular-nums;white-space:nowrap}.tx-chart-legend__value,.tx-chart-legend__percent{text-align:end}:host([data-variant=stat]) .tx-chart-legend__item{flex-direction:column;align-items:flex-start}.tx-chart-legend__head{display:inline-flex;align-items:center;max-width:100%}:host([data-styled]){gap:var(--tx-chart-legend-item-gap);color:var(--tx-chart-legend-color);font-size:var(--tx-chart-legend-font-size);font-weight:var(--tx-chart-legend-font-weight);line-height:1.35}:host([data-styled]) .tx-chart-legend__item{gap:var(--tx-chart-legend-marker-gap);padding:var(--tx-chart-legend-padding-y) var(--tx-chart-legend-padding-x);border-radius:var(--tx-chart-legend-border-radius);transition:color var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) button.tx-chart-legend__item:hover{background:var(--tx-chart-legend-hover-background)}:host([data-styled]) button.tx-chart-legend__item:focus-visible{outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:0}:host([data-styled]) .tx-chart-legend__marker{width:var(--tx-chart-legend-marker-size);height:var(--tx-chart-legend-marker-size);border-radius:var(--tx-chart-legend-marker-radius);transition:background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-chart-legend__item--hidden{color:var(--tx-chart-legend-muted-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__marker{background:transparent;box-shadow:inset 0 0 0 1.5px var(--tx-chart-legend-item-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:line-through;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}:host([data-styled]) .tx-chart-legend__value,:host([data-styled]) .tx-chart-legend__percent{color:var(--tx-chart-legend-value-color);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-chart-legend__value{padding-inline-start:var(--tx-chart-legend-value-gap);color:inherit;font-weight:var(--tx-chart-legend-font-weight)}:host([data-styled]) .tx-chart-legend__percent{min-width:4.5ch;padding-inline-start:var(--tx-chart-legend-percent-gap)}:host([data-styled].tx-chart-legend--values),:host([data-styled][data-position=left]),:host([data-styled][data-position=right]){gap:var(--tx-chart-legend-list-gap)}:host([data-styled][data-variant=line]) .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item[data-marker=line] .tx-chart-legend__marker{width:var(--tx-chart-legend-line-width);height:var(--tx-chart-legend-line-height);border-radius:var(--tx-radius-full)}:host([data-styled][data-variant=line]) .tx-chart-legend__item--hidden .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item--hidden[data-marker=line] .tx-chart-legend__marker{background:repeating-linear-gradient(90deg,var(--tx-chart-legend-item-color) 0 3px,transparent 3px 5px);box-shadow:none}:host([data-styled][data-variant=pill]){gap:calc(var(--tx-chart-legend-item-gap) + 2px)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item{padding:var(--tx-chart-legend-pill-padding-y) var(--tx-chart-legend-pill-padding-x);border-radius:var(--tx-chart-legend-pill-radius);background:color-mix(in srgb,var(--tx-chart-legend-item-color) var(--tx-chart-legend-pill-tint),transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx-chart-legend-item-color) 28%,transparent)}:host([data-styled][data-variant=pill]) button.tx-chart-legend__item:hover{background:color-mix(in srgb,var(--tx-chart-legend-item-color) calc(var(--tx-chart-legend-pill-tint) + 8%),transparent)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item--hidden,:host([data-styled][data-variant=pill]) button.tx-chart-legend__item--hidden:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--tx-chart-legend-pill-border-color)}:host([data-styled][data-variant=stat]){gap:var(--tx-chart-legend-item-gap);align-items:stretch}:host([data-styled][data-variant=stat]) .tx-chart-legend__item{gap:2px;min-width:var(--tx-chart-legend-stat-min-width);padding:var(--tx-chart-legend-stat-padding-y) var(--tx-chart-legend-stat-padding-x);border-radius:var(--tx-chart-legend-stat-radius)}:host([data-styled][data-variant=stat]) .tx-chart-legend__head{gap:var(--tx-chart-legend-marker-gap);color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size)}:host([data-styled][data-variant=stat]) .tx-chart-legend__stat{font-size:var(--tx-chart-legend-stat-value-font-size);font-weight:var(--tx-chart-legend-stat-value-font-weight);line-height:1.2}:host([data-styled][data-variant=stat]) .tx-chart-legend__caption{color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size);font-weight:var(--tx-font-weight-regular)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden{opacity:var(--tx-chart-legend-hidden-opacity)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:none}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-chart-legend__item,:host([data-styled]) .tx-chart-legend__marker{transition:none}}\n"],
|
|
1404
1467
|
dependencies: [{
|
|
1405
1468
|
kind: "directive",
|
|
1406
1469
|
type: NgTemplateOutlet,
|
|
@@ -1417,7 +1480,7 @@ var TxChartLegend = class TxChartLegend {
|
|
|
1417
1480
|
};
|
|
1418
1481
|
i0.ɵɵngDeclareClassMetadata({
|
|
1419
1482
|
minVersion: "12.0.0",
|
|
1420
|
-
version: "22.2.
|
|
1483
|
+
version: "22.2.6",
|
|
1421
1484
|
ngImport: i0,
|
|
1422
1485
|
type: TxChartLegend,
|
|
1423
1486
|
decorators: [{
|
|
@@ -1498,7 +1561,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1498
1561
|
"[class.tx-chart-legend--values]": "hasValues()"
|
|
1499
1562
|
},
|
|
1500
1563
|
viewProviders: [provideTxIconDefaults(CORE_ICON_DEFAULTS)],
|
|
1501
|
-
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;min-width:0}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-position=left]),:host([data-position=right]),:host(.tx-chart-legend--values){flex-direction:column;flex-wrap:nowrap;align-items:stretch}.tx-chart-legend__item{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-transform:inherit;letter-spacing:inherit}button.tx-chart-legend__item{cursor:pointer}.tx-chart-legend__marker{flex-shrink:0;background:var(--tx-chart-legend-item-color)}.tx-chart-legend__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.tx-chart-legend--values) .tx-chart-legend__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto}.tx-chart-legend__value,.tx-chart-legend__percent,.tx-chart-legend__stat{font-variant-numeric:tabular-nums;white-space:nowrap}.tx-chart-legend__value,.tx-chart-legend__percent{text-align:end}:host([data-variant=stat]) .tx-chart-legend__item{flex-direction:column;align-items:flex-start}.tx-chart-legend__head{display:inline-flex;align-items:center;max-width:100%}:host([data-styled]){gap:var(--tx-chart-legend-item-gap);color:var(--tx-chart-legend-color);font-size:var(--tx-chart-legend-font-size);font-weight:var(--tx-chart-legend-font-weight);line-height:1.35}:host([data-styled]) .tx-chart-legend__item{gap:var(--tx-chart-legend-marker-gap);padding:var(--tx-chart-legend-padding-y) var(--tx-chart-legend-padding-x);border-radius:var(--tx-chart-legend-border-radius);transition:color var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) button.tx-chart-legend__item:hover{background:var(--tx-chart-legend-hover-background)}:host([data-styled]) button.tx-chart-legend__item:focus-visible{outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:0}:host([data-styled]) .tx-chart-legend__marker{width:var(--tx-chart-legend-marker-size);height:var(--tx-chart-legend-marker-size);border-radius:var(--tx-chart-legend-marker-radius);transition:background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-chart-legend__item--hidden{color:var(--tx-chart-legend-muted-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__marker{background:transparent;box-shadow:inset 0 0 0 1.5px var(--tx-chart-legend-item-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:line-through;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}:host([data-styled]) .tx-chart-legend__value,:host([data-styled]) .tx-chart-legend__percent{color:var(--tx-chart-legend-value-color);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-chart-legend__value{padding-inline-start:var(--tx-chart-legend-value-gap);color:inherit;font-weight:var(--tx-chart-legend-font-weight)}:host([data-styled]) .tx-chart-legend__percent{min-width:4.5ch;padding-inline-start:var(--tx-chart-legend-percent-gap)}:host([data-styled].tx-chart-legend--values),:host([data-styled][data-position=left]),:host([data-styled][data-position=right]){gap:var(--tx-chart-legend-list-gap)}:host([data-styled][data-variant=line]) .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item[data-marker=line] .tx-chart-legend__marker{width:var(--tx-chart-legend-line-width);height:var(--tx-chart-legend-line-height);border-radius:var(--tx-radius-full)}:host([data-styled][data-variant=line]) .tx-chart-legend__item--hidden .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item--hidden[data-marker=line] .tx-chart-legend__marker{background:repeating-linear-gradient(90deg,var(--tx-chart-legend-item-color) 0 3px,transparent 3px 5px);box-shadow:none}:host([data-styled][data-variant=pill]){gap:calc(var(--tx-chart-legend-item-gap) + 2px)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item{padding:var(--tx-chart-legend-pill-padding-y) var(--tx-chart-legend-pill-padding-x);border-radius:var(--tx-chart-legend-pill-radius);background:color-mix(in srgb,var(--tx-chart-legend-item-color) var(--tx-chart-legend-pill-tint),transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx-chart-legend-item-color) 28%,transparent)}:host([data-styled][data-variant=pill]) button.tx-chart-legend__item:hover{background:color-mix(in srgb,var(--tx-chart-legend-item-color) calc(var(--tx-chart-legend-pill-tint) + 8%),transparent)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item--hidden,:host([data-styled][data-variant=pill]) button.tx-chart-legend__item--hidden:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--tx-chart-legend-pill-border-color)}:host([data-styled][data-variant=stat]){gap:var(--tx-chart-legend-item-gap);align-items:stretch}:host([data-styled][data-variant=stat]) .tx-chart-legend__item{gap:2px;min-width:var(--tx-chart-legend-stat-min-width);padding:var(--tx-chart-legend-stat-padding-y) var(--tx-chart-legend-stat-padding-x);border-radius:var(--tx-chart-legend-stat-radius)}:host([data-styled][data-variant=stat]) .tx-chart-legend__head{gap:var(--tx-chart-legend-marker-gap);color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size)}:host([data-styled][data-variant=stat]) .tx-chart-legend__stat{font-size:var(--tx-chart-legend-stat-value-font-size);font-weight:var(--tx-chart-legend-stat-value-font-weight);line-height:1.2}:host([data-styled][data-variant=stat]) .tx-chart-legend__caption{color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size);font-weight:var(--tx-font-weight-regular)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden{opacity:var(--tx-chart-legend-hidden-opacity)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:none}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-chart-legend__item,:host([data-styled]) .tx-chart-legend__marker{transition:none}}\n"]
|
|
1564
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;min-width:0}:host([data-align=center]){justify-content:center}:host([data-align=end]){justify-content:flex-end}:host([data-position=left]),:host([data-position=right]),:host(.tx-chart-legend--values){flex-direction:column;flex-wrap:nowrap;align-items:stretch}.tx-chart-legend__item{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-transform:inherit;letter-spacing:inherit}button.tx-chart-legend__item{cursor:pointer}.tx-chart-legend__marker{flex-shrink:0;background:var(--tx-chart-legend-item-color)}.tx-chart-legend__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.tx-chart-legend--values) .tx-chart-legend__item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto}:host(.tx-chart-legend--values) .tx-chart-legend__label{display:-webkit-box;overflow-wrap:break-word;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.tx-chart-legend__value,.tx-chart-legend__percent,.tx-chart-legend__stat{font-variant-numeric:tabular-nums;white-space:nowrap}.tx-chart-legend__value,.tx-chart-legend__percent{text-align:end}:host([data-variant=stat]) .tx-chart-legend__item{flex-direction:column;align-items:flex-start}.tx-chart-legend__head{display:inline-flex;align-items:center;max-width:100%}:host([data-styled]){gap:var(--tx-chart-legend-item-gap);color:var(--tx-chart-legend-color);font-size:var(--tx-chart-legend-font-size);font-weight:var(--tx-chart-legend-font-weight);line-height:1.35}:host([data-styled]) .tx-chart-legend__item{gap:var(--tx-chart-legend-marker-gap);padding:var(--tx-chart-legend-padding-y) var(--tx-chart-legend-padding-x);border-radius:var(--tx-chart-legend-border-radius);transition:color var(--tx-chart-motion-hover-duration) ease,opacity var(--tx-chart-motion-hover-duration) ease,background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) button.tx-chart-legend__item:hover{background:var(--tx-chart-legend-hover-background)}:host([data-styled]) button.tx-chart-legend__item:focus-visible{outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:0}:host([data-styled]) .tx-chart-legend__marker{width:var(--tx-chart-legend-marker-size);height:var(--tx-chart-legend-marker-size);border-radius:var(--tx-chart-legend-marker-radius);transition:background-color var(--tx-chart-motion-hover-duration) ease,box-shadow var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-chart-legend__item--hidden{color:var(--tx-chart-legend-muted-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__marker{background:transparent;box-shadow:inset 0 0 0 1.5px var(--tx-chart-legend-item-color)}:host([data-styled]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:line-through;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}:host([data-styled]) .tx-chart-legend__value,:host([data-styled]) .tx-chart-legend__percent{color:var(--tx-chart-legend-value-color);font-weight:var(--tx-font-weight-regular)}:host([data-styled]) .tx-chart-legend__value{padding-inline-start:var(--tx-chart-legend-value-gap);color:inherit;font-weight:var(--tx-chart-legend-font-weight)}:host([data-styled]) .tx-chart-legend__percent{min-width:4.5ch;padding-inline-start:var(--tx-chart-legend-percent-gap)}:host([data-styled].tx-chart-legend--values),:host([data-styled][data-position=left]),:host([data-styled][data-position=right]){gap:var(--tx-chart-legend-list-gap)}:host([data-styled][data-variant=line]) .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item[data-marker=line] .tx-chart-legend__marker{width:var(--tx-chart-legend-line-width);height:var(--tx-chart-legend-line-height);border-radius:var(--tx-radius-full)}:host([data-styled][data-variant=line]) .tx-chart-legend__item--hidden .tx-chart-legend__marker,:host([data-styled]:not([data-variant=stat])) .tx-chart-legend__item--hidden[data-marker=line] .tx-chart-legend__marker{background:repeating-linear-gradient(90deg,var(--tx-chart-legend-item-color) 0 3px,transparent 3px 5px);box-shadow:none}:host([data-styled][data-variant=pill]){gap:calc(var(--tx-chart-legend-item-gap) + 2px)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item{padding:var(--tx-chart-legend-pill-padding-y) var(--tx-chart-legend-pill-padding-x);border-radius:var(--tx-chart-legend-pill-radius);background:color-mix(in srgb,var(--tx-chart-legend-item-color) var(--tx-chart-legend-pill-tint),transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tx-chart-legend-item-color) 28%,transparent)}:host([data-styled][data-variant=pill]) button.tx-chart-legend__item:hover{background:color-mix(in srgb,var(--tx-chart-legend-item-color) calc(var(--tx-chart-legend-pill-tint) + 8%),transparent)}:host([data-styled][data-variant=pill]) .tx-chart-legend__item--hidden,:host([data-styled][data-variant=pill]) button.tx-chart-legend__item--hidden:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--tx-chart-legend-pill-border-color)}:host([data-styled][data-variant=stat]){gap:var(--tx-chart-legend-item-gap);align-items:stretch}:host([data-styled][data-variant=stat]) .tx-chart-legend__item{gap:2px;min-width:var(--tx-chart-legend-stat-min-width);padding:var(--tx-chart-legend-stat-padding-y) var(--tx-chart-legend-stat-padding-x);border-radius:var(--tx-chart-legend-stat-radius)}:host([data-styled][data-variant=stat]) .tx-chart-legend__head{gap:var(--tx-chart-legend-marker-gap);color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size)}:host([data-styled][data-variant=stat]) .tx-chart-legend__stat{font-size:var(--tx-chart-legend-stat-value-font-size);font-weight:var(--tx-chart-legend-stat-value-font-weight);line-height:1.2}:host([data-styled][data-variant=stat]) .tx-chart-legend__caption{color:var(--tx-chart-legend-muted-color);font-size:var(--tx-chart-legend-stat-label-font-size);font-weight:var(--tx-font-weight-regular)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden{opacity:var(--tx-chart-legend-hidden-opacity)}:host([data-styled][data-variant=stat]) .tx-chart-legend__item--hidden .tx-chart-legend__label{text-decoration:none}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-chart-legend__item,:host([data-styled]) .tx-chart-legend__marker{transition:none}}\n"]
|
|
1502
1565
|
}]
|
|
1503
1566
|
}],
|
|
1504
1567
|
propDecorators: {
|
|
@@ -1578,7 +1641,7 @@ var TxChartAxes = class TxChartAxes {
|
|
|
1578
1641
|
axisPart = input(void 0, ...ngDevMode ? [{ debugName: "axisPart" }] : /* istanbul ignore next */ []);
|
|
1579
1642
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1580
1643
|
minVersion: "12.0.0",
|
|
1581
|
-
version: "22.2.
|
|
1644
|
+
version: "22.2.6",
|
|
1582
1645
|
ngImport: i0,
|
|
1583
1646
|
type: TxChartAxes,
|
|
1584
1647
|
deps: [],
|
|
@@ -1586,7 +1649,7 @@ var TxChartAxes = class TxChartAxes {
|
|
|
1586
1649
|
});
|
|
1587
1650
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1588
1651
|
minVersion: "17.0.0",
|
|
1589
|
-
version: "22.2.
|
|
1652
|
+
version: "22.2.6",
|
|
1590
1653
|
type: TxChartAxes,
|
|
1591
1654
|
isStandalone: true,
|
|
1592
1655
|
selector: "g[tx-chart-axes]",
|
|
@@ -1666,7 +1729,7 @@ var TxChartAxes = class TxChartAxes {
|
|
|
1666
1729
|
};
|
|
1667
1730
|
i0.ɵɵngDeclareClassMetadata({
|
|
1668
1731
|
minVersion: "12.0.0",
|
|
1669
|
-
version: "22.2.
|
|
1732
|
+
version: "22.2.6",
|
|
1670
1733
|
ngImport: i0,
|
|
1671
1734
|
type: TxChartAxes,
|
|
1672
1735
|
decorators: [{
|
|
@@ -1782,7 +1845,7 @@ var TxChartHoverBand = class TxChartHoverBand {
|
|
|
1782
1845
|
});
|
|
1783
1846
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1784
1847
|
minVersion: "12.0.0",
|
|
1785
|
-
version: "22.2.
|
|
1848
|
+
version: "22.2.6",
|
|
1786
1849
|
ngImport: i0,
|
|
1787
1850
|
type: TxChartHoverBand,
|
|
1788
1851
|
deps: [],
|
|
@@ -1790,7 +1853,7 @@ var TxChartHoverBand = class TxChartHoverBand {
|
|
|
1790
1853
|
});
|
|
1791
1854
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1792
1855
|
minVersion: "17.0.0",
|
|
1793
|
-
version: "22.2.
|
|
1856
|
+
version: "22.2.6",
|
|
1794
1857
|
type: TxChartHoverBand,
|
|
1795
1858
|
isStandalone: true,
|
|
1796
1859
|
selector: "g[tx-chart-hover-band]",
|
|
@@ -1838,7 +1901,7 @@ var TxChartHoverBand = class TxChartHoverBand {
|
|
|
1838
1901
|
};
|
|
1839
1902
|
i0.ɵɵngDeclareClassMetadata({
|
|
1840
1903
|
minVersion: "12.0.0",
|
|
1841
|
-
version: "22.2.
|
|
1904
|
+
version: "22.2.6",
|
|
1842
1905
|
ngImport: i0,
|
|
1843
1906
|
type: TxChartHoverBand,
|
|
1844
1907
|
decorators: [{
|
|
@@ -2031,7 +2094,7 @@ var TxChartAnnotations = class TxChartAnnotations {
|
|
|
2031
2094
|
}, ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
|
|
2032
2095
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2033
2096
|
minVersion: "12.0.0",
|
|
2034
|
-
version: "22.2.
|
|
2097
|
+
version: "22.2.6",
|
|
2035
2098
|
ngImport: i0,
|
|
2036
2099
|
type: TxChartAnnotations,
|
|
2037
2100
|
deps: [],
|
|
@@ -2039,7 +2102,7 @@ var TxChartAnnotations = class TxChartAnnotations {
|
|
|
2039
2102
|
});
|
|
2040
2103
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2041
2104
|
minVersion: "17.0.0",
|
|
2042
|
-
version: "22.2.
|
|
2105
|
+
version: "22.2.6",
|
|
2043
2106
|
type: TxChartAnnotations,
|
|
2044
2107
|
isStandalone: true,
|
|
2045
2108
|
selector: "g[tx-chart-annotations]",
|
|
@@ -2102,7 +2165,7 @@ var TxChartAnnotations = class TxChartAnnotations {
|
|
|
2102
2165
|
};
|
|
2103
2166
|
i0.ɵɵngDeclareClassMetadata({
|
|
2104
2167
|
minVersion: "12.0.0",
|
|
2105
|
-
version: "22.2.
|
|
2168
|
+
version: "22.2.6",
|
|
2106
2169
|
ngImport: i0,
|
|
2107
2170
|
type: TxChartAnnotations,
|
|
2108
2171
|
decorators: [{
|
|
@@ -2357,7 +2420,7 @@ var TxChartMenu = class TxChartMenu {
|
|
|
2357
2420
|
}
|
|
2358
2421
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2359
2422
|
minVersion: "12.0.0",
|
|
2360
|
-
version: "22.2.
|
|
2423
|
+
version: "22.2.6",
|
|
2361
2424
|
ngImport: i0,
|
|
2362
2425
|
type: TxChartMenu,
|
|
2363
2426
|
deps: [],
|
|
@@ -2365,7 +2428,7 @@ var TxChartMenu = class TxChartMenu {
|
|
|
2365
2428
|
});
|
|
2366
2429
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2367
2430
|
minVersion: "17.0.0",
|
|
2368
|
-
version: "22.2.
|
|
2431
|
+
version: "22.2.6",
|
|
2369
2432
|
type: TxChartMenu,
|
|
2370
2433
|
isStandalone: true,
|
|
2371
2434
|
selector: "tx-chart-menu",
|
|
@@ -2428,7 +2491,7 @@ var TxChartMenu = class TxChartMenu {
|
|
|
2428
2491
|
};
|
|
2429
2492
|
i0.ɵɵngDeclareClassMetadata({
|
|
2430
2493
|
minVersion: "12.0.0",
|
|
2431
|
-
version: "22.2.
|
|
2494
|
+
version: "22.2.6",
|
|
2432
2495
|
ngImport: i0,
|
|
2433
2496
|
type: TxChartMenu,
|
|
2434
2497
|
decorators: [{
|
|
@@ -2859,7 +2922,7 @@ var TxChartFrame = class TxChartFrame {
|
|
|
2859
2922
|
}
|
|
2860
2923
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2861
2924
|
minVersion: "12.0.0",
|
|
2862
|
-
version: "22.2.
|
|
2925
|
+
version: "22.2.6",
|
|
2863
2926
|
ngImport: i0,
|
|
2864
2927
|
type: TxChartFrame,
|
|
2865
2928
|
deps: [],
|
|
@@ -2867,7 +2930,7 @@ var TxChartFrame = class TxChartFrame {
|
|
|
2867
2930
|
});
|
|
2868
2931
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2869
2932
|
minVersion: "17.0.0",
|
|
2870
|
-
version: "22.2.
|
|
2933
|
+
version: "22.2.6",
|
|
2871
2934
|
type: TxChartFrame,
|
|
2872
2935
|
isStandalone: true,
|
|
2873
2936
|
selector: "tx-chart-frame",
|
|
@@ -3115,7 +3178,7 @@ var TxChartFrame = class TxChartFrame {
|
|
|
3115
3178
|
}
|
|
3116
3179
|
],
|
|
3117
3180
|
ngImport: i0,
|
|
3118
|
-
template: "@if (toolbar() || zoomedIn()) {\n <div class=\"tx-chart-frame__toolbar\">\n @if (zoomedIn()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__reset\"\n icon=\"search-minus\"\n size=\"small\"\n severity=\"secondary\"\n text\n [label]=\"translations().chartResetZoom\"\n (click)=\"zoomReset.emit()\"\n ></button>\n }\n @if (toolbar() && canExport()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__menu-button\"\n icon=\"bars\"\n size=\"small\"\n severity=\"secondary\"\n text\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"translations().chartMenu\"\n [txPopoverTrigger]=\"exportPopover\"\n ></button>\n <tx-popover #exportPopover placement=\"bottom-end\" [dt]=\"popoverTokens\" [ariaLabel]=\"translations().chartMenu\" [unstyled]=\"!styled()\">\n <tx-chart-menu\n [items]=\"exportItems()\"\n [ariaLabel]=\"translations().chartMenu\"\n [unstyled]=\"!styled()\"\n (selected)=\"exportPopover.hide(); onExport($event)\"\n />\n </tx-popover>\n }\n </div>\n}\n@if (legendVisible()) {\n <tx-chart-legend\n class=\"tx-chart-frame__legend\"\n [class]=\"parts().legend?.class\"\n [style]=\"parts().legend?.style\"\n [attr.data-styled]=\"styled() || null\"\n [items]=\"legendItems()\"\n [position]=\"legendPosition()\"\n [align]=\"legendAlign()\"\n [variant]=\"legendVariant()\"\n [toggle]=\"legendToggle()\"\n [template]=\"legendTemplate()\"\n [itemPart]=\"parts().legendItem\"\n (toggled)=\"legendToggled.emit($event)\"\n (hovered)=\"legendHovered.emit($event)\"\n />\n}\n<div\n #plot\n class=\"tx-chart-frame__plot\"\n [class]=\"parts().plot?.class\"\n [style]=\"parts().plot?.style\"\n [style.height.px]=\"plotHeight()\"\n [class.tx-chart-frame__plot--fixed]=\"plotHeight() !== null\"\n [attr.role]=\"empty() || loading() ? null : 'img'\"\n [attr.aria-label]=\"empty() || loading() ? null : summary()\"\n [attr.aria-describedby]=\"interactive() && !empty() && !loading() ? hintId : null\"\n [attr.tabindex]=\"interactive() && !empty() && !loading() ? 0 : null\"\n [class.tx-chart-frame__plot--zoomable]=\"zoomable()\"\n [class.tx-chart-frame__plot--zoomed]=\"zoomedIn()\"\n (pointermove)=\"onPointer($event, 'move')\"\n (pointerdown)=\"onPointer($event, 'down')\"\n (pointerup)=\"onPointer($event, 'up')\"\n (pointercancel)=\"onPointer($event, 'up')\"\n (pointerleave)=\"onPointer($event, 'leave')\"\n (click)=\"onPointer($event, 'click')\"\n (wheel)=\"onWheel($event)\"\n (dblclick)=\"onDoubleClick()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"pointer.emit({ x: 0, y: 0, type: 'leave', target: null })\"\n>\n @if (loading()) {\n <tx-skeleton\n class=\"tx-chart-frame__skeleton\"\n [class]=\"parts().skeleton?.class\"\n [style]=\"parts().skeleton?.style\"\n width=\"100%\"\n height=\"100%\"\n [unstyled]=\"!styled()\"\n [attr.aria-label]=\"translations().chartLoading\"\n role=\"status\"\n />\n } @else if (empty()) {\n <div class=\"tx-chart-frame__empty\" role=\"status\" [class]=\"parts().empty?.class\" [style]=\"parts().empty?.style\">\n <span class=\"tx-chart-frame__empty-icon\" aria-hidden=\"true\"><tx-icon [name]=\"emptyIcon()\" /></span>\n <span class=\"tx-chart-frame__empty-text\">{{ translations().chartNoData }}</span>\n </div>\n } @else {\n <svg\n #chartSvg\n class=\"tx-chart-frame__svg\"\n [class]=\"parts().svg?.class\"\n [style]=\"parts().svg?.style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n preserveAspectRatio=\"xMinYMin meet\"\n [attr.viewBox]=\"viewBox()\"\n >\n <ng-content />\n </svg>\n <span #anchor class=\"tx-chart-frame__anchor\" aria-hidden=\"true\"></span>\n }\n</div>\n@if (interactive() && !empty() && !loading()) {\n <span class=\"cdk-visually-hidden\" [id]=\"hintId\">{{ translations().chartNavigateHint }}{{ zoomable() ? '. ' + translations().chartZoomHint : '' }}</span>\n}\n@if (table(); as data) {\n @if (!empty() && !loading()) {\n <
|
|
3181
|
+
template: "@if (toolbar() || zoomedIn()) {\n <div class=\"tx-chart-frame__toolbar\">\n @if (zoomedIn()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__reset\"\n icon=\"search-minus\"\n size=\"small\"\n severity=\"secondary\"\n text\n [label]=\"translations().chartResetZoom\"\n (click)=\"zoomReset.emit()\"\n ></button>\n }\n @if (toolbar() && canExport()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__menu-button\"\n icon=\"bars\"\n size=\"small\"\n severity=\"secondary\"\n text\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"translations().chartMenu\"\n [txPopoverTrigger]=\"exportPopover\"\n ></button>\n <tx-popover #exportPopover placement=\"bottom-end\" [dt]=\"popoverTokens\" [ariaLabel]=\"translations().chartMenu\" [unstyled]=\"!styled()\">\n <tx-chart-menu\n [items]=\"exportItems()\"\n [ariaLabel]=\"translations().chartMenu\"\n [unstyled]=\"!styled()\"\n (selected)=\"exportPopover.hide(); onExport($event)\"\n />\n </tx-popover>\n }\n </div>\n}\n@if (legendVisible()) {\n <tx-chart-legend\n class=\"tx-chart-frame__legend\"\n [class]=\"parts().legend?.class\"\n [style]=\"parts().legend?.style\"\n [attr.data-styled]=\"styled() || null\"\n [items]=\"legendItems()\"\n [position]=\"legendPosition()\"\n [align]=\"legendAlign()\"\n [variant]=\"legendVariant()\"\n [toggle]=\"legendToggle()\"\n [template]=\"legendTemplate()\"\n [itemPart]=\"parts().legendItem\"\n (toggled)=\"legendToggled.emit($event)\"\n (hovered)=\"legendHovered.emit($event)\"\n />\n}\n<div\n #plot\n class=\"tx-chart-frame__plot\"\n [class]=\"parts().plot?.class\"\n [style]=\"parts().plot?.style\"\n [style.height.px]=\"plotHeight()\"\n [class.tx-chart-frame__plot--fixed]=\"plotHeight() !== null\"\n [attr.role]=\"empty() || loading() ? null : 'img'\"\n [attr.aria-label]=\"empty() || loading() ? null : summary()\"\n [attr.aria-describedby]=\"interactive() && !empty() && !loading() ? hintId : null\"\n [attr.tabindex]=\"interactive() && !empty() && !loading() ? 0 : null\"\n [class.tx-chart-frame__plot--zoomable]=\"zoomable()\"\n [class.tx-chart-frame__plot--zoomed]=\"zoomedIn()\"\n (pointermove)=\"onPointer($event, 'move')\"\n (pointerdown)=\"onPointer($event, 'down')\"\n (pointerup)=\"onPointer($event, 'up')\"\n (pointercancel)=\"onPointer($event, 'up')\"\n (pointerleave)=\"onPointer($event, 'leave')\"\n (click)=\"onPointer($event, 'click')\"\n (wheel)=\"onWheel($event)\"\n (dblclick)=\"onDoubleClick()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"pointer.emit({ x: 0, y: 0, type: 'leave', target: null })\"\n>\n @if (loading()) {\n <tx-skeleton\n class=\"tx-chart-frame__skeleton\"\n [class]=\"parts().skeleton?.class\"\n [style]=\"parts().skeleton?.style\"\n width=\"100%\"\n height=\"100%\"\n [unstyled]=\"!styled()\"\n [attr.aria-label]=\"translations().chartLoading\"\n role=\"status\"\n />\n } @else if (empty()) {\n <div class=\"tx-chart-frame__empty\" role=\"status\" [class]=\"parts().empty?.class\" [style]=\"parts().empty?.style\">\n <span class=\"tx-chart-frame__empty-icon\" aria-hidden=\"true\"><tx-icon [name]=\"emptyIcon()\" /></span>\n <span class=\"tx-chart-frame__empty-text\">{{ translations().chartNoData }}</span>\n </div>\n } @else {\n <svg\n #chartSvg\n class=\"tx-chart-frame__svg\"\n [class]=\"parts().svg?.class\"\n [style]=\"parts().svg?.style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n preserveAspectRatio=\"xMinYMin meet\"\n [attr.viewBox]=\"viewBox()\"\n >\n <ng-content />\n </svg>\n <span #anchor class=\"tx-chart-frame__anchor\" aria-hidden=\"true\"></span>\n }\n</div>\n@if (interactive() && !empty() && !loading()) {\n <span class=\"cdk-visually-hidden\" [id]=\"hintId\">{{ translations().chartNavigateHint }}{{ zoomable() ? '. ' + translations().chartZoomHint : '' }}</span>\n}\n@if (table(); as data) {\n @if (!empty() && !loading()) {\n <div class=\"cdk-visually-hidden\">\n <table>\n <caption>\n {{ summary() || translations().chartDataTable }}\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ translations().chartCategory }}</th>\n @for (column of data.columns; track column.key) {\n <th scope=\"col\">{{ column.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of data.rows; track $index) {\n <tr>\n <th scope=\"row\">{{ row.label }}</th>\n @for (cell of row.cells; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n}\n\n<ng-template #tooltipPanel>\n @if (shown(); as data) {\n <div\n class=\"tx-chart-frame__tooltip\"\n role=\"presentation\"\n [class]=\"parts().tooltip?.class\"\n [style]=\"panelStyle()\"\n [style.--tx-chart-tooltip-arrow-offset]=\"arrowOffset()\"\n [attr.data-side]=\"side()\"\n [attr.data-follow]=\"following() || null\"\n [attr.data-styled]=\"styled() || null\"\n >\n @if (styled()) {\n <svg class=\"tx-chart-frame__tooltip-arrow\" aria-hidden=\"true\" viewBox=\"0 0 12 6\" preserveAspectRatio=\"none\">\n <path class=\"tx-chart-frame__tooltip-arrow-fill\" d=\"M0 6 L6 0 L12 6 Z\" />\n <path class=\"tx-chart-frame__tooltip-arrow-line\" d=\"M0 6 L6 0 L12 6\" />\n </svg>\n }\n @if (tooltipTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom\" [ngTemplateOutletContext]=\"{ $implicit: data }\" />\n } @else {\n @if (data.title) {\n <div class=\"tx-chart-frame__tooltip-title\">{{ data.title }}</div>\n }\n @for (row of data.rows; track $index) {\n <div class=\"tx-chart-frame__tooltip-row\" [class.tx-chart-frame__tooltip-row--active]=\"row.active && data.rows.length > 1\">\n <span class=\"tx-chart-frame__tooltip-marker\" [style.background]=\"row.color\"></span>\n <span class=\"tx-chart-frame__tooltip-label\">{{ row.label }}</span>\n <span class=\"tx-chart-frame__tooltip-value\">{{ row.value }}</span>\n @if (row.share) {\n <span class=\"tx-chart-frame__tooltip-share\">{{ row.share }}</span>\n }\n </div>\n }\n @if (data.total) {\n <div class=\"tx-chart-frame__tooltip-row tx-chart-frame__tooltip-total\">\n <span class=\"tx-chart-frame__tooltip-label\">{{ translations().chartTotal }}</span>\n <span class=\"tx-chart-frame__tooltip-value\">{{ data.total }}</span>\n </div>\n }\n @if (data.note) {\n <div class=\"tx-chart-frame__tooltip-note\">{{ data.note }}</div>\n }\n }\n </div>\n }\n</ng-template>\n",
|
|
3119
3182
|
styles: [":host{position:relative;display:flex;flex-direction:column;min-width:0;box-sizing:border-box}:host([data-legend=bottom]){flex-direction:column-reverse}:host([data-legend=left]){flex-direction:row}:host([data-legend=right]){flex-direction:row-reverse}:host([data-legend=left]) .tx-chart-frame__legend,:host([data-legend=right]) .tx-chart-frame__legend{flex:0 0 auto;align-self:center;max-height:100%;overflow:auto}.tx-chart-frame__toolbar{position:absolute;top:0;right:0;z-index:1;display:flex;align-items:center;justify-content:flex-end}:host([data-toolbar=own]){padding-top:var(--tx-chart-toolbar-row-height)}:host([data-toolbar=legend]) .tx-chart-frame__legend{padding-inline-end:var(--tx-chart-toolbar-reserve)}.tx-chart-frame__plot{position:relative;flex:1 1 auto;min-width:0;min-height:0;outline:none}.tx-chart-frame__plot--zoomable{touch-action:pan-y}.tx-chart-frame__plot--zoomed{cursor:grab}.tx-chart-frame__plot--zoomed:active{cursor:grabbing}.tx-chart-frame__plot--fixed{flex:0 0 auto}:host([data-legend=left]) .tx-chart-frame__plot--fixed,:host([data-legend=right]) .tx-chart-frame__plot--fixed{flex:1 1 auto;align-self:center}.tx-chart-frame__svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}.tx-chart-frame__anchor{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none}.tx-chart-frame__skeleton{position:absolute;inset:0}.tx-chart-frame__empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.tx-chart-frame__empty-icon{display:inline-flex;align-items:center;justify-content:center}.tx-chart-frame__tooltip{display:flex;flex-direction:column;white-space:nowrap;pointer-events:none}.tx-chart-frame__tooltip-row{display:flex;align-items:center}:host([data-styled]){gap:var(--tx-chart-legend-gap);color:var(--tx-chart-color);font-family:var(--tx-chart-font-family);background:var(--tx-chart-background)}:host([data-styled]) .tx-chart-frame__plot:focus-visible{border-radius:var(--tx-radius-sm);outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:var(--tx-chart-focus-ring-offset)}:host([data-styled]) .tx-chart-frame__empty{gap:var(--tx-chart-empty-gap);color:var(--tx-chart-empty-color);font-size:var(--tx-chart-empty-font-size)}:host([data-styled]) .tx-chart-frame__empty-icon{width:var(--tx-chart-empty-icon-size);height:var(--tx-chart-empty-icon-size);border-radius:var(--tx-radius-full);background:var(--tx-chart-empty-icon-background);color:var(--tx-chart-empty-icon-color);font-size:var(--tx-chart-empty-icon-font-size)}:host([data-styled][data-legend=left]),:host([data-styled][data-legend=right]){gap:var(--tx-chart-legend-item-gap)}:host([data-styled][data-legend=left]) .tx-chart-frame__legend,:host([data-styled][data-legend=right]) .tx-chart-frame__legend{max-width:var(--tx-chart-legend-side-width)}.tx-chart-frame__tooltip[data-styled]{position:relative;gap:var(--tx-chart-tooltip-row-gap);min-width:var(--tx-chart-tooltip-min-width);padding:var(--tx-chart-tooltip-padding);border:var(--tx-chart-tooltip-border-width) solid var(--tx-chart-tooltip-border-color);border-radius:var(--tx-chart-tooltip-border-radius);background:var(--tx-chart-tooltip-background);filter:var(--tx-chart-tooltip-shadow);color:var(--tx-chart-tooltip-color);font-family:var(--tx-chart-font-family);font-size:var(--tx-chart-tooltip-font-size);line-height:1.35}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow{position:absolute;display:block;width:calc(var(--tx-chart-tooltip-arrow-size) * 2);height:var(--tx-chart-tooltip-arrow-size);overflow:visible}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow-fill{fill:var(--tx-chart-tooltip-background)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow-line{fill:none;stroke:var(--tx-chart-tooltip-border-color);stroke-width:var(--tx-chart-tooltip-border-width);stroke-linejoin:round;vector-effect:non-scaling-stroke}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-title{margin-bottom:2px;color:var(--tx-chart-tooltip-muted-color);font-size:var(--tx-chart-tooltip-title-font-size);font-weight:var(--tx-chart-tooltip-title-font-weight)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-row{gap:var(--tx-chart-tooltip-marker-gap)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-note{margin-top:2px;color:var(--tx-chart-tooltip-note-color);font-size:var(--tx-chart-tooltip-title-font-size)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-marker{flex-shrink:0;width:var(--tx-chart-tooltip-marker-size);height:var(--tx-chart-tooltip-marker-size);border-radius:var(--tx-radius-full)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-label{color:var(--tx-chart-tooltip-muted-color)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-row--active .tx-chart-frame__tooltip-label{color:var(--tx-chart-tooltip-color)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-share{min-width:4ch;color:var(--tx-chart-tooltip-muted-color);font-variant-numeric:tabular-nums;text-align:end}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-value{margin-inline-start:auto;padding-inline-start:var(--tx-chart-tooltip-value-gap);font-weight:var(--tx-chart-tooltip-value-font-weight);font-variant-numeric:tabular-nums}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-total{margin-top:2px;padding-top:calc(var(--tx-chart-tooltip-row-gap) + 2px);border-top:1px solid var(--tx-chart-tooltip-total-border-color)}.tx-chart-frame__tooltip[data-styled][data-side=top] .tx-chart-frame__tooltip-arrow,.tx-chart-frame__tooltip[data-styled][data-side=bottom] .tx-chart-frame__tooltip-arrow{left:clamp(var(--tx-chart-tooltip-border-radius) + var(--tx-chart-tooltip-arrow-size),var(--tx-chart-tooltip-arrow-offset),100% - var(--tx-chart-tooltip-border-radius) - var(--tx-chart-tooltip-arrow-size));margin-left:calc(var(--tx-chart-tooltip-arrow-size) * -1)}.tx-chart-frame__tooltip[data-styled][data-side=left] .tx-chart-frame__tooltip-arrow,.tx-chart-frame__tooltip[data-styled][data-side=right] .tx-chart-frame__tooltip-arrow{top:clamp(var(--tx-chart-tooltip-border-radius) + var(--tx-chart-tooltip-arrow-size) / 2,var(--tx-chart-tooltip-arrow-offset),100% - var(--tx-chart-tooltip-border-radius) - var(--tx-chart-tooltip-arrow-size) / 2);margin-top:calc(var(--tx-chart-tooltip-arrow-size) / -2)}.tx-chart-frame__tooltip[data-styled][data-side=bottom] .tx-chart-frame__tooltip-arrow{top:calc(var(--tx-chart-tooltip-arrow-size) * -1)}.tx-chart-frame__tooltip[data-styled][data-side=top] .tx-chart-frame__tooltip-arrow{bottom:calc(var(--tx-chart-tooltip-arrow-size) * -1);transform:rotate(180deg)}.tx-chart-frame__tooltip[data-styled][data-side=left] .tx-chart-frame__tooltip-arrow{right:calc(var(--tx-chart-tooltip-arrow-size) * -1.5);transform:rotate(90deg)}.tx-chart-frame__tooltip[data-styled][data-side=right] .tx-chart-frame__tooltip-arrow{left:calc(var(--tx-chart-tooltip-arrow-size) * -1.5);transform:rotate(-90deg)}\n"],
|
|
3120
3183
|
dependencies: [
|
|
3121
3184
|
{
|
|
@@ -3252,7 +3315,7 @@ var TxChartFrame = class TxChartFrame {
|
|
|
3252
3315
|
};
|
|
3253
3316
|
i0.ɵɵngDeclareClassMetadata({
|
|
3254
3317
|
minVersion: "12.0.0",
|
|
3255
|
-
version: "22.2.
|
|
3318
|
+
version: "22.2.6",
|
|
3256
3319
|
ngImport: i0,
|
|
3257
3320
|
type: TxChartFrame,
|
|
3258
3321
|
decorators: [{
|
|
@@ -3280,7 +3343,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3280
3343
|
"[style.height]": "cssHeight()"
|
|
3281
3344
|
},
|
|
3282
3345
|
viewProviders: [provideTxIconDefaults(CORE_ICON_DEFAULTS)],
|
|
3283
|
-
template: "@if (toolbar() || zoomedIn()) {\n <div class=\"tx-chart-frame__toolbar\">\n @if (zoomedIn()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__reset\"\n icon=\"search-minus\"\n size=\"small\"\n severity=\"secondary\"\n text\n [label]=\"translations().chartResetZoom\"\n (click)=\"zoomReset.emit()\"\n ></button>\n }\n @if (toolbar() && canExport()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__menu-button\"\n icon=\"bars\"\n size=\"small\"\n severity=\"secondary\"\n text\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"translations().chartMenu\"\n [txPopoverTrigger]=\"exportPopover\"\n ></button>\n <tx-popover #exportPopover placement=\"bottom-end\" [dt]=\"popoverTokens\" [ariaLabel]=\"translations().chartMenu\" [unstyled]=\"!styled()\">\n <tx-chart-menu\n [items]=\"exportItems()\"\n [ariaLabel]=\"translations().chartMenu\"\n [unstyled]=\"!styled()\"\n (selected)=\"exportPopover.hide(); onExport($event)\"\n />\n </tx-popover>\n }\n </div>\n}\n@if (legendVisible()) {\n <tx-chart-legend\n class=\"tx-chart-frame__legend\"\n [class]=\"parts().legend?.class\"\n [style]=\"parts().legend?.style\"\n [attr.data-styled]=\"styled() || null\"\n [items]=\"legendItems()\"\n [position]=\"legendPosition()\"\n [align]=\"legendAlign()\"\n [variant]=\"legendVariant()\"\n [toggle]=\"legendToggle()\"\n [template]=\"legendTemplate()\"\n [itemPart]=\"parts().legendItem\"\n (toggled)=\"legendToggled.emit($event)\"\n (hovered)=\"legendHovered.emit($event)\"\n />\n}\n<div\n #plot\n class=\"tx-chart-frame__plot\"\n [class]=\"parts().plot?.class\"\n [style]=\"parts().plot?.style\"\n [style.height.px]=\"plotHeight()\"\n [class.tx-chart-frame__plot--fixed]=\"plotHeight() !== null\"\n [attr.role]=\"empty() || loading() ? null : 'img'\"\n [attr.aria-label]=\"empty() || loading() ? null : summary()\"\n [attr.aria-describedby]=\"interactive() && !empty() && !loading() ? hintId : null\"\n [attr.tabindex]=\"interactive() && !empty() && !loading() ? 0 : null\"\n [class.tx-chart-frame__plot--zoomable]=\"zoomable()\"\n [class.tx-chart-frame__plot--zoomed]=\"zoomedIn()\"\n (pointermove)=\"onPointer($event, 'move')\"\n (pointerdown)=\"onPointer($event, 'down')\"\n (pointerup)=\"onPointer($event, 'up')\"\n (pointercancel)=\"onPointer($event, 'up')\"\n (pointerleave)=\"onPointer($event, 'leave')\"\n (click)=\"onPointer($event, 'click')\"\n (wheel)=\"onWheel($event)\"\n (dblclick)=\"onDoubleClick()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"pointer.emit({ x: 0, y: 0, type: 'leave', target: null })\"\n>\n @if (loading()) {\n <tx-skeleton\n class=\"tx-chart-frame__skeleton\"\n [class]=\"parts().skeleton?.class\"\n [style]=\"parts().skeleton?.style\"\n width=\"100%\"\n height=\"100%\"\n [unstyled]=\"!styled()\"\n [attr.aria-label]=\"translations().chartLoading\"\n role=\"status\"\n />\n } @else if (empty()) {\n <div class=\"tx-chart-frame__empty\" role=\"status\" [class]=\"parts().empty?.class\" [style]=\"parts().empty?.style\">\n <span class=\"tx-chart-frame__empty-icon\" aria-hidden=\"true\"><tx-icon [name]=\"emptyIcon()\" /></span>\n <span class=\"tx-chart-frame__empty-text\">{{ translations().chartNoData }}</span>\n </div>\n } @else {\n <svg\n #chartSvg\n class=\"tx-chart-frame__svg\"\n [class]=\"parts().svg?.class\"\n [style]=\"parts().svg?.style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n preserveAspectRatio=\"xMinYMin meet\"\n [attr.viewBox]=\"viewBox()\"\n >\n <ng-content />\n </svg>\n <span #anchor class=\"tx-chart-frame__anchor\" aria-hidden=\"true\"></span>\n }\n</div>\n@if (interactive() && !empty() && !loading()) {\n <span class=\"cdk-visually-hidden\" [id]=\"hintId\">{{ translations().chartNavigateHint }}{{ zoomable() ? '. ' + translations().chartZoomHint : '' }}</span>\n}\n@if (table(); as data) {\n @if (!empty() && !loading()) {\n <
|
|
3346
|
+
template: "@if (toolbar() || zoomedIn()) {\n <div class=\"tx-chart-frame__toolbar\">\n @if (zoomedIn()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__reset\"\n icon=\"search-minus\"\n size=\"small\"\n severity=\"secondary\"\n text\n [label]=\"translations().chartResetZoom\"\n (click)=\"zoomReset.emit()\"\n ></button>\n }\n @if (toolbar() && canExport()) {\n <button\n txButton\n type=\"button\"\n class=\"tx-chart-frame__menu-button\"\n icon=\"bars\"\n size=\"small\"\n severity=\"secondary\"\n text\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"translations().chartMenu\"\n [txPopoverTrigger]=\"exportPopover\"\n ></button>\n <tx-popover #exportPopover placement=\"bottom-end\" [dt]=\"popoverTokens\" [ariaLabel]=\"translations().chartMenu\" [unstyled]=\"!styled()\">\n <tx-chart-menu\n [items]=\"exportItems()\"\n [ariaLabel]=\"translations().chartMenu\"\n [unstyled]=\"!styled()\"\n (selected)=\"exportPopover.hide(); onExport($event)\"\n />\n </tx-popover>\n }\n </div>\n}\n@if (legendVisible()) {\n <tx-chart-legend\n class=\"tx-chart-frame__legend\"\n [class]=\"parts().legend?.class\"\n [style]=\"parts().legend?.style\"\n [attr.data-styled]=\"styled() || null\"\n [items]=\"legendItems()\"\n [position]=\"legendPosition()\"\n [align]=\"legendAlign()\"\n [variant]=\"legendVariant()\"\n [toggle]=\"legendToggle()\"\n [template]=\"legendTemplate()\"\n [itemPart]=\"parts().legendItem\"\n (toggled)=\"legendToggled.emit($event)\"\n (hovered)=\"legendHovered.emit($event)\"\n />\n}\n<div\n #plot\n class=\"tx-chart-frame__plot\"\n [class]=\"parts().plot?.class\"\n [style]=\"parts().plot?.style\"\n [style.height.px]=\"plotHeight()\"\n [class.tx-chart-frame__plot--fixed]=\"plotHeight() !== null\"\n [attr.role]=\"empty() || loading() ? null : 'img'\"\n [attr.aria-label]=\"empty() || loading() ? null : summary()\"\n [attr.aria-describedby]=\"interactive() && !empty() && !loading() ? hintId : null\"\n [attr.tabindex]=\"interactive() && !empty() && !loading() ? 0 : null\"\n [class.tx-chart-frame__plot--zoomable]=\"zoomable()\"\n [class.tx-chart-frame__plot--zoomed]=\"zoomedIn()\"\n (pointermove)=\"onPointer($event, 'move')\"\n (pointerdown)=\"onPointer($event, 'down')\"\n (pointerup)=\"onPointer($event, 'up')\"\n (pointercancel)=\"onPointer($event, 'up')\"\n (pointerleave)=\"onPointer($event, 'leave')\"\n (click)=\"onPointer($event, 'click')\"\n (wheel)=\"onWheel($event)\"\n (dblclick)=\"onDoubleClick()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"pointer.emit({ x: 0, y: 0, type: 'leave', target: null })\"\n>\n @if (loading()) {\n <tx-skeleton\n class=\"tx-chart-frame__skeleton\"\n [class]=\"parts().skeleton?.class\"\n [style]=\"parts().skeleton?.style\"\n width=\"100%\"\n height=\"100%\"\n [unstyled]=\"!styled()\"\n [attr.aria-label]=\"translations().chartLoading\"\n role=\"status\"\n />\n } @else if (empty()) {\n <div class=\"tx-chart-frame__empty\" role=\"status\" [class]=\"parts().empty?.class\" [style]=\"parts().empty?.style\">\n <span class=\"tx-chart-frame__empty-icon\" aria-hidden=\"true\"><tx-icon [name]=\"emptyIcon()\" /></span>\n <span class=\"tx-chart-frame__empty-text\">{{ translations().chartNoData }}</span>\n </div>\n } @else {\n <svg\n #chartSvg\n class=\"tx-chart-frame__svg\"\n [class]=\"parts().svg?.class\"\n [style]=\"parts().svg?.style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n preserveAspectRatio=\"xMinYMin meet\"\n [attr.viewBox]=\"viewBox()\"\n >\n <ng-content />\n </svg>\n <span #anchor class=\"tx-chart-frame__anchor\" aria-hidden=\"true\"></span>\n }\n</div>\n@if (interactive() && !empty() && !loading()) {\n <span class=\"cdk-visually-hidden\" [id]=\"hintId\">{{ translations().chartNavigateHint }}{{ zoomable() ? '. ' + translations().chartZoomHint : '' }}</span>\n}\n@if (table(); as data) {\n @if (!empty() && !loading()) {\n <div class=\"cdk-visually-hidden\">\n <table>\n <caption>\n {{ summary() || translations().chartDataTable }}\n </caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ translations().chartCategory }}</th>\n @for (column of data.columns; track column.key) {\n <th scope=\"col\">{{ column.label }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of data.rows; track $index) {\n <tr>\n <th scope=\"row\">{{ row.label }}</th>\n @for (cell of row.cells; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n}\n\n<ng-template #tooltipPanel>\n @if (shown(); as data) {\n <div\n class=\"tx-chart-frame__tooltip\"\n role=\"presentation\"\n [class]=\"parts().tooltip?.class\"\n [style]=\"panelStyle()\"\n [style.--tx-chart-tooltip-arrow-offset]=\"arrowOffset()\"\n [attr.data-side]=\"side()\"\n [attr.data-follow]=\"following() || null\"\n [attr.data-styled]=\"styled() || null\"\n >\n @if (styled()) {\n <svg class=\"tx-chart-frame__tooltip-arrow\" aria-hidden=\"true\" viewBox=\"0 0 12 6\" preserveAspectRatio=\"none\">\n <path class=\"tx-chart-frame__tooltip-arrow-fill\" d=\"M0 6 L6 0 L12 6 Z\" />\n <path class=\"tx-chart-frame__tooltip-arrow-line\" d=\"M0 6 L6 0 L12 6\" />\n </svg>\n }\n @if (tooltipTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom\" [ngTemplateOutletContext]=\"{ $implicit: data }\" />\n } @else {\n @if (data.title) {\n <div class=\"tx-chart-frame__tooltip-title\">{{ data.title }}</div>\n }\n @for (row of data.rows; track $index) {\n <div class=\"tx-chart-frame__tooltip-row\" [class.tx-chart-frame__tooltip-row--active]=\"row.active && data.rows.length > 1\">\n <span class=\"tx-chart-frame__tooltip-marker\" [style.background]=\"row.color\"></span>\n <span class=\"tx-chart-frame__tooltip-label\">{{ row.label }}</span>\n <span class=\"tx-chart-frame__tooltip-value\">{{ row.value }}</span>\n @if (row.share) {\n <span class=\"tx-chart-frame__tooltip-share\">{{ row.share }}</span>\n }\n </div>\n }\n @if (data.total) {\n <div class=\"tx-chart-frame__tooltip-row tx-chart-frame__tooltip-total\">\n <span class=\"tx-chart-frame__tooltip-label\">{{ translations().chartTotal }}</span>\n <span class=\"tx-chart-frame__tooltip-value\">{{ data.total }}</span>\n </div>\n }\n @if (data.note) {\n <div class=\"tx-chart-frame__tooltip-note\">{{ data.note }}</div>\n }\n }\n </div>\n }\n</ng-template>\n",
|
|
3284
3347
|
styles: [":host{position:relative;display:flex;flex-direction:column;min-width:0;box-sizing:border-box}:host([data-legend=bottom]){flex-direction:column-reverse}:host([data-legend=left]){flex-direction:row}:host([data-legend=right]){flex-direction:row-reverse}:host([data-legend=left]) .tx-chart-frame__legend,:host([data-legend=right]) .tx-chart-frame__legend{flex:0 0 auto;align-self:center;max-height:100%;overflow:auto}.tx-chart-frame__toolbar{position:absolute;top:0;right:0;z-index:1;display:flex;align-items:center;justify-content:flex-end}:host([data-toolbar=own]){padding-top:var(--tx-chart-toolbar-row-height)}:host([data-toolbar=legend]) .tx-chart-frame__legend{padding-inline-end:var(--tx-chart-toolbar-reserve)}.tx-chart-frame__plot{position:relative;flex:1 1 auto;min-width:0;min-height:0;outline:none}.tx-chart-frame__plot--zoomable{touch-action:pan-y}.tx-chart-frame__plot--zoomed{cursor:grab}.tx-chart-frame__plot--zoomed:active{cursor:grabbing}.tx-chart-frame__plot--fixed{flex:0 0 auto}:host([data-legend=left]) .tx-chart-frame__plot--fixed,:host([data-legend=right]) .tx-chart-frame__plot--fixed{flex:1 1 auto;align-self:center}.tx-chart-frame__svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}.tx-chart-frame__anchor{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none}.tx-chart-frame__skeleton{position:absolute;inset:0}.tx-chart-frame__empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.tx-chart-frame__empty-icon{display:inline-flex;align-items:center;justify-content:center}.tx-chart-frame__tooltip{display:flex;flex-direction:column;white-space:nowrap;pointer-events:none}.tx-chart-frame__tooltip-row{display:flex;align-items:center}:host([data-styled]){gap:var(--tx-chart-legend-gap);color:var(--tx-chart-color);font-family:var(--tx-chart-font-family);background:var(--tx-chart-background)}:host([data-styled]) .tx-chart-frame__plot:focus-visible{border-radius:var(--tx-radius-sm);outline:var(--tx-chart-focus-ring-width) solid var(--tx-chart-focus-ring-color);outline-offset:var(--tx-chart-focus-ring-offset)}:host([data-styled]) .tx-chart-frame__empty{gap:var(--tx-chart-empty-gap);color:var(--tx-chart-empty-color);font-size:var(--tx-chart-empty-font-size)}:host([data-styled]) .tx-chart-frame__empty-icon{width:var(--tx-chart-empty-icon-size);height:var(--tx-chart-empty-icon-size);border-radius:var(--tx-radius-full);background:var(--tx-chart-empty-icon-background);color:var(--tx-chart-empty-icon-color);font-size:var(--tx-chart-empty-icon-font-size)}:host([data-styled][data-legend=left]),:host([data-styled][data-legend=right]){gap:var(--tx-chart-legend-item-gap)}:host([data-styled][data-legend=left]) .tx-chart-frame__legend,:host([data-styled][data-legend=right]) .tx-chart-frame__legend{max-width:var(--tx-chart-legend-side-width)}.tx-chart-frame__tooltip[data-styled]{position:relative;gap:var(--tx-chart-tooltip-row-gap);min-width:var(--tx-chart-tooltip-min-width);padding:var(--tx-chart-tooltip-padding);border:var(--tx-chart-tooltip-border-width) solid var(--tx-chart-tooltip-border-color);border-radius:var(--tx-chart-tooltip-border-radius);background:var(--tx-chart-tooltip-background);filter:var(--tx-chart-tooltip-shadow);color:var(--tx-chart-tooltip-color);font-family:var(--tx-chart-font-family);font-size:var(--tx-chart-tooltip-font-size);line-height:1.35}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow{position:absolute;display:block;width:calc(var(--tx-chart-tooltip-arrow-size) * 2);height:var(--tx-chart-tooltip-arrow-size);overflow:visible}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow-fill{fill:var(--tx-chart-tooltip-background)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-arrow-line{fill:none;stroke:var(--tx-chart-tooltip-border-color);stroke-width:var(--tx-chart-tooltip-border-width);stroke-linejoin:round;vector-effect:non-scaling-stroke}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-title{margin-bottom:2px;color:var(--tx-chart-tooltip-muted-color);font-size:var(--tx-chart-tooltip-title-font-size);font-weight:var(--tx-chart-tooltip-title-font-weight)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-row{gap:var(--tx-chart-tooltip-marker-gap)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-note{margin-top:2px;color:var(--tx-chart-tooltip-note-color);font-size:var(--tx-chart-tooltip-title-font-size)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-marker{flex-shrink:0;width:var(--tx-chart-tooltip-marker-size);height:var(--tx-chart-tooltip-marker-size);border-radius:var(--tx-radius-full)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-label{color:var(--tx-chart-tooltip-muted-color)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-row--active .tx-chart-frame__tooltip-label{color:var(--tx-chart-tooltip-color)}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-share{min-width:4ch;color:var(--tx-chart-tooltip-muted-color);font-variant-numeric:tabular-nums;text-align:end}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-value{margin-inline-start:auto;padding-inline-start:var(--tx-chart-tooltip-value-gap);font-weight:var(--tx-chart-tooltip-value-font-weight);font-variant-numeric:tabular-nums}.tx-chart-frame__tooltip[data-styled] .tx-chart-frame__tooltip-total{margin-top:2px;padding-top:calc(var(--tx-chart-tooltip-row-gap) + 2px);border-top:1px solid var(--tx-chart-tooltip-total-border-color)}.tx-chart-frame__tooltip[data-styled][data-side=top] .tx-chart-frame__tooltip-arrow,.tx-chart-frame__tooltip[data-styled][data-side=bottom] .tx-chart-frame__tooltip-arrow{left:clamp(var(--tx-chart-tooltip-border-radius) + var(--tx-chart-tooltip-arrow-size),var(--tx-chart-tooltip-arrow-offset),100% - var(--tx-chart-tooltip-border-radius) - var(--tx-chart-tooltip-arrow-size));margin-left:calc(var(--tx-chart-tooltip-arrow-size) * -1)}.tx-chart-frame__tooltip[data-styled][data-side=left] .tx-chart-frame__tooltip-arrow,.tx-chart-frame__tooltip[data-styled][data-side=right] .tx-chart-frame__tooltip-arrow{top:clamp(var(--tx-chart-tooltip-border-radius) + var(--tx-chart-tooltip-arrow-size) / 2,var(--tx-chart-tooltip-arrow-offset),100% - var(--tx-chart-tooltip-border-radius) - var(--tx-chart-tooltip-arrow-size) / 2);margin-top:calc(var(--tx-chart-tooltip-arrow-size) / -2)}.tx-chart-frame__tooltip[data-styled][data-side=bottom] .tx-chart-frame__tooltip-arrow{top:calc(var(--tx-chart-tooltip-arrow-size) * -1)}.tx-chart-frame__tooltip[data-styled][data-side=top] .tx-chart-frame__tooltip-arrow{bottom:calc(var(--tx-chart-tooltip-arrow-size) * -1);transform:rotate(180deg)}.tx-chart-frame__tooltip[data-styled][data-side=left] .tx-chart-frame__tooltip-arrow{right:calc(var(--tx-chart-tooltip-arrow-size) * -1.5);transform:rotate(90deg)}.tx-chart-frame__tooltip[data-styled][data-side=right] .tx-chart-frame__tooltip-arrow{left:calc(var(--tx-chart-tooltip-arrow-size) * -1.5);transform:rotate(-90deg)}\n"]
|
|
3285
3348
|
}]
|
|
3286
3349
|
}],
|
|
@@ -3697,6 +3760,6 @@ function parseRatio(raw, fallback) {
|
|
|
3697
3760
|
if (!Number.isFinite(value)) return fallback;
|
|
3698
3761
|
return raw.trim().endsWith("%") ? value / 100 : value;
|
|
3699
3762
|
}
|
|
3700
|
-
export { TX_CHART_ENTER_MS, TX_CHART_FALLBACK_HEIGHT, TX_CHART_FALLBACK_WIDTH, TX_CHART_LEGEND_ROW, TX_CHART_LEGEND_SIDE, TX_CHART_PALETTE_SIZE, TX_CHART_TABLE_ROWS, TX_FULL_CIRCLE, TX_TIME_INTERVALS, TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegend, TxChartLegendTemplate, TxChartMenu, TxChartTooltipTemplate, addTime, alignedDomain, angleFrom, arcBounds, arcPath, arcSpan, areaPath, bandScale, cartesianLayout, chartAnnotationShapes, chartBandRect, chartBoxHeight, chartCategoryIndex, chartColor, chartCsv, chartFileName, chartHeightValue, chartMonthNames, chartNumberFormatter, chartPalette, chartPngBlob, chartSummary, chartSvgSize, chartSvgString, chartTable, compactNumber, cycleIndex, dateFormat, decimalsOf, decimateSeries, downloadChartFile, extent, fitArc, floorTime, hasChartData, initialChartSize, injectChartEntrance, largestTriangleThreeBuckets, linePath, linearScale, linearTicks, logDomain, logScale, logTicks, maxCornerRadius, monotoneTangents, niceDomain, normalizeSeries, numberFormat, parseRatio, pointScale, polar, prefersReducedMotion, readTokenNumber, seriesColor, splitGaps, stackExtent, stackValues, stepIndex, strokeArc, tableRows, textWidth, tickFormatter, tickStep, timeInterval, timeScale, timeTickFormatter, timeTickOptions, timeTicks, timeTooltipFormatter, toRadians, toTime, toggleKey, topOfStack, truncateText };
|
|
3763
|
+
export { TX_CHART_ENTER_MS, TX_CHART_FALLBACK_HEIGHT, TX_CHART_FALLBACK_WIDTH, TX_CHART_LEGEND_ROW, TX_CHART_LEGEND_SIDE, TX_CHART_NARROW_WIDTH, TX_CHART_PALETTE_SIZE, TX_CHART_TABLE_ROWS, TX_FULL_CIRCLE, TX_TIME_INTERVALS, TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegend, TxChartLegendTemplate, TxChartMenu, TxChartTooltipTemplate, addTime, alignedDomain, angleFrom, arcBounds, arcPath, arcSpan, areaPath, bandScale, cartesianLayout, chartAnnotationShapes, chartBandRect, chartBoxHeight, chartCategoryIndex, chartColor, chartCsv, chartFileName, chartHeightValue, chartLegendPlace, chartMonthNames, chartNumberFormatter, chartPalette, chartPngBlob, chartSummary, chartSvgSize, chartSvgString, chartTable, compactNumber, compactValueFormatter, cycleIndex, dateFormat, decimalsOf, decimateSeries, downloadChartFile, extent, fitArc, floorTime, hasChartData, initialChartSize, injectChartEntrance, injectHostWidth, injectLegendPlace, largestTriangleThreeBuckets, linePath, linearScale, linearTicks, logDomain, logScale, logTicks, maxCornerRadius, monotoneTangents, niceDomain, normalizeSeries, numberFormat, parseRatio, pointScale, polar, prefersReducedMotion, readTokenNumber, seriesColor, splitGaps, stackExtent, stackValues, stepIndex, strokeArc, tableRows, textWidth, tickFormatter, tickStep, timeInterval, timeScale, timeTickFormatter, timeTickOptions, timeTicks, timeTooltipFormatter, toRadians, toTime, toggleKey, topOfStack, truncateText };
|
|
3701
3764
|
|
|
3702
3765
|
//# sourceMappingURL=tectra-ng-charts-core.mjs.map
|