@ids-group-ltd/ids-design-system 0.11.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -3
- package/components/README.md +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14267
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -1
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +7 -1
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.7.1.json +2 -1
- package/package.json +573 -1
- package/themes/README.md +4 -4
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
- package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +72 -5594
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/core/ds-config.ts","../../../src/lib/theme/provide-ds-theme.ts","../../../src/lib/overlay/ds-overlay-close-ref.ts","../../../src/lib/overlay/body-scroll-lock.service.ts","../../../src/lib/core/option.ts","../../../src/lib/icons/icon-registry.ts","../../../src/lib/icons/icons.data.ts","../../../src/lib/core/config-defaults.ts","../../../src/lib/icons/icon.component.ts","../../../src/lib/components/reserve-messages/reserve-messages.directive.ts","../../../src/lib/core/dev-warning.ts","../../../src/lib/components/field-group/field-group.token.ts","../../../src/lib/components/field-defaults.ts","../../../src/lib/components/field-errors.ts","../../../src/lib/components/message-base.ts","../../../src/lib/components/field-message/field-message.component.ts","../../../src/lib/components/field-message/field-message.component.html","../../../src/lib/components/field-ids.ts","../../../src/lib/components/button/button.component.ts","../../../src/lib/components/button/button.component.html","../../../src/lib/components/toggle-button/toggle-button.component.ts","../../../src/lib/components/toggle-button/toggle-button.component.html","../../../src/lib/components/icon-button/icon-button.component.ts","../../../src/lib/components/icon-button/icon-button.component.html","../../../src/lib/components/badge/badge.component.ts","../../../src/lib/components/badge/badge.component.html","../../../src/lib/components/status-dot/status-dot.component.ts","../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/card/card.component.ts","../../../src/lib/components/card/card.component.html","../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/brand-defaults.ts","../../../src/lib/components/auth-layout/auth-layout.component.ts","../../../src/lib/components/auth-layout/auth-layout.component.html","../../../src/lib/components/overlay-motion.ts","../../../src/lib/components/static-preview.directive.ts","../../../src/lib/components/popover/popover.component.ts","../../../src/lib/components/popover/popover.component.html","../../../src/lib/components/projection-dropped.directive.ts","../../../src/lib/components/filter-bar/filter-item.directive.ts","../../../src/lib/components/filter-bar/filter-bar.component.ts","../../../src/lib/components/filter-bar/filter-bar.component.html","../../../src/lib/components/field-group/field-group.component.ts","../../../src/lib/components/avatar/avatar-tint.ts","../../../src/lib/components/avatar/avatar.component.ts","../../../src/lib/components/avatar/avatar.component.html","../../../src/lib/components/avatar-group/avatar-group.component.ts","../../../src/lib/components/avatar-group/avatar-group.component.html","../../../src/lib/components/stat/stat.component.ts","../../../src/lib/components/stat/stat.component.html","../../../src/lib/components/tabs/tab.component.ts","../../../src/lib/components/tabs/tabs.component.ts","../../../src/lib/components/tabs/tabs.component.html","../../../src/lib/core/field-bounds.ts","../../../src/lib/components/spinner/spinner.component.ts","../../../src/lib/components/field-base.ts","../../../src/lib/components/control-value-accessor.ts","../../../src/lib/components/field-click-focus.directive.ts","../../../src/lib/components/input/input.component.ts","../../../src/lib/components/input/input.component.html","../../../src/lib/components/number-stepper/number-stepper.component.ts","../../../src/lib/components/number-stepper/number-stepper.component.html","../../../src/lib/components/textarea/textarea.component.ts","../../../src/lib/components/textarea/textarea.component.html","../../../src/lib/components/search/search.component.ts","../../../src/lib/components/search/search.component.html","../../../src/lib/components/select/select.types.ts","../../../src/lib/components/option-template.directive.ts","../../../src/lib/components/picker-trigger.directive.ts","../../../src/lib/components/empty-template.directive.ts","../../../src/lib/components/panel-header-template.directive.ts","../../../src/lib/components/panel-footer-template.directive.ts","../../../src/lib/components/group-label-template.directive.ts","../../../src/lib/core/list-cursor.ts","../../../src/lib/components/scroll-active-option.ts","../../../src/lib/components/picker-announcer.ts","../../../src/lib/components/type-ahead.ts","../../../src/lib/components/select/select.component.ts","../../../src/lib/components/select/select.component.html","../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/pagination/pagination.component.ts","../../../src/lib/components/pagination/pagination.component.html","../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/core/backdrop-dismiss.ts","../../../src/lib/components/bottom-sheet/bottom-sheet.component.ts","../../../src/lib/components/bottom-sheet/bottom-sheet.component.html","../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/core/key-target.ts","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/table/cell-template.directive.ts","../../../src/lib/components/table/header-filter.directive.ts","../../../src/lib/components/table/table.component.ts","../../../src/lib/components/table/table.component.html","../../../src/lib/components/password-rules/password-rules.component.ts","../../../src/lib/components/password-rules/password-rules.component.html","../../../src/lib/components/calendar-day/calendar-day.component.ts","../../../src/lib/components/calendar-day/calendar-day.component.html","../../../src/lib/components/date-picker/date.util.ts","../../../src/lib/components/date-picker/date-picker.component.ts","../../../src/lib/components/date-picker/date-picker.component.html","../../../src/lib/components/time-picker/time.util.ts","../../../src/lib/components/time-columns/time-columns.component.ts","../../../src/lib/components/time-columns/time-columns.component.html","../../../src/lib/components/time-picker/time-picker.component.ts","../../../src/lib/components/time-picker/time-picker.component.html","../../../src/lib/components/breadcrumbs/breadcrumbs.service.ts","../../../src/lib/components/breadcrumbs/breadcrumbs.component.ts","../../../src/lib/components/breadcrumbs/breadcrumbs.component.html","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/sidenav-footer/sidenav-footer.component.ts","../../../src/lib/components/sidenav-footer/sidenav-footer.component.html","../../../src/lib/components/topbar/topbar.component.ts","../../../src/lib/components/topbar/topbar.component.html","../../../src/lib/components/page-header/page-header.component.ts","../../../src/lib/components/page-header/page-header.component.html","../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/banner/banner.component.ts","../../../src/lib/components/banner/banner.component.html","../../../src/lib/components/alert/alert.component.ts","../../../src/lib/components/alert/alert.component.html","../../../src/lib/components/dropzone/dropzone.component.ts","../../../src/lib/components/dropzone/dropzone.component.html","../../../src/lib/components/empty-state/empty-state.component.ts","../../../src/lib/components/empty-state/empty-state.component.html","../../../src/lib/components/progress/progress.component.ts","../../../src/lib/components/progress/progress.component.html","../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/stepper/stepper.component.ts","../../../src/lib/components/stepper/stepper.component.html","../../../src/lib/components/toast/toast.config.ts","../../../src/lib/components/toast/toast.component.ts","../../../src/lib/components/toast/toast.component.html","../../../src/lib/components/toast/toast-region.component.ts","../../../src/lib/components/toast/toast-region.component.html","../../../src/lib/components/toast/toast.service.ts","../../../src/lib/components/drawer/drawer.component.ts","../../../src/lib/components/drawer/drawer.component.html","../../../src/lib/components/tag/tag.component.ts","../../../src/lib/components/tag/tag.component.html","../../../src/lib/components/w3w/w3w.component.ts","../../../src/lib/components/w3w/w3w.component.html","../../../src/lib/components/page-footer/page-footer.component.ts","../../../src/lib/components/page-footer/page-footer.component.html","../../../src/lib/components/chip-overflow.ts","../../../src/lib/components/chip-template.directive.ts","../../../src/lib/components/create-template.directive.ts","../../../src/lib/components/autocomplete/autocomplete.component.ts","../../../src/lib/components/autocomplete/autocomplete.component.html","../../../src/lib/components/divider/divider.component.ts","../../../src/lib/components/description-list/description-list.component.ts","../../../src/lib/components/description-list/description-list.component.html","../../../src/lib/components/description-list/description-item.component.ts","../../../src/lib/components/description-list/description-item.component.html","../../../src/lib/components/layout/stack.component.ts","../../../src/lib/components/layout/inline.component.ts","../../../src/lib/components/layout/container.component.ts","../../../src/lib/components/segmented/segmented.component.ts","../../../src/lib/components/segmented/segmented.component.html","../../../src/lib/components/button-group/button-group.component.ts","../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/split-button/split-button.component.ts","../../../src/lib/components/split-button/split-button.component.html","../../../src/lib/components/timeline/timeline.component.ts","../../../src/lib/components/timeline/timeline-item.component.ts","../../../src/lib/components/timeline/timeline-item.component.html","../../../src/lib/components/otp-input/otp-input.component.ts","../../../src/lib/components/otp-input/otp-input.component.html","../../../src/lib/components/slider/slider.component.ts","../../../src/lib/components/slider/slider.component.html","../../../src/lib/components/tree/tree.component.ts","../../../src/lib/components/tree/tree.component.html","../../../src/lib/components/color-picker/color-picker.utils.ts","../../../src/lib/components/color-picker/color-picker.component.ts","../../../src/lib/components/color-picker/color-picker.component.html","../../../src/lib/components/multi-select/multi-select.component.ts","../../../src/lib/components/multi-select/multi-select.component.html","../../../src/lib/components/checkbox/checkbox.component.ts","../../../src/lib/components/checkbox/checkbox.component.html","../../../src/lib/components/radio-group/radio-group.token.ts","../../../src/lib/components/radio/radio.component.ts","../../../src/lib/components/radio/radio.component.html","../../../src/lib/components/radio-group/radio-group.component.ts","../../../src/lib/components/radio-group/radio-group.component.html","../../../src/lib/components/switch/switch.component.ts","../../../src/lib/components/switch/switch.component.html","../../../src/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport type { IconName } from '../icons/icons.data';\nimport type { DsSize } from './size';\nimport type { CardElevation, CardPadding } from './card.types';\nimport type { DsToastPosition } from './toast-position';\n\nexport interface DsConfig {\n field?: {\n /** Default for every field's `reserveMessage` — keeps a message line's worth\n * of space even when empty. Default `false`. Setting `true` here applies to\n * EVERY field in the injector's subtree, which is rarely what a whole app\n * wants; prefer `dsReserveMessages` on the individual form that validates. */\n reserveMessage?: boolean;\n /** Fallback text per validation-error kind, for errors whose validator did\n * not carry a `message` — Angular's built-ins never do, so this is where\n * `required`, `minlength`, `email` and friends get their wording. A message\n * on the error itself always wins, so one shared map here plus a per-case\n * override at the validator covers both. Unmapped kinds warn in dev. */\n errorMessages?: Record<string, string>;\n /** Leading glyph on a field's message line, per state. Defaults carry one for\n * `error`, `warning` and `success` and NONE for `hint`, which is resting text\n * rather than a state. Each key is independent — a glyph name replaces the\n * default, `false` removes it, and `stateIcons: false` removes all four.\n *\n * The glyphs exist because warning and success differ from each other by hue\n * and nothing else, which WCAG 1.4.1 forbids a state from resting on. */\n stateIcons?:\n | false\n | {\n error?: IconName | false;\n warning?: IconName | false;\n success?: IconName | false;\n /** The `default` state — the hint line. Off unless set. */\n hint?: IconName | false;\n };\n };\n breadcrumbs?: {\n separator?: IconName;\n clickable?: boolean;\n };\n timePicker?: {\n /** Display format for `ds-time-picker` / date-picker time — 24h or 12h AM/PM. Default `'24h'`. */\n format?: '24h' | '12h';\n };\n avatar?: {\n /** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule\n * takes the first two words, which is a Latin-script guess — an app whose names\n * follow another convention supplies its own here. */\n initials?: (name: string) => string;\n };\n brand?: {\n /** Brand text for `ds-sidenav` and `ds-auth-layout` — the wordmark, and the\n * source of the letter-mark's glyph when `logoLetter` is unset. */\n name?: string;\n /** Letter-mark glyph when it differs from the brand's first character. */\n logoLetter?: string;\n /** Strapline under the brand row. `ds-auth-layout` only. */\n tagline?: string;\n /* No accent key on purpose: a two-tone wordmark is projected markup\n (`[dsBrandName]`), so the consumer says where the accent belongs. A config\n string would have to be split back apart, which is the guessing the\n projection exists to avoid. */\n };\n modal?: {\n /** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`.\n * Configurable app-wide because a `ModalService` confirm renders a card with no\n * `ds-modal` ancestor to bind — an attribute cannot reach it. */\n dividers?: boolean;\n };\n toast?: {\n /** Where the stack sits. Merged field by field over the built-in\n * `right` / `top` / `var(--space-6)`, so naming one key keeps the other two. */\n position?: Partial<DsToastPosition>;\n /** Maximum number of toasts visible at once. Extras are queued and shown as\n * earlier ones dismiss. Default `5`; `0` means unlimited. */\n maxVisible?: number;\n };\n picker?: {\n /** Default for `ds-multi-select``s `searchable`. `true` always shows the panel's\n * filter row, `false` never, and a NUMBER is a threshold — the row appears once\n * there are at least that many options. Default `true`. One threshold for the\n * app is the point: left to each call site, two panels of the same length in\n * the same screen end up disagreeing. */\n searchable?: boolean | number;\n };\n\n control?: {\n /** Default `size` for every control on the field-height contract. Default `'md'`.\n *\n * A different axis from `[data-density]`: that tier rewrites hit targets and\n * padding in CSS, this picks which of the three declared sizes a control renders\n * at. A screen that differs still binds `size` per element. */\n size?: DsSize;\n };\n card?: {\n /** Default `elevation` for `ds-card`. Default `'flat'`. */\n elevation?: CardElevation;\n /** Default `padding` preset for `ds-card`. Unset keeps the card's own. */\n padding?: CardPadding;\n };\n table?: {\n /** Default for `ds-table`'s `stickyScrollbar` — the proxy that keeps the\n * horizontal bar reachable on a tall table. Default `false`. Here rather than\n * per table because every new table is one forgotten binding away from\n * scrolling invisibly. */\n stickyScrollbar?: boolean;\n /** Default for `ds-table`'s `bordered` — the outer border and radius.\n * Default `false`. */\n bordered?: boolean;\n };\n icon?: {\n /** Default pixel `size` for `ds-icon`. Default `16`. */\n size?: number;\n };\n badge?: {\n /** Default for `ds-badge`'s `withDot` — the leading status dot. Default `false`. */\n withDot?: boolean;\n };\n datePicker?: {\n /** BCP-47 locale for `ds-date-picker` names + value format. Default `'en-US'`. */\n locale?: string;\n /** Explicit token format e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */\n dateFormat?: string;\n /** First weekday column: 0=Sunday … 6=Saturday. Default `1` (Monday). */\n firstDayOfWeek?: number;\n };\n}\n\nexport const DS_CONFIG = new InjectionToken<DsConfig>('DS_CONFIG', {\n factory: () => ({}),\n});\n\n/** Provide DS-level defaults.\n *\n * providers: [provideDsConfig({ control: { size: 'sm' } })]\n *\n * Works at the app root, on a `Route`, or on a component/directive — the config\n * resolves through the element-injector chain, so a subtree can differ from the\n * app. Component inputs (e.g. `<ds-card padding=\"lg\">`) still win.\n *\n * A nested call MERGES with the config above it section by section; only the keys\n * you name are replaced. ONE call per injector, though: two in the SAME\n * `providers` array both resolve their parent with `skipSelf`, so the later wins\n * and the earlier is silently lost.\n */\nexport function provideDsConfig(config: DsConfig): Provider {\n return { provide: DS_CONFIG, useFactory: () => inheritDsConfig(config) };\n}\n\n/**\n * The factory body behind `provideDsConfig`, exported so a directive can put the\n * provider in its metadata as a plain object literal. Calling `provideDsConfig`\n * there instead runs at module-evaluation time, which makes the module\n * side-effectful and costs the consumer its tree-shaking (measured at +566 kB\n * moved into the eager chunk).\n *\n * Must be called from an injection context.\n */\nexport function inheritDsConfig(config: DsConfig): DsConfig {\n return mergeDsConfig(\n inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {},\n config,\n );\n}\n\nfunction mergeDsConfig(parent: DsConfig, own: DsConfig): DsConfig {\n const merged: DsConfig = { ...parent };\n for (const section of Object.keys(own) as (keyof DsConfig)[]) {\n Object.assign(merged, {\n [section]: { ...parent[section], ...own[section] },\n });\n }\n\n return merged;\n}\n","import {\n EnvironmentProviders,\n PLATFORM_ID,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\nexport interface DsThemeOptions {\n /**\n * Follow the operating-system colour scheme: on startup set `data-theme` on\n * `<html>` from `prefers-color-scheme` and keep it in sync as the OS changes.\n * Default `false` — the design system stays on its explicit light default\n * and dark is opt-in via `<html data-theme=\"dark\">`.\n */\n followSystem?: boolean;\n}\n\n/**\n * App-root theme configuration for the design system.\n *\n * ```ts\n * // app.config.ts\n * export const appConfig: ApplicationConfig = {\n * providers: [provideDsTheme({ followSystem: true })],\n * };\n * ```\n *\n * Light is the default with no provider; `followSystem` opts into OS-driven\n * switching. A manual `<html data-theme=\"dark\">` always wins over the initial\n * value this sets.\n */\nexport function provideDsTheme(\n options: DsThemeOptions = {},\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideEnvironmentInitializer((): void => {\n if (!options.followSystem || !isPlatformBrowser(inject(PLATFORM_ID))) {\n return;\n }\n const query = window.matchMedia('(prefers-color-scheme: dark)');\n const apply = (): void =>\n document.documentElement.setAttribute(\n 'data-theme',\n query.matches ? 'dark' : 'light',\n );\n apply();\n query.addEventListener('change', apply);\n }),\n ]);\n}\n","/** A reference to the overlay/container the projected content lives in, used to\n * close it from the inside — e.g. a popover (and, later, a dropdown/select)\n * closing when a menu item is selected. The container provides it via DI;\n * content injects it with `{ optional: true }` so the same content also works\n * standalone (outside any overlay).\n *\n * Same shape as Angular Material's `MatDialogRef` (content calls `close()` on a\n * ref), generalised so any dismissible overlay can provide it. */\nexport abstract class DsOverlayCloseRef {\n abstract close(): void;\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Injectable, inject } from '@angular/core';\n\n/**\n * Ref-counted lock on `document.body` scroll, shared by every overlay that\n * covers the viewport (modal, drawer, bottom-sheet). The FIRST `lock()` saves\n * the current `body` overflow and hides it; the LAST `unlock()` restores it —\n * so closing one overlay never re-enables page scroll while another stacked on\n * top of it is still open. Calls must be paired (one `unlock()` per `lock()`).\n */\n@Injectable({ providedIn: 'root' })\nexport class BodyScrollLockService {\n private readonly doc = inject(DOCUMENT);\n private count = 0;\n private previousOverflow = '';\n\n lock(): void {\n if (this.count === 0) {\n this.previousOverflow = this.doc.body.style.overflow;\n this.doc.body.style.overflow = 'hidden';\n }\n this.count += 1;\n }\n\n unlock(): void {\n if (this.count === 0) {\n return;\n }\n this.count -= 1;\n if (this.count === 0) {\n this.doc.body.style.overflow = this.previousOverflow;\n }\n }\n}\n","import type { IconName } from '../icons/icons.data';\n\n/**\n * The shape every picker's option shares — select, multi-select, autocomplete.\n * Add a field HERE, or the three drift apart the way `icon` did. Each keeps its\n * own exported name: those are public API.\n *\n * `T` exists because autocomplete carries typed values; the other two are keyed\n * by string.\n */\nexport interface DsOption<T = string> {\n value: T;\n label: string;\n disabled?: boolean;\n /** Why this option cannot be picked. Reaches the row as `aria-describedby`, so a\n * reader hears the reason instead of only meeting a dead row. Ignored unless\n * `disabled` is set. */\n disabledReason?: string;\n /** Rendered before the label at 16px by every picker's option row. */\n icon?: IconName;\n}\n\n/**\n * A labelled section of options. `disabled` turns the whole section off.\n */\nexport interface DsOptionGroup<T = string> {\n label: string;\n options: DsOption<T>[];\n disabled?: boolean;\n}\n\n/**\n * What a picker's `options` input takes: flat options, groups, or both mixed.\n * One input rather than two, because a second `optionGroups` input can only\n * answer \"what if both are set\" by silently ignoring one.\n */\nexport type DsOptionItem<T = string> = DsOption<T> | DsOptionGroup<T>;\n\nexport function isDsOptionGroup<T>(\n item: DsOptionItem<T>,\n): item is DsOptionGroup<T> {\n return 'options' in item && Array.isArray((item as DsOptionGroup<T>).options);\n}\n\n/** Every option in `items`, groups flattened in place, in source order. */\nexport function flattenDsOptions<T>(\n items: readonly DsOptionItem<T>[],\n): DsOption<T>[] {\n return items.flatMap((item) =>\n isDsOptionGroup(item)\n ? item.options.map((option) =>\n // Only copy when the flag is not already there: the pickers pre-apply a\n // disabled group to the options THEY render, and a second copy here\n // would break the object identity their flat-index lookup compares by.\n item.disabled && !option.disabled\n ? { ...option, disabled: true }\n : option,\n )\n : [item],\n );\n}\n","import { InjectionToken, Provider } from '@angular/core';\n\n/** Map of custom icon name -> raw SVG body markup.\n *\n * The body is what goes *inside* `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">`\n * — typically one or more `<path>` / `<circle>` / `<rect>` elements. Stroke width, line caps and\n * join are applied by the host `<ds-icon>` template, so paths should use `stroke=\"currentColor\"`\n * implicitly (i.e. omit the stroke attribute) and rely on the parent SVG.\n *\n * Example:\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"M12 13v8m0-8 3 3m-3-3-3 3\"/><path d=\"...\"/>',\n * })\n */\nexport type DsIconRegistry = Readonly<Record<string, string>>;\n\nexport const DS_ICON_REGISTRY = new InjectionToken<DsIconRegistry>(\n 'DS_ICON_REGISTRY',\n {\n factory: () => ({}),\n },\n);\n\n/** Register additional icons available to `<ds-icon [name]=\"...\">` alongside the built-in DS set.\n *\n * providers: [\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"...\"/>',\n * 'shield': '<path d=\"...\"/>',\n * }),\n * ]\n *\n * Names take precedence as: built-in `ICONS` > consumer registry. Consumer names that clash with\n * built-ins are ignored — to override a built-in, edit the DS source.\n */\nexport function provideDsIcons(icons: DsIconRegistry): Provider {\n return { provide: DS_ICON_REGISTRY, useValue: icons };\n}\n","// All paths render inside <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">, stroke-width 1.75.\n\nexport const ICONS = {\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />',\n plus: '<path d=\"M12 5v14M5 12h14\" />',\n minus: '<path d=\"M5 12h14\" />',\n check: '<path d=\"m4 12 5 5L20 6\" />',\n x: '<path d=\"M6 6l12 12M18 6L6 18\" />',\n chevronDown: '<path d=\"m6 9 6 6 6-6\" />',\n chevronRight: '<path d=\"m9 6 6 6-6 6\" />',\n chevronLeft: '<path d=\"m15 6-6 6 6 6\" />',\n chevronUp: '<path d=\"m6 15 6-6 6 6\" />',\n menu: '<path d=\"M4 6h16M4 12h16M4 18h16\" />',\n arrowRight: '<path d=\"M5 12h14M13 6l6 6-6 6\" />',\n arrowUp: '<path d=\"M12 19V5M6 11l6-6 6 6\" />',\n arrowDown: '<path d=\"M12 5v14M6 13l6 6 6-6\" />',\n info: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v.01M11 12h1v4h1\" />',\n warn: '<path d=\"M12 3 2 21h20L12 3z\" /><path d=\"M12 10v4M12 18v.01\" />',\n error: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v4M12 16v.01\" />',\n success: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n bell: '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10 21a2 2 0 0 0 4 0\" />',\n settings:\n '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z\" />',\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\" /><path d=\"M4 21a8 8 0 0 1 16 0\" />',\n users:\n '<circle cx=\"9\" cy=\"8\" r=\"4\" /><path d=\"M2 21a7 7 0 0 1 14 0\" /><path d=\"M16 4a4 4 0 0 1 0 8M22 21a6 6 0 0 0-6-6\" />',\n home: '<path d=\"m3 11 9-8 9 8\" /><path d=\"M5 10v10h14V10\" />',\n calendar:\n '<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M3 10h18M8 3v4M16 3v4\" />',\n truck:\n '<path d=\"M3 16V6a1 1 0 0 1 1-1h11v11\" /><path d=\"M15 9h4l2 3v4h-6\" /><circle cx=\"7.5\" cy=\"17.5\" r=\"2\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"2\" />',\n box: '<path d=\"m21 8-9-5-9 5 9 5 9-5z\" /><path d=\"M3 8v8l9 5 9-5V8\" /><path d=\"m12 13 .01 8\" />',\n map: '<path d=\"m9 4-6 3v13l6-3 6 3 6-3V4l-6 3-6-3z\" /><path d=\"M9 4v13M15 7v13\" />',\n activity: '<path d=\"M3 12h4l3-9 4 18 3-9h4\" />',\n folder:\n '<path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />',\n edit: '<path d=\"M12 20h9\" /><path d=\"M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4z\" />',\n external:\n '<path d=\"M14 4h6v6\" /><path d=\"M20 4 10 14\" /><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\" />',\n trash:\n '<path d=\"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" />',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M5 15V5a2 2 0 0 1 2-2h10\" />',\n download: '<path d=\"M12 4v12M6 12l6 6 6-6\" /><path d=\"M4 20h16\" />',\n upload: '<path d=\"M12 20V8M6 12l6-6 6 6\" /><path d=\"M4 4h16\" />',\n eye: '<path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n filter: '<path d=\"M3 5h18l-7 9v6l-4-2v-4z\" />',\n sort: '<path d=\"M7 4v16M3 8l4-4 4 4\" /><path d=\"M17 20V4M21 16l-4 4-4-4\" />',\n sortAsc: '<path d=\"M7 18V6M3 10l4-4 4 4\" />',\n sortDesc: '<path d=\"M7 6v12M11 14l-4 4-4-4\" />',\n grid: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" />',\n list: '<path d=\"M8 6h13M8 12h13M8 18h13\" /><circle cx=\"3.5\" cy=\"6\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"12\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"18\" r=\"1.2\" />',\n moreH:\n '<circle cx=\"5\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"19\" cy=\"12\" r=\"1.5\" />',\n moreV:\n '<circle cx=\"12\" cy=\"5\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"19\" r=\"1.5\" />',\n link: '<path d=\"M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1\" /><path d=\"M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1\" />',\n flag: '<path d=\"M5 21V5a14 14 0 0 1 14 0v9a14 14 0 0 1-14 0z\" />',\n star: '<path d=\"m12 3 2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17.8 6.2 21l1.1-6.5L2.5 9.9 9.1 9z\" />',\n inbox:\n '<path d=\"M22 12h-6l-2 3h-4l-2-3H2\" /><path d=\"M5 4h14l3 8v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8z\" />',\n archive:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"5\" rx=\"1\" /><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8M10 12h4\" />',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" />',\n refresh:\n '<path d=\"M3 12a9 9 0 0 1 15-6.7L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-15 6.7L3 16\" /><path d=\"M3 21v-5h5\" />',\n play: '<path d=\"M6 4l14 8-14 8z\" />',\n pause: '<path d=\"M7 4v16M17 4v16\" />',\n cmd: '<path d=\"M9 9h6v6H9zM6 9V7a3 3 0 1 1 3 3H6zM6 15v2a3 3 0 1 0 3-3H6zM18 9V7a3 3 0 1 0-3 3h3zM18 15v2a3 3 0 1 1-3-3h3z\" />',\n paperclip:\n '<path d=\"m21 11-9 9a5 5 0 0 1-7-7l9-9a3 3 0 0 1 4 4l-9 9a1 1 0 0 1-1-1l8-8\" />',\n file: '<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\" /><path d=\"M14 3v6h6\" />',\n image:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-5-5L5 21\" />',\n lock: '<rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" /><path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />',\n logout:\n '<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><path d=\"m16 17 5-5-5-5M21 12H9\" />',\n help: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4M12 17v.01\" />',\n pin: '<path d=\"M12 22v-7\" /><path d=\"m9 15 6 0M8 9l8 0M9 15c-2-1.5-3-4-3-7l12 0c0 3-1 5.5-3 7\" />',\n bookmark: '<path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z\" />',\n sparkle:\n '<path d=\"M12 3v6M12 15v6M3 12h6M15 12h6M5.6 5.6l4.2 4.2M14.2 14.2l4.2 4.2M5.6 18.4l4.2-4.2M14.2 9.8l4.2-4.2\" />',\n layers:\n '<path d=\"m12 3 9 5-9 5-9-5z\" /><path d=\"m3 13 9 5 9-5M3 18l9 5 9-5\" />',\n chart: '<path d=\"M3 3v18h18\" /><path d=\"M7 14l4-4 4 4 5-5\" />',\n gauge:\n '<path d=\"M12 14l4-4\" /><circle cx=\"12\" cy=\"14\" r=\"9\" /><path d=\"M3 14a9 9 0 0 1 18 0\" />',\n package:\n '<path d=\"M3 7v10l9 4 9-4V7l-9-4z\" /><path d=\"m3 7 9 5 9-5M12 12v9\" />',\n git: '<circle cx=\"6\" cy=\"6\" r=\"2.5\" /><circle cx=\"6\" cy=\"18\" r=\"2.5\" /><circle cx=\"18\" cy=\"12\" r=\"2.5\" /><path d=\"M6 8.5v7M8.5 6h4a3 3 0 0 1 3 3v0\" />',\n sun: '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\" />',\n moon: '<path d=\"M21 13a9 9 0 0 1-12-12 9 9 0 1 0 12 12z\" />',\n save: '<path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\" /><path d=\"M17 21v-8H7v8M7 3v5h8\" />',\n rotate: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8\" /><path d=\"M3 3v5h5\" />',\n qr: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><path d=\"M14 14h3v3h-3zM18 18h3v3h-3z\" />',\n globe:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" />',\n phone:\n '<path d=\"M5 4h4l2 5-2 1a11 11 0 0 0 5 5l1-2 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z\" />',\n bin: '<rect x=\"3\" y=\"6\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"M7 6V4h10v2\" />',\n pen: '<path d=\"M3 17V21h4l11-11-4-4z\" />',\n smile:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 14a5 5 0 0 0 8 0\" />',\n frown:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 16a5 5 0 0 1 8 0\" />',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"m3 7 9 6 9-6\" />',\n 'eye-off':\n '<path d=\"M3 3l18 18\" /><path d=\"M10.6 6.1A10 10 0 0 1 12 6c6 0 10 7 10 7a14 14 0 0 1-2.4 3.1\" /><path d=\"M6.7 6.7A14 14 0 0 0 2 12s4 7 10 7a10 10 0 0 0 4.5-1\" /><path d=\"M9.9 14.1A3 3 0 0 1 9 12a3 3 0 0 1 3-3 3 3 0 0 1 2.1.9\" />',\n 'check-circle': '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n // r=8, not the 9 of check-circle: this is the empty counterpart of a tick, and\n // at 14px a ring the same size as the filled state reads as the heavier of the\n // two rather than the lighter.\n circle: '<circle cx=\"12\" cy=\"12\" r=\"8\" />',\n // Drag handle: 6 dots in 2 cols × 3 rows. Use 1.6 radius to read at 12-16px.\n drag: '<circle cx=\"9\" cy=\"6\" r=\"1.6\" /><circle cx=\"15\" cy=\"6\" r=\"1.6\" /><circle cx=\"9\" cy=\"12\" r=\"1.6\" /><circle cx=\"15\" cy=\"12\" r=\"1.6\" /><circle cx=\"9\" cy=\"18\" r=\"1.6\" /><circle cx=\"15\" cy=\"18\" r=\"1.6\" />',\n scan: '<path d=\"M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3\" />',\n wifi: '<path d=\"M2 9.5a15 15 0 0 1 20 0\" /><path d=\"M5 13a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M12 20h.01\" />',\n 'wifi-off':\n '<path d=\"m3 3 18 18\" /><path d=\"M12 20h.01\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M5 13a10 10 0 0 1 3.5-2.3\" /><path d=\"M11 8.6A10 10 0 0 1 19 13\" /><path d=\"M2 9.5a15 15 0 0 1 5.7-3.2\" /><path d=\"M11.6 5.6A15 15 0 0 1 22 9.5\" />',\n} as const;\n\n/** Built-in DS icon names. Consumers can extend the runtime set via `provideDsIcons({...})` —\n * the type widens to `string` so any custom name is accepted at the call site (at the cost of\n * autocomplete for those custom names). */\nexport type IconName = keyof typeof ICONS | (string & {});\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG, type DsConfig } from './ds-config';\n\n/**\n * Resolve an input against `DS_CONFIG`, then a built-in default.\n *\n * The input must be typed `T | null` and default to `null`: a signal input cannot\n * report whether it was bound, so `null` is what separates \"not set\" from an explicit\n * value. Precedence is input → config → built-in. Call from an injection context.\n */\nexport function resolveWithConfig<T>(\n value: Signal<T | null>,\n pick: (config: DsConfig) => T | undefined,\n fallback: T,\n): Signal<T> {\n const config = inject(DS_CONFIG);\n\n return computed(() => value() ?? pick(config) ?? fallback);\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n isDevMode,\n numberAttribute,\n} from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport { DS_ICON_REGISTRY } from './icon-registry';\nimport { ICONS, type IconName } from './icons.data';\nimport { resolveWithConfig } from '../core/config-defaults';\n\n@Component({\n selector: 'ds-icon',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n // Host inline-flex + svg block prevents baseline-gap when icon sits next to text.\n styles: [\n `\n ds-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n line-height: 0;\n }\n ds-icon > svg.icon {\n display: block;\n }\n `,\n ],\n template: `\n <svg\n class=\"icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [style.--ds-icon-size]=\"sizeResolved() + 'px'\"\n [attr.width]=\"sizeResolved()\"\n [attr.height]=\"sizeResolved()\"\n [attr.stroke-width]=\"stroke()\"\n [attr.role]=\"ariaLabel() ? 'img' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-hidden]=\"ariaLabel() ? null : 'true'\"\n [innerHTML]=\"paths()\"\n >\n </svg>\n `,\n})\nexport class IconComponent {\n private readonly sanitizer = inject(DomSanitizer);\n // Consumer-supplied icons via provideDsIcons(...). Empty record by default.\n private readonly registry = inject(DS_ICON_REGISTRY);\n readonly name = input.required<IconName>();\n /** Pixel size of the square glyph. Unset falls back to `DS_CONFIG.icon.size`,\n * then `16`. */\n readonly size = input<number | null, unknown>(null, {\n transform: (value) => (value == null ? null : numberAttribute(value)),\n });\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.icon?.size,\n 16,\n );\n readonly stroke = input<number>(1.75);\n /** When set, the icon is exposed to assistive tech as an image with this\n * name; otherwise it is decorative and hidden (`aria-hidden`). */\n readonly ariaLabel = input<string | null>(null);\n protected readonly paths = computed<SafeHtml>(() => {\n const key = this.name();\n // Built-in DS set wins over consumer registry — see provideDsIcons() docs.\n const body =\n (ICONS as Record<string, string>)[key] ?? this.registry[key] ?? '';\n // A misspelled name renders an empty <svg> and nothing else — no error, and\n // the type cannot catch it: IconName stays open (`| (string & {})`) so a\n // consumer can register their own through provideDsIcons(), and closing the\n // union would reject every registered name. This branch is the only place\n // that knows. Production pays one falsy check.\n if (!body && isDevMode()) {\n console.warn(\n `[ds-icon] Unknown icon name \"${key}\" — not in the DS set and not registered through provideDsIcons(), so nothing renders.`,\n );\n }\n\n return this.sanitizer.bypassSecurityTrustHtml(body);\n });\n}\n","import { Directive } from '@angular/core';\nimport { DS_CONFIG, inheritDsConfig } from '../../core/ds-config';\n\n/**\n * Turns on `reserveMessage` for every DS field declared inside the host\n * element, so a validated form holds its message rows without repeating the\n * input on each control:\n *\n * ```html\n * <form dsReserveMessages>\n * <ds-input label=\"Email\" />\n * <ds-input label=\"Password\" />\n * </form>\n * ```\n *\n * It provides `DS_CONFIG`, which merges with the config above it — scoping this\n * one flag cannot drop unrelated app-level settings. A field's own\n * `[reserveMessage]` still wins, so a single control can opt back out.\n *\n * The switch is the directive's PRESENCE, not an input: providers are resolved\n * at construction, before inputs are set, so a bound value could not drive\n * them. To turn it off for a subtree, provide the config directly:\n * `provideDsConfig({ field: { reserveMessage: false } })`.\n *\n * Applies to fields DECLARED inside the host — projected content keeps the\n * injector of the template it was written in, so wrapping `<ng-content>` in\n * this directive does not reach the projected fields.\n */\n@Directive({\n selector: '[dsReserveMessages]',\n standalone: true,\n // Object literal + arrow, NOT provideDsConfig(...): a call in decorator\n // metadata runs at module-evaluation time, which marks the module\n // side-effectful and cost the consumer its tree-shaking of the barrel (measured at\n // +566 kB moved into the eager chunk).\n providers: [\n {\n provide: DS_CONFIG,\n useFactory: () => inheritDsConfig({ field: { reserveMessage: true } }),\n },\n ],\n})\nexport class ReserveMessagesDirective {}\n","import { effect, isDevMode } from '@angular/core';\n\n/**\n * Once per message, not once per recomputation: the hand-written copies of this\n * re-ran whenever ANY signal they read changed, so a warning about a static\n * misconfiguration could log again on every keystroke, and a console repeating\n * one line is a console people stop reading.\n *\n * Returning the message from the condition keeps the two together — a condition\n * that drifts from its message is how a warning ends up describing a state that\n * cannot happen any more.\n *\n * Must be called from an injection context.\n */\nexport function devWarn(message: () => string | null): void {\n if (!isDevMode()) {\n return;\n }\n const seen = new Set<string>();\n effect(() => {\n const text = message();\n if (!text || seen.has(text)) {\n return;\n }\n seen.add(text);\n console.warn(text);\n });\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport type { DsSize } from '../../core/size';\n\n/** What a grouped control can read off the group that encloses it. */\nexport interface DsFieldGroupContext {\n /** The group's size, so a segment matches its neighbours without being told.\n * Resolved, not the raw input: `size` is unset by default and falls back to\n * `DS_CONFIG.control.size`, which a segment must not have to resolve again. */\n readonly sizeResolved: () => DsSize;\n}\n\n/**\n * Provided by `ds-field-group`, injected `{ optional: true }` by every control\n * that can be a segment.\n *\n * DI rather than a `[grouped]` input on each child: the alternative is manual,\n * and one segment where it was forgotten renders its own border and radius in\n * the middle of a glued row — a broken control that still looks deliberate.\n * Presence of the token IS the fact the child needs, and the consumer already\n * declared it by wrapping them.\n */\nexport const DS_FIELD_GROUP = new InjectionToken<DsFieldGroupContext>(\n 'DS_FIELD_GROUP',\n);\n\n/**\n * Whether this control is a segment of a `ds-field-group`. Call it in a field\n * component and bind the result to a host `.in-group` class; the component's own\n * `.in-group` block then strips the chrome the group has taken over.\n *\n * A function so the six supported controls share one line instead of six copies\n * of the same optional inject — and so the contract has one place to change.\n */\nexport function inFieldGroup(): boolean {\n return !!inject(DS_FIELD_GROUP, { optional: true });\n}\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '../core/ds-config';\n\n/**\n * Resolve a field's `reserveMessage` against the app-level default.\n *\n * Fields declare the input as `boolean | null` with a `null` default so \"not set\"\n * stays distinguishable from an explicit `true` — a signal input cannot report\n * whether it was bound. Precedence: the component input, then\n * `DS_CONFIG.field.reserveMessage`, then `false`.\n *\n * Call from a field initializer (an injection context), e.g.\n * `protected readonly reserve = resolveReserveMessage(this.reserveMessage);`\n */\nexport function resolveReserveMessage(\n reserveMessage: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(\n () => reserveMessage() ?? config.field?.reserveMessage ?? false,\n );\n}\n","import {\n DestroyRef,\n Injector,\n Signal,\n afterNextRender,\n computed,\n inject,\n isDevMode,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n FormGroupDirective,\n NgControl,\n NgForm,\n type ValidationErrors,\n} from '@angular/forms';\nimport { DS_CONFIG } from '../core/ds-config';\nimport type { FieldMessageState } from './field-message/field-message.component';\n\n/**\n * One validation error, structurally identical to Angular's signal-forms\n * `ValidationError`.\n *\n * Declared here rather than imported from `@angular/forms/signals` on purpose:\n * that module is `@experimental`, and a public DS type must not carry a\n * dependency that can be renamed out from under consumers. Structural\n * compatibility is all the interop needs — signal forms binds by input NAME and\n * assigns its own `ValidationError[]`, which this shape accepts.\n */\nexport interface DsFieldError {\n /** Identifies the kind of error, e.g. `required`, `minlength`, `server`. */\n readonly kind: string;\n /** Human-readable text. Authored by the consumer, at the validator. */\n readonly message?: string;\n}\n\n/** What a field's `errors` input accepts before normalization. */\nexport type DsFieldErrorsInput =\n | string\n | DsFieldError\n | readonly DsFieldError[]\n | null\n | undefined;\n\nconst NO_ERRORS: readonly DsFieldError[] = [];\n\n/**\n * The one reserved `DsFieldError.kind`. An error carrying it is advisory: it shows\n * in the warning state and does NOT make the control invalid, which is how a form\n * model can raise a non-blocking remark — Angular's own `AbstractControl` has no\n * channel for one, only `errors` and the validity derived from it.\n */\nexport const DS_FIELD_WARNING_KIND = 'warning';\n\n/**\n * `errors` input transform. Accepts a bare string (so a consumer that already\n * has the text can pass it directly), a single error, or the array signal forms\n * assigns.\n */\nexport function normalizeFieldErrors(\n value: DsFieldErrorsInput,\n): readonly DsFieldError[] {\n if (!value) {\n return NO_ERRORS;\n }\n if (typeof value === 'string') {\n return value.trim() ? [{ kind: 'custom', message: value }] : NO_ERRORS;\n }\n\n return Array.isArray(value) ? value : [value as DsFieldError];\n}\n\nexport function trimmedText(value: string | null | undefined): string {\n return value?.trim() ?? '';\n}\n\n/** The single line a field shows below itself, already resolved. */\nexport interface DsFieldMessage {\n readonly text: string;\n readonly state: FieldMessageState;\n}\n\nexport interface DsFieldMessageSources {\n hint: Signal<string>;\n warning: Signal<string>;\n error: Signal<string>;\n errors: Signal<readonly DsFieldError[]>;\n invalid: Signal<boolean>;\n success?: Signal<string>;\n /** The field's own touched state, if it tracks one (CVA blur). */\n touchedSelf?: Signal<boolean>;\n /** Bound by signal forms as part of the `FormUiControl` contract. */\n touched?: Signal<boolean>;\n}\n\nexport interface DsFieldMessageResolution {\n /** Text + state for `ds-field-message`. */\n readonly message: Signal<DsFieldMessage>;\n /** `invalid` folded together with whatever the control reports. */\n readonly invalid: Signal<boolean>;\n /**\n * The state the CONTROL paints, for `[attr.data-field-state]`. Deliberately not\n * `message().state`: a field can be in a state with nothing to say, and can have\n * text in a state the box does not paint.\n */\n readonly controlState: Signal<FieldMessageState | null>;\n}\n\nconst EMPTY_MESSAGE: DsFieldMessage = { text: '', state: 'default' };\n\ninterface ControlState {\n readonly errors: readonly DsFieldError[];\n readonly touched: boolean;\n}\n\nconst NO_CONTROL: ControlState = { errors: NO_ERRORS, touched: false };\n\n/**\n * Resolve the one message a field shows, from every source that can supply one.\n *\n * Precedence, highest first — the ladder Carbon uses (`invalidText` →\n * `warnText` → `helperText`) and Material's subscript follows, so only ONE line\n * ever shows and the field's height does not depend on how many sources are\n * populated:\n *\n * 1. `error` — an explicit string. Shown immediately: the consumer decided.\n * 2. `errors` — validation errors. Shown once the user has interacted, so a\n * `required` error does not greet an untouched form.\n * 3. `warning` — advisory, not blocking.\n * 4. `errors` whose kind is `DS_FIELD_WARNING_KIND` — the same, raised by the form model.\n * 5. `success` — confirmation.\n * 6. `hint` — helper text.\n *\n * Both form systems feed step 2 and neither needs the other. Signal forms binds\n * `errors` and `touched` by input name (`FormUiControl`); reactive and\n * template-driven forms expose the same through `NgControl`, read here. A given\n * field instance is driven by exactly one of them, so they cannot disagree.\n *\n * Every rung carries its OWN text, and `hint` is never recoloured into somebody\n * else's state. `invalid` is the one input with no text on purpose: it paints the\n * control and sets `aria-invalid` for when the message lives elsewhere — a\n * form-level error summary, or one message for a whole field group.\n *\n * Call from a field initializer (an injection context).\n */\nexport function resolveFieldMessage(\n sources: DsFieldMessageSources,\n): DsFieldMessageResolution {\n const config = inject(DS_CONFIG);\n const controlState = watchNgControl();\n\n const errors = computed(() => {\n const own = sources.errors();\n\n return own.length ? own : controlState().errors;\n });\n\n const interacted = computed(\n () =>\n (sources.touched?.() ?? false) ||\n (sources.touchedSelf?.() ?? false) ||\n controlState().touched,\n );\n\n // Both form systems land here, so one reserved kind serves both: signal forms\n // assigns its own ValidationError[] (which already carries `kind`), and\n // fromValidationErrors turns a reactive validator's `{ warning: 'text' }` KEY\n // into the same kind.\n const blocking = computed(() =>\n errors().filter((error) => error.kind !== DS_FIELD_WARNING_KIND),\n );\n const advisory = computed(() =>\n errors().filter((error) => error.kind === DS_FIELD_WARNING_KIND),\n );\n\n const errorText = computed(() => {\n const current = blocking();\n if (!current.length || !interacted()) {\n return '';\n }\n\n return textFor(current, config.field?.errorMessages);\n });\n\n const advisoryText = computed(() => {\n const current = advisory();\n if (!current.length || !interacted()) {\n return '';\n }\n\n return textFor(current, config.field?.errorMessages);\n });\n\n // Advisory errors are deliberately absent: a warning does not make a control\n // invalid, so it never sets aria-invalid and never blocks a submit guard.\n const invalid = computed(\n () =>\n sources.invalid() ||\n sources.error().length > 0 ||\n (blocking().length > 0 && interacted()),\n );\n\n // Message inputs trim via `trimmedText`, so a non-empty string here is real\n // text — a new one declared without that transform breaks this quietly.\n const message = computed<DsFieldMessage>(() => {\n const explicit = sources.error();\n if (explicit) {\n return { text: explicit, state: 'error' };\n }\n const fromErrors = errorText();\n if (fromErrors) {\n return { text: fromErrors, state: 'error' };\n }\n const warning = sources.warning();\n if (warning) {\n return { text: warning, state: 'warning' };\n }\n const fromAdvisory = advisoryText();\n if (fromAdvisory) {\n return { text: fromAdvisory, state: 'warning' };\n }\n const success = sources.success?.();\n if (success) {\n return { text: success, state: 'success' };\n }\n const hint = sources.hint();\n\n return hint ? { text: hint, state: 'default' } : EMPTY_MESSAGE;\n });\n\n const paintedState = computed<FieldMessageState | null>(() => {\n if (invalid()) {\n return 'error';\n }\n if (sources.warning() || advisoryText()) {\n return 'warning';\n }\n\n return sources.success?.() ? 'success' : null;\n });\n\n return { message, invalid, controlState: paintedState };\n}\n\n/**\n * Reactive- and template-driven forms channel. `NgControl` cannot be injected\n * directly: a field provides `NG_VALUE_ACCESSOR` pointing at itself, so asking\n * for `NgControl` in the same constructor is a DI cycle. Resolving it after the\n * first render is the documented way around that.\n *\n * `events` (not `statusChanges`) is the subscription, because touching a control\n * does NOT emit a status change — it emits `TouchedChangeEvent`, and touched is\n * half of the decision to show an error at all.\n */\nfunction watchNgControl(): Signal<ControlState> {\n const injector = inject(Injector);\n const destroyRef = inject(DestroyRef);\n // Submitting a form does not reach the child control's own `events` — the\n // event is pushed onto the ROOT form's stream — so the parent is read\n // directly, as Angular Material's ErrorStateMatcher does.\n const parentForm = inject(NgForm, { optional: true });\n const parentFormGroup = inject(FormGroupDirective, { optional: true });\n const state = signal<ControlState>(NO_CONTROL);\n\n afterNextRender(() => {\n const control = injector.get(NgControl, null)?.control;\n if (!control) {\n return;\n }\n const submitted = (): boolean =>\n parentFormGroup?.submitted || parentForm?.submitted || false;\n const sync = (): void =>\n state.set({\n errors: fromValidationErrors(control.errors),\n touched: control.touched || submitted(),\n });\n\n // Signal forms bridges an NgControl whose `control` has no `events` stream, so\n // there is nothing to subscribe to. Staying at NO_CONTROL is deliberate: on that\n // path the component's own inputs carry errors and touched, and a snapshot that\n // froze at first render would keep serving a stale error after the field went valid.\n if (typeof control.events?.pipe !== 'function') {\n return;\n }\n\n sync();\n control.events.pipe(takeUntilDestroyed(destroyRef)).subscribe(sync);\n const parentSubmit = parentFormGroup?.ngSubmit ?? parentForm?.ngSubmit;\n parentSubmit?.pipe(takeUntilDestroyed(destroyRef)).subscribe(sync);\n });\n\n return state;\n}\n\n/**\n * `ValidationErrors` is an untyped bag, so a message is picked up from the two\n * shapes consumers actually write: `{ myError: 'text' }` and\n * `{ myError: { message: 'text' } }`. Angular's own built-ins carry detail\n * objects with no message (`{ minlength: { requiredLength, actualLength } }`) —\n * those resolve through `DS_CONFIG.field.errorMessages` instead.\n */\nfunction fromValidationErrors(\n errors: ValidationErrors | null,\n): readonly DsFieldError[] {\n if (!errors) {\n return NO_ERRORS;\n }\n\n return Object.keys(errors).map((kind) => {\n const detail: unknown = errors[kind];\n if (typeof detail === 'string') {\n return { kind, message: detail };\n }\n const message = (detail as { message?: unknown } | null)?.message;\n\n return typeof message === 'string' ? { kind, message } : { kind };\n });\n}\n\nfunction textFor(\n errors: readonly DsFieldError[],\n messages: Record<string, string> | undefined,\n): string {\n for (const error of errors) {\n const text = error.message ?? messages?.[error.kind];\n if (text) {\n return text;\n }\n }\n if (isDevMode()) {\n console.warn(\n `[ds-field] The control is invalid but no message could be resolved for ${errors\n .map((error) => `\"${error.kind}\"`)\n .join(\n ', ',\n )}, so the field paints the state with NO message under it. Give the validator a message — required(path, { message: '…' }) or { myError: 'text' } — or map the kind in provideDsConfig({ field: { errorMessages: … } }).`,\n );\n }\n\n return '';\n}\n","import { Directive, booleanAttribute, input } from '@angular/core';\nimport { resolveReserveMessage } from './field-defaults';\nimport type { IconName } from '../icons/icons.data';\nimport { trimmedText } from './field-errors';\n\n/**\n * The inputs of anything that renders a `ds-field-message` line — the message half\n * of a field, split out so `ds-button` can take it without also taking `errors`,\n * `invalid` and `touched`, which describe a form control's validation state and\n * mean nothing on a button.\n *\n * `@Directive()` is required, not decoration: Angular refuses to compile a base\n * class that declares inputs without it.\n */\n@Directive()\nexport abstract class DsMessageBase {\n /** Helper text shown below the control. */\n readonly hint = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Error text. Shown immediately — binding it says the consumer has already\n * decided this is in error. Takes precedence over `errors`. */\n readonly error = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Advisory text, shown when there is no error. */\n readonly warning = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Reserve the message-row height even when empty, so the control doesn't shift\n * the layout below it when a hint/error appears. Falls back to\n * `DS_CONFIG.field.reserveMessage`, then off. */\n readonly reserveMessage = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n /** Glyph on the message line, overriding what the state resolves to. Unset\n * follows `DS_CONFIG.field.stateIcons`; `false` removes the glyph here alone. */\n readonly messageIcon = input<IconName | false | null>(null);\n\n readonly reserveMessageResolved = resolveReserveMessage(this.reserveMessage);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { DS_CONFIG } from '../../core/ds-config';\n\nexport type FieldMessageState = 'default' | 'error' | 'warning' | 'success';\n\n/** Internal shared helper/error line for form fields. Renders nothing when\n * `text` is empty. The host field owns the `aria-describedby` relationship\n * and passes `messageId`; this only renders the element that carries it. */\n@Component({\n selector: 'ds-field-message',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './field-message.component.html',\n styleUrl: './field-message.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class FieldMessageComponent {\n /** The one line under a field. Empty renders nothing (or reserved space, if the field asks). */\n readonly text = input<string>('');\n /** Which role the line is playing — hint, error, warning or success. Decides the colour. */\n readonly state = input<FieldMessageState>('default');\n /** Id the field points `aria-describedby` at, so the message is announced with the control. */\n readonly messageId = input<string | null>(null);\n /** Leading glyph. Unset resolves from the state through\n * `DS_CONFIG.field.stateIcons` — error, warning and success carry one by default and\n * the hint line does not. A name here overrides that for this message; `false`\n * removes it. */\n readonly icon = input<IconName | false | null>(null);\n /** Reserve one line of height even when there's no `text`, so a field that\n * gains/loses a message doesn't shift the layout below it. */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly config = inject(DS_CONFIG);\n\n /** `hint` rather than `default` in the config: every field calls this line a hint,\n * and `default` would read as \"the default icon\". */\n private static readonly BUILT_IN: Record<\n FieldMessageState,\n IconName | false\n > = {\n error: 'error',\n warning: 'warn',\n success: 'success',\n default: false,\n };\n\n protected readonly iconResolved = computed<IconName | null>(() => {\n const own = this.icon();\n if (own !== null) {\n return own === false ? null : own;\n }\n const configured = this.config.field?.stateIcons;\n if (configured === false) {\n return null;\n }\n const state = this.state();\n const key = state === 'default' ? 'hint' : state;\n const resolved = configured?.[key] ?? FieldMessageComponent.BUILT_IN[state];\n\n return resolved === false ? null : resolved;\n });\n}\n","<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set — screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\"\n >\n </span>\n}\n","let nextId = 0;\n\n/** Process-wide counter for stable, SSR-safe control ids (no DOM dependency).\n * Replaces the per-component `let nextId = 0` pattern. */\nexport function nextControlId(prefix: string): string {\n return `${prefix}-${++nextId}`;\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { devWarn } from '../../core/dev-warning';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { ButtonColor, ButtonVariant, ButtonType } from './button.types';\nimport type { DsSize } from '../../core/size';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\nimport { DsMessageBase } from '../message-base';\nimport {\n resolveFieldMessage,\n trimmedText,\n type DsFieldError,\n} from '../field-errors';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { nextControlId } from '../field-ids';\n\n// `resolveFieldMessage` reads a form control's validation state; a button has\n// none, so these stand in for the two sources a field feeds in from its control.\nconst NO_ERRORS = signal<readonly DsFieldError[]>([]).asReadonly();\nconst NEVER_INVALID = signal(false).asReadonly();\n\n// color×variant pairs that RENDER but read poorly — surfaced as a dev-mode\n// console.warn (two inputs can't be narrowed against each other at compile\n// time). They are discouraged, not blocked: a brand may still opt in.\nconst DISCOURAGED_COMBOS = new Map<string, string>([\n [\n 'neutral|solid',\n 'a solid grey button reads as disabled — prefer tonal/ghost/outline',\n ],\n [\n 'success|ghost',\n 'low-emphasis success rarely warrants an action affordance — prefer solid/tonal',\n ],\n [\n 'success|outline',\n 'low-emphasis success rarely warrants an action affordance — prefer solid/tonal',\n ],\n [\n 'warning|ghost',\n 'yellow at low emphasis is too low-contrast to read — prefer solid/tonal',\n ],\n [\n 'warning|outline',\n 'yellow at low emphasis is too low-contrast to read — prefer solid/tonal',\n ],\n]);\n\n@Component({\n selector: 'ds-button',\n standalone: true,\n imports: [IconComponent, FieldMessageComponent],\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.in-group]': 'inGroup',\n '[class.full-width]': 'fullWidth()',\n // Reflected so a consumer can target one axis from outside without knowing\n // the inner class names: `ds-button[data-variant=\"outline\"] { … }`. The\n // c-*/v-* classes sit on the inner <button>, which is not reachable from a\n // host-scoped rule. Styling only — nothing reads these back.\n '[attr.data-variant]': 'variant()',\n '[attr.data-color]': 'color()',\n '[class.with-message]': 'hasMessageRow()',\n },\n})\nexport class ButtonComponent extends DsMessageBase {\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n /** Brand/status hue family. */\n readonly color = input<ButtonColor>('primary');\n /** Fill pattern: solid | tonal | ghost | outline | text. All color×variant\n pairs render; some are UX-discouraged and emit a dev-mode\n warning naming the reason — they work, but read poorly. `text` is\n discouraged for ALL colours — prefer the global `.link` class; it stays for\n cases needing the ds-button API (loading/fullWidth/typed pressed). */\n readonly variant = input<ButtonVariant>('solid');\n /** Button height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Native `<button>` `type`; defaults to `'button'` (not `'submit'`) so it never submits an ancestor form by accident. */\n readonly type = input<ButtonType>('button');\n /** Disables the button and blocks `pressed`. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Busy state — disables interaction and sets `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Stretch the button to fill its container — the host becomes block-level\n and 100% wide (the inner control is already full-width). Use for mobile\n primary CTAs and full-bleed form submit buttons. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n /** Accessible name — forwarded to the inner <button> as aria-label. Use when\n the visible label is absent or non-descriptive. */\n readonly ariaLabel = input<string | null>(null);\n /** Leading icon, before the projected content. */\n readonly icon = input<IconName | null>(null);\n /** Trailing icon, after the projected content. */\n readonly trailingIcon = input<IconName | null>(null);\n /** ARIA `aria-haspopup`, forwarded to the inner <button> — set when this\n * button triggers a menu/dialog/listbox overlay. */\n readonly ariaHasPopup = input<\n 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | null\n >(null);\n /** ARIA `aria-expanded`, forwarded to the inner <button> — bind to the\n * overlay's open state on a trigger button. */\n readonly ariaExpanded = input<boolean | null>(null);\n /** ARIA `aria-controls`, forwarded to the inner <button> — the id of the panel\n * this button opens, e.g. `ds-app-layout`'s `railId`. */\n readonly ariaControls = input<string | null>(null);\n /** Why the button is refused, shown as its second line. Read only while\n * `disabled` — a greyed control that does not say why is a dead end.\n *\n * Setting it also changes HOW the button is disabled: it takes `aria-disabled`\n * instead of the native attribute, because a natively disabled button cannot be\n * focused and the reason would never be announced. The click is swallowed in\n * `onClick` instead. Leave it unset and nothing changes.\n *\n * Length is deliberately not capped: the text wraps and the button grows. Same\n * name and meaning as `TableRowAction.disabledReason`. */\n readonly disabledReason = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** ARIA `aria-describedby` — point the button at a description the app renders\n * itself, such as a `ds-field-message` under a form. Merged with the id of\n * `disabledReason` when both are present. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Fires on click, unless `disabled` or `loading`. */\n readonly pressed = output<MouseEvent>();\n\n /** The inner native <button>, exposed so overlay triggers can position\n * against and restore focus to the real focusable element — e.g.\n * `(pressed)=\"pop.toggle(trigger.buttonRef().nativeElement)\"`. */\n readonly buttonRef = viewChild.required<ElementRef<HTMLButtonElement>>('btn');\n\n protected readonly classes = computed(() => {\n const color = this.color();\n const variant = this.variant();\n const parts = [\n 'button',\n color === 'primary' ? '' : `c-${color}`,\n variant === 'solid' ? '' : `v-${variant}`,\n this.sizeResolved(),\n this.loading() ? 'loading' : '',\n ];\n\n return parts.filter(Boolean).join(' ');\n });\n\n protected readonly softDisabled = computed(\n () => this.disabled() && this.disabledReason().length > 0,\n );\n\n private readonly uid = nextControlId('ds-button');\n protected readonly reasonId = `${this.uid}-reason`;\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n const ids = [\n this.softDisabled() ? this.reasonId : null,\n this.hintId(),\n this.ariaDescribedBy(),\n ].filter(Boolean);\n\n return ids.length ? ids.join(' ') : null;\n });\n\n protected readonly hasMessageRow = computed(\n () => this.message().text.length > 0 || this.reserveMessageResolved(),\n );\n\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: NO_ERRORS,\n invalid: NEVER_INVALID,\n });\n protected readonly message = this.fieldMessage.message;\n\n constructor() {\n super();\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() => {\n const variant = this.variant();\n if (variant === 'text') {\n return '[ds-button] variant=\"text\" is discouraged — prefer the global `.link` class for link-styled actions. It renders, but `.link` is the canonical link affordance.';\n }\n const reason = DISCOURAGED_COMBOS.get(`${this.color()}|${variant}`);\n\n return reason\n ? `[ds-button] color=\"${this.color()}\" variant=\"${variant}\" is a UX-discouraged combination — it renders, but ${reason}.`\n : null;\n });\n }\n }\n\n protected onClick(event: MouseEvent): void {\n // A soft-disabled button is only `aria-disabled`, so the browser still\n // dispatches the click — this is what stops it.\n if (this.disabled() || this.loading()) {\n return;\n }\n this.pressed.emit(event);\n }\n}\n","<button\n #btn\n [class]=\"classes()\"\n [type]=\"type()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"ariaHasPopup()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-disabled]=\"softDisabled() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [disabled]=\"(disabled() || loading()) && !softDisabled()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"button-main\">\n @if (icon(); as name) {\n <ds-icon [name]=\"name\" />\n }\n\n <ng-content></ng-content>\n\n @if (trailingIcon(); as name) {\n <ds-icon [name]=\"name\" />\n }\n </span>\n\n <span class=\"subtext-slot\">\n <ng-content select=\"[dsButtonSubtext]\"></ng-content>\n </span>\n\n @if (softDisabled()) {\n <!-- aria-hidden keeps the reason out of the button's accessible NAME; the\n aria-describedby above still reaches it, because a node referenced\n directly is read even when hidden. -->\n <span\n class=\"reason\"\n aria-hidden=\"true\"\n [id]=\"reasonId\"\n >\n {{ disabledReason() }}\n </span>\n }\n</button>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\n\n/** A single binary toggle button (pressed / not pressed) with an optional\n * leading icon and a projected label. Distinct from `ds-segmented` (a\n * one-of-many value toggle) — this is a standalone on/off control. */\n@Component({\n selector: 'ds-toggle-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './toggle-button.component.html',\n styleUrl: './toggle-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToggleButtonComponent {\n /** Pressed (on/off) state; two-way bound. */\n readonly pressed = model<boolean>(false);\n /** Optional leading icon name. */\n readonly icon = input<string>('');\n /** Disables the toggle. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.update((value) => !value);\n }\n}\n","<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n>\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\"\n />\n }\n\n <ng-content></ng-content>\n</button>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { ButtonColor } from '../button/button.types';\nimport type { IconButtonType, IconButtonVariant } from './icon-button.types';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n/**\n * Icon-only action button with its own variant taxonomy (standard / filled /\n * tonal / outlined) + an optional toggle (`selected`) state. Distinct from\n * `ds-button` — use this for square/round icon affordances; use `ds-button`\n * for labelled actions. `ariaLabel` is REQUIRED (icon-only has no text label).\n */\n@Component({\n selector: 'ds-icon-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './icon-button.component.html',\n styleUrl: './icon-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class IconButtonComponent {\n /** Icon to render — the button's only visible content. */\n readonly icon = input.required<IconName>();\n /** Accessible name — required since the button has no visible text. */\n readonly ariaLabel = input.required<string>();\n /** ARIA `aria-describedby` — the id of text the app renders beside the button,\n * such as why the action is refused. Icon-only leaves no room for a second\n * line, so unlike `ds-button` there is no `disabledReason` here: the text has\n * to exist on screen already for this to point at it. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Fill style — standard (chromeless), filled, tonal, or outlined. */\n readonly variant = input<IconButtonVariant>('standard');\n /** Brand/status hue family (shared with ds-button). `variant` is the fill\n axis; `color` recolours the accent the fill consumes. Default primary. */\n readonly color = input<ButtonColor>('primary');\n /** Button size — sm/md/lg, matches the field/button height scale.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Native `<button>` `type`; defaults to `'button'` (not `'submit'`) so it never submits an ancestor form by accident. */\n readonly type = input<IconButtonType>('button');\n /** Disables the button and blocks `pressed`. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Toggle state — renders the pressed/active look and sets aria-pressed. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** ARIA `aria-expanded`, forwarded to the inner `<button>` — bind to the open\n * state when this button opens a panel. On the host element it would land on\n * a non-focusable wrapper, which no screen reader reads. */\n readonly ariaExpanded = input<boolean | null>(null);\n /** ARIA `aria-controls`, forwarded to the inner `<button>` — the id of the\n * panel this button opens, e.g. `ds-app-layout`'s `railId`. */\n readonly ariaControls = input<string | null>(null);\n /** Fires on click, unless disabled. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly classes = computed(() => {\n const parts = ['icon-button', this.variant(), this.sizeResolved()];\n if (this.color() !== 'primary') {\n parts.push(`c-${this.color()}`);\n }\n if (this.selected()) {\n parts.push('selected');\n }\n\n return parts.join(' ');\n });\n\n protected readonly iconSize = computed(() => {\n const size = this.sizeResolved();\n if (size === 'sm') {\n return 16;\n }\n if (size === 'lg') {\n return 24;\n }\n\n return 20;\n });\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.emit(event);\n }\n}\n","<button\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected() ? true : null\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\"\n>\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\"\n />\n</button>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n numberAttribute,\n} from '@angular/core';\nimport type { DsStatusKey } from '../../core/status';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-badge',\n standalone: true,\n templateUrl: './badge.component.html',\n styleUrl: './badge.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-status]': 'status() || null',\n },\n})\nexport class BadgeComponent {\n /** Consumer-defined status key; colours are wired via styles/status. Unset → neutral. */\n readonly status = input<DsStatusKey>();\n /** Leading status dot, rendered only while `count` is unset — a count replaces the\n * badge's whole content. Unset falls back to `DS_CONFIG.badge.withDot`, then `false`. */\n readonly withDot = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly withDotResolved = resolveWithConfig(\n this.withDot,\n (config) => config.badge?.withDot,\n false,\n );\n /** Solid accent fill instead of the default subtle background. */\n readonly solid = input(false, { transform: booleanAttribute });\n /** Numeric count to display; overrides projected content when set. */\n readonly count = input<number | null>(null);\n /** Count is capped at this value, shown as `\"max+\"` beyond it. */\n readonly max = input(99, { transform: numberAttribute });\n /** Noun used in the count's accessible label — set for non-notification counts (cart, results, …). */\n readonly countLabel = input('notifications');\n\n protected readonly countDisplay = computed(() => {\n const value = this.count();\n if (value === null) {\n return null;\n }\n\n return value > this.max() ? `${this.max()}+` : String(value);\n });\n\n protected readonly classes = computed(() => {\n const parts = [\n 'badge',\n this.count() !== null ? 'count' : '',\n this.solid() ? 'solid' : '',\n ];\n\n return parts.filter(Boolean).join(' ');\n });\n\n protected readonly countAriaLabel = computed(() => {\n const value = this.count();\n if (value === null) {\n return null;\n }\n\n return value > this.max()\n ? `More than ${this.max()} ${this.countLabel()}`\n : `${value} ${this.countLabel()}`;\n });\n}\n","<span\n [class]=\"classes()\"\n [attr.role]=\"countAriaLabel() ? 'img' : null\"\n [attr.aria-label]=\"countAriaLabel()\"\n>\n @if (count() !== null) {\n {{ countDisplay() }}\n } @else {\n @if (withDotResolved()) {\n <span class=\"dot\"></span>\n }\n\n <ng-content></ng-content>\n }\n</span>\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { DsStatusKey } from '../../core/status';\n\n@Component({\n selector: 'ds-status-dot',\n standalone: true,\n template: `<span aria-hidden=\"true\" class=\"status-dot\"></span>`,\n styleUrl: './status-dot.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'img',\n '[attr.data-status]': 'status() || null',\n '[attr.aria-label]': 'ariaLabel() || status() || null',\n },\n})\nexport class StatusDotComponent {\n /** Consumer-defined status key; colours are wired via styles/status. */\n readonly status = input<DsStatusKey>();\n /** Override the colour-only status with a human label for assistive tech. */\n readonly ariaLabel = input<string | null>(null);\n}\n","import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize).\n * `ds-app-layout` subtracts it from the content region's right padding so the\n * visual inset stays equal on both sides whether the scrollbar area is a real\n * bar (classic scrollbars), a reserved gutter, or nothing (overlay\n * scrollbars, where the measured width is 0). Internal — instantiated by\n * `ds-app-layout`; not part of the public API.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one. A query- or\n * fragment-only navigation is a search, sort or page step on the same screen, and\n * everything that reacts to \"went somewhere else\" must agree on that — the scroll\n * reset, the responsive rail, and now your own code — so they read one source\n * instead of each deciding for itself.\n *\n * PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one\n * consumer had three separate answers to \"did the path change?\" — route snapshots\n * in a view-transition skip, this stream inside the layout, and a `split('?')`\n * in a tab helper that ignored the fragment this one strips. Inject it and read\n * `pathChanged` rather than writing a fourth:\n *\n * ```ts\n * private readonly navigation = inject(LayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A PATH change is not always a page change. An app whose URL mirrors the\n * reader's position — a docs layout rewriting `/area/section` from a scroll spy,\n * a wizard that names its step — changes the path while staying on the screen,\n * and resetting the scroll there fights the user: the reset moves the scroll,\n * the spy rewrites the path again, and the page ping-pongs. Such a navigation\n * must carry `state: { dsSamePage: true }`, which is skipped here.\n *\n * Root-provided, which is also what makes it safe to expose: the stream is\n * derived from the router and holds no state, so one instance serves every\n * reader. `LayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class LayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { LayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\n// Enough for a reader's back-stack without letting one tab's history grow unbounded.\nconst MAX_ENTRIES = 20;\n\n// Input events only. NOT `scroll`: our own restore writes emit one, so listening\n// for it would cancel the restore we are performing.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default) is today's behaviour: only when navigation lands on a\n * different PATH, so a search, a sort or a page step on the same screen keeps\n * the reader's place. `'always'` resets on every navigation, which is what a\n * server-paged list usually wants — a new page should start at the top.\n * `'never'` hands the decision back to the screen, which can still call\n * `LayoutScrollService.scrollToTop()` itself.\n */\nexport type DsScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. In the fixed-frame layout the window never\n * scrolls, so the router's built-in window-based scrolling no-ops — this service\n * resets the registered container to the top when navigation lands on a different\n * PATH instead. Provided by `ds-app-layout`, so routed pages can\n * `inject(LayoutScrollService)` and call `scrollToTop()` manually (e.g. list pages\n * that DO want the top after a filter change).\n *\n * With `restoreScroll` on the layout it also restores the reader's place. Only\n * when ARMED, which is the whole design: going BACK to a list should return to\n * where the reader was, while following a link into a new screen should not.\n */\n@Injectable()\nexport class LayoutScrollService {\n private readonly navigation = inject(LayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /**\n * The content scroller, once the layout has rendered it. Exposed so a host that\n * must measure or drive the scroll itself — a scroll-spy, a virtualizer — can\n * ask the layout for it instead of guessing the layout's internal markup with\n * `document.querySelector`.\n */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off, which is the default.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed for this very navigation: the reset would\n // undo the offset we are about to apply.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /**\n * Wiring, called by `ds-app-layout` once its content region exists. Public only\n * because the component and the service sit in different files - a consumer has\n * no reason to call it, and calling it points the service at the wrong element.\n */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /**\n * Scroll the content region to an absolute offset. Assigns `scrollTop` rather\n * than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a\n * positioning jump into an animation.\n */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Take the offset this navigation is going to restore, and cancel the restore.\n *\n * For a host that renders its own scroll position — a virtualizer needs the\n * offset BEFORE it decides which rows to build, so letting the service assign\n * `scrollTop` afterwards would scroll a list that has not been built yet.\n * Returns null when nothing is pending, which is every navigation that is not a\n * back.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /**\n * Optional accelerator: tell the layout the content for this route is in the\n * DOM. Without it the restore still lands — it waits for the container to grow\n * and clamps at the deadline — but a host that knows when its data arrived can\n * end the wait early instead of paying the growth watch.\n */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n // Save where we are LEAVING from, while the old content is still mounted.\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n // Armed by a history traversal (back, forward, the mouse side button, Alt+←,\n // an edge swipe — all arrive as popstate), by a host that pushes instead of\n // traversing and says so, or by the first navigation of a reload, where the\n // reader expects the page they left.\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // 'always' resets on navigations `pathChanged` deliberately ignores — a query\n // or fragment step on the same screen. Guarded by `armed` for the same reason\n // the path reset is: a restore about to run must not be undone first.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n // Out of patience: land as close as the content allows rather than not at\n // all. A list that loaded 8 of 40 rows still returns near the reader's row.\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // The CONTAINER's own box does not change as content arrives — its child's\n // does, which is what makes scrollHeight grow. No fixed frame count: native\n // timing differs between engines, so watch for the growth instead of guessing\n // how many frames it takes.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back; fighting it would\n // move the page under a reader who never asked.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n // The content may already be tall enough — a cached list renders synchronously.\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // sessionStorage, not local: a remembered scroll position is worthless in a\n // tab that outlives the visit. Every access is guarded — Safari's private mode\n // throws on write, and a quota error must not take the navigation down with it.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end: JSON object order is insertion\n // order, which is what makes the oldest entry droppable below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: a lost scroll position is not worth an error.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { LayoutNavigationService } from './layout-navigation.service';\nimport {\n LayoutScrollService,\n type DsScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '../field-ids';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport\n * (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so\n * the sidenav rail and the topbar stay put on pages taller than the\n * viewport. Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself — do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`LayoutScrollService`)\n * and fires when navigation changes the PATH, so a URL-driven list can page\n * and filter without losing the reader's place; inject the service and call\n * `scrollToTop()` for the changes that do want the top. The content padding\n * auto-compensates the native scrollbar width so the right inset always\n * equals the left one. The layout requires the application router\n * (`provideRouter`) because its scroll-to-top service subscribes to\n * navigation events.\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [LayoutScrollService],\n})\nexport class AppLayoutComponent {\n /**\n * `'content'` (default): the rail spans the full viewport height on the\n * left and the topbar sits above the content column only. `'full'`: the\n * topbar spans the full width and the rail + content sit below it.\n */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /**\n * Whether the rail is open as an overlay. Only meaningful below the `lg`\n * breakpoint — above it the rail is always in the layout and this is\n * ignored. Two-way, so a burger in your topbar can drive it.\n */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. */\n readonly railLabel = input<string>('Navigation');\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default: a layout that silently moved the scroll would surprise every existing\n * consumer. Only a history traversal restores — following a link into a screen\n * still lands at the top — plus a host that pushes its own \"back to list\" and\n * says so with `state: { dsRestoreScroll: true }`, and the first navigation after\n * a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /**\n * How long to wait for the restored screen's content to grow tall enough before\n * landing as close as it allows. Only meaningful with `restoreScroll`.\n */\n readonly restoreScrollTimeout = input(2000);\n\n /**\n * When the content scroll resets to the top. `'path'` (default) is what the\n * layout has always done; `'always'` also resets on a query- or fragment-only\n * navigation, which is what a server-paged list wants; `'never'` hands the\n * decision to the screen, which can still call `LayoutScrollService.scrollToTop()`.\n *\n * It exists because the layout owning the scroll CONTAINER also meant it owned\n * the POLICY: a screen could add a reset but had no way to suppress one.\n */\n readonly scrollReset = input<DsScrollReset>('path');\n\n /**\n * True only while the rail is an overlay. Gates the dialog semantics: above\n * the breakpoint the rail is an ordinary region, and a permanent\n * `role=\"dialog\"` there would lie to a screen reader.\n */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(LayoutScrollService);\n private readonly navigation = inject(LayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): navigating is not a dismissal. The reader activated a link,\n // so focus belongs wherever the router put it - handing it back to the burger\n // would announce \"Open navigation\" instead of the page they asked for.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only when the directive is DESTROYED, not when it flips\n // off, so without this the caret stays inside the now off-canvas panel. Whatever control claims\n // the rail through aria-controls owns it — dsRailTrigger and the DS-button forwarding both set it.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // Single source of truth: the stylesheet's media block and this query both\n // resolve to `--bp-lg`. There is deliberately NO literal fallback — one here\n // could disagree with the scale and the rail would flip at a different width\n // than the CSS, silently. A missing value means the DS global styles were\n // never included, which breaks far more than this component, so say so.\n const lg = getComputedStyle(document.documentElement)\n .getPropertyValue('--bp-lg')\n .trim();\n if (!lg) {\n if (isDevMode()) {\n console.error(\n '[ds-app-layout] --bp-lg is not defined, so the responsive rail cannot know its breakpoint and stays in desktop layout. Include the DS global styles (@use \"…/styles/ds\") — or, à la carte, the partial that emits the breakpoint vars.',\n );\n }\n\n return;\n }\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Crossing UP drops the overlay state: leaving it set would re-open the\n // rail unprompted the next time the viewport narrows. Set the model\n // directly rather than calling closeRail(), whose focus restore has no\n // business firing here - the trigger it would focus is hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\"\n>\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabel() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\"\n>\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\"\n>\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: the attributes go on the\n * host element, and on `<ds-icon-button>` that is the wrapper, whose inner\n * `<button>` is what a screen reader actually reads. With a DS button, skip this\n * directive and bind its forwarding inputs instead —\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"` and\n * `[ariaControls]=\"layout.railId\"` off a `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay: above the\n * breakpoint the rail is permanently in the layout, so `aria-expanded=\"false\"`\n * would state the opposite of what the user sees.\n *\n * Must sit inside a `ds-app-layout` — the injector walks the declaration tree, so\n * anywhere in the projected chrome works. Outside one, DI fails naming\n * `AppLayoutComponent`, which says what is missing.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n input,\n output,\n} from '@angular/core';\nimport type { CardElevation, CardPadding } from '../../core/card.types';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-card',\n standalone: true,\n templateUrl: './card.component.html',\n styleUrl: './card.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class CardComponent {\n /** Visual treatment; `interactive` makes the card clickable and emits `pressed`.\n * Unset falls back to `DS_CONFIG.card.elevation`, then `'flat'`. */\n readonly elevation = input<CardElevation | null>(null);\n /** Inner padding preset. Unset falls back to `DS_CONFIG.card.padding`, then the\n * card's own padding. */\n readonly padding = input<CardPadding | null>(null);\n /** Fires the click event when `elevation` is `interactive`. */\n readonly pressed = output<MouseEvent>();\n\n readonly elevationResolved = resolveWithConfig(\n this.elevation,\n (config) => config.card?.elevation,\n 'flat' as CardElevation,\n );\n readonly paddingResolved = resolveWithConfig(\n this.padding,\n (config) => config.card?.padding,\n null as CardPadding | null,\n );\n\n protected readonly interactive = computed(\n () => this.elevationResolved() === 'interactive',\n );\n\n protected readonly classes = computed(() => {\n const pad = this.paddingResolved();\n\n return `card ${this.elevationResolved()}${pad ? ' padding-' + pad : ''}`;\n });\n\n protected onClick(event: MouseEvent): void {\n if (this.interactive()) {\n this.pressed.emit(event);\n }\n }\n\n // Keydown reaches the card from everything projected into it, so consuming it\n // unconditionally cancelled the descendant's own default action — a form's\n // Enter submit, a checkbox's Space, a typed space.\n protected onActivationKey(event: Event): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n (event.currentTarget as HTMLElement).click();\n }\n}\n","<article\n [class]=\"classes()\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n (click)=\"onClick($event)\"\n (keydown.enter)=\"onActivationKey($event)\"\n (keydown.space)=\"onActivationKey($event)\"\n>\n <ng-content></ng-content>\n</article>\n","import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text (two-tone wordmarks, inline logos etc. stay consumer-side).\n *\n * Interplay: projecting `[dsBrandName]` is enough to render the brand row and\n * its wordmark even without a string `brand`, but it only supplies the\n * wordmark — the letter-mark tile still comes from `logoLetter` (or the first\n * letter of `brand`), so an empty `brand` + projection renders the wordmark\n * with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '../core/ds-config';\n\n/**\n * Resolve one brand string against the app-level default. `ds-sidenav` and\n * `ds-auth-layout` ask the same three questions and an app answers them\n * identically on every screen, so the answer belongs in one provider rather than\n * in four bindings per template.\n *\n * Same `null`-means-unset shape as `resolveReserveMessage` — here `''` is an\n * explicit \"this screen has no brand\", and each field resolves on its own.\n */\nexport function resolveBrandValue(\n value: Signal<string | null>,\n key: 'name' | 'logoLetter' | 'tagline',\n): Signal<string> {\n const config = inject(DS_CONFIG);\n\n return computed(() => value() ?? config.brand?.[key] ?? '');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { CardComponent } from '../card/card.component';\nimport type { CardElevation, CardPadding } from '../../core/card.types';\nimport { BrandNameDirective } from '../sidenav/brand-name.directive';\nimport { resolveBrandValue } from '../brand-defaults';\n\n/**\n * Scaffold for the UNauthenticated screens — sign-in, forgot password, reset,\n * MFA — and the counterpart to `ds-app-layout`, which only ever covers the\n * screens behind the login.\n *\n * The host is the ONLY full-height box — nesting a `100vh` wrapper inside a\n * `100dvh` one scrolls a page whose content fits — and it carries the safe-area\n * insets a notched phone in landscape needs.\n *\n * The brand row takes the same CONTRACT as `ds-sidenav` — a `brand` string gets a\n * letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`\n * projects a two-tone wordmark (import `BrandNameDirective` alongside this\n * component, or the attribute is inert and the wordmark lands in the card), and\n * `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile\n * is a fixed 28px at weight 800, this one 24-32px at 700, and each has its own\n * `--ds-*-mark-*` hooks, so retinting the mark means setting both.\n *\n * Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`\n * unset when you supply a logo.\n *\n * ```html\n * <ds-auth-layout brand=\"MyAdmin\" logoLetter=\"A\" tagline=\"Broker administration\">\n * <h1 class=\"title\">Sign in</h1>\n * <form class=\"form\">…</form>\n *\n * <p dsAuthSupport>\n * Need a hand? <a href=\"mailto:support@example.com\">Contact support</a>\n * </p>\n * </ds-auth-layout>\n * ```\n */\n@Component({\n selector: 'ds-auth-layout',\n standalone: true,\n imports: [CardComponent],\n templateUrl: './auth-layout.component.html',\n styleUrl: './auth-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AuthLayoutComponent {\n /** Wordmark beside the letter-mark tile. For a logo image/SVG, project it into\n * the `[brand]` slot instead; for a two-tone wordmark use `[dsBrandName]`.\n * Unset falls back to `DS_CONFIG.brand.name`. Each field resolves on its own, so\n * `brand=\"\"` drops the wordmark but a `logoLetter` in the config still paints its\n * tile; clear both to give one screen no brand row. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"MyAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** One line under the wordmark naming the product or audience. Unset falls back\n * to `DS_CONFIG.brand.tagline`. */\n readonly tagline = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n readonly taglineText = resolveBrandValue(this.tagline, 'tagline');\n /** Card treatment. `flat` suits a screen that already sits on a tinted canvas. */\n readonly cardElevation = input<CardElevation>('raised');\n /** Card padding, passed through to `ds-card`. `md` tightens a short form. */\n readonly cardPadding = input<CardPadding>('lg');\n /** Announce the card as the page's `main` landmark. `ds-card` renders an\n * `<article>`, which is NOT a landmark, so by default a screen-reader user has\n * nothing to jump to — set `'main'` on a standalone auth page. Opt-in because\n * the layout is also embedded inside pages that already own a `main`, and two\n * `main`s is its own violation. */\n readonly landmark = input<'main' | 'none'>('none');\n\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n}\n","<div class=\"auth\">\n <header class=\"masthead\">\n <div class=\"brand\">\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\"\n >\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n </div>\n\n @if (taglineText()) {\n <p class=\"tagline\">\n {{ taglineText() }}\n </p>\n }\n </header>\n\n <ds-card\n class=\"card\"\n [attr.role]=\"landmark() === 'main' ? 'main' : null\"\n [elevation]=\"cardElevation()\"\n [padding]=\"cardPadding()\"\n >\n <ng-content></ng-content>\n </ds-card>\n\n <footer class=\"support\">\n <ng-content select=\"[dsAuthSupport]\"></ng-content>\n </footer>\n</div>\n","import type {\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n} from '@angular/cdk/overlay';\n\n/** Where a connected panel sits relative to its trigger. `_overlay-motion.scss`\n * maps this onto the enter direction, so the panel moves in FROM the trigger. */\nexport type DsOverlayPlacement = 'top' | 'bottom' | 'left' | 'right';\n\n/** The theme's role layer, forwarded onto every portaled pane alongside whatever\n * tokens the component names for itself. */\nconst ROLE_TOKENS = [\n '--ds-radius-inner',\n '--ds-radius-control',\n '--ds-radius-panel',\n '--ds-radius-pill',\n '--ds-elevation-raised',\n '--ds-elevation-overlay',\n '--ds-elevation-floating',\n '--ds-elevation-modal',\n] as const;\n\n/** Public enter-motion tokens read by every `ds-overlay-pane`\n * (styles/_overlay-motion.scss). */\nconst OVERLAY_MOTION_TOKENS = [\n '--ds-overlay-enter-keyframes',\n '--ds-overlay-enter-duration',\n '--ds-overlay-enter-easing',\n '--ds-overlay-enter-offset',\n '--ds-overlay-enter-scale',\n] as const;\n\n/** Styles `dropdownOverlay()`'s default panel class, so every connected picker\n * gets it whether or not it names panel tokens of its own. */\nconst DROPDOWN_PANEL_TOKENS = [\n '--ds-dropdown-panel-radius',\n '--ds-dropdown-panel-maxh',\n '--ds-option-padding',\n '--ds-option-gap',\n '--ds-option-radius',\n '--ds-option-row-gap',\n '--ds-option-bg-color-active',\n] as const;\n\n/**\n * Why a panel is closing. `'select'` is a deliberate action that produced a\n * result — an option chosen, a date picked, the trigger pressed again, Tab moving\n * on; `'dismiss'` is ambient — Escape, a press outside, the page scrolling away.\n */\nexport type DsOverlayCloseCause = 'select' | 'dismiss';\n\nconst DROPDOWN_GAP = 4;\n\n/**\n * The geometry every DS dropdown shares. Width is deliberately NOT set here —\n * each caller has its own policy (the exact trigger width, or the trigger as a\n * floor).\n */\nexport function dropdownOverlay(\n overlay: Overlay,\n trigger: HTMLElement,\n panelClass: string | string[] = ['ds-dropdown-panel', 'ds-overlay-pane'],\n): {\n positionStrategy: FlexibleConnectedPositionStrategy;\n config: OverlayConfig;\n} {\n const positionStrategy = overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: DROPDOWN_GAP,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -DROPDOWN_GAP,\n },\n ]);\n\n return {\n positionStrategy,\n config: {\n positionStrategy,\n hasBackdrop: false,\n // The global panel skin lives in styles/_dropdown-overlay.scss: a portaled\n // node sits outside the host's DOM tree, so `:host ::ng-deep` cannot reach it.\n panelClass,\n scrollStrategy: overlay.scrollStrategies.reposition(),\n },\n };\n}\n\n// Backstop for the leave animation: if the class never produces an animation\n// (a pane that is display:none, a consumer stylesheet that removed it), the\n// panel must still go away. Comfortably past --ds-motion-exit-duration.\nconst LEAVE_TIMEOUT_MS = 400;\n\n/**\n * Close a DS overlay panel — instantly on a `'select'`, with a short fade on a\n * `'dismiss'`. A fade after a deliberate pick reads as the panel lagging behind a\n * decision already made; on a dismissal nothing was chosen, so the same fade reads\n * as the panel backing out.\n *\n * NOTE: teardown paths dispose directly instead — a destroyed host has no time to\n * animate, and `ModalService` owns its own scrim-and-card leave.\n */\nexport function disposeWithLeave(\n overlayRef: OverlayRef | null | undefined,\n cause: DsOverlayCloseCause = 'select',\n): void {\n if (!overlayRef) {\n return;\n }\n if (cause === 'select') {\n overlayRef.dispose();\n\n return;\n }\n\n const pane = overlayRef.overlayElement;\n let disposed = false;\n const finish = (): void => {\n if (disposed) {\n return;\n }\n disposed = true;\n clearTimeout(timer);\n pane.removeEventListener('animationend', onAnimationEnd);\n overlayRef.dispose();\n };\n // The pane's ROOT CHILD is what animates (CDK owns transforms on the pane\n // itself), so the event arrives from a descendant and bubbles up to here.\n const onAnimationEnd = (event: AnimationEvent): void => {\n if (event.animationName.endsWith('ds-overlay-out')) {\n finish();\n }\n };\n const timer = setTimeout(finish, LEAVE_TIMEOUT_MS);\n pane.addEventListener('animationend', onAnimationEnd);\n pane.classList.add('ds-leaving');\n}\n\n/**\n * Forward a portaled panel's public `--ds-*` override tokens from the component\n * host onto the overlay pane. The pane is portaled into `document.body`, outside\n * `:host`, so custom properties a consumer sets via `ds-x { … }` never inherit\n * down to it. Only non-empty values are set, so an unset token still falls\n * through to the panel's own `var(--ds-*, <default>)`. Call once per open, right\n * after `overlay.create()`.\n */\nexport function forwardOverlayTokens(\n overlayRef: OverlayRef,\n host: HTMLElement,\n tokens: readonly string[],\n): void {\n const hostStyle = getComputedStyle(host);\n const paneStyle = overlayRef.overlayElement.style;\n for (const token of tokens) {\n const value = hostStyle.getPropertyValue(token).trim();\n if (value) {\n paneStyle.setProperty(token, value);\n }\n }\n\n // Roles resolve at :root, so every host has a value for them and copying it\n // unconditionally would PIN it inline on the pane — an open panel would then\n // ignore a theme switch until it was reopened. Forward only where the host\n // actually overrides the root, which is the case the pane cannot see.\n const rootStyle = getComputedStyle(host.ownerDocument.documentElement);\n for (const token of ROLE_TOKENS) {\n const value = hostStyle.getPropertyValue(token).trim();\n if (value && value !== rootStyle.getPropertyValue(token).trim()) {\n paneStyle.setProperty(token, value);\n }\n }\n}\n\n/** Read a CDK connection pair as the panel's placement. `overlayY` is the panel\n * edge pinned to the trigger, so `top` means the panel hangs BELOW the trigger. */\nexport function overlayPlacementOf(\n overlayY: string,\n overlayX: string,\n): DsOverlayPlacement {\n if (overlayY === 'top') {\n return 'bottom';\n }\n if (overlayY === 'bottom') {\n return 'top';\n }\n if (overlayX === 'start') {\n return 'right';\n }\n\n return 'left';\n}\n\n/**\n * Prime a `ds-overlay-pane` for its enter animation. Call right after\n * `overlay.create()` — CDK applies the position in `afterNextRender`, so the\n * placement stamp still lands before the first painted frame. Until it does (or\n * with no strategy passed) the CSS default applies: entering from above.\n *\n * The subscription needs no teardown — disposing the overlay disposes the\n * strategy, which completes `positionChanges`.\n */\nexport function prepareOverlayEnter(\n overlayRef: OverlayRef,\n host: HTMLElement,\n positionStrategy?: FlexibleConnectedPositionStrategy,\n): void {\n forwardOverlayTokens(overlayRef, host, OVERLAY_MOTION_TOKENS);\n forwardOverlayTokens(overlayRef, host, DROPDOWN_PANEL_TOKENS);\n positionStrategy?.positionChanges.subscribe(({ connectionPair }) => {\n overlayRef.overlayElement.dataset['dsPlacement'] = overlayPlacementOf(\n connectionPair.overlayY,\n connectionPair.overlayX,\n );\n });\n}\n\n/** Close a non-modal overlay on a pointer press outside it, EXCEPT when the press\n * lands on its trigger — so the trigger stays interactive (caret, re-focus) while\n * open. Use with `hasBackdrop: false` so hover/cursor/pointer reach the live page. */\nexport function closeOnOutsidePointer(\n overlayRef: OverlayRef,\n isInsideTrigger: (target: Node) => boolean,\n close: () => void,\n): void {\n overlayRef.outsidePointerEvents().subscribe((event) => {\n const target = event.target as Node | null;\n if (target && isInsideTrigger(target)) {\n return;\n }\n close();\n });\n}\n\n/** Close a non-modal overlay when the page scrolls. CDK's scroll strategies only\n * observe `window` + registered `cdkScrollable`s, so they miss a plain\n * `overflow:auto` container (e.g. an app's scrolling `<main>`); this listens on\n * the document in the CAPTURE phase, which catches the non-bubbling `scroll`\n * event from ANY nested container. A scroll inside the panel itself is ignored. */\nexport function closeOnScroll(\n overlayRef: OverlayRef,\n close: () => void,\n): () => void {\n const onScroll = (event: Event): void => {\n const target = event.target as Node | null;\n if (target && overlayRef.overlayElement.contains(target)) {\n return;\n }\n // A form control scrolling its own text (e.g. typing past the visible edge\n // of a host-side filter input) never moves the panel's anchor — ignore it.\n if (\n target instanceof HTMLElement &&\n (target.tagName === 'INPUT' ||\n target.tagName === 'TEXTAREA' ||\n target.tagName === 'SELECT')\n ) {\n return;\n }\n close();\n };\n const doc = overlayRef.overlayElement.ownerDocument;\n doc.addEventListener('scroll', onScroll, true);\n\n return () => doc.removeEventListener('scroll', onScroll, true);\n}\n\n/** True when keyboard focus currently sits inside the overlay pane. Read it\n * BEFORE disposing, to decide whether the close has to refocus the trigger\n * rather than strand focus on `<body>`. An outside-pointer close leaves focus on\n * the clicked element (mousedown moved it out of the pane first), so this\n * returns false there and focus is correctly left alone. */\nexport function focusIsInside(overlayRef: OverlayRef): boolean {\n const doc = overlayRef.overlayElement.ownerDocument;\n\n return overlayRef.overlayElement.contains(doc.activeElement);\n}\n","import { Directive, booleanAttribute, input } from '@angular/core';\n\n/** Showcase-only: renders the component's open/overlay surface inline in normal\n * flow instead of its real overlay mechanics (for static docs specimens).\n * Not part of the production contract. */\n@Directive({ standalone: true })\nexport class DsStaticPreview {\n readonly staticPreview = input(false, { transform: booleanAttribute });\n}\n","import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { DsOverlayCloseRef } from '../../overlay/ds-overlay-close-ref';\nimport { DsStaticPreview } from '../static-preview.directive';\n\nexport type PopoverAlign = 'start' | 'end';\nexport type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';\n\n@Component({\n selector: 'ds-popover',\n standalone: true,\n imports: [CdkTrapFocus, NgTemplateOutlet],\n templateUrl: './popover.component.html',\n styleUrl: './popover.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n // Expose this popover as a DsOverlayCloseRef so projected content (e.g.\n // ds-menu-item) can close it via DI — the popover never references a child.\n providers: [\n {\n provide: DsOverlayCloseRef,\n useExisting: forwardRef(() => PopoverComponent),\n },\n ],\n})\nexport class PopoverComponent implements OnDestroy, DsOverlayCloseRef {\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n protected readonly panelTpl = viewChild<TemplateRef<unknown>>('panel');\n private readonly panelTrap = viewChild(CdkTrapFocus);\n private ref: OverlayRef | null = null;\n private triggerElement: HTMLElement | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-popover-bg-color',\n '--ds-popover-border-color',\n '--ds-popover-radius',\n '--ds-popover-shadow',\n '--ds-popover-padding',\n '--ds-popover-max-width',\n '--ds-popover-min-width',\n '--ds-popover-arrow-size',\n // Forwarded too: a projected ds-menu is portaled into the pane, so a\n // consumer scoping the menu's width in their own DOM can't reach it.\n '--ds-menu-min-width',\n '--ds-menu-max-width',\n ];\n\n /** Cross-axis alignment of the panel against the trigger. */\n readonly align = input<PopoverAlign>('start');\n /** Which side of the trigger the panel prefers to appear on. */\n readonly placement = input<PopoverPlacement>('bottom');\n /** Render a small caret pointing at the trigger. */\n readonly arrow = input(false, { transform: booleanAttribute });\n\n /** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,\n * the panel traps focus and captures it on open; a keyboard (Escape) or\n * in-panel close returns focus to the trigger, while an outside click or\n * scroll leaves focus where it lands (non-modal). Leave null for plain,\n * non-interactive text popovers. */\n readonly panelRole = input<string | null>(null);\n /** Accessible name for the panel; pair with `panelRole`. */\n readonly panelLabel = input<string | null>(null);\n\n /** Open/closed state — for callers binding `aria-expanded` on the trigger. */\n readonly opened = signal(false);\n /** Resolved placement after the overlay positions — drives the arrow direction. */\n readonly resolvedPlacement = signal<PopoverPlacement>('bottom');\n\n toggle(trigger: HTMLElement): void {\n if (this.preview.staticPreview()) {\n return;\n }\n if (this.ref) {\n this.close();\n\n return;\n }\n\n this.triggerElement = trigger;\n const placement = this.placement();\n const arrowOffset = this.arrow() ? 8 : 4;\n\n const positionStrategy: FlexibleConnectedPositionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions(buildPositions(placement, this.align(), arrowOffset))\n .withViewportMargin(8);\n\n positionStrategy.positionChanges.subscribe((change) => {\n this.resolvedPlacement.set(\n overlayPlacementOf(\n change.connectionPair.overlayY,\n change.connectionPair.overlayX,\n ),\n );\n });\n\n const cfg: OverlayConfig = {\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n };\n this.ref = this.overlay.create(cfg);\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n forwardOverlayTokens(this.ref, this.host.nativeElement, this.panelTokens);\n closeOnOutsidePointer(\n this.ref,\n (target) => trigger.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.ref, () =>\n this.close('dismiss'),\n );\n this.ref.detachments().subscribe(() => {\n removeScrollClose();\n this.ref = null;\n this.opened.set(false);\n });\n this.ref.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.ref.attach(new TemplatePortal(this.panelTpl()!, this.vcr));\n this.resolvedPlacement.set(placement);\n this.opened.set(true);\n if (this.panelRole()) {\n // Same initial focus as cdkTrapFocusAutoCapture, minus its destroy-time\n // restore — that restore steals focus on an outside/scroll close.\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n void this.panelTrap()?.focusTrap?.focusInitialElementWhenReady();\n });\n }\n }\n\n close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.ref) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.ref);\n disposeWithLeave(this.ref, cause);\n this.ref = null;\n this.opened.set(false);\n if (focusWasInPanel) {\n this.triggerElement?.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.focusTimer ?? undefined);\n this.ref?.dispose();\n this.ref = null;\n }\n}\n\nfunction buildPositions(\n placement: PopoverPlacement,\n align: PopoverAlign,\n offsetPx: number,\n): ConnectedPosition[] {\n const crossStart = align === 'start' ? 'start' : 'end';\n const crossEnd: 'start' | 'end' = align === 'start' ? 'end' : 'start';\n\n switch (placement) {\n case 'top':\n return [\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'top',\n overlayX: crossEnd,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n ];\n case 'left':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n ];\n case 'right':\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n ];\n default: // bottom\n return [\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'bottom',\n overlayX: crossEnd,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n ];\n }\n}\n","<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active — duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\"\n >\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\"\n >\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n","import {\n Directive,\n ElementRef,\n afterNextRender,\n inject,\n input,\n} from '@angular/core';\n\n/**\n * Dev-only guard for a component that DROPS whatever is projected into it, so the\n * author gets a warning instead of silence — there is no compile-time signal for\n * content a component chooses to ignore. Put it on a probe around the\n * `<ng-content>`, gated on dev mode so production renders no extra node:\n *\n * ```html\n * @if (devMode) {\n * <span dsProjectionDropped=\"ds-filter-bar\"><ng-content></ng-content></span>\n * }\n * ```\n *\n * It is NOT projection support: the probe exists so the warning can see that\n * content arrived, and then hides it.\n *\n * `ds-filter-bar` is the only host today.\n *\n * `reason` replaces the default `[label]` wording for a host that drops content\n * for a different reason — `ds-filter-bar` drops anything that carries neither of\n * its slot attributes.\n */\n@Directive({\n selector: '[dsProjectionDropped]',\n standalone: true,\n host: { style: 'display: none' },\n})\nexport class ProjectionDroppedDirective {\n /** The host component's selector, named in the warning. */\n readonly dsProjectionDropped = input.required<string>();\n /** Overrides the `[label]` explanation for a host that drops content for\n * another reason. Ends up after \"renders nothing — \". */\n readonly reason = input<string>('');\n\n private readonly probe = inject(ElementRef<HTMLElement>);\n\n constructor() {\n afterNextRender(() => {\n if (!this.probe.nativeElement.textContent?.trim()) {\n return;\n }\n const selector = this.dsProjectionDropped();\n const reason =\n this.reason() ||\n `the caption comes from the [label] input only, so \\`<${selector}>Some text</${selector}>\\` shows no caption at all. Move the text into [label].`;\n console.warn(\n `[${selector}] Projected content renders nothing — ${reason}`,\n );\n });\n }\n}\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/** Width assumed for a filter that declares none — roughly a `ds-select`. */\nconst DEFAULT_ITEM_WIDTH = 180;\n\nfunction toWidth(value: unknown): number {\n const width = Number(value);\n\n return Number.isFinite(width) && width > 0 ? width : DEFAULT_ITEM_WIDTH;\n}\n\n/**\n * One filter inside `ds-filter-bar`, with the width it should occupy:\n * `<ng-template [dsFilterItem]=\"220\"> <ds-date-picker … /> </ng-template>`.\n *\n * A template rather than plain projection because the bar has to MOVE the filters\n * that do not fit into its overflow panel, and projected DOM cannot be relocated\n * — it renders where it was projected. The cost is that crossing the boundary\n * destroys and re-creates the view, so a control's internal state (an open panel,\n * focus) does not survive a resize that collapses it. Its VALUE does: that lives\n * in the consumer's own signal or form control.\n *\n * The width is a contract, not a hint — the bar sizes the slot to exactly this\n * and decides the split from it, so a control that would render wider is\n * narrowed rather than allowed to break the row.\n */\n@Directive({\n selector: 'ng-template[dsFilterItem]',\n standalone: true,\n})\nexport class FilterItemDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n\n /** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */\n readonly width = input(DEFAULT_ITEM_WIDTH, {\n alias: 'dsFilterItem',\n transform: toWidth,\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n input,\n isDevMode,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '../button/button.component';\nimport { PopoverComponent } from '../popover/popover.component';\nimport { ProjectionDroppedDirective } from '../projection-dropped.directive';\nimport type { DsSize } from '../../core/size';\nimport { FilterItemDirective } from './filter-item.directive';\n\n// Room kept for the \"+N more\" trigger, which only exists once something has\n// already collapsed. Measuring the real button would need it rendered first, and\n// its width then feeds back into the count that decides whether it renders at\n// all — a loop. A constant costs nothing: inline slots may shrink, so a longer\n// translation of the label takes space from them instead of breaking the row.\nconst MORE_TRIGGER_WIDTH = 132;\n\n/**\n * Priority+ filter row: renders as many filters as fit and collapses the rest\n * into a \"+N more\" panel. Every admin list past three filters hits the same wall\n * — the row wraps to a second line on a laptop, or the consumer hand-rolls this.\n *\n * The split is decided from each item's declared width plus one `ResizeObserver`\n * on the row, never by measuring the filters themselves: they would have to be in\n * the DOM to be measured, so anything that did not fit would flash before being\n * taken away. `[dsFilterItem]` carries the width.\n *\n * Anything marked `dsFilterBarTrailing` — search, a Clear button — sits at the\n * trailing edge and never collapses. Mark each control rather than wrapping them:\n * the bar owns that row's gap and alignment, and a projected wrapper would be a\n * plain block whose children stack. The trailing group is outside the measured\n * row, so flexbox subtracts its width before the row is measured and the\n * arithmetic needs no allowance for it.\n *\n * ```html\n * <ds-filter-bar>\n * <ng-template [dsFilterItem]=\"180\">\n * <ds-select label=\"Status\" … />\n * </ng-template>\n * <ng-template [dsFilterItem]=\"220\">\n * <ds-date-picker label=\"Opened\" … />\n * </ng-template>\n *\n * <ds-search dsFilterBarTrailing … />\n * <ds-button dsFilterBarTrailing variant=\"text\">Clear</ds-button>\n * </ds-filter-bar>\n * ```\n */\n@Component({\n selector: 'ds-filter-bar',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ButtonComponent,\n PopoverComponent,\n ProjectionDroppedDirective,\n ],\n templateUrl: './filter-bar.component.html',\n styleUrl: './filter-bar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FilterBarComponent {\n /** Trailing word of the trigger, after the count: \"+2 filters\". */\n readonly moreLabel = input<string>('more');\n /** Accessible name of the overflow panel. */\n readonly panelLabel = input<string>('More filters');\n /** Height of the \"+N\" trigger, to match the filters beside it. The bar cannot\n * infer this: `dsFilterItem` carries a WIDTH, and the filters are arbitrary\n * projected controls whose own `size` it never sees — so a row of `sm` filters\n * got an `md` trigger standing 8px taller under `align-items: flex-end`. */\n readonly triggerSize = input<DsSize>('md');\n\n protected readonly devMode = isDevMode();\n\n // descendants: true so a filter wrapped in @if or @for is still found — those\n // put it in an embedded view, which a direct-children query does not reach.\n protected readonly items = contentChildren(FilterItemDirective, {\n descendants: true,\n });\n\n private readonly row = viewChild<ElementRef<HTMLElement>>('row');\n private readonly rowWidth = signal(0);\n // Read off the row rather than hard-coded, so retuning --ds-filter-bar-gap\n // cannot silently desynchronise the arithmetic from what is rendered.\n private readonly gap = signal(0);\n\n protected readonly inlineCount = computed<number>(() => {\n const items = this.items();\n const available = this.rowWidth();\n if (!available) {\n return items.length;\n }\n\n const gap = this.gap();\n const total = items.reduce(\n (sum, item, index) => sum + (index > 0 ? gap : 0) + item.width(),\n 0,\n );\n if (total <= available) {\n return items.length;\n }\n\n // Only now is the trigger certain to render, so only now does it cost room.\n const budget = available - MORE_TRIGGER_WIDTH - gap;\n let used = 0;\n let count = 0;\n for (const item of items) {\n used += (count > 0 ? gap : 0) + item.width();\n if (used > budget) {\n break;\n }\n count++;\n }\n\n return count;\n });\n\n protected readonly inline = computed(() =>\n this.items().slice(0, this.inlineCount()),\n );\n\n /** The filters currently in the overflow panel. */\n readonly collapsed = computed(() => this.items().slice(this.inlineCount()));\n\n constructor() {\n effect((onCleanup) => {\n const row = this.row()?.nativeElement;\n if (!row) {\n return;\n }\n\n const measure = (): void => {\n this.rowWidth.set(row.clientWidth);\n this.gap.set(parseFloat(getComputedStyle(row).columnGap) || 0);\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(row);\n onCleanup(() => observer.disconnect());\n });\n }\n}\n","<div\n #row\n class=\"row\"\n>\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\"\n >\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\"\n >\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'\n >\n <ng-content></ng-content>\n </span>\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n input,\n} from '@angular/core';\nimport type { DsSize } from '../../core/size';\nimport { DS_FIELD_GROUP, type DsFieldGroupContext } from './field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n/**\n * One bordered control out of several: `select + input`, `search + button`,\n * `button + select`. The group owns the border, the radius, the focus ring and\n * the divider between segments; the controls inside render \"naked\".\n *\n * Segments are the direct children. Each hugs its content by default; mark the\n * one that should take the slack with `grow`:\n *\n * ```html\n * <ds-field-group>\n * <ds-select [options]=\"scopes\" />\n * <ds-input grow placeholder=\"Search…\" />\n * </ds-field-group>\n * ```\n *\n * A control knows it is a segment by injecting `DS_FIELD_GROUP` — see the token\n * for why that is DI and not an input. Grouped controls must not carry a `label`\n * or a `hint`: their own message row would break the glued line, so it is\n * suppressed and a group-level one is not built yet.\n */\n@Component({\n selector: 'ds-field-group',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './field-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n '[class]': 'sizeResolved()',\n '[class.invalid]': 'invalid()',\n '[class.disabled]': 'disabled()',\n '[class.full-width]': 'fullWidth()',\n },\n providers: [\n {\n provide: DS_FIELD_GROUP,\n useExisting: forwardRef(() => FieldGroupComponent),\n },\n ],\n})\nexport class FieldGroupComponent implements DsFieldGroupContext {\n /** Segment height — the field family's scale, so a group lines up with a\n * plain field beside it.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Draws the error border on the whole group. A single segment cannot be\n * invalid on its own: the border belongs to the group. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Dims the group. Disable the CONTROLS too — this is the chrome, not their\n * interactivity. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fills the container instead of hugging its segments. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n}\n","/** Options for {@link avatarTint}. */\nexport interface AvatarTintOptions {\n /** Hue arcs (degrees, `[start, end]` with `start < end`, within 0–360) the\n * derived hue must never land in — e.g. `[[310, 360], [0, 20]]` to skip a\n * pink brand hue and reds. An arc crossing 0° must be given as two arcs.\n * Default: none (full 0–360 range). */\n avoidHues?: readonly (readonly [number, number])[];\n /** HSL lightness percentage. Default 62. */\n lightness?: number;\n /** HSL saturation percentage. Default 50. */\n saturation?: number;\n /** Text colour paired with the background. Default `#fff`. */\n foreground?: string;\n}\n\n/** Deterministic `{ bg, fg }` tint for a seed string (an email, a name), so the\n * same person always gets the same colour.\n *\n * The background is `hsl(H 50% 62%)` and the text is always WHITE. HSL lightness is\n * not perceptually even, so the set reads bright — at the cost of contrast: white on\n * the lighter hues measures as little as 1.65:1, under the 4.5:1 WCAG AA asks of\n * text. Where the initials are the only identifier, pass your own `lightness`\n * (about 50) and keep white, which measures 5.3-6.6:1.\n *\n * Pass to `ds-avatar`'s `tint`, or let the component derive it via `seed`. */\nexport function avatarTint(\n seed: string,\n options?: AvatarTintOptions,\n): { bg: string; fg: string } {\n const lightness = options?.lightness ?? 62;\n const saturation = options?.saturation ?? 50;\n const hue = pickHue(hashSeed(seed), options?.avoidHues ?? []);\n\n return {\n bg: `hsl(${hue} ${saturation}% ${lightness}%)`,\n fg: options?.foreground ?? '#fff',\n };\n}\n\n/** Uppercased initials from the first two words. Accepts `(first, last)` parts or\n * a single full name (`initialsFrom('Ada Lovelace')` → `AL`); a lone name gives\n * one letter, `?` when empty.\n *\n * A deliberately naive Latin-script guess, and the library's ONLY naming rule.\n * Reading a name is a cultural convention, not a UI decision — \"María José\n * García López\" wants MG from a Spanish reader and \"Blue Cross Blue Shield\" wants\n * BC from an insurer — so an app with a real rule passes its own through\n * `DS_CONFIG.avatar.initials` or `ds-avatar`'s `initialsRule` rather than asking\n * this to grow modes it cannot get right. */\nexport function initialsFrom(first?: string, last?: string): string {\n const words =\n last === undefined\n ? (first ?? '').trim().split(/\\s+/).filter(Boolean)\n : [first ?? '', last ?? ''];\n const firstInitial = (words[0] ?? '').trim()[0] ?? '';\n const lastInitial = (words[1] ?? '').trim()[0] ?? '';\n\n return `${firstInitial}${lastInitial}`.toUpperCase() || '?';\n}\n\n// Java String.hashCode shape (hash*31 + charCode); the `<< 5` keeps hash in int range.\nfunction hashSeed(seed: string): number {\n let hash = 0;\n for (let index = 0; index < seed.length; index++) {\n hash = seed.charCodeAt(index) + ((hash << 5) - hash);\n }\n\n return hash;\n}\n\n// Distribute the hash evenly across 0–360 minus the excluded arcs, so the result\n// can never fall inside one.\nfunction pickHue(\n hash: number,\n avoidHues: readonly (readonly [number, number])[],\n): number {\n const excluded = normalizeArcs(avoidHues);\n const excludedDegrees = excluded.reduce(\n (sum, [start, end]) => sum + (end - start),\n 0,\n );\n const allowedDegrees = Math.max(1, 360 - excludedDegrees);\n let position = ((hash % allowedDegrees) + allowedDegrees) % allowedDegrees;\n\n let cursor = 0;\n for (const [start, end] of excluded) {\n const gap = start - cursor;\n if (position < gap) {\n return cursor + position;\n }\n position -= gap;\n cursor = end;\n }\n\n return cursor + position;\n}\n\n// Clamp to 0–360, drop empties, sort, merge overlaps → clean non-overlapping arcs.\nfunction normalizeArcs(\n arcs: readonly (readonly [number, number])[],\n): [number, number][] {\n const clamped = arcs\n .map(\n ([start, end]) =>\n [\n Math.max(0, Math.min(360, start)),\n Math.max(0, Math.min(360, end)),\n ] as [number, number],\n )\n .filter(([start, end]) => end > start)\n .sort((left, right) => left[0] - right[0]);\n\n const merged: [number, number][] = [];\n for (const [start, end] of clamped) {\n const previous = merged[merged.length - 1];\n if (previous && start <= previous[1]) {\n previous[1] = Math.max(previous[1], end);\n } else {\n merged.push([start, end]);\n }\n }\n\n return merged;\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { avatarTint, initialsFrom } from './avatar-tint';\nimport type { AvatarSize, AvatarStatus } from './avatar.types';\nimport { DS_CONFIG } from '../../core/ds-config';\n\nconst STATUS_ARIA_LABELS: Record<AvatarStatus, string> = {\n online: 'Online',\n offline: 'Offline',\n away: 'Away',\n busy: 'Busy',\n};\n\n@Component({\n selector: 'ds-avatar',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './avatar.component.html',\n styleUrl: './avatar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.xs]': \"size() === 'xs'\",\n '[class.sm]': \"size() === 'sm'\",\n '[class.lg]': \"size() === 'lg'\",\n '[class.neutral]': \"tint() === 'neutral'\",\n '[style.--ds-avatar-bg-color]': 'tintStyle().bg',\n '[style.--ds-avatar-label-color]': 'tintStyle().fg',\n '[attr.role]': \"ariaLabel() ? 'img' : null\",\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-hidden]': 'ariaLabel() ? null : true',\n },\n})\nexport class AvatarComponent {\n /** Diameter — xs/sm/lg apply a size class; md is the default. */\n readonly size = input<AvatarSize>('md');\n /** Fallback text shown when there's no `imageUrl`. Wins over anything derived\n * from `name`, so a caller that already has the letters keeps passing them. */\n readonly initials = input<string>('');\n /** The person or thing this avatar stands for — one binding drives both the\n * initials and the seed the tint hashes.\n *\n * The tint keys on the NAME, never on the initials — two letters collide\n * wholesale, so every Alice Brown and Adam Bell would share one colour. */\n readonly name = input<string>('');\n /** Replaces the built-in rule for turning `name` into initials, for one avatar\n * or one table of them. Falls back to `DS_CONFIG.avatar.initials`, then to\n * `initialsFrom` — first two words, a Latin-script guess the library does not\n * pretend is universal. */\n readonly initialsRule = input<((name: string) => string) | null>(null);\n /** Image source; shown before `initials` or `fallbackIcon` when set. */\n readonly imageUrl = input<string | null>(null);\n /** Accessible name. When omitted, the avatar is treated as decorative\n * (hidden from AT) — correct when a visible name sits beside it. */\n readonly ariaLabel = input<string | null>(null);\n /** Off-token color tint. Accepts a `{ bg, fg }` pair for arbitrary palettes,\n * the literal `'neutral'` for the neutral overflow-chip treatment, or null\n * for the default brand-subtle tones from avatar.scss. */\n readonly tint = input<{ bg: string; fg: string } | 'neutral' | null>(null);\n /** Presence indicator shown as a colored dot in the bottom-right corner. */\n readonly status = input<AvatarStatus | null>(null);\n /** Icon rendered when there is no imageUrl and no initials. */\n readonly fallbackIcon = input<IconName | null>(null);\n /** Seed for a deterministic tint (e.g. an email) used when no explicit `tint` is\n * set — the same seed always yields the same colour. Defaults to `name`; set it\n * explicitly when identity is an id or an email rather than the display name. */\n readonly seed = input<string | null>(null);\n /** Hue arcs `[start, end]` (0–360°) the seeded tint must avoid, e.g. a brand\n * hue: `[[310, 360], [0, 20]]`. Only applies when `seed` drives the tint. */\n readonly avoidHues = input<readonly (readonly [number, number])[]>([]);\n\n private readonly config = inject(DS_CONFIG);\n\n protected readonly initialsText = computed(() => {\n const explicit = this.initials();\n if (explicit) {\n return explicit;\n }\n const name = this.name();\n if (!name) {\n return '';\n }\n const rule = this.initialsRule() ?? this.config.avatar?.initials;\n\n return rule ? rule(name) : initialsFrom(name);\n });\n\n protected readonly tintStyle = computed(() => {\n const value = this.tint();\n if (value === 'neutral') {\n return { bg: null as string | null, fg: null as string | null };\n }\n if (value) {\n return { bg: value.bg, fg: value.fg };\n }\n\n const seed = this.seed() ?? this.name();\n if (seed) {\n return avatarTint(seed, { avoidHues: this.avoidHues() });\n }\n\n return { bg: null as string | null, fg: null as string | null };\n });\n\n protected readonly statusAriaLabel = computed(() => {\n const value = this.status();\n\n return value ? STATUS_ARIA_LABELS[value] : null;\n });\n}\n","@if (imageUrl()) {\n <img\n alt=\"\"\n [src]=\"imageUrl()\"\n />\n} @else if (initialsText()) {\n {{ initialsText() }}\n} @else if (fallbackIcon()) {\n <ds-icon\n [name]=\"fallbackIcon()!\"\n [size]=\"16\"\n />\n}\n\n@if (status()) {\n <span\n role=\"img\"\n [class]=\"'status-dot status-dot--' + status()\"\n [attr.aria-label]=\"statusAriaLabel()\"\n >\n </span>\n}\n","import { Component, ViewEncapsulation, computed, input } from '@angular/core';\n\n@Component({\n selector: 'ds-avatar-group',\n standalone: true,\n templateUrl: './avatar-group.component.html',\n styleUrl: './avatar-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AvatarGroupComponent {\n /** Maximum avatars shown before the rest collapse into an overflow chip. */\n readonly max = input<number>(4);\n /** Total avatar count driving the `+N` overflow; null counts the projected children. */\n readonly total = input<number | null>(null);\n\n protected readonly overflow = computed<number | null>(() => {\n const total = this.total();\n const max = this.max();\n if (total === null) {\n return null;\n }\n\n return total > max ? total - max : null;\n });\n}\n","<ng-content></ng-content>\n\n@if (overflow() !== null) {\n <span\n class=\"avatar-overflow\"\n [attr.aria-label]=\"overflow() + ' more'\"\n >\n +{{ overflow() }}\n </span>\n}\n","import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { devWarn } from '../../core/dev-warning';\nimport { IconComponent } from '../../icons/icon.component';\n\n@Component({\n selector: 'ds-stat',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './stat.component.html',\n styleUrl: './stat.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.error]': \"variant() === 'error'\",\n '[class.size-sm]': \"size() === 'sm'\",\n '[class.size-lg]': \"size() === 'lg'\",\n },\n})\nexport class StatComponent {\n constructor() {\n // `unit` concatenates onto the INPUT value, so a projected value silently\n // drops it — and \"kg\" quietly missing from a tile is the kind of thing that\n // reads as fine until someone checks the number against the source.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.unit() && !this.value()\n ? `[ds-stat] unit=\"${this.unit()}\" is set but there is no \\`value\\` input — a projected [dsStatValue] owns the whole line, so the unit is not rendered. Put it inside the projected content, or drop the input.`\n : null,\n );\n }\n }\n\n /** Metric name shown above the value. */\n readonly label = input.required<string>();\n /** Headline metric; `unit` is appended directly after it.\n *\n * Optional because the value can be PROJECTED instead — `[dsStatValue]`\n * takes a badge, a status dot, anything a tile needs where a number would go.\n * The input is the fallback, the same shape `[delta]` already has.\n *\n * Namespaced, unlike `[delta]`: twenty components in this library have a\n * `value` input, so a bare `value` attribute used to slot one of them in\n * would also set that input to the empty string.\n *\n * Takes `null` so `[value]=\"count | number\"` typechecks: Angular's own\n * `number`/`date`/`percent` pipes are typed `string | null`, and without the null the\n * idiomatic form fails `strictTemplates` and pushes consumers to `toLocaleString()` in\n * the template — which hardcodes a locale instead of reading LOCALE_ID. Renders as\n * nothing, like the empty default. */\n readonly value = input<string | number | null>('');\n /** Change amount; sign drives the up/down arrow and color. */\n readonly delta = input<number | null>(null);\n /** Suffix appended after the delta's magnitude, e.g. \"vs last month\". */\n readonly deltaLabel = input<string>('');\n /** Overrides the automatic up/down coloring of the delta. */\n readonly deltaTone = input<'neutral' | 'secondary' | null>(null);\n /** Secondary text shown below the value when there's no `delta`. */\n readonly caption = input<string>('');\n /** Suffix appended directly after `value`, e.g. \"%\". */\n readonly unit = input<string>('');\n /** `error` applies the error color treatment. */\n readonly variant = input<'default' | 'error'>('default');\n /** Controls the stat's overall type scale. */\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n\n protected readonly deltaClasses = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const tone = this.deltaTone();\n if (tone) {\n return `delta ${tone}`;\n }\n if (delta > 0) {\n return 'delta up';\n }\n if (delta < 0) {\n return 'delta down';\n }\n\n return 'delta';\n });\n\n protected readonly deltaIcon = computed<'arrowUp' | 'arrowDown' | null>(\n () => {\n const delta = this.delta();\n if (delta === null || delta === 0) {\n return null;\n }\n\n return delta > 0 ? 'arrowUp' : 'arrowDown';\n },\n );\n\n protected readonly deltaText = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const magnitude = Math.abs(delta);\n const suffix = this.deltaLabel() ? ` ${this.deltaLabel()}` : '';\n\n return `${magnitude}${suffix}`;\n });\n}\n","<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\"\n >\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n input,\n viewChild,\n} from '@angular/core';\nimport type { IconName } from '../../icons/icons.data';\n\n@Component({\n selector: 'ds-tab',\n standalone: true,\n template: `<ng-template #content>\n <ng-content></ng-content>\n </ng-template>`,\n styles: [':host { display: none; }'],\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TabComponent {\n /** Text shown in the tab button. */\n readonly label = input.required<string>();\n /** Icon shown before the label. */\n readonly icon = input<IconName | null>(null);\n /** Numeric badge shown after the label. */\n readonly count = input<number | null>(null);\n /** Excludes the tab from selection and keyboard navigation. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Identifier emitted by tabClosed. Falls back to label when omitted. */\n readonly value = input<string | null>(null);\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n Injector,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { ActivatedRoute, Router, type ParamMap } from '@angular/router';\nimport { IconComponent } from '../../icons/icon.component';\nimport { TabComponent } from './tab.component';\nimport type { TabsOrientation, TabsVariant } from './tabs.types';\n\nlet nextId = 0;\n\n// Which query parameters are already claimed, so two strips on one screen cannot\n// quietly fight over the same one. Dev-only bookkeeping; nothing reads it in\n// production.\nconst claimedUrlParams = new Map<string, number>();\n\n/** Label → URL name. Diacritics are decomposed and dropped so \"Zusätze\" gives\n * `zusatze` rather than a percent-encoded umlaut. A label with nothing sluggable\n * in it — CJK, or bare punctuation — keeps its raw text rather than becoming an\n * empty parameter. */\nfunction slugify(label: string): string {\n const slug = label\n .normalize('NFKD')\n .replace(/\\p{M}/gu, '')\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '');\n\n return slug || label;\n}\n\n@Component({\n selector: 'ds-tabs',\n standalone: true,\n imports: [NgTemplateOutlet, IconComponent],\n templateUrl: './tabs.component.html',\n styleUrl: './tabs.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.vertical-host]': \"orientation() === 'vertical'\",\n },\n})\nexport class TabsComponent {\n /** Index of the active tab, two-way bound. */\n readonly selectedIndex = model<number>(0);\n /** Visual style of the tab strip. */\n readonly variant = input<TabsVariant>('line');\n\n /** When true, a tab's content is instantiated only on first activation and\n kept alive thereafter. When false (default), all panels render eagerly. */\n readonly lazy = input(false, { transform: booleanAttribute });\n\n /** When true, the tab strip scrolls horizontally instead of wrapping. The\n active tab is scrolled into view on selection. */\n readonly scrollable = input(false, { transform: booleanAttribute });\n\n /** When true, each tab shows a close button. Clicking it emits tabClosed with\n the tab's value (or label as fallback) and does not switch to that tab. */\n readonly closable = input(false, { transform: booleanAttribute });\n\n /** Controls whether the tab list and panel are stacked horizontally (default)\n or the tab list runs vertically beside the panel. */\n readonly orientation = input<TabsOrientation>('horizontal');\n\n /**\n * Keep the active tab in a query parameter, so it survives F5, a shared link\n * and the Back button: `urlParam=\"tab\"` gives `?tab=activity`. Empty (the\n * default) leaves the URL alone, and the strip works exactly as before.\n *\n * The names come from each `ds-tab`'s `value` (falling back to its `label`),\n * so there is no second list to keep in step. **Names, not indices** — writing\n * `?tab=1` would silently repoint every old link the moment a tab is inserted.\n * The FIRST tab writes no parameter and every write REPLACES the history\n * entry, so a pristine screen keeps a clean address and flipping tabs does not\n * fill the Back button.\n *\n * An unknown or missing name lands on the first tab rather than throwing: a\n * URL is user input, and a stale bookmark should still open the screen.\n *\n * Outside a routed context the input is inert. Nothing router-shaped is even\n * resolved until you set it — no DI lookup and, more to the point, no\n * subscription — so a strip that never uses this costs exactly what it did\n * before the input existed.\n */\n readonly urlParam = input<string>('');\n\n /** Reopen the tab this screen was last left on, per path, from `sessionStorage`.\n * Off by default, and needs `urlParam` for the names — a remembered INDEX would\n * repoint the moment a tab is inserted. A link always wins: the parameter is read\n * first, memory only fills the gap the first tab leaves in the URL. Session, not\n * local, so tomorrow is a fresh visit. */\n readonly rememberLastTab = input(false, { transform: booleanAttribute });\n\n /** Emitted when a close button is clicked. Carries the tab's value input, or\n its label when value is not set. The host is responsible for removing the\n tab from its list. */\n readonly tabClosed = output<string>();\n\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly uid = `ds-tabs-${++nextId}`;\n\n protected readonly tabs = contentChildren(TabComponent);\n\n // Nothing router-shaped is touched until `urlParam` is set: no DI lookup, and\n // above all no subscription. A tab strip is perfectly valid outside a routed\n // context — in a dialog, on a static page — and most are, so the default must\n // cost nothing. Resolved through the component's own Injector rather than\n // `inject(Router)` at construction, which would run for every instance.\n private readonly injector = inject(Injector);\n private router: Router | null = null;\n private route: ActivatedRoute | null = null;\n private readonly urlParams = signal<ParamMap | null>(null);\n\n constructor() {\n /**\n * Two strips sharing a parameter is the failure mode of going round a screen\n * turning this on: `tab` is the obvious name, so the second strip takes it\n * too, and from then on each write erases the other's tab. Nothing throws and\n * the URL looks plausible — it just restores the wrong tab on reload.\n */\n if (isDevMode()) {\n effect((onCleanup) => {\n const param = this.urlParam();\n if (!param) {\n return;\n }\n const held = claimedUrlParams.get(param) ?? 0;\n if (held > 0) {\n console.warn(\n `[ds-tabs] urlParam=\"${param}\" is already used by another ds-tabs on this screen. Both strips write the same query parameter, so each one erases the other's tab and a reload restores whichever wrote last. Give each strip its own name.`,\n );\n }\n claimedUrlParams.set(param, held + 1);\n // onCleanup alone: it runs before every re-run AND on destroy, so\n // releasing again from a DestroyRef would double-count the way out.\n onCleanup(() => {\n const now = (claimedUrlParams.get(param) ?? 1) - 1;\n if (now > 0) {\n claimedUrlParams.set(param, now);\n } else {\n claimedUrlParams.delete(param);\n }\n });\n });\n }\n\n // Subscribe only while the feature is on, and drop the subscription again if\n // `urlParam` is cleared.\n effect((onCleanup) => {\n if (!this.urlParam() || !this.resolveRouting()) {\n this.urlParams.set(null);\n\n return;\n }\n const subscription = this.route!.queryParamMap.subscribe((map) =>\n this.urlParams.set(map),\n );\n onCleanup(() => subscription.unsubscribe());\n });\n\n // URL -> tab. Runs again when the tabs arrive (content children resolve\n // after the first pass) and on every Back/Forward, which is what makes the\n // history walk the tabs. Writing back is guarded by the equality check\n // below, so this cannot loop with `writeUrl`.\n effect(() => {\n const param = this.urlParam();\n const params = this.urlParams();\n const tabs = this.tabs();\n if (!param || !params || tabs.length === 0) {\n return;\n }\n const target = params.get(param) ?? this.rememberedName();\n const found = target\n ? tabs.findIndex((tab) => this.tabName(tab) === target)\n : 0;\n const index = found < 0 ? 0 : found;\n if (index !== this.selectedIndex()) {\n this.selectedIndex.set(index);\n }\n });\n }\n\n /** Resolves the router pair on first use. Null outside a routed context, which\n * makes `urlParam` inert there rather than an error. */\n private resolveRouting(): boolean {\n this.router ??= this.injector.get(Router, null);\n this.route ??= this.injector.get(ActivatedRoute, null);\n\n return !!this.router && !!this.route;\n }\n\n /** The tab's name AS IT APPEARS IN THE URL, and deliberately NOT what\n * `tabClosed` emits — that stays the label, because a host matches it against\n * its own list. A slug is still derived from display copy, so renaming a tab\n * still breaks saved links; `value` is the only fix for that. */\n private tabName(tab: TabComponent): string {\n return tab.value() ?? slugify(tab.label());\n }\n\n /** Storage key for `rememberLastTab`: the path plus the parameter name. Per\n * path because that is the screen a reader returns to, and the parameter is\n * what keeps two strips on one path apart — which the dev warning above\n * already insists is unique. */\n private memoryKey(): string | null {\n const param = this.urlParam();\n if (!this.rememberLastTab() || !param || !this.resolveRouting()) {\n return null;\n }\n\n return `ds-tabs:${this.router!.url.split('?')[0]}:${param}`;\n }\n\n /** Every access is wrapped: Safari in private mode throws on write, and a\n * quota error must not take a tab strip down with it. Same guard as\n * `ds-table`'s persisted layout. */\n private rememberedName(): string | null {\n const key = this.memoryKey();\n if (!key) {\n return null;\n }\n try {\n return sessionStorage.getItem(key);\n } catch {\n return null;\n }\n }\n\n private remember(index: number): void {\n const key = this.memoryKey();\n const tab = this.tabs()[index];\n if (!key || !tab) {\n return;\n }\n try {\n // Stored for the first tab too, which writes no parameter: without that,\n // deliberately going back to tab one would be forgotten and the next visit\n // would reopen the tab before it.\n sessionStorage.setItem(key, this.tabName(tab));\n } catch {\n // Storage unavailable — the strip simply stops remembering.\n }\n }\n\n private writeUrl(index: number): void {\n this.remember(index);\n const param = this.urlParam();\n if (!param || !this.resolveRouting()) {\n return;\n }\n const tab = this.tabs()[index];\n void this.router!.navigate([], {\n relativeTo: this.route,\n queryParams: { [param]: index === 0 || !tab ? null : this.tabName(tab) },\n queryParamsHandling: 'merge',\n replaceUrl: true,\n });\n }\n\n /** Tracks which tab indices have ever been activated (for lazy rendering). */\n private readonly activatedIndices = signal<ReadonlySet<number>>(new Set([0]));\n\n protected tabId(index: number): string {\n return `${this.uid}-tab-${index}`;\n }\n\n protected panelId(index: number): string {\n return `${this.uid}-panel-${index}`;\n }\n\n protected readonly tablistClasses = computed(() => {\n const parts = ['tabs'];\n if (this.variant() === 'pills') {\n parts.push('pills');\n }\n if (this.scrollable()) {\n parts.push('scrollable');\n }\n if (this.orientation() === 'vertical') {\n parts.push('vertical');\n }\n\n return parts.join(' ');\n });\n\n /** Whether the panel for a given index should be rendered (lazy gate). */\n protected isPanelVisible(index: number): boolean {\n if (!this.lazy()) {\n return index === this.selectedIndex();\n }\n\n return this.activatedIndices().has(index);\n }\n\n protected tabClasses(index: number, disabled: boolean): string {\n const parts = ['tab'];\n if (index === this.selectedIndex()) {\n parts.push('active');\n }\n if (disabled) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n }\n\n protected select(index: number, disabled: boolean): void {\n if (disabled) {\n return;\n }\n this.selectedIndex.set(index);\n this.writeUrl(index);\n if (this.lazy()) {\n this.activatedIndices.update((previous) => {\n if (previous.has(index)) {\n return previous;\n }\n\n return new Set([...previous, index]);\n });\n }\n if (this.scrollable()) {\n setTimeout(() => {\n const button = this.host.nativeElement.querySelector(\n `#${this.tabId(index)}`,\n ) as HTMLElement | null;\n button?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n });\n }\n }\n\n protected onCloseClick(event: MouseEvent, index: number): void {\n event.stopPropagation();\n this.closeTab(index);\n }\n\n private closeTab(index: number): void {\n const tab = this.tabs()[index];\n if (!tab) {\n return;\n }\n this.tabClosed.emit(tab.value() ?? tab.label());\n }\n\n /** Roving keyboard navigation across the tablist (APG automatic activation).\n Arrow axis follows orientation: Left/Right for horizontal, Up/Down for vertical. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n const count = this.tabs().length;\n if (!count) {\n return;\n }\n // APG: Delete removes the focused tab when the tablist is closable.\n if (this.closable() && event.key === 'Delete') {\n event.preventDefault();\n this.closeTab(index);\n\n return;\n }\n const isVertical = this.orientation() === 'vertical';\n const forwardKey = isVertical ? 'ArrowDown' : 'ArrowRight';\n const backwardKey = isVertical ? 'ArrowUp' : 'ArrowLeft';\n // Keep both axes active so vertical also responds to Left/Right and\n // horizontal also responds to Up/Down for cross-axis discoverability,\n // matching the ARIA APG recommendation for roving tabindex.\n const forward =\n event.key === forwardKey ||\n (!isVertical && event.key === 'ArrowDown') ||\n (isVertical && event.key === 'ArrowRight');\n const backward =\n event.key === backwardKey ||\n (!isVertical && event.key === 'ArrowUp') ||\n (isVertical && event.key === 'ArrowLeft');\n\n let next: number;\n if (forward) {\n next = (index + 1) % count;\n } else if (backward) {\n next = (index - 1 + count) % count;\n } else if (event.key === 'Home') {\n next = 0;\n } else if (event.key === 'End') {\n next = count - 1;\n } else {\n return;\n }\n event.preventDefault();\n // Skip disabled tabs in the travel direction.\n const step = backward || event.key === 'End' ? -1 : 1;\n let guard = 0;\n while (this.tabs()[next]?.disabled() && guard < count) {\n next = (next + step + count) % count;\n guard++;\n }\n this.select(next, this.tabs()[next]?.disabled() ?? false);\n setTimeout(() => {\n const element = this.host.nativeElement.querySelector(\n `#${this.tabId(next)}`,\n ) as HTMLElement | null;\n element?.focus();\n });\n }\n}\n","<div\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\"\n>\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\"\n >\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\"\n >\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge neutral count\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"'Close ' + tab.label()\"\n (click)=\"onCloseClick($event, $index)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"12\"\n >\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\"\n >\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n","/**\n * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends\n * `undefined` when the schema sets no bound. The DS spells an absent bound as\n * `null`, so the write type has to accept both while the read type stays what it\n * always was — otherwise every internal use and every consumer moves for nothing.\n *\n * Declared once here because it was copy-pasted across three controls, and an\n * explanation in three places is an explanation that drifts in two of them.\n */\nexport function optionalBound(value: number | null | undefined): number | null {\n return value ?? null;\n}\n\n/** As `optionalBound`, for a bound the control requires a value for. */\nexport function boundOr(fallback: number) {\n return (value: number | undefined): number => value ?? fallback;\n}\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { DsSize } from '../../core/size';\n\n@Component({\n selector: 'ds-spinner',\n standalone: true,\n template: '',\n styleUrl: './spinner.component.scss',\n host: {\n role: 'status',\n 'aria-label': 'Loading',\n '[class.sm]': \"size() === 'sm'\",\n '[class.lg]': \"size() === 'lg'\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SpinnerComponent {\n /** Spinner size — sm/md/lg. */\n readonly size = input<DsSize>('md');\n}\n","import { Directive, booleanAttribute, input } from '@angular/core';\nimport { DsMessageBase } from './message-base';\nimport {\n normalizeFieldErrors,\n type DsFieldError,\n type DsFieldErrorsInput,\n} from './field-errors';\n\n/**\n * The inputs every DS form field has, declared once.\n *\n * Only the UNIVERSAL ones belong here. `success`, `label`, `required` and\n * `optional` stay on the components: they exist on some fields and not others, so\n * lifting them would hand a checkbox a `success` or a slider a `label` it never\n * had — a silent public-API addition.\n *\n * The message half lives one level up in `DsMessageBase`, which anything with a\n * message line can take. What stays here is the validation state a form control\n * has and a plain control does not.\n */\n@Directive()\nexport abstract class DsFieldBase extends DsMessageBase {\n /** Validation errors, shown once the user has interacted. Bound automatically\n * by signal forms; reactive and template-driven forms are read through\n * `NgControl` and need nothing here. Accepts a string, one error, or an array. */\n readonly errors = input<readonly DsFieldError[], DsFieldErrorsInput>([], {\n transform: normalizeFieldErrors,\n });\n /** Paints the error state and sets `aria-invalid`, WITHOUT a message of its own\n * — for when the text lives elsewhere, such as a form-level error summary or\n * one message covering a whole field group. Use `error` to show text. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Whether the user has interacted with the field. Bound by signal forms; gates\n * `errors`, so a `required` error does not greet an untouched form. */\n readonly touched = input(false, { transform: booleanAttribute });\n}\n","import {\n Directive,\n ElementRef,\n booleanAttribute,\n effect,\n inject,\n input,\n signal,\n type ModelSignal,\n type WritableSignal,\n} from '@angular/core';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { DsFieldBase } from './field-base';\n\n/**\n * Value-bearing elements come FIRST, and that ordering is the whole point: the\n * number stepper renders its decrement button before its input, so \"the first\n * focusable descendant\" would land on minus. `tabindex=\"-1\"` is excluded from\n * both passes so a roving-tabindex group (ds-radio-group) yields the radio that\n * is actually tabbable rather than the first one in the DOM. Portaled panels are\n * outside the host, so a closed picker cannot be focused by accident.\n */\nconst NOT_ROVED = ':not([tabindex=\"-1\"]):not([disabled])';\nconst VALUE_ELEMENTS = `input:not([type=\"hidden\"])${NOT_ROVED}, textarea${NOT_ROVED}`;\nconst TRIGGER_ELEMENTS = `button${NOT_ROVED}, [tabindex=\"0\"]${NOT_ROVED}`;\n\n/**\n * The `ControlValueAccessor` half of a DS value control, with no message API\n * attached. `DsControlValueAccessor` is this plus `DsFieldBase`; a control that\n * holds a value and renders no message row — `ds-search`, a toolbar filter rather\n * than a validated field — takes this directly and gets no message inputs with it.\n *\n * The model arrives as a THUNK, not a signal: on a base class `value` is abstract\n * and on a component it is a field initialiser, so it does not exist yet when this\n * runs. Every read defers to call time, which is also when the effect first runs.\n *\n * Must be called from an injection context (it owns an `effect`).\n */\nexport function valueControlBridge<T>(model: () => ModelSignal<T>): {\n readonly formDisabled: WritableSignal<boolean>;\n readonly touchedSelf: WritableSignal<boolean>;\n markTouched(): void;\n writeValue(next: T): void;\n registerOnChange(fn: (next: T) => void): void;\n registerOnTouched(fn: () => void): void;\n setDisabledState(isDisabled: boolean): void;\n} {\n const formDisabled = signal(false);\n const touchedSelf = signal(false);\n let onChange: (next: T) => void = () => {};\n let onTouched: () => void = () => {};\n // Last value synced with the forms API. Guards the watching effect from echoing\n // a form-driven write back as a user change (which would dirty the control or\n // loop), while still emitting every genuine model change.\n let synced: T | undefined;\n let hasSynced = false;\n\n effect(() => {\n const next = model()();\n if (!hasSynced) {\n // Adopt the initial value once, silently — never emit on init.\n hasSynced = true;\n synced = next;\n\n return;\n }\n if (Object.is(next, synced)) {\n return;\n }\n synced = next;\n onChange(next);\n });\n\n return {\n formDisabled,\n touchedSelf,\n markTouched: () => {\n touchedSelf.set(true);\n onTouched();\n },\n writeValue: (next: T) => {\n hasSynced = true;\n synced = next;\n model().set(next);\n },\n registerOnChange: (fn: (next: T) => void) => {\n onChange = fn;\n },\n registerOnTouched: (fn: () => void) => {\n onTouched = fn;\n },\n setDisabledState: (isDisabled: boolean) => {\n formDisabled.set(isDisabled);\n },\n };\n}\n\nfunction focusOwnControl(host: HTMLElement, options?: FocusOptions): void {\n const target =\n host.querySelector<HTMLElement>(VALUE_ELEMENTS) ??\n host.querySelector<HTMLElement>(TRIGGER_ELEMENTS);\n target?.focus(options);\n}\n\n/**\n * Shared `ControlValueAccessor` for DS form controls whose value is a signal\n * `model()`. Bridges that model with Angular forms (reactive `formControl` /\n * `formControlName` and template `ngModel`) in both directions, WITHOUT\n * touching the existing `[(value)]` signal API — both keep working.\n *\n * A subclass must expose the `value` model and OR `formDisabled()` into its\n * effective disabled state so `FormControl.disable()` actually reaches the\n * control; it should also call `markTouched()` from a blur handler.\n */\n@Directive({\n host: { '[style.display]': 'hidden() ? \"none\" : null' },\n})\nexport abstract class DsControlValueAccessor<T>\n extends DsFieldBase\n implements ControlValueAccessor\n{\n /** The component's two-way value model. */\n abstract readonly value: ModelSignal<T>;\n\n /**\n * Hides the control. On the base so signal forms reaches every control at once.\n * Inline `display`, not the `hidden` attribute — each control sets its own\n * `:host` display, which the attribute's weaker UA rule would lose to.\n */\n readonly hidden = input(false, { transform: booleanAttribute });\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Signal forms calls this through `focusBoundControl()` — typically to reach\n * the first invalid field after a failed submit. Without it the default is to\n * focus the HOST, and a `<ds-*>` element is not focusable, so focus went\n * nowhere. A control with a more precise target overrides this.\n */\n focus(options?: FocusOptions): void {\n focusOwnControl(this.hostElement.nativeElement, options);\n }\n\n private readonly bridge = valueControlBridge<T>(() => this.value);\n\n /** Driven by the forms API via `setDisabledState`. */\n protected readonly formDisabled = this.bridge.formDisabled;\n\n // Separate from the control's `touched`, which only exists once `NgControl`\n // resolves — too late to gate the first blur.\n protected readonly touchedSelf = this.bridge.touchedSelf;\n\n /** Call from a blur handler so the control reports `ng-touched`. */\n protected markTouched(): void {\n this.bridge.markTouched();\n }\n\n writeValue(value: T): void {\n this.bridge.writeValue(value);\n }\n\n registerOnChange(fn: (value: T) => void): void {\n this.bridge.registerOnChange(fn);\n }\n\n registerOnTouched(fn: () => void): void {\n this.bridge.registerOnTouched(fn);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.bridge.setDisabledState(isDisabled);\n }\n}\n\n/**\n * Shared `ControlValueAccessor` for DS boolean controls (checkbox, switch)\n * whose state lives in a `checked` model signal rather than `value`. Bridges\n * with Angular forms in both directions without affecting the `[(checked)]`\n * signal API. Subclasses must OR `formDisabled()` into their effective disabled\n * state and call `markTouched()` from a blur handler.\n */\n@Directive({\n host: { '[style.display]': 'hidden() ? \"none\" : null' },\n})\nexport abstract class DsBooleanControlValueAccessor\n extends DsFieldBase\n implements ControlValueAccessor\n{\n /** The component's two-way checked model. */\n abstract readonly checked: ModelSignal<boolean>;\n\n /** Hides the control — see the note on `DsControlValueAccessor.hidden`. */\n readonly hidden = input(false, { transform: booleanAttribute });\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Signal forms calls this through `focusBoundControl()` — typically to reach\n * the first invalid field after a failed submit. Without it the default is to\n * focus the HOST, and a `<ds-*>` element is not focusable, so focus went\n * nowhere. A control with a more precise target overrides this.\n */\n focus(options?: FocusOptions): void {\n focusOwnControl(this.hostElement.nativeElement, options);\n }\n\n /** Driven by the forms API via `setDisabledState`. */\n protected readonly formDisabled = signal(false);\n\n // Separate from the control's `touched`, which only exists once `NgControl`\n // resolves — too late to gate the first blur.\n protected readonly touchedSelf = signal(false);\n\n private onChange: (value: boolean) => void = () => {};\n private onTouched: () => void = () => {};\n\n private synced: boolean | undefined;\n private hasSynced = false;\n\n constructor() {\n super();\n effect(() => {\n const next = this.checked();\n if (!this.hasSynced) {\n this.hasSynced = true;\n this.synced = next;\n\n return;\n }\n if (Object.is(next, this.synced)) {\n return;\n }\n this.synced = next;\n this.onChange(next);\n });\n }\n\n /** Call from a blur handler so the control reports `ng-touched`. */\n protected markTouched(): void {\n this.touchedSelf.set(true);\n this.onTouched();\n }\n\n writeValue(value: boolean): void {\n this.hasSynced = true;\n this.synced = value;\n this.checked.set(value);\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\n\n/**\n * Focuses the field's inner `input`/`textarea` when the click lands on the\n * frame chrome — padding, a leading/trailing icon, an addon slot — instead of\n * the control itself. Applied to a field's wrapper element.\n *\n * `preventDefault` on that mousedown stops focus from bouncing off the\n * non-focusable chrome; clicks that land on the control, or on a nested\n * button/link/other input, are left untouched so caret placement, toggles and\n * projected controls keep working.\n */\n@Directive({\n selector: '[dsFieldClickFocus]',\n standalone: true,\n host: {\n '(mousedown)': 'onMousedown($event)',\n },\n})\nexport class FieldClickFocusDirective {\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n protected onMousedown(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (\n target.closest('input, textarea, button, a, select, [contenteditable]')\n ) {\n return;\n }\n const field = this.host.querySelector<\n HTMLInputElement | HTMLTextAreaElement\n >('input, textarea');\n if (field && !field.disabled && !field.readOnly) {\n event.preventDefault();\n field.focus();\n }\n }\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { optionalBound } from '../../core/field-bounds';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport { FieldClickFocusDirective } from '../field-click-focus.directive';\nimport type { InputType } from './input.types';\nimport type { DsSize } from '../../core/size';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-input',\n standalone: true,\n imports: [\n FormsModule,\n IconComponent,\n SpinnerComponent,\n FieldMessageComponent,\n FieldClickFocusDirective,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n },\n templateUrl: './input.component.html',\n styleUrl: './input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n})\nexport class InputComponent extends DsControlValueAccessor<string> {\n private readonly control = viewChild<ElementRef<HTMLInputElement>>('control');\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Native input type — also affects the default clear button and password toggle. */\n readonly type = input<InputType>('text');\n /** Field height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // The alias IS the point: signal forms binds by name, and the contract\n // spells it `readonly` where the DS spells it `readOnly`.\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a trailing spinner — e.g. async validation in flight. The input\n * stays editable; pair with a `hint` like \"Checking availability…\". */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Native `min` attribute — applies when `type=\"number\"`. */\n readonly min = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `max` attribute — applies when `type=\"number\"`. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `step` attribute — applies when `type=\"number\"`. */\n readonly step = input<number | null>(null);\n /** Native autocomplete token (e.g. \"email\", \"current-password\"). */\n readonly autocomplete = input<string | null>(null);\n /** Focuses the field automatically on render. */\n readonly autofocus = input(false, { transform: booleanAttribute });\n /** Accessible name when no visible `label` is provided (falls back to the\n * placeholder so the control is never unnamed). */\n readonly ariaLabel = input<string | null>(null);\n /** Extra element ids to describe the control with — a password-rule list, a\n * policy note. MERGED with the field's own message id rather than replacing\n * it, and it has to be an input because the attribute belongs on the inner\n * `<input>`: set on the host it lands on a wrapper no screen reader reads. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Hard character cap — applies the native maxlength attribute and shows a\n * live \"{current}/{max}\" counter below the field. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n // Signal forms binds these by name; without them a `pattern()` or `minLength()`\n // rule validated in the form model while the native element advertised nothing.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute — signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** Mobile keyboard hints — forwarded to the native input as attributes. */\n readonly enterKeyHint = input<\n 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null\n >(null);\n /** Native `inputmode` attribute — hints the on-screen keyboard layout. */\n readonly inputMode = input<\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | null\n >(null);\n /** Emits when the native input loses focus. */\n readonly blurred = output<void>();\n /**\n * Show an inline clear (×) button when the input has a non-empty value.\n * Mirrors the Material/PrimeNG pattern: explicit button (not native search\n * cancel) so the affordance is consistent across browsers and styled with\n * DS tokens. Defaults to true when type='search', false otherwise — pass\n * an explicit boolean to override.\n */\n readonly clearable = input<boolean | null>(null);\n\n /** Shows a show/hide button when `type=\"password\"`. */\n readonly passwordToggle = input(false, { transform: booleanAttribute });\n /** Whether the password is currently shown as plain text, two-way bound. */\n readonly passwordVisible = model<boolean>(false);\n\n protected readonly canClear = computed<boolean>(() => {\n const explicit = this.clearable();\n if (explicit !== null) {\n return explicit;\n }\n\n return this.type() === 'search';\n });\n\n /** A native `pattern` takes ONE expression; the schema can carry several, so\n * they are ANDed with lookaheads rather than silently dropping all but one. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-input');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n const ids = [this.hintId(), this.ariaDescribedBy()].filter(Boolean);\n\n return ids.length ? ids.join(' ') : null;\n });\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n /** Only name via aria-label when there's no visible `<label for>`. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n /** Effective disabled — own `disabled` input OR the reactive-forms state. */\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly showPasswordToggle = computed<boolean>(\n () =>\n this.passwordToggle() && this.type() === 'password' && !this.isDisabled(),\n );\n\n protected readonly effectiveType = computed<InputType>(() =>\n this.passwordToggle() &&\n this.type() === 'password' &&\n this.passwordVisible()\n ? 'text'\n : this.type(),\n );\n\n protected togglePassword(): void {\n this.passwordVisible.update((visible) => !visible);\n }\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n } else if (this.success().trim()) {\n parts.push('success');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.loading()) {\n parts.push('loading');\n }\n\n return parts.join(' ');\n });\n\n /** Move keyboard focus to the native input — public so a host can drive it\n * deliberately, e.g. focusing the first invalid field on a failed submit. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n\n protected clear(): void {\n this.value.set('');\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus\n >\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\"\n />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\"\n >\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\"\n >\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\"\n />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\"\n >\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n model,\n} from '@angular/core';\nimport { optionalBound, boundOr } from '../../core/field-bounds';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-number-stepper',\n standalone: true,\n templateUrl: './number-stepper.component.html',\n styleUrl: './number-stepper.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NumberStepperComponent {\n /** Current numeric value, two-way bound. */\n readonly value = model<number>(0);\n /** Lower bound — the decrement button and typed input clamp to it. */\n readonly min = input<number, number | undefined>(0, {\n transform: boundOr(0),\n });\n /** Upper bound — the increment button and typed input clamp to it; unbounded when null. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Amount added or subtracted per increment/decrement. */\n readonly step = input<number>(1);\n /** Control height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Disables the stepper and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the number input (the stepper has no visible label). */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly atMin = computed(() => this.value() <= this.min());\n protected readonly atMax = computed(() => {\n const max = this.max();\n\n return max != null && this.value() >= max;\n });\n\n protected readonly stepperClass = computed(() => {\n const parts = ['stepper', `size-${this.sizeResolved()}`];\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n\n inc(): void {\n if (this.atMax() || this.disabled()) {\n return;\n }\n this.value.set(this.value() + this.step());\n }\n\n dec(): void {\n if (this.atMin() || this.disabled()) {\n return;\n }\n this.value.set(this.value() - this.step());\n }\n\n protected setRaw(raw: string): void {\n const parsed = Number.parseInt(raw, 10);\n const number = Number.isNaN(parsed) ? 0 : parsed;\n let clamped = Math.max(this.min(), number);\n const max = this.max();\n if (max != null) {\n clamped = Math.min(max, clamped);\n }\n this.value.set(clamped);\n }\n}\n","<div [class]=\"stepperClass()\">\n <button\n type=\"button\"\n class=\"step minus\"\n aria-label=\"Decrease\"\n [disabled]=\"atMin() || disabled()\"\n (click)=\"dec()\"\n >\n −\n </button>\n\n <input\n type=\"number\"\n class=\"qty\"\n [min]=\"min()\"\n [max]=\"max() ?? undefined\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (input)=\"setRaw($any($event.target).value)\"\n />\n\n <button\n type=\"button\"\n class=\"step plus\"\n aria-label=\"Increase\"\n [disabled]=\"atMax() || disabled()\"\n (click)=\"inc()\"\n >\n +\n </button>\n</div>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { optionalBound } from '../../core/field-bounds';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport type { TextareaResize } from './textarea.types';\nimport type { DsSize } from '../../core/size';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport { FieldClickFocusDirective } from '../field-click-focus.directive';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-textarea',\n standalone: true,\n imports: [FormsModule, FieldMessageComponent, FieldClickFocusDirective],\n templateUrl: './textarea.component.html',\n styleUrl: './textarea.component.scss',\n host: {\n '[attr.data-field-state]': 'controlState()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextareaComponent),\n multi: true,\n },\n ],\n})\nexport class TextareaComponent extends DsControlValueAccessor<string> {\n private readonly control =\n viewChild<ElementRef<HTMLTextAreaElement>>('control');\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Field height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // The alias IS the point: signal forms binds by name, and the contract\n // spells it `readonly` where the DS spells it `readOnly`.\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `rows` attribute — visible line count. */\n readonly rows = input<number>(3);\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Grows the field with content instead of scrolling; forces `resize` to none. */\n readonly autosize = input(false, { transform: booleanAttribute });\n /** Minimum height in lines when `autosize`. */\n readonly minRows = input<number | null>(null);\n /** Maximum height in lines when `autosize`, beyond which it scrolls. */\n readonly maxRows = input<number | null>(null);\n /** Native CSS `resize` behaviour — ignored when `autosize`. */\n readonly resize = input<TextareaResize>('vertical');\n /** Accessible name when no visible `label` is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Hard character cap — applies the native maxlength attribute and shows a\n * live \"{current}/{max}\" counter below the field. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n\n // Signal forms binds these by name; without them a `pattern()` or `minLength()`\n // rule validated in the form model while the native element advertised nothing.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute — signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** A native `pattern` takes ONE expression; the schema can carry several, so\n * they are ANDed with lookaheads rather than silently dropping all but one. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-textarea');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n /** Effective disabled — own `disabled` input OR the reactive-forms state. */\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.autosize()) {\n parts.push('autosize');\n }\n\n return parts.join(' ');\n });\n\n protected readonly autosizeMinHeight = computed(() =>\n this.autosize() && this.minRows() ? `${this.minRows()}lh` : null,\n );\n protected readonly autosizeMaxHeight = computed(() =>\n this.autosize() && this.maxRows() ? `${this.maxRows()}lh` : null,\n );\n\n // Autosize grows with content, so a manual resize handle conflicts — force none.\n protected readonly effectiveResize = computed<TextareaResize>(() =>\n this.autosize() ? 'none' : this.resize(),\n );\n\n /** Move keyboard focus to the native textarea — public so a host can drive it\n * deliberately, e.g. focusing the first invalid field on a failed submit. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus\n >\n <textarea\n #control\n [id]=\"uid\"\n [rows]=\"rows()\"\n [attr.name]=\"name()\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [style.resize]=\"effectiveResize()\"\n [style.min-height]=\"autosizeMinHeight()\"\n [style.max-height]=\"autosizeMaxHeight()\"\n [style.overflow-y]=\"autosize() && maxRows() ? 'auto' : null\"\n [(ngModel)]=\"value\"\n (blur)=\"markTouched()\"\n >\n </textarea>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\"\n >\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n FormsModule,\n NG_VALUE_ACCESSOR,\n type ControlValueAccessor,\n} from '@angular/forms';\nimport { IconComponent } from '../../icons/icon.component';\nimport { valueControlBridge } from '../control-value-accessor';\nimport { FieldClickFocusDirective } from '../field-click-focus.directive';\nimport type { DsSize } from '../../core/size';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-search',\n standalone: true,\n imports: [FormsModule, IconComponent, FieldClickFocusDirective],\n host: {\n '[class.in-group]': 'inGroup',\n '[style.display]': 'hidden() ? \"none\" : null',\n },\n templateUrl: './search.component.html',\n styleUrl: './search.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SearchComponent),\n multi: true,\n },\n ],\n})\n/**\n * Takes the CVA bridge rather than `DsControlValueAccessor`, which also carries\n * `DsFieldBase`: a search box is a toolbar filter, not a validated field, so it has\n * no message row and no message API. Where a search needs a label or an error line,\n * that is what `ds-input` is for.\n */\nexport class SearchComponent implements ControlValueAccessor {\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly bridge = valueControlBridge<string>(() => this.value);\n\n /** Hides the control, as every other DS control does. Inline `display`, not the\n * attribute: the host sets its own, which the weaker UA rule would lose to. */\n readonly hidden = input(false, { transform: booleanAttribute });\n\n /** Driven by the forms API — OR'd into `isDisabled` like every other control. */\n protected readonly formDisabled = this.bridge.formDisabled;\n\n /** Search text, two-way bound. */\n readonly value = model<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('Search');\n /** Keyboard shortcut hint rendered in a trailing `<kbd>` badge. */\n readonly shortcut = input<string>('');\n /** Shows the leading search icon. */\n readonly showIcon = input(true, { transform: booleanAttribute });\n /** Show an inline clear (×) button on the right when there's a value. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Accessible name for the input (placeholder is not a reliable label). */\n readonly ariaLabel = input<string>('');\n /** Disables the input and the clear button. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n /** Control height. `md` (default) keeps the 36px search-row height; `sm` (32px)\n * aligns search with dense toolbars beside `sm` inputs/buttons; `lg` is touch.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Fires with the current value on Enter. */\n readonly submitted = output<string>();\n /** Milliseconds to hold each keystroke back before `value` updates — 0 (default)\n * writes on every keystroke, exactly as this control always has.\n *\n * Clearing the field BYPASSES the delay, which is the part a plain\n * `debounceTime` gets wrong: emptying a search is a deliberate act, and making\n * the user wait 200ms to see the full list back reads as a hang. Enter flushes\n * for the same reason. What the input SHOWS is never delayed. */\n readonly debounce = input(0, { transform: numberAttribute });\n\n private readonly inputEl =\n viewChild<ElementRef<HTMLInputElement>>('searchInput');\n\n /** What the input shows. Separate from `value` only so typing never waits on\n * the timer; with `debounce` at 0 the two move together. */\n protected readonly text = signal(this.value());\n\n private pending: ReturnType<typeof setTimeout> | null = null;\n /** The last text this component pushed into `value`, so an update arriving from\n * the HOST can be told apart from its own echo — a host resetting the field\n * mid-typing has to win, and cancel the keystroke still in flight. */\n private pushed = this.value();\n\n constructor() {\n effect(() => {\n const incoming = this.value();\n if (incoming !== this.pushed) {\n this.cancel();\n this.pushed = incoming;\n this.text.set(incoming);\n }\n });\n }\n\n /** Move keyboard focus to the search input. Public so a host can hand focus\n * over deliberately — e.g. a Clear button that disables itself on activation\n * would otherwise blur into `<body>` and restart Tab order at the top. */\n focus(options?: FocusOptions): void {\n this.inputEl()?.nativeElement.focus(options);\n }\n\n protected onText(next: string): void {\n this.text.set(next);\n if (this.debounce() > 0 && next !== '') {\n this.cancel();\n this.pending = setTimeout(() => {\n this.pending = null;\n this.push(next);\n }, this.debounce());\n\n return;\n }\n this.cancel();\n this.push(next);\n }\n\n protected onSubmit(): void {\n this.flush();\n this.submitted.emit(this.value());\n }\n\n /** Empties the field, DROPS any armed keystroke, and publishes '' immediately.\n * Public for the same reason `focus()` is: a host-owned Clear button outside the\n * control needs it. Writing `''` into `value` is not equivalent — the effect\n * that watches `value` only cancels the timer when the incoming text DIFFERS\n * from what this control last pushed, so clearing an already-empty-looking field\n * mid-debounce left the keystroke armed. */\n clear(): void {\n this.text.set('');\n this.cancel();\n this.push('');\n // The × is removed once empty; return focus to the input so keyboard\n // users don't get dropped onto <body>.\n this.inputEl()?.nativeElement.focus();\n }\n\n /** So Enter searches what the reader can see, not what the timer last let past. */\n private flush(): void {\n if (this.pending) {\n this.cancel();\n this.push(this.text());\n }\n }\n\n private push(next: string): void {\n this.pushed = next;\n this.value.set(next);\n }\n\n writeValue(next: string): void {\n this.bridge.writeValue(next);\n }\n\n registerOnChange(fn: (next: string) => void): void {\n this.bridge.registerOnChange(fn);\n }\n\n registerOnTouched(fn: () => void): void {\n this.bridge.registerOnTouched(fn);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.bridge.setDisabledState(isDisabled);\n }\n\n /** Reported to the forms API on blur, so a search inside a form goes `ng-touched`. */\n protected markTouched(): void {\n this.bridge.markTouched();\n }\n\n private cancel(): void {\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n }\n}\n","<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\"\n>\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\"\n >\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\"\n />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n","import type { DsOption, DsOptionGroup, DsOptionItem } from '../../core/option';\nimport { isDsOptionGroup } from '../../core/option';\nimport type { DsControlWidth } from '../../core/width';\n\nexport interface SelectOption extends DsOption<string> {}\n\nexport type SelectWidth = DsControlWidth;\n\nexport interface SelectOptionGroup extends DsOptionGroup<string> {}\n\nexport type SelectItem = DsOptionItem<string>;\n\nexport function isSelectOptionGroup(\n item: SelectItem,\n): item is SelectOptionGroup {\n return isDsOptionGroup(item);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Fills an option row's LABEL AREA in `ds-select`, `ds-multi-select` and\n * `ds-autocomplete` — an avatar, a colour dot, a second line of metadata.\n *\n * ```html\n * <ds-multi-select [options]=\"assignees()\">\n * <ng-template dsOptionTemplate let-option>\n * <ds-avatar size=\"xs\" [seed]=\"option.label\" /> {{ option.label }}\n * </ng-template>\n * </ds-multi-select>\n * ```\n *\n * The row itself stays library-owned: `role=\"option\"`, `aria-selected`, the\n * active-row class, the checkbox and the check glyph are not projected, so a\n * template cannot take the listbox semantics with it.\n */\n@Directive({\n selector: '[dsOptionTemplate]',\n standalone: true,\n})\nexport class DsOptionTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Replaces the CONTENTS of a picker's trigger — the chips, the value, the\n * placeholder — with your own markup. The trigger ELEMENT stays library-owned,\n * so `aria-haspopup`, `aria-expanded`, `aria-controls`, the roving\n * `aria-activedescendant` and the Enter/Space/ArrowDown/Escape handling cannot\n * be lost with it.\n *\n * ```html\n * <ds-multi-select [options]=\"labels()\" [(value)]=\"picked\">\n * <ng-template dsPickerTrigger let-count=\"count\">\n * Labels @if (count) { <ds-badge [count]=\"count\" /> }\n * </ng-template>\n * </ds-multi-select>\n * ```\n *\n * Context: `$implicit` and `selected` are the selected options, `count` their\n * number, `open` whether the panel is showing, `disabled` the control's state.\n *\n * A projected template WINS over `triggerDisplay` — that input is then not read\n * at all, so there is no \"compact plus a template\" combination to explain.\n */\n@Directive({\n selector: '[dsPickerTrigger]',\n standalone: true,\n})\nexport class DsPickerTriggerDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Replaces a picker panel's \"no matches\" row — an icon, a sentence in the app's\n * own language, a \"clear the filter\" button.\n *\n * Context: `query` is the text that matched nothing.\n *\n * The row keeps `role=\"status\"`, so a reader is told the list emptied whatever\n * the template puts inside it.\n */\n@Directive({\n selector: '[dsEmptyTemplate]',\n standalone: true,\n})\nexport class DsEmptyTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Fills a strip above a picker panel's option list — \"3 of 40 selected\", a\n * \"clear all\" button, a hint, a link to a fuller search.\n *\n * Context: `count` is how many options are visible after filtering, `total` how\n * many were given, and `query` the text that narrowed them.\n *\n * It sits OUTSIDE the `listbox`, so whatever you put here is not counted as an\n * option and does not break a screen reader's \"N of M\" position reporting. It\n * also stays put while the list scrolls under it — the panel clips and the list\n * is the scroller.\n */\n@Directive({\n selector: '[dsPanelHeaderTemplate]',\n standalone: true,\n})\nexport class DsPanelHeaderTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Fills a strip below a picker panel's option list — a \"create new\" affordance\n * of your own, a count, a link, an apply button for a panel the user batches\n * choices in.\n *\n * Context: the same as the header slot — `count`, `total`, `query`.\n *\n * Like the header it sits OUTSIDE the `listbox` and does not scroll with the\n * options. Anything focusable you put here is reached by Tab from the panel, so\n * give it an accessible name.\n */\n@Directive({\n selector: '[dsPanelFooterTemplate]',\n standalone: true,\n})\nexport class DsPanelFooterTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Fills an option group's heading — a count beside the name, a team glyph, a\n * secondary line.\n *\n * Context: `$implicit` and `group` are the group itself, `count` how many of its\n * options survived the filter.\n *\n * The heading element stays the library's: it keeps the id that the group's\n * `aria-labelledby` points at, so replacing the text cannot detach a group from\n * its name.\n */\n@Directive({\n selector: '[dsGroupLabelTemplate]',\n standalone: true,\n})\nexport class DsGroupLabelTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","/**\n * Index arithmetic for a keyboard cursor over a list of options.\n *\n * Every picker walks the same four ways — next, previous, first, last — skipping\n * whatever is disabled and wrapping at the ends.\n */\nexport interface DsListCursorList {\n length: number;\n isEnabled: (index: number) => boolean;\n}\n\n/** Where the cursor lands, or -1 when nothing in the list can take it. */\nexport function firstEnabledIndex(list: DsListCursorList): number {\n for (let index = 0; index < list.length; index += 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\nexport function lastEnabledIndex(list: DsListCursorList): number {\n for (let index = list.length - 1; index >= 0; index -= 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\n/**\n * The next enabled index `step` away from `from`, wrapping at both ends.\n *\n * `from` of -1 means \"no cursor yet\": stepping forward lands on the first\n * enabled entry and stepping back on the last, which is what a reader expects\n * from a freshly opened panel.\n */\nexport function nextEnabledIndex(\n list: DsListCursorList,\n from: number,\n step: number,\n): number {\n if (list.length === 0) {\n return -1;\n }\n if (from < 0) {\n return step > 0 ? firstEnabledIndex(list) : lastEnabledIndex(list);\n }\n\n let index = from;\n // eslint-disable-next-line @typescript-eslint/prefer-for-of -- walks from `from` with modulo wraparound; `attempts` only bounds the walk, it is not a sequential index\n for (let attempts = 0; attempts < list.length; attempts += 1) {\n index = (index + step + list.length) % list.length;\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return from;\n}\n","import { type Signal, afterRenderEffect, inject, DOCUMENT } from '@angular/core';\n\n/**\n * Keeps the keyboard cursor's row visible inside a scrolling panel.\n *\n * KEYBOARD ONLY, and that is the load-bearing part. The option rows also set the\n * active index on `mouseenter`, so a version that reacted to every change pulled\n * a partially visible row up under the pointer while the user was reading with\n * the mouse.\n *\n * Rows are looked up by id rather than through a `viewChildren` query because they\n * live in a portaled template — and the id is the one `aria-activedescendant`\n * already points at, so a failed lookup means that reference is broken too.\n */\nexport function scrollActiveOptionIntoView(\n activeDescendantId: Signal<string | null>,\n enabled: Signal<boolean>,\n armed: Signal<boolean>,\n): void {\n const documentRef = inject(DOCUMENT);\n\n afterRenderEffect(() => {\n const id = activeDescendantId();\n if (!enabled() || !armed() || !id) {\n return;\n }\n documentRef\n .getElementById(id)\n ?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n });\n}\n","import { type Signal, effect, inject, DOCUMENT } from '@angular/core';\n\n/**\n * Announces how many options survived the filter.\n *\n * Deliberately NOT a row inside the listbox. A live region there is an invalid\n * child and, worse, a region created together with its text is the case screen\n * readers reliably do not announce — there is no content CHANGE to fire on. The\n * node here is created once, empty, and only its text changes.\n *\n * The text is English, which is the same debt every other library-invented string\n * in this package carries (see the localization item in `docs/todo.md`). It is a\n * count, so it is the cheapest of them to swap once a provider lands.\n */\nexport function announceOptionCount(\n count: Signal<number>,\n active: Signal<boolean>,\n): void {\n const documentRef = inject(DOCUMENT);\n const region = documentRef.createElement('div');\n region.setAttribute('aria-live', 'polite');\n region.setAttribute('aria-atomic', 'true');\n // Off-screen rather than `display: none`, which would take it out of the\n // accessibility tree and announce nothing at all.\n region.style.cssText =\n 'position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;margin:-1px;padding:0';\n documentRef.body.appendChild(region);\n\n effect((onCleanup) => {\n onCleanup(() => region.remove());\n if (!active()) {\n region.textContent = '';\n\n return;\n }\n const total = count();\n region.textContent =\n total === 0 ? 'No results' : total === 1 ? '1 result' : `${total} results`;\n });\n}\n","/**\n * The jump-to-option-by-typing that a native `<select>` has and ours did not.\n *\n * Typing \"ba\" on a closed control moves to the first option starting with \"ba\",\n * and keeps extending the buffer while the user keeps typing. The timeout is what\n * separates \"ba\" from two separate \"b\" and \"a\" presses; 500ms is the interval\n * every native control and APG example uses.\n */\nconst RESET_AFTER_MS = 500;\n\nexport interface DsTypeAhead {\n /** Feed it a keypress. Returns the index to move to, or -1 when the key is not\n * a character or nothing matches. */\n match: (key: string, labels: readonly string[], from: number) => number;\n}\n\nexport function createTypeAhead(): DsTypeAhead {\n let buffer = '';\n let last = 0;\n\n return {\n match(key, labels, from) {\n // A modifier combination and any named key (\"Enter\", \"ArrowDown\") are not\n // text; only a single printable character extends the buffer.\n if (key.length !== 1 || !/\\S/.test(key)) {\n return -1;\n }\n\n const now = Date.now();\n buffer = now - last > RESET_AFTER_MS ? key : buffer + key;\n last = now;\n\n const query = buffer.toLowerCase();\n const cycling = buffer.length > 1 && [...buffer].every((character) => character === buffer[0]);\n const needle = cycling ? buffer[0].toLowerCase() : query;\n const start = cycling || buffer.length === 1 ? from + 1 : 0;\n\n for (let offset = 0; offset < labels.length; offset += 1) {\n const index = (start + offset + labels.length) % labels.length;\n if (labels[index].toLowerCase().startsWith(needle)) {\n return index;\n }\n }\n\n return -1;\n },\n };\n}\n","import {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n contentChild,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n dropdownOverlay,\n type DsOverlayCloseCause,\n forwardOverlayTokens,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { DsStaticPreview } from '../static-preview.directive';\nimport {\n isSelectOptionGroup,\n type SelectItem,\n type SelectOption,\n type SelectOptionGroup,\n type SelectWidth,\n} from './select.types';\nimport type { DsSize } from '../../core/size';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport { resolveWithConfig } from '../../core/config-defaults';\nimport { DsOptionTemplateDirective } from '../option-template.directive';\nimport { DsPickerTriggerDirective } from '../picker-trigger.directive';\nimport { DsEmptyTemplateDirective } from '../empty-template.directive';\nimport { DsPanelHeaderTemplateDirective } from '../panel-header-template.directive';\nimport { DsPanelFooterTemplateDirective } from '../panel-footer-template.directive';\nimport { DsGroupLabelTemplateDirective } from '../group-label-template.directive';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '../../core/list-cursor';\nimport { scrollActiveOptionIntoView } from '../scroll-active-option';\nimport { announceOptionCount } from '../picker-announcer';\nimport { createTypeAhead } from '../type-ahead';\n\n@Component({\n selector: 'ds-select',\n standalone: true,\n imports: [SpinnerComponent, IconComponent, NgTemplateOutlet, FieldMessageComponent],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n '[class.content-width]': \"width() === 'content'\",\n },\n templateUrl: './select.component.html',\n styleUrl: './select.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectComponent),\n multi: true,\n },\n ],\n})\nexport class SelectComponent\n extends DsControlValueAccessor<string>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Selected option's value, two-way bound. */\n readonly value = model<string>('');\n /** Flat options or option groups rendered in the dropdown panel. */\n readonly options = input<readonly SelectItem[]>([]);\n /** Public panel tokens forwarded onto the portaled overlay pane on open, so a\n * consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-minw',\n '--ds-dropdown-panel-maxw',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so the panel can still grow to its options. */\n readonly width = input<SelectWidth>('fill');\n /** Shown in the trigger when nothing is selected. */\n readonly placeholder = input<string>('');\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the trigger. */\n readonly label = input<string>('');\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** Prevents opening the dropdown while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Accessible name when no visible `label` is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Shows an inline clear (×) button when a value is selected. */\n readonly clearable = input(false, { transform: booleanAttribute });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-select');\n protected readonly labelId = `${this.uid}-label`;\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected optionId(flatIndex: number): string {\n return `${this.uid}-opt-${flatIndex}`;\n }\n /** Active option for `aria-activedescendant` (combobox keeps DOM focus). */\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n protected readonly panelContentTpl =\n viewChild.required<TemplateRef<unknown>>('panelContent');\n protected readonly open = signal<boolean>(false);\n protected readonly activeIndex = signal<number>(-1);\n\n private overlayRef: OverlayRef | null = null;\n\n // An entry's index here IS `activeIndex` — group headers are not entries, so\n // keyboard nav never lands on one.\n protected readonly flatOptions = computed<\n { option: SelectOption; groupDisabled: boolean }[]\n >(() => {\n const out: { option: SelectOption; groupDisabled: boolean }[] = [];\n for (const item of this.options()) {\n if (isSelectOptionGroup(item)) {\n const groupDisabled = !!item.disabled;\n for (const opt of item.options) {\n out.push({ option: opt, groupDisabled });\n }\n } else {\n out.push({ option: item, groupDisabled: false });\n }\n }\n\n return out;\n });\n\n protected readonly selectedOption = computed<SelectOption | null>(() => {\n const current = this.value();\n const found = this.flatOptions().find(\n ({ option }) => option.value === current,\n );\n\n return found?.option ?? null;\n });\n\n protected readonly displayLabel = computed<string>(() => {\n return this.selectedOption()?.label ?? this.placeholder();\n });\n\n protected readonly hasValue = computed<boolean>(\n () => !!this.selectedOption(),\n );\n\n protected readonly triggerClasses = computed<string>(() => {\n const parts = ['dropdown'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('readonly');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n if (this.open() || this.preview.staticPreview()) {\n parts.push('open');\n }\n\n return parts.join(' ');\n });\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.flatOptions().length),\n this.open,\n );\n\n effect(() => {\n if (!this.open()) {\n return;\n }\n const index = this.flatOptions().findIndex(\n ({ option }) => option.value === this.value(),\n );\n this.activeIndex.set(index >= 0 ? index : this.firstEnabledIndex());\n });\n }\n\n protected isOptionGroup(item: SelectItem): item is SelectOptionGroup {\n return isSelectOptionGroup(item);\n }\n\n protected flatIndexOf(opt: SelectOption): number {\n return this.flatOptions().findIndex(({ option }) => option === opt);\n }\n\n protected toggle(): void {\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n if (this.open()) {\n this.close();\n } else {\n this.openPanel();\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n );\n if (this.width() === 'content') {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n const detaching = this.overlayRef;\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n // A deferred dispose can outlive a re-open, and then this fires for the\n // PREVIOUS panel: clearing state here would strand the live one.\n if (this.overlayRef !== detaching) {\n return;\n }\n this.overlayRef = null;\n this.setOpen(false);\n });\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n this.setOpen(true);\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.activeIndex.set(-1);\n this.markTouched();\n }\n\n ngOnDestroy(): void {\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected pick(option: SelectOption, groupDisabled = false): void {\n if (option.disabled || groupDisabled) {\n return;\n }\n this.value.set(option.value);\n this.close();\n this.trigger().nativeElement.focus();\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself.\n *\n * Deliberately does NOT move focus: the caller may be navigating away, and\n * stealing focus back into a field they just left is worse than leaving it.\n */\n clear(): void {\n this.value.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected isSelected(option: SelectOption): boolean {\n return option.value === this.value();\n }\n\n protected isOptionDisabled(\n option: SelectOption,\n groupDisabled = false,\n ): boolean {\n return !!option.disabled || groupDisabled;\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n // Only handle keys aimed at the trigger itself — a keydown bubbling up from\n // the nested clear <button> must reach its own activation (Enter/Space to\n // clear), not be hijacked here into reopening the panel.\n if (event.target !== event.currentTarget) {\n return;\n }\n const key = event.key;\n if (!this.open()) {\n if (\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter' ||\n key === ' '\n ) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n // A native <select> commits as you type without opening, so the value changes under\n // the closed trigger.\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n this.pickActive();\n }\n\n return;\n }\n if (key === 'Tab') {\n // Close the panel but let Tab move focus naturally (no preventDefault),\n // else the open overlay panel lingers behind the moved focus.\n this.close();\n\n return;\n }\n if (key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n\n return;\n }\n if (key === 'ArrowDown') {\n event.preventDefault();\n this.moveActive(1);\n\n return;\n }\n if (key === 'ArrowUp') {\n event.preventDefault();\n this.moveActive(-1);\n\n return;\n }\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n const index = this.activeIndex();\n const entry = this.flatOptions()[index];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n\n return;\n }\n if (key === 'PageDown') {\n event.preventDefault();\n this.moveActive(SelectComponent.pageStep);\n\n return;\n }\n if (key === 'PageUp') {\n event.preventDefault();\n this.moveActive(-SelectComponent.pageStep);\n\n return;\n }\n if (key === 'Home') {\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n\n return;\n }\n if (key === 'End') {\n event.preventDefault();\n this.activeIndex.set(this.lastEnabledIndex());\n\n return;\n }\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n }\n }\n\n private pickActive(): void {\n const entry = this.flatOptions()[this.activeIndex()];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n }\n\n protected isActive(index: number): boolean {\n return this.activeIndex() === index;\n }\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(key, this.flatOptions().map((entry) => entry.option.label), this.activeIndex());\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const opts = this.flatOptions();\n\n return {\n length: opts.length,\n isEnabled: (index: number) =>\n !opts[index].option.disabled && !opts[index].groupDisabled,\n };\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n private lastEnabledIndex(): number {\n return lastEnabledOf(this.cursorList());\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\"\n />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\"\n />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\"\n >\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\"\n />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n >\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\"\n >\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\"\n >\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\"\n >\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"cursorFromKeyboard.set(false); activeIndex.set(flatIndexOf(opt))\"\n >\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\"\n />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\"\n >\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\"\n />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n @if (isSelected(opt)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"cursorFromKeyboard.set(false); activeIndex.set(flatIndexOf(item))\"\n >\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (isSelected(item)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n\n </div>\n</ng-template>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width of the placeholder (e.g. `'120px'`, `'50%'`). */\n readonly width = input<string | undefined>(undefined);\n /** CSS height of the placeholder. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n model,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SelectComponent } from '../select/select.component';\n\n@Component({\n selector: 'ds-pagination',\n standalone: true,\n imports: [FormsModule, IconComponent, SelectComponent],\n templateUrl: './pagination.component.html',\n styleUrl: './pagination.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class PaginationComponent {\n /** Total item count, used to compute the page count. */\n readonly total = input.required<number>();\n /** Items per page, two-way bound. */\n readonly pageSize = model<number>(10);\n /** 1-based active page, two-way bound; a page change (incl. the reset to 1\n * after a size change) emits via the implicit `currentPageChange`. */\n readonly currentPage = model<number>(1);\n /** Preset choices offered in the page-size dropdown. */\n readonly pageSizeOptions = input<number[]>([10, 25, 50, 100]);\n /** Shows the \"Showing X–Y of Z\" range label. */\n readonly showLabel = input(true, { transform: booleanAttribute });\n /** Shows the rows-per-page dropdown. Turn it off for a screen with a fixed\n * page size — otherwise the control offers a choice the host won't honour. */\n readonly showPageSize = input(true, { transform: booleanAttribute });\n\n protected readonly totalPages = computed(() =>\n Math.max(1, Math.ceil(this.total() / this.pageSize())),\n );\n\n protected readonly pageItems = computed<(number | 'ellipsis')[]>(() => {\n const total = this.totalPages();\n const current = this.currentPage();\n if (total <= 7) {\n return Array.from({ length: total }, (_, i) => i + 1);\n }\n const items: (number | 'ellipsis')[] = [1];\n if (current > 3) {\n items.push('ellipsis');\n }\n const start = Math.max(2, current - 1);\n const end = Math.min(total - 1, current + 1);\n for (let i = start; i <= end; i++) {\n items.push(i);\n }\n if (current < total - 2) {\n items.push('ellipsis');\n }\n items.push(total);\n\n return items;\n });\n\n protected readonly rangeLabel = computed(() => {\n const start = (this.currentPage() - 1) * this.pageSize() + 1;\n const end = Math.min(this.currentPage() * this.pageSize(), this.total());\n\n return `Showing ${start}–${end} of ${this.total()}`;\n });\n\n protected readonly sizeOptions = computed(() => {\n const presets = this.pageSizeOptions();\n const current = this.pageSize();\n const merged = presets.includes(current)\n ? presets\n : [current, ...presets].sort((a, b) => a - b);\n\n return merged.map((size) => ({\n label: `${size} per page`,\n value: String(size),\n }));\n });\n\n protected readonly pageSizeStr = computed(() => String(this.pageSize()));\n\n protected goTo(page: number): void {\n if (page < 1 || page > this.totalPages() || page === this.currentPage()) {\n return;\n }\n this.currentPage.set(page);\n }\n\n protected onSizeChange(value: string): void {\n const next = Number(value);\n this.pageSize.set(next);\n this.currentPage.set(1);\n }\n}\n","<nav\n class=\"pagination\"\n aria-label=\"Pagination\"\n>\n @if (showLabel()) {\n <span class=\"label\">\n {{ rangeLabel() }}\n </span>\n }\n\n <button\n class=\"pagination-button\"\n type=\"button\"\n aria-label=\"Previous page\"\n [disabled]=\"currentPage() === 1\"\n (click)=\"goTo(currentPage() - 1)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n @for (item of pageItems(); track $index) {\n @if (item === 'ellipsis') {\n <span\n class=\"ellipsis\"\n aria-hidden=\"true\"\n >\n …\n </span>\n } @else {\n <button\n class=\"pagination-button\"\n type=\"button\"\n [class.active]=\"item === currentPage()\"\n [attr.aria-label]=\"'Page ' + item\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goTo(item)\"\n >\n {{ item }}\n </button>\n }\n }\n\n <button\n class=\"pagination-button\"\n type=\"button\"\n aria-label=\"Next page\"\n [disabled]=\"currentPage() === totalPages()\"\n (click)=\"goTo(currentPage() + 1)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n @if (showPageSize()) {\n <!-- reserveMessage pinned off: a page-size dropdown shows neither hint nor\n error, so there is nothing to reserve, and inheriting the app-level\n default would push the control off the page buttons' baseline. -->\n <ds-select\n class=\"size\"\n ariaLabel=\"Rows per page\"\n size=\"sm\"\n [reserveMessage]=\"false\"\n [options]=\"sizeOptions()\"\n [value]=\"pageSizeStr()\"\n (valueChange)=\"onSizeChange($event)\"\n >\n </ds-select>\n }\n</nav>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport type { DsSize } from '../../core/size';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Dismiss-on-backdrop for a backdrop that WRAPS its dialog.\n *\n * `click` cannot be trusted there: the browser fires it at the nearest common\n * ancestor of the press and the release, so a drag that starts inside the dialog and\n * ends on the backdrop fires `click` ON THE BACKDROP, and a\n * `target === currentTarget` check waves it through. Hence tracking the press:\n * dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim\n * is a SIBLING of the panel, which makes their common ancestor a third element.\n */\nexport function backdropDismiss(): {\n down: (event: PointerEvent) => void;\n shouldDismiss: (event: PointerEvent) => boolean;\n} {\n let pressedOnBackdrop = false;\n\n return {\n down(event: PointerEvent): void {\n pressedOnBackdrop =\n event.button === 0 && event.target === event.currentTarget;\n },\n shouldDismiss(event: PointerEvent): boolean {\n const dismiss =\n pressedOnBackdrop &&\n event.button === 0 &&\n event.target === event.currentTarget;\n pressedOnBackdrop = false;\n\n return dismiss;\n },\n };\n}\n","import {\n Component,\n DOCUMENT,\n ElementRef,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { BodyScrollLockService } from '../../overlay/body-scroll-lock.service';\nimport { backdropDismiss } from '../../core/backdrop-dismiss';\n\nlet nextId = 0;\n\n/** Bottom-anchored sheet — the mobile sibling of ds-drawer. Closes on scrim\n * tap, Escape, or a downward drag on the grab strip. While open it locks\n * body scroll. On wide viewports the panel is capped by\n * --ds-bottom-sheet-maxw and centred; prefer ds-modal / ds-drawer for\n * desktop-first layouts. position: fixed resolves against the nearest\n * ancestor containing block, so framed hosts contain the sheet. */\n@Component({\n selector: 'ds-bottom-sheet',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './bottom-sheet.component.html',\n styleUrl: './bottom-sheet.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class BottomSheetComponent implements OnDestroy {\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Sheet title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-bottom-sheet-title-${++nextId}`;\n /**\n * Snap-point heights as fractions of viewport height (0–1), ascending.\n * e.g. [0.4, 0.9]. When provided the sheet opens at the first snap point;\n * dragging snaps to the nearest point; dragging below the lowest closes.\n * When empty (default) the original single-height behavior is preserved.\n */\n readonly snapPoints = input<readonly number[]>([]);\n\n private readonly doc = inject(DOCUMENT);\n private readonly scrollLock = inject(BodyScrollLockService);\n private readonly sheetRef = viewChild<ElementRef<HTMLElement>>('sheet');\n\n protected readonly dragOffset = signal<number | null>(null);\n /** Sheet is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the slide-down + scrim-fade leave animation. */\n protected readonly closing = signal(false);\n /** Index of the currently active snap point (only used when snapPoints is non-empty). */\n protected readonly activeSnapIndex = signal(0);\n\n /** CSS height string derived from the active snap point, or null when snapPoints is empty. */\n protected readonly snapHeight = computed(() => {\n const points = this.snapPoints();\n if (points.length === 0) {\n return null;\n }\n const index = Math.min(this.activeSnapIndex(), points.length - 1);\n\n return `${points[index] * 100}vh`;\n });\n\n private dragStartY = 0;\n private lastMoveY = 0;\n private lastMoveTime = 0;\n private velocity = 0;\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle. Opening renders immediately; closing keeps the\n // sheet mounted and flips `closing` so the leave animation can play —\n // teardown happens in onLeaveEnd() once animationend fires.\n effect(() => {\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n if (this.snapPoints().length > 0) {\n this.activeSnapIndex.set(0);\n }\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with modal/drawer so stacked\n // overlays don't unlock each other. The cleanup fires on the rendered→false\n // transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (!this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected close(): void {\n this.dragOffset.set(null);\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n }\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (this.backdropPress.shouldDismiss(event)) {\n this.close();\n }\n }\n\n protected onGrabStart(event: PointerEvent): void {\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n this.dragStartY = event.clientY;\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.velocity = 0;\n this.dragOffset.set(0);\n }\n\n protected onGrabMove(event: PointerEvent): void {\n if (this.dragOffset() === null) {\n return;\n }\n const deltaTime = event.timeStamp - this.lastMoveTime;\n if (deltaTime > 0) {\n this.velocity = (event.clientY - this.lastMoveY) / deltaTime;\n }\n this.lastMoveY = event.clientY;\n this.lastMoveTime = event.timeStamp;\n this.dragOffset.set(Math.max(0, event.clientY - this.dragStartY));\n }\n\n protected onGrabEnd(): void {\n const offset = this.dragOffset();\n if (offset === null) {\n return;\n }\n\n const points = this.snapPoints();\n\n if (points.length === 0) {\n // Original single-height behavior.\n const sheetHeight = this.sheetRef()?.nativeElement.offsetHeight ?? 0;\n const pastThreshold = sheetHeight > 0 && offset > sheetHeight * 0.3;\n const flicked = this.velocity > 0.5;\n if (pastThreshold || flicked) {\n this.close();\n } else {\n this.dragOffset.set(null);\n }\n\n return;\n }\n\n // Snap-point behavior: determine which snap point to land on.\n const viewportHeight =\n this.doc.defaultView?.innerHeight ?? window.innerHeight;\n const currentIndex = this.activeSnapIndex();\n const currentHeightPx = points[currentIndex] * viewportHeight;\n // Positive offset = dragged downward.\n const targetHeightPx = currentHeightPx - offset;\n const flicked = this.velocity > 0.5;\n\n if (flicked || targetHeightPx < points[0] * viewportHeight * 0.7) {\n // Dragged below lowest snap point or flicked down → close.\n this.close();\n\n return;\n }\n\n let nearestIndex = 0;\n let smallestDelta = Infinity;\n for (let pointIndex = 0; pointIndex < points.length; pointIndex++) {\n const delta = Math.abs(\n points[pointIndex] * viewportHeight - targetHeightPx,\n );\n if (delta < smallestDelta) {\n smallestDelta = delta;\n nearestIndex = pointIndex;\n }\n }\n\n this.dragOffset.set(null);\n this.activeSnapIndex.set(nearestIndex);\n }\n}\n","@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 >\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 >\n <div\n class=\"grab\"\n (pointerdown)=\"onGrabStart($event)\"\n (pointermove)=\"onGrabMove($event)\"\n (pointerup)=\"onGrabEnd()\"\n (pointercancel)=\"onGrabEnd()\"\n >\n <div class=\"sheet-handle\"></div>\n </div>\n\n @if (title()) {\n <h3\n class=\"sheet-title\"\n [id]=\"titleId\"\n >\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","import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '../../icons/icon.component';\nimport { nextControlId } from '../field-ids';\nimport type { IconName } from '../../icons/icons.data';\nimport { DsOverlayCloseRef } from '../../overlay/ds-overlay-close-ref';\nimport { prepareOverlayEnter } from '../overlay-motion';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n","const NON_TEXT_INPUT_TYPES = new Set([\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n]);\n\n/** True when the key landed on a control that consumes its own keystrokes, so a\n * container listening on the way up must leave the event alone. */\nexport function isTextEntryTarget(event: Event): boolean {\n const target = event.target;\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n if (target.isContentEditable) {\n return true;\n }\n const tag = target.tagName.toLowerCase();\n if (tag === 'textarea' || tag === 'select') {\n return true;\n }\n\n return (\n tag === 'input' &&\n !NON_TEXT_INPUT_TYPES.has((target as HTMLInputElement).type.toLowerCase())\n );\n}\n","import {\n Component,\n ViewEncapsulation,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '../../core/key-target';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n host: { '(keydown)': 'onKeydown($event)' },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/**\n * Projects a custom cell template into <ds-table> for a specific column.\n *\n * Usage:\n * <ds-table [data]=\"rows\" [columns]=\"cols\">\n * <ng-template dsCellTemplate=\"product\" let-row>\n * <div>{{ asRule(row).product }}</div>\n * </ng-template>\n * </ds-table>\n *\n * The template context type is `unknown` because Angular cannot propagate\n * the parent <ds-table>'s row type to projected templates. Consumers should\n * narrow the row with a typed helper method on the host component.\n *\n * Context shape:\n * - $implicit: the row object (typed `unknown`)\n * - row: alias for the row object (typed `unknown`)\n */\n@Directive({\n selector: '[dsCellTemplate]',\n standalone: true,\n})\nexport class CellTemplateDirective {\n /** The `key` of the column this template replaces, matched against the table's\n * `columns`. A key no column declares renders nothing and warns nowhere. */\n readonly dsCellTemplate = input.required<string>();\n readonly template = inject(TemplateRef<{ $implicit: unknown; row: unknown }>);\n}\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/** What a projected header filter is handed. */\nexport interface HeaderFilterContext {\n /** The column being filtered. */\n readonly $implicit: unknown;\n /** Alias for the column. */\n readonly column: unknown;\n /** Dismisses the popover — call it after applying, so the filter behaves like\n * the built-in checklist rather than staying open. */\n readonly close: () => void;\n}\n\n/**\n * Projects a custom filter into a `ds-table` header popover, for a criterion the\n * built-in checklist cannot express: a date range, a numeric threshold, an async\n * option list.\n *\n * ```html\n * <ds-table [data]=\"rows\" [columns]=\"cols\">\n * <ng-template\n * dsHeaderFilter=\"opened\"\n * [active]=\"!!range()\"\n * let-close=\"close\"\n * >\n * <ds-date-picker mode=\"range\" [(value)]=\"range\" />\n * <ds-button size=\"sm\" (pressed)=\"apply(); close()\">Apply</ds-button>\n * </ng-template>\n * </ds-table>\n * ```\n *\n * The table still owns the header button, the popover and the active-filter\n * styling — only the panel's contents change. It cannot know whether YOUR\n * criterion is set, though, so `active` is how the highlight gets told; without\n * it a custom filter renders but the header never marks itself filtered.\n *\n * The column is typed `unknown` for the same reason `dsCellTemplate`'s row is:\n * Angular cannot propagate the parent table's row type into a projected\n * template. Narrow it with a typed helper on the host.\n */\n@Directive({\n selector: 'ng-template[dsHeaderFilter]',\n standalone: true,\n})\nexport class HeaderFilterDirective {\n /** Key of the column this filter belongs to. */\n readonly dsHeaderFilter = input.required<string>();\n /** Whether YOUR criterion is currently set, which drives the header's\n * active-filter styling. */\n readonly active = input(false);\n\n readonly template = inject(TemplateRef<HeaderFilterContext>);\n}\n","import {\n Component,\n ElementRef,\n Injector,\n TemplateRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n DestroyRef,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { devWarn } from '../../core/dev-warning';\nimport { resolveWithConfig } from '../../core/config-defaults';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n CdkDrag,\n CdkDragDrop,\n CdkDragHandle,\n CdkDropList,\n moveItemInArray,\n} from '@angular/cdk/drag-drop';\nimport { ButtonComponent } from '../button/button.component';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SkeletonComponent } from '../skeleton/skeleton.component';\nimport { PaginationComponent } from '../pagination/pagination.component';\nimport { LoadingOverlayComponent } from '../loading-overlay/loading-overlay.component';\nimport { PopoverComponent } from '../popover/popover.component';\nimport { BottomSheetComponent } from '../bottom-sheet/bottom-sheet.component';\nimport { MenuComponent } from '../menu/menu.component';\nimport { MenuItemComponent } from '../menu/menu-item.component';\nimport { CellTemplateDirective } from './cell-template.directive';\nimport { HeaderFilterDirective } from './header-filter.directive';\nimport type {\n SortChangeEvent,\n SortDir,\n TableCellEditEvent,\n TableColumn,\n TableRowAction,\n TableRowActionEvent,\n TableExpandMode,\n TableFilterMode,\n TableSortMode,\n} from './table.types';\n\nconst NUMERIC = /^-?\\d+(\\.\\d+)?$/;\n\n// Assumed viewport until the scroller has been measured. Tall enough to fill a\n// laptop screen, so the first paint is not visibly short, and nowhere near the\n// row count a virtualized table is reached for.\nconst VIRTUAL_FALLBACK_HEIGHT = 720;\n\n// Rows kept rendered past each edge of the viewport, so a flick does not expose\n// blank space before the next range lands.\nconst VIRTUAL_OVERSCAN = 6;\n\n/** Rendered values that read as \"no data\", matched case-insensitively. Wider\n * than the empty string because consumers render placeholders. */\nconst BLANK_CELL = new Set(['', '—', '-', '–', 'n/a', 'never', 'none']);\n\n/** Normalises \"no data\" to a single `null`, so the comparator has one blank\n * case to test and TypeScript narrows the rest without a cast. */\nfunction sortableOf(\n value: string | number | Date | null | undefined,\n): string | number | Date | null {\n if (value === null || value === undefined) {\n return null;\n }\n if (typeof value === 'string' && BLANK_CELL.has(value.trim().toLowerCase())) {\n return null;\n }\n\n return value;\n}\n\n/** Both sides are known non-blank here. `numeric: true` keeps \"item 10\" after\n * \"item 9\" instead of before it. */\nfunction compareSortValues(\n first: string | number | Date,\n second: string | number | Date,\n): number {\n if (first instanceof Date && second instanceof Date) {\n return first.getTime() - second.getTime();\n }\n if (typeof first === 'number' && typeof second === 'number') {\n return first - second;\n }\n\n const firstText = String(first);\n const secondText = String(second);\n if (NUMERIC.test(firstText) && NUMERIC.test(secondText)) {\n return Number(firstText) - Number(secondText);\n }\n\n // `sensitivity: 'base'` so \"Ångström\" sorts next to \"Angstrom\" and casing does\n // not split a column into two runs.\n return firstText.localeCompare(secondText, undefined, {\n numeric: true,\n sensitivity: 'base',\n });\n}\n\n@Component({\n selector: 'ds-table',\n standalone: true,\n imports: [\n ButtonComponent,\n IconComponent,\n NgTemplateOutlet,\n SkeletonComponent,\n PaginationComponent,\n LoadingOverlayComponent,\n PopoverComponent,\n BottomSheetComponent,\n MenuComponent,\n MenuItemComponent,\n CdkDropList,\n CdkDrag,\n CdkDragHandle,\n // Only instantiated when a column sets `link`, so a consumer app with no router\n // provided still renders the table — the directive is never constructed.\n RouterLink,\n ],\n templateUrl: './table.component.html',\n styleUrl: './table.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.bordered]': 'borderedResolved()',\n '[class.selectable]': 'selectable()',\n '[class.pinned]': 'stickyFirstColumn()',\n '[class.expandable]': 'expandableRows()',\n '[class.sticky-scrollbar]': 'stickyScrollbarResolved()',\n '[class.resizable]': 'resizableColumns()',\n },\n})\nexport class TableComponent<T extends object> {\n /** Rows to render. */\n readonly data = input.required<readonly T[]>();\n /** Row identity used for tracking, selection, expansion and the active-row\n * highlight. Defaults to `row.id`; pass an accessor for display-only data\n * with no natural key (`[rowId]=\"row => row.channel + row.sentAt\"`), which\n * beats mapping synthetic ids into the data just to satisfy the table. */\n readonly rowId = input<((row: T) => string) | null>(null);\n /** Column definitions driving headers, cells and sorting. */\n readonly columns = input.required<readonly TableColumn<T>[]>();\n /** Adds a checkbox column for row/select-all selection. */\n readonly selectable = input(false, { transform: booleanAttribute });\n /** Opt-in outer border + radius. Off by default so tables flush inside a\n * `<ds-card padding=\"none\">` don't double-border.\n * When `true`, the scroll-wrap gets a `var(--border-default)` outline and\n * `var(--radius-md)` radius — useful when the table stands alone in a padded card.\n * Unset falls back to `DS_CONFIG.table.bordered`, then `false`. */\n readonly bordered = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** false — no loading state.\n * `true` — the table picks: skeleton rows while it has nothing to show, overlay\n * once rows are on screen. Prefer it; the right choice is a function of the row\n * count, which only the table holds.\n * 'skeleton' — first-load placeholder; rows are replaced with shimmer rows.\n * 'overlay' — re-fetch indicator; existing rows stay visible behind\n * a translucent overlay with a centred spinner. Pin either one only to\n * override the rule deliberately. */\n readonly loading = input<boolean | 'skeleton' | 'overlay'>(false);\n /** The mode actually rendered. Skeletons replace what the reader is looking at and\n * an overlay on an empty card says nothing, so `true` resolves per state rather\n * than picking a favourite. */\n protected readonly loadingMode = computed<'skeleton' | 'overlay' | false>(\n () => {\n const loading = this.loading();\n if (loading === false) {\n return false;\n }\n if (loading === true) {\n return this.filteredData().length ? 'overlay' : 'skeleton';\n }\n\n return loading;\n },\n );\n /** Keeps the header row pinned while the body scrolls. */\n readonly stickyHeader = input(true, { transform: booleanAttribute });\n /** Caps the scroll body height (any CSS length, e.g. `'320px'`) and scrolls it\n * vertically — pair with `stickyHeader` for a self-contained scroll region.\n * `null` (default) lets the table grow to its content. */\n readonly maxHeight = input<string | null>(null);\n /** Row density — `'compact'` tightens cell padding for spreadsheet-dense lists. */\n readonly density = input<'default' | 'compact'>('default');\n /** Tints odd rows for easier row-tracking across wide tables. */\n readonly zebra = input(false, { transform: booleanAttribute });\n /** Animate the body height when the row set changes (page/filter) instead of\n * snapping. Opt-in; instant under reduced-motion (the DS zeroes the token). */\n readonly animateHeight = input(false, { transform: booleanAttribute });\n /** Two-way set of currently selected row ids. */\n readonly selectedIds = model<Set<string>>(new Set<string>());\n /** Column key currently sorted by; `null` when unsorted. Two-way bindable\n * (`[(sortKey)]`) or one-way from your own state with `(sortChange)`. */\n readonly sortKey = input<string | null>(null);\n /** Emitted for `[(sortKey)]`. `sortChange` carries the same click with both\n * halves at once, which is usually the one to listen to. */\n readonly sortKeyChange = output<string | null>();\n /** Sort direction for `sortKey`. */\n readonly sortDir = input<SortDir>(null);\n /** Emitted for `[(sortDir)]`. */\n readonly sortDirChange = output<SortDir>();\n /**\n * What the header marks, and what a client sort reads.\n *\n * `linkedSignal` over BOTH inputs, not a `model`: Angular writes an input only\n * when the bound expression changed, diffing against the value IT last wrote, and\n * an internal `.set()` never updates that slot. Seeding from both means a host\n * answering with its own default re-seeds the pair even when one half of that\n * default equals what it last bound. A host that binds neither never re-seeds, so\n * the optimistic state survives.\n */\n private readonly sortState = linkedSignal<{\n readonly key: string | null;\n readonly dir: SortDir;\n }>(() => ({ key: this.sortKey(), dir: this.sortDir() }));\n protected readonly activeSortKey = computed(() => this.sortState().key);\n protected readonly activeSortDir = computed(() => this.sortState().dir);\n /** Sort states a column cycles through on click. Default includes null\n * (unsorted); pass ['asc','desc'] to forbid the unsorted state (e.g.\n * server-paged lists). */\n readonly sortingOrder = input<SortDir[]>(['asc', 'desc', null]);\n /**\n * Wording for the sort announcement, so it can be translated. Receives the\n * column's label and the new direction; return an empty string to say nothing.\n */\n readonly sortAnnouncement = input<(label: string, dir: SortDir) => string>(\n (label, dir) =>\n dir\n ? `Sorted by ${label}, ${dir === 'asc' ? 'ascending' : 'descending'}`\n : `Sorting cleared`,\n );\n /**\n * Wording for the row-range announcement, so it can be translated. Receives\n * the 1-based first and last row on screen and the total; return an empty\n * string to say nothing.\n */\n readonly rangeAnnouncement = input<\n (first: number, last: number, total: number) => string\n >((first, last, total) => `Showing ${first}–${last} of ${total}`);\n /** Number of shimmer rows rendered while `loading` is `'skeleton'`. */\n readonly skeletonRows = input<number>(5);\n /** Accessible name for the table (rendered as a visually-hidden caption).\n * Without it, screen-reader users get an unlabelled table. */\n readonly caption = input<string>('');\n /** When true, each row becomes a keyboard-operable control (role=button,\n * tabindex, Enter/Space → rowClicked) with an accessible name from the first\n * column. Off by default so non-navigating tables don't advertise a false\n * click affordance. Also the gate for the hover/pressed row tints. */\n readonly rowInteractive = input(false, { transform: booleanAttribute });\n\n /** Id of the row rendered as current (highlight + `aria-current`) — e.g. the\n * row whose detail drawer or side panel is open. `null` — none. */\n readonly activeRowId = input<string | null>(null);\n\n /** Client-side row filter — case-insensitive substring match against cell\n * text. Columns with `filterable: true` restrict the match set (none\n * marked — every column matches, hidden ones included). '' — no filtering. */\n readonly filterQuery = input<string>('');\n /** Two-way per-column set-filters: column key → the still-checked values.\n * A column absent from the map (or with every value checked) is unfiltered. */\n readonly columnFilters = model<Map<string, ReadonlySet<string>>>(new Map());\n\n /** Two-way set of hidden column keys. `null` (default) derives the set from\n * each column's `hidden` flag; the column picker then owns it. Binding a\n * Set takes over — `hidden` flags are ignored. */\n readonly hiddenKeys = model<Set<string> | null>(null);\n\n /** Enables drag-to-resize handles on each column header. */\n readonly resizableColumns = input(false, { transform: booleanAttribute });\n /** Two-way per-column pixel width overrides (keyed by column key), set by\n * dragging a resize handle. Seeded from `column.width` where unset. */\n readonly columnWidths = model<Map<string, number>>(new Map());\n /** Enables drag + up/down reordering in the column panel. */\n readonly reorderableColumns = input(false, { transform: booleanAttribute });\n /** Two-way column order as a list of keys. `null` (default) keeps declaration\n * order; the column panel owns it once the user reorders. Keys absent from\n * the list fall back to declaration order after the listed ones. */\n readonly columnOrder = model<string[] | null>(null);\n\n /** Round-trip `columnOrder`, `columnWidths` and `hiddenKeys` through\n * `localStorage`, so a reader's column layout survives a reload. Needs\n * `storageKey` — without one there is nothing to key a screen by, and two\n * tables would overwrite each other. Off by default. */\n readonly persistLayout = input(false, { transform: booleanAttribute });\n /** Screen id the persisted layout is stored under. Pick something stable per\n * table, not per route instance. */\n readonly storageKey = input<string>('');\n\n /** Render an export button in the table's toolbar row. Off by default. Leave it\n * off and drive `runExport()` from your own button — in a page header, a filter\n * bar, the `[toolbar]` slot — reading `exporting()` for its loading state. */\n readonly exportButton = input(false, { transform: booleanAttribute });\n /** Filename the export button downloads as. */\n readonly exportFilename = input<string>('table.csv');\n /**\n * Where the export button gets its data. A server-paged table only HAS the\n * current page, so exporting without this silently exports one page.\n *\n * Return ROWS and the table serializes them the same way it serializes its\n * own. Return a `Blob` (or a URL string) and the table just downloads it —\n * which is what you want when the backend already formatted the file with its\n * own number formats, its own columns, or a sheet the table never held.\n */\n readonly exportFetcher = input<\n (() => Promise<readonly T[] | Blob | string>) | null\n >(null);\n /** Fires when `exportFetcher` rejects. Without it a failed export is silent —\n * the button simply re-enables and no file arrives. */\n readonly exportFailed = output<unknown>();\n private readonly exportingState = signal(false);\n /** True while `exportFetcher` is in flight. Public so a button OUTSIDE the table\n * can show the same in-flight state as the built-in one. */\n readonly exporting = this.exportingState.asReadonly();\n private readonly exportStatusState = signal('');\n private readonly eventsAtExport = signal('');\n /** Announced in the table's live region while an export is running or after it\n * failed, so the button's own disabled state is not the only signal. */\n readonly exportStatus = this.exportStatusState.asReadonly();\n\n /** Keeps the horizontal scrollbar reachable on tall tables: the scroll\n * container's native bar is hidden and a proxy stuck to the bottom of the\n * nearest scroll ancestor mirrors it both ways. Off by default. Unset falls\n * back to `DS_CONFIG.table.stickyScrollbar`, then `false`. */\n readonly stickyScrollbar = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n /** Rows per page. `null` (default) disables pagination — all rows render. */\n readonly pageSize = model<number | null>(null);\n /** Current 1-based page. Only meaningful when `pageSize()` is set. */\n readonly page = model<number>(1);\n /** Selectable page-size choices shown in the pagination control. */\n readonly pageSizeOptions = input<number[]>([10, 25, 50, 100]);\n /** Shows the page-size picker in the footer pager. Set false for a table whose\n * page size is fixed — the standalone `ds-pagination` has always taken this. */\n readonly showPageSize = input(true, { transform: booleanAttribute });\n /** Shows the \"N of M\" range label in the footer pager. */\n readonly showLabel = input(true, { transform: booleanAttribute });\n /** Server-side total row count. `null` (default) = client paging: the table\n * slices `data()` itself and the pager counts the rows in hand. When set, the\n * host has already sliced to one page — the pager uses this count and the\n * table renders `data()` as-is (no internal slice). */\n readonly total = input<number | null>(null);\n /** Scroll the table into view on a page change (opt-in) — keeps a bottom\n * pager from leaving the viewport on the previous page's last rows. */\n readonly scrollToTopOnPageChange = input(false, {\n transform: booleanAttribute,\n });\n /** Who sorts — see `TableSortMode`. Unset resolves to `'server'`: the table\n * emits `(sortChange)` and reorders nothing, which is what a paged table\n * needs. Declare `'client'` when the table holds every row, or `'none'` to\n * drop the affordance entirely. */\n readonly sortMode = input<TableSortMode | null>(null);\n /** Who filters — see `TableFilterMode`. Unset resolves to `'server'`: the\n * table tracks the selection in `columnFilters` for the host to turn into a\n * request, and runs no local pass. Declare `'client'` when the table holds\n * every row and should filter them itself. */\n readonly filterMode = input<TableFilterMode | null>(null);\n /**\n * The full value domain per column key, for a header filter the table cannot\n * derive itself. Without it the checklist is built from the rows in hand,\n * which on a server-paged table offers only the values that happen to be on\n * the current page.\n */\n readonly columnFilterOptions = input<ReadonlyMap<string, readonly string[]>>(\n new Map(),\n );\n protected readonly filterModeResolved = computed<TableFilterMode>(\n () => this.filterMode() ?? 'server',\n );\n protected readonly sortModeResolved = computed<TableSortMode>(\n () => this.sortMode() ?? 'server',\n );\n readonly borderedResolved = resolveWithConfig(\n this.bordered,\n (config) => config.table?.bordered,\n false,\n );\n readonly stickyScrollbarResolved = resolveWithConfig(\n this.stickyScrollbar,\n (config) => config.table?.stickyScrollbar,\n false,\n );\n /** Pin the first data column (and the select column) on horizontal scroll. */\n readonly stickyFirstColumn = input(false, { transform: booleanAttribute });\n\n /**\n * Render only the rows in view, padding the rest with two spacer rows. Opt-in,\n * and it needs `maxHeight` — without a bounded scroller there is no viewport to\n * window against, so nothing is virtualized (dev-warned).\n *\n * Every row must be the same height, which is `virtualRowSize`: the arithmetic\n * that decides what is in view has no other way to know where a row starts. So\n * virtual mode forces `table-layout: fixed` and single-line cells, and the\n * expansion panel is suppressed — a row that can grow breaks the maths.\n */\n readonly virtualScroll = input(false, { transform: booleanAttribute });\n /** Row height in px in virtual mode. Must match what the rows actually\n * measure, so it drives the CSS height rather than merely describing it. */\n readonly virtualRowSize = input(44);\n /**\n * Fetch rows as they scroll into view instead of receiving them all.\n *\n * `data` becomes a SPARSE array `total` long: put each fetched row at its\n * absolute index and leave the rest empty. Every gap inside the window\n * renders a skeleton row, and `(lazyLoad)` asks for the range covering it.\n *\n * Needs `virtualScroll` — without a window there is nothing to load\n * lazily AGAINST — and `total`, which is what the scrollbar is sized from.\n */\n readonly lazy = input(false, { transform: booleanAttribute });\n /** The range now on screen that `data` has gaps in — fetch it and write the\n * rows back at their absolute indices. Re-emits only when the range moves. */\n readonly lazyLoad = output<{ first: number; rows: number }>();\n\n /** Fires with the row on click (or Enter/Space when `rowInteractive`). */\n readonly rowClicked = output<T>();\n /** Fires whenever sort key/direction changes, in every `sortMode` but `'none'`. */\n readonly sortChange = output<SortChangeEvent>();\n\n /** Row-action menu items rendered as a trailing kebab (⋮) column.\n * Empty (default) — no column. Menu clicks never trigger `rowClicked`. */\n readonly rowActions = input<readonly TableRowAction<T>[]>([]);\n /** Fires with the chosen action and its row when a kebab menu item is selected. */\n readonly rowActionSelected = output<TableRowActionEvent<T>>();\n\n /** Fires when an `editable` cell is committed (Enter or blur) with the new value. */\n readonly cellEdited = output<TableCellEditEvent<T>>();\n\n /** Cell templates supplied as an explicit map instead of (or in addition to)\n * projected `dsCellTemplate` directives. Lets a wrapper component collect\n * the directives itself and pass them down, since content projected through\n * a wrapper's `<ng-content>` is not seen by this component's content query.\n * Entries here override projected ones. */\n readonly cellTemplateMap = input<\n Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>>\n >({});\n\n /** Empty-state template, as an alternative to the `[empty]` content slot —\n * again for wrappers that can't rely on slot re-projection. */\n readonly emptyTemplate = input<TemplateRef<unknown> | null>(null);\n\n /** When true, each row renders a leading chevron button that toggles an\n * inline expansion panel below it. */\n readonly expandableRows = input(false, { transform: booleanAttribute });\n\n /** Two-way set of currently expanded row ids. */\n readonly expandedIds = model<Set<string>>(new Set<string>());\n\n /** `'single'` collapses the open row when another expander is clicked.\n * Enforced on interaction only: a set seeded with several ids is left alone\n * (and warned about in dev) rather than silently rewritten under the host. */\n readonly expandMode = input<TableExpandMode>('multiple');\n\n /** Renders an expand-all/collapse-all chevron in the expander column header,\n * page-scoped when paginating, like select-all. Suppressed under\n * `expandMode=\"single\"`, which it would contradict. */\n readonly expandAllToggle = input(false, { transform: booleanAttribute });\n\n /** Fires with the row when an expander opens it — including each row opened\n * by expand-all, so a host lazy-loading panel content sees every one. */\n readonly rowExpanded = output<T>();\n\n /** Fires with the row when an expander closes it, the row auto-closed by\n * `expandMode=\"single\"` included. It carries a row, so it cannot speak for an\n * id whose row is no longer in `data()` — under server-side paging that id is\n * cleared silently. `expandedIds` is the complete signal; this one is the\n * convenient one. */\n readonly rowCollapsed = output<T>();\n\n /** Template rendered inside an expanded row's panel.\n * Context: `$implicit` = row, `row` = row. */\n readonly rowExpandTemplate = input<TemplateRef<{\n $implicit: unknown;\n row: unknown;\n }> | null>(null);\n\n protected readonly cellTemplateDirectives = contentChildren(\n CellTemplateDirective,\n );\n\n protected readonly cellTemplates = computed<\n Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>>\n >(() => {\n const map: Record<\n string,\n TemplateRef<{ $implicit: unknown; row: unknown }>\n > = {};\n for (const dir of this.cellTemplateDirectives()) {\n map[dir.dsCellTemplate()] = dir.template;\n }\n\n return { ...map, ...this.cellTemplateMap() };\n });\n\n protected cellTemplate(\n col: TableColumn<T>,\n ): TemplateRef<{ $implicit: unknown; row: unknown }> | null {\n return this.cellTemplates()[col.key] ?? null;\n }\n\n protected readonly tableClasses = computed(() => {\n const parts = ['table'];\n if (this.stickyHeader()) {\n parts.push('sticky-header');\n }\n if (this.density() === 'compact') {\n parts.push('compact');\n }\n if (this.zebra()) {\n parts.push('zebra');\n }\n if (this.virtualizing()) {\n parts.push('virtual');\n }\n\n return parts.join(' ');\n });\n\n protected readonly isSkeletonLoading = computed(\n () => this.loadingMode() === 'skeleton',\n );\n protected readonly isOverlayLoading = computed(\n () => this.loadingMode() === 'overlay',\n );\n /** The empty row is a CLAIM about the data — \"there are none\" — so it must not\n * appear while the table is still asking, in EITHER loading mode. `overlay` is\n * what a list uses on every read after the first, so suppressing only under\n * `skeleton` paints \"No rows yet\" under the spinner on a zero-row reload. */\n protected readonly showsEmptyRow = computed(\n () => this.loadingMode() === false && !this.filteredData().length,\n );\n\n protected readonly effectiveHiddenKeys = computed<ReadonlySet<string>>(\n () =>\n this.hiddenKeys() ??\n new Set(\n this.columns()\n .filter((col) => col.hidden)\n .map((col) => col.key),\n ),\n );\n\n protected readonly orderedColumns = computed<readonly TableColumn<T>[]>(\n () => {\n const order = this.columnOrder();\n const columns = this.columns();\n if (!order) {\n return columns;\n }\n const byKey = new Map(columns.map((col) => [col.key, col]));\n const placed = new Set<string>();\n const out: TableColumn<T>[] = [];\n for (const key of order) {\n const col = byKey.get(key);\n if (col && !placed.has(key)) {\n out.push(col);\n placed.add(key);\n }\n }\n for (const col of columns) {\n if (!placed.has(col.key)) {\n out.push(col);\n }\n }\n\n return out;\n },\n );\n\n protected readonly visibleColumns = computed<readonly TableColumn<T>[]>(() =>\n this.orderedColumns().filter(\n (col) => !this.effectiveHiddenKeys().has(col.key),\n ),\n );\n\n protected readonly hideableColumns = computed<readonly TableColumn<T>[]>(() =>\n this.columns().filter((col) => col.hideable),\n );\n protected readonly hasColumnPicker = computed(\n () => this.hideableColumns().length > 0 || this.reorderableColumns(),\n );\n protected readonly hasUtilityColumn = computed(\n () => this.hasRowActions() || this.hasColumnPicker(),\n );\n\n protected isColumnVisible(col: TableColumn<T>): boolean {\n return !this.effectiveHiddenKeys().has(col.key);\n }\n\n /** The last visible column can't be hidden — an all-hidden grid is useless. */\n protected isColumnLocked(col: TableColumn<T>): boolean {\n return this.isColumnVisible(col) && this.visibleColumns().length === 1;\n }\n\n protected toggleColumn(col: TableColumn<T>): void {\n if (!col.hideable || this.isColumnLocked(col)) {\n return;\n }\n const next = new Set(this.effectiveHiddenKeys());\n if (next.has(col.key)) {\n next.delete(col.key);\n } else {\n next.add(col.key);\n }\n this.hiddenKeys.set(next);\n }\n\n protected moveColumn(col: TableColumn<T>, delta: -1 | 1): void {\n const keys = this.orderedColumns().map((column) => column.key);\n const from = keys.indexOf(col.key);\n const to = from + delta;\n if (from < 0 || to < 0 || to >= keys.length) {\n return;\n }\n moveItemInArray(keys, from, to);\n this.columnOrder.set(keys);\n }\n\n protected onColumnDrop(event: CdkDragDrop<unknown>): void {\n const keys = this.orderedColumns().map((column) => column.key);\n moveItemInArray(keys, event.previousIndex, event.currentIndex);\n this.columnOrder.set(keys);\n }\n\n protected resetColumns(): void {\n this.columnOrder.set(null);\n this.hiddenKeys.set(null);\n this.columnWidths.set(new Map());\n }\n\n private readonly columnFilterPopover = viewChild<PopoverComponent>(\n 'columnFilterPopover',\n );\n /** The column whose filter menu is open — drives the distinct-value list. */\n protected readonly filterColumn = signal<TableColumn<T> | null>(null);\n protected readonly filterSearch = signal('');\n\n private readonly headerFilters = contentChildren(HeaderFilterDirective);\n\n private readonly headerFilterByKey = computed(() => {\n const map = new Map<string, HeaderFilterDirective>();\n for (const filter of this.headerFilters()) {\n map.set(filter.dsHeaderFilter(), filter);\n }\n\n return map;\n });\n\n protected headerFilterFor(\n col: TableColumn<T>,\n ): HeaderFilterDirective | undefined {\n return this.headerFilterByKey().get(col.key);\n }\n\n protected hasColumnFilter(col: TableColumn<T>): boolean {\n if (this.filterModeResolved() === 'none') {\n return false;\n }\n\n return col.filter === 'set' || !!this.headerFilterFor(col);\n }\n\n protected isColumnFiltered(col: TableColumn<T>): boolean {\n // A projected filter owns its own criterion, so only the host can say\n // whether it is set; the table still draws the highlight.\n const projected = this.headerFilterFor(col);\n if (projected) {\n return projected.active();\n }\n const allowed = this.columnFilters().get(col.key);\n\n return !!allowed && allowed.size < this.optionsFor(col).length;\n }\n\n private optionsFor(col: TableColumn<T>): readonly string[] {\n const supplied = this.columnFilterOptions().get(col.key);\n if (supplied) {\n return supplied;\n }\n const seen = new Set<string>();\n for (const row of this.data()) {\n seen.add(this.cellValue(row, col));\n }\n\n return [...seen].sort((a, b) => a.localeCompare(b));\n }\n\n protected readonly filterValues = computed<readonly string[]>(() => {\n const col = this.filterColumn();\n if (!col) {\n return [];\n }\n const needle = this.filterSearch().trim().toLowerCase();\n const values = this.optionsFor(col);\n\n return needle\n ? values.filter((value) => value.toLowerCase().includes(needle))\n : values;\n });\n\n protected readonly filterSelectedCount = computed<number>(() => {\n const col = this.filterColumn();\n if (!col) {\n return 0;\n }\n const allowed = this.columnFilters().get(col.key);\n\n return allowed ? allowed.size : this.optionsFor(col).length;\n });\n\n protected isFilterValueChecked(value: string): boolean {\n const col = this.filterColumn();\n if (!col) {\n return false;\n }\n const allowed = this.columnFilters().get(col.key);\n\n return !allowed || allowed.has(value);\n }\n\n protected onColumnFilterClick(col: TableColumn<T>, event: Event): void {\n event.stopPropagation();\n this.filterColumn.set(col);\n this.filterSearch.set('');\n this.columnFilterPopover()?.toggle(event.currentTarget as HTMLElement);\n }\n\n protected onFilterSearch(event: Event): void {\n this.filterSearch.set((event.target as HTMLInputElement).value);\n }\n\n protected toggleFilterValue(value: string): void {\n const col = this.filterColumn();\n if (!col) {\n return;\n }\n const distinct = this.optionsFor(col);\n const current = new Set(this.columnFilters().get(col.key) ?? distinct);\n if (current.has(value)) {\n current.delete(value);\n } else {\n current.add(value);\n }\n const next = new Map(this.columnFilters());\n // Every value checked again → drop the entry so the column reads unfiltered.\n if (current.size >= distinct.length) {\n next.delete(col.key);\n } else {\n next.set(col.key, current);\n }\n this.columnFilters.set(next);\n }\n\n protected headerFilterContext(col: TableColumn<T>): {\n $implicit: unknown;\n column: unknown;\n close: () => void;\n } {\n return {\n $implicit: col,\n column: col,\n close: () => this.columnFilterPopover()?.close(),\n };\n }\n\n protected clearColumnFilter(): void {\n const col = this.filterColumn();\n if (!col) {\n return;\n }\n const next = new Map(this.columnFilters());\n next.delete(col.key);\n this.columnFilters.set(next);\n }\n\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private readonly editInput =\n viewChild<ElementRef<HTMLInputElement>>('editInput');\n protected readonly editingCell = signal<{\n rowId: string;\n key: string;\n } | null>(null);\n protected readonly editDraft = signal('');\n\n protected isEditing(row: T, col: TableColumn<T>): boolean {\n const cell = this.editingCell();\n\n return !!cell && cell.rowId === this.rowKey(row) && cell.key === col.key;\n }\n\n protected startEdit(row: T, col: TableColumn<T>, event: Event): void {\n if (!col.editable) {\n return;\n }\n event.stopPropagation();\n this.editDraft.set(this.cellValue(row, col));\n this.editingCell.set({ rowId: this.rowKey(row), key: col.key });\n afterNextRender(\n () => {\n const input = this.editInput()?.nativeElement;\n input?.focus();\n input?.select();\n },\n { injector: this.injector },\n );\n }\n\n protected onEditInput(event: Event): void {\n this.editDraft.set((event.target as HTMLInputElement).value);\n }\n\n protected commitEdit(row: T, col: TableColumn<T>): void {\n if (!this.isEditing(row, col)) {\n return;\n }\n this.editingCell.set(null);\n this.cellEdited.emit({ row, key: col.key, value: this.editDraft() });\n }\n\n protected cancelEdit(): void {\n this.editingCell.set(null);\n }\n\n // One notch is a comfortable nudge; a page is roughly a short column.\n private static readonly RESIZE_STEP = 16;\n private static readonly RESIZE_PAGE = 64;\n private static readonly MIN_COLUMN_WIDTH = 48;\n private resizeState: {\n key: string;\n startX: number;\n startWidth: number;\n } | null = null;\n\n /** `'content'` is not a pixel value — it is carried by a class instead, see\n * `fitsContent`. */\n protected columnWidth(col: TableColumn<T>): number | null {\n const dragged = this.columnWidths().get(col.key);\n if (dragged !== undefined) {\n return dragged;\n }\n\n return typeof col.width === 'number' ? col.width : null;\n }\n\n /** Shrink-to-content mode, unless the user has dragged this column — a drag is a\n * deliberate pixel width and must win over the declared intent. */\n protected fitsContent(col: TableColumn<T>): boolean {\n return col.width === 'content' && !this.columnWidths().has(col.key);\n }\n\n /** Clip width for `truncate`. `'content'` has no clip width — the column is as\n * wide as its widest cell, so there is nothing to ellipsis against. */\n protected clipWidth(col: TableColumn<T>): number | null {\n return typeof col.width === 'number'\n ? col.width\n : col.width === 'content'\n ? null\n : 240;\n }\n\n protected onResizeStart(col: TableColumn<T>, event: PointerEvent): void {\n event.preventDefault();\n event.stopPropagation();\n const header = (event.target as HTMLElement).closest('th');\n if (!header) {\n return;\n }\n this.lockMeasuredWidths(header);\n this.resizeState = {\n key: col.key,\n startX: event.clientX,\n startWidth: header.offsetWidth,\n };\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n }\n\n /**\n * Freeze the columns at what they currently measure, once, before the first\n * drag moves anything.\n *\n * Without it only the dragged column has a width and the rest are still\n * auto-sized, so the browser redistributes the remainder across them and\n * columns the reader never touched visibly jump. Measuring first means the\n * drag changes one column and leaves the others where they were — the\n * auto-sized geometry is kept rather than lost at the first grab.\n *\n * Reads the header row that is actually on screen rather than assuming a\n * column order.\n */\n private lockMeasuredWidths(from: HTMLElement): void {\n const columns = this.visibleColumns();\n if (columns.every((col) => this.columnWidth(col) !== null)) {\n return;\n }\n const headerRow = from.parentElement;\n if (!headerRow) {\n return;\n }\n const widths = new Map(this.columnWidths());\n for (const col of columns) {\n if (this.columnWidth(col) !== null) {\n continue;\n }\n const cell = headerRow.querySelector<HTMLElement>(\n `th[data-col-key=\"${CSS.escape(col.key)}\"]`,\n );\n if (cell) {\n widths.set(\n col.key,\n Math.max(TableComponent.MIN_COLUMN_WIDTH, cell.offsetWidth),\n );\n }\n }\n this.columnWidths.set(widths);\n }\n\n protected onResizeMove(event: PointerEvent): void {\n if (!this.resizeState) {\n return;\n }\n const width = this.clampColumnWidth(\n this.resizeState.startWidth + (event.clientX - this.resizeState.startX),\n );\n const next = new Map(this.columnWidths());\n next.set(this.resizeState.key, Math.round(width));\n this.columnWidths.set(next);\n }\n\n protected onResizeEnd(): void {\n this.resizeState = null;\n }\n\n private readonly resizeFocus = signal<{\n key: string;\n measured: number;\n max: number;\n } | null>(null);\n\n /**\n * The widest a single column may be dragged: the scroll viewport.\n *\n * A column wider than the viewport can never be seen whole, and long text has\n * its own affordance here — `truncate` clips it and the clip popover shows the\n * rest — so nothing is lost by stopping at the edge. The ceiling exists at all\n * because `aria-valuemax` has to be TRUE: a focusable `role=\"separator\"` is a\n * range widget, and announcing a bound that neither resize path applies is\n * worse than announcing none.\n */\n private columnWidthCeiling(): number {\n return Math.max(\n TableComponent.MIN_COLUMN_WIDTH,\n this.scrollWrap().nativeElement.clientWidth,\n );\n }\n\n private clampColumnWidth(width: number): number {\n return Math.min(\n this.columnWidthCeiling(),\n Math.max(TableComponent.MIN_COLUMN_WIDTH, width),\n );\n }\n\n protected onResizeFocus(col: TableColumn<T>, event: FocusEvent): void {\n const target = event.target as HTMLElement;\n\n this.resizeFocus.set({\n key: col.key,\n measured: this.resolvedColumnWidth(col, target),\n max: this.columnWidthCeiling(),\n });\n }\n\n protected onResizeBlur(): void {\n this.resizeFocus.set(null);\n }\n\n /**\n * The separator's range, and only while it holds focus — that is when a range\n * widget is announced, and an auto-sized column has no width to report until\n * something measures one. Measuring on every change detection to fill an\n * attribute nothing is reading would force layout once per resizable column.\n *\n * `now` prefers `columnWidth`, which the first arrow key makes known and keeps\n * live; the focus measurement only covers the moment before that.\n */\n protected resizeRange(\n col: TableColumn<T>,\n ): { now: number; min: number; max: number } | null {\n const focused = this.resizeFocus();\n if (focused?.key !== col.key) {\n return null;\n }\n\n return {\n now: this.columnWidth(col) ?? focused.measured,\n min: TableComponent.MIN_COLUMN_WIDTH,\n max: focused.max,\n };\n }\n\n protected resolvedColumnWidth(\n col: TableColumn<T>,\n from?: HTMLElement,\n ): number {\n const known = this.columnWidth(col);\n if (known !== null) {\n return known;\n }\n\n return from?.closest('th')?.offsetWidth ?? TableComponent.MIN_COLUMN_WIDTH;\n }\n\n protected onResizeKey(col: TableColumn<T>, event: KeyboardEvent): void {\n const target = event.target as HTMLElement;\n const step = TableComponent.RESIZE_STEP;\n const page = TableComponent.RESIZE_PAGE;\n const delta: number | 'auto' | null =\n event.key === 'ArrowLeft'\n ? -step\n : event.key === 'ArrowRight'\n ? step\n : event.key === 'PageDown'\n ? -page\n : event.key === 'PageUp'\n ? page\n : event.key === 'Home'\n ? 'auto'\n : null;\n if (delta === null) {\n return;\n }\n event.preventDefault();\n this.stepColumnWidth(col, delta, target.closest('th'));\n }\n\n /**\n * The header cell is passed when the caller has it — the column panel does\n * not, so it is looked up by `data-col-key`, and the measurement matters:\n * stepping an auto-sized column has to start from what it currently RENDERS,\n * not from the minimum.\n */\n private stepColumnWidth(\n col: TableColumn<T>,\n delta: number | 'auto',\n from: HTMLElement | null,\n ): void {\n const header = from ?? this.headerCellFor(col);\n if (header) {\n this.lockMeasuredWidths(header);\n }\n const widths = new Map(this.columnWidths());\n if (delta === 'auto') {\n widths.delete(col.key);\n } else {\n const current = this.resolvedColumnWidth(col, header ?? undefined);\n widths.set(col.key, this.clampColumnWidth(Math.round(current + delta)));\n }\n this.columnWidths.set(widths);\n }\n\n private headerCellFor(col: TableColumn<T>): HTMLElement | null {\n return this.scrollWrap().nativeElement.querySelector<HTMLElement>(\n `th[data-col-key=\"${CSS.escape(col.key)}\"]`,\n );\n }\n\n protected onColumnWidthStep(\n col: TableColumn<T>,\n delta: number | 'auto',\n ): void {\n this.stepColumnWidth(col, delta, null);\n }\n\n protected readonly resizeStep = TableComponent.RESIZE_STEP;\n\n protected readonly filteredData = computed<readonly T[]>(() => {\n const query = this.filterQuery().trim().toLowerCase();\n // In 'server' mode the host has already filtered; running the set filters\n // again here would filter the filtered. `filterQuery` is deliberately left\n // alone — it is a separate input with its own client/server story.\n const setFilters =\n this.filterModeResolved() === 'client'\n ? this.columnFilters()\n : new Map<string, ReadonlySet<string>>();\n const columns = this.columns();\n if (!query && setFilters.size === 0) {\n return this.data();\n }\n const marked = columns.filter((col) => col.filterable);\n const scope = marked.length ? marked : columns;\n const activeSetFilters = [...setFilters]\n .map(([key, allowed]) => ({\n col: columns.find((col) => col.key === key),\n allowed,\n }))\n .filter(\n (\n entry,\n ): entry is { col: TableColumn<T>; allowed: ReadonlySet<string> } =>\n !!entry.col,\n );\n\n return this.data().filter((row) => {\n if (\n query &&\n !scope.some((col) =>\n this.cellValue(row, col).toLowerCase().includes(query),\n )\n ) {\n return false;\n }\n\n return activeSetFilters.every(({ col, allowed }) =>\n allowed.has(this.cellValue(row, col)),\n );\n });\n });\n\n protected readonly sortedData = computed<readonly T[]>(() => {\n const rows = this.filteredData();\n if (this.sortModeResolved() !== 'client') {\n return rows;\n }\n const key = this.activeSortKey();\n const dir = this.activeSortDir();\n if (!key || !dir) {\n return rows;\n }\n const column = this.columns().find((col) => col.key === key);\n if (!column) {\n return rows;\n }\n\n const direction = dir === 'asc' ? 1 : -1;\n const sortValue = column.sortValue;\n\n return rows.slice().sort((a, b) => {\n const aValue = sortableOf(\n sortValue ? sortValue(a) : this.cellValue(a, column),\n );\n const bValue = sortableOf(\n sortValue ? sortValue(b) : this.cellValue(b, column),\n );\n\n // Blanks sink in BOTH directions, so `direction` is deliberately not\n // applied to this branch — a descending sort must not open with a screen\n // of empty rows.\n if (aValue === null || bValue === null) {\n if (aValue === null && bValue === null) {\n return 0;\n }\n\n return aValue === null ? 1 : -1;\n }\n\n return compareSortValues(aValue, bValue) * direction;\n });\n });\n\n protected readonly pagedData = computed<readonly T[]>(() => {\n const size = this.pageSize();\n // Server-side paging (`total` set): the host already sliced to one page.\n if (size === null || this.total() !== null) {\n return this.sortedData();\n }\n const start = (this.page() - 1) * size;\n\n return this.sortedData().slice(start, start + size);\n });\n\n /** Virtual mode windows this further; `rowSlots` is what the loop walks. */\n protected readonly displayData = computed<readonly T[]>(() =>\n this.pageSize() !== null ? this.pagedData() : this.sortedData(),\n );\n\n /**\n * The single live-region line. Loading wins while it lasts — a sort\n * announcement over rows that are being replaced tells the reader about a\n * state they cannot inspect yet.\n *\n * `aria-live=\"polite\"` does not announce a region's INITIAL content, so the\n * unsorted first render is silent; only real changes speak.\n */\n protected readonly statusMessage = computed<string>(() => {\n if (this.loadingMode() !== false) {\n return 'Loading…';\n }\n const events = this.eventMessages();\n // The export line holds the region until the events line has something NEW to say, so\n // \"Export failed\" survives until the reader moves on rather than for a guessed interval.\n // Compared against a snapshot rather than cleared, because a computed cannot write.\n if (this.exportStatus() && events === this.eventsAtExport()) {\n return this.exportStatus();\n }\n\n return events;\n });\n\n private readonly eventMessages = computed<string>(() =>\n [this.sortMessage(), this.rangeMessage(), this.expansionMessage()]\n .filter(Boolean)\n .join('. '),\n );\n\n /** Only from two rows up: a single expander announces itself through its own\n * `aria-expanded`, and repeating that here would say everything twice. */\n private readonly expansionMessage = computed<string>(() => {\n const open = this.expandedIds();\n if (open.size < 2) {\n return '';\n }\n const onPage = this.displayData().filter((row) =>\n open.has(this.rowKey(row)),\n ).length;\n\n return onPage < 2 ? '' : `${onPage} rows expanded`;\n });\n\n private readonly sortMessage = computed<string>(() => {\n const key = this.activeSortKey();\n const dir = this.activeSortDir();\n if (!key) {\n return '';\n }\n const label = this.columns().find((col) => col.key === key)?.label ?? key;\n\n return this.sortAnnouncement()(label, dir);\n });\n\n private readonly rangeMessage = computed<string>(() => {\n const size = this.pageSize();\n if (size === null) {\n return '';\n }\n const rows = this.displayData().length;\n if (rows === 0) {\n return '';\n }\n const first = (this.page() - 1) * size + 1;\n const total = this.total() ?? this.filteredData().length;\n\n return this.rangeAnnouncement()(first, first + rows - 1, total);\n });\n\n /** Virtual mode needs a bounded scroller to window against. */\n protected readonly virtualizing = computed(\n () => this.virtualScroll() && !!this.maxHeight(),\n );\n\n /** Drives the CSS row height from the same number the arithmetic uses, so the\n * two cannot drift — which would make every offset progressively wrong. */\n protected readonly virtualRowHeight = computed(\n () => `${this.virtualRowSize()}px`,\n );\n\n /** How many rows the scroller spans. Lazy counts the rows that EXIST, not the\n * ones that have arrived — otherwise the spacers shrink to the loaded slice\n * and the scrollbar lies about the length of the list. */\n protected readonly virtualCount = computed(() =>\n this.lazy()\n ? (this.total() ?? this.displayData().length)\n : this.displayData().length,\n );\n\n protected readonly virtualWindow = computed(() => {\n if (!this.virtualizing()) {\n return null;\n }\n const rowSize = Math.max(1, this.virtualRowSize());\n const count = this.virtualCount();\n const height = this.viewportHeight() || VIRTUAL_FALLBACK_HEIGHT;\n const firstVisible = Math.floor(this.scrollTop() / rowSize);\n const start = Math.max(0, firstVisible - VIRTUAL_OVERSCAN);\n const end = Math.min(\n count,\n firstVisible + Math.ceil(height / rowSize) + VIRTUAL_OVERSCAN,\n );\n\n return {\n start,\n end,\n padTop: start * rowSize,\n padBottom: Math.max(0, count - end) * rowSize,\n };\n });\n\n /**\n * What the row loop walks: each slot carries its ABSOLUTE index, and a `null`\n * row is a gap the host has not filled yet.\n *\n * Absolute rather than loop-relative because everything downstream needs it —\n * striping parity, the skeleton's width seed, and the range `(lazyLoad)` asks\n * for. Outside lazy mode every slot is filled, so the extra object per visible\n * row buys uniformity for the ~25 rows windowing keeps in the DOM.\n */\n protected readonly rowSlots = computed<\n readonly { row: T | null; index: number }[]\n >(() => {\n const window = this.virtualWindow();\n const data = this.displayData();\n const start = window ? window.start : 0;\n const end = window ? window.end : data.length;\n const slots: { row: T | null; index: number }[] = [];\n for (let index = start; index < end; index++) {\n slots.push({ row: data[index] ?? null, index });\n }\n\n return slots;\n });\n\n /** Zebra striping cannot come from `:nth-child` while windowing — the parity\n * of a rendered row depends on its ABSOLUTE index, and the spacer rows are\n * children too. Matches `:nth-child(odd)`, which is 1-based. */\n protected isStriped(absoluteIndex: number): boolean {\n return !!this.virtualWindow() && absoluteIndex % 2 === 0;\n }\n\n protected readonly allSelected = computed(() => {\n const data = this.displayData();\n if (data.length === 0) {\n return false;\n }\n const sel = this.selectedIds();\n\n return data.every((row) => sel.has(this.rowKey(row)));\n });\n\n protected readonly someSelected = computed(() => {\n const data = this.displayData();\n const sel = this.selectedIds();\n\n return data.some((row) => sel.has(this.rowKey(row))) && !this.allSelected();\n });\n\n protected readonly selectAllLabel = computed(() =>\n this.pageSize() !== null\n ? 'Select all rows on this page'\n : 'Select all rows',\n );\n\n protected readonly allExpanded = computed(() => {\n const data = this.displayData();\n if (data.length === 0) {\n return false;\n }\n const open = this.expandedIds();\n\n return data.every((row) => open.has(this.rowKey(row)));\n });\n\n protected readonly expandAllVisible = computed(\n () => this.expandAllToggle() && this.expandMode() !== 'single',\n );\n\n protected readonly expandAllLabel = computed(() => {\n const scope = this.pageSize() !== null ? ' on this page' : '';\n\n return this.allExpanded()\n ? `Collapse all rows${scope}`\n : `Expand all rows${scope}`;\n });\n\n protected readonly skeletonArray = computed(() =>\n Array(this.skeletonRows()).fill(0),\n );\n\n protected readonly expandedColspan = computed(() => {\n let count = this.visibleColumns().length;\n if (this.selectable()) {\n count += 1;\n }\n if (this.expandableRows()) {\n count += 1;\n }\n if (this.hasUtilityColumn()) {\n count += 1;\n }\n\n return count;\n });\n\n protected readonly hasRowActions = computed(\n () => this.rowActions().length > 0,\n );\n protected readonly menuRow = signal<T | null>(null);\n private readonly rowMenuPopover =\n viewChild<PopoverComponent>('rowMenuPopover');\n private readonly columnPickerPopover = viewChild<PopoverComponent>(\n 'columnPickerPopover',\n );\n\n protected readonly columnSheetOpen = signal(false);\n\n private readonly coarsePointerState = signal(false);\n\n /** Whether the column panel opens as a sheet and the drag handle stands down.\n * Keyed on the pointer, not the viewport — see the matching media query in\n * `table.component.scss`. */\n protected readonly coarsePointer = this.coarsePointerState.asReadonly();\n\n protected readonly columnPickerOpened = computed(() =>\n this.coarsePointer()\n ? this.columnSheetOpen()\n : (this.columnPickerPopover()?.opened() ?? false),\n );\n\n protected onColumnPickerClick(event: Event): void {\n if (this.coarsePointer()) {\n this.columnSheetOpen.set(true);\n\n return;\n }\n this.columnPickerPopover()?.toggle(event.currentTarget as HTMLElement);\n }\n\n protected readonly hasTruncate = computed(() =>\n this.columns().some((col) => col.truncate),\n );\n private readonly cellTextPopover =\n viewChild<PopoverComponent>('cellTextPopover');\n protected readonly cellPopoverText = signal('');\n\n protected onCellClipClick(row: T, col: TableColumn<T>, event: Event): void {\n const element = event.currentTarget as HTMLElement;\n if (!TableComponent.isClipped(element)) {\n return;\n }\n event.stopPropagation();\n this.cellPopoverText.set(this.cellValue(row, col));\n this.cellTextPopover()?.toggle(element);\n }\n\n /** Clipped horizontally — itself or anything it renders. A `dsCellTemplate`\n * puts the ellipsis on a descendant, so testing only the wrapper misses it. */\n private static isClipped(element: HTMLElement): boolean {\n if (element.scrollWidth > element.clientWidth) {\n return true;\n }\n\n return [...element.querySelectorAll<HTMLElement>('*')].some(\n (child) => child.scrollWidth > child.clientWidth,\n );\n }\n\n /**\n * A header narrowed by resizing clips its own label, and the label is the only\n * thing naming the column — so the full text has to stay reachable. Set on\n * enter rather than always, because a `title` on every header would fire a\n * tooltip on hover for text that is perfectly readable.\n */\n protected onHeaderEnter(event: Event, col: TableColumn<T>): void {\n const element = event.currentTarget as HTMLElement;\n const label = element.querySelector<HTMLElement>('.th-label') ?? element;\n if (TableComponent.isClipped(label)) {\n element.setAttribute('title', col.label);\n } else {\n element.removeAttribute('title');\n }\n }\n\n private readonly scrollWrap =\n viewChild.required<ElementRef<HTMLElement>>('scrollWrap');\n private readonly hscrollProxy =\n viewChild<ElementRef<HTMLElement>>('hscrollProxy');\n private readonly tableHead = viewChild<ElementRef<HTMLElement>>('tableHead');\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef);\n protected readonly hscrollContentWidth = signal(0);\n protected readonly hscrollNeeded = signal(false);\n private readonly scrollTop = signal(0);\n private readonly viewportHeight = signal(0);\n private lastLazyRequest: { first: number; rows: number } | null = null;\n\n constructor() {\n this.watchPointer();\n\n // The scrim starts below the header, so it needs the header's height. Measured, not summed\n // from padding and line-height: `vertical-align: middle` on the inline-flex label extends\n // the line box past the strut by a font-metric amount no calc() can carry, and a sum is\n // blind to a taller control in the header.\n effect(() => {\n if (!this.isOverlayLoading()) {\n return;\n }\n const head = this.tableHead()?.nativeElement;\n if (!head) {\n return;\n }\n this.hostElement.nativeElement.style.setProperty(\n '--_table-head-h',\n `${head.getBoundingClientRect().height}px`,\n );\n });\n // One effect for both halves, because the restore CANNOT run in the\n // constructor: input signals are not set yet there, so storageKey() is still\n // '' and the restore silently no-ops. The first run with a usable key\n // restores; every later run saves.\n effect(() => {\n const key = this.layoutKey();\n const order = this.columnOrder();\n const widths = this.columnWidths();\n const hidden = this.hiddenKeys();\n if (!key) {\n return;\n }\n if (!this.layoutRestored) {\n this.layoutRestored = true;\n this.restoreLayout(key);\n\n return;\n }\n this.saveLayout(key, order, widths, hidden);\n });\n\n // A table holding ALL its rows is the exception, and `total` unbound is how\n // it says so — so that is where the reminder goes.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.sortMode() === null &&\n this.total() === null &&\n this.columns().some((col) => col.sortable)\n ? '[ds-table] sortable columns default to sortMode=\"server\", so a header click only emits (sortChange) and the table reorders nothing itself. This table binds no `total`, which usually means it holds every row — declare sortMode=\"client\" to sort them in place.'\n : null,\n );\n\n devWarn(() =>\n this.filterMode() === null &&\n this.total() === null &&\n this.columns().some((col) => col.filter === 'set')\n ? '[ds-table] a header filter defaults to filterMode=\"server\", so ticking a value only updates `columnFilters` and filters nothing locally. This table binds no `total`, which usually means it holds every row — declare filterMode=\"client\" to filter them in place.'\n : null,\n );\n }\n\n effect((onCleanup) => {\n if (!this.virtualizing()) {\n return;\n }\n const wrap = this.scrollWrap().nativeElement;\n const onScroll = (): void => this.scrollTop.set(wrap.scrollTop);\n const measure = (): void => this.viewportHeight.set(wrap.clientHeight);\n wrap.addEventListener('scroll', onScroll, { passive: true });\n const resizeObserver = new ResizeObserver(measure);\n resizeObserver.observe(wrap);\n measure();\n onScroll();\n onCleanup(() => {\n wrap.removeEventListener('scroll', onScroll);\n resizeObserver.disconnect();\n });\n });\n\n // Ask for the visible range whenever it has gaps. Keyed on the range itself,\n // so scrolling within an already-requested window stays quiet and a request\n // in flight is not repeated every frame — the host is free to answer slowly.\n effect(() => {\n if (!this.lazy()) {\n return;\n }\n const slots = this.rowSlots();\n const gaps = slots.filter((slot) => slot.row === null);\n if (gaps.length === 0) {\n return;\n }\n const first = gaps[0].index;\n const rows = gaps[gaps.length - 1].index - first + 1;\n // Contained, not equal: the viewport is measured after the first paint, so\n // the window grows by an overscan or two right after opening and an\n // exact-match guard would fetch the same rows twice.\n const covered =\n this.lastLazyRequest &&\n first >= this.lastLazyRequest.first &&\n first + rows <= this.lastLazyRequest.first + this.lastLazyRequest.rows;\n if (covered) {\n return;\n }\n this.lastLazyRequest = { first, rows };\n this.lazyLoad.emit({ first, rows });\n });\n\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.lazy() && !this.virtualScroll()\n ? '[ds-table] lazy needs virtualScroll: without a window there is no range to fetch, so every gap in `data` renders a skeleton row and (lazyLoad) never narrows. Set virtualScroll (and maxHeight), or hand the table its rows outright.'\n : null,\n );\n devWarn(() =>\n this.lazy() && this.total() === null\n ? '[ds-table] lazy needs `total`: the scroller is sized from the rows that EXIST, and without it the spacers collapse to the slice that has arrived — the scrollbar then lies about the length of the list.'\n : null,\n );\n devWarn(() =>\n this.lazy() && this.sortMode() === 'client'\n ? '[ds-table] lazy with sortMode=\"client\" sorts only the rows that happen to have arrived, which is a different order every time a window loads. The server owns the order here — drop sortMode or declare \"server\".'\n : null,\n );\n devWarn(() =>\n this.virtualScroll() && !this.maxHeight()\n ? '[ds-table] virtualScroll needs maxHeight — without a bounded scroller there is no viewport to window against, so every row renders and nothing is virtualized. Set maxHeight (e.g. \"480px\").'\n : null,\n );\n devWarn(() =>\n this.virtualScroll() && this.expandableRows()\n ? '[ds-table] virtualScroll and expandableRows do not combine: an expanded row is taller than virtualRowSize, and every offset after it would be wrong. The expander renders but the panel is suppressed — move the detail into a modal or a drawer, or drop virtualScroll.'\n : null,\n );\n devWarn(() =>\n this.expandAllToggle() && this.expandMode() === 'single'\n ? '[ds-table] expandAllToggle contradicts expandMode=\"single\" — expanding every row is the one thing single mode exists to prevent. The header toggle is suppressed; drop one of the two.'\n : null,\n );\n devWarn(() =>\n this.expandAllToggle() && !this.expandableRows()\n ? '[ds-table] expandAllToggle needs expandableRows — without it there is no expander column to put the toggle in, so it renders nothing. Set expandableRows.'\n : null,\n );\n devWarn(() =>\n this.expandMode() === 'single' && this.expandedIds().size > 1\n ? '[ds-table] expandMode=\"single\" was given expandedIds holding several rows. A two-way model is the host\\'s to write, so it is left as passed rather than rewritten — the next expander click collapses back to one.'\n : null,\n );\n devWarn(() =>\n this.virtualScroll() && this.pageSize() !== null\n ? '[ds-table] virtualScroll with pageSize paginates a window of a page. Virtual scrolling is what pagination was for on a long list — pick one.'\n : null,\n );\n }\n\n // Assigning an equal scrollLeft fires no scroll event, so the two mirrors\n // can't loop.\n effect((onCleanup) => {\n const proxy = this.hscrollProxy()?.nativeElement;\n if (!proxy) {\n return;\n }\n const wrap = this.scrollWrap().nativeElement;\n const fromWrap = (): void => {\n proxy.scrollLeft = wrap.scrollLeft;\n };\n const fromProxy = (): void => {\n wrap.scrollLeft = proxy.scrollLeft;\n };\n wrap.addEventListener('scroll', fromWrap, { passive: true });\n proxy.addEventListener('scroll', fromProxy, { passive: true });\n const measure = (): void => {\n this.hscrollContentWidth.set(wrap.scrollWidth);\n // Both are rounded integers, so a fractional layout width makes an\n // unscrollable wrap report one px more than it holds.\n this.hscrollNeeded.set(wrap.scrollWidth > wrap.clientWidth + 1);\n };\n // The wrap's own box never changes with content — watch the table too\n // (column toggles, data swaps change its width).\n const resizeObserver = new ResizeObserver(measure);\n resizeObserver.observe(wrap);\n const table = wrap.querySelector('table');\n if (table) {\n resizeObserver.observe(table);\n }\n measure();\n onCleanup(() => {\n wrap.removeEventListener('scroll', fromWrap);\n proxy.removeEventListener('scroll', fromProxy);\n resizeObserver.disconnect();\n });\n });\n\n // Opt-in height tween. Observer fires pre-paint: freezing the old height\n // here stops the jump being painted; disconnect during the anim so its own\n // resizes don't re-trigger it; clip (not hidden) avoids a scroll container.\n effect((onCleanup) => {\n if (!this.animateHeight()) {\n return;\n }\n const wrap = this.scrollWrap().nativeElement;\n let previousHeight: number | null = null;\n let previousWidth: number | null = null;\n let heightAnim: Animation | null = null;\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n const box = entry.borderBoxSize?.[0];\n const nextHeight = box ? box.blockSize : entry.contentRect.height;\n const nextWidth = box ? box.inlineSize : entry.contentRect.width;\n const fromHeight = previousHeight;\n const widthChanged = nextWidth !== previousWidth;\n previousHeight = nextHeight;\n previousWidth = nextWidth;\n // Only a height change at a stable width is a row-set swap; skip the\n // first measure and width-driven reflows (window/column resize) so the\n // tween doesn't chase a resize.\n if (fromHeight === null || widthChanged || nextHeight === fromHeight) {\n return;\n }\n const styles = getComputedStyle(wrap);\n const duration = this.parseDurationMs(\n styles.getPropertyValue('--duration-base'),\n );\n if (duration <= 0) {\n return;\n }\n observer.disconnect();\n heightAnim?.cancel();\n wrap.style.height = `${fromHeight}px`;\n wrap.style.overflowY = 'clip';\n heightAnim = wrap.animate(\n [{ height: `${fromHeight}px` }, { height: `${nextHeight}px` }],\n {\n duration,\n easing:\n styles.getPropertyValue('--ease-standard').trim() || 'ease-out',\n },\n );\n heightAnim.onfinish = heightAnim.oncancel = () => {\n heightAnim = null;\n wrap.style.height = '';\n wrap.style.overflowY = '';\n observer.observe(wrap);\n };\n });\n observer.observe(wrap);\n onCleanup(() => {\n if (heightAnim) {\n heightAnim.onfinish = heightAnim.oncancel = null;\n heightAnim.cancel();\n heightAnim = null;\n }\n wrap.style.height = '';\n wrap.style.overflowY = '';\n observer.disconnect();\n });\n });\n\n // Client-side paging only (with `total` set the host owns the clamp): when a\n // filter shrinks the result set below the current page, pull `page` back to\n // the last page that still has rows so the body never renders empty.\n effect(() => {\n const size = this.pageSize();\n if (size === null || this.total() !== null) {\n return;\n }\n const lastPage = Math.max(\n 1,\n Math.ceil(this.filteredData().length / size),\n );\n if (this.page() > lastPage) {\n this.page.set(lastPage);\n }\n });\n\n let previousPage = this.page();\n effect(() => {\n const current = this.page();\n const enabled = this.scrollToTopOnPageChange();\n if (current !== previousPage && enabled) {\n this.scrollWrap().nativeElement.scrollIntoView({ block: 'start' });\n }\n previousPage = current;\n });\n }\n\n private parseDurationMs(raw: string): number {\n const value = raw.trim();\n if (value.endsWith('ms')) {\n return parseFloat(value);\n }\n if (value.endsWith('s')) {\n return parseFloat(value) * 1000;\n }\n\n return parseFloat(value) || 0;\n }\n\n protected onRowMenuClick(row: T, event: Event): void {\n event.stopPropagation();\n this.menuRow.set(row);\n this.rowMenuPopover()?.toggle(event.currentTarget as HTMLElement);\n }\n\n protected isMenuOpenFor(row: T): boolean {\n return this.menuRow() === row && !!this.rowMenuPopover()?.opened();\n }\n\n protected isActionDisabled(action: TableRowAction<T>): boolean {\n const row = this.menuRow();\n\n return row !== null && !!action.disabled?.(row);\n }\n\n /** Items that apply to `row`. Called from the trigger's own gate as well as the\n * menu, so a row with nothing applicable shows no kebab instead of an empty one. */\n protected actionsFor(row: T): readonly TableRowAction<T>[] {\n return this.rowActions().filter((action) => !action.hidden?.(row));\n }\n\n protected hasActionsFor(row: T): boolean {\n return this.actionsFor(row).length > 0;\n }\n\n protected readonly visibleRowActions = computed<readonly TableRowAction<T>[]>(\n () => {\n const row = this.menuRow();\n\n return row === null ? [] : this.actionsFor(row);\n },\n );\n\n /** Empty unless the item is actually disabled for this row: a reason on a live\n * item would read as a caveat on something that works. */\n protected actionReason(action: TableRowAction<T>): string {\n const row = this.menuRow();\n if (row === null || !action.disabled?.(row)) {\n return '';\n }\n const reason = action.disabledReason;\n\n return typeof reason === 'function' ? reason(row) : (reason ?? '');\n }\n\n protected onRowAction(action: TableRowAction<T>): void {\n const row = this.menuRow();\n if (row === null) {\n return;\n }\n this.rowActionSelected.emit({ action, row });\n }\n\n protected isExpanded(row: T): boolean {\n return this.expandedIds().has(this.rowKey(row));\n }\n\n protected onToggleExpand(row: T, event: Event): void {\n event.stopPropagation();\n const key = this.rowKey(row);\n const open = this.expandedIds();\n\n if (open.has(key)) {\n const next = new Set<string>(open);\n next.delete(key);\n this.expandedIds.set(next);\n this.rowCollapsed.emit(row);\n\n return;\n }\n\n if (this.expandMode() === 'single') {\n // `data()` rather than `displayData()` so a row left open on another page\n // is reported too — but an event carries a row, so an id whose row is not\n // loaded at all is dropped without one. Documented on `rowCollapsed`.\n const closing =\n open.size > 0\n ? this.data().filter((other) => open.has(this.rowKey(other)))\n : [];\n this.expandedIds.set(new Set<string>([key]));\n closing.forEach((other) => this.rowCollapsed.emit(other));\n this.rowExpanded.emit(row);\n\n return;\n }\n\n const next = new Set<string>(open);\n next.add(key);\n this.expandedIds.set(next);\n this.rowExpanded.emit(row);\n }\n\n protected onToggleExpandAll(): void {\n const rows = this.displayData();\n const open = this.expandedIds();\n const collapsing = this.allExpanded();\n const changed = rows.filter(\n (row) => open.has(this.rowKey(row)) === collapsing,\n );\n if (changed.length === 0) {\n return;\n }\n\n const next = new Set<string>(open);\n rows.forEach((row) => {\n if (collapsing) {\n next.delete(this.rowKey(row));\n } else {\n next.add(this.rowKey(row));\n }\n });\n this.expandedIds.set(next);\n\n changed.forEach((row) =>\n collapsing ? this.rowCollapsed.emit(row) : this.rowExpanded.emit(row),\n );\n }\n\n protected isSelected(row: T): boolean {\n return this.selectedIds().has(this.rowKey(row));\n }\n\n protected onToggleAll(event: Event): void {\n const checked = (event.target as HTMLInputElement).checked;\n const next = new Set<string>(this.selectedIds());\n if (checked) {\n this.displayData().forEach((row) => next.add(this.rowKey(row)));\n } else {\n this.displayData().forEach((row) => next.delete(this.rowKey(row)));\n }\n this.selectedIds.set(next);\n }\n\n protected onToggleRow(row: T, event: Event): void {\n event.stopPropagation();\n const checked = (event.target as HTMLInputElement).checked;\n const next = new Set<string>(this.selectedIds());\n if (checked) {\n next.add(this.rowKey(row));\n } else {\n next.delete(this.rowKey(row));\n }\n this.selectedIds.set(next);\n }\n\n private selectionBeforeGesture = '';\n\n protected onRowMousedown(): void {\n this.selectionBeforeGesture = window.getSelection()?.toString() ?? '';\n }\n\n protected onRowClick(row: T, event: Event): void {\n if ((event.target as HTMLElement).closest('input')) {\n return;\n }\n // Only a selection created by this gesture blocks the click — a stale one\n // mousedown can't collapse (user-select:none content) must not wedge rows.\n const selection = window.getSelection()?.toString() ?? '';\n if (selection && selection !== this.selectionBeforeGesture) {\n return;\n }\n this.rowClicked.emit(row);\n }\n\n protected onRowKey(row: T, event: Event): void {\n // Only the row's own key opens the row: a key pressed on a control inside a\n // cell belongs to that control (Space on the select box, Enter on a button).\n if (!this.rowInteractive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.rowClicked.emit(row);\n }\n\n protected rowAriaLabel(row: T): string {\n const first = this.visibleColumns()[0];\n\n return first ? this.cellValue(row, first) : '';\n }\n\n /** Row identity — the `rowId` accessor when given, else `row.id`. Public so a\n * host reading `selectedIds`/`expandedIds` can compute the same keys. */\n rowKey(row: T): string {\n const accessor = this.rowId();\n if (accessor) {\n return accessor(row);\n }\n\n return String((row as { id?: unknown }).id ?? '');\n }\n\n protected sortableCol(col: TableColumn<T>): boolean {\n return !!col.sortable && this.sortModeResolved() !== 'none';\n }\n\n protected ariaSort(\n col: TableColumn<T>,\n ): 'ascending' | 'descending' | 'none' | null {\n if (!this.sortableCol(col)) {\n return null;\n }\n if (this.activeSortKey() === col.key && this.activeSortDir()) {\n return this.activeSortDir() === 'asc' ? 'ascending' : 'descending';\n }\n\n return 'none';\n }\n\n protected onSort(col: TableColumn<T>): void {\n if (!this.sortableCol(col)) {\n return;\n }\n const order = this.sortingOrder();\n const currentKey = this.activeSortKey();\n let dir: SortDir;\n if (currentKey !== col.key) {\n dir = order[0] ?? null;\n } else {\n const currentIndex = order.indexOf(this.activeSortDir());\n dir = order[(currentIndex + 1) % order.length] ?? null;\n }\n // The key survives \"unsorted\" — `dir === null` alone means that. Nulling it too\n // desynced a host that maps off `sortKey` back to its own default sort.\n this.sortState.set({ key: col.key, dir });\n this.sortKeyChange.emit(col.key);\n this.sortDirChange.emit(dir);\n this.sortChange.emit({ key: col.key, dir });\n }\n\n protected headerClasses(col: TableColumn<T>): string {\n const parts: string[] = [];\n if (this.sortableCol(col)) {\n parts.push('sortable');\n }\n if (this.activeSortKey() === col.key && this.activeSortDir()) {\n parts.push(`sorted-${this.activeSortDir()}`);\n }\n\n return parts.join(' ');\n }\n\n protected sortIcon(col: TableColumn<T>): 'sortAsc' | 'sortDesc' | 'sort' {\n if (this.activeSortKey() !== col.key || !this.activeSortDir()) {\n return 'sort';\n }\n\n return this.activeSortDir() === 'asc' ? 'sortAsc' : 'sortDesc';\n }\n\n protected cellValue(row: T, col: TableColumn<T>): string {\n if (col.cell) {\n return col.cell(row);\n }\n\n return String((row as Record<string, unknown>)[col.key] ?? '');\n }\n\n protected cellLink(\n row: T,\n col: TableColumn<T>,\n ): string | readonly unknown[] | null {\n return col.link?.(row) ?? null;\n }\n\n /** Serialises the visible columns of the rows the TABLE HOLDS as a CSV download.\n * On a server-paged table that is one page — prefer `runExport()`, which goes\n * through `exportFetcher` and exports the whole set. Pass `rows` to serialise a\n * set you fetched yourself. */\n exportCsv(filename = 'table.csv', rows?: readonly T[]): void {\n if (typeof document === 'undefined') {\n return;\n }\n const columns = this.visibleColumns();\n const escapeCell = (value: string): string =>\n /[\",\\r\\n]/.test(value) ? `\"${value.replace(/\"/g, '\"\"')}\"` : value;\n const header = columns.map((col) => escapeCell(col.label));\n const body = (rows ?? this.sortedData()).map((row) =>\n columns.map((col) => escapeCell(this.cellValue(row, col))),\n );\n // Leading BOM so Excel reads UTF-8 (accented labels/values) correctly.\n const csv =\n '' + [header, ...body].map((cells) => cells.join(',')).join('\\r\\n');\n const url = URL.createObjectURL(\n new Blob([csv], { type: 'text/csv;charset=utf-8;' }),\n );\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n link.click();\n URL.revokeObjectURL(url);\n }\n\n // localStorage, not session: a column layout the reader arranged should still\n // be there tomorrow. Every access is guarded — Safari private mode throws on\n // write, and a quota error must not take the table down with it.\n private layoutKey(): string | null {\n const key = this.storageKey().trim();\n\n return this.persistLayout() && key ? `ds-table:${key}` : null;\n }\n\n private layoutRestored = false;\n\n private restoreLayout(key: string): void {\n try {\n const raw = localStorage.getItem(key);\n if (!raw) {\n return;\n }\n const saved = JSON.parse(raw) as {\n order?: string[] | null;\n widths?: [string, number][];\n hidden?: string[] | null;\n };\n // Only apply what was actually stored: a table that has never been\n // rearranged must keep its declaration order and `hidden` flags.\n if (saved.order) {\n this.columnOrder.set(saved.order);\n }\n if (saved.widths) {\n this.columnWidths.set(new Map(saved.widths));\n }\n if (saved.hidden) {\n this.hiddenKeys.set(new Set(saved.hidden));\n }\n } catch {\n // Unreadable or from an older shape: fall back to the declared layout.\n }\n }\n\n private saveLayout(\n key: string,\n order: string[] | null,\n widths: Map<string, number>,\n hidden: Set<string> | null,\n ): void {\n try {\n localStorage.setItem(\n key,\n JSON.stringify({\n order,\n widths: [...widths],\n hidden: hidden ? [...hidden] : null,\n }),\n );\n } catch {\n // Full or blocked: a lost column layout is not worth an error.\n }\n }\n\n /** Runs the export the built-in button runs: awaits `exportFetcher` when one is\n * given — so a server-paged table exports the whole set rather than the page it\n * holds — downloads the result, drives `exporting`, writes the live region and\n * emits `exportFailed`. Public so the button can live anywhere:\n * `<ds-button [loading]=\"table.exporting()\" (pressed)=\"table.runExport()\">`. */\n async runExport(): Promise<void> {\n const fetcher = this.exportFetcher();\n if (!fetcher) {\n this.exportCsv(this.exportFilename());\n\n return;\n }\n this.exportingState.set(true);\n this.announceExport('Preparing export…');\n try {\n const result = await fetcher();\n if (typeof result === 'string' || result instanceof Blob) {\n this.downloadFile(result, this.exportFilename());\n } else {\n this.exportCsv(this.exportFilename(), result);\n }\n this.announceExport('Export ready');\n } catch (error) {\n this.announceExport('Export failed');\n this.exportFailed.emit(error);\n } finally {\n this.exportingState.set(false);\n }\n }\n\n private announceExport(status: string): void {\n this.eventsAtExport.set(this.eventMessages());\n this.exportStatusState.set(status);\n }\n\n /** Hands a ready-made file to the browser. Only a Blob gets its object URL\n * revoked — a URL the caller supplied is theirs to manage. */\n private downloadFile(source: Blob | string, filename: string): void {\n if (typeof document === 'undefined') {\n return;\n }\n const url = source instanceof Blob ? URL.createObjectURL(source) : source;\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n link.click();\n if (source instanceof Blob) {\n URL.revokeObjectURL(url);\n }\n }\n\n /** Deterministic per-cell width so skeleton rows look organic but stable\n * across re-renders. */\n protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string {\n const seed = `${col.key}-${rowIndex}`;\n let hash = 0;\n for (let charIndex = 0; charIndex < seed.length; charIndex++) {\n hash = (hash + seed.charCodeAt(charIndex)) | 0;\n }\n const widths = ['45%', '55%', '65%', '75%', '85%'];\n\n return widths[Math.abs(hash) % widths.length] ?? '70%';\n }\n\n private watchPointer(): void {\n if (typeof window === 'undefined' || !window.matchMedia) {\n return;\n }\n const coarse = window.matchMedia('(hover: none) and (pointer: coarse)');\n const sync = (): void => this.coarsePointerState.set(coarse.matches);\n sync();\n coarse.addEventListener('change', sync);\n this.destroyRef.onDestroy(() => coarse.removeEventListener('change', sync));\n }\n\n}\n","<div class=\"table-toolbar\">\n <div class=\"toolbar-slot\">\n <ng-content select=\"[toolbar]\"></ng-content>\n </div>\n\n @if (exportButton()) {\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n size=\"sm\"\n [disabled]=\"exporting()\"\n (pressed)=\"runExport()\"\n >\n {{ exporting() ? 'Preparing…' : 'Export CSV' }}\n </ds-button>\n }\n</div>\n\n<!-- Wraps the SCROLL CONTAINER, not the table inside it: the scrim is\n `position: absolute; inset: 0`, so from in there it is sized to one viewport of\n the table and scrolls away with the content. -->\n<ds-loading-overlay\n [loading]=\"isOverlayLoading()\"\n [blur]=\"true\"\n [insetTop]=\"'var(--ds-table-head-h, var(--_table-head-h, 40px))'\"\n [inertContent]=\"false\"\n>\n <div\n #scrollWrap\n class=\"scroll-wrap\"\n [class.scroll-y]=\"maxHeight()\"\n [style.max-height]=\"maxHeight()\"\n >\n <div\n class=\"visually-hidden\"\n role=\"status\"\n aria-live=\"polite\"\n >\n {{ statusMessage() }}\n </div>\n\n <table\n [class]=\"tableClasses()\"\n [style.--_table-virtual-row-h]=\"virtualRowHeight()\"\n [attr.role]=\"rowInteractive() ? 'grid' : null\"\n [attr.aria-busy]=\"loading() !== false ? 'true' : null\"\n >\n @if (caption()) {\n <caption class=\"visually-hidden\">\n {{\n caption()\n }}\n </caption>\n }\n\n <thead #tableHead>\n <tr>\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"select-col pin-select\"\n >\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"selectAllLabel()\"\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (change)=\"onToggleAll($event)\"\n />\n </th>\n }\n\n @if (expandableRows()) {\n <th\n scope=\"col\"\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\"\n >\n @if (expandAllVisible()) {\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-label]=\"expandAllLabel()\"\n (click)=\"onToggleExpandAll()\"\n >\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"allExpanded()\"\n [size]=\"16\"\n />\n </button>\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <th\n scope=\"col\"\n [class]=\"headerClasses(col)\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.fit-content]=\"fitsContent(col)\"\n [style.width.px]=\"columnWidth(col)\"\n [style.min-width.px]=\"columnWidth(col)\"\n [style.max-width.px]=\"columnWidth(col)\"\n [attr.aria-sort]=\"ariaSort(col)\"\n [attr.data-col-key]=\"col.key\"\n (pointerenter)=\"onHeaderEnter($event, col)\"\n >\n @if (sortableCol(col)) {\n <button\n type=\"button\"\n class=\"th-label\"\n (click)=\"onSort(col)\"\n >\n @if (col.label) {\n {{ col.label }}\n } @else if (col.srLabel) {\n <span class=\"visually-hidden\">\n {{ col.srLabel }}\n </span>\n }\n\n <ds-icon\n class=\"sort-icon\"\n [name]=\"sortIcon(col)\"\n [size]=\"12\"\n >\n </ds-icon>\n </button>\n } @else {\n <span class=\"th-label\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.srLabel) {\n <span class=\"visually-hidden\">\n {{ col.srLabel }}\n </span>\n }\n </span>\n }\n\n @if (hasColumnFilter(col)) {\n <button\n type=\"button\"\n class=\"col-filter-btn\"\n aria-haspopup=\"dialog\"\n [class.active]=\"isColumnFiltered(col)\"\n [attr.aria-label]=\"'Filter ' + col.label\"\n (click)=\"onColumnFilterClick(col, $event)\"\n >\n <ds-icon\n name=\"filter\"\n [size]=\"12\"\n />\n </button>\n }\n\n @if (resizableColumns()) {\n @let range = resizeRange(col);\n\n <span\n class=\"col-resize\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Resize ' + col.label\"\n [attr.aria-valuenow]=\"range?.now ?? null\"\n [attr.aria-valuemin]=\"range?.min ?? null\"\n [attr.aria-valuemax]=\"range?.max ?? null\"\n (focus)=\"onResizeFocus(col, $event)\"\n (blur)=\"onResizeBlur()\"\n (pointerdown)=\"onResizeStart(col, $event)\"\n (pointermove)=\"onResizeMove($event)\"\n (pointerup)=\"onResizeEnd()\"\n (pointercancel)=\"onResizeEnd()\"\n (keydown)=\"onResizeKey(col, $event)\"\n >\n </span>\n }\n </th>\n }\n\n @if (hasUtilityColumn()) {\n <th\n scope=\"col\"\n class=\"actions-col\"\n >\n @if (hasColumnPicker()) {\n <button\n type=\"button\"\n class=\"col-picker-btn\"\n aria-haspopup=\"dialog\"\n aria-label=\"Choose columns\"\n [attr.aria-expanded]=\"columnPickerOpened()\"\n (click)=\"onColumnPickerClick($event)\"\n >\n <ds-icon\n name=\"grid\"\n [size]=\"14\"\n />\n </button>\n } @else {\n <span class=\"visually-hidden\">\n Actions\n </span>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Matches what the scrim covers, which is everything below the header:\n a row keeps its tabindex and its Enter handler otherwise, so a keyboard\n user could open a row whose data is mid-replacement while the pointer\n was stopped by the scrim. The header stays live on purpose — re-sorting\n is what puts the scrim up in the first place. -->\n <tbody [attr.inert]=\"isOverlayLoading() ? '' : null\">\n @if (isSkeletonLoading()) {\n @for (_ of skeletonArray(); track $index; let rowIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: rowIndex }\"\n >\n </ng-container>\n }\n } @else if (showsEmptyRow()) {\n <tr>\n <td\n class=\"empty\"\n [attr.colspan]=\"expandedColspan()\"\n >\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\">\n </ng-container>\n } @else {\n <ng-content select=\"[empty]\"></ng-content>\n }\n </td>\n </tr>\n } @else {\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padTop\"\n >\n </tr>\n }\n\n @for (slot of rowSlots(); track slot.index) {\n @if (slot.row; as row) {\n <tr\n [class.selected]=\"isSelected(row)\"\n [class.expanded]=\"isExpanded(row)\"\n [class.clickable]=\"rowInteractive()\"\n [class.stripe]=\"isStriped(slot.index)\"\n [class.active]=\"rowKey(row) === activeRowId()\"\n [attr.aria-current]=\"\n rowKey(row) === activeRowId() ? 'true' : null\n \"\n [attr.tabindex]=\"rowInteractive() ? 0 : null\"\n [attr.aria-label]=\"rowInteractive() ? rowAriaLabel(row) : null\"\n (mousedown)=\"onRowMousedown()\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowKey(row, $event)\"\n (keydown.space)=\"onRowKey(row, $event)\"\n >\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"'Select ' + rowAriaLabel(row)\"\n [checked]=\"isSelected(row)\"\n (change)=\"onToggleRow(row, $event)\"\n (click)=\"$event.stopPropagation()\"\n />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\"\n >\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"\n isExpanded(row) ? 'Collapse row' : 'Expand row'\n \"\n (click)=\"onToggleExpand(row, $event)\"\n >\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"isExpanded(row)\"\n [size]=\"16\"\n />\n </button>\n </td>\n }\n\n @for (\n col of visibleColumns();\n track col.key;\n let first = $first\n ) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.editable-cell]=\"col.editable\"\n [class.interactive-cell]=\"col.interactive\"\n [class.fit-content]=\"fitsContent(col)\"\n (dblclick)=\"startEdit(row, col, $event)\"\n >\n @if (isEditing(row, col)) {\n <input\n #editInput\n type=\"text\"\n class=\"cell-edit\"\n [value]=\"editDraft()\"\n (input)=\"onEditInput($event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.enter)=\"commitEdit(row, col)\"\n (keydown.escape)=\"cancelEdit()\"\n (blur)=\"commitEdit(row, col)\"\n />\n } @else if (cellTemplate(col); as tpl) {\n @if (col.truncate) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- same pointer-only enhancement as the plain truncate branch below; the value stays in the DOM for AT -->\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\"\n [attr.title]=\"cellValue(row, col)\"\n (click)=\"onCellClipClick(row, col, $event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\"\n >\n </ng-container>\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\"\n >\n </ng-container>\n }\n } @else if (col.truncate) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- pointer-only enhancement: the clip is visual (CSS ellipsis), keyboard/AT users already get the full DOM text + title; a tab stop per cell would wreck keyboard traversal -->\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\"\n [attr.title]=\"cellValue(row, col)\"\n (click)=\"onCellClipClick(row, col, $event)\"\n >\n @if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </span>\n } @else if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\">\n @if (hasRowActions() && hasActionsFor(row)) {\n <button\n type=\"button\"\n class=\"row-actions-btn\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isMenuOpenFor(row)\"\n [attr.aria-label]=\"'Actions for ' + rowAriaLabel(row)\"\n (click)=\"onRowMenuClick(row, $event)\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\"\n >\n <ds-icon\n name=\"moreV\"\n [size]=\"16\"\n />\n </button>\n }\n </td>\n }\n </tr>\n\n @if (\n expandableRows() &&\n isExpanded(row) &&\n rowExpandTemplate() &&\n !virtualizing()\n ) {\n <tr class=\"expand-panel-row\">\n <td\n class=\"expand-panel-cell\"\n [attr.colspan]=\"expandedColspan()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"rowExpandTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row }\"\n >\n </ng-container>\n </td>\n </tr>\n }\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index }\"\n >\n </ng-container>\n }\n }\n\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padBottom\"\n >\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n</ds-loading-overlay>\n\n@if (stickyScrollbarResolved()) {\n <div\n #hscrollProxy\n class=\"hscroll-proxy\"\n aria-hidden=\"true\"\n [class.hscroll-hidden]=\"!hscrollNeeded()\"\n >\n <div\n class=\"hscroll-spacer\"\n [style.width.px]=\"hscrollContentWidth()\"\n >\n </div>\n </div>\n}\n\n@if (pageSize(); as size) {\n <div class=\"pagination-footer\">\n <ds-pagination\n [total]=\"total() ?? filteredData().length\"\n [pageSize]=\"size\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSize]=\"showPageSize()\"\n [showLabel]=\"showLabel()\"\n [(currentPage)]=\"page\"\n (pageSizeChange)=\"pageSize.set($event)\"\n />\n </div>\n}\n\n@if (hasTruncate()) {\n <ds-popover #cellTextPopover>\n <div class=\"cell-text-pop\">\n {{ cellPopoverText() }}\n </div>\n </ds-popover>\n}\n\n@if (filterColumn()) {\n <ds-popover\n #columnFilterPopover\n align=\"start\"\n panelRole=\"dialog\"\n panelLabel=\"Filter values\"\n >\n @if (headerFilterFor(filterColumn()!); as projected) {\n <div class=\"col-filter col-filter-custom\">\n <ng-container\n [ngTemplateOutlet]=\"projected.template\"\n [ngTemplateOutletContext]=\"headerFilterContext(filterColumn()!)\"\n />\n </div>\n } @else {\n <div class=\"col-filter\">\n <input\n type=\"text\"\n class=\"col-filter-search\"\n placeholder=\"Search…\"\n [value]=\"filterSearch()\"\n (input)=\"onFilterSearch($event)\"\n (click)=\"$event.stopPropagation()\"\n />\n\n <div class=\"col-filter-list\">\n @for (value of filterValues(); track value) {\n <label class=\"col-filter-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isFilterValueChecked(value)\"\n (change)=\"toggleFilterValue(value)\"\n />\n {{ value || '(empty)' }}\n </label>\n } @empty {\n <div class=\"col-filter-empty\">\n No matches\n </div>\n }\n </div>\n\n <div class=\"col-filter-footer\">\n <span class=\"col-filter-count\">\n {{ filterSelectedCount() }} selected\n </span>\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"clearColumnFilter()\"\n >\n Clear\n </button>\n </div>\n </div>\n }\n </ds-popover>\n}\n\n@if (hasColumnPicker()) {\n <ds-popover\n #columnPickerPopover\n align=\"end\"\n panelRole=\"dialog\"\n panelLabel=\"Column visibility\"\n >\n <ng-container [ngTemplateOutlet]=\"columnPanel\"></ng-container>\n </ds-popover>\n\n <ds-bottom-sheet\n title=\"Columns\"\n [(open)]=\"columnSheetOpen\"\n >\n <ng-container [ngTemplateOutlet]=\"columnPanel\"></ng-container>\n </ds-bottom-sheet>\n\n <ng-template #columnPanel>\n <div\n class=\"col-picker\"\n cdkDropList\n (cdkDropListDropped)=\"onColumnDrop($event)\"\n >\n @for (\n col of orderedColumns();\n track col.key;\n let first = $first;\n let last = $last\n ) {\n <div\n class=\"col-picker-row\"\n cdkDrag\n [cdkDragDisabled]=\"!reorderableColumns()\"\n >\n @if (reorderableColumns()) {\n <span\n class=\"col-drag\"\n cdkDragHandle\n aria-hidden=\"true\"\n >\n <ds-icon\n name=\"drag\"\n [size]=\"14\"\n />\n </span>\n }\n\n <label class=\"col-picker-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isColumnVisible(col)\"\n [disabled]=\"!col.hideable || isColumnLocked(col)\"\n (change)=\"toggleColumn(col)\"\n />\n {{ col.label }}\n </label>\n\n @if (resizableColumns()) {\n <span class=\"col-width\">\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"'Narrow ' + col.label\"\n (click)=\"onColumnWidthStep(col, -resizeStep)\"\n >\n <ds-icon\n name=\"minus\"\n [size]=\"14\"\n />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"'Widen ' + col.label\"\n (click)=\"onColumnWidthStep(col, resizeStep)\"\n >\n <ds-icon\n name=\"plus\"\n [size]=\"14\"\n />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn col-width-auto\"\n [attr.aria-label]=\"'Fit ' + col.label + ' to its content'\"\n (click)=\"onColumnWidthStep(col, 'auto')\"\n >\n Fit\n </button>\n </span>\n }\n\n @if (reorderableColumns()) {\n <span class=\"col-move\">\n <button\n type=\"button\"\n class=\"col-move-btn\"\n aria-label=\"Move up\"\n [disabled]=\"first\"\n (click)=\"moveColumn(col, -1)\"\n >\n <ds-icon\n name=\"chevronUp\"\n [size]=\"14\"\n />\n </button>\n\n <button\n type=\"button\"\n class=\"col-move-btn\"\n aria-label=\"Move down\"\n [disabled]=\"last\"\n (click)=\"moveColumn(col, 1)\"\n >\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\"\n />\n </button>\n </span>\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"resetColumns()\"\n >\n Reset to default\n </button>\n </div>\n </ng-template>\n}\n\n@if (hasRowActions()) {\n <ds-popover\n #rowMenuPopover\n align=\"end\"\n >\n <ds-menu>\n @for (action of visibleRowActions(); track action.id) {\n <ds-menu-item\n [icon]=\"action.icon ?? null\"\n [error]=\"action.error ?? false\"\n [disabled]=\"isActionDisabled(action)\"\n [description]=\"actionReason(action)\"\n (pressed)=\"onRowAction(action)\"\n >\n {{ action.label }}\n </ds-menu-item>\n }\n </ds-menu>\n </ds-popover>\n}\n\n@if (selectable() && someSelected()) {\n <div class=\"bulk-bar\">\n <span class=\"count\">\n {{ selectedIds().size }} selected\n </span>\n\n <span class=\"sep\"></span>\n\n <ng-content select=\"[bulk-actions]\"></ng-content>\n </div>\n}\n\n<!-- One skeleton row, shared by loading=\"skeleton\" and the gaps a lazy\n window has not filled yet. `$implicit` is the row's index: skeletonWidth\n varies the bar lengths from it, so a block of them does not read as a grid. -->\n<ng-template\n #skeletonRow\n let-rowIndex\n>\n <tr>\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <ds-skeleton\n width=\"14px\"\n height=\"14px\"\n [inline]=\"true\"\n />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\"\n >\n </td>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n >\n <ds-skeleton\n height=\"14px\"\n [width]=\"skeletonWidth(col, rowIndex)\"\n [inline]=\"true\"\n />\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\"></td>\n }\n </tr>\n</ng-template>\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { nextControlId } from '../field-ids';\nimport type {\n DsPasswordRule,\n DsPasswordRuleState,\n} from './password-rules.types';\n\ninterface RuleRow {\n readonly label: string;\n readonly state: DsPasswordRuleState;\n readonly icon: IconName;\n readonly announced: string;\n}\n\n// Screen-reader wording per state. The glyph is a decorative SVG with no\n// accessible name, so without these a screen reader hears the rule text and\n// nothing about whether it passed — the state would be conveyed by colour and\n// shape only.\nconst ANNOUNCED: Record<DsPasswordRuleState, string> = {\n pending: 'not yet met',\n met: 'met',\n failed: 'not met',\n};\n\n/**\n * Passes when every rule does. Exported separately so a form can gate its submit\n * from a validator without reaching for the component instance.\n */\nexport function passwordRulesMet(\n value: string,\n rules: readonly DsPasswordRule[],\n): boolean {\n return rules.length > 0 && rules.every((rule) => rule.test(value));\n}\n\n/**\n * Live checklist under a \"new password\" field.\n *\n * The consumer keeps the POLICY — each rule carries its own `test`, which has to\n * mirror the server, or the checklist is a lie — and this owns the rendering: the\n * tri-state glyph, the met and failed colours, the type scale. One consumer had\n * written it twice and the copies had already drifted (different labels for the\n * same rule, a different order, different state classes), which is why it is here.\n *\n * ```html\n * <ds-input\n * type=\"password\"\n * [attr.aria-describedby]=\"rules.listId\"\n * [(value)]=\"password\"\n * />\n * <ds-password-rules\n * #rules\n * [value]=\"password()\"\n * [rules]=\"passwordRules\"\n * [showUnmet]=\"submitted()\"\n * />\n * ```\n */\n@Component({\n selector: 'ds-password-rules',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './password-rules.component.html',\n styleUrl: './password-rules.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordRulesComponent {\n /** The password being typed. */\n readonly value = input<string>('');\n /** The rule set, in the order it should read. */\n readonly rules = input<readonly DsPasswordRule[]>([]);\n /**\n * Whether an unmet rule may read as FAILED. Bind it to \"the user has tried to\n * submit\": before that an unmet rule is merely pending, because marking a\n * half-typed password with errors scolds someone who is still typing.\n */\n readonly showUnmet = input(false, { transform: booleanAttribute });\n /** Lay the rows out in two columns — for a checklist beside a wide form. */\n readonly columns = input<1 | 2>(1);\n\n /**\n * Id put on the rule list, for the field's `aria-describedby`. Defaults to a\n * generated one; set it explicitly and both sides can name the same string,\n * which avoids threading a template ref between two siblings.\n */\n readonly listId = input<string>(nextControlId('ds-password-rules'));\n\n protected readonly rows = computed<readonly RuleRow[]>(() => {\n const value = this.value();\n const showUnmet = this.showUnmet();\n\n return this.rules().map((rule) => {\n const met = rule.test(value);\n const state: DsPasswordRuleState = met\n ? 'met'\n : showUnmet\n ? 'failed'\n : 'pending';\n const icon: IconName =\n state === 'met' ? 'check' : state === 'failed' ? 'x' : 'circle';\n\n return { label: rule.label, state, icon, announced: ANNOUNCED[state] };\n });\n });\n\n /** How many rules pass — for a host that wants to gate its own submit. */\n readonly metCount = computed(\n () => this.rows().filter((row) => row.state === 'met').length,\n );\n\n /** True when every rule passes. */\n readonly allMet = computed(() =>\n passwordRulesMet(this.value(), this.rules()),\n );\n}\n","<!-- role=\"list\" on the <ul> itself: `list-style: none` plus a flex/grid display\n strips list semantics in WebKit, so the native role cannot be relied on.\n aria-live=\"polite\" so a rule turning met is announced as the reader types,\n without interrupting them mid-word. -->\n<ul\n role=\"list\"\n aria-live=\"polite\"\n [id]=\"listId()\"\n [class]=\"'rules cols-' + columns()\"\n>\n @for (row of rows(); track row.label) {\n <li class=\"rule {{ row.state }}\">\n <ds-icon\n [name]=\"row.icon\"\n [size]=\"14\"\n />\n\n <span class=\"label\">\n {{ row.label }}\n </span>\n\n <span class=\"visually-hidden\">\n — {{ row.announced }}\n </span>\n </li>\n }\n</ul>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\n\n/** A single calendar day cell — the building block of `<ds-date-picker>`'s grid,\n * also usable standalone (e.g. a state showcase). Renders a focusable\n * `<button class=\"day\">` whose state classes are driven by inputs. The host is\n * `display: contents` so the inner button is the grid item, and the date-picker\n * can still focus a specific day via `[data-day]` (roving tabindex). */\n@Component({\n selector: 'ds-calendar-day',\n standalone: true,\n templateUrl: './calendar-day.component.html',\n styleUrl: './calendar-day.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'gridcell',\n '[attr.aria-selected]':\n \"selected() || rangeStart() || rangeEnd() ? 'true' : null\",\n },\n})\nexport class CalendarDayComponent {\n /** The chosen day in single mode, or an end of the range in range mode. Drives `aria-selected`. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** A day BETWEEN the two ends of a range — tinted, but not itself selected. */\n readonly inRange = input(false, { transform: booleanAttribute });\n /** First day of a range: rounds the leading corners and counts as selected. */\n readonly rangeStart = input(false, { transform: booleanAttribute });\n /** Last day of a range: rounds the trailing corners and counts as selected. */\n readonly rangeEnd = input(false, { transform: booleanAttribute });\n /** Marks the current date. Independent of selection — today can be unselected. */\n readonly today = input(false, { transform: booleanAttribute });\n /** Day from an adjacent month — dimmed. */\n readonly muted = input(false, { transform: booleanAttribute });\n /** Outside `minDate`/`maxDate` or rejected by `disabledDate` — dimmed and not clickable. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Stable key the date-picker uses to focus a specific day (roving tabindex). */\n readonly dataDay = input<string | null>(null);\n /** Roving tabindex: exactly one day in the grid carries 0, the rest -1, so Tab enters the\n * grid once and arrows move within it. */\n readonly tabIndex = input<number>(-1);\n /** Full spoken date (\"12 March 2026\"), since the cell text is only the day number. */\n readonly ariaLabel = input<string | null>(null);\n\n /** Click on an enabled day. Carries the event so the host can read modifier keys. */\n readonly daySelected = output<MouseEvent>();\n /** Key press on the focused day — the grid owns arrow/Home/End navigation, not the cell. */\n readonly dayKeydown = output<KeyboardEvent>();\n\n protected readonly classes = computed(() => {\n const parts = ['day'];\n if (this.muted()) {\n parts.push('muted');\n }\n if (this.today()) {\n parts.push('today');\n }\n if (this.inRange()) {\n parts.push('in-range');\n }\n if (this.rangeStart()) {\n parts.push('range-start');\n }\n if (this.rangeEnd()) {\n parts.push('range-end');\n }\n if (this.selected()) {\n parts.push('selected');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<button\n type=\"button\"\n [class]=\"classes()\"\n [attr.data-day]=\"dataDay()\"\n [attr.tabindex]=\"tabIndex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-current]=\"today() ? 'date' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"daySelected.emit($event)\"\n (keydown)=\"dayKeydown.emit($event)\"\n>\n <ng-content></ng-content>\n</button>\n","export interface DateFormatSpec {\n order: ('D' | 'M' | 'Y')[];\n separator: string;\n mask: string;\n segments: { type: 'D' | 'M' | 'Y'; length: number }[];\n}\n\nconst SEGMENT_LENGTH: Record<'D' | 'M' | 'Y', number> = { D: 2, M: 2, Y: 4 };\nconst TOKEN: Record<'D' | 'M' | 'Y', string> = { D: 'DD', M: 'MM', Y: 'YYYY' };\n// 2023-11-22: day, month and year are all distinct values.\nconst REFERENCE_DATE = new Date(2023, 10, 22);\n\nfunction buildSpec(\n order: ('D' | 'M' | 'Y')[],\n separator: string,\n): DateFormatSpec {\n return {\n order,\n separator,\n mask: order.map((token) => TOKEN[token]).join(separator),\n segments: order.map((token) => ({\n type: token,\n length: SEGMENT_LENGTH[token],\n })),\n };\n}\n\nfunction parseFormatTokens(format: string): DateFormatSpec {\n const separatorMatch = format.match(/[^A-Za-z]/);\n const separator = separatorMatch ? separatorMatch[0] : '/';\n const order: ('D' | 'M' | 'Y')[] = [];\n for (const character of format.toUpperCase()) {\n if (\n (character === 'D' || character === 'M' || character === 'Y') &&\n order[order.length - 1] !== character\n ) {\n order.push(character);\n }\n }\n\n return buildSpec(order.length === 3 ? order : ['M', 'D', 'Y'], separator);\n}\n\nexport function resolveDateFormat(\n locale: string,\n explicit?: string | null,\n): DateFormatSpec {\n if (explicit) {\n return parseFormatTokens(explicit);\n }\n const parts = new Intl.DateTimeFormat(locale, {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n }).formatToParts(REFERENCE_DATE);\n const order: ('D' | 'M' | 'Y')[] = [];\n let separator = '/';\n let sawSeparator = false;\n for (const part of parts) {\n if (part.type === 'day') {\n order.push('D');\n } else if (part.type === 'month') {\n order.push('M');\n } else if (part.type === 'year') {\n order.push('Y');\n } else if (part.type === 'literal' && !sawSeparator && part.value.trim()) {\n separator = part.value.trim().slice(0, 1);\n sawSeparator = true;\n }\n }\n if (order.length !== 3) {\n return parseFormatTokens('MM/DD/YYYY');\n }\n\n return buildSpec(order, separator);\n}\n\nexport function formatDate(date: Date | null, spec: DateFormatSpec): string {\n if (!date) {\n return '';\n }\n const values: Record<'D' | 'M' | 'Y', string> = {\n D: String(date.getDate()).padStart(2, '0'),\n M: String(date.getMonth() + 1).padStart(2, '0'),\n Y: String(date.getFullYear()).padStart(4, '0'),\n };\n\n return spec.order.map((token) => values[token]).join(spec.separator);\n}\n\n/** Build a date from three per-slot digit strings; null if any slot isn't full-width or invalid. */\nfunction parseSegments(segments: string[], spec: DateFormatSpec): Date | null {\n const values: Record<'D' | 'M' | 'Y', number> = { D: 1, M: 1, Y: 2000 };\n for (let index = 0; index < spec.segments.length; index++) {\n const segment = spec.segments[index];\n const digits = segments[index] ?? '';\n if (digits.length !== segment.length) {\n return null;\n }\n values[segment.type] = parseInt(digits, 10);\n }\n const { D: day, M: month, Y: year } = values;\n if (month < 1 || month > 12 || day < 1 || day > 31) {\n return null;\n }\n const date = new Date(year, month - 1, day);\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null;\n }\n\n return date;\n}\n\nexport function parseDate(text: string, spec: DateFormatSpec): Date | null {\n return parseSegments(parseFieldText(text, singleFieldLayout(spec)), spec);\n}\n\n/** Separator between the two dates of a range, in the field and its placeholder. */\nexport const RANGE_SEPARATOR = ' – ';\n\n/** Combined placeholder/mask for a range field, e.g. \"MM/DD/YYYY – MM/DD/YYYY\". */\nexport function rangeMask(spec: DateFormatSpec): string {\n return `${spec.mask}${RANGE_SEPARATOR}${spec.mask}`;\n}\n\n/** Render a range value to the combined field string. */\nexport function formatRange(\n range: [Date | null, Date | null] | null,\n spec: DateFormatSpec,\n): string {\n const [start, end] = range ?? [null, null];\n if (!start && !end) {\n return '';\n }\n const startText = formatDate(start, spec);\n if (start && end) {\n return `${startText}${RANGE_SEPARATOR}${formatDate(end, spec)}`;\n }\n\n return start ? `${startText}${RANGE_SEPARATOR}` : '';\n}\n\n/** Parse a combined range field string into [start, end] (either may be null). */\nexport function parseDateRange(\n text: string,\n spec: DateFormatSpec,\n): [Date | null, Date | null] {\n const slots = parseFieldText(text, rangeFieldLayout(spec));\n const perDate = spec.segments.length;\n\n return [\n parseSegments(slots.slice(0, perDate), spec),\n parseSegments(slots.slice(perDate, perDate * 2), spec),\n ];\n}\n\n// Each field is fixed-width digit slots (MM/DD/YYYY) joined by literals; edits\n// stay inside the caret's slot and never shift digits across a literal, so\n// fixing one segment can't corrupt its neighbours.\n\n/** One editable digit slot in the masked field. */\nexport interface FieldSlot {\n type: 'D' | 'M' | 'Y';\n maxLength: number;\n}\n\n/** Field layout: the slots and the literal shown after each (except the last). */\nexport interface FieldLayout {\n slots: FieldSlot[];\n literals: string[];\n}\n\nexport function singleFieldLayout(spec: DateFormatSpec): FieldLayout {\n return {\n slots: spec.segments.map((segment) => ({\n type: segment.type,\n maxLength: segment.length,\n })),\n literals: spec.segments.slice(1).map(() => spec.separator),\n };\n}\n\nexport function rangeFieldLayout(spec: DateFormatSpec): FieldLayout {\n const single = singleFieldLayout(spec);\n\n return {\n slots: [...single.slots, ...single.slots],\n literals: [...single.literals, RANGE_SEPARATOR, ...single.literals],\n };\n}\n\n/** Split a fixed-width renderFieldValue output into per-slot digits, read at\n * each slot's fixed position — every slot is maxLength wide and every literal\n * always present, so a `_` pad or any stray char is simply dropped. */\nexport function parseFieldText(text: string, layout: FieldLayout): string[] {\n const segments: string[] = [];\n let position = 0;\n for (let index = 0; index < layout.slots.length; index++) {\n const raw = text.slice(position, position + layout.slots[index].maxLength);\n segments.push(raw.replace(/\\D/g, ''));\n position += layout.slots[index].maxLength;\n if (index < layout.slots.length - 1) {\n position += layout.literals[index].length;\n }\n }\n\n return segments;\n}\n\nconst PLACEHOLDER_CHAR = '_';\n\nexport interface DisplayPart {\n text: string;\n muted: boolean;\n}\n\nfunction slotPlaceholder(slot: FieldSlot): string {\n return slot.type === 'Y' ? 'YYYY' : slot.type === 'M' ? 'MM' : 'DD';\n}\n\n/** Fixed-width input value: every slot padded to maxLength with `_`, all literals present. */\nexport function renderFieldValue(\n segments: string[],\n layout: FieldLayout,\n): string {\n let out = '';\n for (let index = 0; index < layout.slots.length; index++) {\n const slot = layout.slots[index];\n out += segments[index].padEnd(slot.maxLength, PLACEHOLDER_CHAR);\n if (index < layout.slots.length - 1) {\n out += layout.literals[index];\n }\n }\n\n return out;\n}\n\n/** Ordered runs for the overlay: digits (not muted), placeholders (muted), literals (not muted).\n * Untouched slot → its format letters; partial slot → digits + `_` for the missing positions. */\nexport function displayParts(\n segments: string[],\n layout: FieldLayout,\n): DisplayPart[] {\n const parts: DisplayPart[] = [];\n for (let index = 0; index < layout.slots.length; index++) {\n const slot = layout.slots[index];\n const digits = segments[index];\n if (digits.length === 0) {\n parts.push({ text: slotPlaceholder(slot), muted: true });\n } else {\n parts.push({ text: digits, muted: false });\n if (digits.length < slot.maxLength) {\n parts.push({\n text: PLACEHOLDER_CHAR.repeat(slot.maxLength - digits.length),\n muted: true,\n });\n }\n }\n if (index < layout.slots.length - 1) {\n parts.push({ text: layout.literals[index], muted: false });\n }\n }\n\n return parts;\n}\n\n/** Char offset where slot `index` begins in the fixed-width value — every\n * slot is maxLength wide and every literal always present. */\nfunction slotStart(layout: FieldLayout, index: number): number {\n let position = 0;\n for (let slot = 0; slot < index; slot++) {\n position += layout.slots[slot].maxLength + layout.literals[slot].length;\n }\n\n return position;\n}\n\nexport function slotToCaret(\n layout: FieldLayout,\n slot: number,\n offset: number,\n): number {\n return slotStart(layout, slot) + offset;\n}\n\n/** Map a caret char offset to its slot; a caret inside a literal snaps forward. */\nexport function caretToSlot(\n layout: FieldLayout,\n caret: number,\n): { slot: number; offset: number } {\n let position = 0;\n for (let index = 0; index < layout.slots.length; index++) {\n const width = layout.slots[index].maxLength;\n if (caret <= position + width) {\n return { slot: index, offset: Math.max(0, caret - position) };\n }\n position += width;\n const literalLength =\n index < layout.literals.length ? layout.literals[index].length : 0;\n if (caret < position + literalLength) {\n return { slot: index + 1, offset: 0 };\n }\n position += literalLength;\n }\n const last = layout.slots.length - 1;\n\n return { slot: last, offset: layout.slots[last].maxLength };\n}\n\ninterface SlotEdit {\n segments: string[];\n slot: number;\n offset: number;\n}\n\n/** After typing, hop to the next slot once the current one is full. */\nfunction advanceAfterType(\n segments: string[],\n layout: FieldLayout,\n slot: number,\n offset: number,\n): SlotEdit {\n if (\n offset >= layout.slots[slot].maxLength &&\n slot < layout.slots.length - 1\n ) {\n return { segments, slot: slot + 1, offset: 0 };\n }\n\n return { segments, slot, offset };\n}\n\n/** Type a digit into the caret's slot: overtype under the caret, else append;\n * a full slot spills the digit into the next one instead of shifting. */\nexport function editType(\n segments: string[],\n layout: FieldLayout,\n slot: number,\n offset: number,\n digit: string,\n): SlotEdit {\n const next = segments.slice();\n const maxLength = layout.slots[slot].maxLength;\n const current = next[slot];\n if (offset < current.length) {\n next[slot] = current.slice(0, offset) + digit + current.slice(offset + 1);\n\n return advanceAfterType(next, layout, slot, offset + 1);\n }\n if (current.length < maxLength) {\n next[slot] = current + digit;\n\n return advanceAfterType(next, layout, slot, current.length + 1);\n }\n if (slot < layout.slots.length - 1) {\n return editType(next, layout, slot + 1, 0, digit);\n }\n\n return { segments: next, slot, offset };\n}\n\n/** Backspace: drop the digit left of the caret within its slot, else the last\n * digit of the nearest earlier non-empty slot. Null when nothing precedes it. */\nexport function editBackspace(\n segments: string[],\n layout: FieldLayout,\n slot: number,\n offset: number,\n): SlotEdit | null {\n const next = segments.slice();\n if (offset > 0) {\n next[slot] = next[slot].slice(0, offset - 1) + next[slot].slice(offset);\n\n return { segments: next, slot, offset: offset - 1 };\n }\n for (let index = slot - 1; index >= 0; index--) {\n if (next[index].length > 0) {\n next[index] = next[index].slice(0, -1);\n\n return { segments: next, slot: index, offset: next[index].length };\n }\n }\n\n return null;\n}\n\n/** Delete: drop the digit at the caret within its slot, else the first digit of\n * the nearest later non-empty slot. Null when nothing follows it. */\nexport function editDelete(\n segments: string[],\n layout: FieldLayout,\n slot: number,\n offset: number,\n): SlotEdit | null {\n const next = segments.slice();\n if (offset < next[slot].length) {\n next[slot] = next[slot].slice(0, offset) + next[slot].slice(offset + 1);\n\n return { segments: next, slot, offset };\n }\n for (let index = slot + 1; index < next.length; index++) {\n if (next[index].length > 0) {\n next[index] = next[index].slice(1);\n\n return { segments: next, slot, offset };\n }\n }\n\n return null;\n}\n\nexport function weekdayLabels(\n locale: string,\n firstDayOfWeek: number,\n style: 'short' | 'long' = 'short',\n): string[] {\n const formatter = new Intl.DateTimeFormat(locale, { weekday: style });\n // 2023-01-01 is a Sunday (getDay() === 0).\n const sunday = new Date(2023, 0, 1);\n const labels: string[] = [];\n for (let offset = 0; offset < 7; offset++) {\n const dayIndex = (firstDayOfWeek + offset) % 7;\n const day = new Date(sunday);\n day.setDate(sunday.getDate() + dayIndex);\n labels.push(formatter.format(day));\n }\n\n return labels;\n}\n\nexport function monthLabels(locale: string): string[] {\n const formatter = new Intl.DateTimeFormat(locale, { month: 'long' });\n\n return Array.from({ length: 12 }, (_unused, month) =>\n formatter.format(new Date(2023, month, 1)),\n );\n}\n\nexport function fullDateLabel(date: Date, locale: string): string {\n return date.toLocaleDateString(locale, {\n weekday: 'long',\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n });\n}\n","import {\n Component,\n ElementRef,\n Injector,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { IconComponent } from '../../icons/icon.component';\nimport { CalendarDayComponent } from '../calendar-day/calendar-day.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { DS_CONFIG } from '../../core/ds-config';\nimport {\n type DateFormatSpec,\n type DisplayPart,\n type FieldLayout,\n caretToSlot,\n displayParts,\n editBackspace,\n editDelete,\n editType,\n formatDate,\n formatRange,\n fullDateLabel,\n monthLabels,\n parseDate,\n parseDateRange,\n parseFieldText,\n rangeFieldLayout,\n rangeMask,\n renderFieldValue,\n resolveDateFormat,\n singleFieldLayout,\n slotToCaret,\n weekdayLabels,\n} from './date.util';\nimport type {\n DatePickerMode,\n DatePickerPreset,\n RangeValue,\n} from './date-picker.types';\nimport type { DsSize } from '../../core/size';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\nlet nextId = 0;\nconst YEAR_PAGE_SIZE = 12;\n\ninterface DayCell {\n date: Date;\n day: number;\n inMonth: boolean;\n isToday: boolean;\n inRange: boolean;\n isRangeStart: boolean;\n isRangeEnd: boolean;\n isSelected: boolean;\n isDisabled: boolean;\n}\n\n@Component({\n selector: 'ds-date-picker',\n standalone: true,\n imports: [\n IconComponent,\n CalendarDayComponent,\n FieldMessageComponent,\n A11yModule,\n ],\n templateUrl: './date-picker.component.html',\n styleUrl: './date-picker.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DatePickerComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n '[class.full-width]': 'fullWidth()',\n },\n})\nexport class DatePickerComponent\n extends DsControlValueAccessor<Date | RangeValue | null>\n implements OnDestroy\n{\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n constructor() {\n super();\n effect(() => {\n const spec = this.formatSpec();\n const value = this.value();\n const layout = this.layout();\n if (this.editing) {\n return;\n }\n // Every typing path holds `editing` while it runs, so reaching here means the\n // value did NOT come from the keyboard and a leftover typing error no longer\n // describes what the field is about to show.\n this.typedInvalid.set(false);\n this.rangeInvalid.set(false);\n if (this.mode() === 'single') {\n const date = value as Date | null;\n this.inputText.set(date ? formatDate(date, spec) : '');\n\n return;\n }\n const single = singleFieldLayout(spec);\n const [start, end] = (value as RangeValue | null) ?? [null, null];\n const startSegments = start\n ? parseFieldText(formatDate(start, spec), single)\n : single.slots.map(() => '');\n const endSegments = end\n ? parseFieldText(formatDate(end, spec), single)\n : single.slots.map(() => '');\n this.rangeText.set(\n this.toFieldText([...startSegments, ...endSegments], layout),\n );\n });\n }\n\n /** Field text for the DOM: fixed-width `_`-padded once any digit exists,\n * else '' (so an untouched field is genuinely empty — no error on blur,\n * nothing for AT to read out). */\n private toFieldText(segments: string[], layout: FieldLayout): string {\n return segments.some((segment) => segment.length > 0)\n ? renderFieldValue(segments, layout)\n : '';\n }\n\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly config = inject(DS_CONFIG);\n private readonly host = inject(ElementRef<HTMLElement>);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-date-picker { --ds-date-picker-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-date-picker-bg-color',\n '--ds-date-picker-border',\n '--ds-date-picker-shadow',\n '--ds-date-picker-focus-shadow',\n '--ds-date-picker-day-hover-bg-color',\n '--ds-date-picker-day-today-label-color',\n '--ds-date-picker-day-selected-bg-color',\n '--ds-date-picker-day-selected-bg-color-hover',\n '--ds-date-picker-day-selected-label-color',\n '--ds-date-picker-day-range-bg-color',\n '--ds-date-picker-day-range-label-color',\n '--ds-date-picker-day-disabled-label-color',\n '--ds-date-picker-day-label-color',\n '--ds-date-picker-day-muted-label-color',\n '--ds-date-picker-weekday-color',\n '--ds-date-picker-header-label-color',\n '--ds-date-picker-nav-icon-color',\n '--ds-date-picker-width',\n '--ds-date-picker-panel-radius',\n ];\n\n /** Selection mode — single date or start/end range. */\n readonly mode = input<DatePickerMode>('single');\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Stretch the trigger to fill its container instead of hugging the mask\n * width — opt in when the field shares a grid/flex track with inputs. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n /** Selected date (single) or `[start, end]` (range), two-way bound. */\n readonly value = model<Date | RangeValue | null>(null);\n /** Accessible-name fallback only — the mask fills the visible placeholder, not this. */\n readonly placeholder = input<string>('Select date');\n /** Field label shown above the trigger. */\n readonly label = input<string>('');\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker beside the label — ignored when `required` is set. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Disables the picker and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Accessible name when no visible `label` is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Lower bound for the year dropdown in the calendar header. */\n readonly minYear = input<number>(new Date().getFullYear() - 100);\n /** Upper bound for the year dropdown in the calendar header. */\n readonly maxYear = input<number>(new Date().getFullYear() + 10);\n /** Earliest selectable date (inclusive). Days before this are disabled. */\n readonly minDate = input<Date | null>(null);\n /** Latest selectable date (inclusive). Days after this are disabled. */\n readonly maxDate = input<Date | null>(null);\n /** Predicate — return true to disable an individual day. */\n readonly disabledDate = input<((date: Date) => boolean) | null>(null);\n /** Quick-pick shortcuts shown as a button column inside the calendar panel. */\n readonly presets = input<readonly DatePickerPreset[]>([]);\n /** BCP-47 locale driving month/weekday names and the value format. */\n readonly locale = input<string | null>(null);\n /** Explicit token format e.g. `'MM/DD/YYYY'`; default derived from `locale`. */\n readonly dateFormat = input<string | null>(null);\n /** First weekday column: 0=Sunday … 6=Saturday. Default 1 (Monday). */\n readonly firstDayOfWeek = input<number | null>(null);\n /** Date the calendar opens on when the value is empty (e.g. a Date Of Birth):\n * the panel shows its month and grid focus lands on its exact day.\n * Never written to `value` — selection stays with the user. */\n readonly defaultDate = input<Date | null>(null);\n /** Allow masked manual typing. When false the field is read-only and a date can\n * only be picked from the calendar. */\n readonly allowInput = input(true, { transform: booleanAttribute });\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n // An unparseable date is the picker's OWN error, so it enters the ladder at the\n // error rung rather than replacing the hint. An explicit `error` still wins:\n // the consumer knows something this component cannot.\n private readonly localError = computed(() => {\n const explicit = this.error().trim();\n if (explicit) {\n return explicit;\n }\n if (this.typedInvalid() || this.rangeInvalid()) {\n const mask =\n this.mode() === 'single'\n ? this.formatSpec().mask\n : rangeMask(this.formatSpec());\n\n return `Enter a valid date (${mask})`;\n }\n\n return '';\n });\n private readonly dateInvalid = computed(\n () => this.invalid() || this.typedInvalid() || this.rangeInvalid(),\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.localError,\n errors: this.errors,\n invalid: this.dateInvalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n readonly resolvedLocale = computed(\n () => this.locale() ?? this.config.datePicker?.locale ?? 'en-US',\n );\n protected readonly resolvedFirstDay = computed(\n () => this.firstDayOfWeek() ?? this.config.datePicker?.firstDayOfWeek ?? 1,\n );\n protected readonly formatSpec = computed<DateFormatSpec>(() =>\n resolveDateFormat(\n this.resolvedLocale(),\n this.dateFormat() ?? this.config.datePicker?.dateFormat,\n ),\n );\n protected readonly layout = computed<FieldLayout>(() =>\n this.mode() === 'range'\n ? rangeFieldLayout(this.formatSpec())\n : singleFieldLayout(this.formatSpec()),\n );\n protected readonly monthNames = computed(() =>\n monthLabels(this.resolvedLocale()),\n );\n protected readonly weekdays = computed(() =>\n weekdayLabels(this.resolvedLocale(), this.resolvedFirstDay()),\n );\n protected readonly weekdaysFull = computed(() =>\n weekdayLabels(this.resolvedLocale(), this.resolvedFirstDay(), 'long'),\n );\n protected readonly monthYearLabel = computed(\n () => `${this.monthNames()[this.viewMonthIndex()]} ${this.viewYear()}`,\n );\n\n protected readonly uid = `ds-datepicker-${++nextId}`;\n protected readonly labelId = `${this.uid}-label`;\n protected readonly panelId = `${this.uid}-panel`;\n protected readonly captionId = `${this.uid}-caption`;\n protected readonly isOpen = signal(false);\n /** The day that holds keyboard focus in the open grid (roving tabindex). */\n protected readonly gridFocus = signal<Date | null>(null);\n protected readonly inputText = signal<string>('');\n protected readonly rangeText = signal<string>('');\n protected readonly typedInvalid = signal(false);\n protected readonly rangeInvalid = signal(false);\n // Guards the value→text sync from clobbering the field mid-keystroke.\n private editing = false;\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected dayKey(d: Date): string {\n return `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;\n }\n\n protected isFocusDay(cell: DayCell): boolean {\n const f = this.gridFocus();\n\n return !!f && this.dayKey(f) === this.dayKey(cell.date);\n }\n\n /** Arrow-key roving navigation across the calendar grid (APG date grid). */\n protected onGridKeydown(event: KeyboardEvent, cell: DayCell): void {\n if (this.isDisabled()) {\n return;\n }\n const f = this.gridFocus() ?? cell.date;\n let next: Date | null = null;\n switch (event.key) {\n case 'ArrowLeft':\n next = this.addDays(f, -1);\n break;\n case 'ArrowRight':\n next = this.addDays(f, 1);\n break;\n case 'ArrowUp':\n next = this.addDays(f, -7);\n break;\n case 'ArrowDown':\n next = this.addDays(f, 7);\n break;\n case 'Home':\n next = this.addDays(\n f,\n -((f.getDay() - this.resolvedFirstDay() + 7) % 7),\n );\n break;\n case 'End':\n next = this.addDays(\n f,\n 6 - ((f.getDay() - this.resolvedFirstDay() + 7) % 7),\n );\n break;\n case 'PageUp':\n next = this.addMonths(f, -1);\n break;\n case 'PageDown':\n next = this.addMonths(f, 1);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.selectDay(cell);\n\n return;\n default:\n return;\n }\n event.preventDefault();\n this.gridFocus.set(next);\n this.viewMonth.set(new Date(next.getFullYear(), next.getMonth(), 1));\n afterNextRender(() => this.focusGridDay(), { injector: this.injector });\n }\n\n private addDays(date: Date, days: number): Date {\n const d = new Date(date);\n d.setDate(d.getDate() + days);\n\n return d;\n }\n\n private addMonths(date: Date, months: number): Date {\n const d = new Date(date);\n d.setMonth(d.getMonth() + months);\n\n return d;\n }\n\n private clampToBounds(date: Date): Date {\n const min = this.minDate();\n const max = this.maxDate();\n if (min && date < min) {\n return new Date(min);\n }\n if (max && date > max) {\n return new Date(max);\n }\n\n return date;\n }\n\n private focusGridDay(): void {\n const f = this.gridFocus();\n if (!f || !this.overlayRef) {\n return;\n }\n const element = this.overlayRef.overlayElement.querySelector(\n `[data-day=\"${this.dayKey(f)}\"]`,\n ) as HTMLElement | null;\n element?.focus();\n }\n\n protected dayLabel(cell: DayCell): string {\n return fullDateLabel(cell.date, this.resolvedLocale());\n }\n\n protected readonly triggerClasses = computed(() => {\n const parts = ['trigger'];\n const size = this.sizeResolved();\n if (size !== 'md') {\n parts.push(size);\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n // The indicator cannot be left to :focus-within: opening from the calendar\n // glyph moves focus into the day grid, so the trigger would go dark while\n // its OWN panel is open. A control stays visibly active for as long as it\n // owns an open panel, wherever focus went.\n if (this.isOpen()) {\n parts.push('open');\n }\n\n return parts.join(' ');\n });\n\n protected readonly viewMonth = signal<Date>(new Date());\n protected readonly anchor =\n viewChild.required<ElementRef<HTMLElement>>('anchor');\n protected readonly inputEl =\n viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n private overlayRef: OverlayRef | null = null;\n\n private focusTrigger(): void {\n this.inputEl().nativeElement.focus();\n }\n\n protected readonly fieldText = computed(() =>\n this.mode() === 'single' ? this.inputText() : this.rangeText(),\n );\n protected readonly fieldPlaceholder = computed(() =>\n this.mode() === 'single'\n ? this.formatSpec().mask\n : rangeMask(this.formatSpec()),\n );\n /** `size` attribute so the field hugs its mask width instead of stretching.\n * +1 covers `size` under-counting the mask's wide glyphs (M/D/Y), which\n * otherwise clip the last chars of the longer range mask. The field's\n * `font-family: var(--font-mono)` keeps every glyph equal width, so the\n * width never shifts as you type. */\n protected readonly fieldSize = computed(\n () => this.fieldPlaceholder().length + 1,\n );\n protected readonly displaySlots = computed<DisplayPart[]>(() =>\n displayParts(\n parseFieldText(this.fieldText(), this.layout()),\n this.layout(),\n ),\n );\n\n protected readonly monthMenuOpen = signal(false);\n protected readonly yearMenuOpen = signal(false);\n protected readonly viewMonthIndex = computed(() =>\n this.viewMonth().getMonth(),\n );\n protected readonly viewYear = computed(() => this.viewMonth().getFullYear());\n\n protected readonly yearPageStart = signal<number>(0);\n\n protected readonly yearsOnPage = computed<number[]>(() => {\n const start = this.yearPageStart();\n const max = this.maxYear();\n const list: number[] = [];\n for (\n let year = start;\n year < start + YEAR_PAGE_SIZE && year <= max;\n year++\n ) {\n list.push(year);\n }\n\n return list;\n });\n\n protected readonly yearRangeLabel = computed(() => {\n const page = this.yearsOnPage();\n\n return page.length ? `${page[0]} – ${page[page.length - 1]}` : '';\n });\n\n protected readonly canPrevYearPage = computed(\n () => this.yearPageStart() > this.minYear(),\n );\n protected readonly canNextYearPage = computed(\n () => this.yearPageStart() + YEAR_PAGE_SIZE <= this.maxYear(),\n );\n\n /** Aligns the page so `year` lands on a stable grid boundary measured from minYear. */\n private yearPageStartFor(year: number): number {\n const min = this.minYear();\n\n return min + Math.floor((year - min) / YEAR_PAGE_SIZE) * YEAR_PAGE_SIZE;\n }\n\n protected toggleMonthMenu(event: Event): void {\n event.stopPropagation();\n this.yearMenuOpen.set(false);\n this.monthMenuOpen.update((open) => !open);\n }\n\n protected toggleYearMenu(event: Event): void {\n event.stopPropagation();\n this.monthMenuOpen.set(false);\n this.yearMenuOpen.update((open) => !open);\n if (this.yearMenuOpen()) {\n this.yearPageStart.set(this.yearPageStartFor(this.viewYear()));\n }\n }\n\n protected prevYearPage(event: Event): void {\n event.stopPropagation();\n this.yearPageStart.update((start) =>\n Math.max(this.minYear(), start - YEAR_PAGE_SIZE),\n );\n }\n\n protected nextYearPage(event: Event): void {\n event.stopPropagation();\n this.yearPageStart.update((start) => start + YEAR_PAGE_SIZE);\n }\n\n protected closeMenus(): void {\n this.monthMenuOpen.set(false);\n this.yearMenuOpen.set(false);\n }\n\n protected selectMonth(index: number, event: Event): void {\n event.stopPropagation();\n this.viewMonth.set(new Date(this.viewYear(), index, 1));\n this.monthMenuOpen.set(false);\n }\n\n protected selectYear(year: number, event: Event): void {\n event.stopPropagation();\n this.viewMonth.set(new Date(year, this.viewMonthIndex(), 1));\n this.yearMenuOpen.set(false);\n }\n\n protected isDayDisabled(date: Date): boolean {\n const min = this.minDate();\n const max = this.maxDate();\n const predicate = this.disabledDate();\n if (min) {\n const minStart = new Date(\n min.getFullYear(),\n min.getMonth(),\n min.getDate(),\n );\n if (date < minStart) {\n return true;\n }\n }\n if (max) {\n const maxEnd = new Date(\n max.getFullYear(),\n max.getMonth(),\n max.getDate(),\n 23,\n 59,\n 59,\n 999,\n );\n if (date > maxEnd) {\n return true;\n }\n }\n if (predicate) {\n return predicate(date);\n }\n\n return false;\n }\n\n protected readonly daysGrid = computed<DayCell[]>(() => {\n const view = this.viewMonth();\n const year = view.getFullYear();\n const month = view.getMonth();\n const firstOfMonth = new Date(year, month, 1);\n const gridStart = new Date(firstOfMonth);\n const firstDay = this.resolvedFirstDay();\n gridStart.setDate(\n gridStart.getDate() - ((gridStart.getDay() - firstDay + 7) % 7),\n );\n const cells: DayCell[] = [];\n const today = new Date();\n const todayKey = today.toDateString();\n // Six weeks of seven days, whatever the month: a fixed cell count keeps the\n // panel from changing height as you page through the year.\n for (let i = 0; i < 42; i++) {\n const d = new Date(gridStart);\n d.setDate(d.getDate() + i);\n const inMonth = d.getMonth() === month;\n const isToday = d.toDateString() === todayKey;\n const range = this.getRangeContext(d);\n cells.push({\n date: d,\n day: d.getDate(),\n inMonth,\n isToday,\n inRange: range.inRange,\n isRangeStart: range.isStart,\n isRangeEnd: range.isEnd,\n isSelected: range.isSelected,\n isDisabled: this.isDayDisabled(d),\n });\n }\n\n return cells;\n });\n\n protected readonly weeksGrid = computed<DayCell[][]>(() => {\n const cells = this.daysGrid();\n const weeks: DayCell[][] = [];\n for (let index = 0; index < cells.length; index += 7) {\n weeks.push(cells.slice(index, index + 7));\n }\n\n return weeks;\n });\n\n private getRangeContext(d: Date): {\n inRange: boolean;\n isStart: boolean;\n isEnd: boolean;\n isSelected: boolean;\n } {\n const value = this.value();\n if (this.mode() === 'single') {\n const sel = value as Date | null;\n\n return {\n inRange: false,\n isStart: false,\n isEnd: false,\n isSelected: !!sel && sel.toDateString() === d.toDateString(),\n };\n }\n const r = (value as RangeValue | null) ?? [null, null];\n const a = r[0];\n const b = r[1];\n if (!a) {\n return {\n inRange: false,\n isStart: false,\n isEnd: false,\n isSelected: false,\n };\n }\n if (!b) {\n return {\n inRange: false,\n isStart: a.toDateString() === d.toDateString(),\n isEnd: false,\n isSelected: false,\n };\n }\n const t = d.getTime();\n const aT = a.getTime();\n const bT = b.getTime();\n\n return {\n inRange: t > Math.min(aT, bT) && t < Math.max(aT, bT),\n isStart: t === Math.min(aT, bT),\n isEnd: t === Math.max(aT, bT),\n isSelected: false,\n };\n }\n\n protected open(moveFocusToGrid = true): void {\n if (this.isDisabled() || this.overlayRef) {\n return;\n }\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n this.anchor().nativeElement,\n 'ds-overlay-pane',\n );\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n // The anchor, not the host: a stretched host's empty width must dismiss.\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.anchor().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n // Sync state on EVERY detach, so a stray CDK detach cannot leave a stale\n // `overlayRef` wedging this method's reopen guard.\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n this.overlayRef = null;\n this.isOpen.set(false);\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n this.focusTrigger();\n }\n });\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n this.isOpen.set(true);\n const selected =\n this.mode() === 'single'\n ? (this.value() as Date | null)\n : ((this.value() as RangeValue | null)?.[0] ?? null);\n const focus = this.clampToBounds(\n selected ?? this.defaultDate() ?? new Date(),\n );\n this.gridFocus.set(focus);\n this.viewMonth.set(new Date(focus.getFullYear(), focus.getMonth(), 1));\n if (moveFocusToGrid) {\n afterNextRender(() => this.focusGridDay(), { injector: this.injector });\n }\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n const focusWasInPanel = this.overlayRef\n ? focusIsInside(this.overlayRef)\n : false;\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.isOpen.set(false);\n this.closeMenus();\n this.markTouched();\n // Refocusing the editable field on a coarse pointer would summon the soft\n // keyboard mid-scroll; the readonly field (allowInput=false) never does.\n if (\n focusWasInPanel &&\n (!this.allowInput() || !window.matchMedia('(pointer: coarse)').matches)\n ) {\n this.inputEl().nativeElement.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n /**\n * Also the calendar glyph's handler. A POINTER open must not drag focus into\n * the day grid: the reader did not ask to leave a field they may want to type\n * in. So focus follows what the field IS — typeable, and the caret stays;\n * read-only, and the grid is the only thing worth focusing. The keyboard path is\n * unaffected: ArrowDown on the field calls `open(true)`.\n */\n protected onFieldClick(): void {\n this.open(!this.allowInput());\n if (this.allowInput()) {\n this.inputEl().nativeElement.focus();\n }\n }\n\n // Intended result of a `beforeinput` segment edit, re-asserted in onFieldInput\n // when a native mutation slips past a non-cancelable beforeinput (Android).\n private mobileEdit: { value: string; caret: number } | null = null;\n\n protected onFieldInput(event: Event): void {\n if (!this.allowInput()) {\n return;\n }\n const element = event.target as HTMLInputElement;\n if (this.mobileEdit) {\n const { value, caret } = this.mobileEdit;\n this.mobileEdit = null;\n this.writeBackText(element, value, caret);\n\n return;\n }\n this.commitRaw(element, element.value);\n }\n\n /** Physical-keyboard editing (desktop): typed digits fill the caret's slot;\n * Backspace/Delete never shift digits across a separator. */\n protected onFieldKeydown(event: KeyboardEvent): void {\n if (!this.allowInput()) {\n return;\n }\n const key = event.key;\n const plain = !event.ctrlKey && !event.metaKey && !event.altKey;\n const isDigit = key.length === 1 && key >= '0' && key <= '9' && plain;\n if (key.length === 1 && plain && !isDigit) {\n event.preventDefault();\n\n return;\n }\n if (!isDigit && key !== 'Backspace' && key !== 'Delete') {\n return;\n }\n event.preventDefault();\n this.runSegmentEdit(\n event.target as HTMLInputElement,\n isDigit ? 'type' : key === 'Backspace' ? 'backspace' : 'delete',\n isDigit ? key : undefined,\n );\n }\n\n /** Mobile keyboards don't fire a reliable `keydown` (Gboard reports keyCode 229 /\n * \"Unidentified\"), so edits are routed here via `beforeinput`'s `inputType` instead.\n * Android Chrome can also ignore `preventDefault()` here, so the intended result is\n * stashed and re-asserted in `onFieldInput`; the microtask expires the stash once\n * preventDefault worked (no following `input` in the same task). */\n protected onFieldBeforeInput(event: InputEvent): void {\n if (!this.allowInput()) {\n return;\n }\n const element = event.target as HTMLInputElement;\n const type = event.inputType;\n let kind: 'type' | 'backspace' | 'delete' | null = null;\n let digit: string | undefined;\n if (type === 'insertText' && event.data && /^\\d$/.test(event.data)) {\n kind = 'type';\n digit = event.data;\n } else if (type === 'deleteContentBackward') {\n kind = 'backspace';\n } else if (type === 'deleteContentForward') {\n kind = 'delete';\n } else {\n return;\n }\n event.preventDefault();\n // Gboard reports Backspace/Delete on mobile with a full-segment \"selection\" (its\n // composing region), which would hit the selection-clear branch below and wipe\n // the whole slot. Collapse to the caret edge so a mobile delete removes one digit.\n const collapsed =\n kind === 'backspace'\n ? element.selectionEnd\n : kind === 'delete'\n ? element.selectionStart\n : undefined;\n this.runSegmentEdit(element, kind, digit, collapsed);\n this.mobileEdit = {\n value: element.value,\n caret: element.selectionStart ?? element.value.length,\n };\n queueMicrotask(() => (this.mobileEdit = null));\n }\n\n /** A selection is cleared through the model so `_` placeholders are never\n * natively erased — only digits are editable. */\n private runSegmentEdit(\n element: HTMLInputElement,\n kind: 'type' | 'backspace' | 'delete',\n digit?: string,\n caretOverride?: number | null,\n ): void {\n const layout = this.layout();\n const segments = parseFieldText(element.value, layout);\n // A caretOverride collapses the range (caret === selectionEnd), forcing the\n // single-character branch below — used by the mobile beforeinput path.\n const caret =\n caretOverride ?? element.selectionStart ?? element.value.length;\n const selectionEnd = caretOverride ?? element.selectionEnd ?? caret;\n let edit: { segments: string[]; slot: number; offset: number } | null;\n if (selectionEnd !== caret) {\n const firstSel = caretToSlot(layout, caret);\n const lastSel = caretToSlot(layout, selectionEnd);\n const cleared = segments.slice();\n for (let index = firstSel.slot; index <= lastSel.slot; index++) {\n cleared[index] = '';\n }\n edit =\n kind === 'type'\n ? editType(cleared, layout, firstSel.slot, 0, digit as string)\n : { segments: cleared, slot: firstSel.slot, offset: 0 };\n } else {\n const { slot, offset } = caretToSlot(layout, caret);\n edit =\n kind === 'type'\n ? editType(segments, layout, slot, offset, digit as string)\n : kind === 'backspace'\n ? editBackspace(segments, layout, slot, offset)\n : editDelete(segments, layout, slot, offset);\n }\n if (!edit) {\n return;\n }\n const text = this.toFieldText(edit.segments, layout);\n this.applyEditedText(\n element,\n text,\n text ? slotToCaret(layout, edit.slot, edit.offset) : 0,\n );\n }\n\n /** Paste digits into the segment model at the caret slot — never a global\n * flatten — so existing digits elsewhere in the field survive untouched. */\n protected onFieldPaste(event: ClipboardEvent): void {\n if (!this.allowInput()) {\n return;\n }\n event.preventDefault();\n const element = event.target as HTMLInputElement;\n const layout = this.layout();\n const pasted = (event.clipboardData?.getData('text') ?? '').replace(\n /\\D/g,\n '',\n );\n if (!pasted) {\n return;\n }\n const segments = parseFieldText(element.value, layout);\n const caret = element.selectionStart ?? element.value.length;\n const start = caretToSlot(layout, caret);\n let result = { segments, slot: start.slot, offset: start.offset };\n for (const digit of pasted) {\n result = editType(\n result.segments,\n layout,\n result.slot,\n result.offset,\n digit,\n );\n }\n this.applyEditedText(\n element,\n this.toFieldText(result.segments, layout),\n slotToCaret(layout, result.slot, result.offset),\n );\n }\n\n private countDigits(text: string): number {\n return text.replace(/\\D/g, '').length;\n }\n\n /** The fallback for any `input` event with no preceding handled `beforeinput`\n * (IME, autofill, a suggestion): `raw` is re-read as a flat digit stream and\n * redistributed over the slots, since its own layout cannot be trusted. */\n private commitRaw(element: HTMLInputElement, raw: string): void {\n const layout = this.layout();\n const capacity = layout.slots.reduce(\n (sum, slot) => sum + slot.maxLength,\n 0,\n );\n const digits = raw.replace(/\\D/g, '').slice(0, capacity);\n const segments: string[] = [];\n let index = 0;\n for (const slot of layout.slots) {\n segments.push(digits.slice(index, index + slot.maxLength));\n index += slot.maxLength;\n }\n const text = this.toFieldText(segments, layout);\n this.applyEditedText(element, text, this.caretAfterFill(segments, layout));\n }\n\n private applyEditedText(\n element: HTMLInputElement,\n text: string,\n caret: number,\n ): void {\n this.editing = true;\n this.writeBackText(element, text, caret);\n const spec = this.formatSpec();\n if (this.mode() === 'range') {\n this.rangeText.set(text);\n this.applyRangeText(text, spec, false);\n\n return;\n }\n this.inputText.set(text);\n const parsed = parseDate(text, spec);\n if (!parsed) {\n // Incomplete input is not an error yet; a full-but-bad value is caught on blur.\n this.typedInvalid.set(false);\n\n return;\n }\n if (this.isDayDisabled(parsed)) {\n this.typedInvalid.set(true);\n\n return;\n }\n this.typedInvalid.set(false);\n this.value.set(parsed);\n this.viewMonth.set(new Date(parsed.getFullYear(), parsed.getMonth(), 1));\n }\n\n protected onFieldBlur(): void {\n this.markTouched();\n if (!this.allowInput()) {\n return;\n }\n this.editing = false;\n const spec = this.formatSpec();\n if (this.mode() === 'range') {\n this.applyRangeText(this.rangeText(), spec, true);\n\n return;\n }\n const text = this.inputText();\n if (this.countDigits(text) === 0) {\n this.typedInvalid.set(false);\n this.value.set(null);\n this.inputText.set('');\n\n return;\n }\n const parsed = parseDate(text, spec);\n if (parsed && !this.isDayDisabled(parsed)) {\n this.typedInvalid.set(false);\n this.value.set(parsed);\n this.inputText.set(formatDate(parsed, spec));\n } else {\n this.typedInvalid.set(true);\n }\n }\n\n /** Writing `value` parks the caret at the end, so the explicit range has to\n * follow it; the later `[value]` binding writes the same string, which leaves\n * the caret untouched. */\n private writeBackText(\n element: HTMLInputElement,\n text: string,\n caret: number,\n ): void {\n if (element.value !== text) {\n element.value = text;\n }\n element.setSelectionRange(caret, caret);\n }\n\n /** Caret just past the last digit a flat digit stream filled — the first slot\n * short of its max length, or the very end once every slot is full. */\n private caretAfterFill(segments: string[], layout: FieldLayout): number {\n for (let slot = 0; slot < segments.length; slot++) {\n if (segments[slot].length < layout.slots[slot].maxLength) {\n return slotToCaret(layout, slot, segments[slot].length);\n }\n }\n const last = segments.length - 1;\n\n return slotToCaret(layout, last, layout.slots[last].maxLength);\n }\n\n /** `commit` is the blur pass: only then is the field text rewritten from the\n * parsed value, and a half-filled range written through to `value`. */\n private applyRangeText(\n text: string,\n spec: DateFormatSpec,\n commit: boolean,\n ): void {\n if (this.countDigits(text) === 0) {\n this.rangeInvalid.set(false);\n this.value.set(null);\n if (commit) {\n this.rangeText.set('');\n }\n\n return;\n }\n const layout = rangeFieldLayout(spec);\n const slots = parseFieldText(text, layout);\n const perDate = spec.segments.length;\n const startFilled = slots\n .slice(0, perDate)\n .every((seg, i) => seg.length === spec.segments[i].length);\n const endFilled = slots\n .slice(perDate, perDate * 2)\n .every((seg, i) => seg.length === spec.segments[i].length);\n const [start, end] = parseDateRange(text, spec);\n const startBad = startFilled && (!start || this.isDayDisabled(start));\n const endBad = endFilled && (!end || this.isDayDisabled(end));\n this.rangeInvalid.set(startBad || endBad);\n if (start && end && !startBad && !endBad) {\n const ordered: RangeValue =\n start.getTime() <= end.getTime() ? [start, end] : [end, start];\n this.value.set(ordered);\n if (commit) {\n this.rangeText.set(formatRange(ordered, spec));\n }\n } else if (commit) {\n this.value.set([start ?? null, end ?? null]);\n }\n }\n\n protected prevMonth(): void {\n const m = new Date(this.viewMonth());\n m.setMonth(m.getMonth() - 1);\n this.viewMonth.set(m);\n }\n\n protected nextMonth(): void {\n const m = new Date(this.viewMonth());\n m.setMonth(m.getMonth() + 1);\n this.viewMonth.set(m);\n }\n\n protected selectDay(cell: DayCell): void {\n if (cell.isDisabled) {\n return;\n }\n this.editing = false;\n if (this.mode() === 'single') {\n this.value.set(new Date(cell.date));\n this.close();\n this.focusTrigger();\n\n return;\n }\n const r = (this.value() as RangeValue | null) ?? [null, null];\n const a = r[0];\n const b = r[1];\n if (!a || (a && b)) {\n this.value.set([new Date(cell.date), null]);\n this.gridFocus.set(new Date(cell.date));\n } else {\n const picked = new Date(cell.date);\n const range: RangeValue =\n a.getTime() <= picked.getTime() ? [a, picked] : [picked, a];\n this.value.set(range);\n this.close();\n this.focusTrigger();\n }\n }\n\n protected isPresetDisabled(preset: DatePickerPreset): boolean {\n const presetValue = preset.value;\n if (presetValue instanceof Date) {\n return this.isDayDisabled(presetValue);\n }\n const rangeValue = presetValue as RangeValue;\n const start = rangeValue[0];\n const end = rangeValue[1];\n if (start && this.isDayDisabled(start)) {\n return true;\n }\n if (end && this.isDayDisabled(end)) {\n return true;\n }\n\n return false;\n }\n\n protected applyPreset(preset: DatePickerPreset): void {\n if (this.isPresetDisabled(preset)) {\n return;\n }\n this.editing = false;\n this.typedInvalid.set(false);\n this.rangeInvalid.set(false);\n const presetValue = preset.value;\n if (presetValue instanceof Date) {\n this.value.set(new Date(presetValue));\n } else {\n const rangeValue = presetValue as RangeValue;\n this.value.set([\n rangeValue[0] ? new Date(rangeValue[0]) : null,\n rangeValue[1] ? new Date(rangeValue[1]) : null,\n ]);\n }\n this.close();\n this.focusTrigger();\n }\n}\n","<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n <!-- Whole-field click opens the panel; keyboard access is on the inner input\n (aria-haspopup + ArrowDown), so the wrapper needs no key handler of its own. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n #anchor\n [class]=\"triggerClasses()\"\n (click)=\"onFieldClick()\"\n >\n <span class=\"input-wrap\">\n <input\n #inputEl\n type=\"text\"\n class=\"date-input\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [class.masked]=\"allowInput()\"\n [value]=\"fieldText()\"\n [attr.size]=\"fieldSize()\"\n [readOnly]=\"!allowInput()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-placeholder]=\"fieldPlaceholder()\"\n (beforeinput)=\"onFieldBeforeInput($event)\"\n (input)=\"onFieldInput($event)\"\n (paste)=\"onFieldPaste($event)\"\n (blur)=\"onFieldBlur()\"\n (keydown)=\"onFieldKeydown($event)\"\n (keydown.arrowdown)=\"open(true); $event.preventDefault()\"\n />\n\n <!-- Per-slot overlay: the real input is transparent (see .masked in the\n SCSS), so this paints every glyph — digits at normal weight, unfilled\n positions muted. Monospace font keeps letters and digits equal\n width, so glyphs stay aligned 1:1 with the invisible input's caret. -->\n @if (allowInput()) {\n <!-- Whitespace-tight on purpose: the overlay paints with `white-space:\n pre`, so it must hug its tags or stray whitespace would render\n and shift later glyphs out of alignment. -->\n <!-- eslint-disable ds/template/element-content-newline -->\n <span\n class=\"mask-ghost\"\n aria-hidden=\"true\"\n >\n @for (part of displaySlots(); track $index) {\n <span [class.muted]=\"part.muted\">{{ part.text }}</span>\n }\n </span>\n <!-- eslint-enable ds/template/element-content-newline -->\n }\n </span>\n\n <button\n type=\"button\"\n class=\"calendar-toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (click)=\"onFieldClick(); $event.stopPropagation()\"\n >\n <ds-icon\n name=\"calendar\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n</div>\n\n<ng-template #panel>\n <!-- Dialog-level click is a pointer-only light-dismiss that closes an open\n month/year popup; keyboard users dismiss it with Escape (bound on each popup). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -->\n <div\n class=\"calendar\"\n role=\"dialog\"\n aria-label=\"Choose date\"\n cdkTrapFocus\n [id]=\"panelId\"\n [class.has-presets]=\"presets().length > 0\"\n (click)=\"closeMenus()\"\n >\n <span\n class=\"visually-hidden\"\n aria-live=\"polite\"\n >\n {{ monthYearLabel() }}\n </span>\n\n <div class=\"calendar-body\">\n <div class=\"head\">\n <span\n class=\"period\"\n [id]=\"captionId\"\n >\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"monthMenuOpen()\"\n (click)=\"toggleMonthMenu($event)\"\n >\n {{ monthNames()[viewMonthIndex()] }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (monthMenuOpen()) {\n <!-- Popup container, not a focusable widget: it wraps real <button>s\n and closes on Escape; the click only stops light-dismiss bubbling. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select month\"\n >\n @for (name of monthNames(); track $index) {\n <button\n type=\"button\"\n class=\"picker-cell\"\n [class.selected]=\"$index === viewMonthIndex()\"\n [attr.aria-label]=\"name\"\n [attr.aria-current]=\"\n $index === viewMonthIndex() ? 'true' : null\n \"\n (click)=\"selectMonth($index, $event)\"\n >\n {{ name.slice(0, 3) }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"yearMenuOpen()\"\n (click)=\"toggleYearMenu($event)\"\n >\n {{ viewYear() }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (yearMenuOpen()) {\n <!-- Popup container, not a focusable widget: it wraps real <button>s\n and closes on Escape; the click only stops light-dismiss bubbling. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div class=\"picker-head\">\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Previous years\"\n [disabled]=\"!canPrevYearPage()\"\n (click)=\"prevYearPage($event)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n />\n </button>\n\n <span class=\"picker-range\">\n {{ yearRangeLabel() }}\n </span>\n\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Next years\"\n [disabled]=\"!canNextYearPage()\"\n (click)=\"nextYearPage($event)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n />\n </button>\n </div>\n\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select year\"\n >\n @for (year of yearsOnPage(); track year) {\n <button\n type=\"button\"\n class=\"picker-cell year-cell\"\n [class.selected]=\"year === viewYear()\"\n [attr.aria-current]=\"year === viewYear() ? 'true' : null\"\n (click)=\"selectYear(year, $event)\"\n >\n {{ year }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n </span>\n\n <span class=\"nav\">\n <button\n type=\"button\"\n (click)=\"prevMonth()\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n <button\n type=\"button\"\n (click)=\"nextMonth()\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </span>\n </div>\n\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-labelledby]=\"captionId\"\n >\n <div\n class=\"dow-row\"\n role=\"row\"\n >\n @for (dow of weekdays(); track $index) {\n <span\n class=\"dow\"\n role=\"columnheader\"\n [attr.aria-label]=\"weekdaysFull()[$index]\"\n >\n {{ dow }}\n </span>\n }\n </div>\n\n @for (week of weeksGrid(); track $index) {\n <div\n class=\"week\"\n role=\"row\"\n >\n @for (cell of week; track $index) {\n <ds-calendar-day\n [muted]=\"!cell.inMonth\"\n [today]=\"cell.isToday\"\n [selected]=\"cell.isSelected\"\n [inRange]=\"cell.inRange\"\n [rangeStart]=\"cell.isRangeStart\"\n [rangeEnd]=\"cell.isRangeEnd\"\n [disabled]=\"cell.isDisabled\"\n [dataDay]=\"dayKey(cell.date)\"\n [tabIndex]=\"isFocusDay(cell) ? 0 : -1\"\n [ariaLabel]=\"dayLabel(cell)\"\n (daySelected)=\"selectDay(cell)\"\n (dayKeydown)=\"onGridKeydown($event, cell)\"\n >\n {{ cell.day }}\n </ds-calendar-day>\n }\n </div>\n }\n </div>\n </div>\n\n @if (presets().length > 0) {\n <div class=\"presets\">\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"preset-btn\"\n [disabled]=\"isPresetDisabled(preset)\"\n (click)=\"applyPreset(preset); $event.stopPropagation()\"\n >\n {{ preset.label }}\n </button>\n }\n </div>\n }\n </div>\n</ng-template>\n","import type { TimeConstraints, TimeFormat } from './time-picker.types';\n\nexport function pad2(value: number): string {\n return value < 10 ? `0${value}` : `${value}`;\n}\n\n/** Parse \"HH:MM\" (24h) → {h,m}, or null when malformed / out of range. */\nexport function parseTime(\n value: string | null | undefined,\n): { h: number; m: number } | null {\n if (!value) {\n return null;\n }\n const match = /^(\\d{1,2}):(\\d{2})$/.exec(value.trim());\n if (!match) {\n return null;\n }\n const hours = Number(match[1]);\n const minutes = Number(match[2]);\n if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) {\n return null;\n }\n\n return { h: hours, m: minutes };\n}\n\nexport function toMinutes(value: string | null | undefined): number | null {\n const parsed = parseTime(value);\n\n return parsed ? parsed.h * 60 + parsed.m : null;\n}\n\nexport function fromMinutes(total: number): string {\n const wrapped = ((total % 1440) + 1440) % 1440;\n\n return `${pad2(Math.floor(wrapped / 60))}:${pad2(wrapped % 60)}`;\n}\n\nexport function to12h(h24: number): { h: number; period: 'AM' | 'PM' } {\n const period = h24 < 12 ? 'AM' : 'PM';\n const hours = h24 % 12 === 0 ? 12 : h24 % 12;\n\n return { h: hours, period };\n}\n\nexport function from12h(h12: number, period: 'AM' | 'PM'): number {\n const base = h12 % 12; // 12 → 0\n\n return period === 'PM' ? base + 12 : base;\n}\n\n/** Display string for the trigger; '' when value is null/invalid. */\nexport function formatTime(value: string | null, format: TimeFormat): string {\n const parsed = parseTime(value);\n if (!parsed) {\n return '';\n }\n if (format === '24h') {\n return `${pad2(parsed.h)}:${pad2(parsed.m)}`;\n }\n const { h: hours, period } = to12h(parsed.h);\n\n return `${pad2(hours)}:${pad2(parsed.m)} ${period}`;\n}\n\nexport function genHours(format: TimeFormat): number[] {\n return format === '24h'\n ? Array.from({ length: 24 }, (_, index) => index)\n : Array.from({ length: 12 }, (_, index) => index + 1);\n}\n\nexport function genMinutes(step: number): number[] {\n const stepSize = step >= 1 ? Math.floor(step) : 1;\n const out: number[] = [];\n for (let minute = 0; minute < 60; minute += stepSize) {\n out.push(minute);\n }\n\n return out;\n}\n\nexport function snapToStep(value: string, step: number): string {\n const mins = toMinutes(value);\n if (mins === null) {\n return value;\n }\n const stepSize = step >= 1 ? Math.floor(step) : 1;\n\n return fromMinutes(Math.round(mins / stepSize) * stepSize);\n}\n\nexport function isTimeDisabled(\n value: string,\n constraints: TimeConstraints,\n): boolean {\n const mins = toMinutes(value);\n if (mins === null) {\n return true;\n }\n const min = toMinutes(constraints.minTime ?? null);\n const max = toMinutes(constraints.maxTime ?? null);\n if (min !== null && mins < min) {\n return true;\n }\n if (max !== null && mins > max) {\n return true;\n }\n\n return constraints.disabledTime ? constraints.disabledTime(value) : false;\n}\n\nexport function clampToRange(\n value: string,\n constraints: TimeConstraints,\n): string {\n const mins = toMinutes(value);\n if (mins === null) {\n return value;\n }\n const min = toMinutes(constraints.minTime ?? null);\n const max = toMinutes(constraints.maxTime ?? null);\n let out = mins;\n if (min !== null) {\n out = Math.max(out, min);\n }\n if (max !== null) {\n out = Math.min(out, max);\n }\n\n return fromMinutes(out);\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n input,\n numberAttribute,\n output,\n viewChildren,\n} from '@angular/core';\nimport {\n from12h,\n genHours,\n genMinutes,\n isTimeDisabled,\n pad2,\n parseTime,\n to12h,\n} from '../time-picker/time.util';\nimport type {\n TimeConstraints,\n TimeFormat,\n} from '../time-picker/time-picker.types';\n\n/** Which of the panel's listbox columns a pick came from. */\nexport type TimeColumnId = 'hours' | 'minutes' | 'period';\ninterface Cell<T> {\n value: T;\n label: string;\n disabled: boolean;\n selected: boolean;\n}\n\n/** Internal (not public API): Hours / Minutes / AM-PM listbox columns.\n * Reused by ds-time-picker's overlay and the date-picker time footer. */\n@Component({\n selector: 'ds-time-columns',\n standalone: true,\n templateUrl: './time-columns.component.html',\n styleUrl: './time-columns.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n class: 'ds-time-columns',\n role: 'group',\n '[attr.aria-label]': \"'Time'\",\n },\n})\nexport class TimeColumnsComponent {\n /** Current time as `HH:mm` (24h, always — `format` changes only what is DISPLAYED). */\n readonly value = input<string | null>(null);\n /** Display clock. `12h` adds an AM/PM column; the emitted value stays 24h either way. */\n readonly format = input<TimeFormat>('24h');\n /** Minute granularity — 15 gives four rows an hour instead of sixty. */\n readonly minuteStep = input(1, { transform: numberAttribute });\n /** Earliest selectable time, `HH:mm`. Earlier rows render disabled rather than being removed,\n * so the columns do not reflow as the bound changes. */\n readonly minTime = input<string | null>(null);\n /** Latest selectable time, `HH:mm`. */\n readonly maxTime = input<string | null>(null);\n /** Per-time predicate for what a range cannot express — booked slots, a lunch break.\n * Receives `HH:mm`; return true to disable. */\n readonly disabledTime = input<((time: string) => boolean) | null>(null);\n /** A complete time was picked, as `HH:mm`. Not emitted while only one column has moved. */\n readonly timeChange = output<string>();\n /** Which column the pick came from. `timeChange` alone cannot say: it carries a\n * whole time, and a host that wants to close once the user has been through\n * both columns cannot infer the difference between \"chose the same hour again\"\n * and \"did not touch hours\". Emitted immediately after `timeChange`. */\n readonly partPicked = output<TimeColumnId>();\n\n private readonly hourButtons =\n viewChildren<ElementRef<HTMLButtonElement>>('hourOpt');\n private readonly minuteButtons =\n viewChildren<ElementRef<HTMLButtonElement>>('minOpt');\n private readonly periodButtons =\n viewChildren<ElementRef<HTMLButtonElement>>('periodOpt');\n\n protected readonly is12h = computed(() => this.format() === '12h');\n protected readonly periods: readonly ('AM' | 'PM')[] = ['AM', 'PM'];\n\n private readonly constraints = computed<TimeConstraints>(() => ({\n minTime: this.minTime(),\n maxTime: this.maxTime(),\n disabledTime: this.disabledTime(),\n }));\n private readonly parsedValue = computed(() => parseTime(this.value()));\n private readonly hourNums = computed(() => genHours(this.format()));\n private readonly minuteNums = computed(() => genMinutes(this.minuteStep()));\n\n protected readonly currentPeriod = computed<'AM' | 'PM'>(() => {\n const parsed = this.parsedValue();\n\n return parsed ? to12h(parsed.h).period : 'AM';\n });\n\n protected readonly hourCells = computed<Cell<number>[]>(() => {\n const parsed = this.parsedValue();\n const selectedHour = parsed\n ? this.is12h()\n ? to12h(parsed.h).h\n : parsed.h\n : null;\n\n return this.hourNums().map((hours) => ({\n value: hours,\n label: pad2(hours),\n disabled: this.allMinutesDisabled(this.toH24(hours)),\n selected: hours === selectedHour,\n }));\n });\n\n protected readonly minuteCells = computed<Cell<number>[]>(() => {\n const parsed = this.parsedValue();\n const hour24 = this.baseHour();\n\n return this.minuteNums().map((minute) => ({\n value: minute,\n label: pad2(minute),\n disabled: isTimeDisabled(\n `${pad2(hour24)}:${pad2(minute)}`,\n this.constraints(),\n ),\n selected: parsed ? parsed.m === minute : false,\n }));\n });\n\n protected readonly periodCells = computed<Cell<'AM' | 'PM'>[]>(() => {\n const parsed = this.parsedValue();\n\n return this.periods.map((period) => ({\n value: period,\n label: period,\n disabled: this.hourNums().every((hours) =>\n this.allMinutesDisabled(from12h(hours, period)),\n ),\n selected: parsed ? to12h(parsed.h).period === period : false,\n }));\n });\n\n protected readonly hourEntry = computed(() =>\n this.entryIndex(this.hourCells()),\n );\n protected readonly minuteEntry = computed(() =>\n this.entryIndex(this.minuteCells()),\n );\n protected readonly periodEntry = computed(() =>\n this.entryIndex(this.periodCells()),\n );\n\n protected selectHour(cell: Cell<number>): void {\n if (cell.disabled) {\n return;\n }\n const hour24 = this.toH24(cell.value);\n const parsed = this.parsedValue();\n this.emit(\n hour24,\n parsed ? parsed.m : this.firstEnabledMinute(hour24),\n 'hours',\n );\n }\n\n protected selectMinute(cell: Cell<number>): void {\n if (cell.disabled) {\n return;\n }\n this.emit(this.baseHour(), cell.value, 'minutes');\n }\n\n protected selectPeriod(cell: Cell<'AM' | 'PM'>): void {\n if (cell.disabled) {\n return;\n }\n const parsed = this.parsedValue();\n const hour12 = parsed\n ? to12h(parsed.h).h\n : this.firstEnabledHour12(cell.value);\n const hour24 = from12h(hour12, cell.value);\n this.emit(\n hour24,\n parsed ? parsed.m : this.firstEnabledMinute(hour24),\n 'period',\n );\n }\n\n protected onKey(\n event: KeyboardEvent,\n column: TimeColumnId,\n index: number,\n ): void {\n const cells = this.cellsFor(column);\n let target = -1;\n switch (event.key) {\n case 'ArrowDown':\n target = this.nextEnabled(cells, index, 1);\n break;\n case 'ArrowUp':\n target = this.nextEnabled(cells, index, -1);\n break;\n case 'Home':\n target = this.nextEnabled(cells, -1, 1);\n break;\n case 'End':\n target = this.nextEnabled(cells, cells.length, -1);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.focusColumn(this.siblingColumn(column, 1));\n\n return;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusColumn(this.siblingColumn(column, -1));\n\n return;\n default:\n return;\n }\n if (target < 0) {\n return;\n }\n event.preventDefault();\n this.selectAt(column, target);\n this.buttonsFor(column)()[target]?.nativeElement.focus();\n }\n\n /** Called by the parent after the overlay renders. */\n focusSelected(): void {\n this.hourButtons()[Math.max(this.hourEntry(), 0)]?.nativeElement.focus();\n this.scrollSelectedIntoView();\n }\n\n scrollSelectedIntoView(): void {\n this.scrollColumn(this.hourButtons(), this.hourEntry());\n this.scrollColumn(this.minuteButtons(), this.minuteEntry());\n this.scrollColumn(this.periodButtons(), this.periodEntry());\n }\n\n private toH24(hourCol: number): number {\n return this.is12h() ? from12h(hourCol, this.currentPeriod()) : hourCol;\n }\n\n private allMinutesDisabled(hour24: number): boolean {\n return this.minuteNums().every((minute) =>\n isTimeDisabled(`${pad2(hour24)}:${pad2(minute)}`, this.constraints()),\n );\n }\n\n private baseHour(): number {\n const parsed = this.parsedValue();\n if (parsed) {\n return parsed.h;\n }\n const first = this.hourCells().find((cell) => !cell.disabled);\n\n return first ? this.toH24(first.value) : 0;\n }\n\n private firstEnabledMinute(hour24: number): number {\n const minute = this.minuteNums().find(\n (candidate) =>\n !isTimeDisabled(\n `${pad2(hour24)}:${pad2(candidate)}`,\n this.constraints(),\n ),\n );\n\n return minute ?? 0;\n }\n\n private firstEnabledHour12(period: 'AM' | 'PM'): number {\n const hours = this.hourNums().find(\n (candidate) => !this.allMinutesDisabled(from12h(candidate, period)),\n );\n\n return hours ?? 12;\n }\n\n private emit(hour24: number, minute: number, part: TimeColumnId): void {\n this.timeChange.emit(`${pad2(hour24)}:${pad2(minute)}`);\n this.partPicked.emit(part);\n }\n\n private entryIndex(\n cells: readonly { disabled: boolean; selected: boolean }[],\n ): number {\n const selected = cells.findIndex((cell) => cell.selected && !cell.disabled);\n\n return selected >= 0 ? selected : cells.findIndex((cell) => !cell.disabled);\n }\n\n private nextEnabled(\n cells: readonly { disabled: boolean }[],\n from: number,\n step: number,\n ): number {\n const count = cells.length;\n if (count === 0) {\n return -1;\n }\n let index = from;\n for (let i = 0; i < count; i++) {\n index = (index + step + count) % count;\n if (!cells[index].disabled) {\n return index;\n }\n }\n\n return -1;\n }\n\n private cellsFor(column: TimeColumnId): readonly { disabled: boolean }[] {\n if (column === 'hours') {\n return this.hourCells();\n }\n if (column === 'minutes') {\n return this.minuteCells();\n }\n\n return this.periodCells();\n }\n\n private buttonsFor(column: TimeColumnId) {\n if (column === 'hours') {\n return this.hourButtons;\n }\n if (column === 'minutes') {\n return this.minuteButtons;\n }\n\n return this.periodButtons;\n }\n\n private selectAt(column: TimeColumnId, index: number): void {\n if (column === 'hours') {\n this.selectHour(this.hourCells()[index]);\n } else if (column === 'minutes') {\n this.selectMinute(this.minuteCells()[index]);\n } else {\n this.selectPeriod(this.periodCells()[index]);\n }\n }\n\n private siblingColumn(column: TimeColumnId, step: number): TimeColumnId {\n const order: TimeColumnId[] = this.is12h()\n ? ['hours', 'minutes', 'period']\n : ['hours', 'minutes'];\n const next = order.indexOf(column) + step;\n\n return order[Math.min(Math.max(next, 0), order.length - 1)];\n }\n\n private focusColumn(column: TimeColumnId): void {\n const entry =\n column === 'hours'\n ? this.hourEntry()\n : column === 'minutes'\n ? this.minuteEntry()\n : this.periodEntry();\n this.buttonsFor(column)()[Math.max(entry, 0)]?.nativeElement.focus();\n }\n\n private scrollColumn(\n buttons: readonly ElementRef<HTMLButtonElement>[],\n index: number,\n ): void {\n buttons[Math.max(index, 0)]?.nativeElement.scrollIntoView({\n block: 'center',\n });\n }\n}\n","<div\n class=\"col\"\n role=\"listbox\"\n aria-label=\"Hours\"\n>\n @for (cell of hourCells(); track cell.value; let i = $index) {\n <button\n #hourOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === hourEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectHour(cell)\"\n (keydown)=\"onKey($event, 'hours', i)\"\n >\n {{ cell.label }}\n </button>\n }\n</div>\n\n<div\n class=\"col\"\n role=\"listbox\"\n aria-label=\"Minutes\"\n>\n @for (cell of minuteCells(); track cell.value; let i = $index) {\n <button\n #minOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === minuteEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectMinute(cell)\"\n (keydown)=\"onKey($event, 'minutes', i)\"\n >\n {{ cell.label }}\n </button>\n }\n</div>\n\n@if (is12h()) {\n <div\n class=\"col\"\n role=\"listbox\"\n aria-label=\"AM/PM\"\n >\n @for (cell of periodCells(); track cell.value; let i = $index) {\n <button\n #periodOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === periodEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectPeriod(cell)\"\n (keydown)=\"onKey($event, 'period', i)\"\n >\n {{ cell.label }}\n </button>\n }\n </div>\n}\n","import {\n Component,\n ElementRef,\n Injector,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { IconComponent } from '../../icons/icon.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport {\n TimeColumnsComponent,\n type TimeColumnId,\n} from '../time-columns/time-columns.component';\nimport { DS_CONFIG } from '../../core/ds-config';\nimport {\n clampToRange,\n formatTime,\n pad2,\n snapToStep,\n toMinutes,\n} from './time.util';\nimport type {\n TimeConstraints,\n TimeFormat,\n TimePickerMode,\n TimeRangeValue,\n} from './time-picker.types';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\ntype Segment = 'single' | 'start' | 'end';\nlet nextId = 0;\n\n@Component({\n selector: 'ds-time-picker',\n standalone: true,\n imports: [IconComponent, FieldMessageComponent, TimeColumnsComponent],\n templateUrl: './time-picker.component.html',\n styleUrl: './time-picker.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TimePickerComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.full-width]': 'fullWidth()',\n },\n})\nexport class TimePickerComponent\n extends DsControlValueAccessor<string | TimeRangeValue | null>\n implements OnDestroy\n{\n constructor() {\n super();\n }\n\n private readonly config = inject(DS_CONFIG);\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly host = inject(ElementRef<HTMLElement>);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-time-picker { --ds-time-picker-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-time-picker-bg-color',\n '--ds-time-picker-border',\n '--ds-time-picker-shadow',\n '--ds-time-picker-panel-radius',\n ];\n\n /** Selected time, or `[start, end]` tuple when `mode=\"range\"`. Two-way bound. */\n readonly value = model<string | TimeRangeValue | null>(null);\n /** Single time or `[start, end]` range picker. */\n readonly mode = input<TimePickerMode>('single');\n /** Minute increment shown in the picker columns. */\n readonly minuteStep = input(1, { transform: numberAttribute });\n /** Earliest selectable time (\"HH:MM\"). */\n readonly minTime = input<string | null>(null);\n /** Latest selectable time (\"HH:MM\"). */\n readonly maxTime = input<string | null>(null);\n /** Predicate marking individual times unselectable. */\n readonly disabledTime = input<((time: string) => boolean) | null>(null);\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Stretch the trigger to fill its container instead of hugging its content —\n * opt in when the field shares a grid/flex track with inputs. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n /** Field label shown above the trigger — same row a `ds-date-picker` label\n * occupies, so date + time in one form row line up without a hand-rolled label. */\n readonly label = input<string>('');\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker beside the label — ignored when `required` is set. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Disables the picker and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shown in the trigger when no time is set. */\n readonly placeholder = input<string>('--:--');\n /** Shows an inline clear button when a value is set — single mode only. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Accessible name for the trigger(s), suffixed \"(from)\"/\"(to)\" in range mode. */\n readonly ariaLabel = input<string | null>(null);\n /** Override the DS-config format for this instance. */\n readonly format = input<TimeFormat | null>(null);\n\n protected readonly uid = `ds-timepicker-${++nextId}`;\n protected readonly labelId = `${this.uid}-label`;\n protected readonly openSegment = signal<Segment | null>(null);\n // Which columns the user has been through since THIS opening. In single mode\n // the panel has no Done button, so it closes itself once both halves of a time\n // have been chosen — \"picked an hour and a minute\" is the completion. Reset on\n // open, so re-opening a field that already holds a value asks for both again\n // rather than closing on the first tap.\n private readonly pickedParts = signal<ReadonlySet<TimeColumnId>>(new Set());\n private overlayRef: OverlayRef | null = null;\n\n protected readonly singleTrigger =\n viewChild<ElementRef<HTMLButtonElement>>('singleTrigger');\n protected readonly startTrigger =\n viewChild<ElementRef<HTMLButtonElement>>('startTrigger');\n protected readonly endTrigger =\n viewChild<ElementRef<HTMLButtonElement>>('endTrigger');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n protected readonly columns = viewChild(TimeColumnsComponent);\n\n /** Any of the three trigger boxes, not the host: a range renders two and a single\n * one renders one, while the host also carries the label and the message row —\n * clicking those has to dismiss the panel. */\n private insideATrigger(target: Node): boolean {\n return [this.singleTrigger(), this.startTrigger(), this.endTrigger()].some(\n (trigger) => trigger?.nativeElement.contains(target) ?? false,\n );\n }\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n readonly resolvedFormat = computed<TimeFormat>(\n () => this.format() ?? this.config.timePicker?.format ?? '24h',\n );\n\n protected readonly singleValue = computed(() => {\n const value = this.value();\n\n return typeof value === 'string' ? value : null;\n });\n protected readonly rangeValue = computed<TimeRangeValue>(() => {\n const value = this.value();\n\n return Array.isArray(value) ? value : [null, null];\n });\n protected readonly hasValue = computed(() => !!this.singleValue());\n protected readonly displayValue = computed(\n () => this.formatFor(this.singleValue()) || this.placeholder(),\n );\n\n protected readonly triggerClasses = computed(() => {\n const parts = ['trigger'];\n const size = this.sizeResolved();\n if (size !== 'md') {\n parts.push(size);\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n if (this.mode() === 'single' && this.clearable() && this.hasValue()) {\n parts.push('has-clear');\n }\n\n return parts.join(' ');\n });\n\n /** Value the open column set edits (the active segment's value). */\n protected readonly panelValue = computed(() => {\n const segment = this.openSegment();\n if (segment === 'start') {\n return this.rangeValue()[0];\n }\n if (segment === 'end') {\n return this.rangeValue()[1];\n }\n\n return this.singleValue();\n });\n\n /** The end segment cannot precede the chosen start. */\n protected readonly panelMinTime = computed(() => {\n if (this.openSegment() !== 'end') {\n return this.minTime();\n }\n\n return this.laterOf(this.minTime(), this.rangeValue()[0]);\n });\n\n protected readonly panelMaxTime = computed(() => this.maxTime());\n\n protected ariaLabelFor(segment: Segment): string {\n // A visible label is the accessible name; range segments still need the\n // from/to suffix, so they keep an aria-label built from it.\n const base = this.ariaLabel() ?? (this.label() || 'Select time');\n if (segment === 'start') {\n return `${base} (from)`;\n }\n if (segment === 'end') {\n return `${base} (to)`;\n }\n\n return base;\n }\n\n protected formatFor(value: string | null): string {\n return formatTime(value, this.resolvedFormat());\n }\n\n protected open(segment: Segment): void {\n if (this.isDisabled() || this.overlayRef) {\n return;\n }\n const triggerRef = this.triggerFor(segment);\n if (!triggerRef) {\n return;\n }\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerRef.nativeElement,\n 'ds-overlay-pane',\n );\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.insideATrigger(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n this.overlayRef = null;\n this.openSegment.set(null);\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.onEscape('dismiss');\n }\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.openSegment.set(segment);\n this.pickedParts.set(new Set());\n afterNextRender(() => this.columns()?.focusSelected(), {\n injector: this.injector,\n });\n }\n\n protected onTriggerClick(segment: Segment): void {\n if (this.isDisabled()) {\n return;\n }\n if (this.overlayRef) {\n const wasSameSegment = this.openSegment() === segment;\n this.close();\n if (wasSameSegment) {\n return;\n }\n }\n this.open(segment);\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n const segment = this.openSegment();\n const focusWasInPanel = this.overlayRef\n ? focusIsInside(this.overlayRef)\n : false;\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.openSegment.set(null);\n this.markTouched();\n if (focusWasInPanel && segment) {\n this.triggerFor(segment)?.nativeElement.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n // Host torn down while open → close() never runs. Dispose the overlay so\n // its pane and event subscriptions don't leak.\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected onEscape(cause: DsOverlayCloseCause = 'dismiss'): void {\n this.close(cause);\n }\n\n protected onPick(next: string): void {\n const segment = this.openSegment();\n if (segment === 'start') {\n const end = this.rangeValue()[1];\n const bumped = end && this.minutesOf(end) < this.minutesOf(next);\n this.value.set([next, bumped ? next : end]);\n\n return;\n }\n if (segment === 'end') {\n this.value.set([this.rangeValue()[0], next]);\n\n return;\n }\n this.value.set(next);\n }\n\n protected onPartPicked(part: TimeColumnId): void {\n const seen = new Set(this.pickedParts()).add(part);\n this.pickedParts.set(seen);\n if (this.mode() === 'single' && seen.has('hours') && seen.has('minutes')) {\n this.close('select');\n }\n }\n\n protected setNow(): void {\n const now = new Date();\n const raw = `${pad2(now.getHours())}:${pad2(now.getMinutes())}`;\n const constraints: TimeConstraints = {\n minTime: this.panelMinTime(),\n maxTime: this.panelMaxTime(),\n disabledTime: this.disabledTime(),\n };\n this.onPick(clampToRange(snapToStep(raw, this.minuteStep()), constraints));\n }\n\n protected clear(event: Event): void {\n event.stopPropagation();\n this.value.set(null);\n }\n\n private triggerFor(\n segment: Segment,\n ): ElementRef<HTMLButtonElement> | undefined {\n if (segment === 'start') {\n return this.startTrigger();\n }\n if (segment === 'end') {\n return this.endTrigger();\n }\n\n return this.singleTrigger();\n }\n\n private minutesOf(value: string): number {\n return toMinutes(value) ?? 0;\n }\n\n private laterOf(a: string | null, b: string | null): string | null {\n if (!a) {\n return b;\n }\n if (!b) {\n return a;\n }\n\n return this.minutesOf(a) >= this.minutesOf(b) ? a : b;\n }\n}\n","<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n @if (mode() === 'range') {\n <div class=\"range-wrap\">\n <div class=\"trigger-wrap\">\n <button\n #startTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'start'\"\n [attr.aria-label]=\"ariaLabelFor('start')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('start')\"\n >\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[0]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <span\n class=\"range-sep\"\n aria-hidden=\"true\"\n >\n –\n </span>\n\n <div class=\"trigger-wrap\">\n <button\n #endTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'end'\"\n [attr.aria-label]=\"ariaLabelFor('end')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('end')\"\n >\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[1]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\"\n />\n </button>\n </div>\n </div>\n } @else {\n <div class=\"trigger-wrap\">\n <button\n #singleTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'single'\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"label() ? null : ariaLabelFor('single')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('single')\"\n >\n <span class=\"time-value\">\n {{ displayValue() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\"\n />\n </button>\n\n @if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"time-clear\"\n aria-label=\"Clear\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n </div>\n }\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n</div>\n\n<ng-template #panel>\n <div class=\"time-panel\">\n <ds-time-columns\n [value]=\"panelValue()\"\n [format]=\"resolvedFormat()\"\n [minuteStep]=\"minuteStep()\"\n [minTime]=\"panelMinTime()\"\n [maxTime]=\"panelMaxTime()\"\n [disabledTime]=\"disabledTime()\"\n (timeChange)=\"onPick($event)\"\n (partPicked)=\"onPartPicked($event)\"\n />\n\n <div class=\"time-footer\">\n <button\n type=\"button\"\n class=\"time-action\"\n (click)=\"setNow()\"\n >\n Now\n </button>\n\n @if (mode() === 'range') {\n <button\n type=\"button\"\n class=\"time-action primary\"\n (click)=\"onEscape()\"\n >\n Done\n </button>\n }\n </div>\n </div>\n</ng-template>\n","import { Injectable, type Signal, signal } from '@angular/core';\nimport type { BreadcrumbItem } from './breadcrumbs.types';\n\n/**\n * Library-level breadcrumb state. Apps push items either programmatically\n * (page constructor / effect) or via a router-data driver (see app docs).\n * `<ds-breadcrumbs>` reads from here when no `[items]` input is provided.\n */\n@Injectable({ providedIn: 'root' })\nexport class BreadcrumbsService {\n private readonly _items = signal<BreadcrumbItem[]>([]);\n readonly items: Signal<BreadcrumbItem[]> = this._items.asReadonly();\n\n set(items: BreadcrumbItem[]): void {\n this._items.set(items);\n }\n\n push(item: BreadcrumbItem): void {\n this._items.update((arr) => [...arr, item]);\n }\n\n pop(): void {\n this._items.update((arr) => arr.slice(0, -1));\n }\n\n replaceLast(item: BreadcrumbItem): void {\n this._items.update((arr) =>\n arr.length ? [...arr.slice(0, -1), item] : [item],\n );\n }\n\n clear(): void {\n this._items.set([]);\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { DS_CONFIG } from '../../core/ds-config';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { BreadcrumbsService } from './breadcrumbs.service';\nimport type { BreadcrumbItem } from './breadcrumbs.types';\n\n@Component({\n selector: 'ds-breadcrumbs',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './breadcrumbs.component.html',\n styleUrl: './breadcrumbs.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class BreadcrumbsComponent {\n private readonly cfg = inject(DS_CONFIG);\n private readonly svc = inject(BreadcrumbsService);\n\n /**\n * When omitted, the component reads from `BreadcrumbsService.items`.\n * Pass an explicit array to opt out of the service (per-page override).\n */\n readonly items = input<BreadcrumbItem[] | null>(null);\n /** Icon between crumbs; falls back to `DS_CONFIG.breadcrumbs.separator`, then `chevronRight`. */\n readonly separator = input<IconName | null>(null);\n /** Whether crumbs render as links; falls back to `DS_CONFIG.breadcrumbs.clickable`, then `true`. */\n readonly clickable = input<boolean | null>(null);\n /**\n * Caps how many crumbs render, collapsing the middle into an ellipsis — the\n * first and the LAST always survive. Null (default) renders every crumb.\n *\n * Worth setting on any trail that can get deep: the row is `nowrap` with\n * `overflow: hidden`, so without a cap an overlong trail is clipped from the\n * END, which is the current page — the one crumb the reader needs most.\n */\n readonly maxItems = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n /** Fires when a clickable crumb with `href` is activated; default navigation is always prevented. */\n readonly navigate = output<BreadcrumbItem>();\n\n private readonly allItems = computed<BreadcrumbItem[]>(\n () => this.items() ?? this.svc.items(),\n );\n\n /**\n * What renders. The collapsed crumb carries no `href`, so it is inert rather\n * than a link to nowhere; its label is the count, which tells the reader how\n * much is hidden instead of just that something is.\n */\n protected readonly resolvedItems = computed<BreadcrumbItem[]>(() => {\n const items = this.allItems();\n const max = this.maxItems();\n if (!max || max < 2 || items.length <= max) {\n return items;\n }\n // max - 2, not max - 1: the collapsed crumb occupies one of the slots too,\n // so counting only the first would render one crumb more than asked for.\n const tail = items.slice(items.length - (max - 2));\n\n return [items[0], { label: `… ${items.length - max + 1} more` }, ...tail];\n });\n protected readonly effectiveSeparator = computed<IconName>(\n () => this.separator() ?? this.cfg.breadcrumbs?.separator ?? 'chevronRight',\n );\n protected readonly effectiveClickable = computed<boolean>(\n () => this.clickable() ?? this.cfg.breadcrumbs?.clickable ?? true,\n );\n\n protected onNav(event: Event, item: BreadcrumbItem): void {\n if (!item.href || !this.effectiveClickable()) {\n event.preventDefault();\n\n return;\n }\n event.preventDefault();\n this.navigate.emit(item);\n }\n}\n","<nav\n class=\"breadcrumbs\"\n aria-label=\"Breadcrumb\"\n [class.is-static]=\"!effectiveClickable()\"\n>\n @for (item of resolvedItems(); track $index; let last = $last) {\n @if (\n item.href &&\n !last &&\n effectiveClickable()\n ) {\n <a\n [href]=\"item.href\"\n (click)=\"onNav($event, item)\"\n >\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\"\n />\n }\n\n @if (item.label) {\n <span class=\"label\">\n {{ item.label }}\n </span>\n }\n </a>\n } @else {\n <span\n [class.current]=\"last\"\n [attr.aria-current]=\"last ? 'page' : null\"\n >\n @if (item.icon) {\n <ds-icon\n [name]=\"item.icon\"\n [size]=\"14\"\n />\n }\n\n @if (item.label) {\n <span class=\"label\">\n {{ item.label }}\n </span>\n }\n </span>\n }\n\n @if (!last) {\n <span\n class=\"sep\"\n aria-hidden=\"true\"\n >\n <ds-icon\n [name]=\"effectiveSeparator()\"\n [size]=\"12\"\n />\n </span>\n }\n }\n</nav>\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker. Set once on the sidenav; an\n * item can still override it for itself. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '../brand-defaults';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. Off\n * leaves the active state on the fill and the label alone — check that is still\n * distinguishable before turning it off. An individual `ds-sidenav-item` can\n * override this with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). For a custom\n * logo image/SVG, project it into the `[brand]` slot instead. Unset falls back\n * to `DS_CONFIG.brand.name`. Each field resolves on its own, so `brand=\"\"` drops\n * the wordmark while a `logoLetter` in the config still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"MyAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to — typically the app's home. Unset leaves the row a\n * plain, non-interactive block. Router targets only, and `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\"\n >\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\"\n >\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if blocks. Angular accepts only one\n default slot per component; duplicate <ng-content> elements caused\n children to silently drop when control flow chose a non-matching branch. -->\n@if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\"\n >\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\"\n >\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` is selector-distinct from `[icon]` slots used on\n sidenav-item children, so projected icons don't get swallowed when\n a consumer puts items inside the group. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { TooltipPlacement } from './tooltip.types';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n template: `{{ text() }}`,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text content. */\n readonly text = input.required<string>();\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n OnDestroy,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { prepareOverlayEnter } from '../overlay-motion';\nimport type { TooltipPlacement } from './tooltip.types';\n\nlet nextId = 0;\n\n@Directive({\n selector: '[dsTooltip]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n /** Tip text. An empty string is how you turn the tooltip off — a host bound to a\n * value that may be blank needs no separate condition. */\n readonly dsTooltip = input<string>('');\n /** Which side the tip opens on. It does NOT flip: only the requested side is\n * offered to the overlay, so a tip with no room there is pushed rather than moved\n * to the opposite side. */\n readonly dsTooltipPlacement = input<TooltipPlacement>('top');\n /** Milliseconds before the tip appears. Hiding is immediate — this delay only ever\n * suppresses a tip the pointer passed over on its way somewhere else. */\n readonly dsTooltipDelay = input<number>(120);\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs, when focus is involved. A host that is not\n * focusable itself never reaches a screen reader — `ds-menu-item` carries\n * `role=\"none\"` and puts the real `<button>` inside — so describing the host\n * describes something the user never focuses. `focusin` bubbles, so its target\n * IS whatever took focus; recording it is what keeps this directive out of the\n * host component's internal DOM. A pointer-only open leaves this null and\n * falls back to the host, where no screen reader is involved anyway.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was actually written, remembered so teardown strips\n * it from the same element. Not derivable at teardown: focus can arrive after\n * the panel opened (hover, then click or arrow onto it), which moves\n * `focusedTarget` and would otherwise strand the attribute on the host,\n * pointing at a panel that no longer exists.\n */\n private describedElement: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (!this.dsTooltip()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(() => this.show(), this.dsTooltipDelay());\n }\n\n // Close on activation too: clicking the thing the tip describes is a clear\n // dismiss, and a re-rendered anchor (e.g. a navigated sidenav item) under a\n // stationary cursor fires no mouseleave, which would otherwise strand the panel.\n @HostListener('mouseleave')\n @HostListener('click')\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.disposeRef();\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // A re-render or re-entrant hover can call show() with a panel still open;\n // dispose it first so the OverlayRef isn't leaked and aria-describedby\n // doesn't accumulate the same id twice.\n this.disposeRef();\n const placement = this.dsTooltipPlacement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions([this.positionFor(placement)]);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n cmpRef.setInput('text', this.dsTooltip());\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('panelId', this.tipId);\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n private positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -8,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: 8,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -8,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: 8,\n };\n }\n }\n\n ngOnDestroy(): void {\n this.onClose();\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '../../icons/icon.component';\nimport { TooltipDirective } from '../tooltip/tooltip.directive';\nimport type { IconName } from '../../icons/icons.data';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target — string or array form for dynamic segments. */\n readonly routerLink = input<string | readonly unknown[] | null>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item — non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item,\n * `preventDefault()` intercepts navigation (e.g. a docs sidebar driving\n * scroll-spy); a `routerLink` item navigates regardless — Angular's\n * RouterLink ignores `defaultPrevented` — so treat it as a click hook there. */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent\n * `ds-sidenav`, then on — the same \"null means not deciding\" reading as the rest\n * of the library, so a sidenav-wide `[rail]=\"false\"` is not fought per item. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only name the link via aria-label when collapsed (icon-only, the .item-label\n // is display:none). Expanded, the visible label names it and any aria-label\n // would override it — suppressing the badge count / alert dot from the name.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, not from here,\n // so the rail opt-out has to be a class of its own rather than folded in.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Selector-scoped slots ([icon], [trailing]) coexist with no default\n <ng-content> here — projection goes via attributes only, so consumers\n can compose icon + label + arbitrary trailing content (status pill,\n status icon, etc.). The two <a> variants (routerLink vs href) share one\n #content template so the inner markup isn't duplicated. -->\n@if (routerLink()) {\n <a\n #rla=\"routerLinkActive\"\n routerLinkActive=\"active\"\n dsTooltipPlacement=\"right\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"rla.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n dsTooltipPlacement=\"right\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so not a link: an `href=\"#\"` navigates — it rewrites the URL\n and discards the scroll position on every click. An item that only emits\n `activate` is a button. -->\n <button\n type=\"button\"\n dsTooltipPlacement=\"right\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\"\n >\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { IconComponent } from '../../icons/icon.component';\nimport { AvatarComponent } from '../avatar/avatar.component';\nimport { MenuComponent } from '../menu/menu.component';\nimport { MenuItemComponent } from '../menu/menu-item.component';\nimport { MenuDividerComponent } from '../menu/menu-divider.component';\nimport { PopoverComponent } from '../popover/popover.component';\nimport type {\n SidenavAlertItem,\n SidenavSearchProvider,\n SidenavSearchResult,\n} from './sidenav-footer.types';\n\ninterface SearchGroup {\n group: string;\n items: SidenavSearchResult[];\n}\n\n/**\n * Bottom block of the app sidenav: quick actions (Search / Alerts / Collapse)\n * and the signed-in user with an account menu (popover). Pinned to the bottom\n * via `margin-top: auto`. Collapse is driven by the parent (emits\n * `collapseToggled`, reflects `collapsed`); sign-out is delegated to the parent\n * (emits `signOutSelected`) so the layout keeps a single logout path.\n */\n@Component({\n selector: 'ds-sidenav-footer',\n standalone: true,\n imports: [\n IconComponent,\n AvatarComponent,\n PopoverComponent,\n MenuComponent,\n MenuItemComponent,\n MenuDividerComponent,\n ],\n templateUrl: './sidenav-footer.component.html',\n styleUrl: './sidenav-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { '[class.collapsed]': 'collapsed()' },\n})\nexport class SidenavFooterComponent {\n private readonly router = inject(Router);\n\n /** Name shown in the footer's account row. */\n readonly userName = input('');\n /** Secondary line under the name (role / organisation). */\n readonly userRole = input('');\n /** Show the unread dot on the Alerts row. */\n readonly alerts = input(false);\n /** Mirrors the rail's collapsed state — labels hide, the avatar + icons stay. */\n readonly collapsed = input(false);\n /** When set, the Search row opens a live results popover; unset keeps it inert. */\n readonly searchProvider = input<SidenavSearchProvider | null>(null);\n /** When non-null (even empty) the Alerts row opens a list popover; null keeps it inert. */\n readonly alertItems = input<readonly SidenavAlertItem[] | null>(null);\n /** Route for the account menu's \"Your profile\"; empty = the item is a no-op. */\n readonly profileRoute = input('');\n\n /** The collapse control was activated. The footer does not collapse itself — `ds-app-layout`\n * owns the rail state, so the host relays this. */\n readonly collapseToggled = output<void>();\n /** Emitted when the Alerts popover is opened, so the layout can mark-all-read. */\n readonly alertsOpened = output<void>();\n /** Emitted when \"Sign out\" is chosen; the layout owns the actual logout flow. */\n readonly signOutSelected = output<void>();\n\n protected readonly query = signal('');\n\n protected readonly initials = computed(() => {\n const parts = this.userName().trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) {\n return '';\n }\n\n return (parts[0][0] + (parts[1]?.[0] ?? '')).toUpperCase();\n });\n\n /** Run the provider for the current query, grouped by `group` for display. */\n protected searchGroups(provider: SidenavSearchProvider): SearchGroup[] {\n const query = this.query().trim();\n if (!query) {\n return [];\n }\n\n const groups: SearchGroup[] = [];\n for (const result of provider(query)) {\n let group = groups.find((candidate) => candidate.group === result.group);\n if (!group) {\n group = { group: result.group, items: [] };\n groups.push(group);\n }\n\n group.items.push(result);\n }\n\n return groups;\n }\n\n protected goResult(result: SidenavSearchResult): void {\n this.query.set('');\n void this.router.navigate(\n [result.route],\n result.queryParams ? { queryParams: result.queryParams } : {},\n );\n }\n\n /** Activate the top result (Enter key). Returns whether a result was opened. */\n protected goFirst(provider: SidenavSearchProvider): boolean {\n const first = this.searchGroups(provider)[0]?.items[0];\n if (!first) {\n return false;\n }\n\n this.goResult(first);\n\n return true;\n }\n\n protected goAlert(alert: SidenavAlertItem): void {\n if (alert.route) {\n void this.router.navigate([alert.route]);\n }\n }\n\n protected goProfile(): void {\n if (this.profileRoute()) {\n void this.router.navigate([this.profileRoute()]);\n }\n }\n}\n","@if (searchProvider(); as provider) {\n <button\n #searchTrigger\n type=\"button\"\n class=\"row\"\n aria-label=\"Search\"\n [attr.aria-expanded]=\"searchPop.opened()\"\n (click)=\"searchPop.toggle(searchTrigger)\"\n >\n <ds-icon\n name=\"search\"\n [size]=\"20\"\n />\n\n <span class=\"label\">\n Search\n </span>\n </button>\n\n <ds-popover\n #searchPop\n align=\"start\"\n panelRole=\"dialog\"\n panelLabel=\"Search\"\n >\n <div class=\"search-panel\">\n <div class=\"search-box\">\n <ds-icon\n name=\"search\"\n [size]=\"18\"\n />\n\n <input\n #searchInput\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Search…\"\n autocomplete=\"off\"\n aria-label=\"Search\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n (keydown.enter)=\"goFirst(provider) && searchPop.close()\"\n (keydown.escape)=\"searchPop.close()\"\n />\n\n @if (query()) {\n <button\n type=\"button\"\n class=\"clear\"\n aria-label=\"Clear\"\n (click)=\"query.set(''); searchInput.focus()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n />\n </button>\n }\n </div>\n\n @if (query().trim()) {\n @for (group of searchGroups(provider); track group.group) {\n <p class=\"heading\">\n {{ group.group }}\n </p>\n\n @for (result of group.items; track result.id) {\n <button\n type=\"button\"\n class=\"result\"\n (click)=\"searchPop.close(); goResult(result)\"\n >\n @if (result.icon) {\n <ds-icon\n [name]=\"result.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"text\">\n <span class=\"title\">\n {{ result.label }}\n </span>\n\n @if (result.sublabel) {\n <span class=\"subtitle\">\n {{ result.sublabel }}\n </span>\n }\n </span>\n </button>\n }\n } @empty {\n <p class=\"empty\">\n No matches for “{{ query().trim() }}”.\n </p>\n }\n } @else {\n <p class=\"empty\">\n Type to search.\n </p>\n }\n </div>\n </ds-popover>\n} @else {\n <button\n type=\"button\"\n class=\"row\"\n >\n <ds-icon\n name=\"search\"\n [size]=\"20\"\n />\n\n <span class=\"label\">\n Search\n </span>\n </button>\n}\n\n@if (alertItems(); as items) {\n <button\n #alertTrigger\n type=\"button\"\n class=\"row\"\n aria-label=\"Alerts\"\n [attr.aria-expanded]=\"alertsPop.opened()\"\n (click)=\"\n !alertsPop.opened() && alertsOpened.emit(); alertsPop.toggle(alertTrigger)\n \"\n >\n <ds-icon\n name=\"bell\"\n [size]=\"20\"\n />\n\n <span class=\"label\">\n Alerts\n </span>\n\n @if (alerts()) {\n <span\n class=\"dot\"\n aria-hidden=\"true\"\n >\n </span>\n }\n </button>\n\n <ds-popover\n #alertsPop\n align=\"start\"\n panelRole=\"dialog\"\n panelLabel=\"Alerts\"\n >\n <div class=\"alerts-panel\">\n <p class=\"heading\">\n Alerts\n </p>\n\n @for (alert of items; track alert.id) {\n <button\n type=\"button\"\n class=\"alert\"\n (click)=\"alertsPop.close(); goAlert(alert)\"\n >\n <span class=\"icon {{ alert.variant }}\">\n <ds-icon\n [name]=\"alert.icon\"\n [size]=\"16\"\n />\n </span>\n\n <span class=\"text\">\n <span class=\"header\">\n <span class=\"title\">\n {{ alert.title }}\n </span>\n\n @if (alert.at) {\n <span class=\"time\">\n {{ alert.at }}\n </span>\n }\n </span>\n\n <span class=\"body\">\n {{ alert.body }}\n </span>\n </span>\n </button>\n } @empty {\n <p class=\"empty\">\n You’re all caught up.\n </p>\n }\n </div>\n </ds-popover>\n} @else {\n <button\n type=\"button\"\n class=\"row\"\n >\n <ds-icon\n name=\"bell\"\n [size]=\"20\"\n />\n\n <span class=\"label\">\n Alerts\n </span>\n\n @if (alerts()) {\n <span\n class=\"dot\"\n aria-hidden=\"true\"\n >\n </span>\n }\n </button>\n}\n\n<button\n type=\"button\"\n class=\"row\"\n (click)=\"collapseToggled.emit()\"\n>\n <ds-icon\n [name]=\"collapsed() ? 'chevronRight' : 'chevronLeft'\"\n [size]=\"20\"\n />\n\n <span class=\"label\">\n Collapse\n </span>\n</button>\n\n@if (userName()) {\n <div class=\"divider\"></div>\n\n <div class=\"profile\">\n <ds-avatar\n size=\"sm\"\n [initials]=\"initials()\"\n />\n\n <span class=\"profile-text\">\n <span class=\"name\">\n {{ userName() }}\n </span>\n\n @if (userRole()) {\n <span class=\"role\">\n {{ userRole() }}\n </span>\n }\n </span>\n\n <button\n #accountTrigger\n type=\"button\"\n class=\"more\"\n aria-label=\"Account menu\"\n [attr.aria-expanded]=\"accountPop.opened()\"\n (click)=\"accountPop.toggle(accountTrigger)\"\n >\n <ds-icon\n name=\"moreV\"\n [size]=\"18\"\n />\n </button>\n\n <ds-popover\n #accountPop\n align=\"end\"\n panelRole=\"menu\"\n panelLabel=\"Account\"\n >\n <ds-menu>\n <p class=\"heading\">\n Signed in as {{ userName() }}\n </p>\n\n <ds-menu-item\n icon=\"user\"\n (pressed)=\"goProfile()\"\n >\n Your profile\n </ds-menu-item>\n\n <ds-menu-item icon=\"settings\">\n Account settings\n </ds-menu-item>\n\n <ds-menu-item icon=\"help\">\n Help & support\n </ds-menu-item>\n\n <ds-menu-divider />\n\n <ds-menu-item\n icon=\"logout\"\n [error]=\"true\"\n (pressed)=\"signOutSelected.emit()\"\n >\n Sign out\n </ds-menu-item>\n </ds-menu>\n </ds-popover>\n </div>\n}\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-topbar',\n standalone: true,\n templateUrl: './topbar.component.html',\n styleUrl: './topbar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TopBarComponent {}\n","<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-page-header',\n standalone: true,\n templateUrl: './page-header.component.html',\n styleUrl: './page-header.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class PageHeaderComponent {\n /** Small label shown above the title. */\n readonly eyebrow = input<string>('');\n /** Page title, rendered as the `h1`. */\n readonly title = input<string>('');\n /** Supporting line shown under the title. */\n readonly subtitle = input<string>('');\n /** Tightens spacing for dense layouts. */\n readonly compact = input(false, { transform: booleanAttribute });\n /** Shows a rule under the whole header. */\n readonly divider = input(false, { transform: booleanAttribute });\n /** Shows a rule under the meta row only. */\n readonly metaDivider = input(false, { transform: booleanAttribute });\n\n protected readonly classes = computed(() => {\n const parts = ['page-header'];\n if (this.compact()) {\n parts.push('compact');\n }\n if (this.divider()) {\n parts.push('with-divider');\n }\n if (this.metaDivider()) {\n parts.push('with-meta-divider');\n }\n\n return parts.join(' ');\n });\n}\n","<header [class]=\"classes()\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"row title-row\">\n <div class=\"title-block\">\n @if (eyebrow()) {\n <div class=\"eyebrow\">\n {{ eyebrow() }}\n </div>\n }\n\n <div class=\"title-line\">\n @if (title()) {\n <h1 class=\"title\">\n {{ title() }}\n </h1>\n }\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n\n <div class=\"meta\">\n <ng-content select=\"[meta]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n\n <ng-content select=\"[tabs]\"></ng-content>\n</header>\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '../../core/ds-config';\n\n/**\n * Resolve `dividers` against the app-level default — same `null`-means-unset\n * shape as `resolveReserveMessage`, and see it for why.\n *\n * Both `ds-modal` and `ds-modal-card` call this, which is the point: a\n * `ModalService` confirm renders a card with no `ds-modal` ancestor, so an\n * attribute on the element cannot reach it and only the injected default can.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '../../core/status';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n /** Card width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and\n * the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the\n * default) is a neutral dialog. It picks an icon as well as a tint because a tint\n * alone signals by colour only; `icon` overrides the pick.\n *\n * `false` and `undefined` land on null too, so a template can bind the short\n * `[status]=\"isDangerous && 'error'\"` instead of spelling out the ternary. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a\n * dialog that interrupts with something the reader must act on — and anything\n * else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n /** Status picks the glyph so a severity is never carried by colour alone. */\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\"\n>\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\"\n />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '../static-preview.directive';\nimport { BodyScrollLockService } from '../../overlay/body-scroll-lock.service';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '../../core/status';\nimport { backdropDismiss } from '../../core/backdrop-dismiss';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card — drives its icon-badge tint, title colour,\n * default icon and ARIA role. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card is told rather than resolving a\n * second time — the two would disagree if a provider sat between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n /** Dialog is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the scrim fade-out leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted\n // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview\n // (always shown). Reduced-motion zeroes the durations → close is instant.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with drawer/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\"\n >\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '../../icons/icons.data';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase — a guard for high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '../button/button.component';\nimport type { ButtonColor } from '../button/button.types';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\"\n>\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\"\n >\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\"\n />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\"\n >\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\"\n >\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '../overlay-motion';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // Paint the scrim via the DS token rather than relying on CDK's prebuilt\n // dark-backdrop CSS (which the library doesn't ship). Matches ds-modal.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { BannerVariant } from './banner.types';\n\n@Component({\n selector: 'ds-banner',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './banner.component.html',\n styleUrl: './banner.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class BannerComponent {\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<BannerVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Tighter padding, centred items, single-line title. */\n readonly compact = input(false, { transform: booleanAttribute });\n /** `'stacked'` wraps actions onto their own line; `'row'` keeps them inline. */\n readonly layout = input<'stacked' | 'row'>('stacked');\n /** Coloured accent rail on the leading edge; set false to hide it. */\n readonly accentRail = input(true, { transform: booleanAttribute });\n /** Fires when the user dismisses the banner. */\n readonly closed = output<void>();\n\n @HostBinding('class.no-rail')\n protected get noRail(): boolean {\n return !this.accentRail();\n }\n\n /** Announce this banner to a screen reader when it appears.\n *\n * Off by default: an `alert` region fires on INSERTION, so a banner that is page\n * furniture would interrupt the reader on every route into the page. Turn it on for\n * one the app raises in response to an event; for anything transient prefer\n * `ToastService`, which owns a live region built for the purpose. */\n readonly announce = input(false, { transform: booleanAttribute });\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n if (!this.announce()) {\n return null;\n }\n const value = this.variant();\n\n return value === 'error' || value === 'warning' || value === 'severe'\n ? 'alert'\n : 'status';\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announce()) {\n return null;\n }\n\n return this.ariaRole === 'alert' ? 'assertive' : 'polite';\n }\n\n protected readonly classes = computed(() => {\n const parts = ['banner', this.variant(), `layout-${this.layout()}`];\n if (this.compact()) {\n parts.push('compact');\n }\n\n return parts.join(' ');\n });\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning' || variant === 'severe') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"20\"\n >\n </ds-icon>\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n\n <!-- Wrapped so `:empty` can answer \"is there a body?\" — projected content is\n usually a bare text node, which no selector can otherwise tell from\n nothing at all. -->\n <span class=\"text\">\n <ng-content></ng-content>\n </span>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n</div>\n","import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { AlertVariant } from './alert.types';\n\n@Component({\n selector: 'ds-alert',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './alert.component.html',\n styleUrl: './alert.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AlertComponent {\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<AlertVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Fires when the user dismisses the alert. */\n readonly closed = output<void>();\n\n /** Announce this alert to a screen reader when it appears. Off by default — see\n * `ds-banner`'s `announce` for why, and prefer `ToastService` for anything\n * transient. */\n readonly announce = input(false, { transform: booleanAttribute });\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n if (!this.announce()) {\n return null;\n }\n const value = this.variant();\n\n return value === 'error' || value === 'warning' ? 'alert' : 'status';\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announce()) {\n return null;\n }\n\n return this.ariaRole === 'alert' ? 'assertive' : 'polite';\n }\n\n protected readonly classes = computed(() => `alert ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected readonly resolvedIcon = computed<IconName>(\n () => this.icon() ?? this.defaultIcon(),\n );\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\"\n >\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n }\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { DropzoneFile } from './dropzone.types';\n\n@Component({\n selector: 'ds-dropzone',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './dropzone.component.html',\n styleUrl: './dropzone.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DropzoneComponent {\n /** Native `accept` attribute — comma-separated MIME types or extensions. */\n readonly accept = input<string>('');\n /** Allows picking more than one file at once (ignored when `single`). */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Files shown in the list — the consumer owns upload state and progress. */\n readonly files = model<DropzoneFile[]>([]);\n /** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */\n readonly single = input(false, { transform: booleanAttribute });\n\n protected readonly dragOver = signal<boolean>(false);\n\n /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */\n readonly filesAdded = output<File[]>();\n /** Fires when the user removes a file; unlike `filesAdded`, the consumer must remove the matching entry from `files` itself. */\n readonly fileRemoved = output<DropzoneFile>();\n\n protected readonly classes = computed(() => {\n const parts = ['dropzone'];\n if (this.dragOver()) {\n parts.push('active');\n }\n if (this.files().length > 0) {\n parts.push('has-files');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n if (this.single()) {\n parts.push('single');\n }\n\n return parts.join(' ');\n });\n\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) {\n return;\n }\n event.preventDefault();\n this.dragOver.set(true);\n }\n\n protected onDragLeave(): void {\n this.dragOver.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n event.preventDefault();\n this.dragOver.set(false);\n if (this.disabled()) {\n return;\n }\n const list = event.dataTransfer?.files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onPickerChange(event: Event): void {\n if (this.disabled()) {\n return;\n }\n const list = (event.target as HTMLInputElement).files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onRemove(file: DropzoneFile): void {\n this.fileRemoved.emit(file);\n }\n\n protected fileMeta(file: DropzoneFile): string {\n const size = this.formatSize(file.size);\n if (file.message) {\n return `${size} · ${file.message}`;\n }\n if (file.state === 'queued') {\n return size;\n }\n\n return `${size} · ${file.state}`;\n }\n\n protected formatSize(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${(bytes / 1024).toFixed(1)} KB`;\n }\n\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n }\n\n protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error' {\n if (state === 'success') {\n return 'check';\n }\n if (state === 'error') {\n return 'error';\n }\n\n return 'file';\n }\n}\n","<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n>\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\"\n />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\"\n >\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\"\n >\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\"\n >\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n","import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport { LoadingOverlayComponent } from '../loading-overlay/loading-overlay.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { EmptyStateVariant } from './empty-state.types';\n\n@Component({\n selector: 'ds-empty-state',\n standalone: true,\n imports: [IconComponent, LoadingOverlayComponent],\n templateUrl: './empty-state.component.html',\n styleUrl: './empty-state.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class EmptyStateComponent {\n /** State — drives the default icon and shows a loading overlay when `'loading'`. */\n readonly variant = input<EmptyStateVariant>('none');\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional heading below the icon. */\n readonly title = input<string>('');\n /** Optional supporting text below the title. */\n readonly body = input<string>('');\n\n protected readonly classes = computed(() => {\n const variant = this.variant();\n\n return variant === 'none' ? 'empty-state' : `empty-state ${variant}`;\n });\n\n protected readonly resolvedIcon = computed<IconName>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n const variant = this.variant();\n if (variant === 'error') {\n return 'warn';\n }\n if (variant === 'locked') {\n return 'lock';\n }\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'loading') {\n return 'package';\n }\n\n return 'package';\n });\n}\n","<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\"\n>\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\"\n >\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport type { ProgressVariant } from './progress.types';\n\n@Component({\n selector: 'ds-progress',\n standalone: true,\n imports: [],\n templateUrl: './progress.component.html',\n styleUrl: './progress.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class ProgressComponent {\n /** Progress 0–100; clamped, and ignored while `indeterminate`. */\n readonly value = input<number>(0);\n /** Colour variant — drives the success/warning/error styling. */\n readonly variant = input<ProgressVariant>('default');\n /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Accessible name for the progress bar (e.g. \"Upload progress\"). */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n\n return Math.max(0, Math.min(100, value));\n });\n\n protected readonly isIndet = computed(() => this.indeterminate());\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"clampedValue()\"></span>\n}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multi: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\"\n>\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\"\n />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\"\n>\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multi = input(true, { transform: booleanAttribute });\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multi()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\n\n/** Where the step caption sits relative to its node: stacked beneath it\n * (`bottom`, full-width wizard) or beside it (`inline`, compact header row). */\nexport type StepperLabelPosition = 'bottom' | 'inline';\n\n/** Layout axis of the stepper. */\nexport type StepperOrientation = 'horizontal' | 'vertical';\n\n@Component({\n selector: 'ds-stepper',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './stepper.component.html',\n styleUrl: './stepper.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n 'aria-label': 'Progress',\n '[class.labels-inline]': \"labelPosition() === 'inline'\",\n '[class.is-vertical]': \"orientation() === 'vertical'\",\n },\n})\nexport class StepperComponent {\n /** Step labels, in order — one node is rendered per entry. */\n readonly steps = input<readonly string[]>([]);\n /** Zero-based index of the active step; earlier steps render as completed. */\n readonly current = input<number>(0);\n /** Where the step caption sits relative to its node. */\n readonly labelPosition = input<StepperLabelPosition>('bottom');\n /** Layout axis of the stepper. */\n readonly orientation = input<StepperOrientation>('horizontal');\n /** When true, each step node renders as a button and emits its index on activation. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Zero-based indices of steps in an error state. Error wins over completed/current/upcoming. */\n readonly errorSteps = input<readonly number[]>([]);\n\n /** Fires with a step's index when it's activated (only when `clickable`). */\n readonly stepClicked = output<number>();\n\n protected stepState(\n index: number,\n ): 'error' | 'completed' | 'current' | 'upcoming' {\n if (this.errorSteps().includes(index)) {\n return 'error';\n }\n const currentStep = this.current();\n if (index < currentStep) {\n return 'completed';\n }\n if (index === currentStep) {\n return 'current';\n }\n\n return 'upcoming';\n }\n\n protected nodeClass(index: number): string {\n const state = this.stepState(index);\n if (state === 'error') {\n return 'node error';\n }\n if (state === 'completed') {\n return 'node done';\n }\n if (state === 'current') {\n return 'node active';\n }\n\n return 'node';\n }\n\n protected connectorClass(index: number): string {\n return index < this.current() && !this.errorSteps().includes(index)\n ? 'connector done'\n : 'connector';\n }\n\n protected onStepClick(index: number): void {\n if (this.clickable()) {\n this.stepClicked.emit(index);\n }\n }\n}\n","@for (label of steps(); track $index; let i = $index, last = $last) {\n <span\n role=\"listitem\"\n class=\"step\"\n [class.is-current]=\"i === current()\"\n [attr.aria-current]=\"i === current() ? 'step' : null\"\n >\n @if (clickable()) {\n <button\n type=\"button\"\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\"\n (click)=\"onStepClick(i)\"\n >\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\"\n />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\"\n />\n } @else {\n {{ i + 1 }}\n }\n </button>\n } @else {\n <span\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\"\n >\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\"\n />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\"\n />\n } @else {\n {{ i + 1 }}\n }\n </span>\n }\n\n <span\n aria-hidden=\"true\"\n class=\"step-label\"\n >\n {{ label }}\n </span>\n\n @if (!last) {\n <span\n aria-hidden=\"true\"\n [class]=\"connectorClass(i)\"\n >\n </span>\n }\n\n <span class=\"visually-hidden\">\n Step {{ i + 1 }}: {{ label }} ({{ stepState(i) }})\n </span>\n </span>\n}\n","import type { DsToastPosition } from '../../core/toast-position';\n\nexport const DS_TOAST_POSITION_DEFAULT: DsToastPosition = {\n horizontalPosition: 'right',\n verticalPosition: 'top',\n offset: 'var(--space-6)',\n};\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport type { IconName } from '../../icons/icons.data';\nimport type { ToastAction, ToastVariant } from './toast.types';\n\n/**\n * Single toast pill. Consumed by ToastRegion for service-driven runtime toasts\n * AND by static showcases that need to display a toast specimen inline.\n */\n@Component({\n selector: 'ds-toast',\n standalone: true,\n imports: [IconComponent, SpinnerComponent],\n templateUrl: './toast.component.html',\n styleUrl: './toast.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToastComponent {\n /** Severity — drives colour and the default icon or spinner. */\n readonly variant = input<ToastVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** The same field `ToastOptions.body` carries, so a specimen and a raised toast agree. */\n readonly body = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional action button rendered before the dismiss control. */\n readonly action = input<ToastAction | null>(null);\n /** Fires when the toast is dismissed or its action is invoked. */\n readonly closed = output<void>();\n\n protected readonly isLoading = computed(() => this.variant() === 'loading');\n\n protected onAction(action: ToastAction): void {\n action.handler();\n this.closed.emit();\n }\n\n protected readonly classes = computed(() => `toast ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n switch (this.variant()) {\n case 'success':\n return 'success';\n case 'warning':\n return 'warn';\n case 'error':\n return 'error';\n default:\n return 'info';\n }\n });\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<!-- No role or aria-live: a region created with its text already in it announces\n nothing, so ToastService speaks through the CDK LiveAnnouncer. A hand-placed\n <ds-toast> is therefore silent to a reader — it is a specimen, not an event. -->\n<div [class]=\"classes()\">\n @if (isLoading()) {\n <!-- aria-hidden because ds-spinner is a role=\"status\" of its own: the message is\n announced by ToastService, and a nested live region would speak twice. -->\n <ds-spinner\n class=\"icon\"\n size=\"sm\"\n aria-hidden=\"true\"\n />\n } @else {\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"16\"\n />\n }\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n {{ body() }}\n <ng-content></ng-content>\n </div>\n\n @if (action(); as act) {\n <button\n type=\"button\"\n class=\"action\"\n (click)=\"onAction(act)\"\n >\n {{ act.label }}\n </button>\n }\n\n <span class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n","import {\n DestroyRef,\n ElementRef,\n Component,\n ViewEncapsulation,\n effect,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { DS_CONFIG } from '../../core/ds-config';\nimport { devWarn } from '../../core/dev-warning';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport { ToastComponent } from './toast.component';\nimport type { ToastEntry } from './toast.types';\n\n// Only the floor: see leaveDuration(), which reads the real length off the node.\nconst LEAVE_FALLBACK_MS = 180;\n\n// A toast whose clock ran out while the pointer was over it should not vanish the\n// instant the pointer leaves — the reader gets this much to see it go.\nconst MIN_RESUME_MS = 600;\n\nconst DEFAULT_MAX_VISIBLE = 5;\n\n@Component({\n selector: 'ds-toast-region',\n standalone: true,\n imports: [ToastComponent],\n templateUrl: './toast-region.component.html',\n styleUrl: './toast-region.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'region',\n 'aria-label': 'Notifications',\n '(mouseenter)': 'onHover(true)',\n '(mouseleave)': 'onHover(false)',\n '(focusin)': 'onFocusWithin(true)',\n '(focusout)': 'onFocusWithin($event)',\n },\n})\nexport class ToastRegionComponent {\n /** Cap on concurrently visible toasts. Extras are queued and shown as\n * earlier ones dismiss. `0` = unlimited. */\n readonly maxVisible = input<number>(DEFAULT_MAX_VISIBLE);\n\n protected readonly visibleEntries = signal<readonly ToastEntry[]>([]);\n protected readonly leaving = signal<ReadonlySet<number>>(new Set());\n\n private readonly pendingQueue: ToastEntry[] = [];\n private readonly timers = new Map<number, number>();\n private readonly leaveTimers = new Map<number, number>();\n private readonly remaining = new Map<number, number>();\n private readonly startedAt = new Map<number, number>();\n private hovered = false;\n private focusWithin = false;\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly position = inject(DS_CONFIG).toast?.position;\n\n constructor() {\n devWarn(() =>\n this.maxVisible() < 0\n ? `<ds-toast-region> maxVisible is ${this.maxVisible()}; a negative cap means unlimited, which is what 0 says. Pass 0 if that is the intent.`\n : null,\n );\n effect(() => {\n this.maxVisible();\n this.drainQueue();\n });\n // An uncancelled timer fires into a destroyed component: invisible in an app that\n // never tears the root down, a stream of \"N timers still in the queue\" under fakeAsync.\n inject(DestroyRef).onDestroy(() => {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n });\n }\n\n /** Newest goes NEAREST the anchor, so the toast that just fired appears where the\n * stack is pinned rather than at the far end of a list the reader has to hunt\n * down. DOM order is the visual order, so this also keeps the reading order. */\n private readonly newestFirst =\n (this.position?.verticalPosition ??\n DS_TOAST_POSITION_DEFAULT.verticalPosition) === 'top';\n\n add(entry: ToastEntry): void {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n this.pendingQueue.push(entry);\n\n return;\n }\n\n this.show(entry);\n }\n\n private show(entry: ToastEntry): void {\n const before = this.measureTops();\n this.visibleEntries.update((existing) =>\n this.newestFirst ? [entry, ...existing] : [...existing, entry],\n );\n this.arm(entry.id, entry.durationMs);\n this.slideNeighbours(before);\n }\n\n /** FLIP, rather than the usual absolute stack: absolute positioning collapses the region\n * to zero height, and it lives in a CDK pane sized to its content, so the hit area goes\n * with it. */\n private slideNeighbours(before: Map<number, number>): void {\n if (!before.size) {\n return;\n }\n requestAnimationFrame(() => {\n const nodes = this.toastNodes();\n const deltas: [HTMLElement, number][] = [];\n for (const [id, node] of nodes) {\n const previousTop = before.get(id);\n if (previousTop === undefined) {\n continue;\n }\n const delta = previousTop - node.getBoundingClientRect().top;\n if (delta) {\n deltas.push([node, delta]);\n }\n }\n for (const [node, delta] of deltas) {\n node.style.setProperty('--_toast-shift', `${delta}px`);\n node.classList.add('shifting');\n }\n requestAnimationFrame(() => {\n for (const [node] of deltas) {\n node.classList.remove('shifting');\n node.style.removeProperty('--_toast-shift');\n }\n });\n });\n }\n\n private toastNodes(): Map<number, HTMLElement> {\n const nodes = new Map<number, HTMLElement>();\n const elements =\n this.host.nativeElement.querySelectorAll<HTMLElement>('ds-toast');\n this.visibleEntries().forEach((entry, index) => {\n const node = elements[index];\n if (node) {\n nodes.set(entry.id, node);\n }\n });\n\n return nodes;\n }\n\n private measureTops(): Map<number, number> {\n const tops = new Map<number, number>();\n for (const [id, node] of this.toastNodes()) {\n tops.set(id, node.getBoundingClientRect().top);\n }\n\n return tops;\n }\n\n private arm(id: number, remaining: number): void {\n if (remaining <= 0) {\n return;\n }\n this.remaining.set(id, remaining);\n // A toast can be armed with no user event anywhere near it — drainQueue runs from a\n // timeout — so this has to bank rather than trust that a pause event will follow.\n if (this.hovered || this.focusWithin) {\n this.startedAt.delete(id);\n\n return;\n }\n this.startedAt.set(id, Date.now());\n const existing = this.timers.get(id);\n if (existing !== undefined) {\n window.clearTimeout(existing);\n }\n this.timers.set(\n id,\n window.setTimeout(() => this.remove(id), remaining),\n );\n }\n\n private clearCountdown(id: number): void {\n const timer = this.timers.get(id);\n if (timer !== undefined) {\n window.clearTimeout(timer);\n this.timers.delete(id);\n }\n this.remaining.delete(id);\n this.startedAt.delete(id);\n }\n\n protected onHover(entered: boolean): void {\n this.hovered = entered;\n this.syncPause();\n }\n\n // `focusout` bubbles, so it also fires when focus moves BETWEEN elements inside the region —\n // tabbing from the action to the close button. Without the containment check that reads as\n // leaving, and every round trip re-floors the remainder at MIN_RESUME_MS.\n protected onFocusWithin(event: FocusEvent | true): void {\n this.focusWithin =\n event === true ||\n (event.relatedTarget instanceof Node &&\n this.host.nativeElement.contains(event.relatedTarget));\n this.syncPause();\n }\n\n private syncPause(): void {\n const shouldPause = this.hovered || this.focusWithin;\n if (shouldPause === this.paused) {\n return;\n }\n if (shouldPause) {\n this.pauseAll();\n } else {\n this.resumeAll();\n }\n }\n\n private get paused(): boolean {\n return this.timers.size === 0 && this.remaining.size > 0;\n }\n\n private pauseAll(): void {\n const now = Date.now();\n for (const [id, timer] of this.timers) {\n window.clearTimeout(timer);\n const left =\n (this.remaining.get(id) ?? 0) - (now - (this.startedAt.get(id) ?? now));\n this.remaining.set(id, Math.max(left, MIN_RESUME_MS));\n }\n this.timers.clear();\n }\n\n private resumeAll(): void {\n for (const [id, left] of [...this.remaining]) {\n this.arm(id, left);\n }\n }\n\n /** Replace fields of an already-visible or queued toast in place. Patching\n * `durationMs` restarts the clock, and on a QUEUED toast it takes effect only on\n * promotion — otherwise a duration would burn down while the toast is invisible. */\n update(\n id: number,\n patch: Partial<\n Pick<\n ToastEntry,\n 'body' | 'title' | 'variant' | 'dismissible' | 'action' | 'durationMs'\n >\n >,\n ): void {\n const inVisible = this.visibleEntries().some((entry) => entry.id === id);\n if (inVisible) {\n this.visibleEntries.update((entries) =>\n entries.map((entry) =>\n entry.id === id ? { ...entry, ...patch } : entry,\n ),\n );\n if (patch.durationMs !== undefined) {\n this.clearCountdown(id);\n this.arm(id, patch.durationMs);\n }\n\n return;\n }\n const queueIndex = this.pendingQueue.findIndex((entry) => entry.id === id);\n if (queueIndex !== -1) {\n this.pendingQueue[queueIndex] = {\n ...this.pendingQueue[queueIndex],\n ...patch,\n };\n }\n }\n\n remove(id: number): void {\n // A `ToastRef` outlives its toast, so dismiss() can arrive for an id nothing holds.\n const isVisible = this.visibleEntries().some((entry) => entry.id === id);\n const queueIndex = this.pendingQueue.findIndex((entry) => entry.id === id);\n if (!isVisible && queueIndex === -1) {\n return;\n }\n\n this.clearCountdown(id);\n if (queueIndex !== -1) {\n this.pendingQueue.splice(queueIndex, 1);\n\n return;\n }\n if (this.leaving().has(id)) {\n return;\n }\n this.leaving.update((set) => new Set(set).add(id));\n this.leaveTimers.set(\n id,\n window.setTimeout(() => {\n this.leaveTimers.delete(id);\n this.visibleEntries.update((existing) =>\n existing.filter((entry) => entry.id !== id),\n );\n this.leaving.update((set) => {\n const next = new Set(set);\n next.delete(id);\n\n return next;\n });\n this.drainQueue();\n }, this.leaveDuration(id)),\n );\n }\n\n /** The leave transition is a public token, so its length is whatever the consumer\n * set — read it off the node rather than assuming. Reduced motion zeroes it, which\n * is why the floor applies only when there is nothing to measure. */\n private leaveDuration(id: number): number {\n const node = this.toastNodes().get(id);\n if (!node) {\n return LEAVE_FALLBACK_MS;\n }\n const declared = getComputedStyle(node)\n .transitionDuration.split(',')\n .map((part) => parseFloat(part) * 1000)\n .filter((ms) => !Number.isNaN(ms));\n\n return declared.length ? Math.max(...declared) : LEAVE_FALLBACK_MS;\n }\n\n protected isLeaving(id: number): boolean {\n return this.leaving().has(id);\n }\n\n clear(): void {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n this.remaining.clear();\n this.startedAt.clear();\n this.visibleEntries.set([]);\n this.leaving.set(new Set());\n this.pendingQueue.length = 0;\n }\n\n private drainQueue(): void {\n while (this.pendingQueue.length) {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n return;\n }\n this.show(this.pendingQueue.shift()!);\n }\n }\n}\n","@for (entry of visibleEntries(); track entry.id) {\n <ds-toast\n [variant]=\"entry.variant\"\n [title]=\"entry.title ?? ''\"\n [body]=\"entry.body\"\n [dismissible]=\"entry.dismissible\"\n [action]=\"entry.action ?? null\"\n [class.leaving]=\"isLeaving(entry.id)\"\n (closed)=\"remove(entry.id)\"\n />\n}\n","import { ComponentRef, DestroyRef, Injectable, inject } from '@angular/core';\nimport {\n Overlay,\n OverlayRef,\n GlobalPositionStrategy,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { DS_CONFIG } from '../../core/ds-config';\nimport { ToastRegionComponent } from './toast-region.component';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport type {\n ToastEntry,\n ToastVariant,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n} from './toast.types';\n\n// An error stays longer than a success: it usually needs reading, and often acting on.\nconst SETTLED_SUCCESS_MS = 4000;\nconst SETTLED_ERROR_MS = 6000;\n\n// Has to outlast the loop that fires a burst, not any human interval.\nconst ANNOUNCE_COALESCE_MS = 120;\n\n@Injectable({ providedIn: 'root' })\nexport class ToastService {\n private readonly overlay = inject(Overlay);\n private readonly toastConfig = inject(DS_CONFIG).toast;\n private readonly announcer = inject(LiveAnnouncer);\n private overlayRef: OverlayRef | null = null;\n private regionRef: ComponentRef<ToastRegionComponent> | null = null;\n private nextId = 1;\n private pendingAnnouncements: string[] = [];\n private pendingAssertive = false;\n private announceTimer: number | undefined;\n private scrimWatcher: MutationObserver | null = null;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.announceTimer);\n this.scrimWatcher?.disconnect();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.regionRef = null;\n });\n }\n\n show(opts: ToastOptions): ToastRef {\n this.ensureRegion();\n const id = this.nextId++;\n const variant = opts.variant ?? 'info';\n // An `action` toast cannot expire: that button is the only way to take the action,\n // the region is the last child of `body`, and a keyboard user cannot cross a page\n // to reach it inside five seconds.\n const durationMs =\n variant === 'loading' || opts.action ? 0 : (opts.durationMs ?? 5000);\n const entry: ToastEntry = {\n id,\n title: opts.title,\n body: opts.body,\n variant,\n // Nothing that cannot expire may also be unclosable, or it holds a slot for the\n // life of the page — which is how a hung promise blocked the whole region.\n dismissible: durationMs > 0 ? (opts.dismissible ?? true) : true,\n action: opts.action,\n durationMs,\n };\n // The region runs the countdown, because only it knows when the toast became\n // visible — started here, one queued behind `maxVisible` expires unseen.\n this.regionRef!.instance.add(entry);\n this.announce(variant, entry.body, entry.title);\n\n return {\n id,\n dismiss: () => this.regionRef?.instance.remove(id),\n };\n }\n\n /** Show a loading toast for the duration of `source`. Resolution and rejection are\n * reflected in-place (same toast, no stack-up) as success/error variants, each with\n * its own auto-dismiss delay.\n *\n * Returns `source` itself, so the caller still owns rejection handling — an\n * un-`catch`ed call produces an unhandled rejection exactly as it would without a\n * toast. */\n promise<T>(\n source: Promise<T>,\n messages: ToastPromiseMessages<T>,\n ): Promise<T> {\n const ref = this.show({\n body: messages.loading,\n variant: 'loading',\n durationMs: 0,\n });\n\n // The duration goes to the region, for the reason given on `add()` above.\n source.then(\n (value) => {\n const successBody =\n typeof messages.success === 'function'\n ? messages.success(value)\n : messages.success;\n this.regionRef?.instance.update(ref.id, {\n body: successBody,\n variant: 'success',\n dismissible: true,\n durationMs: SETTLED_SUCCESS_MS,\n });\n this.announce('success', successBody);\n },\n (reason: unknown) => {\n const errorBody =\n typeof messages.error === 'function'\n ? messages.error(reason)\n : messages.error;\n this.regionRef?.instance.update(ref.id, {\n body: errorBody,\n variant: 'error',\n dismissible: true,\n durationMs: SETTLED_ERROR_MS,\n });\n this.announce('error', errorBody);\n },\n );\n\n return source;\n }\n\n /** The announcement must NOT ride the visual toast: `aria-live` on an element created\n * together with its text announces nothing in NVDA or JAWS. The CDK announcer's region\n * exists from construction and only its text changes.\n *\n * Serialising a burst does not work either — `announce()` clears the region and writes\n * on a timeout, resolving its promise inside that callback, so the next message wipes\n * the previous one before anything can read it. One region change carrying every\n * message is the only shape that survives. */\n private announce(variant: ToastVariant, body: string, title?: string): void {\n const spoken = [title, body].filter(Boolean).join('. ');\n if (!spoken) {\n return;\n }\n this.pendingAnnouncements.push(spoken);\n if (variant === 'error' || variant === 'warning') {\n this.pendingAssertive = true;\n }\n clearTimeout(this.announceTimer);\n this.announceTimer = window.setTimeout(() => {\n const message = this.pendingAnnouncements.join('. ');\n const politeness = this.pendingAssertive ? 'assertive' : 'polite';\n this.pendingAnnouncements = [];\n this.pendingAssertive = false;\n this.announcer.announce(message, politeness);\n }, ANNOUNCE_COALESCE_MS);\n }\n\n dismissAll(): void {\n this.regionRef?.instance.clear();\n }\n\n private ensureRegion(): void {\n if (this.overlayRef) {\n return;\n }\n this.overlayRef = this.overlay.create({\n hasBackdrop: false,\n panelClass: 'ds-toast-panel',\n positionStrategy: this.buildPositionStrategy(),\n });\n this.regionRef = this.overlayRef.attach(\n new ComponentPortal(ToastRegionComponent),\n );\n // `>= 0`, not truthiness: 0 is the only way to ask for an uncapped stack, so it has\n // to reach the region rather than read as \"unset\".\n const maxVisible = this.toastConfig?.maxVisible;\n if (typeof maxVisible === 'number' && maxVisible >= 0) {\n this.regionRef.setInput('maxVisible', maxVisible);\n }\n this.keepAboveScrims();\n }\n\n /** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK gives\n * every overlay host `popover=\"manual\"`, and the browser's top layer paints in the\n * order things were shown, ignoring z-index. Re-showing the host is the only lever.\n *\n * Scrimmed overlays only: the published layer scale puts `--layer-tooltip` above the\n * toast. */\n private keepAboveScrims(): void {\n const host = this.overlayRef?.hostElement;\n const container = host?.parentElement;\n if (!host || !container || typeof host.showPopover !== 'function') {\n return;\n }\n this.scrimWatcher = new MutationObserver((records) => {\n const scrimAppeared = records.some((record) =>\n [...record.addedNodes].some(\n (node) =>\n node instanceof HTMLElement &&\n node !== host &&\n (node.classList.contains('cdk-overlay-backdrop') ||\n node.querySelector?.('.cdk-overlay-backdrop')),\n ),\n );\n if (!scrimAppeared || !host.isConnected) {\n return;\n }\n // The top layer has no \"raise\"; nothing paints between these two calls.\n try {\n host.hidePopover();\n host.showPopover();\n } catch {\n // The host may not be showing, and hidePopover() throws when it is not.\n }\n });\n this.scrimWatcher.observe(container, { childList: true, subtree: true });\n }\n\n private buildPositionStrategy(): GlobalPositionStrategy {\n const config = {\n ...DS_TOAST_POSITION_DEFAULT,\n ...this.toastConfig?.position,\n };\n const strategy = this.overlay.position().global();\n if (config.verticalPosition === 'top') {\n strategy.top(config.offset);\n } else {\n strategy.bottom(config.offset);\n }\n if (config.horizontalPosition === 'left') {\n strategy.left(config.offset);\n } else if (config.horizontalPosition === 'right') {\n strategy.right(config.offset);\n } else {\n strategy.centerHorizontally();\n }\n\n return strategy;\n }\n}\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { IconComponent } from '../../icons/icon.component';\nimport { BodyScrollLockService } from '../../overlay/body-scroll-lock.service';\nimport type { DrawerPlacement } from './drawer.types';\nimport type { DsSize } from '../../core/size';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-drawer',\n standalone: true,\n imports: [IconComponent, A11yModule],\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class DrawerComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Panel size — sm/md/lg. */\n readonly size = input<DsSize>('md');\n /** Edge the panel slides in from. */\n readonly placement = input<DrawerPlacement>('right');\n /** Drawer title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (slide-out) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-drawer-title-${++nextId}`;\n /** Panel is in the DOM (kept true through the slide-out). */\n protected readonly rendered = signal(false);\n /** Playing the slide-out + scrim-fade leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly classes = computed(() => {\n const parts = ['drawer', this.placement(), this.size()];\n\n return parts.join(' ');\n });\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the panel mounted\n // and flips `closing` so the slide-out can play (teardown in onLeaveEnd).\n effect(() => {\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with modal/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (!this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The panel is the element with the handler, so its OWN animationend is the\n // signal; the scrim is a sibling and anything else is inside. This replaces\n // matching four keyframes NAMES, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.onClose();\n }\n }\n}\n","@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\"\n >\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { TagVariant } from './tag.types';\n\n@Component({\n selector: 'ds-tag',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './tag.component.html',\n styleUrl: './tag.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.neutral]': \"variant() === 'neutral'\",\n '[class.closable]': 'closable()',\n '[class.interactive]': 'interactive()',\n '[class.is-active]': 'selected()',\n '(click)': 'onClick()',\n },\n})\nexport class TagComponent {\n /** Fill style — `solid` for high-emphasis, `neutral` for low-emphasis chips. */\n readonly variant = input<TagVariant>('solid');\n /** Shows a close button that emits `closed`. */\n readonly closable = input(false, { transform: booleanAttribute });\n /** Makes the tag clickable, emitting `toggled` on click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n /** Applies the active/selected visual state. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Accessible label for the close button (e.g. \"Remove Source filter\"). */\n readonly closeLabel = input<string>('Remove');\n /** Fires when the close button is clicked. */\n readonly closed = output<void>();\n /** Fires on click when `interactive` is true. */\n readonly toggled = output<void>();\n\n protected onClick(): void {\n if (this.interactive()) {\n this.toggled.emit();\n }\n }\n}\n","<ng-content></ng-content>\n\n@if (closable()) {\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"$event.stopPropagation(); closed.emit()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"12\"\n />\n </button>\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\n\n@Component({\n selector: 'ds-w3w',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './w3w.component.html',\n styleUrl: './w3w.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.role]': \"copyable() ? 'button' : null\",\n '[attr.tabindex]': 'copyable() ? 0 : null',\n '[attr.aria-label]':\n \"copyable() ? ('Copy what3words address ' + prefix() + address()) : null\",\n '(click)': 'onCopy()',\n '(keydown.enter)': 'onCopy()',\n '(keydown.space)': 'onKeyActivate($event)',\n },\n})\nexport class W3wComponent {\n /** Marker rendered before the address (e.g. the \"///\" glyph). */\n readonly prefix = input<string>('///');\n /** The three-word address, rendered after `prefix`. */\n readonly address = input.required<string>();\n /** Makes the address clickable/focusable and copies `prefix` + `address` to the clipboard. */\n readonly copyable = input(true, { transform: booleanAttribute });\n /** Fires with `address` after a successful copy. */\n readonly copied = output<string>();\n\n protected onKeyActivate(event: Event): void {\n event.preventDefault();\n this.onCopy();\n }\n\n protected onCopy(): void {\n if (!this.copyable()) {\n return;\n }\n const text = `${this.prefix()}${this.address()}`;\n if (typeof navigator !== 'undefined' && navigator.clipboard) {\n void navigator.clipboard.writeText(text);\n }\n this.copied.emit(this.address());\n }\n}\n","<ds-icon\n name=\"map\"\n [size]=\"14\"\n/>\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\"\n />\n}\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { PageFooterVariant } from './page-footer.types';\n\n@Component({\n selector: 'ds-page-footer',\n standalone: true,\n imports: [],\n templateUrl: './page-footer.component.html',\n styleUrl: './page-footer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.compact]': \"variant() === 'compact'\",\n '[class.save]': \"variant() === 'save'\",\n },\n})\nexport class PageFooterComponent {\n /** Visual style — default, compact, or the accented `save`-bar look. */\n readonly variant = input<PageFooterVariant>('default');\n}\n","<ng-content select=\"[brand]\"></ng-content>\n\n<ng-content select=\"[nav]\"></ng-content>\n\n<ng-content select=\"[actions]\"></ng-content>\n\n<ng-content></ng-content>\n","import {\n ElementRef,\n Signal,\n afterRenderEffect,\n computed,\n signal,\n untracked,\n} from '@angular/core';\n\n/**\n * @fileoverview How many chips fit one line of a trigger, measured rather than\n * guessed.\n *\n * INVARIANT: nothing here may measure something the cut itself changes, or the\n * measurement feeds back into its own input and the split never settles — a hung\n * page, not a wrong number. Hence the budget comes off the trigger's PARENT\n * content box (the trigger's own width is the fallback for when there is no usable\n * parent), never the row, and the \"+N more\" marker gets a fixed reserve rather\n * than a measurement.\n *\n * The caller owes two things: chips carry `data-chip`, and they sit in a row of\n * their own that is a direct child of the trigger. `enabled` gates the whole thing\n * because measuring forces layout.\n */\n\n/**\n * Null when the host cannot supply a budget: a detached node, an inline one with no content box,\n * or one whose own width DEPENDS on the trigger — which would feed the cut back into its own\n * input.\n *\n * That last one is asked of layout, not read off a style: `getComputedStyle().width` is a used\n * pixel value, so the `fit-content` a consumer wrote is not readable back. Pinning the trigger to\n * zero and re-reading the host tests it directly — a host sized by its own parent does not move,\n * one sized by its content collapses — at the cost of a second forced layout.\n */\nfunction hostContentWidth(\n host: HTMLElement | null,\n trigger: HTMLElement,\n): number | null {\n if (!host || host.clientWidth === 0) {\n return null;\n }\n const styles = getComputedStyle(host);\n if (styles.display === 'inline') {\n return null;\n }\n\n const before = host.clientWidth;\n const pinned = trigger.style.width;\n trigger.style.width = '0px';\n const dependsOnTrigger = host.clientWidth !== before;\n trigger.style.width = pinned;\n if (dependsOnTrigger) {\n return null;\n }\n\n return (\n before - parseFloat(styles.paddingLeft) - parseFloat(styles.paddingRight)\n );\n}\n\n/** Room held for \"+N more\", in em so a retuned type scale carries. Measured at\n * 4.5em wide with three digits; 5em keeps a chip from being dropped for a pixel. */\nconst MARKER_RESERVE_EM = 5;\n\n/** What a sibling of the chip row costs the chips. One that can grow gives back\n * what it does not use, so only its floor is owed; anything else owes its box. */\nfunction reservedWidth(element: HTMLElement): number {\n const styles = getComputedStyle(element);\n\n return parseFloat(styles.flexGrow) > 0\n ? parseFloat(styles.minWidth) || 0\n : element.offsetWidth;\n}\n\nexport function chipFit(\n count: Signal<number>,\n chipRow: Signal<ElementRef<HTMLElement> | undefined>,\n enabled: Signal<boolean>,\n /** The whole selection, which `count` may already cap. */\n selectionSize: Signal<number> = count,\n): Signal<number> {\n const available = signal(0);\n const gap = signal(0);\n const markerReserve = signal(0);\n /** Widths of ALL chips, from the last render that held all of them. */\n const chipWidths = signal<readonly number[]>([]);\n /** `count` at that render, so a stale cache is never trusted. */\n const measuredFor = signal(-1);\n /** Geometry the last measure ran against, to skip one that would repeat it.\n * Each forces layout: without this guard a single docs page load measured 214\n * times across seven pickers. */\n let lastWidth = -1;\n let lastCount = -1;\n\n const measure = (row: HTMLElement): void => {\n const trigger = row.parentElement;\n if (!trigger) {\n return;\n }\n\n // A trigger that hugs its content (`width: fit-content`, which both compact\n // modes set) has a width decided by the chips this cut removes, so reading it\n // feeds the result back into its own input. The parent's content box is the\n // space actually available and does not move when the chips do; for a `fill`\n // trigger the two are the same number.\n //\n // The fallback is that same feedback loop, so it is a last resort, not a default: it runs\n // only when the host cannot answer at all.\n const host = trigger.parentElement;\n const budget = hostContentWidth(host, trigger) ?? trigger.clientWidth;\n\n const width = budget;\n const currentCount = untracked(count);\n const cacheIsCurrent = untracked(measuredFor) === currentCount;\n if (width === lastWidth && currentCount === lastCount && cacheIsCurrent) {\n return;\n }\n lastWidth = width;\n lastCount = currentCount;\n\n const triggerStyles = getComputedStyle(trigger);\n const columnGap = parseFloat(triggerStyles.columnGap) || 0;\n let free =\n budget -\n parseFloat(triggerStyles.paddingLeft) -\n parseFloat(triggerStyles.paddingRight) -\n parseFloat(triggerStyles.borderLeftWidth) -\n parseFloat(triggerStyles.borderRightWidth);\n for (const sibling of trigger.children) {\n if (sibling !== row) {\n free -= reservedWidth(sibling as HTMLElement) + columnGap;\n }\n }\n\n gap.set(columnGap);\n available.set(free);\n markerReserve.set(\n MARKER_RESERVE_EM * parseFloat(getComputedStyle(row).fontSize),\n );\n\n const chips = row.querySelectorAll<HTMLElement>('[data-chip]');\n // A partial render is the previous cut, not the selection: caching it would\n // keep only the survivors' widths, and the row could never grow back.\n if (chips.length === untracked(count)) {\n chipWidths.set([...chips].map((chip) => chip.offsetWidth));\n measuredFor.set(untracked(count));\n }\n };\n\n afterRenderEffect((onCleanup) => {\n const row = chipRow()?.nativeElement;\n if (!enabled() || !row) {\n return;\n }\n const observer = new ResizeObserver(() => measure(row));\n // The trigger, not the row: the row's box follows the cut, so observing it\n // would report this function's own output back to it.\n observer.observe(row.parentElement ?? row);\n onCleanup(() => observer.disconnect());\n });\n\n // A selection change does not resize the trigger, so it drives its own measure.\n afterRenderEffect(() => {\n count();\n const row = chipRow()?.nativeElement;\n if (enabled() && row) {\n measure(row);\n }\n });\n\n return computed<number>(() => {\n const total = count();\n if (!enabled()) {\n return total;\n }\n const widths = chipWidths();\n // Until the widths for THIS selection are in, render all of them: that render\n // is what gets measured, and the row clips it until the cut lands.\n if (measuredFor() !== total || available() <= 0) {\n return total;\n }\n\n let used = 0;\n for (let index = 0; index < widths.length; index++) {\n const next = used + widths[index] + (index > 0 ? gap() : 0);\n // The marker is only owed room once something is actually hidden, so the\n // last chip may spend what the marker would have taken — but only if this\n // really is the end of the selection, not the end of a capped slice.\n const isLast =\n index === widths.length - 1 && selectionSize() <= widths.length;\n const budget = isLast\n ? available()\n : available() - markerReserve() - gap();\n if (next > budget) {\n // One chip always shows: a trigger too narrow for even that is a layout\n // bug upstream, and 0 would render a bare \"+N\" with nothing to anchor it.\n return Math.max(1, index);\n }\n used = next;\n }\n\n return total;\n });\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Fills a selected chip's content in the trigger of `ds-multi-select` and\n * `ds-autocomplete`, so a picker whose rows carry an avatar does not lose it the\n * moment the option is chosen.\n *\n * The chip is still a `ds-tag` owned by the library: its close button, its\n * accessible remove label and the measured overflow cap are not projected.\n */\n@Directive({\n selector: '[dsChipTemplate]',\n standalone: true,\n})\nexport class DsChipTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n/**\n * Replaces `ds-autocomplete`'s \"Create «…»\" row.\n *\n * Context: `query` is the typed text the row would create.\n *\n * The row stays a `role=\"option\"` the keyboard can reach, and picking it still\n * emits `create` — the template fills the row, it does not become the action.\n */\n@Directive({\n selector: '[dsCreateTemplate]',\n standalone: true,\n})\nexport class DsCreateTemplateDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n contentChild,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n forwardOverlayTokens,\n dropdownOverlay,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { chipFit } from '../chip-overflow';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport { TagComponent } from '../tag/tag.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport type {\n AutocompleteItem,\n AutocompleteOption,\n AutocompleteOptionGroup,\n AutocompleteValueOverflow,\n AutocompleteWidth,\n} from './autocomplete.types';\nimport { flattenDsOptions, isDsOptionGroup } from '../../core/option';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '../../core/list-cursor';\nimport { scrollActiveOptionIntoView } from '../scroll-active-option';\nimport { announceOptionCount } from '../picker-announcer';\nimport { DsOptionTemplateDirective } from '../option-template.directive';\nimport { DsChipTemplateDirective } from '../chip-template.directive';\nimport { DsPickerTriggerDirective } from '../picker-trigger.directive';\nimport { DsEmptyTemplateDirective } from '../empty-template.directive';\nimport { DsPanelHeaderTemplateDirective } from '../panel-header-template.directive';\nimport { DsPanelFooterTemplateDirective } from '../panel-footer-template.directive';\nimport { DsGroupLabelTemplateDirective } from '../group-label-template.directive';\nimport { DsCreateTemplateDirective } from '../create-template.directive';\nimport type { DsSize } from '../../core/size';\nimport { inFieldGroup } from '../field-group/field-group.token';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-autocomplete',\n standalone: true,\n imports: [\n IconComponent,\n SpinnerComponent,\n TagComponent,\n FieldMessageComponent,\n NgTemplateOutlet,\n ],\n templateUrl: './autocomplete.component.html',\n styleUrl: './autocomplete.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n '[class.content-width]': \"width() === 'content'\",\n '[class.value-wraps]': \"valueOverflow() === 'wrap'\",\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AutocompleteComponent),\n multi: true,\n },\n ],\n})\nexport class AutocompleteComponent<T = unknown>\n extends DsControlValueAccessor<T | readonly T[] | null>\n implements OnDestroy\n{\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-autocomplete { --ds-autocomplete-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-radius',\n '--ds-dropdown-panel-minw',\n '--ds-dropdown-panel-maxw',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Options, groups, or both mixed — rendered in the order given. */\n readonly options = input<readonly AutocompleteItem<T>[]>([]);\n /** Selected value, or an array of values when `multiple`. */\n readonly value = model<T | readonly T[] | null>(null);\n /** Allows selecting more than one option, shown as removable tags. */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Draws the trailing chevron. Turn it off for a search field, where an arrow\n * invites a click that would list everything instead of searching. */\n readonly showChevron = input(true, { transform: booleanAttribute });\n /** How the chips collapse when they outgrow one line. `\"fit\"` (the default)\n * measures and shows as many as the trigger is wide, the rest behind \"+N more\".\n * A NUMBER is a CEILING, not a promise: the row still measures, so you get at\n * most that many and fewer when the trigger is narrow. `\"all\"` shows every chip and\n * lets the trigger grow a line per selection.\n *\n * Unset (`null`) means \"not deciding\", as it does on every other input in the\n * library — it resolves to `\"fit\"`. It does NOT mean \"show all\": that is\n * `\"all\"`, which is the loudest of the three modes and has to be asked for. */\n readonly maxVisibleChips = input<number | 'fit' | 'all' | null>(null, {\n transform: (raw: unknown) => {\n if (raw === 'fit' || raw === 'all') {\n return raw;\n }\n\n return raw == null ? null : numberAttribute(raw);\n },\n });\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Trigger width — `fill` stretches to the container, `content` hugs the value. */\n readonly width = input<AutocompleteWidth>('fill');\n /** What a settled single value does when it is wider than the trigger. Defaults\n * to `ellipsis`; `wrap` restores the pre-0.12 behaviour, where the value broke\n * onto a second line and pushed the chevron onto a third. Multi mode is\n * unaffected — its chips have their own measured cap. */\n readonly valueOverflow = input<AutocompleteValueOverflow>('ellipsis');\n /** Placeholder shown in the input when empty. */\n readonly placeholder = input<string>('Select…');\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a \"Create «text»\" row when the typed text matches no option. */\n readonly allowCreate = input(false, { transform: booleanAttribute });\n /** Field label above the control — the same meaning it has on the other two pickers. */\n readonly label = input<string>('');\n /** How two values are decided to be the same one. The default is `===`, which\n * is reference identity — so with object values a re-fetch that returns equal\n * data as NEW objects loses the selection. Pass a comparator keyed on whatever\n * identifies the value: `(a, b) => a?.id === b?.id`. */\n readonly compareWith = input<(a: T | null, b: T | null) => boolean>(\n (a, b) => a === b,\n );\n\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Prevents opening the panel while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n /** Shows a clear affordance once there is something to clear. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Placeholder while the field is being typed in, when a value is already\n * settled — `placeholder` is the empty-field caption and cannot be both.\n * Empty (the default) keeps `placeholder` doing both jobs, as before. */\n readonly searchPlaceholder = input<string>('');\n\n /** How the typed query narrows the list.\n *\n * The default matches a case-insensitive substring of `label`. Pass a predicate\n * to match on anything else — a second field, ignoring diacritics, a fuzzy score.\n * Pass `'none'` when the list arrives already filtered, which is what a\n * server-side search needs: the query is reported through `filterChange` and\n * every option given is rendered.\n */\n readonly filterWith = input<\n ((option: AutocompleteOption<T>, query: string) => boolean) | 'none'\n >((option, query) => option.label.toLowerCase().includes(query));\n /** The query the user typed, on every change. The input for a server-side search;\n * pair it with `filterWith=\"none\"` so the list is not narrowed twice. */\n readonly filterChange = output<string>();\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** Marks the field required: a `*` beside the label and `aria-required` on the input. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Marks the field optional in words, for a form where most fields are required. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Accessible name for the input. */\n readonly ariaLabel = input<string | null>(null);\n\n /** Fires with the typed text when the user picks the create-new option. */\n readonly create = output<string>();\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly chipTemplate = contentChild(DsChipTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly createTemplate = contentChild(DsCreateTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly query = signal('');\n protected readonly isOpen = signal(false);\n protected readonly activeIndex = signal(-1);\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly filterInput =\n viewChild.required<ElementRef<HTMLInputElement>>('filter');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n private readonly chipRow = viewChild<ElementRef<HTMLElement>>('chipRow');\n private overlayRef: OverlayRef | null = null;\n\n protected readonly uid = `ds-autocomplete-${++nextId}`;\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly labelId = `${this.uid}-label`;\n protected optionId(index: number): string {\n return `${this.uid}-opt-${index}`;\n }\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.isOpen() && index >= 0 ? this.optionId(index) : null;\n });\n\n protected readonly allOptions = computed<readonly AutocompleteOption<T>[]>(\n () => flattenDsOptions(this.options()),\n );\n\n protected readonly filteredItems = computed<AutocompleteItem<T>[]>(() => {\n const query = this.query().toLowerCase().trim();\n const filter = this.filterWith();\n const matches = (option: AutocompleteOption<T>): boolean =>\n !query || filter === 'none' || filter(option, query);\n\n const kept: AutocompleteItem<T>[] = [];\n for (const item of this.options()) {\n if (!isDsOptionGroup(item)) {\n if (matches(item)) {\n kept.push(item);\n }\n continue;\n }\n // A disabled group disables its options HERE, not only in the flattened\n // list: the template renders these objects, so a group left to inherit\n // later would paint enabled rows that refuse to be picked.\n const options = item.options\n .filter(matches)\n .map((option) =>\n item.disabled ? { ...option, disabled: true } : option,\n );\n if (options.length > 0) {\n kept.push({ ...item, options });\n }\n }\n\n return kept;\n });\n\n protected readonly filteredOptions = computed<\n readonly AutocompleteOption<T>[]\n >(() => flattenDsOptions(this.filteredItems()));\n\n protected isGroup(\n item: AutocompleteItem<T>,\n ): item is AutocompleteOptionGroup<T> {\n return isDsOptionGroup(item);\n }\n\n protected readonly showCreateRow = computed<boolean>(() => {\n if (!this.allowCreate()) {\n return false;\n }\n const text = this.query().trim();\n if (!text) {\n return false;\n }\n const lowerText = text.toLowerCase();\n\n return !this.allOptions().some(\n (option) => option.label.toLowerCase() === lowerText,\n );\n });\n\n protected readonly visibleOptions = computed<\n readonly AutocompleteOption<T>[]\n >(() => this.filteredOptions());\n\n /** The visible label wins the accessible name when there is one — otherwise the\n * placeholder would announce over it, and `placeholder` always carries a default. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly selectedTags = computed(() => {\n if (!this.multiple()) {\n return [];\n }\n const selectedValues = (this.value() as readonly T[] | null) ?? [];\n const same = this.compareWith();\n\n return this.allOptions().filter((option) =>\n selectedValues.some((selected) => same(selected, option.value)),\n );\n });\n\n private readonly chipsMode = computed(() => this.maxVisibleChips() ?? 'fit');\n private readonly showsEveryChip = computed(() => this.chipsMode() === 'all');\n /** True for a number as well as `'fit'`: a number is a ceiling, not a promise,\n * so the row still measures. */\n protected readonly fitsChipsToWidth = computed(() => !this.showsEveryChip());\n /** How many chips the row is ASKED to render before measuring. It has to be the\n * ceiling and not the selection: the measurement caches chip widths from a\n * render that holds them all, so with a numeric cap that render never happens,\n * the cache never fills, and the fit silently falls back to showing them all. */\n private readonly chipBudget = computed(() => {\n const max = this.chipsMode();\n const total = this.selectedTags().length;\n\n return typeof max === 'number' ? Math.min(Math.max(max, 0), total) : total;\n });\n private readonly chipsThatFit = chipFit(\n this.chipBudget,\n this.chipRow,\n this.fitsChipsToWidth,\n computed(() => this.selectedTags().length),\n );\n\n /** What the trigger renders. Separate from `selectedTags`, which stays the\n * full selection: Backspace removes the last SELECTED chip, and capping the\n * list it reads would silently make it remove the last VISIBLE one instead. */\n protected readonly visibleTags = computed(() => {\n const tags = this.selectedTags();\n\n return this.showsEveryChip() ? tags : tags.slice(0, this.chipsThatFit());\n });\n\n protected readonly overflowCount = computed<number>(\n () => this.selectedTags().length - this.visibleTags().length,\n );\n\n protected readonly selectedOption = computed<AutocompleteOption<T> | null>(\n () => {\n if (this.multiple()) {\n return null;\n }\n const currentValue = this.value() as T | null;\n if (currentValue === null) {\n return null;\n }\n\n return (\n this.allOptions().find((option) =>\n this.compareWith()(option.value, currentValue),\n ) ?? null\n );\n },\n );\n\n protected readonly displayLabel = computed(\n () => this.selectedOption()?.label ?? '',\n );\n protected readonly hasSingleValue = computed(\n () => this.selectedOption() !== null,\n );\n\n protected readonly triggerSelection = computed(() =>\n this.multiple() ? this.selectedTags() : this.selectedOption(),\n );\n\n protected readonly placeholderText = computed(() => {\n if (this.multiple()) {\n return '';\n }\n if (this.displayLabel()) {\n return this.searchPlaceholder();\n }\n\n return this.placeholder();\n });\n\n protected isSelected(option: AutocompleteOption<T>): boolean {\n if (this.multiple()) {\n const selectedValues = (this.value() as readonly T[] | null) ?? [];\n\n const same = this.compareWith();\n\n return selectedValues.some((selected) => same(selected, option.value));\n }\n\n return this.compareWith()(this.value() as T | null, option.value);\n }\n\n protected optionClass(option: AutocompleteOption<T>): string {\n const parts = ['option'];\n if (this.multiple()) {\n parts.push('multi');\n }\n if (option.disabled) {\n parts.push('is-disabled');\n }\n // The shared panel partial paints the selected row off this class, not off\n // `aria-selected`, so a picker that only set the attribute went unpainted.\n if (this.isSelected(option)) {\n parts.push('is-selected');\n }\n\n return parts.join(' ');\n }\n\n /** -1 when nothing is pickable and there is no create row to fall back on. */\n private firstEnabledIndex(): number {\n const index = this.visibleOptions().findIndex((option) => !option.disabled);\n if (index >= 0) {\n return index;\n }\n\n // With nothing pickable the create row IS the list; a -1 cursor would leave\n // Enter doing nothing after typing a new name, until an ArrowDown nobody knows\n // to press.\n return this.showCreateRow() ? this.visibleOptions().length : -1;\n }\n\n /** Steps OVER a disabled option rather than landing on it. `step` is +1/-1; the\n * create row (past the last option) is always reachable, and -1 comes back when\n * every option is disabled. */\n private nextEnabledIndex(from: number, step: number, slots: number): number {\n if (!slots) {\n return -1;\n }\n const options = this.visibleOptions();\n for (let hop = 1; hop <= slots; hop++) {\n const candidate = (from + step * hop + slots * hop) % slots;\n const option = options[candidate];\n if (!option || !option.disabled) {\n return candidate;\n }\n }\n\n return -1;\n }\n\n protected flatIndexOf(option: AutocompleteOption<T>): number {\n return this.visibleOptions().findIndex((opt) => opt === option);\n }\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.filteredOptions().length),\n this.isOpen,\n );\n }\n\n private setOpen(next: boolean): void {\n if (this.isOpen() === next) {\n return;\n }\n this.isOpen.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n\n protected readonly cursorFromKeyboard = signal(false);\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private cursorList() {\n const options = this.visibleOptions();\n\n return {\n length: options.length,\n isEnabled: (index: number) => !options[index].disabled,\n };\n }\n\n protected onTriggerClick(): void {\n if (this.isDisabled()) {\n return;\n }\n this.filterInput().nativeElement.focus();\n if (!this.overlayRef) {\n this.openPanel();\n }\n }\n\n protected togglePanel(event: MouseEvent): void {\n if (this.isDisabled()) {\n return;\n }\n event.stopPropagation();\n if (this.overlayRef) {\n this.close();\n } else {\n this.filterInput().nativeElement.focus();\n this.openPanel();\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (this.isDisabled()) {\n return;\n }\n const visibleCount = this.visibleOptions().length;\n const totalSlots = visibleCount + (this.showCreateRow() ? 1 : 0);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n if (!this.overlayRef) {\n this.openPanel();\n\n return;\n }\n this.activeIndex.set(\n this.nextEnabledIndex(this.activeIndex(), 1, totalSlots),\n );\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (!this.overlayRef) {\n this.openPanel();\n\n return;\n }\n this.activeIndex.set(\n this.nextEnabledIndex(this.activeIndex(), -1, totalSlots),\n );\n break;\n case 'Enter': {\n const index = this.activeIndex();\n if (this.showCreateRow() && index === visibleCount) {\n event.preventDefault();\n this.onCreateNew();\n break;\n }\n const opt = this.visibleOptions()[index];\n if (opt) {\n event.preventDefault();\n this.onPick(opt);\n }\n break;\n }\n case 'PageDown':\n event.preventDefault();\n this.activeIndex.set(\n nextEnabledIndex(\n this.cursorList(),\n this.activeIndex(),\n AutocompleteComponent.pageStep,\n ),\n );\n break;\n case 'PageUp':\n event.preventDefault();\n this.activeIndex.set(\n nextEnabledIndex(\n this.cursorList(),\n this.activeIndex(),\n -AutocompleteComponent.pageStep,\n ),\n );\n break;\n case 'Home':\n event.preventDefault();\n this.activeIndex.set(firstEnabledOf(this.cursorList()));\n break;\n case 'End':\n event.preventDefault();\n this.activeIndex.set(lastEnabledOf(this.cursorList()));\n break;\n case 'Escape':\n if (this.overlayRef) {\n event.preventDefault();\n this.close('dismiss');\n }\n break;\n case 'Tab':\n // Close the panel but let Tab move focus naturally (no preventDefault),\n // else the open overlay panel lingers behind the moved focus.\n if (this.overlayRef) {\n this.close();\n }\n break;\n case 'Backspace':\n if (this.multiple() && !this.query()) {\n const tags = this.selectedTags();\n const last = tags[tags.length - 1];\n if (last) {\n this.remove(last.value);\n }\n }\n break;\n }\n }\n\n protected openPanel(): void {\n if (this.isReadOnly()) {\n return;\n }\n if (this.overlayRef) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const { positionStrategy, config: overlayConfig } = dropdownOverlay(\n this.overlay,\n triggerElement,\n );\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n if (this.width() === 'content') {\n overlayConfig.minWidth = triggerWidth;\n } else {\n overlayConfig.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(overlayConfig);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n const detaching = this.overlayRef;\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n // A deferred dispose can outlive a re-open, and then this fires for the\n // PREVIOUS panel: clearing state here would strand the live one.\n if (this.overlayRef !== detaching) {\n return;\n }\n this.overlayRef = null;\n this.setOpen(false);\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.setOpen(true);\n this.activeIndex.set(this.firstEnabledIndex());\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.activeIndex.set(-1);\n // The input collapses to zero width whenever a label is on display, so\n // anything left in `query` goes INVISIBLE while it still narrows the next\n // open. Never in multi mode, where the input keeps its width and the text\n // stays honest.\n if (this.displayLabel()) {\n this.query.set('');\n }\n this.markTouched();\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n }\n\n /**\n * Empties the field — both the selected value and the text the user typed.\n *\n * `value.set(null)` alone is not enough from outside: the typed query is\n * component state with no input bound to it, so the text stays on screen after\n * the value goes.\n *\n * Deliberately does NOT move focus — the caller may be navigating away, and\n * stealing focus back into a field they just left is worse than leaving it.\n */\n clear(): void {\n this.value.set(this.multiple() ? [] : null);\n this.query.set('');\n if (this.isOpen()) {\n this.close('dismiss');\n }\n }\n\n ngOnDestroy(): void {\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected onFilter(event: Event): void {\n const typed = (event.target as HTMLInputElement).value;\n this.query.set(typed);\n this.filterChange.emit(typed);\n this.activeIndex.set(this.firstEnabledIndex());\n }\n\n protected onPick(option: AutocompleteOption<T>): void {\n if (option.disabled) {\n return;\n }\n if (this.multiple()) {\n const current = (this.value() as readonly T[] | null) ?? [];\n const same = this.compareWith();\n const next = current.some((entry) => same(entry, option.value))\n ? current.filter((existing) => existing !== option.value)\n : [...current, option.value];\n this.value.set(next);\n } else {\n this.value.set(option.value);\n this.close();\n }\n }\n\n protected onCreateNew(): void {\n const text = this.query().trim();\n if (!text) {\n return;\n }\n this.create.emit(text);\n this.query.set('');\n this.close();\n }\n\n protected remove(target: T): void {\n if (!this.multiple()) {\n return;\n }\n const current = (this.value() as readonly T[] | null) ?? [];\n this.value.set(current.filter((existing) => existing !== target));\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.open]=\"isOpen()\"\n [class.disabled]=\"isDisabled()\"\n [class.error]=\"invalidResolved()\"\n (click)=\"onTriggerClick()\"\n>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\"\n />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\"\n >\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"'Remove ' + selectedOption.label\"\n (closed)=\"remove(selectedOption.value)\"\n >\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\"\n />\n } @else {\n {{ selectedOption.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow\n >\n +{{ overflowCount() }} more\n </span>\n }\n </span>\n } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\"\n >\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\"\n />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\"\n />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\"\n />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n >\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\"\n >\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\"\n >\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \"\n >\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\"\n >\n @if (isSelected(option)) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n }\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\"\n />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple() && isSelected(option)) {\n <ds-icon\n name=\"check\"\n class=\"option-check\"\n [size]=\"14\"\n />\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \"\n >\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\"\n >\n @if (isSelected(option)) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n }\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\"\n />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple() && isSelected(option)) {\n <ds-icon\n name=\"check\"\n class=\"option-check\"\n [size]=\"14\"\n />\n }\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: query(), query: query() }\"\n />\n } @else {\n No matches\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \"\n >\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\"\n />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\"\n />\n } @else {\n Create «{{ query().trim() }}»\n }\n </span>\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\"\n />\n </div>\n }\n\n </div>\n</ng-template>\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { DividerSpacing, DividerVariant } from './divider.types';\n\n@Component({\n selector: 'ds-divider',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './divider.component.scss',\n host: {\n role: 'separator',\n '[class.strong]': \"variant() === 'strong'\",\n '[class.vertical]': \"variant() === 'vertical'\",\n '[class.label]': \"variant() === 'label'\",\n '[class.spacing-none]': \"spacing() === 'none'\",\n '[class.spacing-sm]': \"spacing() === 'sm'\",\n '[class.spacing-md]': \"spacing() === 'md'\",\n '[class.spacing-lg]': \"spacing() === 'lg'\",\n '[attr.aria-orientation]': \"variant() === 'vertical' ? 'vertical' : null\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DividerComponent {\n /** `default` hairline · `strong` heavier rule · `vertical` for a row · `label` to carry\n * projected text in the middle of the line. */\n readonly variant = input<DividerVariant>('default');\n // Vertical margin around the divider. Defaults to `md` (8px) for parity\n // with menus / sidenavs; bump to `lg` for content-section separators.\n /** Vertical breathing room around the rule. `none` when the parent layout already owns the gap. */\n readonly spacing = input<DividerSpacing>('md');\n}\n","import { Component, ViewEncapsulation, input } from '@angular/core';\n\nexport type DescriptionListOrientation = 'horizontal' | 'stacked';\n\n@Component({\n selector: 'ds-description-list',\n standalone: true,\n templateUrl: './description-list.component.html',\n styleUrl: './description-list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.stacked]': \"orientation() === 'stacked'\",\n },\n})\nexport class DescriptionListComponent {\n /** horizontal = label column + value; stacked = label above value. */\n readonly orientation = input<DescriptionListOrientation>('horizontal');\n}\n","<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport { DescriptionListComponent } from './description-list.component';\n\n@Component({\n selector: 'ds-description-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './description-item.component.html',\n styleUrl: './description-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[class.stacked]': 'stacked()',\n },\n})\nexport class DescriptionItemComponent {\n private readonly list = inject(DescriptionListComponent, { optional: true });\n\n /** The label. Plain text; rich values go in the projected content. */\n readonly term = input<string>('');\n /** When set, a copy button appears that copies this string to the clipboard. */\n readonly copyValue = input<string | null>(null);\n\n protected readonly stacked = computed(\n () => this.list?.orientation() === 'stacked',\n );\n protected readonly copied = signal(false);\n\n protected async copy(): Promise<void> {\n const value = this.copyValue();\n if (!value) {\n return;\n }\n await navigator.clipboard?.writeText(value);\n this.copied.set(true);\n setTimeout(() => this.copied.set(false), 1200);\n }\n}\n","<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { LayoutAlign, LayoutGap } from './layout.types';\n\n@Component({\n selector: 'ds-stack',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './stack.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-gap]': 'gap()',\n '[attr.data-align]': 'align()',\n },\n})\nexport class StackComponent {\n // null → semantic --space-stack default; named sizes map to the spacing scale.\n /** Space between children. `null` inherits whatever the enclosing layout set. */\n readonly gap = input<LayoutGap | null>(null);\n /** Cross-axis alignment — horizontal, for a column. */\n readonly align = input<LayoutAlign | null>(null);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport type { LayoutAlign, LayoutGap, LayoutJustify } from './layout.types';\n\n@Component({\n selector: 'ds-inline',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './inline.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-gap]': 'gap()',\n '[attr.data-align]': 'align()',\n '[attr.data-justify]': 'justify()',\n '[class.nowrap]': '!wrap()',\n },\n})\nexport class InlineComponent {\n // null → semantic --space-inline default; named sizes map to the spacing scale.\n /** Space between children. `null` inherits whatever the enclosing layout set. */\n readonly gap = input<LayoutGap | null>(null);\n /** Cross-axis alignment — vertical, for a row. */\n readonly align = input<LayoutAlign | null>(null);\n /** Main-axis distribution — horizontal, for a row. `between` pushes the ends apart. */\n readonly justify = input<LayoutJustify | null>(null);\n /** Let the row wrap onto more lines (default). `false` keeps one line and lets it overflow. */\n readonly wrap = input(true, { transform: booleanAttribute });\n}\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { ContainerSize } from './layout.types';\n\n@Component({\n selector: 'ds-container',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './container.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-size]': 'size()',\n },\n})\nexport class ContainerComponent {\n // Max content width; defaults to the global content cap (--col-cap-content).\n /** Max content width before the container centres itself. `full` removes the cap. */\n readonly size = input<ContainerSize>('xl');\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n viewChildren,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '../../icons/icon.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport type { SegmentedOption } from './segmented.types';\n\n@Component({\n selector: 'ds-segmented',\n standalone: true,\n imports: [IconComponent, FieldMessageComponent],\n templateUrl: './segmented.component.html',\n styleUrl: './segmented.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'radiogroup',\n '[attr.aria-label]': 'ariaLabel() || label() || null',\n '[attr.aria-describedby]': 'hintId()',\n '[attr.aria-invalid]': \"invalidResolved() ? 'true' : null\",\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SegmentedComponent),\n multi: true,\n },\n ],\n})\nexport class SegmentedComponent extends DsControlValueAccessor<string> {\n /** Segments to render — each needs a `label` and `value`, optional `icon`/`disabled`. */\n readonly options = input<readonly SegmentedOption[]>([]);\n /** Selected segment's `value`, two-way bound. */\n readonly value = model<string>('');\n /** Accessible name for the segmented control (radiogroup role). */\n readonly ariaLabel = input<string | null>(null);\n /** Visible label above the track; omit to supply your own. */\n readonly label = input<string>('');\n /** Disables every segment. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly uid = nextControlId('ds-segmented');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('seg');\n\n // The single roving-tabindex entry point: the selected segment, or the first\n // enabled one when nothing is selected yet.\n protected readonly focusableValue = computed(() => {\n const value = this.value();\n const options = this.options();\n if (options.some((option) => option.value === value && !option.disabled)) {\n return value;\n }\n\n return options.find((option) => !option.disabled)?.value ?? null;\n });\n\n protected select(option: SegmentedOption): void {\n if (option.disabled || this.isDisabled()) {\n return;\n }\n this.value.set(option.value);\n }\n\n protected onKeydown(event: KeyboardEvent, index: number): void {\n const options = this.options();\n let target = -1;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowDown':\n target = this.nextEnabled(index, 1);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n target = this.nextEnabled(index, -1);\n break;\n case 'Home':\n target = this.nextEnabled(-1, 1);\n break;\n case 'End':\n target = this.nextEnabled(options.length, -1);\n break;\n default:\n return;\n }\n if (target < 0) {\n return;\n }\n event.preventDefault();\n this.value.set(options[target].value);\n this.buttons()[target]?.nativeElement.focus();\n }\n\n private nextEnabled(from: number, step: number): number {\n const options = this.options();\n const count = options.length;\n if (count === 0) {\n return -1;\n }\n let index = from;\n for (let i = 0; i < count; i++) {\n index = (index + step + count) % count;\n if (!options[index].disabled) {\n return index;\n }\n }\n\n return -1;\n }\n}\n","@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"track\">\n @for (option of options(); track option.value; let i = $index) {\n <button\n #seg\n type=\"button\"\n role=\"radio\"\n class=\"segment\"\n [class.selected]=\"option.value === value()\"\n [attr.aria-checked]=\"option.value === value()\"\n [attr.tabindex]=\"option.value === focusableValue() ? 0 : -1\"\n [disabled]=\"option.disabled || isDisabled()\"\n (click)=\"select(option)\"\n (keydown)=\"onKeydown($event, i)\"\n (blur)=\"markTouched()\"\n >\n @if (option.icon; as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"seg-label\">\n {{ option.label }}\n </span>\n </button>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","import { Component, ViewEncapsulation, input } from '@angular/core';\n\n@Component({\n selector: 'ds-button-group',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './button-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[attr.aria-label]': 'ariaLabel()',\n },\n})\nexport class ButtonGroupComponent {\n /** Accessible name for the group, set as `aria-label` on the `role=\"group\"` host. */\n readonly ariaLabel = input<string | null>(null);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\nimport { MenuComponent } from '../menu/menu.component';\nimport { MenuItemComponent } from '../menu/menu-item.component';\nimport { PopoverComponent } from '../popover/popover.component';\nimport type { SplitButtonItem, SplitButtonVariant } from './split-button.types';\n\n@Component({\n selector: 'ds-split-button',\n standalone: true,\n imports: [IconComponent, MenuComponent, MenuItemComponent, PopoverComponent],\n templateUrl: './split-button.component.html',\n styleUrl: './split-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.primary]': \"variant() === 'primary'\",\n '[class.outline]': \"variant() === 'outline'\",\n },\n})\nexport class SplitButtonComponent {\n /** Label text on the main button. */\n readonly label = input<string>('');\n /** Visual style — primary (solid) or outline. */\n readonly variant = input<SplitButtonVariant>('primary');\n /** Icon shown on the main button, before the label. */\n readonly icon = input<IconName | null>(null);\n /** Disables both the main button and the dropdown trigger. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Items listed in the dropdown menu. */\n readonly menuItems = input<readonly SplitButtonItem[]>([]);\n /** Accessible name for the dropdown trigger. */\n readonly menuLabel = input<string>('More actions');\n /** Fires when the main button (not the dropdown trigger) is clicked. */\n readonly pressed = output<MouseEvent>();\n /** Fires with the chosen menu item. */\n readonly itemSelected = output<SplitButtonItem>();\n\n protected onItemSelect(item: SplitButtonItem): void {\n if (item.disabled) {\n return;\n }\n // ds-menu-item closes the popover itself via the injected DsOverlayCloseRef.\n this.itemSelected.emit(item);\n }\n\n protected onTriggerKeydown(\n event: KeyboardEvent,\n popover: PopoverComponent,\n trigger: HTMLElement,\n ): void {\n if (event.key === 'ArrowDown' && !popover.opened()) {\n event.preventDefault();\n popover.toggle(trigger);\n }\n }\n}\n","<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\"\n>\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\"\n />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\"\n>\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\"\n />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\"\n>\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\"\n >\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-timeline',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './timeline.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n },\n})\nexport class TimelineComponent {}\n","import { Component, ViewEncapsulation, input } from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { IconName } from '../../icons/icons.data';\n\nexport type TimelineTone =\n | 'default'\n | 'primary'\n | 'success'\n | 'warning'\n | 'error'\n | 'muted';\n\n@Component({\n selector: 'ds-timeline-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './timeline-item.component.html',\n styleUrl: './timeline-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.data-tone]': 'tone()',\n },\n})\nexport class TimelineItemComponent {\n /** Primary text for the entry. */\n readonly heading = input<string>('');\n /** Timestamp or date label shown below the content. */\n readonly time = input<string>('');\n /** Icon shown in the marker; omit for a plain dot. */\n readonly icon = input<IconName | null>(null);\n /** Semantic accent color for the marker. */\n readonly tone = input<TimelineTone>('default');\n}\n","<div class=\"node-col\">\n <span class=\"node\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"15\"\n />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"content\">\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n viewChildren,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\n\nexport type OtpMode = 'numeric' | 'alphanumeric';\n\n@Component({\n selector: 'ds-otp-input',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './otp-input.component.html',\n styleUrl: './otp-input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => OtpInputComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n role: 'group',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-describedby]': 'hintId()',\n },\n})\nexport class OtpInputComponent extends DsControlValueAccessor<string> {\n /** Entered code, two-way bound. */\n readonly value = model<string>('');\n /** Number of character cells. */\n readonly length = input<number>(6);\n /** Restricts input and the mobile keyboard to digits-only, or allows letters too. */\n readonly mode = input<OtpMode>('numeric');\n /** Renders each cell as a password dot instead of the typed character. */\n readonly mask = input(false, { transform: booleanAttribute });\n /** Disables all cells and blocks interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Accessible group label for the cell row. */\n readonly ariaLabel = input<string>('Verification code');\n /** Fires once, with the full code, on the partial → complete transition. */\n readonly completed = output<string>();\n\n private readonly boxes = viewChildren<ElementRef<HTMLInputElement>>('box');\n private wasComplete = false;\n\n protected readonly uid = nextControlId('ds-otp-input');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n // Fixed-length, position-preserving view of the current value.\n protected readonly cells = computed<string[]>(() => {\n const value = this.value().slice(0, this.length());\n\n return Array.from({ length: this.length() }, (_, i) => value[i] ?? '');\n });\n\n protected onInput(event: Event, index: number): void {\n const element = event.target as HTMLInputElement;\n const cleaned = this.sanitize(element.value);\n if (!cleaned) {\n this.writeCell(index, '');\n element.value = '';\n\n return;\n }\n // Every branch writes element.value itself: Angular diffs `[value]` against the\n // value IT last wrote, so a split that leaves this cell's signal unchanged skips\n // the DOM write and the browser's own text stays on screen.\n if (cleaned.length === 1) {\n this.writeCell(index, cleaned);\n element.value = cleaned;\n this.focusBox(index + 1);\n } else {\n this.distribute(cleaned, index);\n element.value = cleaned[0];\n }\n }\n\n protected onKeydown(event: KeyboardEvent, index: number): void {\n switch (event.key) {\n case 'Backspace':\n if (!this.cells()[index]) {\n event.preventDefault();\n this.writeCell(index - 1, '');\n this.focusBox(index - 1);\n }\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusBox(index - 1);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.focusBox(index + 1);\n break;\n default:\n break;\n }\n }\n\n protected onPaste(event: ClipboardEvent, index: number): void {\n const text = event.clipboardData?.getData('text') ?? '';\n const cleaned = this.sanitize(text);\n if (!cleaned) {\n return;\n }\n event.preventDefault();\n this.distribute(cleaned, index);\n }\n\n protected onFocus(event: FocusEvent, index: number): void {\n (event.target as HTMLInputElement).select();\n // Keep entry left-packed: redirect focus to the first empty cell so the user\n // can't type into a gap (the flat value string can't represent middle gaps).\n const firstEmpty = this.firstEmptyIndex();\n if (firstEmpty >= 0 && index > firstEmpty) {\n this.focusBox(firstEmpty);\n }\n }\n\n protected cellLabel(index: number): string {\n const noun = this.mode() === 'numeric' ? 'Digit' : 'Character';\n\n return `${noun} ${index + 1}`;\n }\n\n protected onBlur(): void {\n this.markTouched();\n }\n\n private writeCell(index: number, char: string): void {\n if (index < 0 || index >= this.length()) {\n return;\n }\n const next = this.cells().slice();\n next[index] = char;\n this.commit(next);\n }\n\n private distribute(text: string, startIndex: number): void {\n const next = this.cells().slice();\n let cursor = startIndex;\n for (const char of text) {\n if (cursor >= this.length()) {\n break;\n }\n next[cursor] = char;\n cursor++;\n }\n this.commit(next);\n this.focusBox(Math.min(cursor, this.length() - 1));\n }\n\n private commit(cells: string[]): void {\n const value = cells.join('').slice(0, this.length());\n this.value.set(value);\n // Fire `completed` only on the partial → full transition, not on every\n // edit of an already-complete code (which would re-trigger consumers).\n const complete = value.length === this.length();\n if (complete && !this.wasComplete) {\n this.completed.emit(value);\n }\n this.wasComplete = complete;\n }\n\n private firstEmptyIndex(): number {\n return this.cells().findIndex((cell) => cell === '');\n }\n\n private focusBox(index: number): void {\n const box = this.boxes()[index]?.nativeElement;\n if (box) {\n box.focus();\n box.select();\n }\n }\n\n private sanitize(raw: string): string {\n const pattern = this.mode() === 'numeric' ? /[^0-9]/g : /[^0-9a-zA-Z]/g;\n\n return raw.replace(pattern, '');\n }\n}\n","<div class=\"cells\">\n @for (cell of cells(); track $index; let i = $index) {\n <input\n #box\n class=\"cell\"\n [type]=\"mask() ? 'password' : 'text'\"\n [attr.inputmode]=\"mode() === 'numeric' ? 'numeric' : 'text'\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [attr.aria-label]=\"cellLabel(i)\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [value]=\"cell\"\n [disabled]=\"isDisabled()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event, i)\"\n (focus)=\"onFocus($event, i)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n numberAttribute,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport { nextControlId } from '../field-ids';\n\ntype SliderValue = number | readonly [number, number];\n\n@Component({\n selector: 'ds-slider',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './slider.component.html',\n styleUrl: './slider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent),\n multi: true,\n },\n ],\n host: {\n '[class.range]': 'range()',\n '[class.disabled]': 'isDisabled()',\n '[class.invalid]': 'invalidResolved()',\n },\n})\nexport class SliderComponent extends DsControlValueAccessor<SliderValue> {\n /** Current value, or `[low, high]` when `range`. Two-way bound. */\n readonly value = model<SliderValue>(0);\n /** Minimum selectable value. */\n readonly min = input(0, { transform: numberAttribute });\n /** Maximum selectable value. */\n readonly max = input(100, { transform: numberAttribute });\n /** Increment applied when dragging (snap) or nudging with arrow keys. */\n readonly step = input(1, { transform: numberAttribute });\n /** Two-thumb range mode — `value` becomes a `[low, high]` tuple. */\n readonly range = input(false, { transform: booleanAttribute });\n /** Disables the slider and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the thumb(s) — suffixed \"minimum\"/\"maximum\" in `range` mode. */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n private dragging = -1;\n\n protected readonly uid = nextControlId('ds-slider');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly thumbValues = computed<number[]>(() => {\n const value = this.value();\n if (this.range()) {\n const [low, high] = value as readonly [number, number];\n\n return [low, high];\n }\n\n return [value as number];\n });\n\n protected readonly fill = computed<{ left: number; width: number }>(() => {\n const values = this.thumbValues();\n if (this.range()) {\n const low = this.percent(values[0]);\n const high = this.percent(values[1]);\n\n return { left: low, width: high - low };\n }\n\n return { left: 0, width: this.percent(values[0]) };\n });\n\n protected percent(value: number): number {\n const min = this.min();\n const max = this.max();\n\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n }\n\n protected thumbMin(index: number): number {\n return this.range() && index === 1 ? this.thumbValues()[0] : this.min();\n }\n\n protected thumbMax(index: number): number {\n return this.range() && index === 0 ? this.thumbValues()[1] : this.max();\n }\n\n protected onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const track = this.track().nativeElement;\n track.setPointerCapture(event.pointerId);\n this.dragging = this.nearestThumb(event.clientX);\n this.updateFromClientX(event.clientX);\n track.querySelectorAll<HTMLElement>('.thumb')[this.dragging]?.focus();\n }\n\n protected onTrackPointerMove(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n this.updateFromClientX(event.clientX);\n }\n\n // Bound to both pointerup and pointercancel — touch interventions (scroll\n // takeover, stylus lift) fire pointercancel, and without it the drag state\n // would leak and keep moving the thumb with no pointer down.\n protected onTrackPointerUp(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n const track = this.track().nativeElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.dragging = -1;\n this.markTouched();\n }\n\n protected thumbAriaLabel(index: number): string | null {\n const base = this.ariaLabel();\n if (!this.range()) {\n return base;\n }\n if (index === 0) {\n return base ? `${base} minimum` : 'Minimum';\n }\n\n return base ? `${base} maximum` : 'Maximum';\n }\n\n protected onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n const step = this.step() || 1;\n let delta = 0;\n let absolute: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n delta = step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n delta = -step;\n break;\n case 'PageUp':\n delta = step * 10;\n break;\n case 'PageDown':\n delta = -step * 10;\n break;\n case 'Home':\n absolute = this.thumbMin(index);\n break;\n case 'End':\n absolute = this.thumbMax(index);\n break;\n default:\n return;\n }\n event.preventDefault();\n const current = this.thumbValues()[index];\n this.setThumb(index, absolute ?? this.snap(current + delta));\n }\n\n private nearestThumb(clientX: number): number {\n if (!this.range()) {\n return 0;\n }\n const value = this.valueFromClientX(clientX);\n const [low, high] = this.thumbValues();\n\n return Math.abs(value - low) <= Math.abs(value - high) ? 0 : 1;\n }\n\n private updateFromClientX(clientX: number): void {\n this.setThumb(this.dragging, this.snap(this.valueFromClientX(clientX)));\n }\n\n private valueFromClientX(clientX: number): number {\n const rect = this.track().nativeElement.getBoundingClientRect();\n if (rect.width === 0) {\n return this.min();\n }\n const ratio = Math.min(1, Math.max(0, (clientX - rect.left) / rect.width));\n\n return this.min() + ratio * (this.max() - this.min());\n }\n\n private setThumb(index: number, next: number): void {\n if (this.range()) {\n const [low, high] = this.thumbValues();\n this.value.set(\n index === 0 ? [Math.min(next, high), high] : [low, Math.max(next, low)],\n );\n } else {\n this.value.set(next);\n }\n }\n\n private snap(raw: number): number {\n const step = this.step() || 1;\n const min = this.min();\n const snapped = Math.round((raw - min) / step) * step + min;\n\n return Math.min(this.max(), Math.max(min, snapped));\n }\n}\n","<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\"\n>\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\"\n >\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\"\n >\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '../../icons/icon.component';\nimport type { TreeNode } from './tree.types';\n\ninterface VisibleNode {\n node: TreeNode;\n level: number;\n hasChildren: boolean;\n expanded: boolean;\n}\n\n@Component({\n selector: 'ds-tree',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'tree',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class TreeComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Root-level nodes; nest via `children`. */\n readonly nodes = input<readonly TreeNode[]>([]);\n /** Two-way set of currently expanded node ids. */\n readonly expandedIds = model<Set<string>>(new Set());\n /** Two-way id of the currently selected node. */\n readonly selectedId = model<string | null>(null);\n /** Fires with the node when a row is selected (click or Enter/Space). */\n readonly nodeSelected = output<TreeNode>();\n\n private readonly activeId = signal<string | null>(null);\n\n // Depth-first list of currently-visible nodes; drives rendering and keyboard nav.\n protected readonly visibleNodes = computed<VisibleNode[]>(() => {\n const out: VisibleNode[] = [];\n const walk = (list: readonly TreeNode[], level: number): void => {\n for (const node of list) {\n const hasChildren = !!node.children?.length;\n const expanded = this.isExpanded(node.id);\n out.push({ node, level, hasChildren, expanded });\n if (hasChildren && expanded) {\n walk(node.children ?? [], level + 1);\n }\n }\n };\n walk(this.nodes(), 0);\n\n return out;\n });\n\n // The single roving-tabindex treeitem — the active node, or the first one.\n protected readonly effectiveActiveId = computed(\n () => this.activeId() ?? this.visibleNodes()[0]?.node.id ?? null,\n );\n\n protected isExpanded(id: string): boolean {\n return this.expandedIds().has(id);\n }\n\n protected isSelected(id: string): boolean {\n return this.selectedId() === id;\n }\n\n protected isActive(id: string): boolean {\n return this.effectiveActiveId() === id;\n }\n\n protected onRowClick(entry: VisibleNode): void {\n if (entry.node.disabled) {\n return;\n }\n this.select(entry.node);\n if (entry.hasChildren) {\n this.toggle(entry.node);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const visible = this.visibleNodes();\n const index = visible.findIndex(\n (entry) => entry.node.id === this.effectiveActiveId(),\n );\n if (index < 0) {\n return;\n }\n const current = visible[index];\n switch (event.key) {\n case 'ArrowDown':\n this.moveActive(index + 1);\n break;\n case 'ArrowUp':\n this.moveActive(index - 1);\n break;\n case 'Home':\n this.moveActive(0);\n break;\n case 'End':\n this.moveActive(visible.length - 1);\n break;\n case 'ArrowRight':\n if (current.hasChildren && !current.expanded) {\n this.toggle(current.node);\n } else if (current.hasChildren) {\n this.moveActive(index + 1);\n }\n break;\n case 'ArrowLeft':\n if (current.hasChildren && current.expanded) {\n this.toggle(current.node);\n } else {\n this.moveToParent(visible, index);\n }\n break;\n default:\n // Enter / Space activate the focused row via its native button click.\n return;\n }\n event.preventDefault();\n }\n\n private toggle(node: TreeNode): void {\n if (node.disabled || !node.children?.length) {\n return;\n }\n const next = new Set(this.expandedIds());\n if (next.has(node.id)) {\n next.delete(node.id);\n } else {\n next.add(node.id);\n }\n this.expandedIds.set(next);\n }\n\n private select(node: TreeNode): void {\n if (node.disabled) {\n return;\n }\n this.selectedId.set(node.id);\n this.activeId.set(node.id);\n this.nodeSelected.emit(node);\n }\n\n private moveActive(targetIndex: number): void {\n const visible = this.visibleNodes();\n if (targetIndex < 0 || targetIndex >= visible.length) {\n return;\n }\n this.focusNode(visible[targetIndex].node.id);\n }\n\n private moveToParent(visible: VisibleNode[], index: number): void {\n const level = visible[index].level;\n for (let i = index - 1; i >= 0; i--) {\n if (visible[i].level < level) {\n this.focusNode(visible[i].node.id);\n\n return;\n }\n }\n }\n\n private focusNode(id: string): void {\n this.activeId.set(id);\n this.host.nativeElement\n .querySelector<HTMLElement>(`[data-node-id=\"${id}\"]`)\n ?.focus();\n }\n}\n","@for (entry of visibleNodes(); track entry.node.id) {\n <button\n type=\"button\"\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [disabled]=\"entry.node.disabled\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry)\"\n >\n @if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n [name]=\"entry.expanded ? 'chevronDown' : 'chevronRight'\"\n [size]=\"16\"\n />\n } @else {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"label\">\n {{ entry.node.label }}\n </span>\n </button>\n}\n","/** Hue 0–360, saturation/value 0–100 — the model the Photoshop-style picker\n * manipulates. Hex is the public value; these convert between the two. */\nexport interface Hsv {\n h: number;\n s: number;\n v: number;\n}\n\nexport function normalizeHex(hex: string): string | null {\n const match = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(hex.trim());\n if (!match) {\n return null;\n }\n const body = match[1];\n const full =\n body.length === 3\n ? `${body[0]}${body[0]}${body[1]}${body[1]}${body[2]}${body[2]}`\n : body;\n\n return `#${full.toLowerCase()}`;\n}\n\nexport function hexToHsv(hex: string): Hsv | null {\n const normalized = normalizeHex(hex);\n if (!normalized) {\n return null;\n }\n const red = parseInt(normalized.slice(1, 3), 16) / 255;\n const green = parseInt(normalized.slice(3, 5), 16) / 255;\n const blue = parseInt(normalized.slice(5, 7), 16) / 255;\n\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const delta = max - min;\n\n let hue = 0;\n if (delta !== 0) {\n if (max === red) {\n hue = ((green - blue) / delta) % 6;\n } else if (max === green) {\n hue = (blue - red) / delta + 2;\n } else {\n hue = (red - green) / delta + 4;\n }\n hue = Math.round(hue * 60);\n if (hue < 0) {\n hue += 360;\n }\n }\n const saturation = max === 0 ? 0 : delta / max;\n\n return {\n h: hue,\n s: Math.round(saturation * 100),\n v: Math.round(max * 100),\n };\n}\n\nexport function hsvToHex({ h, s, v }: Hsv): string {\n const saturation = s / 100;\n const value = v / 100;\n const chroma = value * saturation;\n const second = chroma * (1 - Math.abs(((h / 60) % 2) - 1));\n const matchLightness = value - chroma;\n\n let red = 0;\n let green = 0;\n let blue = 0;\n if (h < 60) {\n red = chroma;\n green = second;\n } else if (h < 120) {\n red = second;\n green = chroma;\n } else if (h < 180) {\n green = chroma;\n blue = second;\n } else if (h < 240) {\n green = second;\n blue = chroma;\n } else if (h < 300) {\n red = second;\n blue = chroma;\n } else {\n red = chroma;\n blue = second;\n }\n\n const toHex = (channel: number): string =>\n Math.round((channel + matchLightness) * 255)\n .toString(16)\n .padStart(2, '0');\n\n return `#${toHex(red)}${toHex(green)}${toHex(blue)}`;\n}\n","import {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '../../icons/icon.component';\nimport { DsOverlayCloseRef } from '../../overlay/ds-overlay-close-ref';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport {\n type Hsv,\n hexToHsv,\n hsvToHex,\n normalizeHex,\n} from './color-picker.utils';\n\nconst DEFAULT_PRESETS: readonly string[] = [\n '#2F54FF',\n '#0EA5E9',\n '#16A34A',\n '#EAB308',\n '#F97316',\n '#EF4444',\n '#EC4899',\n '#8B5CF6',\n '#6B7280',\n '#111827',\n '#FFFFFF',\n];\n\n@Component({\n selector: 'ds-color-picker',\n standalone: true,\n imports: [IconComponent, FieldMessageComponent],\n templateUrl: './color-picker.component.html',\n styleUrl: './color-picker.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ColorPickerComponent),\n multi: true,\n },\n {\n provide: DsOverlayCloseRef,\n useExisting: forwardRef(() => ColorPickerComponent),\n },\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.open]': 'open()',\n '[class.disabled]': 'isDisabled()',\n },\n})\nexport class ColorPickerComponent\n extends DsControlValueAccessor<string>\n implements DsOverlayCloseRef, OnDestroy\n{\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-color-picker-swatch',\n '--ds-color-picker-preview',\n '--ds-color-picker-panel-w',\n '--ds-color-picker-sv-h',\n '--ds-color-picker-hue-h',\n '--ds-color-picker-thumb',\n ];\n\n /** Selected colour as a hex string, two-way bound. */\n readonly value = model<string>('#2F54FF');\n /** Swatches shown in the panel — defaults to a built-in palette. */\n readonly presets = input<readonly string[]>(DEFAULT_PRESETS);\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the trigger button and panel. */\n readonly ariaLabel = input<string>('Choose colour');\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLButtonElement>>('trigger');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n protected readonly open = signal(false);\n\n // Working HSV state while the panel is open — the saturation/value plane and\n // the hue slider both manipulate this; the hex `value` is derived from it.\n protected readonly hsv = signal<Hsv>(\n hexToHsv('#2F54FF') ?? { h: 0, s: 0, v: 0 },\n );\n\n private overlayRef: OverlayRef | null = null;\n private svDragging = false;\n private hueDragging = false;\n\n ngOnDestroy(): void {\n // Host torn down while open → close() never runs. Dispose the overlay so\n // its pane and event subscriptions don't leak.\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected readonly uid = nextControlId('ds-color-picker');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n // Normalised hex for the trigger swatch + hex field.\n protected readonly displayHex = computed(\n () => normalizeHex(this.value()) ?? '#000000',\n );\n\n // Pure-hue fill behind the saturation/value plane.\n protected readonly hueColor = computed(() =>\n hsvToHex({ h: this.hsv().h, s: 100, v: 100 }),\n );\n\n protected readonly svThumb = computed(() => {\n const { s: saturation, v: value } = this.hsv();\n\n return { left: saturation, top: 100 - value };\n });\n\n protected readonly huePercent = computed(() => (this.hsv().h / 360) * 100);\n\n protected toggle(): void {\n if (this.isDisabled()) {\n return;\n }\n if (this.open()) {\n this.close();\n } else {\n this.openPanel();\n }\n }\n\n protected selectPreset(hex: string): void {\n this.commitHex(hex);\n this.close();\n }\n\n protected isSelected(hex: string): boolean {\n return normalizeHex(hex) === this.displayHex();\n }\n\n protected onHexInput(event: Event): void {\n const parsed = hexToHsv((event.target as HTMLInputElement).value);\n if (parsed) {\n this.hsv.set(parsed);\n this.value.set(hsvToHex(parsed));\n }\n }\n\n protected onSvPointerDown(event: PointerEvent): void {\n const plane = event.currentTarget as HTMLElement;\n plane.setPointerCapture(event.pointerId);\n this.svDragging = true;\n this.updateSv(event, plane);\n }\n\n protected onSvPointerMove(event: PointerEvent): void {\n if (this.svDragging) {\n this.updateSv(event, event.currentTarget as HTMLElement);\n }\n }\n\n protected onSvPointerUp(event: PointerEvent): void {\n if (!this.svDragging) {\n return;\n }\n const plane = event.currentTarget as HTMLElement;\n if (plane.hasPointerCapture(event.pointerId)) {\n plane.releasePointerCapture(event.pointerId);\n }\n this.svDragging = false;\n }\n\n protected onSvKeydown(event: KeyboardEvent): void {\n const { s: saturation, v: value } = this.hsv();\n const step = event.shiftKey ? 10 : 1;\n let nextSaturation = saturation;\n let nextValue = value;\n switch (event.key) {\n case 'ArrowRight':\n nextSaturation = saturation + step;\n break;\n case 'ArrowLeft':\n nextSaturation = saturation - step;\n break;\n case 'ArrowUp':\n nextValue = value + step;\n break;\n case 'ArrowDown':\n nextValue = value - step;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.setHsv({\n s: this.clampPct(nextSaturation),\n v: this.clampPct(nextValue),\n });\n }\n\n protected onHuePointerDown(event: PointerEvent): void {\n const track = event.currentTarget as HTMLElement;\n track.setPointerCapture(event.pointerId);\n this.hueDragging = true;\n this.updateHue(event, track);\n }\n\n protected onHuePointerMove(event: PointerEvent): void {\n if (this.hueDragging) {\n this.updateHue(event, event.currentTarget as HTMLElement);\n }\n }\n\n protected onHuePointerUp(event: PointerEvent): void {\n if (!this.hueDragging) {\n return;\n }\n const track = event.currentTarget as HTMLElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.hueDragging = false;\n }\n\n protected onHueKeydown(event: KeyboardEvent): void {\n const step = event.shiftKey ? 10 : 1;\n let next = this.hsv().h;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n next += step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n next -= step;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.setHsv({ h: (next + 360) % 360 });\n }\n\n private openPanel(): void {\n if (this.overlayRef) {\n return;\n }\n const parsed = hexToHsv(this.value());\n if (parsed) {\n this.hsv.set(parsed);\n }\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n this.host.nativeElement,\n );\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n this.overlayRef = null;\n this.open.set(false);\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.open.set(true);\n }\n\n close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.overlayRef) {\n return;\n }\n const focusWasInPanel = focusIsInside(this.overlayRef);\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.open.set(false);\n this.markTouched();\n if (focusWasInPanel) {\n this.trigger().nativeElement.focus({ preventScroll: true });\n }\n }\n\n private setHsv(partial: Partial<Hsv>): void {\n const next = { ...this.hsv(), ...partial };\n this.hsv.set(next);\n this.value.set(hsvToHex(next));\n }\n\n private commitHex(hex: string): void {\n const parsed = hexToHsv(hex);\n if (parsed) {\n this.hsv.set(parsed);\n this.value.set(hsvToHex(parsed));\n }\n }\n\n private updateSv(event: PointerEvent, plane: HTMLElement): void {\n const rect = plane.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) {\n return;\n }\n const saturation = this.clampPct(\n ((event.clientX - rect.left) / rect.width) * 100,\n );\n const value = this.clampPct(\n 100 - ((event.clientY - rect.top) / rect.height) * 100,\n );\n this.setHsv({ s: Math.round(saturation), v: Math.round(value) });\n }\n\n private updateHue(event: PointerEvent, track: HTMLElement): void {\n const rect = track.getBoundingClientRect();\n if (rect.width === 0) {\n return;\n }\n const ratio = Math.min(\n 1,\n Math.max(0, (event.clientX - rect.left) / rect.width),\n );\n this.setHsv({ h: Math.round(ratio * 360) });\n }\n\n private clampPct(value: number): number {\n return Math.min(100, Math.max(0, value));\n }\n}\n","<button\n #trigger\n type=\"button\"\n class=\"trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n>\n <span\n class=\"swatch\"\n [style.background-color]=\"displayHex()\"\n >\n </span>\n\n <span class=\"hex\">\n {{ displayHex() }}\n </span>\n\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"16\"\n />\n</button>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n<ng-template #panel>\n <div\n class=\"panel\"\n role=\"dialog\"\n [attr.aria-label]=\"ariaLabel()\"\n >\n <div\n class=\"sv-plane\"\n tabindex=\"0\"\n aria-label=\"Saturation and brightness — use arrow keys to adjust\"\n [style.background-color]=\"hueColor()\"\n (pointerdown)=\"onSvPointerDown($event)\"\n (pointermove)=\"onSvPointerMove($event)\"\n (pointerup)=\"onSvPointerUp($event)\"\n (pointercancel)=\"onSvPointerUp($event)\"\n (keydown)=\"onSvKeydown($event)\"\n >\n <span\n class=\"sv-thumb\"\n [style.left.%]=\"svThumb().left\"\n [style.top.%]=\"svThumb().top\"\n >\n </span>\n </div>\n\n <div\n class=\"hue-track\"\n role=\"slider\"\n tabindex=\"0\"\n aria-label=\"Hue\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"360\"\n [attr.aria-valuenow]=\"hsv().h\"\n (pointerdown)=\"onHuePointerDown($event)\"\n (pointermove)=\"onHuePointerMove($event)\"\n (pointerup)=\"onHuePointerUp($event)\"\n (pointercancel)=\"onHuePointerUp($event)\"\n (keydown)=\"onHueKeydown($event)\"\n >\n <span\n class=\"hue-thumb\"\n [style.left.%]=\"huePercent()\"\n >\n </span>\n </div>\n\n <div class=\"fields\">\n <span\n class=\"preview\"\n [style.background-color]=\"displayHex()\"\n >\n </span>\n\n <input\n type=\"text\"\n class=\"hex-input\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n aria-label=\"Hex colour value\"\n [value]=\"displayHex()\"\n (input)=\"onHexInput($event)\"\n />\n </div>\n\n <div\n class=\"presets\"\n role=\"group\"\n aria-label=\"Preset colours\"\n >\n @for (preset of presets(); track preset) {\n <button\n type=\"button\"\n class=\"preset\"\n [class.selected]=\"isSelected(preset)\"\n [style.background-color]=\"preset\"\n [attr.aria-label]=\"preset\"\n [attr.aria-pressed]=\"isSelected(preset)\"\n (click)=\"selectPreset(preset)\"\n >\n </button>\n }\n </div>\n </div>\n</ng-template>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n model,\n numberAttribute,\n signal,\n contentChild,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { chipFit } from '../chip-overflow';\nimport { IconComponent } from '../../icons/icon.component';\nimport { SpinnerComponent } from '../spinner/spinner.component';\nimport { TagComponent } from '../tag/tag.component';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport {\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n prepareOverlayEnter,\n} from '../overlay-motion';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage, trimmedText } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport { resolveWithConfig } from '../../core/config-defaults';\nimport type { DsSize } from '../../core/size';\nimport { DsOptionTemplateDirective } from '../option-template.directive';\nimport { DsChipTemplateDirective } from '../chip-template.directive';\nimport { DsPickerTriggerDirective } from '../picker-trigger.directive';\nimport { DsEmptyTemplateDirective } from '../empty-template.directive';\nimport { DsPanelHeaderTemplateDirective } from '../panel-header-template.directive';\nimport { DsPanelFooterTemplateDirective } from '../panel-footer-template.directive';\nimport { DsGroupLabelTemplateDirective } from '../group-label-template.directive';\nimport { BadgeComponent } from '../badge/badge.component';\nimport type { DsTriggerDisplay } from '../../core/trigger-display';\nimport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from './multi-select.types';\nimport { flattenDsOptions, isDsOptionGroup } from '../../core/option';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '../../core/list-cursor';\nimport { scrollActiveOptionIntoView } from '../scroll-active-option';\nimport { announceOptionCount } from '../picker-announcer';\nimport { createTypeAhead } from '../type-ahead';\n\n@Component({\n selector: 'ds-multi-select',\n standalone: true,\n imports: [\n IconComponent,\n SpinnerComponent,\n TagComponent,\n BadgeComponent,\n FieldMessageComponent,\n NgTemplateOutlet,\n ],\n templateUrl: './multi-select.component.html',\n styleUrl: './multi-select.component.scss',\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.content-width]': \"width() === 'content'\",\n '[class.compact-trigger]': 'showsCompactTrigger()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MultiSelectComponent),\n multi: true,\n },\n ],\n})\nexport class MultiSelectComponent\n extends DsControlValueAccessor<string[]>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-multi-select { --ds-multi-select-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-multi-select-panel-bg-color',\n '--ds-multi-select-option-bg-color-active',\n '--ds-multi-select-check-bg-color',\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-minw',\n '--ds-dropdown-panel-maxw',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Selected values, two-way bound. */\n readonly value = model<string[]>([]);\n /** Options, groups, or both mixed — rendered in the order given. */\n readonly options = input<readonly MultiSelectItem[]>([]);\n /** Placeholder shown in the trigger when nothing is selected. */\n readonly placeholder = input<string>('Select…');\n /** Placeholder for the in-panel filter input. */\n readonly searchPlaceholder = input<string>('Filter…');\n /** Whether the panel carries a filter row. `true` always, `false` never, and a\n * NUMBER is a threshold — the row appears once there are at least that many\n * options. Unset falls back to `DS_CONFIG.picker.searchable`, then `true`.\n *\n * Hiding it moves the panel's keyboard model onto the trigger: the arrows,\n * Enter, Escape and `aria-activedescendant` are the filter input's today. */\n readonly searchable = input<boolean | number | null, unknown>(null, {\n transform: (raw: unknown) => {\n if (raw === null || raw === undefined) {\n return null;\n }\n // A bare attribute arrives as '' and has to beat the config default, which\n // treating it as \"unset\" would not.\n if (raw === '') {\n return true;\n }\n if (typeof raw === 'number') {\n return raw;\n }\n if (typeof raw === 'boolean') {\n return raw;\n }\n const asNumber = Number(raw);\n\n return Number.isFinite(asNumber) ? asNumber : raw !== 'false';\n },\n });\n readonly searchableResolved = resolveWithConfig<boolean | number>(\n this.searchable,\n (config) => config.picker?.searchable,\n true,\n );\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Prevents opening the panel while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n /** Shows a clear affordance once there is something to clear. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** How the typed query narrows the list.\n *\n * The default matches a case-insensitive substring of `label`. Pass a predicate\n * to match on anything else — a second field, ignoring diacritics, a fuzzy score.\n * Pass `'none'` when the list arrives already filtered, which is what a\n * server-side search needs: the query is reported through `filterChange` and\n * every option given is rendered.\n */\n readonly filterWith = input<\n ((option: MultiSelectOption, query: string) => boolean) | 'none'\n >((option, query) => option.label.toLowerCase().includes(query));\n /** The query the user typed, on every change. The input for a server-side search;\n * pair it with `filterWith=\"none\"` so the list is not narrowed twice. */\n readonly filterChange = output<string>();\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** How the chips collapse when they outgrow one line. `\"fit\"` (the default)\n * measures and shows as many as the trigger is wide, the rest behind \"+N more\".\n * A NUMBER is a CEILING, not a promise: the row still measures, so you get at\n * most that many and fewer when the trigger is narrow. `\"all\"` shows every chip and\n * lets the trigger grow a line per selection.\n *\n * Unset (`null`) means \"not deciding\", as it does on every other input in the\n * library — it resolves to `\"fit\"`. It does NOT mean \"show all\": that is\n * `\"all\"`, which is the loudest of the three modes and has to be asked for. */\n readonly maxVisibleChips = input<number | 'fit' | 'all' | null>(null, {\n transform: (raw: unknown) => {\n if (raw === 'fit' || raw === 'all') {\n return raw;\n }\n\n return raw == null ? null : numberAttribute(raw);\n },\n });\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Accessible name for the trigger — falls back to `placeholder`. */\n readonly ariaLabel = input<string | null>(null);\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so a compact trigger does not force an unreadable panel. */\n readonly width = input<MultiSelectWidth>('fill');\n /** Trigger height — sm/md/lg. Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** What the trigger shows. `count` is a caption plus a selected-count badge at\n * intrinsic width; `labels` names the selection instead, cut to the width with the\n * rest behind \"+N\". A projected `dsPickerTrigger` template WINS over this — the\n * input is then not read at all. */\n readonly triggerDisplay = input<DsTriggerDisplay>('full');\n /** Field label above the control — the same meaning it has on `ds-select`, and the\n * caption a `count`/`labels` trigger uses when it needs one. */\n readonly label = input<string>('');\n /** Marks the field required: a `*` beside the label and `aria-required` on the trigger. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Marks the field optional in words, for a form where most fields are required. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Where a \"select all\" row appears. `false` nowhere, `true` one row over the whole\n * panel, `'group'` one row per group, `'both'` for either. Group rows need groups\n * in `options` — with a flat list they have nothing to head. */\n readonly selectAll = input<boolean | 'group' | 'both', unknown>(false, {\n transform: (raw: unknown) =>\n raw === 'group' || raw === 'both' ? raw : booleanAttribute(raw),\n });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly chipTemplate = contentChild(DsChipTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-multi-select');\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly labelId = `${this.uid}-label`;\n protected optionId(index: number): string {\n return `${this.uid}-opt-${index}`;\n }\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly searchInput =\n viewChild<ElementRef<HTMLInputElement>>('search');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n private readonly chipRow = viewChild<ElementRef<HTMLElement>>('chipRow');\n\n protected readonly open = signal(false);\n protected readonly filter = signal('');\n protected readonly activeIndex = signal(-1);\n\n private overlayRef: OverlayRef | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void {\n // Host torn down while open → close() never runs. Dispose the overlay so\n // its pane and event subscriptions don't leak.\n clearTimeout(this.focusTimer ?? undefined);\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly showsCompactTrigger = computed(\n () => !this.pickerTrigger() && this.triggerDisplay() !== 'full',\n );\n\n protected readonly showsSearch = computed<boolean>(() => {\n const setting = this.searchableResolved();\n\n return typeof setting === 'number'\n ? this.allOptions().length >= setting\n : setting;\n });\n\n protected readonly triggerActiveDescendant = computed(() =>\n this.showsSearch() ? null : this.activeDescendant(),\n );\n\n protected readonly triggerCaption = computed(\n () => this.label() || this.ariaLabel() || this.placeholder(),\n );\n\n protected readonly allOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.options()),\n );\n\n protected readonly selectedOptions = computed<MultiSelectOption[]>(() => {\n const selected = this.value();\n\n return this.allOptions().filter((option) =>\n selected.includes(option.value),\n );\n });\n\n private readonly chipsMode = computed(() => this.maxVisibleChips() ?? 'fit');\n private readonly showsEveryChip = computed(() => this.chipsMode() === 'all');\n /** True for BOTH `'fit'` and a number: a number is a ceiling, not a promise, so\n * the row still measures and shows only what the trigger is wide enough for. */\n protected readonly fitsChipsToWidth = computed(() => !this.showsEveryChip());\n /** How many chips the row is ASKED to render before measuring: everything for\n * `'fit'`, the ceiling for a number. It must be the ceiling and not the selection —\n * the width cache only fills from a render that holds every chip. */\n private readonly chipBudget = computed(() => {\n const max = this.chipsMode();\n const total = this.selectedOptions().length;\n\n return typeof max === 'number' ? Math.min(Math.max(max, 0), total) : total;\n });\n private readonly chipsThatFit = chipFit(\n this.chipBudget,\n this.chipRow,\n this.fitsChipsToWidth,\n computed(() => this.selectedOptions().length),\n );\n\n protected readonly visibleChips = computed<MultiSelectOption[]>(() => {\n const selected = this.selectedOptions();\n\n return this.showsEveryChip()\n ? selected\n : selected.slice(0, this.chipsThatFit());\n });\n\n protected readonly overflowCount = computed<number>(\n () => this.selectedOptions().length - this.visibleChips().length,\n );\n\n protected readonly filteredItems = computed<MultiSelectItem[]>(() => {\n const query = this.filter().trim().toLowerCase();\n const filter = this.filterWith();\n const matches = (option: MultiSelectOption): boolean =>\n !query || filter === 'none' || filter(option, query);\n\n const kept: MultiSelectItem[] = [];\n for (const item of this.options()) {\n if (!isDsOptionGroup(item)) {\n if (matches(item)) {\n kept.push(item);\n }\n continue;\n }\n // A disabled group disables its options HERE, not only in the flattened\n // list: the template renders these objects, so a group left to inherit\n // later would paint enabled rows that refuse to be picked.\n const options = item.options\n .filter(matches)\n .map((option) =>\n item.disabled ? { ...option, disabled: true } : option,\n );\n if (options.length > 0) {\n kept.push({ ...item, options });\n }\n }\n\n return kept;\n });\n\n protected readonly filteredOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.filteredItems()),\n );\n\n protected isGroup(item: MultiSelectItem): item is MultiSelectOptionGroup {\n return isDsOptionGroup(item);\n }\n\n /** Where an option sits in the flat visible list — the id the listbox's\n * `aria-activedescendant` points at, which a grouped render cannot get from\n * the loop index. */\n protected flatIndexOf(option: MultiSelectOption): number {\n return this.filteredOptions().indexOf(option);\n }\n\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n\n protected readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() || this.placeholder(),\n );\n\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n private enabledFiltered(): MultiSelectOption[] {\n return this.filteredOptions().filter((option) => !option.disabled);\n }\n\n protected readonly allFilteredSelected = computed<boolean>(() => {\n const enabled = this.enabledFiltered();\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n });\n\n protected readonly someFilteredSelected = computed<boolean>(() => {\n const selected = this.value();\n\n return (\n this.enabledFiltered().some((o) => selected.includes(o.value)) &&\n !this.allFilteredSelected()\n );\n });\n\n protected readonly showsPanelSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === true || setting === 'both';\n });\n\n protected readonly showsGroupSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === 'group' || setting === 'both';\n });\n\n private enabledIn(group: MultiSelectOptionGroup): MultiSelectOption[] {\n return group.options.filter((option) => !option.disabled);\n }\n\n protected groupAllSelected(group: MultiSelectOptionGroup): boolean {\n const enabled = this.enabledIn(group);\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n }\n\n protected groupSomeSelected(group: MultiSelectOptionGroup): boolean {\n const selected = this.value();\n\n return (\n this.enabledIn(group).some((o) => selected.includes(o.value)) &&\n !this.groupAllSelected(group)\n );\n }\n\n protected toggleGroup(group: MultiSelectOptionGroup): void {\n const values = this.enabledIn(group).map((o) => o.value);\n if (this.groupAllSelected(group)) {\n const remove = new Set(values);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n\n return;\n }\n const next = new Set(this.value());\n values.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n\n protected toggleSelectAll(): void {\n const enabledValues = this.enabledFiltered().map((o) => o.value);\n if (this.allFilteredSelected()) {\n const remove = new Set(enabledValues);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n } else {\n const next = new Set(this.value());\n enabledValues.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n }\n\n protected isSelected(value: string): boolean {\n return this.value().includes(value);\n }\n\n protected toggleValue(option: MultiSelectOption): void {\n if (option.disabled) {\n return;\n }\n const current = this.value();\n this.value.set(\n current.includes(option.value)\n ? current.filter((value) => value !== option.value)\n : [...current, option.value],\n );\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n // The button that ran this is destroyed with the chips, so focus would fall\n // to <body>.\n this.trigger().nativeElement.focus();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself. Deliberately does NOT move focus: the caller may be navigating\n * away.\n */\n clear(): void {\n this.value.set([]);\n this.filter.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected removeValue(value: string): void {\n this.value.set(this.value().filter((entry) => entry !== value));\n // The close button that ran this is destroyed with its chip, so focus would\n // fall to <body>.\n this.trigger().nativeElement.focus();\n }\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.filteredOptions().length),\n this.open,\n );\n }\n\n protected onFilter(event: Event): void {\n const typed = (event.target as HTMLInputElement).value;\n this.filter.set(typed);\n this.filterChange.emit(typed);\n this.activeIndex.set(this.firstEnabledIndex());\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(key, this.filteredOptions().map((option) => option.label), this.activeIndex());\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const options = this.filteredOptions();\n\n return {\n length: options.length,\n isEnabled: (index: number) => !options[index].disabled,\n };\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (this.isDisabled()) {\n return;\n }\n // With no filter row the trigger runs the input's handler, and must take Enter\n // first — otherwise Enter toggles the panel instead of picking the active row.\n if (this.open() && !this.showsSearch()) {\n this.onSearchKeydown(event);\n\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.onTriggerClick();\n\n return;\n }\n if (event.key === 'ArrowDown' && !this.open()) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n if (!this.open() && this.handleTypeAhead(event.key)) {\n event.preventDefault();\n }\n }\n\n protected onSearchKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.moveActive(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.moveActive(-1);\n break;\n case 'Enter': {\n event.preventDefault();\n const option = this.filteredOptions()[this.activeIndex()];\n if (option) {\n this.toggleValue(option);\n }\n break;\n }\n case 'Escape':\n event.preventDefault();\n this.close('dismiss');\n break;\n case 'PageDown':\n event.preventDefault();\n this.moveActive(MultiSelectComponent.pageStep);\n break;\n case 'PageUp':\n event.preventDefault();\n this.moveActive(-MultiSelectComponent.pageStep);\n break;\n case 'Home':\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n break;\n case 'End':\n event.preventDefault();\n this.activeIndex.set(lastEnabledOf(this.cursorList()));\n break;\n case 'Tab':\n this.close('dismiss');\n break;\n case 'Backspace':\n if (!this.filter()) {\n const selected = this.selectedOptions();\n if (selected.length) {\n this.removeValue(selected[selected.length - 1].value);\n }\n }\n break;\n default:\n break;\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef || this.isDisabled() || this.isReadOnly()) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n );\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n // A compact trigger hugs its caption, so pinning the panel to it gives a panel\n // too narrow to read its own options — the trigger width becomes a FLOOR here\n // whether or not the consumer asked for `content`.\n if (this.width() === 'content' || this.showsCompactTrigger()) {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n const detaching = this.overlayRef;\n this.overlayRef.detachments().subscribe(() => {\n removeScrollClose();\n // A deferred dispose can outlive a re-open, and then this fires for the\n // PREVIOUS panel: clearing state here would strand the live one.\n if (this.overlayRef !== detaching) {\n return;\n }\n this.overlayRef = null;\n this.setOpen(false);\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.setOpen(true);\n this.activeIndex.set(this.firstEnabledIndex());\n if (this.showsSearch()) {\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n this.searchInput()?.nativeElement.focus();\n });\n }\n }\n\n protected onTriggerClick(): void {\n if (this.isDisabled()) {\n return;\n }\n if (this.overlayRef) {\n this.close();\n\n return;\n }\n this.openPanel();\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.overlayRef) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.overlayRef);\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.filter.set('');\n this.activeIndex.set(-1);\n this.markTouched();\n if (focusWasInPanel) {\n this.trigger().nativeElement.focus({ preventScroll: true });\n }\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n aria-haspopup=\"listbox\"\n role=\"combobox\"\n [class]=\"'field-trigger ' + sizeResolved()\"\n [class.open]=\"open()\"\n [class.disabled]=\"isDisabled()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [class.readonly]=\"isReadOnly()\"\n [attr.aria-activedescendant]=\"triggerActiveDescendant()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOptions(),\n selected: selectedOptions(),\n count: selectedOptions().length,\n open: open(),\n disabled: isDisabled(),\n }\"\n />\n } @else if (showsCompactTrigger()) {\n <span class=\"trigger-caption\">\n {{ triggerCaption() }}\n </span>\n\n @if (triggerDisplay() === 'labels' && selectedOptions().length > 0) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\"\n >\n @for (option of visibleChips(); track option.value) {\n <span\n data-chip\n class=\"trigger-label\"\n >\n {{ option.label }}\n </span>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow\n >\n +{{ overflowCount() }}\n </span>\n }\n </span>\n } @else if (selectedOptions().length > 0) {\n <ds-badge\n [count]=\"selectedOptions().length\"\n [countLabel]=\"'selected'\"\n />\n }\n } @else if (selectedOptions().length === 0) {\n <span class=\"placeholder\">\n {{ placeholder() }}\n </span>\n } @else {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\"\n >\n @for (option of visibleChips(); track option.value) {\n <ds-tag\n data-chip\n variant=\"neutral\"\n closable\n [closeLabel]=\"'Remove ' + option.label\"\n (closed)=\"removeValue(option.value)\"\n >\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: option, option: option }\"\n />\n } @else {\n {{ option.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow\n >\n +{{ overflowCount() }} more\n </span>\n }\n </span>\n }\n\n @if (\n clearable() &&\n selectedOptions().length > 0 &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\"\n />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\"\n />\n </div>\n }\n\n @if (showsSearch()) {\n <div class=\"search-row\">\n <ds-icon\n class=\"search-icon\"\n name=\"search\"\n [size]=\"16\"\n />\n\n <input\n #search\n type=\"text\"\n class=\"search-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [placeholder]=\"searchPlaceholder()\"\n [value]=\"filter()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n </div>\n }\n\n @if (showsPanelSelectAll() && filteredOptions().length) {\n <button\n type=\"button\"\n class=\"select-all\"\n role=\"checkbox\"\n [attr.aria-checked]=\"\n allFilteredSelected()\n ? 'true'\n : someFilteredSelected()\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleSelectAll()\"\n >\n <span\n class=\"checkbox\"\n [class.checked]=\"allFilteredSelected()\"\n [class.indeterminate]=\"someFilteredSelected()\"\n >\n @if (allFilteredSelected()) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n } @else if (someFilteredSelected()) {\n <span class=\"dash\"></span>\n }\n </span>\n\n <span class=\"select-all-label\">\n Select all\n </span>\n </button>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n >\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\"\n >\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\"\n >\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (showsGroupSelectAll()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"select-all group\"\n role=\"option\"\n [disabled]=\"item.disabled\"\n [attr.aria-selected]=\"groupAllSelected(item)\"\n [attr.aria-checked]=\"\n groupAllSelected(item)\n ? 'true'\n : groupSomeSelected(item)\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleGroup(item)\"\n >\n <span\n class=\"checkbox\"\n [class.checked]=\"groupAllSelected(item)\"\n [class.indeterminate]=\"groupSomeSelected(item)\"\n >\n @if (groupAllSelected(item)) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n } @else if (groupSomeSelected(item)) {\n <span class=\"dash\"></span>\n }\n </span>\n\n All of {{ item.label }}\n </button>\n }\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\"\n >\n @for (option of item.options; track option.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"cursorFromKeyboard.set(false); activeIndex.set(flatIndexOf(option))\"\n >\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\"\n >\n @if (isSelected(option.value)) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n }\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\"\n />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n @let option = item;\n\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"cursorFromKeyboard.set(false); activeIndex.set(flatIndexOf(option))\"\n >\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\"\n >\n @if (isSelected(option.value)) {\n <ds-icon\n name=\"check\"\n [size]=\"13\"\n />\n }\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\"\n />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (filteredOptions().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: filter(),\n query: filter(),\n }\"\n />\n } @else {\n No matches\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\"\n />\n </div>\n }\n\n </div>\n</ng-template>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsBooleanControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-checkbox',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './checkbox.component.html',\n styleUrl: './checkbox.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { '[attr.data-field-state]': 'controlState()' },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxComponent),\n multi: true,\n },\n ],\n})\nexport class CheckboxComponent extends DsBooleanControlValueAccessor {\n /** Checked state, two-way bound. */\n readonly checked = model<boolean>(false);\n /** Shows the partial/mixed visual state — independent of `checked`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Disables the checkbox and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Overrides the generated id used by the native `<input>` and its `<label for>`. */\n readonly inputId = input<string | null>(null);\n /** Checkbox size — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Inline label rendered beside the box and wired via for/id. Omit to\n * bring your own <label>. */\n readonly label = input<string>('');\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly uid = nextControlId('ds-checkbox');\n protected readonly controlId = computed(() => this.inputId() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected readonly controlState = this.fieldMessage.controlState;\n\n protected readonly fieldClass = computed(\n () => `checkbox-field size-${this.sizeResolved()}`,\n );\n\n protected onCheckedChange(event: Event): void {\n this.checked.set((event.target as HTMLInputElement).checked);\n }\n}\n","<div [class]=\"fieldClass()\">\n <span\n class=\"control-line\"\n [class.is-disabled]=\"isDisabled()\"\n >\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.id]=\"controlId()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n (change)=\"onCheckedChange($event)\"\n (blur)=\"markTouched()\"\n />\n\n <label\n class=\"control-text\"\n [attr.for]=\"controlId()\"\n >\n @if (label()) {\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n }\n } @else {\n <ng-content></ng-content>\n }\n </label>\n </span>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n</div>\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-radio reads from its parent ds-radio-group, injected via\n * token to avoid a circular import (radio-group → RadioComponent for\n * contentChildren; radio → RadioGroupComponent for group injection). */\nexport interface RadioGroupContract {\n readonly value: () => unknown;\n readonly groupName: () => string;\n readonly isDisabled: () => boolean;\n isTabbable(radio: RadioGroupChild): boolean;\n select(value: unknown): void;\n}\n\n/** Contract the radio-group reads back from each projected radio. */\nexport interface RadioGroupChild {\n readonly value: () => unknown;\n readonly effectiveDisabled: () => boolean;\n focus(): void;\n}\n\nexport const RADIO_GROUP = new InjectionToken<RadioGroupContract>(\n 'RADIO_GROUP',\n);\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { DsFieldBase } from '../field-base';\nimport { nextControlId } from '../field-ids';\nimport { RADIO_GROUP } from '../radio-group/radio-group.token';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-radio',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio.component.html',\n styleUrl: './radio.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class RadioComponent extends DsFieldBase {\n /** Standalone two-way binding, and the ONLY way to drive a lone radio: this\n * component is deliberately not a `ControlValueAccessor`, so `[formControl]` and\n * `ngModel` do not bind to it. Inside `ds-radio-group` the GROUP is the form\n * control — a radio is one option of a choice, not a value of its own — and a\n * second accessor on the option would fight it. A lone radio in a form binds\n * through `[(checked)]`, or becomes a one-option `ds-radio-group`.\n *\n * When inside `ds-radio-group`, `isChecked()` derives from the group value and\n * this input is not read. */\n readonly checked = model<boolean>(false);\n /** Disables the radio; a disabled parent `ds-radio-group` also disables it. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */\n readonly name = input<string>('');\n /** Value compared against the group's selection when inside `ds-radio-group`. */\n readonly value = input<unknown>('');\n /** Overrides the auto-generated id used for the input and its label's `for`. */\n readonly inputId = input<string | null>(null);\n /** Control size — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Inline label rendered beside the dot and wired via for/id. Omit to bring\n * your own <label>. */\n readonly label = input<string>('');\n\n protected readonly uid = nextControlId('ds-radio');\n protected readonly controlId = computed(() => this.inputId() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n /** Injected via token to avoid circular import with RadioGroupComponent. */\n protected readonly group = inject(RADIO_GROUP, { optional: true });\n\n readonly effectiveDisabled = computed(\n () => this.group?.isDisabled() || this.disabled(),\n );\n protected readonly effectiveName = computed(\n () => this.group?.groupName() ?? this.name(),\n );\n protected readonly isChecked = computed(() =>\n this.group ? this.group.value() === this.value() : this.checked(),\n );\n\n protected readonly fieldClass = computed(\n () => `radio-field size-${this.sizeResolved()}`,\n );\n\n /** Exposed so the group can implement roving tabindex. */\n readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('inputRef');\n\n protected get tabIndexAttr(): 0 | -1 {\n if (!this.group) {\n return 0;\n }\n\n return this.group.isTabbable(this) ? 0 : -1;\n }\n\n /** Called by the group's keyboard handler to focus this radio's input. */\n focus(): void {\n this.inputElement()?.nativeElement.focus();\n }\n\n protected onSelect(): void {\n if (this.effectiveDisabled()) {\n return;\n }\n if (this.group) {\n this.group.select(this.value());\n } else {\n this.checked.set(true);\n }\n }\n}\n","<div [class]=\"fieldClass()\">\n <span\n class=\"control-line\"\n [class.is-disabled]=\"effectiveDisabled()\"\n >\n <input\n #inputRef\n type=\"radio\"\n class=\"radio\"\n [checked]=\"isChecked()\"\n [disabled]=\"effectiveDisabled()\"\n [attr.name]=\"effectiveName() || null\"\n [attr.value]=\"value() ?? null\"\n [attr.id]=\"controlId()\"\n [attr.tabindex]=\"tabIndexAttr\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n (change)=\"onSelect()\"\n />\n\n <label\n class=\"control-text\"\n [attr.for]=\"controlId()\"\n >\n @if (label()) {\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n }\n } @else {\n <ng-content></ng-content>\n }\n </label>\n </span>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n input,\n model,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport { RadioComponent } from '../radio/radio.component';\nimport {\n RADIO_GROUP,\n type RadioGroupChild,\n type RadioGroupContract,\n} from './radio-group.token';\nimport { isTextEntryTarget } from '../../core/key-target';\n\n@Component({\n selector: 'ds-radio-group',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio-group.component.html',\n styleUrl: './radio-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'radiogroup',\n '[attr.aria-label]': 'ariaLabel() || label() || null',\n '[attr.aria-describedby]': 'hintId()',\n '[attr.aria-invalid]': \"invalidResolved() ? 'true' : null\",\n '[attr.data-field-state]': 'controlState()',\n '(keydown)': 'onKeydown($event)',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioGroupComponent),\n multi: true,\n },\n {\n provide: RADIO_GROUP,\n useExisting: forwardRef(() => RadioGroupComponent),\n },\n ],\n})\nexport class RadioGroupComponent\n extends DsControlValueAccessor<unknown>\n implements RadioGroupContract\n{\n /** Selected radio value; two-way bound. */\n readonly value = model<unknown>(null);\n /** Native `name` shared by every radio in the group. */\n readonly name = input<string | null>(null);\n /** Disables the whole group. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the group when no visible label is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Visible group label; omit to supply your own. */\n readonly label = input<string>('');\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly uid = nextControlId('ds-radio-group');\n readonly groupName = computed(() => this.name() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected readonly controlState = this.fieldMessage.controlState;\n\n // contentChildren gives us references to all projected RadioComponents\n // so the group can drive roving tabindex and forward keyboard events.\n private readonly radios = contentChildren(RadioComponent);\n\n private get enabledRadios(): RadioGroupChild[] {\n return (this.radios() as unknown as RadioGroupChild[]).filter(\n (radio) => !radio.effectiveDisabled(),\n );\n }\n\n isTabbable(radio: RadioGroupChild): boolean {\n const currentValue = this.value();\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n\n // The checked radio is tabbable; if none checked, the first enabled radio.\n if (currentValue !== null && currentValue !== undefined) {\n const matchIndex = allRadios.findIndex((r) => r.value() === currentValue);\n if (matchIndex !== -1) {\n return allRadios[matchIndex] === radio;\n }\n }\n\n const firstEnabled = allRadios.find((r) => !r.effectiveDisabled());\n\n return firstEnabled === radio;\n }\n\n select(value: unknown): void {\n this.value.set(value);\n this.markTouched();\n\n // Focus the newly selected radio so keyboard users stay on track.\n const selected = (this.radios() as unknown as RadioGroupChild[]).find(\n (radio) => radio.value() === value,\n );\n selected?.focus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const key = event.key;\n // Enter is deliberately absent: the group sits in forms, where Enter is the\n // submit and swallowing it leaves the form with no keyboard way out.\n if (\n !['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft', ' '].includes(key)\n ) {\n return;\n }\n // A text field beside the radios (the \"Other: ___\" row) types its own keys.\n if (isTextEntryTarget(event)) {\n return;\n }\n\n const enabled = this.enabledRadios;\n if (!enabled.length) {\n return;\n }\n\n event.preventDefault();\n\n if (key === ' ') {\n // Select whichever radio currently has DOM focus.\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n const focused = allRadios.find((radio) => {\n // We rely on the radio exposing focus() which targets its inner input.\n // To detect which radio's input is focused we cast to the concrete type.\n const component = radio as unknown as RadioComponent;\n\n return (\n component.inputElement()?.nativeElement === document.activeElement\n );\n });\n if (focused) {\n this.select(focused.value());\n }\n\n return;\n }\n\n const forward = key === 'ArrowDown' || key === 'ArrowRight';\n const currentValue = this.value();\n\n // Find the index of the currently focused/selected radio among enabled ones.\n let currentIndex = enabled.findIndex((radio) => {\n const component = radio as unknown as RadioComponent;\n\n return component.inputElement()?.nativeElement === document.activeElement;\n });\n\n if (currentIndex === -1) {\n // Fall back to the selected radio's index in the enabled list.\n currentIndex = enabled.findIndex(\n (radio) => radio.value() === currentValue,\n );\n }\n\n let nextIndex: number;\n if (currentIndex === -1) {\n // Nothing focused/selected yet: forward → first, backward → last.\n nextIndex = forward ? 0 : enabled.length - 1;\n } else {\n nextIndex = forward\n ? (currentIndex + 1) % enabled.length\n : (currentIndex - 1 + enabled.length) % enabled.length;\n }\n\n const target = enabled[nextIndex];\n this.select(target.value());\n }\n}\n","@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsBooleanControlValueAccessor } from '../control-value-accessor';\nimport { FieldMessageComponent } from '../field-message/field-message.component';\nimport { resolveFieldMessage } from '../field-errors';\nimport { nextControlId } from '../field-ids';\nimport type { DsSize } from '../../core/size';\nimport { resolveWithConfig } from '../../core/config-defaults';\n\n@Component({\n selector: 'ds-switch',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './switch.component.html',\n styleUrl: './switch.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SwitchComponent),\n multi: true,\n },\n ],\n})\nexport class SwitchComponent extends DsBooleanControlValueAccessor {\n /** On/off state, two-way bound. */\n readonly checked = model<boolean>(false);\n /** Disables the switch and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Track colour when checked. */\n readonly variant = input<'default' | 'success' | 'error'>('default');\n /** Overrides the generated id used by the native `<input>` and its `<label for>`. */\n readonly inputId = input<string | null>(null);\n /** Switch size — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Inline label rendered beside the track and wired via for/id. Omit to\n * bring your own <label>. */\n readonly label = input<string>('');\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly uid = nextControlId('ds-switch');\n protected readonly controlId = computed(() => this.inputId() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly switchClasses = computed(() => {\n const variant = this.variant();\n\n return variant === 'default' ? 'switch' : `switch ${variant}`;\n });\n\n protected readonly fieldClass = computed(\n () => `switch-field size-${this.sizeResolved()}`,\n );\n\n protected onCheckedChange(event: Event): void {\n this.checked.set((event.target as HTMLInputElement).checked);\n }\n}\n","<div [class]=\"fieldClass()\">\n <span\n class=\"control-line\"\n [class.is-disabled]=\"isDisabled()\"\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n [class]=\"switchClasses()\"\n [checked]=\"checked()\"\n [attr.aria-checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.id]=\"controlId()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n (change)=\"onCheckedChange($event)\"\n (blur)=\"markTouched()\"\n />\n\n <label\n class=\"control-text\"\n [attr.for]=\"controlId()\"\n >\n @if (label()) {\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n }\n } @else {\n <ng-content></ng-content>\n }\n </label>\n </span>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n />\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["NO_ERRORS","nextId","filter","i1.DsStaticPreview","i1","DOCUMENT","lastEnabledOf","firstEnabledOf","i2"],"mappings":";;;;;;;;;;;;;;;;MAgIa,SAAS,GAAG,IAAI,cAAc,CAAW,WAAW,EAAE;AACjE,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAED;;;;;;;;;;;;AAYG;AACG,SAAU,eAAe,CAAC,MAAgB,EAAA;AAC9C,IAAA,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AA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,SAAA,EARf;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,eAAe,CAAC;AAC9C,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;SACF,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BH,qsCAiDA,k+FD7BY,qBAAqB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAYpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAf3B,SAAS;+BACE,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAGjB,iBAAiB,CAAC,QAAQ,EAAA,SAAA,EAC9B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,qsCAAA,EAAA,MAAA,EAAA,CAAA,06FAAA,CAAA,EAAA;;;AE9BH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
|