@ids-group-ltd/ids-design-system 0.14.5 → 0.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +161 -12
- package/components.md +21 -19
- package/design-system.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -0
- package/docs/agent/charts/ds-column-chart.md +1 -0
- package/docs/agent/charts/ds-config.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/forms/ds-autocomplete.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-select.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/forms/filter-item-directive.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 +2 -2
- package/docs/agent/foundations/grid.md +8 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- 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 +2 -2
- 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 +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- 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 +169 -3
- 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 +261 -16
- 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 +3 -3
- 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 +2 -2
- 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 +16 -13
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +4 -3
- 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 +4 -3
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +22 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +9 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
- 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 +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
- 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 +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- 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 +4 -4
- 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.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +16 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- 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 +4 -4
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -2
- 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 +16 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/migrations/0.14.5.json +3 -3
- package/migrations/0.14.6.json +176 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +29 -16
- package/styles/_chart-frame.scss +1 -50
- package/styles/_field-state.scss +13 -1
- package/styles/_focus.scss +45 -33
- package/styles/_link.scss +12 -0
- package/styles/_press.scss +1 -1
- package/styles/_tokens-charts.scss +1 -1
- package/styles/_tokens.scss +2 -0
- package/styles/ds.scss +2 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +64 -3
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +35 -2
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +3 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, output, numberAttribute, computed, model, signal, contentChild, viewChild, inject, ElementRef,
|
|
3
|
-
import { DsChartBase, chartRenderGate, CHART_SERIES_COLORS, formatPercent, describeSeries, CHART_RENDER_GATE_PASSED } from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
+
import { input, booleanAttribute, output, numberAttribute, computed, model, signal, contentChild, viewChild, inject, ElementRef, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { DsChartBase, chartRenderGate, CHART_SERIES_COLORS, formatPercent, describeSeries, readOnHostResize, CHART_RENDER_GATE_PASSED } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
5
5
|
import { stackOffsets, ChartComponent, chartViewHeight, CHART_DEFAULT_VALUE_SPACE, LineSeriesComponent, SeriesAnnotationComponent } from '@ids-group-ltd/ids-design-system/components/chart';
|
|
6
6
|
import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
7
7
|
import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
8
|
+
import { CHART_UNPIN_DRAWN_BY_HOST, ChartStatesComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
8
9
|
|
|
9
10
|
const LINE_CHART_DEFAULT_TICK_COUNT = 5;
|
|
10
11
|
/** One reading per category. A longer series loses its tail and a shorter one ends early rather than
|
|
@@ -47,6 +48,10 @@ function paletteIndexFor(slot, index, paletteSize) {
|
|
|
47
48
|
|
|
48
49
|
/** Default of `--ds-line-chart-plot-height`, used before the first style read and under SSR. */
|
|
49
50
|
const DEFAULT_PLOT_HEIGHT = 240;
|
|
51
|
+
function readPlotHeight(host) {
|
|
52
|
+
const parsed = Number.parseFloat(getComputedStyle(host).getPropertyValue('--_line-chart-plot-height'));
|
|
53
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_PLOT_HEIGHT;
|
|
54
|
+
}
|
|
50
55
|
const SERIES_DASH_ARRAYS = [
|
|
51
56
|
'none',
|
|
52
57
|
'7 4',
|
|
@@ -191,8 +196,9 @@ class LineChartComponent extends DsChartBase {
|
|
|
191
196
|
// marker-only or silent tooltip needs it off.
|
|
192
197
|
plotCursor = computed(() => this.tooltip() === 'axis' ? 'category' : 'none', ...(ngDevMode ? [{ debugName: "plotCursor" }] : /* istanbul ignore next */ []));
|
|
193
198
|
tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
194
|
-
/** Where the tooltip anchors
|
|
195
|
-
* the
|
|
199
|
+
/** Where the tooltip anchors while `tooltip` is `'axis'` (default); with `'item'` the panel
|
|
200
|
+
* hangs on the marker and this does nothing. `'reading'` (default) is the highest reading in the
|
|
201
|
+
* category, so the panel stays put within one band; `'pointer'` follows the cursor. */
|
|
196
202
|
tooltipAnchor = input('reading', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
|
|
197
203
|
dataTableColumns = computed(() => [
|
|
198
204
|
this.intl().chart.categoryColumn,
|
|
@@ -284,7 +290,7 @@ class LineChartComponent extends DsChartBase {
|
|
|
284
290
|
? asked
|
|
285
291
|
: derived;
|
|
286
292
|
}
|
|
287
|
-
plotHeight =
|
|
293
|
+
plotHeight = readOnHostResize(inject(ElementRef), readPlotHeight, DEFAULT_PLOT_HEIGHT, Object.is);
|
|
288
294
|
viewHeightPx = computed(() => `${chartViewHeight(this.plotHeight(), CHART_DEFAULT_VALUE_SPACE)}px`, ...(ngDevMode ? [{ debugName: "viewHeightPx" }] : /* istanbul ignore next */ []));
|
|
289
295
|
onPointClicked(reading) {
|
|
290
296
|
const series = this.series().find((candidate) => candidate.id === reading.series.id);
|
|
@@ -298,22 +304,15 @@ class LineChartComponent extends DsChartBase {
|
|
|
298
304
|
value: reading.value,
|
|
299
305
|
});
|
|
300
306
|
}
|
|
301
|
-
constructor() {
|
|
302
|
-
super();
|
|
303
|
-
const host = inject(ElementRef);
|
|
304
|
-
afterNextRender(() => {
|
|
305
|
-
const parsed = Number.parseFloat(getComputedStyle(host.nativeElement).getPropertyValue('--_line-chart-plot-height'));
|
|
306
|
-
if (Number.isFinite(parsed) && parsed > 0) {
|
|
307
|
-
this.plotHeight.set(parsed);
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
307
|
isEmpty = computed(() => this.series().length === 0 || this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
312
308
|
showLegend = computed(() => this.series().length > 1, ...(ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []));
|
|
313
309
|
noVisibleSeries = computed(() => this.series().length > 0 && this.visibleSeries().length === 0, ...(ngDevMode ? [{ debugName: "noVisibleSeries" }] : /* istanbul ignore next */ []));
|
|
314
310
|
skeletonSeries = computed(() => Array.from({ length: Math.max(this.series().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonSeries" }] : /* istanbul ignore next */ []));
|
|
315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, deps:
|
|
316
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineChartComponent, isStandalone: true, selector: "ds-line-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, yAxisMode: { classPropertyName: "yAxisMode", publicName: "yAxisMode", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, yAxisLabel: { classPropertyName: "yAxisLabel", publicName: "yAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", 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 }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", 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 }, noVisibleSeriesText: { classPropertyName: "noVisibleSeriesText", publicName: "noVisibleSeriesText", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", 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", hiddenSeries: "hiddenSeriesChange" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_line-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "plot", first: true, predicate: ChartComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</figure>\n", styles: [":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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){: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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.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{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-skeleton-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-plot-height));--_line-chart-message-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-view-height))}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--ds-chart-bg-color));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-message-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "tickCount", "min", "max", "cursor", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel", "tooltipTemplate", "tooltipExtraGap"], exportAs: ["dsChart"] }, { kind: "component", type: LineSeriesComponent, selector: "g[dsLineSeries]", inputs: ["data", "showMarkers", "outline", "interactive", "pinOnClick", "dimOthers", "highlighted", "patterns", "stacked", "staggerMs", "gaps", "curve", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat"], outputs: ["pointClicked"], exportAs: ["dsLineSeries"] }, { kind: "component", type: SeriesAnnotationComponent, selector: "g[dsSeriesAnnotation]", inputs: ["annotations"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { 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 });
|
|
311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
312
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineChartComponent, isStandalone: true, selector: "ds-line-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, yAxisMode: { classPropertyName: "yAxisMode", publicName: "yAxisMode", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, yAxisLabel: { classPropertyName: "yAxisLabel", publicName: "yAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", 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 }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", 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 }, noVisibleSeriesText: { classPropertyName: "noVisibleSeriesText", publicName: "noVisibleSeriesText", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", 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", hiddenSeries: "hiddenSeriesChange" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_line-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "plot", first: true, predicate: ChartComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"line-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"pinnedCategory()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"loading() || !renderReady()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"releaseCategoryPin()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n @if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</ng-template>\n", styles: [":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{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-skeleton-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-plot-height));--_line-chart-message-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-view-height))}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--ds-chart-bg-color));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-message-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}:host{--_chart-message-height: var(--_line-chart-message-height)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "tickCount", "min", "max", "cursor", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel", "tooltipTemplate", "tooltipExtraGap"], exportAs: ["dsChart"] }, { kind: "component", type: LineSeriesComponent, selector: "g[dsLineSeries]", inputs: ["data", "showMarkers", "outline", "interactive", "pinOnClick", "dimOthers", "highlighted", "patterns", "stacked", "staggerMs", "gaps", "curve", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat"], outputs: ["pointClicked"], exportAs: ["dsLineSeries"] }, { kind: "component", type: SeriesAnnotationComponent, selector: "g[dsSeriesAnnotation]", inputs: ["annotations"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "empty", "emptyText", "messageAxes", "skeleton", "body", "message"], outputs: ["release"] }], viewProviders: [
|
|
313
|
+
{ provide: CHART_RENDER_GATE_PASSED, useValue: true },
|
|
314
|
+
{ provide: CHART_UNPIN_DRAWN_BY_HOST, useValue: true },
|
|
315
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
317
316
|
}
|
|
318
317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
319
318
|
type: Component,
|
|
@@ -324,11 +323,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
324
323
|
SeriesAnnotationComponent,
|
|
325
324
|
ChartLegendComponent,
|
|
326
325
|
ChartDataTableComponent,
|
|
326
|
+
ChartStatesComponent,
|
|
327
327
|
], host: {
|
|
328
328
|
'[class.framed]': "frameResolved() === 'auto'",
|
|
329
329
|
'[style.--_line-chart-view-height]': 'viewHeightPx()',
|
|
330
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [{ provide: CHART_RENDER_GATE_PASSED, useValue: true }], template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</figure>\n", styles: [":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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){: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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.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{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-skeleton-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-plot-height));--_line-chart-message-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-view-height))}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--ds-chart-bg-color));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-message-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
|
|
331
|
-
|
|
330
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
|
|
331
|
+
{ provide: CHART_RENDER_GATE_PASSED, useValue: true },
|
|
332
|
+
{ provide: CHART_UNPIN_DRAWN_BY_HOST, useValue: true },
|
|
333
|
+
], template: "<figure\n class=\"line-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"pinnedCategory()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"loading() || !renderReady()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"releaseCategoryPin()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n @if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</ng-template>\n", styles: [":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{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-skeleton-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-plot-height));--_line-chart-message-height: var(--ds-line-chart-placeholder-height, var(--_line-chart-view-height))}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--ds-chart-bg-color));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-message-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}:host{--_chart-message-height: var(--_line-chart-message-height)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}\n"] }]
|
|
334
|
+
}], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: false }] }], yAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisMode", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], yAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisLabel", required: false }] }], secondaryAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisLabel", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", 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 }] }], noVisibleSeriesText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noVisibleSeriesText", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", 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 }] }], plot: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ChartComponent), { isSignal: true }] }] } });
|
|
332
335
|
|
|
333
336
|
/**
|
|
334
337
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-line-chart.mjs","sources":["../../../src/lib/components/line-chart/line-chart.math.ts","../../../src/lib/components/line-chart/line-chart.component.ts","../../../src/lib/components/line-chart/line-chart.component.html","../../../src/lib/components/line-chart/ids-group-ltd-ids-design-system-components-line-chart.ts"],"sourcesContent":["import type { ChartGaps } from '@ids-group-ltd/ids-design-system/core';\n\nexport type { LinePoint } from '@ids-group-ltd/ids-design-system/components';\n\nexport const LINE_CHART_DEFAULT_TICK_COUNT = 5;\n\n/** One reading per category. A longer series loses its tail and a shorter one ends early rather than\n * throwing. Anything that is not a finite number is a missing reading, so `NaN` and `Infinity`\n * follow the `gaps` policy rather than reaching a coordinate. */\nexport function alignSeriesValues(\n data: readonly (number | null)[],\n categoryCount: number,\n gaps: ChartGaps,\n): (number | null)[] {\n const length =\n Number.isFinite(categoryCount) && categoryCount > 0\n ? Math.floor(categoryCount)\n : 0;\n const aligned: (number | null)[] = [];\n for (let index = 0; index < length; index++) {\n const raw = data[index];\n const reading =\n typeof raw === 'number' && Number.isFinite(raw) ? raw : null;\n aligned.push(reading === null && gaps === 'zero' ? 0 : reading);\n }\n\n return aligned;\n}\n\n/** Largest finite reading across the given series, or zero. Never negative: `ds-chart` only raises\n * its domain to this ceiling, so a negative would pin an axis below its own data. */\nexport function domainMaxOf(\n valueGroups: readonly (readonly (number | null)[])[],\n): number {\n let max = 0;\n for (const values of valueGroups) {\n for (const value of values) {\n if (value !== null && Number.isFinite(value) && value > max) {\n max = value;\n }\n }\n }\n\n return max;\n}\n\nexport function paletteIndexFor(\n slot: number | undefined,\n index: number,\n paletteSize: number,\n): number {\n if (!Number.isFinite(paletteSize) || paletteSize < 1) {\n return 0;\n }\n const chosen =\n slot !== undefined && Number.isFinite(slot) && slot >= 1\n ? Math.floor(slot) - 1\n : index;\n\n return ((chosen % paletteSize) + paletteSize) % paletteSize;\n}\n","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 afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n chartRenderGate,\n CHART_RENDER_GATE_PASSED,\n DsChartBase,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n CHART_DEFAULT_VALUE_SPACE,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n chartViewHeight,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartAnnotation,\n LineSeriesData,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport { formatPercent } from '@ids-group-ltd/ids-design-system/components';\nimport { stackOffsets } from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartDataTable,\n ChartValueFormat,\n ChartAxisMode,\n ChartGaps,\n ChartCurve,\n} from '@ids-group-ltd/ids-design-system/core';\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 type {\n ChartTooltipContext,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n LINE_CHART_DEFAULT_TICK_COUNT,\n alignSeriesValues,\n domainMaxOf,\n paletteIndexFor,\n} from './line-chart.math';\n\n/** Default of `--ds-line-chart-plot-height`, used before the first style read and under SSR. */\nconst DEFAULT_PLOT_HEIGHT = 240;\nimport type {\n LineChartAnnotation,\n LineChartStack,\n LineChartReading,\n LineChartSeries,\n} from './line-chart.types';\n\ninterface ResolvedSeries {\n readonly series: LineChartSeries;\n readonly values: readonly (number | null)[];\n /** Where this series' band starts on the value axis, per category. `null` while unstacked. */\n readonly lowerValues: readonly (number | null)[] | null;\n readonly onSecondaryAxis: boolean;\n readonly color: string;\n /** `null` while `patterns` is off. */\n readonly dash: string | null;\n}\n\nconst SERIES_DASH_ARRAYS = [\n 'none',\n '7 4',\n '2 3',\n '11 4 2 4',\n '1 4',\n '8 3 2 3',\n '4 2',\n '14 5',\n];\n\n@Component({\n selector: 'ds-line-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n ChartLegendComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_line-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 LineChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n /** X labels. Every series' `data` is read against this length. */\n readonly categories = input<readonly string[]>([]);\n\n /** One line per entry, read against `categories`: a longer series loses its tail, a shorter one ends early. */\n readonly series = input<readonly LineChartSeries[]>([]);\n\n /** How a secondary axis relates to the primary one. */\n readonly yAxisMode = input<ChartAxisMode>('aligned');\n\n /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */\n readonly showMarkers = input(true, { transform: booleanAttribute });\n\n /** Lays the lines and their markers on a band of the background colour. */\n readonly outline = input(true, { transform: booleanAttribute });\n\n /** Labels pinned over their readings. Drawn `aria-hidden`; their text is appended to the accessible name. */\n readonly annotations = input<readonly LineChartAnnotation[]>([]);\n\n /** The point clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly pointClicked = output<LineChartReading>();\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 /** What a `null` reading draws. The default `'break'` does not assert a missing reading is zero. */\n readonly gaps = input<ChartGaps>('break');\n\n /** How the line joins its readings. `'linear'` asserts nothing between readings; a curve does. */\n readonly curve = input<ChartCurve>('linear');\n\n /** How several series share the value axis. Stacking runs per axis. */\n readonly stack = input<LineChartStack>('none');\n\n /** Names the first axis's unit beside it. */\n readonly yAxisLabel = input<string | null>(null);\n\n /** `yAxisLabel` for the second axis. */\n readonly secondaryAxisLabel = input<string | null>(null);\n\n /** How many value-axis ticks to aim for; ticks snap to a round step. */\n readonly tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\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 /** Pins the primary value axis maximum so separate renders are comparable; `maxSecondary` pins\n * the second. Null keeps the derived axis. A maximum below the data does not clip it. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Pins the secondary value axis. See `max`. */\n readonly maxSecondary = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n protected readonly resolvedSeries = computed<readonly ResolvedSeries[]>(\n () => {\n const categoryCount = this.categories().length;\n const gaps = this.gaps();\n\n const patterns = this.patterns();\n\n return this.series().map((series, index) => {\n const slot = paletteIndexFor(\n series.slot,\n index,\n CHART_SERIES_COLORS.length,\n );\n\n return {\n series,\n values: alignSeriesValues(series.data, categoryCount, gaps),\n lowerValues: null,\n onSecondaryAxis: series.axis === 'secondary',\n color: CHART_SERIES_COLORS[slot],\n dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,\n };\n });\n },\n );\n\n /** Ids of the series the legend has switched off. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. */\n readonly rescaleOnHide = input(false, { 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 /** Shown in place of the plot once the legend has switched every series off. Unset falls back to\n * `DS_INTL.chart.noVisibleSeries`. */\n readonly noVisibleSeriesText = input<string | null>(null);\n\n readonly noVisibleSeriesTextResolved = computed(\n () => this.noVisibleSeriesText() ?? this.intl().chart.noVisibleSeries,\n );\n\n /** Gives every series a dash pattern, so lines differ by shape as well as colour. */\n readonly patterns = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one series' entrance and the next; `0` turns it off. The step narrows\n * so the last series still starts within the stagger budget. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n /** Every series with its band's span, stacked per axis. Hiding a series does not re-pile the\n * rest. A `null` stays a hole and adds nothing to the pile. */\n protected readonly stackedSeries = computed<readonly ResolvedSeries[]>(() => {\n const mode = this.stack();\n const entries = this.resolvedSeries();\n if (mode === 'none') {\n return entries;\n }\n\n const spans = new Map<ResolvedSeries, { from: number; to: number }[]>();\n for (const secondary of [false, true]) {\n const onThisAxis = entries.filter(\n (entry) => entry.onSecondaryAxis === secondary,\n );\n const offsets = stackOffsets(\n onThisAxis.map((entry) => entry.values.map((value) => value ?? 0)),\n mode,\n );\n onThisAxis.forEach((entry, index) =>\n spans.set(entry, [...offsets[index]]),\n );\n }\n\n return entries.map((entry) => {\n const span = spans.get(entry);\n if (!span) {\n return entry;\n }\n\n return {\n ...entry,\n values: entry.values.map((value, category) =>\n value === null ? null : span[category].to,\n ),\n lowerValues: entry.values.map((value, category) =>\n value === null ? null : span[category].from,\n ),\n };\n });\n });\n\n protected readonly visibleSeries = computed<readonly ResolvedSeries[]>(() => {\n const hidden = this.hiddenSeries();\n\n return this.stackedSeries().filter(\n (entry) => !hidden.includes(entry.series.id),\n );\n });\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n /** A normalized stack draws shares, so the axis prints percentages; tooltip and table values stay\n * the reading. */\n protected readonly axisFormat = computed<ChartValueFormat>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1, this.defaults.locale)\n : this.valueFormatResolved(),\n );\n\n private readonly axisTint = computed(() => {\n if (!this.hasSecondaryAxis() || this.yAxisMode() === 'split') {\n return { primary: null, secondary: null };\n }\n const find = (onSecondaryAxis: boolean) =>\n this.visibleSeries().find(\n (entry) => entry.onSecondaryAxis === onSecondaryAxis,\n )?.color ?? null;\n\n return { primary: find(false), secondary: find(true) };\n });\n\n protected readonly primaryAxisFill = computed(() => this.axisTint().primary);\n\n protected readonly secondaryAxisFill = computed(\n () => this.axisTint().secondary,\n );\n\n protected readonly stacksSeries = computed(() => this.stack() !== 'none');\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the category\n * under the pointer; `'item'` names only the marker itself. */\n readonly tooltip = input<ChartTooltipTrigger>('axis');\n\n // The category cursor is the one hover area over the plot and names every series, so a\n // marker-only or silent tooltip needs it off.\n protected readonly plotCursor = computed(() =>\n this.tooltip() === 'axis' ? 'category' : 'none',\n );\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip anchors. `'reading'` (default) is the highest reading in the category, so\n * the panel stays put within one band; `'pointer'` follows the cursor. */\n readonly tooltipAnchor = input<'reading' | 'pointer'>('reading');\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n this.intl().chart.categoryColumn,\n ...this.resolvedSeries().map((entry) => entry.series.label),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.category,\n cells: [row.category, ...row.cells],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.categories().map((category, index) => ({\n category,\n cells: this.resolvedSeries().map((entry) => {\n const value = entry.values[index];\n\n return value === null || value === undefined\n ? '—'\n : format(value, 'tooltip');\n }),\n }));\n });\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n\n const words = this.intl().chart;\n const title = this.caption() ?? words.title;\n const format = (value: number) =>\n this.valueFormatResolved()(value, 'tooltip');\n const categories = this.categories();\n const sentences = this.resolvedSeries().map((entry) =>\n describeSeries(\n words,\n entry.series.label,\n entry.values.flatMap((value, index) =>\n value === null ? [] : [{ label: categories[index] ?? '', value }],\n ),\n format,\n false,\n ),\n );\n const pointer =\n this.dataTableResolved() === 'none' ? '' : ` ${words.tableFollows}`;\n // Annotation text sits inside an `aria-hidden` svg, so it reaches assistive tech only through the name.\n const notes = this.markAnnotations().map((note) => note.label);\n const noted = notes.length ? ` ${words.noted(notes)}` : '';\n\n return sentences.length === 0\n ? describeSeries(\n words,\n title,\n [],\n format,\n this.dataTableResolved() !== 'none',\n )\n : `${title}. ${sentences.join(' ')}${noted}${pointer}`;\n });\n\n private readonly plot = viewChild(ChartComponent);\n\n protected readonly pinnedCategory = computed(\n () => this.plot()?.cursorPinned() ?? false,\n );\n\n protected releaseCategoryPin(): void {\n this.plot()?.releaseCursor();\n }\n\n protected readonly markSeries = computed<readonly LineSeriesData[]>(() =>\n this.visibleSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n data: entry.values,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n area: entry.series.area,\n lower: entry.lowerValues ?? undefined,\n color: entry.color,\n })),\n );\n\n protected readonly dashPatterns = computed<readonly string[]>(() =>\n this.visibleSeries().map((entry) => entry.dash ?? ''),\n );\n\n protected readonly markAnnotations = computed<readonly ChartAnnotation[]>(\n () =>\n this.annotations().flatMap((annotation) => {\n const visible = this.visibleSeries();\n const entry = annotation.seriesId\n ? visible.find(\n (candidate) => candidate.series.id === annotation.seriesId,\n )\n : visible[0];\n const value = entry?.values[annotation.categoryIndex];\n if (!entry || typeof value !== 'number') {\n return [];\n }\n\n return [\n {\n categoryIndex: annotation.categoryIndex,\n value,\n label: annotation.label,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n },\n ];\n }),\n );\n\n protected readonly hasSecondaryAxis = computed(() =>\n this.visibleSeries().some((entry) => entry.onSecondaryAxis),\n );\n\n /** The ceiling handed to the container, which only raises its domain to it. Unless `rescaleOnHide`,\n * it spans every series, so hiding one does not move the gridlines. */\n protected readonly axisMax = computed(() =>\n this.rescaleOnHide() ? this.max() : this.ceilingOf(false, this.max()),\n );\n\n protected readonly axisMaxSecondary = computed(() =>\n this.rescaleOnHide()\n ? this.maxSecondary()\n : this.ceilingOf(true, this.maxSecondary()),\n );\n\n private ceilingOf(onSecondaryAxis: boolean, asked: number | null): number {\n const derived = domainMaxOf(\n this.stackedSeries()\n .filter((entry) => entry.onSecondaryAxis === onSecondaryAxis)\n .map((entry) => entry.values),\n );\n\n return asked !== null && Number.isFinite(asked) && asked > derived\n ? asked\n : derived;\n }\n\n protected readonly plotHeight = signal(DEFAULT_PLOT_HEIGHT);\n\n protected readonly viewHeightPx = computed(\n () => `${chartViewHeight(this.plotHeight(), CHART_DEFAULT_VALUE_SPACE)}px`,\n );\n\n protected onPointClicked(reading: {\n series: LineSeriesData;\n categoryIndex: number;\n value: number;\n }): void {\n const series = this.series().find(\n (candidate) => candidate.id === reading.series.id,\n );\n if (!series) {\n return;\n }\n this.pointClicked.emit({\n series,\n categoryIndex: reading.categoryIndex,\n category: this.categories()[reading.categoryIndex] ?? '',\n value: reading.value,\n });\n }\n\n constructor() {\n super();\n const host = inject<ElementRef<HTMLElement>>(ElementRef);\n afterNextRender(() => {\n const parsed = Number.parseFloat(\n getComputedStyle(host.nativeElement).getPropertyValue(\n '--_line-chart-plot-height',\n ),\n );\n if (Number.isFinite(parsed) && parsed > 0) {\n this.plotHeight.set(parsed);\n }\n });\n }\n\n protected readonly isEmpty = computed(\n () => this.series().length === 0 || this.categories().length === 0,\n );\n\n protected readonly showLegend = computed(() => this.series().length > 1);\n\n protected readonly noVisibleSeries = computed(\n () => this.series().length > 0 && this.visibleSeries().length === 0,\n );\n\n protected readonly skeletonSeries = computed(() =>\n Array.from({ length: Math.max(this.series().length, 3) }),\n );\n}\n","<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAIO,MAAM,6BAA6B,GAAG,CAAC;AAE9C;;AAEkE;SAClD,iBAAiB,CAC/B,IAAgC,EAChC,aAAqB,EACrB,IAAe,EAAA;IAEf,MAAM,MAAM,GACV,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,aAAa,GAAG;AAChD,UAAE,IAAI,CAAC,KAAK,CAAC,aAAa;UACxB,CAAC;IACP,MAAM,OAAO,GAAsB,EAAE;AACrC,IAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AAC3C,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACvB,MAAM,OAAO,GACX,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI;AAC9D,QAAA,OAAO,CAAC,IAAI,CAAC,OAAO,KAAK,IAAI,IAAI,IAAI,KAAK,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC;IACjE;AAEA,IAAA,OAAO,OAAO;AAChB;AAEA;AACsF;AAChF,SAAU,WAAW,CACzB,WAAoD,EAAA;IAEpD,IAAI,GAAG,GAAG,CAAC;AACX,IAAA,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;AAChC,QAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;AAC1B,YAAA,IAAI,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,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,gBAAgB,4LAyEc,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnalD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-line-chart.mjs","sources":["../../../src/lib/components/line-chart/line-chart.math.ts","../../../src/lib/components/line-chart/line-chart.component.ts","../../../src/lib/components/line-chart/line-chart.component.html","../../../src/lib/components/line-chart/ids-group-ltd-ids-design-system-components-line-chart.ts"],"sourcesContent":["import type { ChartGaps } from '@ids-group-ltd/ids-design-system/core';\n\nexport type { LinePoint } from '@ids-group-ltd/ids-design-system/components';\n\nexport const LINE_CHART_DEFAULT_TICK_COUNT = 5;\n\n/** One reading per category. A longer series loses its tail and a shorter one ends early rather than\n * throwing. Anything that is not a finite number is a missing reading, so `NaN` and `Infinity`\n * follow the `gaps` policy rather than reaching a coordinate. */\nexport function alignSeriesValues(\n data: readonly (number | null)[],\n categoryCount: number,\n gaps: ChartGaps,\n): (number | null)[] {\n const length =\n Number.isFinite(categoryCount) && categoryCount > 0\n ? Math.floor(categoryCount)\n : 0;\n const aligned: (number | null)[] = [];\n for (let index = 0; index < length; index++) {\n const raw = data[index];\n const reading =\n typeof raw === 'number' && Number.isFinite(raw) ? raw : null;\n aligned.push(reading === null && gaps === 'zero' ? 0 : reading);\n }\n\n return aligned;\n}\n\n/** Largest finite reading across the given series, or zero. Never negative: `ds-chart` only raises\n * its domain to this ceiling, so a negative would pin an axis below its own data. */\nexport function domainMaxOf(\n valueGroups: readonly (readonly (number | null)[])[],\n): number {\n let max = 0;\n for (const values of valueGroups) {\n for (const value of values) {\n if (value !== null && Number.isFinite(value) && value > max) {\n max = value;\n }\n }\n }\n\n return max;\n}\n\nexport function paletteIndexFor(\n slot: number | undefined,\n index: number,\n paletteSize: number,\n): number {\n if (!Number.isFinite(paletteSize) || paletteSize < 1) {\n return 0;\n }\n const chosen =\n slot !== undefined && Number.isFinite(slot) && slot >= 1\n ? Math.floor(slot) - 1\n : index;\n\n return ((chosen % paletteSize) + paletteSize) % paletteSize;\n}\n","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 viewChild,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n chartRenderGate,\n CHART_RENDER_GATE_PASSED,\n DsChartBase,\n readOnHostResize,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n CHART_DEFAULT_VALUE_SPACE,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n chartViewHeight,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartAnnotation,\n LineSeriesData,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport { formatPercent } from '@ids-group-ltd/ids-design-system/components';\nimport { stackOffsets } from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartDataTable,\n ChartValueFormat,\n ChartAxisMode,\n ChartGaps,\n ChartCurve,\n} from '@ids-group-ltd/ids-design-system/core';\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 CHART_UNPIN_DRAWN_BY_HOST,\n ChartStatesComponent,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartTooltipContext,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n LINE_CHART_DEFAULT_TICK_COUNT,\n alignSeriesValues,\n domainMaxOf,\n paletteIndexFor,\n} from './line-chart.math';\n\n/** Default of `--ds-line-chart-plot-height`, used before the first style read and under SSR. */\nconst DEFAULT_PLOT_HEIGHT = 240;\n\nfunction readPlotHeight(host: HTMLElement): number {\n const parsed = Number.parseFloat(\n getComputedStyle(host).getPropertyValue('--_line-chart-plot-height'),\n );\n\n return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_PLOT_HEIGHT;\n}\nimport type {\n LineChartAnnotation,\n LineChartStack,\n LineChartReading,\n LineChartSeries,\n} from './line-chart.types';\n\ninterface ResolvedSeries {\n readonly series: LineChartSeries;\n readonly values: readonly (number | null)[];\n /** Where this series' band starts on the value axis, per category. `null` while unstacked. */\n readonly lowerValues: readonly (number | null)[] | null;\n readonly onSecondaryAxis: boolean;\n readonly color: string;\n /** `null` while `patterns` is off. */\n readonly dash: string | null;\n}\n\nconst SERIES_DASH_ARRAYS = [\n 'none',\n '7 4',\n '2 3',\n '11 4 2 4',\n '1 4',\n '8 3 2 3',\n '4 2',\n '14 5',\n];\n\n@Component({\n selector: 'ds-line-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n ChartLegendComponent,\n ChartDataTableComponent,\n ChartStatesComponent,\n ],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_line-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [\n { provide: CHART_RENDER_GATE_PASSED, useValue: true },\n { provide: CHART_UNPIN_DRAWN_BY_HOST, useValue: true },\n ],\n})\nexport class LineChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n /** X labels. Every series' `data` is read against this length. */\n readonly categories = input<readonly string[]>([]);\n\n /** One line per entry, read against `categories`: a longer series loses its tail, a shorter one ends early. */\n readonly series = input<readonly LineChartSeries[]>([]);\n\n /** How a secondary axis relates to the primary one. */\n readonly yAxisMode = input<ChartAxisMode>('aligned');\n\n /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */\n readonly showMarkers = input(true, { transform: booleanAttribute });\n\n /** Lays the lines and their markers on a band of the background colour. */\n readonly outline = input(true, { transform: booleanAttribute });\n\n /** Labels pinned over their readings. Drawn `aria-hidden`; their text is appended to the accessible name. */\n readonly annotations = input<readonly LineChartAnnotation[]>([]);\n\n /** The point clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly pointClicked = output<LineChartReading>();\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 /** What a `null` reading draws. The default `'break'` does not assert a missing reading is zero. */\n readonly gaps = input<ChartGaps>('break');\n\n /** How the line joins its readings. `'linear'` asserts nothing between readings; a curve does. */\n readonly curve = input<ChartCurve>('linear');\n\n /** How several series share the value axis. Stacking runs per axis. */\n readonly stack = input<LineChartStack>('none');\n\n /** Names the first axis's unit beside it. */\n readonly yAxisLabel = input<string | null>(null);\n\n /** `yAxisLabel` for the second axis. */\n readonly secondaryAxisLabel = input<string | null>(null);\n\n /** How many value-axis ticks to aim for; ticks snap to a round step. */\n readonly tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\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 /** Pins the primary value axis maximum so separate renders are comparable; `maxSecondary` pins\n * the second. Null keeps the derived axis. A maximum below the data does not clip it. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Pins the secondary value axis. See `max`. */\n readonly maxSecondary = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n protected readonly resolvedSeries = computed<readonly ResolvedSeries[]>(\n () => {\n const categoryCount = this.categories().length;\n const gaps = this.gaps();\n\n const patterns = this.patterns();\n\n return this.series().map((series, index) => {\n const slot = paletteIndexFor(\n series.slot,\n index,\n CHART_SERIES_COLORS.length,\n );\n\n return {\n series,\n values: alignSeriesValues(series.data, categoryCount, gaps),\n lowerValues: null,\n onSecondaryAxis: series.axis === 'secondary',\n color: CHART_SERIES_COLORS[slot],\n dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,\n };\n });\n },\n );\n\n /** Ids of the series the legend has switched off. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. */\n readonly rescaleOnHide = input(false, { 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 /** Shown in place of the plot once the legend has switched every series off. Unset falls back to\n * `DS_INTL.chart.noVisibleSeries`. */\n readonly noVisibleSeriesText = input<string | null>(null);\n\n readonly noVisibleSeriesTextResolved = computed(\n () => this.noVisibleSeriesText() ?? this.intl().chart.noVisibleSeries,\n );\n\n /** Gives every series a dash pattern, so lines differ by shape as well as colour. */\n readonly patterns = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one series' entrance and the next; `0` turns it off. The step narrows\n * so the last series still starts within the stagger budget. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n /** Every series with its band's span, stacked per axis. Hiding a series does not re-pile the\n * rest. A `null` stays a hole and adds nothing to the pile. */\n protected readonly stackedSeries = computed<readonly ResolvedSeries[]>(() => {\n const mode = this.stack();\n const entries = this.resolvedSeries();\n if (mode === 'none') {\n return entries;\n }\n\n const spans = new Map<ResolvedSeries, { from: number; to: number }[]>();\n for (const secondary of [false, true]) {\n const onThisAxis = entries.filter(\n (entry) => entry.onSecondaryAxis === secondary,\n );\n const offsets = stackOffsets(\n onThisAxis.map((entry) => entry.values.map((value) => value ?? 0)),\n mode,\n );\n onThisAxis.forEach((entry, index) =>\n spans.set(entry, [...offsets[index]]),\n );\n }\n\n return entries.map((entry) => {\n const span = spans.get(entry);\n if (!span) {\n return entry;\n }\n\n return {\n ...entry,\n values: entry.values.map((value, category) =>\n value === null ? null : span[category].to,\n ),\n lowerValues: entry.values.map((value, category) =>\n value === null ? null : span[category].from,\n ),\n };\n });\n });\n\n protected readonly visibleSeries = computed<readonly ResolvedSeries[]>(() => {\n const hidden = this.hiddenSeries();\n\n return this.stackedSeries().filter(\n (entry) => !hidden.includes(entry.series.id),\n );\n });\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n /** A normalized stack draws shares, so the axis prints percentages; tooltip and table values stay\n * the reading. */\n protected readonly axisFormat = computed<ChartValueFormat>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1, this.defaults.locale)\n : this.valueFormatResolved(),\n );\n\n private readonly axisTint = computed(() => {\n if (!this.hasSecondaryAxis() || this.yAxisMode() === 'split') {\n return { primary: null, secondary: null };\n }\n const find = (onSecondaryAxis: boolean) =>\n this.visibleSeries().find(\n (entry) => entry.onSecondaryAxis === onSecondaryAxis,\n )?.color ?? null;\n\n return { primary: find(false), secondary: find(true) };\n });\n\n protected readonly primaryAxisFill = computed(() => this.axisTint().primary);\n\n protected readonly secondaryAxisFill = computed(\n () => this.axisTint().secondary,\n );\n\n protected readonly stacksSeries = computed(() => this.stack() !== 'none');\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the category\n * under the pointer; `'item'` names only the marker itself. */\n readonly tooltip = input<ChartTooltipTrigger>('axis');\n\n // The category cursor is the one hover area over the plot and names every series, so a\n // marker-only or silent tooltip needs it off.\n protected readonly plotCursor = computed(() =>\n this.tooltip() === 'axis' ? 'category' : 'none',\n );\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip anchors while `tooltip` is `'axis'` (default); with `'item'` the panel\n * hangs on the marker and this does nothing. `'reading'` (default) is the highest reading in the\n * category, so the panel stays put within one band; `'pointer'` follows the cursor. */\n readonly tooltipAnchor = input<'reading' | 'pointer'>('reading');\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n this.intl().chart.categoryColumn,\n ...this.resolvedSeries().map((entry) => entry.series.label),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.category,\n cells: [row.category, ...row.cells],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.categories().map((category, index) => ({\n category,\n cells: this.resolvedSeries().map((entry) => {\n const value = entry.values[index];\n\n return value === null || value === undefined\n ? '—'\n : format(value, 'tooltip');\n }),\n }));\n });\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n\n const words = this.intl().chart;\n const title = this.caption() ?? words.title;\n const format = (value: number) =>\n this.valueFormatResolved()(value, 'tooltip');\n const categories = this.categories();\n const sentences = this.resolvedSeries().map((entry) =>\n describeSeries(\n words,\n entry.series.label,\n entry.values.flatMap((value, index) =>\n value === null ? [] : [{ label: categories[index] ?? '', value }],\n ),\n format,\n false,\n ),\n );\n const pointer =\n this.dataTableResolved() === 'none' ? '' : ` ${words.tableFollows}`;\n // Annotation text sits inside an `aria-hidden` svg, so it reaches assistive tech only through the name.\n const notes = this.markAnnotations().map((note) => note.label);\n const noted = notes.length ? ` ${words.noted(notes)}` : '';\n\n return sentences.length === 0\n ? describeSeries(\n words,\n title,\n [],\n format,\n this.dataTableResolved() !== 'none',\n )\n : `${title}. ${sentences.join(' ')}${noted}${pointer}`;\n });\n\n private readonly plot = viewChild(ChartComponent);\n\n protected readonly pinnedCategory = computed(\n () => this.plot()?.cursorPinned() ?? false,\n );\n\n protected releaseCategoryPin(): void {\n this.plot()?.releaseCursor();\n }\n\n protected readonly markSeries = computed<readonly LineSeriesData[]>(() =>\n this.visibleSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n data: entry.values,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n area: entry.series.area,\n lower: entry.lowerValues ?? undefined,\n color: entry.color,\n })),\n );\n\n protected readonly dashPatterns = computed<readonly string[]>(() =>\n this.visibleSeries().map((entry) => entry.dash ?? ''),\n );\n\n protected readonly markAnnotations = computed<readonly ChartAnnotation[]>(\n () =>\n this.annotations().flatMap((annotation) => {\n const visible = this.visibleSeries();\n const entry = annotation.seriesId\n ? visible.find(\n (candidate) => candidate.series.id === annotation.seriesId,\n )\n : visible[0];\n const value = entry?.values[annotation.categoryIndex];\n if (!entry || typeof value !== 'number') {\n return [];\n }\n\n return [\n {\n categoryIndex: annotation.categoryIndex,\n value,\n label: annotation.label,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n },\n ];\n }),\n );\n\n protected readonly hasSecondaryAxis = computed(() =>\n this.visibleSeries().some((entry) => entry.onSecondaryAxis),\n );\n\n /** The ceiling handed to the container, which only raises its domain to it. Unless `rescaleOnHide`,\n * it spans every series, so hiding one does not move the gridlines. */\n protected readonly axisMax = computed(() =>\n this.rescaleOnHide() ? this.max() : this.ceilingOf(false, this.max()),\n );\n\n protected readonly axisMaxSecondary = computed(() =>\n this.rescaleOnHide()\n ? this.maxSecondary()\n : this.ceilingOf(true, this.maxSecondary()),\n );\n\n private ceilingOf(onSecondaryAxis: boolean, asked: number | null): number {\n const derived = domainMaxOf(\n this.stackedSeries()\n .filter((entry) => entry.onSecondaryAxis === onSecondaryAxis)\n .map((entry) => entry.values),\n );\n\n return asked !== null && Number.isFinite(asked) && asked > derived\n ? asked\n : derived;\n }\n\n protected readonly plotHeight = readOnHostResize(\n inject<ElementRef<HTMLElement>>(ElementRef),\n readPlotHeight,\n DEFAULT_PLOT_HEIGHT,\n Object.is,\n );\n\n protected readonly viewHeightPx = computed(\n () => `${chartViewHeight(this.plotHeight(), CHART_DEFAULT_VALUE_SPACE)}px`,\n );\n\n protected onPointClicked(reading: {\n series: LineSeriesData;\n categoryIndex: number;\n value: number;\n }): void {\n const series = this.series().find(\n (candidate) => candidate.id === reading.series.id,\n );\n if (!series) {\n return;\n }\n this.pointClicked.emit({\n series,\n categoryIndex: reading.categoryIndex,\n category: this.categories()[reading.categoryIndex] ?? '',\n value: reading.value,\n });\n }\n\n protected readonly isEmpty = computed(\n () => this.series().length === 0 || this.categories().length === 0,\n );\n\n protected readonly showLegend = computed(() => this.series().length > 1);\n\n protected readonly noVisibleSeries = computed(\n () => this.series().length > 0 && this.visibleSeries().length === 0,\n );\n\n protected readonly skeletonSeries = computed(() =>\n Array.from({ length: Math.max(this.series().length, 3) }),\n );\n}\n","<figure\n class=\"line-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"pinnedCategory()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"loading() || !renderReady()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"releaseCategoryPin()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_line-chart-skeleton-height)\"\n [shimmer]=\"loading()\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n @if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesTextResolved() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n [cursor]=\"plotCursor()\"\n [tooltipSwatches]=\"tooltipSwatches()\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [pinOnClick]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [outline]=\"outline()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n @if (markAnnotations().length) {\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n }\n </ds-chart>\n\n @if (showLegend()) {\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 }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAIO,MAAM,6BAA6B,GAAG,CAAC;AAE9C;;AAEkE;SAClD,iBAAiB,CAC/B,IAAgC,EAChC,aAAqB,EACrB,IAAe,EAAA;IAEf,MAAM,MAAM,GACV,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,aAAa,GAAG;AAChD,UAAE,IAAI,CAAC,KAAK,CAAC,aAAa;UACxB,CAAC;IACP,MAAM,OAAO,GAAsB,EAAE;AACrC,IAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AAC3C,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACvB,MAAM,OAAO,GACX,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI;AAC9D,QAAA,OAAO,CAAC,IAAI,CAAC,OAAO,KAAK,IAAI,IAAI,IAAI,KAAK,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC;IACjE;AAEA,IAAA,OAAO,OAAO;AAChB;AAEA;AACsF;AAChF,SAAU,WAAW,CACzB,WAAoD,EAAA;IAEpD,IAAI,GAAG,GAAG,CAAC;AACX,IAAA,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;AAChC,QAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;AAC1B,YAAA,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,GAAG,EAAE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IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,gBAAgB,4LA0Ec,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpblD;;AAEG;;;;"}
|
|
@@ -32,7 +32,7 @@ class ListItemComponent {
|
|
|
32
32
|
/** Fires when the clickable row's button is activated. */
|
|
33
33
|
activated = output();
|
|
34
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.title": "null", "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.title": "null", "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":host{--_list-item-padding-y: var(--ds-list-item-padding-y, var(--list-item-pad-y));--_list-item-padding-x: var(--ds-list-item-padding-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-padding-y) var(--_list-item-padding-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
36
36
|
}
|
|
37
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
@@ -43,7 +43,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
43
43
|
'[class.clickable]': 'clickable()',
|
|
44
44
|
'[class.selected]': 'selected()',
|
|
45
45
|
'[class.disabled]': 'disabled()',
|
|
46
|
-
}, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":
|
|
46
|
+
}, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":host{--_list-item-padding-y: var(--ds-list-item-padding-y, var(--list-item-pad-y));--_list-item-padding-x: var(--ds-list-item-padding-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-padding-y) var(--_list-item-padding-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"] }]
|
|
47
47
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], activated: [{ type: i0.Output, args: ["activated"] }] } });
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.title]': 'null',\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Row text; richer content can be projected instead. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current: `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,kPAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IA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,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,mBAAA,EAAA,4BAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECzB9B,khCAwCA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.title]': 'null',\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Row text; richer content can be projected instead. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current: `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` stay outside the activator: a control nested in a <button> is\n invalid and its click would bubble into `activated`. Legal because `role=\"listitem\"` allows\n interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS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