@ids-group-ltd/ids-design-system 0.14.1 → 0.14.3

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 (126) hide show
  1. package/CHANGELOG.md +336 -0
  2. package/components.md +41 -38
  3. package/docs/agent/INDEX.md +3 -3
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +3 -3
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +3 -3
  8. package/docs/agent/charts/ds-config.md +1 -1
  9. package/docs/agent/charts/ds-funnel-chart.md +3 -3
  10. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  11. package/docs/agent/charts/ds-line-chart.md +2 -2
  12. package/docs/agent/charts/ds-pie-chart.md +2 -2
  13. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  14. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  15. package/docs/agent/charts/line-series-component.md +1 -1
  16. package/docs/agent/feedback/ds-description-list.md +3 -0
  17. package/docs/agent/forms/ds-color-picker.md +1 -1
  18. package/docs/agent/forms/ds-date-picker.md +1 -1
  19. package/docs/agent/forms/ds-select.md +1 -1
  20. package/docs/agent/forms/ds-textarea.md +1 -1
  21. package/docs/agent/forms/ds-time-picker.md +1 -1
  22. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  23. package/docs/agent/foundations/tokens.md +1 -1
  24. package/docs/agent/navigation/ds-pagination.md +1 -1
  25. package/docs/agent/navigation/ds-tabs.md +2 -1
  26. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  27. package/docs/agent/overlays/ds-drawer.md +1 -1
  28. package/docs/agent/overlays/ds-modal.md +1 -1
  29. package/docs/agent/overlays/ds-popover.md +1 -1
  30. package/docs/agent/overlays/ds-tooltip.md +4 -4
  31. package/docs/agent/tables/ds-table.md +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +4 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +22 -16
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +19 -7
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +180 -19
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +175 -93
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +10 -11
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +28 -11
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -18
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +47 -7
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +11 -11
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +5 -3
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +11 -5
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +15 -13
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +35 -5
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +5 -4
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +32 -7
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +66 -6
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +84 -10
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +138 -10
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +25 -9
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +87 -11
  87. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +4 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  91. package/migrations/0.14.2.json +427 -0
  92. package/migrations/0.14.3.json +71 -0
  93. package/package.json +1 -1
  94. package/schematics/check-overrides/surface.json +36 -2
  95. package/styles/_chart-frame.scss +34 -12
  96. package/styles/_chart-interactive.scss +10 -9
  97. package/styles/_chart-motion.scss +139 -16
  98. package/styles/_overlay-motion.scss +6 -0
  99. package/styles/_tokens.scss +19 -4
  100. package/themes/_semantic.scss +1 -0
  101. package/themes/dark/_theme.scss +1 -0
  102. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +24 -10
  103. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
  104. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +6 -1
  105. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +33 -2
  106. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +151 -103
  107. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
  108. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
  109. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
  110. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +1 -1
  111. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
  112. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +23 -11
  113. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +29 -2
  114. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -8
  115. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
  116. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +17 -7
  117. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +20 -2
  118. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +6 -2
  119. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +13 -2
  120. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +31 -5
  121. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
  122. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +20 -2
  123. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +11 -2
  124. package/types/ids-group-ltd-ids-design-system-components.d.ts +33 -6
  125. package/types/ids-group-ltd-ids-design-system-core.d.ts +14 -1
  126. package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, numberAttribute, booleanAttribute, inject, output, contentChild, computed, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
