@ids-group-ltd/ids-design-system 0.12.3 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/CHANGELOG.md +895 -6
  2. package/components.md +94 -2
  3. package/docs/agent/INDEX.md +12 -1
  4. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +9 -0
  5. package/docs/agent/charts/chart-frame-the-box-a-chart-draws-around-itself.md +12 -0
  6. package/docs/agent/charts/ds-bar-chart.md +15 -0
  7. package/docs/agent/charts/ds-column-chart.md +14 -0
  8. package/docs/agent/charts/ds-config.md +12 -0
  9. package/docs/agent/charts/ds-donut-chart.md +17 -0
  10. package/docs/agent/charts/ds-funnel-chart.md +16 -0
  11. package/docs/agent/charts/ds-line-chart.md +15 -0
  12. package/docs/agent/forms/ds-button.md +4 -2
  13. package/docs/agent/forms/ds-number-stepper.md +1 -0
  14. package/docs/agent/navigation/ds-sidenav-item.md +1 -0
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +25 -18
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +177 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +58 -8
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +43 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -0
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +212 -0
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +1 -0
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +10 -4
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +196 -0
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +18 -10
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +311 -0
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -0
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +69 -17
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +388 -0
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +10 -14
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +672 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +5 -5
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -4
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +1 -0
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -10
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +1 -0
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -10
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +18 -7
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +1 -0
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +4 -3
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +1 -0
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -71
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +1 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +10 -4
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +31 -9
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +448 -12
  106. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +17 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +3 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system.mjs +10 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  113. package/migrations/0.13.0.json +530 -0
  114. package/migrations/0.13.1.json +236 -0
  115. package/package.json +57 -1
  116. package/styles/_chart-data-table.scss +95 -0
  117. package/styles/_chart-frame.scss +68 -0
  118. package/styles/_chart-interactive.scss +51 -0
  119. package/styles/_chart-motion.scss +88 -0
  120. package/styles/_dropdown-overlay.scss +9 -3
  121. package/styles/_focus.scss +11 -2
  122. package/styles/_overlay-motion.scss +10 -1
  123. package/styles/_tokens-charts.scss +154 -39
  124. package/styles/_tokens.scss +17 -4
  125. package/themes/dark/_theme.scss +37 -29
  126. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +17 -10
  127. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +119 -0
  128. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +37 -4
  129. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +34 -0
  130. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +84 -0
  131. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -1
  132. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +125 -0
  133. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +10 -2
  134. package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +127 -0
  135. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +52 -11
  136. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +128 -0
  137. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +5 -7
  138. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +268 -0
  139. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
  140. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +11 -3
  141. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +16 -4
  142. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +13 -28
  143. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +6 -1
  144. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +11 -1
  145. package/types/ids-group-ltd-ids-design-system-components.d.ts +171 -5
  146. package/types/ids-group-ltd-ids-design-system-core.d.ts +36 -2
  147. 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 { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\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 /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the\n * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed\n * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full\n * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark\n * and pays for it with the rest of the chart. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\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 * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'toggle'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\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. Unset falls back to\n * `DS_CONFIG.chart.emptyText`, then `'No data'`. */\n readonly emptyText = input<string | null>(null);\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. Unset falls back to `DS_CONFIG.chart.errorText`, then\n * `'Could not load the data'`. */\n readonly errorText = input<string | null>(null);\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale\n * grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n readonly dataTableResolved = resolveWithConfig(\n this.dataTable,\n (config) => config.chart?.dataTable,\n 'toggle' as ChartDataTable,\n );\n readonly emptyTextResolved = resolveWithConfig(\n this.emptyText,\n (config) => config.chart?.emptyText,\n 'No data',\n );\n readonly errorTextResolved = resolveWithConfig(\n this.errorText,\n (config) => config.chart?.errorText,\n 'Could not load the data',\n );\n readonly valueFormatResolved = resolveWithConfig(\n this.valueFormat,\n (config) => config.chart?.valueFormat,\n defaultValueFormat as ChartValueFormat,\n );\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 this.dimOthers() && 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 const category = this.categoryBands().indexAt(point.x - plot.left);\n this.activeCategory.set(category);\n this.tooltipOrigin.set(\n this.tooltipAnchor() === 'pointer'\n ? { x: event.clientX, y: event.clientY }\n : this.readingAnchor(screen, category),\n );\n }\n\n /** The highest reading in the category, mapped back into client pixels. Anchoring there rather\n * than at the cursor keeps the panel still while the pointer travels within one band, and puts\n * it over the readings it names instead of over the finger. */\n private readingAnchor(\n screen: DOMMatrix,\n category: number,\n ): ChartTooltipOrigin {\n const tops = this.plottedSeries().flatMap((entry) =>\n entry.markers\n .filter((marker) => marker.categoryIndex === category)\n .map((marker) => marker.y),\n );\n const y = tops.length ? Math.min(...tops) : this.layout().primaryPlot.top;\n const point = new DOMPoint(\n this.plotLeft() +\n this.categoryBands().position(category) +\n this.categoryBands().bandWidth / 2,\n y,\n ).matrixTransform(screen);\n\n return { x: point.x, y: point.y };\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 /** Where the tooltip is pinned. `'point'`, the default, is the highest reading in the category,\n * so the panel stays put while the pointer moves within one band. `'pointer'` follows the\n * cursor. */\n readonly tooltipAnchor = input<'point' | 'pointer'>('point');\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.valueFormatResolved();\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 /** Where the crosshair stops. Under `'stacked'` the two plots sit one above the other over one\n * category axis, so a crosshair that ends at the upper plot's baseline leaves the lower plot —\n * the same category, the same pointer — with nothing marked at all. */\n protected readonly cursorBottomY = computed(() =>\n this.stacked() ? this.secondaryBaselineY() : this.primaryBaselineY(),\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.valueFormatResolved();\n\n return this.categories().map((category, index) => ({\n category,\n cells: this.resolvedSeries().map((entry) => {\n const value = entry.values[index];\n\n return value === null || value === undefined ? '—' : 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.valueFormatResolved();\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.dataTableResolved() === 'none'\n ? ''\n : ' Full values in the table below.';\n\n return sentences.length === 0\n ? describeSeries(title, [], format, this.dataTableResolved() !== '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.valueFormatResolved()(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.valueFormatResolved();\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 {{ errorTextResolved() }}\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 {{ emptyTextResolved() }}\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 <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\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 animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\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 (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === '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,MA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A,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,oxSAAA,EAAA,MAAA,EAAA,CAAA,w+RAAA,CAAA,EAAA;05EAiV3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtctB;;AAEG;;;;"}
@@ -32,11 +32,12 @@ class ListItemComponent {
32
32
  /** Fires when the clickable row's button is activated. */
33
33
  activated = output();
34
34
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":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{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.title": "null", "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":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{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
36
36
  }
37
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, decorators: [{
38
38
  type: Component,
39
39
  args: [{ selector: 'ds-list-item', standalone: true, imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, host: {
40
+ '[attr.title]': 'null',
40
41
  role: 'listitem',
41
42
  '[attr.aria-current]': "selected() ? 'true' : null",
42
43
  '[class.clickable]': 'clickable()',
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA;;;MCQU,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,+EAAC;AACrC;AACgF;IACvE,SA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A,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,4BAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxB9B,4qCA0CA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED9BY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAYf,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,qBAAqB,EAAE,4BAA4B;AACnD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,QAAA,EAAA,4qCAAA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA;;;AEtBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: {\n '[attr.title]': 'null',\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA;;;MCWU,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,QAAQ,GAAG,KAAK,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EAAA,OAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,mBAAA,EAAA,4BAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3B9B,4qCA0CA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED9BY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAef,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAGnC;AACJ,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,qBAAqB,EAAE,4BAA4B;AACnD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,QAAA,EAAA,4qCAAA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA;;;AEzBH;;AAEG;;;;"}
@@ -100,11 +100,11 @@ class ModalCardComponent {
100
100
  this.closed.emit();
101
101
  }
102
102
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
103
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--font-heading);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
103
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
104
104
  }
105
105
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, decorators: [{
106
106
  type: Component,
107
- args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--font-heading);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
107
+ args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
108
108
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogRole", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
109
109
 
110
110
  class ModalComponent {
@@ -224,11 +224,11 @@ class ModalComponent {
224
224
  this.onClose();
225
225
  }
226
226
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
227
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--font-heading);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
227
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
228
228
  }
229
229
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, decorators: [{
230
230
  type: Component,
231
- args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--font-heading);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
231
+ args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@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", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
232
232
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], persistent: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistent", required: false }] }] } });
233
233
 
234
234
  const MODAL_CONFIRM_DATA = new InjectionToken('MODAL_CONFIRM_DATA');
@@ -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,