@ids-group-ltd/ids-design-system 0.11.3 → 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 +253 -13
- package/components/README.md +86 -0
- package/components.md +12 -4
- package/docs/agent/INDEX.md +1 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/toast-service.md +4 -6
- 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 -14030
- 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 +247 -0
- 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/migrations/0.8.0.json +6 -5
- package/package.json +573 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_ds-color.scss +6 -0
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +11 -2
- 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 -5544
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components.mjs","sources":["../../../src/lib/components/brand-defaults.ts","../../../src/lib/components/chip-overflow.ts","../../../src/lib/components/chip-template.directive.ts","../../../src/lib/components/field-defaults.ts","../../../src/lib/components/field-errors.ts","../../../src/lib/components/message-base.ts","../../../src/lib/components/field-base.ts","../../../src/lib/components/control-value-accessor.ts","../../../src/lib/components/create-template.directive.ts","../../../src/lib/components/empty-template.directive.ts","../../../src/lib/components/field-click-focus.directive.ts","../../../src/lib/components/field-ids.ts","../../../src/lib/components/group-label-template.directive.ts","../../../src/lib/components/option-template.directive.ts","../../../src/lib/components/overlay-motion.ts","../../../src/lib/components/panel-footer-template.directive.ts","../../../src/lib/components/panel-header-template.directive.ts","../../../src/lib/components/picker-announcer.ts","../../../src/lib/components/picker-trigger.directive.ts","../../../src/lib/components/projection-dropped.directive.ts","../../../src/lib/components/scroll-active-option.ts","../../../src/lib/components/static-preview.directive.ts","../../../src/lib/components/type-ahead.ts","../../../src/lib/components/ids-group-ltd-ids-design-system-components.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\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 * @internal\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 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\n/** @internal */\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 { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\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 '@ids-group-ltd/ids-design-system/core';\nimport type { FieldMessageState } from '@ids-group-ltd/ids-design-system/components/field-message';\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\n/** @internal */\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.\n * @internal\n */\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 * @internal\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 '@ids-group-ltd/ids-design-system/core';\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 * @internal\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 { 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 * @internal\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 * @internal\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 * @internal\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 * @internal\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, 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 { 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, 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","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.\n * @internal\n */\nexport function nextControlId(prefix: string): string {\n return `${prefix}-${++nextId}`;\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","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 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 * @internal\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 * @internal\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 * @internal\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 * @internal\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.\n * @internal\n */\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 * @internal\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.\n * @internal\n */\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.\n * @internal\n */\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.\n * @internal\n */\nexport function focusIsInside(overlayRef: OverlayRef): boolean {\n const doc = overlayRef.overlayElement.ownerDocument;\n\n return overlayRef.overlayElement.contains(doc.activeElement);\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 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 { 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 * @internal\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\n ? 'No results'\n : total === 1\n ? '1 result'\n : `${total} results`;\n });\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 {\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 * @internal\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 {\n type Signal,\n afterRenderEffect,\n inject,\n DOCUMENT,\n} 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 * @internal\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 { 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","/**\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\n/** @internal */\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 =\n buffer.length > 1 &&\n [...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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA;;;;;;;;;AASG;AACG,SAAU,iBAAiB,CAC/B,KAA4B,EAC5B,GAAsC,EAAA;AAEtC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,KAAK,EAAE,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;AAC7D;;ACXA;;;;;;;;;;;;;;AAcG;AAEH;;;;;;;;;AASG;AACH,SAAS,gBAAgB,CACvB,IAAwB,EACxB,OAAoB,EAAA;IAEpB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;AACnC,Q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MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;AAC3D,YAAA,MAAM,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK;AACxD,YAAA,MAAM,KAAK,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAE3D,YAAA,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE;AACxD,gBAAA,MAAM,KAAK,GAAG,CAAC,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM;AAC9D,gBAAA,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;AAClD,oBAAA,OAAO,KAAK;gBACd;YACF;YAEA,OAAO,CAAC,CAAC;QACX,CAAC;KACF;AACH;;AClDA;;AAEG;;;;"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { InjectionToken, inject, computed, isDevMode, effect } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Dismiss-on-backdrop for a backdrop that WRAPS its dialog.
|
|
5
|
+
*
|
|
6
|
+
* `click` cannot be trusted there: the browser fires it at the nearest common
|
|
7
|
+
* ancestor of the press and the release, so a drag that starts inside the dialog and
|
|
8
|
+
* ends on the backdrop fires `click` ON THE BACKDROP, and a
|
|
9
|
+
* `target === currentTarget` check waves it through. Hence tracking the press:
|
|
10
|
+
* dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim
|
|
11
|
+
* is a SIBLING of the panel, which makes their common ancestor a third element.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
function backdropDismiss() {
|
|
15
|
+
let pressedOnBackdrop = false;
|
|
16
|
+
return {
|
|
17
|
+
down(event) {
|
|
18
|
+
pressedOnBackdrop =
|
|
19
|
+
event.button === 0 && event.target === event.currentTarget;
|
|
20
|
+
},
|
|
21
|
+
shouldDismiss(event) {
|
|
22
|
+
const dismiss = pressedOnBackdrop &&
|
|
23
|
+
event.button === 0 &&
|
|
24
|
+
event.target === event.currentTarget;
|
|
25
|
+
pressedOnBackdrop = false;
|
|
26
|
+
return dismiss;
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const DS_CONFIG = new InjectionToken('DS_CONFIG', {
|
|
32
|
+
factory: () => ({}),
|
|
33
|
+
});
|
|
34
|
+
/** Provide DS-level defaults.
|
|
35
|
+
*
|
|
36
|
+
* providers: [provideDsConfig({ control: { size: 'sm' } })]
|
|
37
|
+
*
|
|
38
|
+
* Works at the app root, on a `Route`, or on a component/directive — the config
|
|
39
|
+
* resolves through the element-injector chain, so a subtree can differ from the
|
|
40
|
+
* app. Component inputs (e.g. `<ds-card padding="lg">`) still win.
|
|
41
|
+
*
|
|
42
|
+
* A nested call MERGES with the config above it section by section; only the keys
|
|
43
|
+
* you name are replaced. ONE call per injector, though: two in the SAME
|
|
44
|
+
* `providers` array both resolve their parent with `skipSelf`, so the later wins
|
|
45
|
+
* and the earlier is silently lost.
|
|
46
|
+
*/
|
|
47
|
+
function provideDsConfig(config) {
|
|
48
|
+
return { provide: DS_CONFIG, useFactory: () => inheritDsConfig(config) };
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The factory body behind `provideDsConfig`, exported so a directive can put the
|
|
52
|
+
* provider in its metadata as a plain object literal. Calling `provideDsConfig`
|
|
53
|
+
* there instead runs at module-evaluation time, which makes the module
|
|
54
|
+
* side-effectful and costs the consumer its tree-shaking (measured at +566 kB
|
|
55
|
+
* moved into the eager chunk).
|
|
56
|
+
*
|
|
57
|
+
* Must be called from an injection context.
|
|
58
|
+
*/
|
|
59
|
+
function inheritDsConfig(config) {
|
|
60
|
+
return mergeDsConfig(inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {}, config);
|
|
61
|
+
}
|
|
62
|
+
function mergeDsConfig(parent, own) {
|
|
63
|
+
const merged = { ...parent };
|
|
64
|
+
for (const section of Object.keys(own)) {
|
|
65
|
+
Object.assign(merged, {
|
|
66
|
+
[section]: { ...parent[section], ...own[section] },
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return merged;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Resolve an input against `DS_CONFIG`, then a built-in default.
|
|
74
|
+
*
|
|
75
|
+
* The input must be typed `T | null` and default to `null`: a signal input cannot
|
|
76
|
+
* report whether it was bound, so `null` is what separates "not set" from an explicit
|
|
77
|
+
* value. Precedence is input → config → built-in. Call from an injection context.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
function resolveWithConfig(value, pick, fallback) {
|
|
81
|
+
const config = inject(DS_CONFIG);
|
|
82
|
+
return computed(() => value() ?? pick(config) ?? fallback);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Once per message, not once per recomputation: the hand-written copies of this
|
|
87
|
+
* re-ran whenever ANY signal they read changed, so a warning about a static
|
|
88
|
+
* misconfiguration could log again on every keystroke, and a console repeating
|
|
89
|
+
* one line is a console people stop reading.
|
|
90
|
+
*
|
|
91
|
+
* Returning the message from the condition keeps the two together — a condition
|
|
92
|
+
* that drifts from its message is how a warning ends up describing a state that
|
|
93
|
+
* cannot happen any more.
|
|
94
|
+
*
|
|
95
|
+
* Must be called from an injection context.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
function devWarn(message) {
|
|
99
|
+
if (!isDevMode()) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const seen = new Set();
|
|
103
|
+
effect(() => {
|
|
104
|
+
const text = message();
|
|
105
|
+
if (!text || seen.has(text)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
seen.add(text);
|
|
109
|
+
console.warn(text);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
|
|
115
|
+
* `undefined` when the schema sets no bound. The DS spells an absent bound as
|
|
116
|
+
* `null`, so the write type has to accept both while the read type stays what it
|
|
117
|
+
* always was — otherwise every internal use and every consumer moves for nothing.
|
|
118
|
+
*
|
|
119
|
+
* Declared once here because it was copy-pasted across three controls, and an
|
|
120
|
+
* explanation in three places is an explanation that drifts in two of them.
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
function optionalBound(value) {
|
|
124
|
+
return value ?? null;
|
|
125
|
+
}
|
|
126
|
+
/** As `optionalBound`, for a bound the control requires a value for.
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
function boundOr(fallback) {
|
|
130
|
+
return (value) => value ?? fallback;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// All paths render inside <svg viewBox="0 0 24 24" fill="none" stroke="currentColor">, stroke-width 1.75.
|
|
134
|
+
const ICONS = {
|
|
135
|
+
search: '<circle cx="11" cy="11" r="7" /><path d="m20 20-3.5-3.5" />',
|
|
136
|
+
plus: '<path d="M12 5v14M5 12h14" />',
|
|
137
|
+
minus: '<path d="M5 12h14" />',
|
|
138
|
+
check: '<path d="m4 12 5 5L20 6" />',
|
|
139
|
+
x: '<path d="M6 6l12 12M18 6L6 18" />',
|
|
140
|
+
chevronDown: '<path d="m6 9 6 6 6-6" />',
|
|
141
|
+
chevronRight: '<path d="m9 6 6 6-6 6" />',
|
|
142
|
+
chevronLeft: '<path d="m15 6-6 6 6 6" />',
|
|
143
|
+
chevronUp: '<path d="m6 15 6-6 6 6" />',
|
|
144
|
+
menu: '<path d="M4 6h16M4 12h16M4 18h16" />',
|
|
145
|
+
arrowRight: '<path d="M5 12h14M13 6l6 6-6 6" />',
|
|
146
|
+
arrowUp: '<path d="M12 19V5M6 11l6-6 6 6" />',
|
|
147
|
+
arrowDown: '<path d="M12 5v14M6 13l6 6 6-6" />',
|
|
148
|
+
info: '<circle cx="12" cy="12" r="9" /><path d="M12 8v.01M11 12h1v4h1" />',
|
|
149
|
+
warn: '<path d="M12 3 2 21h20L12 3z" /><path d="M12 10v4M12 18v.01" />',
|
|
150
|
+
error: '<circle cx="12" cy="12" r="9" /><path d="M12 8v4M12 16v.01" />',
|
|
151
|
+
success: '<circle cx="12" cy="12" r="9" /><path d="m8 12 3 3 5-6" />',
|
|
152
|
+
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" />',
|
|
153
|
+
settings: '<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" />',
|
|
154
|
+
user: '<circle cx="12" cy="8" r="4" /><path d="M4 21a8 8 0 0 1 16 0" />',
|
|
155
|
+
users: '<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" />',
|
|
156
|
+
home: '<path d="m3 11 9-8 9 8" /><path d="M5 10v10h14V10" />',
|
|
157
|
+
calendar: '<rect x="3" y="5" width="18" height="16" rx="2" /><path d="M3 10h18M8 3v4M16 3v4" />',
|
|
158
|
+
truck: '<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" />',
|
|
159
|
+
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" />',
|
|
160
|
+
map: '<path d="m9 4-6 3v13l6-3 6 3 6-3V4l-6 3-6-3z" /><path d="M9 4v13M15 7v13" />',
|
|
161
|
+
activity: '<path d="M3 12h4l3-9 4 18 3-9h4" />',
|
|
162
|
+
folder: '<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" />',
|
|
163
|
+
edit: '<path d="M12 20h9" /><path d="M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4z" />',
|
|
164
|
+
external: '<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" />',
|
|
165
|
+
trash: '<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" />',
|
|
166
|
+
copy: '<rect x="9" y="9" width="11" height="11" rx="2" /><path d="M5 15V5a2 2 0 0 1 2-2h10" />',
|
|
167
|
+
download: '<path d="M12 4v12M6 12l6 6 6-6" /><path d="M4 20h16" />',
|
|
168
|
+
upload: '<path d="M12 20V8M6 12l6-6 6 6" /><path d="M4 4h16" />',
|
|
169
|
+
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" />',
|
|
170
|
+
filter: '<path d="M3 5h18l-7 9v6l-4-2v-4z" />',
|
|
171
|
+
sort: '<path d="M7 4v16M3 8l4-4 4 4" /><path d="M17 20V4M21 16l-4 4-4-4" />',
|
|
172
|
+
sortAsc: '<path d="M7 18V6M3 10l4-4 4 4" />',
|
|
173
|
+
sortDesc: '<path d="M7 6v12M11 14l-4 4-4-4" />',
|
|
174
|
+
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" />',
|
|
175
|
+
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" />',
|
|
176
|
+
moreH: '<circle cx="5" cy="12" r="1.5" /><circle cx="12" cy="12" r="1.5" /><circle cx="19" cy="12" r="1.5" />',
|
|
177
|
+
moreV: '<circle cx="12" cy="5" r="1.5" /><circle cx="12" cy="12" r="1.5" /><circle cx="12" cy="19" r="1.5" />',
|
|
178
|
+
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" />',
|
|
179
|
+
flag: '<path d="M5 21V5a14 14 0 0 1 14 0v9a14 14 0 0 1-14 0z" />',
|
|
180
|
+
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" />',
|
|
181
|
+
inbox: '<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" />',
|
|
182
|
+
archive: '<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" />',
|
|
183
|
+
clock: '<circle cx="12" cy="12" r="9" /><path d="M12 7v5l3 2" />',
|
|
184
|
+
refresh: '<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" />',
|
|
185
|
+
play: '<path d="M6 4l14 8-14 8z" />',
|
|
186
|
+
pause: '<path d="M7 4v16M17 4v16" />',
|
|
187
|
+
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" />',
|
|
188
|
+
paperclip: '<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" />',
|
|
189
|
+
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" />',
|
|
190
|
+
image: '<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" />',
|
|
191
|
+
lock: '<rect x="4" y="11" width="16" height="10" rx="2" /><path d="M8 11V7a4 4 0 0 1 8 0v4" />',
|
|
192
|
+
logout: '<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" />',
|
|
193
|
+
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" />',
|
|
194
|
+
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" />',
|
|
195
|
+
bookmark: '<path d="M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z" />',
|
|
196
|
+
sparkle: '<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" />',
|
|
197
|
+
layers: '<path d="m12 3 9 5-9 5-9-5z" /><path d="m3 13 9 5 9-5M3 18l9 5 9-5" />',
|
|
198
|
+
chart: '<path d="M3 3v18h18" /><path d="M7 14l4-4 4 4 5-5" />',
|
|
199
|
+
gauge: '<path d="M12 14l4-4" /><circle cx="12" cy="14" r="9" /><path d="M3 14a9 9 0 0 1 18 0" />',
|
|
200
|
+
package: '<path d="M3 7v10l9 4 9-4V7l-9-4z" /><path d="m3 7 9 5 9-5M12 12v9" />',
|
|
201
|
+
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" />',
|
|
202
|
+
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" />',
|
|
203
|
+
moon: '<path d="M21 13a9 9 0 0 1-12-12 9 9 0 1 0 12 12z" />',
|
|
204
|
+
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" />',
|
|
205
|
+
rotate: '<path d="M3 12a9 9 0 1 0 3-6.7L3 8" /><path d="M3 3v5h5" />',
|
|
206
|
+
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" />',
|
|
207
|
+
globe: '<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" />',
|
|
208
|
+
phone: '<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" />',
|
|
209
|
+
bin: '<rect x="3" y="6" width="18" height="14" rx="2" /><path d="M7 6V4h10v2" />',
|
|
210
|
+
pen: '<path d="M3 17V21h4l11-11-4-4z" />',
|
|
211
|
+
smile: '<circle cx="12" cy="12" r="9" /><path d="M9 9v.01M15 9v.01M8 14a5 5 0 0 0 8 0" />',
|
|
212
|
+
frown: '<circle cx="12" cy="12" r="9" /><path d="M9 9v.01M15 9v.01M8 16a5 5 0 0 1 8 0" />',
|
|
213
|
+
mail: '<rect x="3" y="5" width="18" height="14" rx="2" /><path d="m3 7 9 6 9-6" />',
|
|
214
|
+
'eye-off': '<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" />',
|
|
215
|
+
'check-circle': '<circle cx="12" cy="12" r="9" /><path d="m8 12 3 3 5-6" />',
|
|
216
|
+
// r=8, not the 9 of check-circle: this is the empty counterpart of a tick, and
|
|
217
|
+
// at 14px a ring the same size as the filled state reads as the heavier of the
|
|
218
|
+
// two rather than the lighter.
|
|
219
|
+
circle: '<circle cx="12" cy="12" r="8" />',
|
|
220
|
+
// Drag handle: 6 dots in 2 cols × 3 rows. Use 1.6 radius to read at 12-16px.
|
|
221
|
+
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" />',
|
|
222
|
+
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" />',
|
|
223
|
+
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" />',
|
|
224
|
+
'wifi-off': '<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" />',
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const NON_TEXT_INPUT_TYPES = new Set([
|
|
228
|
+
'button',
|
|
229
|
+
'checkbox',
|
|
230
|
+
'color',
|
|
231
|
+
'file',
|
|
232
|
+
'image',
|
|
233
|
+
'radio',
|
|
234
|
+
'range',
|
|
235
|
+
'reset',
|
|
236
|
+
'submit',
|
|
237
|
+
]);
|
|
238
|
+
/** True when the key landed on a control that consumes its own keystrokes, so a
|
|
239
|
+
* container listening on the way up must leave the event alone.
|
|
240
|
+
* @internal
|
|
241
|
+
*/
|
|
242
|
+
function isTextEntryTarget(event) {
|
|
243
|
+
const target = event.target;
|
|
244
|
+
if (!(target instanceof HTMLElement)) {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
if (target.isContentEditable) {
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
const tag = target.tagName.toLowerCase();
|
|
251
|
+
if (tag === 'textarea' || tag === 'select') {
|
|
252
|
+
return true;
|
|
253
|
+
}
|
|
254
|
+
return (tag === 'input' &&
|
|
255
|
+
!NON_TEXT_INPUT_TYPES.has(target.type.toLowerCase()));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** Where the cursor lands, or -1 when nothing in the list can take it.
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
function firstEnabledIndex(list) {
|
|
262
|
+
for (let index = 0; index < list.length; index += 1) {
|
|
263
|
+
if (list.isEnabled(index)) {
|
|
264
|
+
return index;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return -1;
|
|
268
|
+
}
|
|
269
|
+
/** @internal */
|
|
270
|
+
function lastEnabledIndex(list) {
|
|
271
|
+
for (let index = list.length - 1; index >= 0; index -= 1) {
|
|
272
|
+
if (list.isEnabled(index)) {
|
|
273
|
+
return index;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return -1;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The next enabled index `step` away from `from`, wrapping at both ends.
|
|
280
|
+
*
|
|
281
|
+
* `from` of -1 means "no cursor yet": stepping forward lands on the first
|
|
282
|
+
* enabled entry and stepping back on the last, which is what a reader expects
|
|
283
|
+
* from a freshly opened panel.
|
|
284
|
+
* @internal
|
|
285
|
+
*/
|
|
286
|
+
function nextEnabledIndex(list, from, step) {
|
|
287
|
+
if (list.length === 0) {
|
|
288
|
+
return -1;
|
|
289
|
+
}
|
|
290
|
+
if (from < 0) {
|
|
291
|
+
return step > 0 ? firstEnabledIndex(list) : lastEnabledIndex(list);
|
|
292
|
+
}
|
|
293
|
+
let index = from;
|
|
294
|
+
// 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
|
|
295
|
+
for (let attempts = 0; attempts < list.length; attempts += 1) {
|
|
296
|
+
index = (index + step + list.length) % list.length;
|
|
297
|
+
if (list.isEnabled(index)) {
|
|
298
|
+
return index;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return from;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function isDsOptionGroup(item) {
|
|
305
|
+
return 'options' in item && Array.isArray(item.options);
|
|
306
|
+
}
|
|
307
|
+
/** Every option in `items`, groups flattened in place, in source order. */
|
|
308
|
+
function flattenDsOptions(items) {
|
|
309
|
+
return items.flatMap((item) => isDsOptionGroup(item)
|
|
310
|
+
? item.options.map((option) =>
|
|
311
|
+
// Only copy when the flag is not already there: the pickers pre-apply a
|
|
312
|
+
// disabled group to the options THEY render, and a second copy here
|
|
313
|
+
// would break the object identity their flat-index lookup compares by.
|
|
314
|
+
item.disabled && !option.disabled
|
|
315
|
+
? { ...option, disabled: true }
|
|
316
|
+
: option)
|
|
317
|
+
: [item]);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Generated bundle index. Do not edit.
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
|
|
325
|
+
//# sourceMappingURL=ids-group-ltd-ids-design-system-core.mjs.map
|