2
+ import { input, numberAttribute, booleanAttribute, inject, output, contentChild, signal, computed, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { CHART_SERIES_COLORS, chartRenderGate, leaveMark, resolveChartDefaults, staggerDelay, rovingMarks, describeShare, chartColors, shareOfTotal, formatPercent, describeSeries } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
5
5
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
@@ -135,6 +135,10 @@ class BarChartComponent {
135
135
  * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
136
136
  * `LOCALE_ID`. */
137
137
  valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
138
+ /** Holds the clicked row and its tooltip in place, with a pin disc on it, until a second click,
139
+ * Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
140
+ * `true`. `rowClicked` fires either way - pinning is a state, not a handler. */
141
+ pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
138
142
  defaults = resolveChartDefaults(this);
139
143
  intl = inject(DS_INTL);
140
144
  frameResolved = this.defaults.frame;
@@ -149,11 +153,6 @@ class BarChartComponent {
149
153
  /** The row that was clicked, or activated with Enter or Space. Fires whether or not
150
154
  * `interactive` is set. */
151
155
  rowClicked = output();
152
- /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press
153
- * outside releases it. Off by default: a click is already the drill-down hook, and a mark left
154
- * lit after the pointer has gone needs a reader who knows why it is lit. `rowClicked` fires
155
- * either way — pinning is a state, not a handler. */
156
- pinOnClick = input(false, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
157
156
  /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
158
157
  * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
159
158
  * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
@@ -169,22 +168,29 @@ class BarChartComponent {
169
168
  const highlighted = this.highlighted();
170
169
  return highlighted !== null && highlighted !== key;
171
170
  }
172
- /** Milliseconds between one mark's entrance and the next. `0`, the default, is no stagger at
173
- * all; `40` is the documented non-zero step. The total is capped, so a long series does not
174
- * crawl in. */
175
- staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
171
+ /** Milliseconds between one row's entrance and the next, `40` by default; `0` turns the stagger
172
+ * off. The whole spread stays within 260ms, so a long chart
173
+ * narrows the step instead of crawling in. */
174
+ staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
176
175
  markStagger(index) {
177
- return `${staggerDelay(index, this.staggerMs())}ms`;
176
+ return `${staggerDelay(index, this.rows().length, this.staggerMs())}ms`;
178
177
  }
179
178
  /** Whether a hovered or focused row opens a tooltip. `'axis'` is not offered — a bar
180
179
  * chart's marks ARE its categories, so an axis tooltip would repeat the item one. */
181
180
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
182
181
  tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
183
182
  tooltipLingerResolved = this.defaults.tooltipLingerMs;
184
- activeMark = chartActiveMark(() => this.tooltipLingerResolved());
183
+ activeMark = chartActiveMark(() => this.tooltipLingerResolved(), () => this.defaults.hoverDelayMs());
184
+ hoveredLabel = signal(-1, ...(ngDevMode ? [{ debugName: "hoveredLabel" }] : /* istanbul ignore next */ []));
185
+ /** Naming a row by its label fades the rest whether or not `dimOthers` is set, the way a legend
186
+ * singles out its series. The row itself answers the pointer, so the fade waits out the same
187
+ * hover delay as the tooltip. */
188
+ dimsOthers = computed(() => this.dimOthers() ||
189
+ (this.hoveredLabel() !== -1 &&
190
+ this.hoveredLabel() === this.activeMark.index()), ...(ngDevMode ? [{ debugName: "dimsOthers" }] : /* istanbul ignore next */ []));
185
191
  onMarkClick(payload, index, event) {
186
192
  this.rowClicked.emit(payload);
187
- if (this.pinOnClick()) {
193
+ if (this.defaults.pinOnClick()) {
188
194
  this.activeMark.pin(index, event, '.fill');
189
195
  }
190
196
  }
@@ -339,7 +345,7 @@ class BarChartComponent {
339
345
  * when the data lands; falls back to three when `data` is still empty. */
340
346
  skeletonRows = computed(() => Array.from({ length: Math.max(this.data().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
341
347
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
342
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BarChartComponent, isStandalone: true, selector: "ds-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, showPercent: { classPropertyName: "showPercent", publicName: "showPercent", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowClicked: "rowClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span class=\"label\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.row .fill{transform-origin:left}.fill{animation:ds-chart-mark-grow-x var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.row.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.bar-chart{--_bar-chart-band-color: var(--ds-bar-chart-band-color, var(--ds-chart-grid-line-color));--_bar-chart-target-color: var(--ds-bar-chart-target-color, var(--text-primary));--_bar-chart-target-width: var(--ds-bar-chart-target-width, 2px);--_bar-chart-target-overhang: var(--ds-bar-chart-target-overhang, 3px);--_bar-chart-track-color: var(--ds-bar-chart-track-color, var(--ds-chart-grid-line-color));--_bar-chart-track-height: var(--ds-bar-chart-track-height, 12px);--_bar-chart-cap-radius: var( --ds-bar-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_bar-chart-row-gap: var(--ds-bar-chart-row-gap, var(--space-5));--_bar-chart-label-gap: var(--ds-bar-chart-label-gap, var(--space-1));margin:0}.rows .row{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.rows .row.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.rows.dims-others:not(:has(.row.is-pinned)):has(.row.interactive:hover) .row.interactive:not(:hover),.rows.dims-others:not(:has(.row.is-pinned)):has(.row.interactive:focus-visible) .row.interactive:not(:focus-visible),.rows.dims-others:has(.row.is-pinned) .row:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.rows .row.interactive{cursor:pointer}.rows{display:grid}.skeleton{display:grid;row-gap:var(--_bar-chart-row-gap)}.row{padding-block:calc(var(--_bar-chart-row-gap) / 2);display:grid;grid-template-columns:1fr auto auto;gap:var(--_bar-chart-label-gap) var(--space-2);align-items:baseline}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_bar-chart-track-height) + var(--_bar-chart-row-gap)));margin:0;color:var(--text-secondary);text-align:center}.label{color:var(--text-secondary)}.value{font-weight:700}.percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.track{position:relative;grid-column:1/-1;block-size:var(--_bar-chart-track-height);border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-track-color)}.band{position:absolute;inset-block:0;inset-inline-start:0;border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-band-color)}.target{position:absolute;inset-block:calc(-1 * var(--_bar-chart-target-overhang));inline-size:var(--_bar-chart-target-width);margin-inline-start:calc(-1 * var(--_bar-chart-target-width) / 2);border-radius:var(--_bar-chart-target-width);background:var(--_bar-chart-target-color)}.fill{position:relative;display:flex;block-size:100%;max-inline-size:100%;border-radius:inherit;transition:inline-size var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-end:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.label>.detail{display:block;color:var(--text-secondary);font-size:var(--font-size-xs)}.segment{block-size:100%}.segment:first-of-type{border-start-start-radius:var(--_bar-chart-cap-radius);border-end-start-radius:var(--_bar-chart-cap-radius)}.segment:last-of-type{border-start-end-radius:var(--_bar-chart-cap-radius);border-end-end-radius:var(--_bar-chart-cap-radius)}.segment+.segment{border-inline-start:2px solid var(--ds-chart-frame-bg-color, var(--surface-default))}.segment{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.segment.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.fill>.pin-marker{position:absolute;inset-inline-start:0;inset-block-start:50%;translate:0 -50%}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
348
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BarChartComponent, isStandalone: true, selector: "ds-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, showPercent: { classPropertyName: "showPercent", publicName: "showPercent", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowClicked: "rowClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimsOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span\n class=\"label\"\n (pointerenter)=\"hoveredLabel.set(index)\"\n (pointerleave)=\"hoveredLabel.set(-1)\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.row .fill{transform-origin:left}.row .fill:dir(rtl){transform-origin:right}.fill{animation:ds-chart-mark-grow-x var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.fill{animation-delay:0ms}}.row.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value,.percent,.target{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value,.percent,.target{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.bar-chart{--_bar-chart-band-color: var(--ds-bar-chart-band-color, var(--ds-chart-grid-line-color));--_bar-chart-target-color: var(--ds-bar-chart-target-color, var(--text-primary));--_bar-chart-target-width: var(--ds-bar-chart-target-width, 2px);--_bar-chart-target-overhang: var(--ds-bar-chart-target-overhang, 3px);--_bar-chart-track-color: var(--ds-bar-chart-track-color, var(--ds-chart-grid-line-color));--_bar-chart-track-height: var(--ds-bar-chart-track-height, 12px);--_bar-chart-cap-radius: var( --ds-bar-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_bar-chart-row-gap: var(--ds-bar-chart-row-gap, var(--space-5));--_bar-chart-label-gap: var(--ds-bar-chart-label-gap, var(--space-1));margin:0}.rows .row{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.rows .row.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.rows.dims-others:not(:has(.row.is-pinned)):has(.row.is-active) .row:not(.is-active),.rows.dims-others:has(.row.is-pinned) .row:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.rows .row.interactive,.rows .row.pins{cursor:pointer}.rows{display:grid}.skeleton{display:grid;row-gap:var(--_bar-chart-row-gap)}.row{padding-block:calc(var(--_bar-chart-row-gap) / 2);display:grid;grid-template-columns:1fr auto auto;gap:var(--_bar-chart-label-gap) var(--space-2);align-items:baseline}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_bar-chart-track-height) + var(--_bar-chart-row-gap)));margin:0;color:var(--text-secondary);text-align:center}.label{justify-self:start;color:var(--text-secondary)}.value{font-weight:700}.percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.track{position:relative;grid-column:1/-1;block-size:var(--_bar-chart-track-height);border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-track-color)}.band{position:absolute;inset-block:0;inset-inline-start:0;border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-band-color)}.target{position:absolute;inset-block:calc(-1 * var(--_bar-chart-target-overhang));inline-size:var(--_bar-chart-target-width);margin-inline-start:calc(-1 * var(--_bar-chart-target-width) / 2);border-radius:var(--_bar-chart-target-width);background:var(--_bar-chart-target-color)}.fill{position:relative;display:flex;block-size:100%;max-inline-size:100%;border-radius:inherit;transition:inline-size var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.label>.detail{display:block;color:var(--text-secondary);font-size:var(--font-size-xs)}.segment{block-size:100%}.segment:first-of-type{border-start-start-radius:var(--_bar-chart-cap-radius);border-end-start-radius:var(--_bar-chart-cap-radius)}.segment:last-of-type{border-start-end-radius:var(--_bar-chart-cap-radius);border-end-end-radius:var(--_bar-chart-cap-radius)}.segment+.segment{border-inline-start:2px solid var(--ds-chart-frame-bg-color, var(--surface-default))}.segment{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.segment.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.fill>.pin-marker{position:absolute;inset-inline-start:0;inset-block-start:50%;translate:0 -50%}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
343
349
  }
344
350
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BarChartComponent, decorators: [{
345
351
  type: Component,
@@ -348,8 +354,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
348
354
  ChartTooltipDirective,
349
355
  IconComponent,
350
356
  ChartDataTableComponent,
351
- ], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span class=\"label\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.row .fill{transform-origin:left}.fill{animation:ds-chart-mark-grow-x var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.row.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.bar-chart{--_bar-chart-band-color: var(--ds-bar-chart-band-color, var(--ds-chart-grid-line-color));--_bar-chart-target-color: var(--ds-bar-chart-target-color, var(--text-primary));--_bar-chart-target-width: var(--ds-bar-chart-target-width, 2px);--_bar-chart-target-overhang: var(--ds-bar-chart-target-overhang, 3px);--_bar-chart-track-color: var(--ds-bar-chart-track-color, var(--ds-chart-grid-line-color));--_bar-chart-track-height: var(--ds-bar-chart-track-height, 12px);--_bar-chart-cap-radius: var( --ds-bar-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_bar-chart-row-gap: var(--ds-bar-chart-row-gap, var(--space-5));--_bar-chart-label-gap: var(--ds-bar-chart-label-gap, var(--space-1));margin:0}.rows .row{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.rows .row.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.rows.dims-others:not(:has(.row.is-pinned)):has(.row.interactive:hover) .row.interactive:not(:hover),.rows.dims-others:not(:has(.row.is-pinned)):has(.row.interactive:focus-visible) .row.interactive:not(:focus-visible),.rows.dims-others:has(.row.is-pinned) .row:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.rows .row.interactive{cursor:pointer}.rows{display:grid}.skeleton{display:grid;row-gap:var(--_bar-chart-row-gap)}.row{padding-block:calc(var(--_bar-chart-row-gap) / 2);display:grid;grid-template-columns:1fr auto auto;gap:var(--_bar-chart-label-gap) var(--space-2);align-items:baseline}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_bar-chart-track-height) + var(--_bar-chart-row-gap)));margin:0;color:var(--text-secondary);text-align:center}.label{color:var(--text-secondary)}.value{font-weight:700}.percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.track{position:relative;grid-column:1/-1;block-size:var(--_bar-chart-track-height);border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-track-color)}.band{position:absolute;inset-block:0;inset-inline-start:0;border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-band-color)}.target{position:absolute;inset-block:calc(-1 * var(--_bar-chart-target-overhang));inline-size:var(--_bar-chart-target-width);margin-inline-start:calc(-1 * var(--_bar-chart-target-width) / 2);border-radius:var(--_bar-chart-target-width);background:var(--_bar-chart-target-color)}.fill{position:relative;display:flex;block-size:100%;max-inline-size:100%;border-radius:inherit;transition:inline-size var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-end:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.label>.detail{display:block;color:var(--text-secondary);font-size:var(--font-size-xs)}.segment{block-size:100%}.segment:first-of-type{border-start-start-radius:var(--_bar-chart-cap-radius);border-end-start-radius:var(--_bar-chart-cap-radius)}.segment:last-of-type{border-start-end-radius:var(--_bar-chart-cap-radius);border-end-end-radius:var(--_bar-chart-cap-radius)}.segment+.segment{border-inline-start:2px solid var(--ds-chart-frame-bg-color, var(--surface-default))}.segment{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.segment.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.fill>.pin-marker{position:absolute;inset-inline-start:0;inset-block-start:50%;translate:0 -50%}\n"] }]
352
- }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], showPercent: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPercent", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }] } });
357
+ ], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimsOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span\n class=\"label\"\n (pointerenter)=\"hoveredLabel.set(index)\"\n (pointerleave)=\"hoveredLabel.set(-1)\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.row .fill{transform-origin:left}.row .fill:dir(rtl){transform-origin:right}.fill{animation:ds-chart-mark-grow-x var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.fill{animation-delay:0ms}}.row.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value,.percent,.target{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value,.percent,.target{animation-delay:0ms}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.bar-chart{--_bar-chart-band-color: var(--ds-bar-chart-band-color, var(--ds-chart-grid-line-color));--_bar-chart-target-color: var(--ds-bar-chart-target-color, var(--text-primary));--_bar-chart-target-width: var(--ds-bar-chart-target-width, 2px);--_bar-chart-target-overhang: var(--ds-bar-chart-target-overhang, 3px);--_bar-chart-track-color: var(--ds-bar-chart-track-color, var(--ds-chart-grid-line-color));--_bar-chart-track-height: var(--ds-bar-chart-track-height, 12px);--_bar-chart-cap-radius: var( --ds-bar-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_bar-chart-row-gap: var(--ds-bar-chart-row-gap, var(--space-5));--_bar-chart-label-gap: var(--ds-bar-chart-label-gap, var(--space-1));margin:0}.rows .row{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.rows .row.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.rows.dims-others:not(:has(.row.is-pinned)):has(.row.is-active) .row:not(.is-active),.rows.dims-others:has(.row.is-pinned) .row:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.rows .row.interactive,.rows .row.pins{cursor:pointer}.rows{display:grid}.skeleton{display:grid;row-gap:var(--_bar-chart-row-gap)}.row{padding-block:calc(var(--_bar-chart-row-gap) / 2);display:grid;grid-template-columns:1fr auto auto;gap:var(--_bar-chart-label-gap) var(--space-2);align-items:baseline}.empty{display:grid;place-items:center;min-block-size:calc(3 * (var(--_bar-chart-track-height) + var(--_bar-chart-row-gap)));margin:0;color:var(--text-secondary);text-align:center}.label{justify-self:start;color:var(--text-secondary)}.value{font-weight:700}.percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.track{position:relative;grid-column:1/-1;block-size:var(--_bar-chart-track-height);border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-track-color)}.band{position:absolute;inset-block:0;inset-inline-start:0;border-radius:var(--_bar-chart-cap-radius);background:var(--_bar-chart-band-color)}.target{position:absolute;inset-block:calc(-1 * var(--_bar-chart-target-overhang));inline-size:var(--_bar-chart-target-width);margin-inline-start:calc(-1 * var(--_bar-chart-target-width) / 2);border-radius:var(--_bar-chart-target-width);background:var(--_bar-chart-target-color)}.fill{position:relative;display:flex;block-size:100%;max-inline-size:100%;border-radius:inherit;transition:inline-size var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.label>.detail{display:block;color:var(--text-secondary);font-size:var(--font-size-xs)}.segment{block-size:100%}.segment:first-of-type{border-start-start-radius:var(--_bar-chart-cap-radius);border-end-start-radius:var(--_bar-chart-cap-radius)}.segment:last-of-type{border-start-end-radius:var(--_bar-chart-cap-radius);border-end-end-radius:var(--_bar-chart-cap-radius)}.segment+.segment{border-inline-start:2px solid var(--ds-chart-frame-bg-color, var(--surface-default))}.segment{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background-color var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.segment.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.fill>.pin-marker{position:absolute;inset-inline-start:0;inset-block-start:50%;translate:0 -50%}\n"] }]
358
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], showPercent: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPercent", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }] } });
353
359
 
