@ids-group-ltd/ids-design-system 0.12.3 → 0.13.0
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 +603 -6
- package/components.md +85 -2
- package/docs/agent/INDEX.md +11 -1
- package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +9 -0
- package/docs/agent/charts/chart-frame-the-box-a-chart-draws-around-itself.md +12 -0
- package/docs/agent/charts/ds-bar-chart.md +15 -0
- package/docs/agent/charts/ds-column-chart.md +14 -0
- package/docs/agent/charts/ds-donut-chart.md +17 -0
- package/docs/agent/charts/ds-funnel-chart.md +16 -0
- package/docs/agent/charts/ds-line-chart.md +15 -0
- package/docs/agent/forms/ds-button.md +4 -2
- package/docs/agent/forms/ds-number-stepper.md +1 -0
- package/docs/agent/navigation/ds-sidenav-item.md +1 -0
- 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-autocomplete.mjs +16 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +161 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- 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 +58 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +197 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +1 -0
- 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 +1 -0
- 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 +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +299 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +69 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.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 +366 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +10 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +631 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +1 -1
- 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 +1 -0
- 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 +2 -2
- 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 +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +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-radio-group.mjs +2 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +1 -0
- 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 +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +18 -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 +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -71
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- 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 +1 -0
- 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 +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +31 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +393 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +17 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +10 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.13.0.json +530 -0
- package/package.json +57 -1
- package/styles/_chart-data-table.scss +95 -0
- package/styles/_chart-frame.scss +53 -0
- package/styles/_chart-interactive.scss +40 -0
- package/styles/_chart-motion.scss +45 -0
- package/styles/_focus.scss +1 -1
- package/styles/_tokens-charts.scss +149 -39
- package/styles/_tokens.scss +17 -4
- package/themes/dark/_theme.scss +37 -29
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +11 -9
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +104 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +37 -4
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +34 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +78 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +105 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +113 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +52 -11
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +109 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +241 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +16 -4
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +11 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +154 -4
- package/types/ids-group-ltd-ids-design-system-core.d.ts +12 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +9 -2
|
@@ -0,0 +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 {\n bandScale,\n linearScale,\n niceMax,\n tickValues,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type { LineChartAxisMode, LineChartGaps } from './line-chart.types';\n\nexport const LINE_CHART_VIEW_WIDTH = 640;\nexport const LINE_CHART_VIEW_HEIGHT = 320;\nexport const LINE_CHART_DEFAULT_TICK_COUNT = 5;\nexport const LINE_CHART_AXIS_LABEL_GAP = 8;\n\nconst AXIS_GUTTER = 46;\nconst BARE_EDGE_GUTTER = 12;\nconst PLOT_TOP = 14;\nconst CATEGORY_GUTTER = 30;\nconst CATEGORY_LABEL_OFFSET = 18;\nconst STACKED_PLOT_GAP = 34;\nconst MAX_CATEGORY_LABELS = 12;\nconst COORDINATE_DECIMALS = 2;\nconst TICK_DECIMALS = 6;\nconst ROUND_STEP_FACTORS = [1, 2, 5, 10];\n// A step divided out of a domain and multiplied back rarely lands on itself, so a\n// candidate equal to the minimum can compare as smaller by one bit and push the\n// whole axis up a rung.\nconst ROUND_STEP_TOLERANCE = 1 - 1e-12;\n\nexport interface PlotArea {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface AxisScale {\n readonly max: number;\n readonly ticks: readonly number[];\n}\n\nexport interface AxisLayout {\n readonly primary: AxisScale;\n /** Null when no series asked for a second axis. */\n readonly secondary: AxisScale | null;\n /** True when the secondary axis is drawn against the primary's gridlines. */\n readonly alignedTicks: boolean;\n}\n\nexport interface ChartLayout {\n readonly primaryPlot: PlotArea;\n /** The same area as `primaryPlot` unless the plots are stacked. */\n readonly secondaryPlot: PlotArea;\n readonly categoryLabelY: number;\n readonly stacked: boolean;\n}\n\nexport interface LinePoint {\n readonly categoryIndex: number;\n readonly x: number;\n readonly y: number;\n readonly value: number;\n}\n\nfunction roundTo(value: number, decimals: number): number {\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return Number(value.toFixed(decimals));\n}\n\nexport function normalizeTickCount(tickCount: number): number {\n return Number.isFinite(tickCount) && tickCount >= 1\n ? Math.floor(tickCount)\n : LINE_CHART_DEFAULT_TICK_COUNT;\n}\n\n/** One reading per category, however long the series actually was. A series longer\n * than `categories` loses its tail and a shorter one ends early: a line that stops\n * short is a defect the reader can see, while a thrown error takes down the page\n * around it. Anything that is not a finite number is a missing reading, so `NaN`\n * and `Infinity` follow the `gaps` policy rather than reaching a coordinate. */\nexport function alignSeriesValues(\n data: readonly (number | null)[],\n categoryCount: number,\n gaps: LineChartGaps,\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: the\n * tick helpers only describe axes that start at zero, and a negative domain there\n * is a division waiting to happen. */\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\n/** The smallest 1/2/5/10 × power-of-ten step that is not below `minimumStep`.\n * `niceMax` picks its own number of intervals, so it cannot answer this: an aligned\n * secondary axis has to reach its data within the intervals the primary already\n * drew. */\nexport function roundStepAtLeast(minimumStep: number): number {\n if (!Number.isFinite(minimumStep) || minimumStep <= 0) {\n return 0;\n }\n const base = Math.pow(10, Math.floor(Math.log10(minimumStep)));\n for (const factor of ROUND_STEP_FACTORS) {\n const candidate = factor * base;\n if (candidate >= minimumStep * ROUND_STEP_TOLERANCE) {\n return candidate;\n }\n }\n\n return 10 * base;\n}\n\nfunction nicedAxis(domainMax: number, tickCount: number): AxisScale {\n return {\n max: niceMax(domainMax, tickCount),\n ticks: tickValues(domainMax, tickCount),\n };\n}\n\n/** Both y axes, as the four modes define them. `'rounded'` and `'exact'` share the\n * primary's gridlines and differ only in the step they divide the secondary domain\n * by: `'rounded'` snaps the step up to a round number and overshoots the data,\n * `'exact'` takes the domain itself and lands on it. `'independent'` and\n * `'stacked'` nice each axis on its own — stacked plots sit one above the other,\n * so there is nothing to align. */\nexport function axisLayout(\n primaryDomainMax: number,\n secondaryDomainMax: number | null,\n mode: LineChartAxisMode,\n tickCount: number,\n): AxisLayout {\n const count = normalizeTickCount(tickCount);\n const primary = nicedAxis(primaryDomainMax, count);\n if (secondaryDomainMax === null) {\n return { primary, secondary: null, alignedTicks: true };\n }\n\n const intervals = primary.ticks.length - 1;\n const canAlign =\n (mode === 'rounded' || mode === 'exact') &&\n intervals >= 1 &&\n Number.isFinite(secondaryDomainMax) &&\n secondaryDomainMax > 0;\n if (!canAlign) {\n return {\n primary,\n secondary: nicedAxis(secondaryDomainMax, count),\n alignedTicks: false,\n };\n }\n\n const step =\n mode === 'rounded'\n ? roundStepAtLeast(secondaryDomainMax / intervals)\n : secondaryDomainMax / intervals;\n if (step <= 0) {\n return { primary, secondary: { max: 0, ticks: [0] }, alignedTicks: true };\n }\n\n const ticks: number[] = [];\n for (let index = 0; index <= intervals; index++) {\n ticks.push(roundTo(step * index, TICK_DECIMALS));\n }\n\n return {\n primary,\n secondary: { max: roundTo(step * intervals, TICK_DECIMALS), ticks },\n alignedTicks: true,\n };\n}\n\nexport function chartLayout(\n mode: LineChartAxisMode,\n hasSecondaryAxis: boolean,\n): ChartLayout {\n const stacked = mode === 'stacked' && hasSecondaryAxis;\n const left = AXIS_GUTTER;\n const right = hasSecondaryAxis && !stacked ? AXIS_GUTTER : BARE_EDGE_GUTTER;\n const width = LINE_CHART_VIEW_WIDTH - left - right;\n const plotBottom = LINE_CHART_VIEW_HEIGHT - CATEGORY_GUTTER;\n const categoryLabelY = plotBottom + CATEGORY_LABEL_OFFSET;\n\n if (!stacked) {\n const plot: PlotArea = {\n left,\n top: PLOT_TOP,\n width,\n height: plotBottom - PLOT_TOP,\n };\n\n return {\n primaryPlot: plot,\n secondaryPlot: plot,\n categoryLabelY,\n stacked: false,\n };\n }\n\n const height = (plotBottom - PLOT_TOP - STACKED_PLOT_GAP) / 2;\n\n return {\n primaryPlot: { left, top: PLOT_TOP, width, height },\n secondaryPlot: {\n left,\n top: PLOT_TOP + height + STACKED_PLOT_GAP,\n width,\n height,\n },\n categoryLabelY,\n stacked: true,\n };\n}\n\nexport function categoryCenters(count: number, plot: PlotArea): number[] {\n const total = Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;\n const band = bandScale(total, plot.width, 0);\n const centers: number[] = [];\n for (let index = 0; index < total; index++) {\n centers.push(plot.left + band.position(index) + band.bandWidth / 2);\n }\n\n return centers;\n}\n\n/** The y a reading sits at, always inside the plot. The clamp is what keeps a\n * negative reading — which no zero-based axis can place — off the category labels\n * below, and the finite test is what stops an unplottable one becoming `NaN`. */\nexport function valueY(value: number, axisMax: number, plot: PlotArea): number {\n const baseline = plot.top + plot.height;\n const y = baseline - linearScale(axisMax, plot.height)(value);\n if (!Number.isFinite(y)) {\n return baseline;\n }\n\n return Math.min(Math.max(y, plot.top), baseline);\n}\n\nexport function seriesPoints(\n values: readonly (number | null)[],\n axisMax: number,\n plot: PlotArea,\n centers: readonly number[],\n): (LinePoint | null)[] {\n return values.map((value, index) => {\n const x = centers[index];\n if (value === null || !Number.isFinite(value) || !Number.isFinite(x)) {\n return null;\n }\n\n return { categoryIndex: index, x, y: valueY(value, axisMax, plot), value };\n });\n}\n\nexport function lineSegments(\n points: readonly (LinePoint | null)[],\n): LinePoint[][] {\n const segments: LinePoint[][] = [];\n let current: LinePoint[] = [];\n for (const point of points) {\n if (point === null) {\n if (current.length > 0) {\n segments.push(current);\n }\n current = [];\n } else {\n current.push(point);\n }\n }\n if (current.length > 0) {\n segments.push(current);\n }\n\n return segments;\n}\n\n/** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a\n * `points` list or a path `d` voids the whole attribute, and the line then vanishes\n * with nothing logged. */\nexport function polylinePoints(segment: readonly LinePoint[]): string {\n if (segment.length === 0 || !segment.every(isPlottable)) {\n return '';\n }\n\n return segment.map((point) => coordinatePair(point)).join(' ');\n}\n\nexport function areaPath(\n segment: readonly LinePoint[],\n baselineY: number,\n): string {\n if (\n segment.length < 2 ||\n !Number.isFinite(baselineY) ||\n !segment.every(isPlottable)\n ) {\n return '';\n }\n const first = segment[0];\n const last = segment[segment.length - 1];\n const along = segment.map((point) => coordinatePair(point)).join(' L ');\n const baseline = roundTo(baselineY, COORDINATE_DECIMALS);\n\n return `M ${along} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;\n}\n\nfunction isPlottable(point: LinePoint): boolean {\n return Number.isFinite(point.x) && Number.isFinite(point.y);\n}\n\nfunction coordinatePair(point: LinePoint): string {\n return `${roundTo(point.x, COORDINATE_DECIMALS)},${roundTo(point.y, COORDINATE_DECIMALS)}`;\n}\n\n/** Show every nth category label. Every label at 60 categories is a grey smear, and\n * the axis stops saying anything at all. */\nexport function categoryLabelStride(\n count: number,\n maxLabels: number = MAX_CATEGORY_LABELS,\n): number {\n if (!Number.isFinite(count) || count <= 0 || maxLabels < 1) {\n return 1;\n }\n\n return Math.max(1, Math.ceil(count / maxLabels));\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 {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n model,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n bandScale,\n formatTick,\n focusMark,\n formatValue,\n nextRovingIndex,\n staggerDelay,\n tickStep,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\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 type {\n ChartTooltipContext,\n ChartTooltipOrigin,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n LINE_CHART_AXIS_LABEL_GAP,\n LINE_CHART_DEFAULT_TICK_COUNT,\n LINE_CHART_VIEW_HEIGHT,\n LINE_CHART_VIEW_WIDTH,\n type LinePoint,\n type PlotArea,\n alignSeriesValues,\n areaPath,\n axisLayout,\n categoryCenters,\n categoryLabelStride,\n chartLayout,\n domainMaxOf,\n lineSegments,\n paletteIndexFor,\n polylinePoints,\n seriesPoints,\n valueY,\n} from './line-chart.math';\nimport type {\n LineChartAxisMode,\n LineChartGaps,\n LineChartPoint,\n LineChartSeries,\n} from './line-chart.types';\n\nconst defaultValueFormat = (value: number) => formatValue(value);\n\ninterface ResolvedSeries {\n readonly series: LineChartSeries;\n readonly values: readonly (number | null)[];\n readonly onSecondaryAxis: boolean;\n readonly color: string;\n /** `null` while `patterns` is off, which is what keeps a solid line solid. */\n readonly dash: string | null;\n}\n\n// One dash per palette slot, in the same order the colours are. Slot 1 stays solid so a\n// single-series chart is unchanged by turning patterns on.\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\ninterface PlottedSeries extends ResolvedSeries {\n readonly polylines: readonly string[];\n readonly areaPaths: readonly string[];\n readonly markers: readonly LinePoint[];\n}\n\ninterface AxisTick {\n readonly y: number;\n readonly label: string;\n}\n\ninterface CategoryLabel {\n readonly x: number;\n readonly text: string;\n}\n\nfunction baselineOf(plot: PlotArea): number {\n return plot.top + plot.height;\n}\n\n@Component({\n selector: 'ds-line-chart',\n standalone: true,\n imports: [SkeletonComponent, ChartTooltipDirective, ChartLegendComponent],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LineChartComponent {\n /** X labels. Every series' `data` is read against this length. */\n readonly categories = input.required<readonly string[]>();\n\n /** One line per entry. Every series is read against `categories`, so a series longer than it\n * loses its tail and a shorter one ends early. */\n readonly series = input.required<readonly LineChartSeries[]>();\n\n /** How a secondary axis relates to the primary one. */\n readonly yAxisMode = input<LineChartAxisMode>('rounded');\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 /** Makes every reading focusable and clickable. A series drawn without markers grows invisible\n * ones so there is something to land on; they appear on hover and on focus.\n *\n * The click output fires whether or not this is set, so a consumer that binds the output and\n * forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The point that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly pointClicked = output<LineChartPoint>();\n\n /** What a `null` reading draws. The default refuses to assert that a missing\n * reading is a zero. */\n readonly gaps = input<LineChartGaps>('break');\n\n /** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so\n * the axis may carry one more or one fewer. */\n readonly tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Printed above the plot as the chart's visible title, and reused as the annex table's\n * caption. */\n readonly caption = input<string | null>(null);\n\n /** Accessible name. Generated from the data when omitted. */\n readonly summary = input<string | null>(null);\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so\n * `'none'` belongs only where the same data is already in a table on the page. */\n readonly dataTable = input<'toggle' | 'visible' | 'none'>('toggle');\n /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize\n * when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Shown in place of the plot when `data` is empty. */\n readonly emptyText = input<string>('No data');\n\n /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,\n * because \"the request failed\" and \"there is nothing to show\" read the same to a reader and\n * mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** The message the error state prints. */\n readonly errorText = input<string>('Could not load the data');\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Defaults to the browser's locale grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<(value: number) => string>(defaultValueFormat);\n\n protected readonly viewBox = `0 0 ${LINE_CHART_VIEW_WIDTH} ${LINE_CHART_VIEW_HEIGHT}`;\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 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. Two-way, so a page can drive it from a URL\n * parameter and read back what the reader chose. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. Default `false`: a silent\n * rescale turns a period-over-period comparison into a different claim, and a comparison\n * dashboard is the common case. */\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 /** Shown in place of the plot once the legend has switched every series off. Without it the\n * reader is left with an empty grid and nothing saying why. */\n readonly noVisibleSeriesText = input<string>('All series are hidden');\n\n /** Gives every series a dash pattern of its own, so the lines are told apart by shape as well\n * as by colour — WCAG technique G111. Off by default: the shipped palette clears the\n * colour-blind separation threshold on its own, so the patterns are for monochrome print, for a\n * retuned palette, and for a reader who asks for them. */\n readonly patterns = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one series' entrance and the next. `0`, the default, is no stagger at\n * all; `40` is the documented non-zero step. The total is capped, so a long list of series does\n * not crawl in. */\n readonly staggerMs = input(0, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.staggerMs())}ms`;\n }\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly visibleSeries = computed<readonly ResolvedSeries[]>(() => {\n const hidden = this.hiddenSeries();\n\n return this.resolvedSeries().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 protected isDimmed(seriesId: string): boolean {\n const highlighted = this.highlightedSeries();\n\n return highlighted !== null && highlighted !== seriesId;\n }\n\n protected readonly hasSecondaryAxis = computed(() =>\n this.visibleSeries().some((entry) => entry.onSecondaryAxis),\n );\n\n protected readonly layout = computed(() =>\n chartLayout(this.yAxisMode(), this.hasSecondaryAxis()),\n );\n\n protected readonly axes = computed(() => {\n // The axis is scaled from every series unless `rescaleOnHide` says otherwise, so switching one\n // off does not move the gridlines under the ones still drawn.\n const entries = this.rescaleOnHide()\n ? this.visibleSeries()\n : this.resolvedSeries();\n const valuesOn = (secondary: boolean) =>\n entries\n .filter((entry) => entry.onSecondaryAxis === secondary)\n .map((entry) => entry.values);\n\n return axisLayout(\n domainMaxOf(valuesOn(false)),\n this.hasSecondaryAxis() ? domainMaxOf(valuesOn(true)) : null,\n this.yAxisMode(),\n this.tickCount(),\n );\n });\n\n protected readonly categoryPositions = computed(() =>\n categoryCenters(this.categories().length, this.layout().primaryPlot),\n );\n\n protected readonly plottedSeries = computed<readonly PlottedSeries[]>(() => {\n const axes = this.axes();\n const centers = this.categoryPositions();\n\n return this.visibleSeries().map((entry) => {\n const plot = this.plotFor(entry.onSecondaryAxis);\n const axisMax =\n entry.onSecondaryAxis && axes.secondary\n ? axes.secondary.max\n : axes.primary.max;\n const segments = lineSegments(\n seriesPoints(entry.values, axisMax, plot, centers),\n );\n const baselineY = plot.top + plot.height;\n\n return {\n ...entry,\n polylines: segments\n .map((segment) => polylinePoints(segment))\n .filter((points) => points.length > 0),\n areaPaths: entry.series.area\n ? segments\n .map((segment) => areaPath(segment, baselineY))\n .filter((path) => path.length > 0)\n : [],\n markers: segments.flat(),\n };\n });\n });\n\n protected readonly primaryTicks = computed(() =>\n this.ticksFor(this.axes().primary.ticks, this.axes().primary.max, false),\n );\n\n protected readonly secondaryTicks = computed<readonly AxisTick[]>(() => {\n const secondary = this.axes().secondary;\n\n return secondary ? this.ticksFor(secondary.ticks, secondary.max, true) : [];\n });\n\n /** Drawn only when the two axes do not share the primary's gridlines, and only\n * when the axis has more than the single tick a degenerate domain leaves. */\n protected readonly showSecondaryGridlines = computed(\n () => !this.axes().alignedTicks && this.secondaryTicks().length > 1,\n );\n\n protected readonly stacked = computed(() => this.layout().stacked);\n protected readonly categoryLabelY = computed(\n () => this.layout().categoryLabelY,\n );\n\n /** The category under the pointer, or -1. */\n protected readonly activeCategory = signal(-1);\n\n protected readonly categoryBands = computed(() =>\n bandScale(this.categories().length, this.layout().primaryPlot.width, 0),\n );\n\n protected readonly activeBandX = computed(\n () =>\n this.layout().primaryPlot.left +\n this.categoryBands().position(this.activeCategory()),\n );\n\n protected readonly activeBandWidth = computed(\n () => this.categoryBands().bandWidth,\n );\n\n protected readonly activeCategoryX = computed(\n () => this.activeBandX() + this.activeBandWidth() / 2,\n );\n\n protected onPlotPointer(event: PointerEvent): void {\n const canvas = event.currentTarget as SVGSVGElement;\n const screen = canvas.getScreenCTM();\n if (!screen) {\n return;\n }\n // Client pixels are not viewBox units — the plot scales to the card's width.\n const point = new DOMPoint(event.clientX, event.clientY).matrixTransform(\n screen.inverse(),\n );\n const plot = this.layout().primaryPlot;\n this.activeCategory.set(this.categoryBands().indexAt(point.x - plot.left));\n this.tooltipOrigin.set({ x: event.clientX, y: event.clientY });\n }\n\n protected clearActiveCategory(): void {\n this.activeCategory.set(-1);\n this.tooltipOrigin.set(null);\n }\n\n /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the\n * category under the pointer, which is the reading a multi-series line is compared on;\n * `'item'` names only the marker itself. */\n readonly tooltip = input<ChartTooltipTrigger>('axis');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n protected readonly tooltipOrigin = signal<ChartTooltipOrigin | null>(null);\n\n /** The series focus is on, or -1 for the whole category. A pointer answers for every\n * series at once; a focused marker answers for its own. */\n protected readonly activeSeries = signal(-1);\n\n /** One tab stop PER SERIES, keyed by series id — each line is a strand the reader walks with\n * the arrows. WCAG 2.1.1's Understanding is explicit that not every mouse-operable control has\n * to be separately focusable, which is what keeps a 12-category, 2-series plot from being\n * twenty-four stops in the page's tab order. */\n protected readonly rovingByCategory = signal<ReadonlyMap<string, number>>(\n new Map(),\n );\n\n protected isTabStop(seriesId: string, categoryIndex: number): boolean {\n return (this.rovingByCategory().get(seriesId) ?? 0) === categoryIndex;\n }\n\n protected onMarkerFocus(\n seriesIndex: number,\n categoryIndex: number,\n event: FocusEvent,\n ): void {\n if (event.currentTarget instanceof Element) {\n this.tooltipOrigin.set(event.currentTarget);\n }\n this.activeSeries.set(seriesIndex);\n this.activeCategory.set(categoryIndex);\n this.setRoving(seriesIndex, categoryIndex);\n }\n\n protected onMarkerNavigation(\n event: KeyboardEvent,\n seriesIndex: number,\n categoryIndex: number,\n ): void {\n const markers = this.plottedSeries()[seriesIndex]?.markers ?? [];\n const positions = markers.map((marker) => marker.categoryIndex);\n const current = positions.indexOf(categoryIndex);\n const next = nextRovingIndex(event.key, current, positions.length);\n if (next === null) {\n return;\n }\n event.preventDefault();\n const nextCategory = positions[next];\n this.setRoving(seriesIndex, nextCategory);\n focusMark(\n (event.currentTarget as Element).closest('svg'),\n nextCategory,\n `[data-series-index=\"${seriesIndex}\"]`,\n );\n }\n\n private setRoving(seriesIndex: number, categoryIndex: number): void {\n const seriesId = this.plottedSeries()[seriesIndex]?.series.id;\n if (seriesId === undefined) {\n return;\n }\n const next = new Map(this.rovingByCategory());\n next.set(seriesId, categoryIndex);\n this.rovingByCategory.set(next);\n }\n\n protected onMarkerBlur(): void {\n this.activeSeries.set(-1);\n this.clearActiveCategory();\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const categoryIndex = this.activeCategory();\n const categories = this.categories();\n if (\n this.tooltip() === 'none' ||\n categoryIndex < 0 ||\n categoryIndex >= categories.length\n ) {\n return null;\n }\n const format = this.valueFormat();\n const focusedSeries = this.activeSeries();\n const perSeries =\n this.tooltip() === 'item' || focusedSeries >= 0\n ? this.visibleSeries().slice(\n Math.max(focusedSeries, 0),\n Math.max(focusedSeries, 0) + 1,\n )\n : this.visibleSeries();\n\n return {\n category: categories[categoryIndex],\n entries: perSeries\n .map((entry) => ({ entry, value: entry.values[categoryIndex] }))\n .filter(\n (\n reading,\n ): reading is {\n entry: (typeof perSeries)[number];\n value: number;\n } =>\n typeof reading.value === 'number' &&\n Number.isFinite(reading.value),\n )\n .map(({ entry, value }) => ({\n label: entry.series.label,\n value,\n formatted: format(value),\n color: entry.color,\n })),\n };\n },\n );\n\n protected readonly plotLeft = computed(() => this.layout().primaryPlot.left);\n protected readonly plotRight = computed(\n () => this.layout().primaryPlot.left + this.layout().primaryPlot.width,\n );\n\n protected readonly primaryTopY = computed(\n () => this.layout().primaryPlot.top,\n );\n protected readonly secondaryTopY = computed(\n () => this.layout().secondaryPlot.top,\n );\n\n protected readonly primaryBaselineY = computed(() =>\n baselineOf(this.layout().primaryPlot),\n );\n\n protected readonly secondaryBaselineY = computed(() =>\n baselineOf(this.layout().secondaryPlot),\n );\n\n protected readonly primaryLabelX = computed(\n () => this.layout().primaryPlot.left - LINE_CHART_AXIS_LABEL_GAP,\n );\n\n protected readonly secondaryLabelX = computed(() => {\n const layout = this.layout();\n\n return layout.stacked\n ? layout.secondaryPlot.left - LINE_CHART_AXIS_LABEL_GAP\n : layout.primaryPlot.left +\n layout.primaryPlot.width +\n LINE_CHART_AXIS_LABEL_GAP;\n });\n\n protected readonly secondaryLabelAnchor = computed(() =>\n this.layout().stacked ? 'end' : 'start',\n );\n\n protected readonly categoryLabels = computed<readonly CategoryLabel[]>(() => {\n const categories = this.categories();\n const centers = this.categoryPositions();\n const stride = categoryLabelStride(categories.length);\n const labels: CategoryLabel[] = [];\n for (let index = 0; index < categories.length; index += stride) {\n labels.push({ x: centers[index], text: categories[index] });\n }\n\n return labels;\n });\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormat();\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 ? '—' : format(value);\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 title = this.caption() ?? 'Chart';\n const format = this.valueFormat();\n const categories = this.categories();\n // The pointer belongs to the WHOLE chart, not to each series, or a two-series plot promises\n // the table twice.\n const sentences = this.resolvedSeries().map((entry) =>\n describeSeries(\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.dataTable() === 'none' ? '' : ' Full values in the table below.';\n\n return sentences.length === 0\n ? describeSeries(title, [], format, this.dataTable() !== 'none')\n : `${title}. ${sentences.join(' ')}${pointer}`;\n });\n\n protected pointOf(entry: PlottedSeries, marker: LinePoint): LineChartPoint {\n return {\n series: entry.series,\n categoryIndex: marker.categoryIndex,\n category: this.categories()[marker.categoryIndex] ?? '',\n value: marker.value,\n };\n }\n\n protected markerLabel(entry: PlottedSeries, marker: LinePoint): string {\n const point = this.pointOf(entry, marker);\n\n return `${entry.series.label}, ${point.category}, ${this.valueFormat()(marker.value)}`;\n }\n\n protected onMarkerKey(\n entry: PlottedSeries,\n marker: LinePoint,\n event: Event,\n ): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.pointClicked.emit(this.pointOf(entry, marker));\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 /** Placeholder legend rows while loading. Follows the real series count so the\n * chart does not resize when the data lands; falls back to three when `series`\n * is still empty. */\n protected readonly skeletonSeries = computed(() =>\n Array.from({ length: Math.max(this.series().length, 3) }),\n );\n\n private plotFor(onSecondaryAxis: boolean): PlotArea {\n const layout = this.layout();\n\n return onSecondaryAxis && layout.stacked\n ? layout.secondaryPlot\n : layout.primaryPlot;\n }\n\n private ticksFor(\n ticks: readonly number[],\n axisMax: number,\n onSecondaryAxis: boolean,\n ): AxisTick[] {\n const plot = this.plotFor(onSecondaryAxis);\n const step = tickStep(ticks);\n const format = this.valueFormat();\n\n return ticks.map((value) => ({\n y: valueY(value, axisMax, plot),\n label:\n format === defaultValueFormat ? formatTick(value, step) : format(value),\n }));\n }\n}\n","<figure class=\"line-chart\">\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 {{ errorText() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\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 }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyText() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n [attr.x]=\"activeBandX()\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"primaryBaselineY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeCategoryX()\"\n [attr.x2]=\"activeCategoryX()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n [attr.stroke-dasharray]=\"entry.dash\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"pointClicked.emit(pointOf(entry, marker))\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTable() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTable() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,qBAAqB,GAAG,GAAG;AACjC,MAAM,sBAAsB,GAAG,GAAG;AAClC,MAAM,6BAA6B,GAAG,CAAC;AACvC,MAAM,yBAAyB,GAAG,CAAC;AAE1C,MAAM,WAAW,GAAG,EAAE;AACtB,MAAM,gBAAgB,GAAG,EAAE;AAC3B,MAAM,QAAQ,GAAG,EAAE;AACnB,MAAM,eAAe,GAAG,EAAE;AAC1B,MAAM,qBAAqB,GAAG,EAAE;AAChC,MAAM,gBAAgB,GAAG,EAAE;AAC3B,MAAM,mBAAmB,GAAG,EAAE;AAC9B,MAAM,mBAAmB,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,CAAC;AACvB,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AACxC;AACA;AACA;AACA,MAAM,oBAAoB,GAAG,CAAC,GAAG,KAAK;AAqCtC,SAAS,OAAO,CAAC,KAAa,EAAE,QAAgB,EAAA;IAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC3B,QAAA,OAAO,CAAC;IACV;IAEA,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACxC;AAEM,SAAU,kBAAkB,CAAC,SAAiB,EAAA;IAClD,OAAO,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI;AAChD,UAAE,IAA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AAA,QAAA,EAAA,eAAe,cACb,IAAI,EAAA,OAAA,EACP,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,iBAG1D,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ghSAAA,EAAA,MAAA,EAAA,CAAA,qgRAAA,CAAA,EAAA;wzEAqR3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AErYtB;;AAEG;;;;"}
|
|
@@ -259,7 +259,7 @@ class ModalConfirmComponent {
|
|
|
259
259
|
this.context.resolve(false);
|
|
260
260
|
}
|
|
261
261
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
262
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\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:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "routerLink", "href", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }] });
|
|
262
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\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:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }] });
|
|
263
263
|
}
|
|
264
264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, decorators: [{
|
|
265
265
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolve `dividers` against the app-level default — same `null`-means-unset\n * shape as `resolveReserveMessage`, and see it for why.\n *\n * Both `ds-modal` and `ds-modal-card` call this, which is the point: a\n * `ModalService` confirm renders a card with no `ds-modal` ancestor, so an\n * attribute on the element cannot reach it and only the injected default can.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n /** Card width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and\n * the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the\n * default) is a neutral dialog. It picks an icon as well as a tint because a tint\n * alone signals by colour only; `icon` overrides the pick.\n *\n * `false` and `undefined` land on null too, so a template can bind the short\n * `[status]=\"isDangerous && 'error'\"` instead of spelling out the ternary. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a\n * dialog that interrupts with something the reader must act on — and anything\n * else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n /** Status picks the glyph so a severity is never carried by colour alone. */\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card — drives its icon-badge tint, title colour,\n * default icon and ARIA role. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card is told rather than resolving a\n * second time — the two would disagree if a provider sat between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n /** Dialog is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the scrim fade-out leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted\n // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview\n // (always shown). Reduced-motion zeroes the durations → close is instant.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with drawer/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase — a guard for high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // Paint the scrim via the DS token rather than relying on CDK's prebuilt\n // dark-backdrop CSS (which the library doesn't ship). Matches ds-modal.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;;;AAGA;;;;;;;AAOG;AACG,SAAU,eAAe,CAC7B,QAAgC,EAAA;AAEhC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACrE;;ACHA,IAAIA,QAAM,GAAG,CAAC;MAUD,kBAAkB,CAAA;;AAEpB,IAAA,IAAI,GAAG,KAAK,CAAY,IAAI,2EAAC;AACtC;;;;;;AAM+E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AAU,CAAC,MAAM,CACf,IAAI,eAAe,CAAC,qBAAqB,EAAE,IAAI,EAAE,QAAQ,CAAC,CAC3D;;;AAID,YAAA,IAAI,UAAU,CAAC,eAAe,EAAE;AAC9B,gBAAA,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,eAAe;AAC9C,oBAAA,sBAAsB;YAC1B;AACF,QAAA,CAAC,CAAC;IACJ;wGArDW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA;;4FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACXlC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolve `dividers` against the app-level default — same `null`-means-unset\n * shape as `resolveReserveMessage`, and see it for why.\n *\n * Both `ds-modal` and `ds-modal-card` call this, which is the point: a\n * `ModalService` confirm renders a card with no `ds-modal` ancestor, so an\n * attribute on the element cannot reach it and only the injected default can.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n /** Card width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and\n * the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the\n * default) is a neutral dialog. It picks an icon as well as a tint because a tint\n * alone signals by colour only; `icon` overrides the pick.\n *\n * `false` and `undefined` land on null too, so a template can bind the short\n * `[status]=\"isDangerous && 'error'\"` instead of spelling out the ternary. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a\n * dialog that interrupts with something the reader must act on — and anything\n * else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n /** Status picks the glyph so a severity is never carried by colour alone. */\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card — drives its icon-badge tint, title colour,\n * default icon and ARIA role. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card is told rather than resolving a\n * second time — the two would disagree if a provider sat between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n /** Dialog is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the scrim fade-out leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted\n // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview\n // (always shown). Reduced-motion zeroes the durations → close is instant.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with drawer/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase — a guard for high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // Paint the scrim via the DS token rather than relying on CDK's prebuilt\n // dark-backdrop CSS (which the library doesn't ship). Matches ds-modal.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;;;AAGA;;;;;;;AAOG;AACG,SAAU,eAAe,CAC7B,QAAgC,EAAA;AAEhC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAA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,CAAC,CAAC,KAAK,KAAI;AAC7C,gBAAA,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE;oBAC1B,KAAK,CAAC,cAAc,EAAE;oBACtB,MAAM,CAAC,KAAK,CAAC;gBACf;AACF,YAAA,CAAC,CAAC;AACF,YAAA,UAAU,CAAC,MAAM,CACf,IAAI,eAAe,CAAC,qBAAqB,EAAE,IAAI,EAAE,QAAQ,CAAC,CAC3D;;;AAID,YAAA,IAAI,UAAU,CAAC,eAAe,EAAE;AAC9B,gBAAA,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,eAAe;AAC9C,oBAAA,sBAAsB;YAC1B;AACF,QAAA,CAAC,CAAC;IACJ;wGArDW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA;;4FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACXlC;;AAEG;;;;"}
|
|
@@ -253,6 +253,7 @@ class MultiSelectComponent extends DsControlValueAccessor {
|
|
|
253
253
|
resolvedAriaLabel = computed(() => this.ariaLabel() || this.placeholder(), ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
|
|
254
254
|
hintId = computed(() => this.message().text ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
|
|
255
255
|
fieldMessage = resolveFieldMessage({
|
|
256
|
+
disabled: () => this.isDisabled(),
|
|
256
257
|
hint: this.hint,
|
|
257
258
|
warning: this.warning,
|
|
258
259
|
error: this.error,
|