@ids-group-ltd/ids-design-system 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +430 -0
- package/components.md +68 -37
- package/docs/agent/INDEX.md +3 -3
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +2 -1
- package/docs/agent/charts/ds-heatmap-chart.md +2 -1
- package/docs/agent/charts/ds-line-chart.md +3 -3
- package/docs/agent/charts/ds-pie-chart.md +3 -2
- package/docs/agent/charts/ds-scatter-chart.md +2 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-alert.md +1 -0
- package/docs/agent/feedback/ds-banner.md +1 -0
- package/docs/agent/feedback/ds-toast.md +2 -0
- package/docs/agent/forms/ds-autocomplete.md +1 -1
- package/docs/agent/forms/ds-button.md +1 -0
- package/docs/agent/forms/ds-checkbox.md +1 -1
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +1 -1
- package/docs/agent/forms/ds-icon-button.md +1 -1
- package/docs/agent/forms/ds-input.md +1 -1
- package/docs/agent/forms/ds-multi-select.md +1 -1
- package/docs/agent/forms/ds-otp-input.md +1 -1
- package/docs/agent/forms/ds-radio-group.md +1 -1
- package/docs/agent/forms/ds-segmented.md +1 -1
- package/docs/agent/forms/ds-select.md +1 -1
- package/docs/agent/forms/ds-slider.md +1 -1
- package/docs/agent/forms/ds-switch.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/forms/ds-time-picker.md +1 -1
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/docs/agent/foundations/global-helper-classes.md +1 -1
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +2 -1
- package/docs/agent/overlays/ds-definition-term.md +1 -1
- package/docs/agent/overlays/ds-info-hint.md +21 -2
- package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +1 -1
- package/docs/agent/tables/ds-table-columns.md +2 -0
- package/docs/agent/tables/ds-table.md +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +8 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +7 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +694 -77
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +2183 -1235
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +44 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +22 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +44 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +4 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +49 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +76 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +11 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +33 -44
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +50 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +102 -27
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +11 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +123 -23
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs +55 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +32 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +17 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +160 -201
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +24 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +17 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +32 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +10 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +238 -67
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +9 -2
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.15.0.json +1 -1
- package/migrations/0.15.1.json +738 -0
- package/package.json +9 -1
- package/schematics/check-overrides/surface.json +47 -2
- package/stylelint/deprecated-tokens.json +14 -0
- package/styles/_chart-frame.scss +14 -0
- package/styles/_chart-interactive.scss +26 -1
- package/styles/_chart-motion.scss +47 -8
- package/styles/_link.scss +35 -12
- package/styles/_tokens.scss +3 -0
- package/themes/README.md +53 -0
- package/themes/_semantic.scss +5 -8
- package/themes/dark/_theme.scss +5 -8
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +5 -4
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +51 -7
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +200 -27
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +27 -2
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +19 -2
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +0 -3
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +21 -8
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +13 -4
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +13 -7
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +6 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +24 -7
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +39 -7
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-show-dirty.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +36 -29
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +8 -6
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +110 -34
- package/types/ids-group-ltd-ids-design-system-core.d.ts +39 -12
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, numberAttribute, output, contentChild, computed, inject, ElementRef, viewChildren, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, numberAttribute, output, model, contentChild, computed, inject, ElementRef, viewChildren, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
3
|
import { DsChartBase, chartRenderGate, CHART_SKELETON_COUNT, readOnHostResize, CHART_SERIES_COLORS, formatPercent, shareOfTotal, describeSeries, skeletonMarkCount, CHART_RENDER_GATE_PASSED } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { chartViewHeight, ColumnSeriesComponent, stackOffsets, ChartComponent, ReferenceLabelComponent, ReferenceLineComponent } from '@ids-group-ltd/ids-design-system/components/chart';
|
|
5
5
|
import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
@@ -69,6 +69,22 @@ class ColumnChartComponent extends DsChartBase {
|
|
|
69
69
|
staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
70
70
|
/** Whether a hovered or focused column opens a tooltip. */
|
|
71
71
|
tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
72
|
+
/** Ids of the series the legend has switched off; their columns sink to the baseline. */
|
|
73
|
+
hiddenSeries = model([], ...(ngDevMode ? [{ debugName: "hiddenSeries" }] : /* istanbul ignore next */ []));
|
|
74
|
+
/** Whether hiding a series re-scales the value axis to what is left. Off holds the axis where it
|
|
75
|
+
* stands with every series shown. */
|
|
76
|
+
rescaleOnHide = input(true, { ...(ngDevMode ? { debugName: "rescaleOnHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
77
|
+
/** Whether the legend switches series off. Off leaves it a plain key. */
|
|
78
|
+
legendFilters = input(false, { ...(ngDevMode ? { debugName: "legendFilters" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
79
|
+
/** What a legend control does. `'isolate'` shows one series and hides the rest (radios);
|
|
80
|
+
* `'toggle'` hides one and leaves the rest (checkboxes). */
|
|
81
|
+
legendMode = input('isolate', ...(ngDevMode ? [{ debugName: "legendMode" }] : /* istanbul ignore next */ []));
|
|
82
|
+
/** Lets a press dragged across columns select their categories: a band, the sum and mean of every
|
|
83
|
+
* column in it, and the rest faded. Escape or a press outside clears it. Off by default. */
|
|
84
|
+
selectRange = input(false, { ...(ngDevMode ? { debugName: "selectRange" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
+
/** Answers the pointer on the axes: the category label in bold, a guide from the value axis and
|
|
86
|
+
* the value there in a pill on the axis. On by default. */
|
|
87
|
+
showAxisReadout = input(true, { ...(ngDevMode ? { debugName: "showAxisReadout" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
72
88
|
tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
73
89
|
/** Where the tooltip anchors: `'mark'` (default) is the column; `'cell'` is the full-height category cell. */
|
|
74
90
|
tooltipAnchor = input('mark', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
|
|
@@ -98,7 +114,30 @@ class ColumnChartComponent extends DsChartBase {
|
|
|
98
114
|
slotCount = computed(() => this.stack() === 'stacked' || this.stack() === 'normalized'
|
|
99
115
|
? 1
|
|
100
116
|
: this.resolvedSeries().length, ...(ngDevMode ? [{ debugName: "slotCount" }] : /* istanbul ignore next */ []));
|
|
101
|
-
|
|
117
|
+
// A hidden series piles as zeros, so the rest settle onto each other and it sinks where it stood.
|
|
118
|
+
offsets = computed(() => {
|
|
119
|
+
const hidden = this.hiddenSeries();
|
|
120
|
+
return stackOffsets(this.resolvedSeries().map((series) => series.points.map((point) => hidden.includes(series.key) ? 0 : point.value)), this.stack());
|
|
121
|
+
}, ...(ngDevMode ? [{ debugName: "offsets" }] : /* istanbul ignore next */ []));
|
|
122
|
+
// The hidden series pile as zeros above, so the held axis has to come from the pile with all shown.
|
|
123
|
+
heldExtent = computed(() => {
|
|
124
|
+
if (this.rescaleOnHide()) {
|
|
125
|
+
return { min: null, max: null };
|
|
126
|
+
}
|
|
127
|
+
const edges = stackOffsets(this.resolvedSeries().map((series) => series.points.map((point) => point.value)), this.stack()).flatMap((spans) => spans.flatMap((span) => [span.from, span.to]));
|
|
128
|
+
return { min: Math.min(0, ...edges), max: Math.max(0, ...edges) };
|
|
129
|
+
}, ...(ngDevMode ? [{ debugName: "heldExtent" }] : /* istanbul ignore next */ []));
|
|
130
|
+
isHidden(key) {
|
|
131
|
+
return this.hiddenSeries().includes(key);
|
|
132
|
+
}
|
|
133
|
+
// Under `dimOthers` a hovered column singles out its series as a legend item does, so both fade the rest.
|
|
134
|
+
spotlitSeries = computed(() => {
|
|
135
|
+
if (this.highlightedSeries() !== null || !this.dimOthers()) {
|
|
136
|
+
return this.highlightedSeries();
|
|
137
|
+
}
|
|
138
|
+
const hovered = this.seriesRefs().findIndex((series) => series.activeMark.index() >= 0);
|
|
139
|
+
return this.resolvedSeries()[hovered]?.key ?? null;
|
|
140
|
+
}, ...(ngDevMode ? [{ debugName: "spotlitSeries" }] : /* istanbul ignore next */ []));
|
|
102
141
|
offsetsFor(index) {
|
|
103
142
|
return this.offsets()[index] ?? [];
|
|
104
143
|
}
|
|
@@ -157,7 +196,7 @@ class ColumnChartComponent extends DsChartBase {
|
|
|
157
196
|
isEmpty = computed(() => this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
158
197
|
skeletonMarks = computed(() => skeletonMarkCount(this.categories().length, this.skeletonCount()), ...(ngDevMode ? [{ debugName: "skeletonMarks" }] : /* istanbul ignore next */ []));
|
|
159
198
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
160
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnChartComponent, isStandalone: true, selector: "ds-column-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, skeletonCount: { classPropertyName: "skeletonCount", publicName: "skeletonCount", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_column-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "seriesRefs", predicate: ColumnSeriesComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"column-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved() !== 'none'\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"pinnedSeries()?.activeMark?.release()\">\n</figure>\n\n<ng-template #skeleton>\n <ds-chart-skeleton\n [count]=\"skeletonMarks()\"\n [plotHeight]=\"geometry().plotHeight + 'px'\"\n [valueSpace]=\"geometry().valueSpace\"\n [axisGutter]=\"geometry().axisGutter\"\n [shimmer]=\"loading()\" />\n</ng-template>\n\n<ng-template #body>\n <ds-chart\n frame=\"none\"\n cursor=\"none\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n @if (thresholds().length) {\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n }\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"highlightedSeries()\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n @if (thresholds().length) {\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n }\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}:host{--_chart-message-height: var(--_column-chart-view-height)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}\n"], dependencies: [{ kind: "component", type: ChartSkeletonComponent, selector: "ds-chart-skeleton", inputs: ["marks", "count", "plotHeight", "valueSpace", "axisGutter", "shimmer"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "skeletonCount", "tickCount", "min", "max", "cursor", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel", "tooltipTemplate", "tooltipExtraGap"], exportAs: ["dsChart"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message"], outputs: ["release"] }, { kind: "component", type: ColumnSeriesComponent, selector: "g[dsColumnSeries]", inputs: ["data", "showValues", "interactive", "pinOnClick", "dimOthers", "staggerMs", "partOfWhole", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat", "columnWidthRatio", "slot", "slotCount", "offsets", "soleSeries", "axis", "seriesColor", "seriesFill", "seriesLabel", "seriesKey", "highlighted"], outputs: ["pointClicked"], exportAs: ["dsColumnSeries"] }, { kind: "component", type: ReferenceLabelComponent, selector: "g[dsReferenceLabel]", inputs: ["thresholds"] }, { kind: "component", type: ReferenceLineComponent, selector: "g[dsReferenceLine]", inputs: ["thresholds"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnChartComponent, isStandalone: true, selector: "ds-column-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, skeletonCount: { classPropertyName: "skeletonCount", publicName: "skeletonCount", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, hiddenSeries: { classPropertyName: "hiddenSeries", publicName: "hiddenSeries", isSignal: true, isRequired: false, transformFunction: null }, rescaleOnHide: { classPropertyName: "rescaleOnHide", publicName: "rescaleOnHide", isSignal: true, isRequired: false, transformFunction: null }, legendFilters: { classPropertyName: "legendFilters", publicName: "legendFilters", isSignal: true, isRequired: false, transformFunction: null }, legendMode: { classPropertyName: "legendMode", publicName: "legendMode", isSignal: true, isRequired: false, transformFunction: null }, selectRange: { classPropertyName: "selectRange", publicName: "selectRange", isSignal: true, isRequired: false, transformFunction: null }, showAxisReadout: { classPropertyName: "showAxisReadout", publicName: "showAxisReadout", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked", hiddenSeries: "hiddenSeriesChange" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_column-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "seriesRefs", predicate: ColumnSeriesComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"column-chart\"\n dsChartStates\n morphGrowth=\"up\"\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"pinnedSeries()?.activeMark?.release()\">\n</figure>\n\n<ng-template #skeleton>\n <ds-chart-skeleton\n [count]=\"skeletonMarks()\"\n [plotHeight]=\"geometry().plotHeight + 'px'\"\n [valueSpace]=\"geometry().valueSpace\"\n [axisGutter]=\"geometry().axisGutter\"\n [shimmer]=\"loading()\" />\n</ng-template>\n\n<ng-template #body>\n <ds-chart\n frame=\"none\"\n cursor=\"none\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [selectRange]=\"selectRange()\"\n [showAxisReadout]=\"showAxisReadout()\"\n [summary]=\"accessibleName()\"\n [rescaleOnHide]=\"rescaleOnHide()\"\n [min]=\"heldExtent().min\"\n [max]=\"heldExtent().max\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n @if (thresholds().length) {\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n }\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"spotlitSeries()\"\n [hidden]=\"isHidden(series.key)\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n @if (thresholds().length) {\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n }\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}:host{--_chart-message-height: var(--_column-chart-view-height)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}\n"], dependencies: [{ kind: "component", type: ChartSkeletonComponent, selector: "ds-chart-skeleton", inputs: ["marks", "count", "plotHeight", "valueSpace", "axisGutter", "shimmer"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "skeletonCount", "tickCount", "min", "max", "cursor", "rescaleOnHide", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel", "selectRange", "showAxisReadout", "tooltipTemplate", "tooltipExtraGap"], exportAs: ["dsChart"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message", "morphGrowth"], outputs: ["release"] }, { kind: "component", type: ColumnSeriesComponent, selector: "g[dsColumnSeries]", inputs: ["data", "showValues", "interactive", "pinOnClick", "dimOthers", "staggerMs", "partOfWhole", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat", "columnWidthRatio", "slot", "slotCount", "offsets", "soleSeries", "axis", "seriesColor", "seriesFill", "seriesLabel", "seriesKey", "highlighted", "hidden", "runningTotal"], outputs: ["pointClicked"], exportAs: ["dsColumnSeries"] }, { kind: "component", type: ReferenceLabelComponent, selector: "g[dsReferenceLabel]", inputs: ["thresholds"] }, { kind: "component", type: ReferenceLineComponent, selector: "g[dsReferenceLine]", inputs: ["thresholds"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
161
200
|
}
|
|
162
201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnChartComponent, decorators: [{
|
|
163
202
|
type: Component,
|
|
@@ -173,8 +212,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
173
212
|
], host: {
|
|
174
213
|
'[class.framed]': "frameResolved() === 'auto'",
|
|
175
214
|
'[style.--_column-chart-view-height]': 'viewHeightPx()',
|
|
176
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }], template: "<figure\n class=\"column-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()
|
|
177
|
-
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], skeletonCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonCount", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], seriesRefs: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ColumnSeriesComponent), { isSignal: true }] }] } });
|
|
215
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }], template: "<figure\n class=\"column-chart\"\n dsChartStates\n morphGrowth=\"up\"\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"pinnedSeries()?.activeMark?.release()\">\n</figure>\n\n<ng-template #skeleton>\n <ds-chart-skeleton\n [count]=\"skeletonMarks()\"\n [plotHeight]=\"geometry().plotHeight + 'px'\"\n [valueSpace]=\"geometry().valueSpace\"\n [axisGutter]=\"geometry().axisGutter\"\n [shimmer]=\"loading()\" />\n</ng-template>\n\n<ng-template #body>\n <ds-chart\n frame=\"none\"\n cursor=\"none\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [selectRange]=\"selectRange()\"\n [showAxisReadout]=\"showAxisReadout()\"\n [summary]=\"accessibleName()\"\n [rescaleOnHide]=\"rescaleOnHide()\"\n [min]=\"heldExtent().min\"\n [max]=\"heldExtent().max\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n @if (thresholds().length) {\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n }\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"spotlitSeries()\"\n [hidden]=\"isHidden(series.key)\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n @if (thresholds().length) {\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n }\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}:host{--_chart-message-height: var(--_column-chart-view-height)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}\n"] }]
|
|
216
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], skeletonCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonCount", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], hiddenSeries: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenSeries", required: false }] }, { type: i0.Output, args: ["hiddenSeriesChange"] }], rescaleOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "rescaleOnHide", required: false }] }], legendFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendFilters", required: false }] }], legendMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendMode", required: false }] }], selectRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectRange", required: false }] }], showAxisReadout: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAxisReadout", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], seriesRefs: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ColumnSeriesComponent), { isSignal: true }] }] } });
|
|
178
217
|
|
|
179
218
|
/**
|
|
180
219
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-column-chart.mjs","sources":["../../../src/lib/components/column-chart/column-chart.component.ts","../../../src/lib/components/column-chart/column-chart.component.html","../../../src/lib/components/column-chart/ids-group-ltd-ids-design-system-components-column-chart.ts"],"sourcesContent":["import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n formatPercent,\n shareOfTotal,\n chartRenderGate,\n CHART_RENDER_GATE_PASSED,\n CHART_SKELETON_COUNT,\n DsChartBase,\n readOnHostResize,\n skeletonMarkCount,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ChartDataTable,\n ChartStackMode,\n ChartThreshold,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n chartViewHeight,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type { ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport {\n ChartSkeletonComponent,\n ChartStatesComponent,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartMarkFill,\n ColumnChartPoint,\n ColumnChartSeries,\n} from './column-chart.types';\n\ninterface ResolvedColumnSeries {\n readonly key: string;\n readonly label: string;\n /** Null leaves each mark on the categorical palette by its own position. */\n readonly color: string | null;\n readonly fill: ChartMarkFill | null;\n /** The caller's own array, not a copy, so a clicked point comes back as the object handed in. */\n readonly points: readonly ColumnChartPoint[];\n}\n\nfunction isSeriesList(\n data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[],\n): data is readonly ColumnChartSeries[] {\n return data.length > 0 && 'data' in data[0];\n}\n\nconst COLUMN_GEOMETRY = {\n plotHeight: 200,\n axisGutter: 40,\n valueSpace: 20,\n columnWidthRatio: 0.8,\n};\n\nfunction sameColumnGeometry(\n previous: typeof COLUMN_GEOMETRY,\n next: typeof COLUMN_GEOMETRY,\n): boolean {\n return (\n previous.plotHeight === next.plotHeight &&\n previous.axisGutter === next.axisGutter &&\n previous.valueSpace === next.valueSpace &&\n previous.columnWidthRatio === next.columnWidthRatio\n );\n}\n\n/** Reads the four geometry tokens off the host. */\nfunction readColumnGeometry(host: HTMLElement): typeof COLUMN_GEOMETRY {\n const style = getComputedStyle(host);\n const length = (token: string, fallback: number): number => {\n const parsed = Number.parseFloat(style.getPropertyValue(token));\n\n // `>= 0` keeps a token deliberately set to zero.\n return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;\n };\n\n return {\n plotHeight: length(\n '--_column-chart-plot-height',\n COLUMN_GEOMETRY.plotHeight,\n ),\n axisGutter: length(\n '--_column-chart-axis-width',\n COLUMN_GEOMETRY.axisGutter,\n ),\n valueSpace: length(\n '--_column-chart-value-space',\n COLUMN_GEOMETRY.valueSpace,\n ),\n columnWidthRatio:\n length(\n '--_column-chart-column-width',\n COLUMN_GEOMETRY.columnWidthRatio * 100,\n ) / 100,\n };\n}\n\n@Component({\n selector: 'ds-column-chart',\n standalone: true,\n imports: [\n ChartSkeletonComponent,\n ChartComponent,\n ChartLegendComponent,\n ChartStatesComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_column-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }],\n})\nexport class ColumnChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n /** One column per point, drawn in the order given, or one NAMED SERIES per entry, where every\n * category carries a column from each. The two forms are told apart by their shape. */\n readonly data = input<\n readonly ColumnChartPoint[] | readonly ColumnChartSeries[]\n >([]);\n\n /** How several series share one category's band. `'none'` (default) and `'grouped'` sit side\n * by side; `'stacked'` piles them; `'normalized'` piles then divides by the category's total. */\n readonly stack = input<ChartStackMode>('none');\n\n /** Reference lines and bands behind the columns; each widens the value axis and is named in the generated description. */\n readonly thresholds = input<readonly ChartThreshold[]>([]);\n\n /** Prints each column's value above the column. */\n readonly showValues = input(true, { transform: booleanAttribute });\n\n /** How many columns the loading skeleton draws before the data is known. */\n readonly skeletonCount = input(CHART_SKELETON_COUNT, {\n transform: (raw: unknown) => numberAttribute(raw, CHART_SKELETON_COUNT),\n });\n\n /** How many value-axis ticks to aim for; ticks snap to a round step. */\n readonly tickCount = input(5, { transform: numberAttribute });\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. Unset falls back to `DS_CONFIG.chart.dataTable`,\n * then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares the marks parts of one whole: each share appears on the tooltip's second line and in\n * the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The point clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly pointClicked = output<ColumnChartPoint>();\n\n /** Dims every OTHER mark while one is hovered or focused. Dimmed marks lose separation between\n * them (three series: worst pair dE 14.8 to 2.1 at `--ds-chart-dim-opacity` 0.3, measured 2026-09-13). */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one mark's entrance and the next; `0` turns it off. The step narrows to fit within 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n /** Whether a hovered or focused column opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip anchors: `'mark'` (default) is the column; `'cell'` is the full-height category cell. */\n readonly tooltipAnchor = input<'mark' | 'cell'>('mark');\n\n /** Keeps the panel clear of the value printed above the column. */\n protected readonly valueClearance = computed(() =>\n this.showValues() ? 18 : 0,\n );\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly geometry = readOnHostResize(\n inject<ElementRef<HTMLElement>>(ElementRef),\n readColumnGeometry,\n COLUMN_GEOMETRY,\n sameColumnGeometry,\n );\n\n protected readonly viewHeightPx = computed(\n () =>\n `${chartViewHeight(this.geometry().plotHeight, this.geometry().valueSpace)}px`,\n );\n\n protected readonly seriesRefs = viewChildren(ColumnSeriesComponent);\n\n protected readonly pinnedSeries = computed(\n () =>\n this.seriesRefs().find((series) => series.activeMark.pinned()) ?? null,\n );\n\n protected readonly resolvedSeries = computed<readonly ResolvedColumnSeries[]>(\n () => {\n const given = this.data();\n if (!isSeriesList(given)) {\n return [\n { key: 'series', label: '', color: null, fill: null, points: given },\n ];\n }\n\n return given.map((series, index) => ({\n key: series.id,\n label: series.label,\n color:\n series.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n fill: series.fill ?? null,\n points: series.data,\n }));\n },\n );\n\n protected readonly slotCount = computed(() =>\n this.stack() === 'stacked' || this.stack() === 'normalized'\n ? 1\n : this.resolvedSeries().length,\n );\n\n private readonly offsets = computed(() =>\n stackOffsets(\n this.resolvedSeries().map((series) =>\n series.points.map((point) => point.value),\n ),\n this.stack(),\n ),\n );\n\n protected offsetsFor(index: number): readonly ChartStackOffset[] {\n return this.offsets()[index] ?? [];\n }\n\n protected readonly categories = computed(() =>\n this.resolvedSeries()\n .reduce<readonly ColumnChartPoint[]>(\n (longest, series) =>\n series.points.length > longest.length ? series.points : longest,\n [],\n )\n .map((point) => point.label),\n );\n\n protected readonly multiSeries = computed(\n () => this.resolvedSeries().length > 1,\n );\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((series) => ({\n id: series.key,\n label: series.label,\n color: series.color ?? '',\n })),\n );\n\n protected readonly axisFormat = computed<ChartValueFormat | null>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1, this.defaults.locale)\n : this.valueFormat(),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n ...(this.multiSeries() ? [this.intl().chart.seriesColumn] : []),\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n ...(this.partOfWhole() ? [this.intl().chart.shareColumn] : []),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.key,\n cells: [\n ...(this.multiSeries() ? [row.series] : []),\n row.label,\n row.formattedValue,\n ...(this.partOfWhole() ? [row.share] : []),\n ],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.resolvedSeries().flatMap((series) => {\n const values = series.points.map((point) => point.value);\n\n return series.points.map((point, index) => ({\n key: `${series.key}:${point.id ?? index}`,\n series: series.label,\n label: point.label,\n formattedValue: format(point.value, 'tooltip'),\n share: this.partOfWhole()\n ? shareOfTotal(values, index, this.defaults.locale)\n : '',\n }));\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n this.resolvedSeries()\n .map((series, index) =>\n describeSeries(\n this.intl().chart,\n series.label || this.caption() || this.intl().chart.title,\n series.points.map((point) => ({\n label: point.label,\n value: point.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n // Reference lines belong to the plot, so they are named once.\n index === 0 ? this.thresholds() : [],\n ),\n )\n .join(' '),\n );\n\n protected readonly isEmpty = computed(() => this.categories().length === 0);\n\n protected readonly skeletonMarks = computed(() =>\n skeletonMarkCount(this.categories().length, this.skeletonCount()),\n );\n}\n","<figure\n class=\"column-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved() !== 'none'\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"pinnedSeries()?.activeMark?.release()\">\n</figure>\n\n<ng-template #skeleton>\n <ds-chart-skeleton\n [count]=\"skeletonMarks()\"\n [plotHeight]=\"geometry().plotHeight + 'px'\"\n [valueSpace]=\"geometry().valueSpace\"\n [axisGutter]=\"geometry().axisGutter\"\n [shimmer]=\"loading()\" />\n</ng-template>\n\n<ng-template #body>\n <ds-chart\n frame=\"none\"\n cursor=\"none\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n @if (thresholds().length) {\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n }\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"highlightedSeries()\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n @if (thresholds().length) {\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n }\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6EA,SAAS,YAAY,CACnB,IAAgE,EAAA;AAEhE,IAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;AAC7C;AAEA,MAAM,eAAe,GAAG;AACtB,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,gBAAgB,EAAE,GAAG;CACtB;AAED,SAAS,kBAAkB,CACzB,QAAgC,EAChC,IAA4B,EAAA;AAE5B,IAAA,QACE,QAAQ,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU;AACvC,QAAA,QAAQ,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU;AACvC,QAAA,QAAQ,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU;AACvC,QAAA,QAAQ,CAAC,gBAAgB,KAAK,IAAI,CAAC,gBAAgB;AAEvD;AAEA;AACA,SAAS,kBAAkB,CAAC,IAAiB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC;AACpC,IAAA,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,QAAgB,KAAY;AACzD,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;;AAG/D,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,GAAG,MAAM,GAAG,QAAQ;AACnE,IAAA,CAAC;IAED,OAAO;QACL,UAAU,EAAE,MAAM,CAChB,6B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AEhPpE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-column-chart.mjs","sources":["../../../src/lib/components/column-chart/column-chart.component.ts","../../../src/lib/components/column-chart/column-chart.component.html","../../../src/lib/components/column-chart/ids-group-ltd-ids-design-system-components-column-chart.ts"],"sourcesContent":["import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n formatPercent,\n shareOfTotal,\n chartRenderGate,\n CHART_RENDER_GATE_PASSED,\n CHART_SKELETON_COUNT,\n DsChartBase,\n readOnHostResize,\n skeletonMarkCount,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ChartDataTable,\n ChartStackMode,\n ChartThreshold,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n chartViewHeight,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type { ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport {\n ChartSkeletonComponent,\n ChartStatesComponent,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartMarkFill,\n ColumnChartPoint,\n ColumnChartSeries,\n} from './column-chart.types';\n\ninterface ResolvedColumnSeries {\n readonly key: string;\n readonly label: string;\n /** Null leaves each mark on the categorical palette by its own position. */\n readonly color: string | null;\n readonly fill: ChartMarkFill | null;\n /** The caller's own array, not a copy, so a clicked point comes back as the object handed in. */\n readonly points: readonly ColumnChartPoint[];\n}\n\nfunction isSeriesList(\n data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[],\n): data is readonly ColumnChartSeries[] {\n return data.length > 0 && 'data' in data[0];\n}\n\nconst COLUMN_GEOMETRY = {\n plotHeight: 200,\n axisGutter: 40,\n valueSpace: 20,\n columnWidthRatio: 0.8,\n};\n\nfunction sameColumnGeometry(\n previous: typeof COLUMN_GEOMETRY,\n next: typeof COLUMN_GEOMETRY,\n): boolean {\n return (\n previous.plotHeight === next.plotHeight &&\n previous.axisGutter === next.axisGutter &&\n previous.valueSpace === next.valueSpace &&\n previous.columnWidthRatio === next.columnWidthRatio\n );\n}\n\n/** Reads the four geometry tokens off the host. */\nfunction readColumnGeometry(host: HTMLElement): typeof COLUMN_GEOMETRY {\n const style = getComputedStyle(host);\n const length = (token: string, fallback: number): number => {\n const parsed = Number.parseFloat(style.getPropertyValue(token));\n\n // `>= 0` keeps a token deliberately set to zero.\n return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;\n };\n\n return {\n plotHeight: length(\n '--_column-chart-plot-height',\n COLUMN_GEOMETRY.plotHeight,\n ),\n axisGutter: length(\n '--_column-chart-axis-width',\n COLUMN_GEOMETRY.axisGutter,\n ),\n valueSpace: length(\n '--_column-chart-value-space',\n COLUMN_GEOMETRY.valueSpace,\n ),\n columnWidthRatio:\n length(\n '--_column-chart-column-width',\n COLUMN_GEOMETRY.columnWidthRatio * 100,\n ) / 100,\n };\n}\n\n@Component({\n selector: 'ds-column-chart',\n standalone: true,\n imports: [\n ChartSkeletonComponent,\n ChartComponent,\n ChartLegendComponent,\n ChartStatesComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_column-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }],\n})\nexport class ColumnChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n /** One column per point, drawn in the order given, or one NAMED SERIES per entry, where every\n * category carries a column from each. The two forms are told apart by their shape. */\n readonly data = input<\n readonly ColumnChartPoint[] | readonly ColumnChartSeries[]\n >([]);\n\n /** How several series share one category's band. `'none'` (default) and `'grouped'` sit side\n * by side; `'stacked'` piles them; `'normalized'` piles then divides by the category's total. */\n readonly stack = input<ChartStackMode>('none');\n\n /** Reference lines and bands behind the columns; each widens the value axis and is named in the generated description. */\n readonly thresholds = input<readonly ChartThreshold[]>([]);\n\n /** Prints each column's value above the column. */\n readonly showValues = input(true, { transform: booleanAttribute });\n\n /** How many columns the loading skeleton draws before the data is known. */\n readonly skeletonCount = input(CHART_SKELETON_COUNT, {\n transform: (raw: unknown) => numberAttribute(raw, CHART_SKELETON_COUNT),\n });\n\n /** How many value-axis ticks to aim for; ticks snap to a round step. */\n readonly tickCount = input(5, { transform: numberAttribute });\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. Unset falls back to `DS_CONFIG.chart.dataTable`,\n * then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares the marks parts of one whole: each share appears on the tooltip's second line and in\n * the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The point clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly pointClicked = output<ColumnChartPoint>();\n\n /** Dims every OTHER mark while one is hovered or focused. Dimmed marks lose separation between\n * them (three series: worst pair dE 14.8 to 2.1 at `--ds-chart-dim-opacity` 0.3, measured 2026-09-13). */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one mark's entrance and the next; `0` turns it off. The step narrows to fit within 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n /** Whether a hovered or focused column opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Ids of the series the legend has switched off; their columns sink to the baseline. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. Off holds the axis where it\n * stands with every series shown. */\n readonly rescaleOnHide = input(true, { transform: booleanAttribute });\n\n /** Whether the legend switches series off. Off leaves it a plain key. */\n readonly legendFilters = input(false, { transform: booleanAttribute });\n\n /** What a legend control does. `'isolate'` shows one series and hides the rest (radios);\n * `'toggle'` hides one and leaves the rest (checkboxes). */\n readonly legendMode = input<'toggle' | 'isolate'>('isolate');\n\n /** Lets a press dragged across columns select their categories: a band, the sum and mean of every\n * column in it, and the rest faded. Escape or a press outside clears it. Off by default. */\n readonly selectRange = input(false, { transform: booleanAttribute });\n\n /** Answers the pointer on the axes: the category label in bold, a guide from the value axis and\n * the value there in a pill on the axis. On by default. */\n readonly showAxisReadout = input(true, { transform: booleanAttribute });\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip anchors: `'mark'` (default) is the column; `'cell'` is the full-height category cell. */\n readonly tooltipAnchor = input<'mark' | 'cell'>('mark');\n\n /** Keeps the panel clear of the value printed above the column. */\n protected readonly valueClearance = computed(() =>\n this.showValues() ? 18 : 0,\n );\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly geometry = readOnHostResize(\n inject<ElementRef<HTMLElement>>(ElementRef),\n readColumnGeometry,\n COLUMN_GEOMETRY,\n sameColumnGeometry,\n );\n\n protected readonly viewHeightPx = computed(\n () =>\n `${chartViewHeight(this.geometry().plotHeight, this.geometry().valueSpace)}px`,\n );\n\n protected readonly seriesRefs = viewChildren(ColumnSeriesComponent);\n\n protected readonly pinnedSeries = computed(\n () =>\n this.seriesRefs().find((series) => series.activeMark.pinned()) ?? null,\n );\n\n protected readonly resolvedSeries = computed<readonly ResolvedColumnSeries[]>(\n () => {\n const given = this.data();\n if (!isSeriesList(given)) {\n return [\n { key: 'series', label: '', color: null, fill: null, points: given },\n ];\n }\n\n return given.map((series, index) => ({\n key: series.id,\n label: series.label,\n color:\n series.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n fill: series.fill ?? null,\n points: series.data,\n }));\n },\n );\n\n protected readonly slotCount = computed(() =>\n this.stack() === 'stacked' || this.stack() === 'normalized'\n ? 1\n : this.resolvedSeries().length,\n );\n\n // A hidden series piles as zeros, so the rest settle onto each other and it sinks where it stood.\n private readonly offsets = computed(() => {\n const hidden = this.hiddenSeries();\n\n return stackOffsets(\n this.resolvedSeries().map((series) =>\n series.points.map((point) =>\n hidden.includes(series.key) ? 0 : point.value,\n ),\n ),\n this.stack(),\n );\n });\n\n // The hidden series pile as zeros above, so the held axis has to come from the pile with all shown.\n protected readonly heldExtent = computed(() => {\n if (this.rescaleOnHide()) {\n return { min: null, max: null };\n }\n const edges = stackOffsets(\n this.resolvedSeries().map((series) =>\n series.points.map((point) => point.value),\n ),\n this.stack(),\n ).flatMap((spans) => spans.flatMap((span) => [span.from, span.to]));\n\n return { min: Math.min(0, ...edges), max: Math.max(0, ...edges) };\n });\n\n protected isHidden(key: string): boolean {\n return this.hiddenSeries().includes(key);\n }\n\n // Under `dimOthers` a hovered column singles out its series as a legend item does, so both fade the rest.\n protected readonly spotlitSeries = computed(() => {\n if (this.highlightedSeries() !== null || !this.dimOthers()) {\n return this.highlightedSeries();\n }\n const hovered = this.seriesRefs().findIndex(\n (series) => series.activeMark.index() >= 0,\n );\n\n return this.resolvedSeries()[hovered]?.key ?? null;\n });\n\n protected offsetsFor(index: number): readonly ChartStackOffset[] {\n return this.offsets()[index] ?? [];\n }\n\n protected readonly categories = computed(() =>\n this.resolvedSeries()\n .reduce<readonly ColumnChartPoint[]>(\n (longest, series) =>\n series.points.length > longest.length ? series.points : longest,\n [],\n )\n .map((point) => point.label),\n );\n\n protected readonly multiSeries = computed(\n () => this.resolvedSeries().length > 1,\n );\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((series) => ({\n id: series.key,\n label: series.label,\n color: series.color ?? '',\n })),\n );\n\n protected readonly axisFormat = computed<ChartValueFormat | null>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1, this.defaults.locale)\n : this.valueFormat(),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n ...(this.multiSeries() ? [this.intl().chart.seriesColumn] : []),\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n ...(this.partOfWhole() ? [this.intl().chart.shareColumn] : []),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.key,\n cells: [\n ...(this.multiSeries() ? [row.series] : []),\n row.label,\n row.formattedValue,\n ...(this.partOfWhole() ? [row.share] : []),\n ],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.resolvedSeries().flatMap((series) => {\n const values = series.points.map((point) => point.value);\n\n return series.points.map((point, index) => ({\n key: `${series.key}:${point.id ?? index}`,\n series: series.label,\n label: point.label,\n formattedValue: format(point.value, 'tooltip'),\n share: this.partOfWhole()\n ? shareOfTotal(values, index, this.defaults.locale)\n : '',\n }));\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n this.resolvedSeries()\n .map((series, index) =>\n describeSeries(\n this.intl().chart,\n series.label || this.caption() || this.intl().chart.title,\n series.points.map((point) => ({\n label: point.label,\n value: point.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n // Reference lines belong to the plot, so they are named once.\n index === 0 ? this.thresholds() : [],\n ),\n )\n .join(' '),\n );\n\n protected readonly isEmpty = computed(() => this.categories().length === 0);\n\n protected readonly skeletonMarks = computed(() =>\n skeletonMarkCount(this.categories().length, this.skeletonCount()),\n );\n}\n","<figure\n class=\"column-chart\"\n dsChartStates\n morphGrowth=\"up\"\n messageAxes\n [pinned]=\"!!pinnedSeries()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"pinnedSeries()?.activeMark?.release()\">\n</figure>\n\n<ng-template #skeleton>\n <ds-chart-skeleton\n [count]=\"skeletonMarks()\"\n [plotHeight]=\"geometry().plotHeight + 'px'\"\n [valueSpace]=\"geometry().valueSpace\"\n [axisGutter]=\"geometry().axisGutter\"\n [shimmer]=\"loading()\" />\n</ng-template>\n\n<ng-template #body>\n <ds-chart\n frame=\"none\"\n cursor=\"none\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [selectRange]=\"selectRange()\"\n [showAxisReadout]=\"showAxisReadout()\"\n [summary]=\"accessibleName()\"\n [rescaleOnHide]=\"rescaleOnHide()\"\n [min]=\"heldExtent().min\"\n [max]=\"heldExtent().max\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n @if (thresholds().length) {\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n }\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"spotlitSeries()\"\n [hidden]=\"isHidden(series.key)\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n @if (thresholds().length) {\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n }\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"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