354
360
  /**
355
361
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-bar-chart.mjs","sources":["../../../src/lib/components/bar-chart/bar-chart.math.ts","../../../src/lib/components/bar-chart/bar-chart.component.ts","../../../src/lib/components/bar-chart/bar-chart.component.html","../../../src/lib/components/bar-chart/ids-group-ltd-ids-design-system-components-bar-chart.ts"],"sourcesContent":["import type { BarChartValue } from './bar-chart.types';\n\n/** Where a row's bar starts and ends on the value axis.\n *\n * A plain number spans from zero, negative included - a reading below zero hangs from the\n * baseline rather than reaching up to it. A pair is normalised, because a bar of negative width\n * draws nothing at all and a reader who wrote the ends backwards meant the same band. A\n * non-finite end collapses the whole extent, so one bad reading draws no bar rather than a bar of\n * unknown length.\n *\n * @internal */\nexport function barExtent(value: BarChartValue): { low: number; high: number } {\n if (typeof value === 'number') {\n return Number.isFinite(value)\n ? { low: Math.min(0, value), high: Math.max(0, value) }\n : { low: 0, high: 0 };\n }\n const [first, second] = value;\n\n return Number.isFinite(first) && Number.isFinite(second)\n ? { low: Math.min(first, second), high: Math.max(first, second) }\n : { low: 0, high: 0 };\n}\n\n/** Largest finite value, or `explicitMax` when it is a usable track length. A\n * non-finite datum is skipped rather than compared: one `Infinity` row would\n * otherwise become the track length and flatten every other row to nothing. */\nexport function resolveMax(\n explicitMax: number | null,\n values: readonly number[],\n): number {\n if (explicitMax !== null && Number.isFinite(explicitMax) && explicitMax > 0) {\n return explicitMax;\n }\n const finite = values.filter((value) => Number.isFinite(value));\n\n return finite.length ? Math.max(...finite) : 0;\n}\n\n/** Track share for one row, in percent. Has no upper bound: an explicit `max`\n * below the data is the caller's statement, and `.track` clips the overflow. */\nexport function widthPercent(value: number, max: number): number {\n // Math.max(NaN, 0) is NaN, so the lower clamp cannot stand in for this test —\n // and the result is written into a style attribute, where `width: NaN%` is\n // dropped silently.\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) {\n return 0;\n }\n\n return Math.max((value / max) * 100, 0);\n}\n\n/** Each segment's share of the row's track, in percent. Sized against the segments' OWN sum, never\n * the row's `value`: when the two disagree the row is a distribution that does not add up, and a\n * gap left where the difference is would draw that error as an unlabelled category.\n *\n * A set with no positive finite total has no shares to give, and returns none. */\nexport function segmentWidths(values: readonly number[]): number[] {\n const total = values\n .filter((value) => Number.isFinite(value) && value > 0)\n .reduce((sum, value) => sum + value, 0);\n if (total <= 0) {\n return [];\n }\n\n return values.map((value) =>\n Number.isFinite(value) && value > 0 ? (value / total) * 100 : 0,\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n chartColors,\n describeSeries,\n formatPercent,\n describeShare,\n shareOfTotal,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n barExtent,\n resolveMax,\n segmentWidths,\n widthPercent,\n} from './bar-chart.math';\nimport type { BarChartRow, BarChartSegment } from './bar-chart.types';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\n\n/** A row's parts, ready to draw: a width, a colour and a formatted value each. Segments are\n * CATEGORIES, so they take the categorical palette in order — unlike the rows, which are one\n * series and share one colour. */\nfunction segmentsOf(\n row: BarChartRow,\n format: (value: number) => string,\n): readonly {\n key: string;\n segment: BarChartSegment;\n widthPercent: number;\n formattedValue: string;\n color: string;\n}[] {\n const parts = row.segments ?? [];\n const widths = segmentWidths(parts.map((part) => part.value));\n\n return widths.length\n ? parts.map((segment, index) => ({\n key: segment.id ?? String(index),\n segment,\n widthPercent: widths[index],\n formattedValue: format(segment.value),\n color:\n segment.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n }))\n : [];\n}\n\n@Component({\n selector: 'ds-bar-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartTooltipDirective,\n IconComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './bar-chart.component.html',\n styleUrl: './bar-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BarChartComponent {\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One row per bar, drawn in the order given. */\n readonly data = input.required<readonly BarChartRow[]>();\n\n /** Track length is relative to this. Null uses the largest value, so the\n * longest row always fills its track. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\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 `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares that the marks are parts of one whole, which is what makes a share of their total a\n * real quantity. Off by default: a chart of visitors per stage or revenue per month sums to a\n * number nobody can point at, and \"18.6% of total\" against it is arithmetic dressed as a fact.\n * On, each mark's share appears on the tooltip's second line and in the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Prints each row's share of `max` beside its value. */\n readonly showPercent = input(true, { transform: booleanAttribute });\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_INTL.chart.empty`. */\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_INTL.chart.error`. */\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 `DS_CONFIG.locale` /\n * `LOCALE_ID`. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n private readonly defaults = resolveChartDefaults(this);\n protected readonly intl = inject(DS_INTL);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n /** Turns on the click affordance — the pointer cursor and any hover tint.\n * The click output fires whether or not this is set, so a consumer that\n * binds the output and forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The row that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly rowClicked = output<BarChartRow>();\n\n /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press\n * outside releases it. Off by default: a click is already the drill-down hook, and a mark left\n * lit after the pointer has gone needs a reader who knows why it is lit. `rowClicked` fires\n * either way — pinning is a state, not a handler. */\n readonly pinOnClick = input(false, { transform: booleanAttribute });\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 /** The segment to single out, by its `id` - or by its position as a string where it has none.\n * Every other segment in every row fades, the same answer `highlighted` gives on a series\n * mark. Independent of `dimOthers`, which governs what a pointer does. A row without segments\n * is unaffected. */\n readonly highlighted = input<string | null>(null);\n\n protected isSegmentDimmed(key: string): boolean {\n const highlighted = this.highlighted();\n\n return highlighted !== null && highlighted !== key;\n }\n\n /** Milliseconds between one mark's 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 series does not\n * 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 /** Whether a hovered or focused row opens a tooltip. `'axis'` is not offered — a bar\n * chart's marks ARE its categories, so an axis tooltip would repeat the item one. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(() =>\n this.tooltipLingerResolved(),\n );\n\n protected onMarkClick(\n payload: BarChartRow,\n index: number,\n event: Event,\n ): void {\n this.rowClicked.emit(payload);\n if (this.pinOnClick()) {\n this.activeMark.pin(index, event, '.fill');\n }\n }\n protected readonly roving = rovingMarks(() => this.rows().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event, '.fill');\n }\n\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('.rows'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.rows()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n // A segmented bar draws several readings the row label cannot name, so the row heads the\n // panel and each segment gets its own line. Repeating the label the pointer is already on\n // would tell the reader nothing.\n if (entry.segments.length) {\n const values = entry.segments.map((part) => part.segment.value);\n\n return {\n category: entry.row.label,\n entries: entry.segments.map((part, partIndex) => ({\n label: part.segment.label,\n value: part.segment.value,\n formatted: part.formattedValue,\n color: part.color,\n detail: describeShare(\n values,\n partIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n ),\n })),\n };\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.row.label,\n value: barExtent(entry.row.value).high,\n formatted: entry.formattedValue,\n color: entry.color,\n detail: this.partOfWhole()\n ? describeShare(\n this.data().map((row) => {\n const extent = barExtent(row.value);\n\n return extent.high - extent.low;\n }),\n this.activeMark.index(),\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n )\n : undefined,\n },\n ],\n };\n },\n );\n\n /** The track has to hold the far end of every bar, the target tick and the outermost band -\n * a goal above every reading is the one the chart is read for, and an axis derived from the\n * bars alone would draw it off the end. */\n protected readonly resolvedMax = computed(() =>\n resolveMax(\n this.max(),\n this.data().flatMap((row) => [\n barExtent(row.value).high,\n row.target ?? 0,\n ...(row.ranges ?? []),\n ]),\n ),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() =>\n this.partOfWhole()\n ? [\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n this.intl().chart.shareColumn,\n ]\n : [this.intl().chart.labelColumn, this.intl().chart.valueColumn],\n );\n\n /** A row's segments follow it as nested rows: one table reads in one pass, and a segment is\n * read against the bar it belongs to rather than against the other bars. */\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.rows().flatMap((entry) => [\n {\n key: `bar:${entry.key}`,\n cells: this.partOfWhole()\n ? [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n entry.share,\n ]\n : [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n ],\n },\n ...entry.segments.map((part) => ({\n // Both keys fall back to a positional index in their OWN scope, and flattening puts\n // them in one list - a bar and its first segment would otherwise both be \"0\".\n key: `bar:${entry.key}/${part.key}`,\n nested: true,\n cells: this.partOfWhole()\n ? [part.segment.label, part.formattedValue, '']\n : [part.segment.label, part.formattedValue],\n })),\n ]),\n );\n\n protected readonly rows = computed(() => {\n const max = this.resolvedMax();\n const format = this.valueFormatResolved();\n // The bar's LENGTH is what a share is a share of, and on a floating bar that is the span\n // between its ends rather than either end on its own.\n const values = this.data().map((row) => {\n const extent = barExtent(row.value);\n\n return extent.high - extent.low;\n });\n\n return this.data().map((row, index) => {\n const extent = barExtent(row.value);\n const span = extent.high - extent.low;\n const isRange = typeof row.value !== 'number';\n\n return {\n key: row.id ?? String(index),\n row,\n offsetPercent: widthPercent(extent.low, max),\n widthPercent: widthPercent(span, max),\n formattedValue: isRange\n ? `${format(extent.low, 'tooltip')} - ${format(extent.high, 'tooltip')}`\n : format(extent.high, 'tooltip'),\n targetPercent:\n row.target === undefined ? null : widthPercent(row.target, max),\n formattedTarget:\n row.target === undefined ? '' : format(row.target, 'tooltip'),\n bands: (row.ranges ?? []).map((bound, bandIndex, all) => ({\n key: `${row.id ?? index}-band-${bandIndex}`,\n widthPercent: widthPercent(bound, max),\n // Rising opacity rather than rising hue: the bands are one backdrop read as an order,\n // and a second palette behind the bars would compete with the bars themselves.\n opacity: (bandIndex + 1) / (all.length + 1),\n })),\n formattedPercent:\n row.percent !== undefined\n ? formatPercent(row.percent, 100, this.defaults.locale)\n : formatPercent(span, max, this.defaults.locale),\n share: this.partOfWhole()\n ? shareOfTotal(values, index, this.defaults.locale)\n : '',\n segments: segmentsOf(row, (value) => format(value, 'tooltip')),\n color: row.color ?? chartColors.seriesDefault,\n };\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n this.data().map((row) => ({\n label: row.label,\n value: barExtent(row.value).high - barExtent(row.value).low,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n ),\n );\n\n protected entryLabel(entry: { row: BarChartRow; formattedValue: string }) {\n return `${entry.row.label}, ${entry.formattedValue}`;\n }\n\n protected onRowKey(row: BarChartRow, event: Event): void {\n // Only the row's own key opens the row: a key pressed on a control inside it belongs to that\n // control.\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.rowClicked.emit(row);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n /** Placeholder bars while loading. Follows the real row count so the chart does not resize\n * when the data lands; falls back to three when `data` is still empty. */\n protected readonly skeletonRows = computed(() =>\n Array.from({ length: Math.max(this.data().length, 3) }),\n );\n}\n","<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span class=\"label\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA;;;;;;;;AAQgB;AACV,SAAU,SAAS,CAAC,KAAoB,EAAA;AAC5C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK;cACxB,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC;cACnD,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IACzB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MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAQd,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP;wBACP,iBAAiB;wBACjB,qBAAqB;wBACrB,aAAa;wBACb,uBAAuB;AACxB,qBAAA,EAAA,IAAA,EAGK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,EAAA,aAAA,EACzC,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8gJAAA,EAAA,MAAA,EAAA,CAAA,4iQAAA,CAAA,EAAA;4hEAiI3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/NtB;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-bar-chart.mjs","sources":["../../../src/lib/components/bar-chart/bar-chart.math.ts","../../../src/lib/components/bar-chart/bar-chart.component.ts","../../../src/lib/components/bar-chart/bar-chart.component.html","../../../src/lib/components/bar-chart/ids-group-ltd-ids-design-system-components-bar-chart.ts"],"sourcesContent":["import type { BarChartValue } from './bar-chart.types';\n\n/** Where a row's bar starts and ends on the value axis.\n *\n * A plain number spans from zero, negative included - a reading below zero hangs from the\n * baseline rather than reaching up to it. A pair is normalised, because a bar of negative width\n * draws nothing at all and a reader who wrote the ends backwards meant the same band. A\n * non-finite end collapses the whole extent, so one bad reading draws no bar rather than a bar of\n * unknown length.\n *\n * @internal */\nexport function barExtent(value: BarChartValue): { low: number; high: number } {\n if (typeof value === 'number') {\n return Number.isFinite(value)\n ? { low: Math.min(0, value), high: Math.max(0, value) }\n : { low: 0, high: 0 };\n }\n const [first, second] = value;\n\n return Number.isFinite(first) && Number.isFinite(second)\n ? { low: Math.min(first, second), high: Math.max(first, second) }\n : { low: 0, high: 0 };\n}\n\n/** Largest finite value, or `explicitMax` when it is a usable track length. A\n * non-finite datum is skipped rather than compared: one `Infinity` row would\n * otherwise become the track length and flatten every other row to nothing. */\nexport function resolveMax(\n explicitMax: number | null,\n values: readonly number[],\n): number {\n if (explicitMax !== null && Number.isFinite(explicitMax) && explicitMax > 0) {\n return explicitMax;\n }\n const finite = values.filter((value) => Number.isFinite(value));\n\n return finite.length ? Math.max(...finite) : 0;\n}\n\n/** Track share for one row, in percent. Has no upper bound: an explicit `max`\n * below the data is the caller's statement, and `.track` clips the overflow. */\nexport function widthPercent(value: number, max: number): number {\n // Math.max(NaN, 0) is NaN, so the lower clamp cannot stand in for this test —\n // and the result is written into a style attribute, where `width: NaN%` is\n // dropped silently.\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) {\n return 0;\n }\n\n return Math.max((value / max) * 100, 0);\n}\n\n/** Each segment's share of the row's track, in percent. Sized against the segments' OWN sum, never\n * the row's `value`: when the two disagree the row is a distribution that does not add up, and a\n * gap left where the difference is would draw that error as an unlabelled category.\n *\n * A set with no positive finite total has no shares to give, and returns none. */\nexport function segmentWidths(values: readonly number[]): number[] {\n const total = values\n .filter((value) => Number.isFinite(value) && value > 0)\n .reduce((sum, value) => sum + value, 0);\n if (total <= 0) {\n return [];\n }\n\n return values.map((value) =>\n Number.isFinite(value) && value > 0 ? (value / total) * 100 : 0,\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n chartColors,\n describeSeries,\n formatPercent,\n describeShare,\n shareOfTotal,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n barExtent,\n resolveMax,\n segmentWidths,\n widthPercent,\n} from './bar-chart.math';\nimport type { BarChartRow, BarChartSegment } from './bar-chart.types';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\n\n/** A row's parts, ready to draw: a width, a colour and a formatted value each. Segments are\n * CATEGORIES, so they take the categorical palette in order — unlike the rows, which are one\n * series and share one colour. */\nfunction segmentsOf(\n row: BarChartRow,\n format: (value: number) => string,\n): readonly {\n key: string;\n segment: BarChartSegment;\n widthPercent: number;\n formattedValue: string;\n color: string;\n}[] {\n const parts = row.segments ?? [];\n const widths = segmentWidths(parts.map((part) => part.value));\n\n return widths.length\n ? parts.map((segment, index) => ({\n key: segment.id ?? String(index),\n segment,\n widthPercent: widths[index],\n formattedValue: format(segment.value),\n color:\n segment.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n }))\n : [];\n}\n\n@Component({\n selector: 'ds-bar-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartTooltipDirective,\n IconComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './bar-chart.component.html',\n styleUrl: './bar-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BarChartComponent {\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One row per bar, drawn in the order given. */\n readonly data = input.required<readonly BarChartRow[]>();\n\n /** Track length is relative to this. Null uses the largest value, so the\n * longest row always fills its track. */\n readonly max = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\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 `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares that the marks are parts of one whole, which is what makes a share of their total a\n * real quantity. Off by default: a chart of visitors per stage or revenue per month sums to a\n * number nobody can point at, and \"18.6% of total\" against it is arithmetic dressed as a fact.\n * On, each mark's share appears on the tooltip's second line and in the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Prints each row's share of `max` beside its value. */\n readonly showPercent = input(true, { transform: booleanAttribute });\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_INTL.chart.empty`. */\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_INTL.chart.error`. */\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 `DS_CONFIG.locale` /\n * `LOCALE_ID`. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n /** Holds the clicked row and its tooltip in place, with a pin disc on it, until a second click,\n * Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then\n * `true`. `rowClicked` fires either way - pinning is a state, not a handler. */\n readonly pinOnClick = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n protected readonly defaults = resolveChartDefaults(this);\n protected readonly intl = inject(DS_INTL);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n /** Turns on the click affordance — the pointer cursor and any hover tint.\n * The click output fires whether or not this is set, so a consumer that\n * binds the output and forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The row that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly rowClicked = output<BarChartRow>();\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 /** The segment to single out, by its `id` - or by its position as a string where it has none.\n * Every other segment in every row fades, the same answer `highlighted` gives on a series\n * mark. Independent of `dimOthers`, which governs what a pointer does. A row without segments\n * is unaffected. */\n readonly highlighted = input<string | null>(null);\n\n protected isSegmentDimmed(key: string): boolean {\n const highlighted = this.highlighted();\n\n return highlighted !== null && highlighted !== key;\n }\n\n /** Milliseconds between one row's entrance and the next, `40` by default; `0` turns the stagger\n * off. The whole spread stays within 260ms, so a long chart\n * narrows the step instead of crawling in. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.rows().length, this.staggerMs())}ms`;\n }\n\n /** Whether a hovered or focused row opens a tooltip. `'axis'` is not offered — a bar\n * chart's marks ARE its categories, so an axis tooltip would repeat the item one. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(\n () => this.tooltipLingerResolved(),\n () => this.defaults.hoverDelayMs(),\n );\n\n protected readonly hoveredLabel = signal(-1);\n\n /** Naming a row by its label fades the rest whether or not `dimOthers` is set, the way a legend\n * singles out its series. The row itself answers the pointer, so the fade waits out the same\n * hover delay as the tooltip. */\n protected readonly dimsOthers = computed(\n () =>\n this.dimOthers() ||\n (this.hoveredLabel() !== -1 &&\n this.hoveredLabel() === this.activeMark.index()),\n );\n\n protected onMarkClick(\n payload: BarChartRow,\n index: number,\n event: Event,\n ): void {\n this.rowClicked.emit(payload);\n if (this.defaults.pinOnClick()) {\n this.activeMark.pin(index, event, '.fill');\n }\n }\n protected readonly roving = rovingMarks(() => this.rows().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event, '.fill');\n }\n\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('.rows'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.rows()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n // A segmented bar draws several readings the row label cannot name, so the row heads the\n // panel and each segment gets its own line. Repeating the label the pointer is already on\n // would tell the reader nothing.\n if (entry.segments.length) {\n const values = entry.segments.map((part) => part.segment.value);\n\n return {\n category: entry.row.label,\n entries: entry.segments.map((part, partIndex) => ({\n label: part.segment.label,\n value: part.segment.value,\n formatted: part.formattedValue,\n color: part.color,\n detail: describeShare(\n values,\n partIndex,\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n ),\n })),\n };\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.row.label,\n value: barExtent(entry.row.value).high,\n formatted: entry.formattedValue,\n color: entry.color,\n detail: this.partOfWhole()\n ? describeShare(\n this.data().map((row) => {\n const extent = barExtent(row.value);\n\n return extent.high - extent.low;\n }),\n this.activeMark.index(),\n this.defaults.locale,\n (share) => this.intl().chart.shareOfTotal(share),\n )\n : undefined,\n },\n ],\n };\n },\n );\n\n /** The track has to hold the far end of every bar, the target tick and the outermost band -\n * a goal above every reading is the one the chart is read for, and an axis derived from the\n * bars alone would draw it off the end. */\n protected readonly resolvedMax = computed(() =>\n resolveMax(\n this.max(),\n this.data().flatMap((row) => [\n barExtent(row.value).high,\n row.target ?? 0,\n ...(row.ranges ?? []),\n ]),\n ),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() =>\n this.partOfWhole()\n ? [\n this.intl().chart.labelColumn,\n this.intl().chart.valueColumn,\n this.intl().chart.shareColumn,\n ]\n : [this.intl().chart.labelColumn, this.intl().chart.valueColumn],\n );\n\n /** A row's segments follow it as nested rows: one table reads in one pass, and a segment is\n * read against the bar it belongs to rather than against the other bars. */\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.rows().flatMap((entry) => [\n {\n key: `bar:${entry.key}`,\n cells: this.partOfWhole()\n ? [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n entry.share,\n ]\n : [\n [entry.row.label, entry.row.detail].filter(Boolean).join(' - '),\n entry.formattedValue,\n ],\n },\n ...entry.segments.map((part) => ({\n // Both keys fall back to a positional index in their OWN scope, and flattening puts\n // them in one list - a bar and its first segment would otherwise both be \"0\".\n key: `bar:${entry.key}/${part.key}`,\n nested: true,\n cells: this.partOfWhole()\n ? [part.segment.label, part.formattedValue, '']\n : [part.segment.label, part.formattedValue],\n })),\n ]),\n );\n\n protected readonly rows = computed(() => {\n const max = this.resolvedMax();\n const format = this.valueFormatResolved();\n // The bar's LENGTH is what a share is a share of, and on a floating bar that is the span\n // between its ends rather than either end on its own.\n const values = this.data().map((row) => {\n const extent = barExtent(row.value);\n\n return extent.high - extent.low;\n });\n\n return this.data().map((row, index) => {\n const extent = barExtent(row.value);\n const span = extent.high - extent.low;\n const isRange = typeof row.value !== 'number';\n\n return {\n key: row.id ?? String(index),\n row,\n offsetPercent: widthPercent(extent.low, max),\n widthPercent: widthPercent(span, max),\n formattedValue: isRange\n ? `${format(extent.low, 'tooltip')} - ${format(extent.high, 'tooltip')}`\n : format(extent.high, 'tooltip'),\n targetPercent:\n row.target === undefined ? null : widthPercent(row.target, max),\n formattedTarget:\n row.target === undefined ? '' : format(row.target, 'tooltip'),\n bands: (row.ranges ?? []).map((bound, bandIndex, all) => ({\n key: `${row.id ?? index}-band-${bandIndex}`,\n widthPercent: widthPercent(bound, max),\n // Rising opacity rather than rising hue: the bands are one backdrop read as an order,\n // and a second palette behind the bars would compete with the bars themselves.\n opacity: (bandIndex + 1) / (all.length + 1),\n })),\n formattedPercent:\n row.percent !== undefined\n ? formatPercent(row.percent, 100, this.defaults.locale)\n : formatPercent(span, max, this.defaults.locale),\n share: this.partOfWhole()\n ? shareOfTotal(values, index, this.defaults.locale)\n : '',\n segments: segmentsOf(row, (value) => format(value, 'tooltip')),\n color: row.color ?? chartColors.seriesDefault,\n };\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n this.data().map((row) => ({\n label: row.label,\n value: barExtent(row.value).high - barExtent(row.value).low,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n ),\n );\n\n protected entryLabel(entry: { row: BarChartRow; formattedValue: string }) {\n return `${entry.row.label}, ${entry.formattedValue}`;\n }\n\n protected onRowKey(row: BarChartRow, event: Event): void {\n // Only the row's own key opens the row: a key pressed on a control inside it belongs to that\n // control.\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.rowClicked.emit(row);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n /** Placeholder bars while loading. Follows the real row count so the chart does not resize\n * when the data lands; falls back to three when `data` is still empty. */\n protected readonly skeletonRows = computed(() =>\n Array.from({ length: Math.max(this.data().length, 3) }),\n );\n}\n","<figure class=\"bar-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_bar-chart-track-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"rows\"\n [class.dims-others]=\"dimsOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n @for (entry of rows(); track entry.key; let index = $index) {\n <div\n class=\"row\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event, '.fill')\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.row, index, $event)\"\n (keydown.enter)=\"onRowKey(entry.row, $event)\"\n (keydown.space)=\"onRowKey(entry.row, $event)\">\n <span\n class=\"label\"\n (pointerenter)=\"hoveredLabel.set(index)\"\n (pointerleave)=\"hoveredLabel.set(-1)\">\n {{ entry.row.label }}\n\n @if (entry.row.detail) {\n <span class=\"detail\">\n {{ entry.row.detail }}\n </span>\n }\n </span>\n\n <span class=\"value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (showPercent()) {\n <span class=\"percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n\n <span class=\"track\">\n @for (band of entry.bands; track band.key) {\n <span\n class=\"band\"\n [style.width.%]=\"band.widthPercent\"\n [style.opacity]=\"band.opacity\">\n </span>\n }\n\n @if (entry.targetPercent !== null) {\n <span\n class=\"target\"\n role=\"img\"\n [style.inset-inline-start.%]=\"entry.targetPercent\"\n [attr.aria-label]=\"intl().chart.target(entry.formattedTarget)\">\n </span>\n }\n\n <span\n class=\"fill\"\n [style.margin-inline-start.%]=\"entry.offsetPercent\"\n [style.width.%]=\"entry.widthPercent\"\n [style.background]=\"entry.segments.length ? null : entry.color\">\n @for (part of entry.segments; track part.key) {\n <span\n class=\"segment\"\n [class.is-dimmed]=\"isSegmentDimmed(part.key)\"\n [style.width.%]=\"part.widthPercent\"\n [style.background]=\"part.color\">\n </span>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA;;;;;;;;AAQgB;AACV,SAAU,SAAS,CAAC,KAAoB,EAAA;AAC5C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK;cACxB,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC;cACnD,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IACzB;AACA,IAAA,MAAM,CAAC,KAAK,EAAE,MAAM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AEjOtB;;AAEG;;;;"}
@@ -1,9 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { model, input, output, inject, DOCUMENT, viewChild, signal, computed, effect, ViewEncapsulation, Component } from '@angular/core';
3
- import * as i1 from '@angular/cdk/a11y';
3
+ import * as i2 from '@angular/cdk/a11y';
4
4
  import { A11yModule } from '@angular/cdk/a11y';
5
5
  import { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';
6
6
  import { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';
7
+ import * as i1 from '@ids-group-ltd/ids-design-system/components';
8
+ import { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';
7
9
 
8
10
  let nextId = 0;
9
11
  /** Bottom-anchored sheet — the mobile sibling of ds-drawer. Closes on scrim
@@ -29,6 +31,7 @@ class BottomSheetComponent {
29
31
  snapPoints = input([], ...(ngDevMode ? [{ debugName: "snapPoints" }] : /* istanbul ignore next */ []));
30
32
  doc = inject(DOCUMENT);
31
33
  scrollLock = inject(BodyScrollLockService);
34
+ preview = inject(DsStaticPreview);
32
35
  sheetRef = viewChild('sheet', ...(ngDevMode ? [{ debugName: "sheetRef" }] : /* istanbul ignore next */ []));
33
36
  dragOffset = signal(null, ...(ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []));
34
37
  /** Sheet is in the DOM (kept true through the leave animation). */
@@ -57,6 +60,9 @@ class BottomSheetComponent {
57
60
  // sheet mounted and flips `closing` so the leave animation can play
58
61
  // (teardown in onLeaveEnd, or the timer below).
59
62
  effect(() => {
63
+ if (this.preview.staticPreview()) {
64
+ return;
65
+ }
60
66
  const isOpen = this.open();
61
67
  if (isOpen) {
62
68
  this.closing.set(false);
@@ -81,7 +87,7 @@ class BottomSheetComponent {
81
87
  // overlays don't unlock each other. The cleanup fires on the rendered→false
82
88
  // transition and on destroy, keeping lock/unlock paired.
83
89
  effect((onCleanup) => {
84
- if (!this.rendered()) {
90
+ if (this.preview.staticPreview() || !this.rendered()) {
85
91
  return;
86
92
  }
87
93
  this.scrollLock.lock();
@@ -93,6 +99,9 @@ class BottomSheetComponent {
93
99
  this.closeFallbackTimer = null;
94
100
  }
95
101
  close() {
102
+ if (this.preview.staticPreview()) {
103
+ return;
104
+ }
96
105
  this.dragOffset.set(null);
97
106
  this.open.set(false);
98
107
  }
@@ -127,6 +136,9 @@ class BottomSheetComponent {
127
136
  }
128
137
  }
129
138
  onGrabStart(event) {
139
+ if (this.preview.staticPreview()) {
140
+ return;
141
+ }
130
142
  event.target.setPointerCapture(event.pointerId);
131
143
  this.dragStartY = event.clientY;
132
144
  this.lastMoveY = event.clientY;
@@ -190,11 +202,11 @@ class BottomSheetComponent {
190
202
  this.activeSnapIndex.set(nearestIndex);
191
203
  }
192
204
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BottomSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
193
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BottomSheetComponent, isStandalone: true, selector: "ds-bottom-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, snapPoints: { classPropertyName: "snapPoints", publicName: "snapPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "sheetRef", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (rendered()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n class=\"sheet-overlay\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n class=\"sheet\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
205
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: BottomSheetComponent, isStandalone: true, selector: "ds-bottom-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, snapPoints: { classPropertyName: "snapPoints", publicName: "snapPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "sheetRef", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], 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) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet-static{display:contents}.sheet-static .sheet{animation:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
194
206
  }
195
207
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BottomSheetComponent, decorators: [{
196
208
  type: Component,
197
- args: [{ selector: 'ds-bottom-sheet', standalone: true, imports: [A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "@if (rendered()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) on this element, a backdrop isn't a tabbable control -->\n <div\n class=\"sheet-overlay\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n class=\"sheet\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}\n"] }]
209
+ args: [{ selector: 'ds-bottom-sheet', standalone: true, imports: [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) on this element, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'sheet-static' : 'sheet-overlay'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\">\n <div\n #sheet\n class=\"sheet\"\n role=\"dialog\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [class.dragging]=\"dragOffset() !== null\"\n [class.closing]=\"closing()\"\n [class.snapping]=\"snapPoints().length > 0 && dragOffset() === null\"\n [style.transform]=\"\n dragOffset() ? 'translateY(' + dragOffset() + 'px)' : null\n \"\n [style.height]=\"snapHeight()\"\n [style.maxHeight]=\"snapHeight() ? snapHeight() : null\"\n (animationend)=\"onLeaveEnd($event)\">\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\">\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\">\n {{ title() }}\n </h3>\n }\n\n <div class=\"sheet-body\">\n <ng-content />\n </div>\n\n <div class=\"sheet-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n </div>\n}\n", styles: [":host{--_bottom-sheet-max-width: var(--ds-bottom-sheet-max-width, 480px);--_bottom-sheet-max-height: var(--ds-bottom-sheet-max-height, 80%);--_bottom-sheet-radius: var(--ds-bottom-sheet-radius, var(--ds-radius-panel));--_bottom-sheet-bg-color: var(--ds-bottom-sheet-bg-color, var(--surface-default));--_bottom-sheet-scrim-color: var(--ds-bottom-sheet-scrim-color, var(--surface-scrim));--_bottom-sheet-title-text-color: var(--ds-bottom-sheet-title-text-color, var(--text-primary));--_bottom-sheet-enter-keyframes: var(--ds-bottom-sheet-enter-keyframes, ds-slide-edge-in);--_bottom-sheet-leave-keyframes: var(--ds-bottom-sheet-leave-keyframes, ds-slide-edge-out);--_bottom-sheet-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-surface-duration));--_bottom-sheet-enter-easing: var(--ds-bottom-sheet-enter-easing, var(--ds-motion-enter-surface-easing));--_bottom-sheet-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-large-duration));--_bottom-sheet-leave-easing: var(--ds-bottom-sheet-leave-easing, var(--ds-motion-exit-large-easing));--_bottom-sheet-scrim-enter-duration: var(--ds-bottom-sheet-enter-duration, var(--ds-motion-enter-panel-duration));--_bottom-sheet-scrim-leave-duration: var(--ds-bottom-sheet-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-bottom-sheet-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_bottom-sheet-enter-duration: 0ms;--_bottom-sheet-leave-duration: 0ms;--_bottom-sheet-scrim-enter-duration: 0ms;--_bottom-sheet-scrim-leave-duration: 0ms}}.sheet-overlay{position:fixed;inset:0;z-index:var(--layer-modal);background:var(--_bottom-sheet-scrim-color);display:flex;flex-direction:column;justify-content:flex-end;overflow:clip;animation-name:ds-fade-in;animation-duration:var(--_bottom-sheet-scrim-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing)}.sheet-overlay.closing{animation-name:ds-fade-out;animation-duration:var(--_bottom-sheet-scrim-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards;pointer-events:none}.sheet-static{display:contents}.sheet-static .sheet{animation:none}.sheet{--_ds-enter-y: 100%;position:relative;width:min(100%,var(--_bottom-sheet-max-width));margin-inline:auto;background:var(--_bottom-sheet-bg-color);border-radius:var(--_bottom-sheet-radius) var(--_bottom-sheet-radius) 0 0;padding:0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));animation-name:var(--_bottom-sheet-enter-keyframes);animation-duration:var(--_bottom-sheet-enter-duration);animation-timing-function:var(--_bottom-sheet-enter-easing);max-height:var(--_bottom-sheet-max-height);display:flex;flex-direction:column;transition:transform var(--duration-base) var(--ease-decelerate)}.sheet.dragging{transition:none}.sheet.snapping{transition:transform var(--duration-base) var(--ease-decelerate),height var(--duration-base) var(--ease-decelerate)}@media(prefers-reduced-motion:reduce){.sheet.snapping{transition:none}}.sheet.closing{animation-name:var(--_bottom-sheet-leave-keyframes);animation-duration:var(--_bottom-sheet-leave-duration);animation-timing-function:var(--_bottom-sheet-leave-easing);animation-fill-mode:forwards}.grab{padding:var(--space-3) 0;margin:0 calc(var(--space-4) * -1);cursor:grab;touch-action:none}.sheet-handle{width:var(--bottom-sheet-handle-w);height:var(--bottom-sheet-handle-h);background:var(--border-strong);border-radius:var(--radius-pill);margin:0 auto}.sheet-title{font:var(--font-weight-semibold) var(--font-size-l)/var(--line-height-snug) var(--font-sans);color:var(--_bottom-sheet-title-text-color);margin:0 0 var(--space-3)}.sheet-body{display:flex;flex-direction:column;gap:var(--space-2);overflow-y:auto;min-height:0;padding:var(--space-1);margin:calc(var(--space-1) * -1)}.sheet-actions{display:flex;flex-direction:column;gap:var(--space-2)}.sheet-actions:not(:empty){margin-top:var(--space-3)}\n"] }]
198
210
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }], snapPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapPoints", required: false }] }], sheetRef: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }] } });
199
211
 
200
212
  /**