@slotted/angular 0.1.0-beta.29 → 0.1.0-beta.30
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/docs/AGENTS.snippet.md +1 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +20 -20
- package/docs/action-bar.md +28 -28
- package/docs/action-sheet.json +4 -4
- package/docs/action-sheet.md +12 -12
- package/docs/alert.json +10 -10
- package/docs/alert.md +16 -16
- package/docs/app-shell.examples.md +7 -7
- package/docs/app-shell.json +13 -13
- package/docs/app-shell.md +3 -3
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +10 -10
- package/docs/avatar.md +9 -9
- package/docs/badge.json +3 -3
- package/docs/badge.md +3 -3
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +1 -1
- package/docs/button-group.md +1 -1
- package/docs/button.json +11 -11
- package/docs/button.md +7 -7
- package/docs/calendar.json +4 -4
- package/docs/calendar.md +3 -3
- package/docs/card.json +2 -2
- package/docs/card.md +2 -2
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/chart.examples.md +32 -32
- package/docs/chart.json +33 -33
- package/docs/chart.md +4 -4
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +1 -1
- package/docs/code-block.md +1 -1
- package/docs/collapsible.json +11 -11
- package/docs/collapsible.md +19 -19
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +2 -2
- package/docs/combobox.md +2 -2
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +6 -6
- package/docs/currency-field.md +4 -4
- package/docs/dashboard-grid.json +1 -1
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +2 -2
- package/docs/data-grid.props.md +1 -1
- package/docs/date-field.json +3 -3
- package/docs/date-field.md +5 -5
- package/docs/date-picker.json +1 -1
- package/docs/date-range-picker.json +1 -1
- package/docs/datetime-field.json +4 -4
- package/docs/datetime-field.md +9 -9
- package/docs/datetime-picker.json +1 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +4 -4
- package/docs/datetime-range-picker.md +2 -2
- package/docs/description-list.json +5 -5
- package/docs/description-list.md +4 -4
- package/docs/detail-panel.json +10 -10
- package/docs/detail-panel.md +12 -12
- package/docs/dialog.examples.md +5 -5
- package/docs/dialog.json +10 -10
- package/docs/dialog.md +2 -2
- package/docs/dialog.props.md +2 -2
- package/docs/drawer.examples.md +13 -13
- package/docs/drawer.json +6 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +2 -2
- package/docs/field-group.json +6 -6
- package/docs/field-group.md +11 -11
- package/docs/field.examples.md +3 -3
- package/docs/field.json +4 -4
- package/docs/field.md +1 -1
- package/docs/form.json +8 -8
- package/docs/form.md +12 -12
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/async-feedback.md +2 -2
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +4 -4
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/index.md +2 -2
- package/docs/guidelines/layout-alignment.md +5 -5
- package/docs/guidelines/overviews.md +3 -3
- package/docs/guidelines/own-elements.md +7 -7
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +2 -2
- package/docs/icon.md +2 -2
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +23 -23
- package/docs/import-export-center.md +17 -17
- package/docs/inline-message.json +15 -15
- package/docs/inline-message.md +22 -22
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +2 -2
- package/docs/kbd.md +2 -2
- package/docs/link.json +6 -6
- package/docs/link.md +6 -6
- package/docs/list-item.json +1 -1
- package/docs/list-item.md +1 -1
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/message-scroller.json +1 -1
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +11 -11
- package/docs/message.md +17 -17
- package/docs/multi-select.json +1 -1
- package/docs/notification-center.json +16 -16
- package/docs/notification-center.md +18 -22
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +3 -3
- package/docs/otp-input.json +10 -10
- package/docs/otp-input.md +13 -13
- package/docs/page-header.json +9 -9
- package/docs/page-header.md +20 -22
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +3 -3
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +4 -4
- package/docs/progress-indicator.md +4 -4
- package/docs/prompt-composer.json +4 -4
- package/docs/prompt-composer.md +5 -5
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +23 -23
- package/docs/rating.md +25 -34
- package/docs/result-state.json +12 -12
- package/docs/result-state.md +17 -17
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +5 -5
- package/docs/scroll-area.md +6 -6
- package/docs/section.json +6 -6
- package/docs/section.md +12 -12
- package/docs/segmented-control.json +14 -14
- package/docs/segmented-control.md +32 -32
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +3 -3
- package/docs/skills/compose-screen/SKILL.md +2 -2
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +3 -3
- package/docs/skills/theme-app/SKILL.md +9 -9
- package/docs/skills/waiting-states/SKILL.md +1 -1
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +8 -8
- package/docs/sparkline.md +6 -6
- package/docs/split-button.json +11 -11
- package/docs/split-button.md +25 -27
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +3 -3
- package/docs/stat-card.md +2 -2
- package/docs/status-indicator.json +8 -8
- package/docs/status-indicator.md +5 -5
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +11 -11
- package/docs/table-of-contents.md +12 -12
- package/docs/table.examples.md +1 -1
- package/docs/table.json +1 -1
- package/docs/tabs.json +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tag.json +17 -17
- package/docs/tag.md +14 -14
- package/docs/tags-input.json +1 -1
- package/docs/tags-input.md +1 -1
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +4 -4
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +3 -3
- package/docs/time-field.json +3 -3
- package/docs/time-field.md +6 -6
- package/docs/time-picker.json +5 -5
- package/docs/time-picker.md +6 -6
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +5 -5
- package/docs/time-range-picker.md +1 -1
- package/docs/toast.json +6 -6
- package/docs/toast.md +6 -6
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +15 -15
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +3 -3
- package/docs/tooltip.md +3 -3
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +9 -9
- package/docs/tour.md +6 -6
- package/docs/typography.json +2 -2
- package/docs/typography.md +2 -2
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-alert.mjs +2 -2
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +10 -10
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +3 -3
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +1 -1
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +1 -1
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +2 -2
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +1 -1
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +1 -1
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +6 -6
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +3 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +3 -3
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +3 -3
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +1 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +2 -2
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +6 -6
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +2 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +1 -1
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +3 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +4 -4
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +3 -3
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +1 -1
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +2 -2
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +3 -3
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +1 -1
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +2 -2
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +5 -5
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +3 -3
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +2 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +2 -2
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +1 -1
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +2 -2
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +3 -3
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +1 -1
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +6 -6
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +15 -3
- package/types/slotted-angular-alert.d.ts +3 -3
- package/types/slotted-angular-app-shell.d.ts +4 -4
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar.d.ts +6 -6
- package/types/slotted-angular-badge.d.ts +3 -3
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +2 -2
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-chart.d.ts +2 -2
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +1 -1
- package/types/slotted-angular-data-grid.d.ts +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
- package/types/slotted-angular-description-list.d.ts +1 -1
- package/types/slotted-angular-field.d.ts +2 -2
- package/types/slotted-angular-form.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts +2 -2
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-inline-message.d.ts +3 -3
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-menu.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts +4 -4
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-rating.d.ts +2 -2
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-status-indicator.d.ts +2 -2
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-table.d.ts +1 -1
- package/types/slotted-angular-tabs.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts +3 -3
- package/types/slotted-angular-tags-input.d.ts +1 -1
- package/types/slotted-angular-theme.d.ts +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +1 -1
- package/types/slotted-angular-toast.d.ts +4 -4
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-wizard.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-otp-input.mjs","sources":["../../otp-input/src/otp-input-defaults.ts","../../otp-input/src/otp-input.ts","../../otp-input/src/otp-input-control.ts","../../otp-input/src/slotted-angular-otp-input.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { Signal } from '@angular/core';\nimport type { OtpSelection, OtpType } from '@slotted/core/otp';\n\n/** The type step the control sits at, matching the field around it. */\nexport type OtpInputSize = 'sm' | 'md' | 'lg';\n\n/**\n * How much frame each box shows. `outline` takes the ground it is placed on\n * and `subtle` sinks into the page — the two steps `text-field` draws. There\n * is no `plain`: a code is never a cell.\n */\nexport type OtpInputVariant = 'outline' | 'subtle';\n\nexport type { OtpType as OtpInputType };\n\nexport interface OtpInputDefaults {\n attached: boolean;\n length: number;\n placeholder: string;\n size: OtpInputSize;\n type: OtpType;\n variant: OtpInputVariant;\n}\n\nconst FALLBACK: OtpInputDefaults = {\n attached: false,\n length: 6,\n placeholder: '',\n size: 'md',\n type: 'numeric',\n variant: 'outline',\n};\n\nexport const OTP_INPUT_DEFAULTS = new InjectionToken<OtpInputDefaults>(\n 'slotted otp input defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its code fields look like — and how long\n * its codes are — rather than repeating the same inputs on every verification\n * screen. A control that states any of them itself still wins.\n *\n * `size` is the one the field outranks: a control inside a field takes the\n * field's step and this token answers only outside one.\n */\nexport function provideOtpInputDefaults(defaults: Partial<OtpInputDefaults>) {\n return {\n provide: OTP_INPUT_DEFAULTS,\n useFactory: (): OtpInputDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a code field renders as here, before it states anything of its own. */\nexport function injectOtpInputDefaults(): OtpInputDefaults {\n return inject(OTP_INPUT_DEFAULTS);\n}\n\n/**\n * What the frame needs to know about the control inside it, and what the\n * control needs the frame to call.\n *\n * It is an abstract class rather than an import so the two directives can\n * depend on each other without a cycle — the shape `text-field` already has.\n * The control provides itself as this, and the frame queries for it.\n */\nexport abstract class SlOtpInputState {\n /** The characters the element holds, cut to the code. */\n abstract readonly code: Signal<string>;\n /** Where the cursor or the selection is, while the control has focus. */\n abstract readonly selection: Signal<OtpSelection | null>;\n abstract readonly focused: Signal<boolean>;\n abstract readonly resolvedDisabled: Signal<boolean | undefined>;\n abstract readonly resolvedReadOnly: Signal<boolean | undefined>;\n abstract readonly resolvedInvalid: Signal<boolean | undefined>;\n /** Puts the cursor in the box at `index`, clamped to the value. */\n abstract pressAt(index: number): void;\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n ViewEncapsulation,\n} from '@angular/core';\nimport { currentSlots, spreadPlaceholder } from '@slotted/core/otp';\nimport { SlField } from '@slotted/angular/field';\n\nimport { injectOtpInputDefaults, SlOtpInputState } from './otp-input-defaults';\nimport type { OtpInputSize, OtpInputVariant } from './otp-input-defaults';\n\nexport type { OtpInputSize, OtpInputType, OtpInputVariant } from './otp-input-defaults';\n\n/** The character a masked box shows, which is the one a password field shows. */\nconst MASK = '•';\n\ninterface Slot {\n readonly index: number;\n readonly shown: string;\n readonly placeholder: string;\n readonly current: boolean;\n}\n\n/**\n * `groups` has to add up to `length`; a partition that does not is one group.\n * A silent fallback rather than a throw, because a code field that renders\n * nothing on a verification screen locks the reader out of the product.\n */\nfunction partition(length: number, groups: readonly number[] | undefined): number[] {\n if (groups === undefined) return [length];\n const sum = groups.reduce((total, size) => total + size, 0);\n return sum === length && groups.every((size) => size > 0) ? [...groups] : [length];\n}\n\n/**\n * The frame: N painted boxes around one real input.\n *\n * **It is not the control.** The element carrying `data-ui` is the consumer's\n * own box with no role; the `input` inside it holds the value, the identifier\n * and every native attribute, and lies over the boxes, transparent. The boxes\n * are drawn here from what the control reports, and are hidden from assistive\n * technology.\n *\n * **Angular pays one element for that frame, and React pays none.** React can\n * render a wrapper from inside a component; an Angular directive cannot create\n * a box around its own host. `slOtpInputControl` injects this class, so a\n * control written without the frame is a compile-time failure rather than a\n * silent one.\n */\n@Component({\n selector: '[slOtpInput]',\n standalone: true,\n exportAs: 'slOtpInput',\n /**\n * The character is bound as `textContent` rather than interpolated: an\n * interpolation on its own line leaves a whitespace text node either side of\n * it, and a box that holds \" \" is not `:empty`, which is what the caret and\n * the placeholder select on.\n */\n template: `<ng-content />\n @for (group of groups(); track $index; let first = $first) {\n @if (!first) {\n <div data-part=\"separator\" data-part-separator=\"\" aria-hidden=\"true\"></div>\n }\n <div data-part=\"group\" data-part-group=\"\" aria-hidden=\"true\">\n @for (slot of group; track slot.index) {\n <div\n data-part=\"slot\"\n data-part-slot=\"\"\n [attr.data-index]=\"slot.index\"\n [attr.data-current]=\"slot.current ? '' : null\"\n [attr.data-placeholder]=\"\n slot.shown === '' && slot.placeholder !== '' ? slot.placeholder : null\n \"\n [textContent]=\"slot.shown\"\n ></div>\n }\n </div>\n }`,\n styleUrl: '../../../styles/src/otp-input/otp-input.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'otp-input',\n 'data-ui-otp-input': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-attached]': \"resolvedAttached() ? '' : null\",\n '[attr.data-mask]': \"mask() ? '' : null\",\n '[attr.data-complete]': \"complete() ? '' : null\",\n '[attr.data-disabled]': \"control()?.resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"control()?.resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"control()?.resolvedReadOnly() === true ? '' : null\",\n '(pointerdown)': 'onPointerDown($event)',\n },\n})\nexport class SlOtpInput {\n /** Defaults to the field, then to the token, then to `md`. */\n readonly size = input<OtpInputSize | undefined>(undefined);\n /** Defaults to the token, then to `outline`. */\n readonly variant = input<OtpInputVariant | undefined>(undefined);\n /** Joins the boxes of a group along one seam. Defaults to the token's. */\n readonly attached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** How many characters the code has. Defaults to the token's, then 6. */\n readonly length = input<number | undefined, unknown>(undefined, {\n transform: (value) =>\n value === undefined || value === null ? undefined : numberAttribute(value),\n });\n /**\n * How the boxes are partitioned: `[3, 3]` draws two groups of three with a\n * separator between them. The sum has to be `length`; a partition that does\n * not add up draws one group.\n */\n readonly groupsInput = input<readonly number[] | undefined>(undefined, { alias: 'groups' });\n /**\n * What an empty box shows: one character repeats over every box, and a\n * string as long as the code distributes. Defaults to the token's.\n */\n readonly placeholder = input<string | undefined>(undefined);\n /**\n * Hides the characters: the control becomes `type=\"password\"`, so the\n * platform treats the value as a secret, and each filled box shows a bullet.\n */\n readonly mask = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectOtpInputDefaults();\n private readonly field = inject(SlField, { optional: true });\n\n /**\n * The control inside. It provides itself as `SlOtpInputState`, so the frame\n * can paint the value and the cursor without either directive importing the\n * other.\n */\n readonly control = contentChild(SlOtpInputState, { descendants: true });\n\n readonly resolvedSize = computed(\n () => this.size() ?? this.field?.resolvedSize() ?? this.defaults.size,\n );\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedAttached = computed(() => this.attached() ?? this.defaults.attached);\n readonly resolvedLength = computed(() => this.length() ?? this.defaults.length);\n readonly resolvedPlaceholder = computed(() => this.placeholder() ?? this.defaults.placeholder);\n\n readonly complete = computed(() => {\n const control = this.control();\n return control !== undefined && control.code().length === this.resolvedLength();\n });\n\n protected readonly groups = computed<Slot[][]>(() => {\n const length = this.resolvedLength();\n const control = this.control();\n const code = control?.code() ?? '';\n const selection = control?.focused() === true ? control.selection() : null;\n const active = new Set(\n selection === null ? [] : currentSlots({ ...selection, length, valueLength: code.length }),\n );\n const placeholders = spreadPlaceholder(this.resolvedPlaceholder(), length);\n const mask = this.mask();\n\n let index = 0;\n return partition(length, this.groupsInput()).map((count) =>\n Array.from({ length: count }, () => {\n const character = code[index] ?? '';\n const slot: Slot = {\n index,\n shown: character === '' ? '' : mask ? MASK : character,\n placeholder: placeholders[index] ?? '',\n current: active.has(index),\n };\n index += 1;\n return slot;\n }),\n );\n });\n\n /**\n * A press on a box puts the cursor in that box. The input lies over the\n * boxes and would otherwise place its caret by the x of transparent text;\n * the box under the pointer is what the reader meant, so it is found from\n * the point and handed to the control.\n */\n protected onPointerDown(event: PointerEvent) {\n const control = this.control();\n if (control === undefined || control.resolvedDisabled() === true) return;\n if (typeof document.elementsFromPoint !== 'function') return;\n const host = event.currentTarget as HTMLElement;\n const slot = document\n .elementsFromPoint(event.clientX, event.clientY)\n .find(\n (candidate): candidate is HTMLElement =>\n candidate instanceof HTMLElement &&\n candidate.dataset['part'] === 'slot' &&\n candidate.closest(\"[data-ui='otp-input']\") === host,\n );\n if (slot === undefined) return;\n event.preventDefault();\n control.pressAt(Number(slot.dataset['index'] ?? 0));\n }\n}\n","import { normalizeSelection, sanitize } from '@slotted/core/otp';\nimport type { OtpSelection, OtpType } from '@slotted/core/otp';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { SlField } from '@slotted/angular/field';\n\nimport { injectOtpInputDefaults, SlOtpInputState } from './otp-input-defaults';\nimport { SlOtpInput } from './otp-input';\n\n/** What an edit lost to the filter, and the event that carried it. */\nexport interface OtpInputRejection {\n readonly text: string;\n readonly source: Event;\n}\n\n/**\n * The control itself: the value, the identifier, and everything the field\n * around it says. `dragstart` is refused: a press on a selected character\n * would otherwise drag that text, with a ghost of the character floating\n * under the pointer, and in a full code a character is selected at every\n * press.\n *\n * **The element owns the characters, and the directive keeps a copy.** The\n * frame paints every character, so unlike `text-field` this mirror is the\n * value and not only its length. `writeValue` from a form and a `[value]`\n * binding both write the element; typing writes it directly, and the copy\n * follows — which is what Angular's own `DefaultValueAccessor` does.\n *\n * **The selection is normalised, not the keys.** Every key is the browser's.\n * After each change the directive makes sure a cursor inside the value has\n * one character selected, so typing replaces it instead of being refused by\n * `maxlength` — the rule `@slotted/core/otp` holds.\n *\n * **Unset means ask the field.** `disabled`, `readOnly` and `invalid` default\n * to `undefined` rather than `false`. A value the consumer wrote as a static\n * attribute is read before the host binding computes, so the binding never\n * writes over it.\n */\n@Directive({\n selector: 'input[slOtpInputControl]',\n standalone: true,\n exportAs: 'slOtpInputControl',\n providers: [\n { provide: SlOtpInputState, useExisting: forwardRef(() => SlOtpInputControl) },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlOtpInputControl), multi: true },\n ],\n host: {\n 'data-part': 'input',\n 'data-part-input': '',\n '[attr.id]': 'controlId()',\n '[attr.type]': 'resolvedType()',\n '[attr.autocomplete]': 'resolvedAutocomplete()',\n '[attr.inputmode]': 'resolvedInputMode()',\n '[attr.maxlength]': 'frame.resolvedLength()',\n '[attr.spellcheck]': 'resolvedSpellcheck()',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.disabled]': 'disabledAttribute()',\n '[attr.readonly]': 'readonlyAttribute()',\n '(input)': 'onInput($event)',\n '(dragstart)': '$event.preventDefault()',\n '(focus)': 'onFocus()',\n '(blur)': 'onBlur()',\n },\n})\nexport class SlOtpInputControl implements ControlValueAccessor, OnInit, SlOtpInputState {\n /** Present means the consumer owns the value. */\n readonly value = input<string | undefined>(undefined);\n /** The value the control starts from when nobody else writes one. */\n readonly defaultValue = input<string | undefined>(undefined);\n /** Which characters the code takes. Defaults to the token's, then `numeric`. */\n readonly type = input<OtpType | undefined>(undefined);\n /** Tested against each character; outranks `type` in what is accepted. */\n readonly pattern = input<RegExp | undefined>(undefined);\n /**\n * Run over every edit before the filter: strip a `G-` prefix, uppercase a\n * code the reader typed in lowercase.\n */\n readonly transform = input<((text: string) => string) | undefined>(undefined);\n /** Unstated rather than `false`, so the control defers to the field. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`. Reaches the element as the native `readonly`. */\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`. Reaches the element as `aria-invalid`. */\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Submits the owning form when the code is complete. */\n readonly autoSubmit = input(false, { transform: booleanAttribute });\n /**\n * Asks the platform for the code the moment an SMS arrives, where the\n * WebOTP API exists. The request is abandoned when the form submits or the\n * control is destroyed.\n */\n readonly webOtp = input(false, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(value)]`,\n * because a two-way binding has one slot and can carry none of those; a form\n * gets the same movement through `ControlValueAccessor`.\n */\n readonly valueChange = output<ChangeRequest<string>>();\n /** The value, the moment it reaches `length` characters. */\n readonly complete = output<string>();\n /** What an edit lost to the filter, before the value moves. */\n readonly rejected = output<OtpInputRejection>();\n\n private readonly element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n /**\n * The frame around the control. Injected without `optional`, so an `input`\n * written without it fails at construction rather than silently losing its\n * boxes. It is public because the host bindings read its length and mask.\n */\n readonly frame = inject(SlOtpInput);\n private readonly field = inject(SlField, { optional: true });\n private readonly defaults = injectOtpInputDefaults();\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenType = inject(new HostAttributeToken('type'), { optional: true });\n private readonly writtenAutocomplete = inject(new HostAttributeToken('autocomplete'), {\n optional: true,\n });\n private readonly writtenInputMode = inject(new HostAttributeToken('inputmode'), {\n optional: true,\n });\n private readonly writtenSpellcheck = inject(new HostAttributeToken('spellcheck'), {\n optional: true,\n });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenInvalid = inject(new HostAttributeToken('aria-invalid'), {\n optional: true,\n });\n private readonly writtenRequired = inject(new HostAttributeToken('aria-required'), {\n optional: true,\n });\n private readonly writtenReadonly = inject(new HostAttributeToken('readonly'), { optional: true });\n\n /** What the element is showing, cut to the code. */\n private readonly mirror = signal('');\n readonly code = this.mirror.asReadonly();\n private readonly ownSelection = signal<OtpSelection | null>(null);\n readonly selection = this.ownSelection.asReadonly();\n private readonly ownFocused = signal(false);\n readonly focused = this.ownFocused.asReadonly();\n private previousSelection: OtpSelection | null = null;\n private reported: string | null = null;\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly resolvedType = computed(() =>\n this.frame.mask() ? 'password' : (this.writtenType ?? 'text'),\n );\n /** Which characters the code takes, stated here or by the token. */\n readonly codeType = computed<OtpType>(() => this.type() ?? this.defaults.type);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(\n () =>\n this.readOnly() ??\n (this.writtenReadonly === null ? undefined : true) ??\n this.field?.resolvedReadOnly(),\n );\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n\n protected readonly controlId = computed(\n () => this.writtenId ?? this.field?.ids().control ?? null,\n );\n protected readonly resolvedAutocomplete = computed(\n () => this.writtenAutocomplete ?? 'one-time-code',\n );\n protected readonly resolvedInputMode = computed(\n () => this.writtenInputMode ?? (this.codeType() === 'numeric' ? 'numeric' : 'text'),\n );\n protected readonly resolvedSpellcheck = computed(() => this.writtenSpellcheck ?? 'false');\n /** Merged after the consumer's own, so a tour step is read before the help. */\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(\n () => this.writtenInvalid ?? (this.resolvedInvalid() === true ? 'true' : null),\n );\n protected readonly ariaRequired = computed(\n () => this.writtenRequired ?? (this.field?.required() === true ? 'true' : null),\n );\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n protected readonly readonlyAttribute = computed(() =>\n this.resolvedReadOnly() === true ? '' : null,\n );\n\n constructor() {\n /* A consumer's own value writes the element, the way a form's does. */\n effect(() => {\n const next = this.value();\n if (next === undefined) return;\n const clean = this.sanitize(next).value;\n if (clean === this.element.value) return;\n this.element.value = clean;\n this.mirror.set(clean);\n this.reportCompletion();\n });\n\n /**\n * The browser fires `selectionchange` on the document, for every control\n * at once; it is read only while this one holds focus. `capture` because\n * the event does not bubble in every engine.\n */\n const onSelectionChange = () => {\n if (this.ownFocused() && document.activeElement === this.element) this.syncSelection();\n };\n document.addEventListener('selectionchange', onSelectionChange, { capture: true });\n this.destroyRef.onDestroy(() =>\n document.removeEventListener('selectionchange', onSelectionChange, { capture: true }),\n );\n }\n\n /**\n * Angular creates every directive in a template before it binds any input,\n * so the starting value is read here rather than in the constructor.\n */\n ngOnInit() {\n const initial = this.sanitize(this.defaultValue() ?? this.element.value).value;\n if (initial !== this.element.value) this.element.value = initial;\n this.mirror.set(initial);\n this.reportCompletion();\n\n /**\n * A native reset restores the element's own value and tells nothing, so\n * the copy would keep painting the last thing typed.\n */\n const form = this.element.form;\n if (form !== null) {\n const onReset = () => {\n /* The element is restored after the event; the copy follows it. */\n queueMicrotask(() => this.mirror.set(this.sanitize(this.element.value).value));\n };\n form.addEventListener('reset', onReset);\n this.destroyRef.onDestroy(() => form.removeEventListener('reset', onReset));\n }\n\n if (this.webOtp()) this.requestWebOtp();\n }\n\n /** The native element, for `focus()`, `select()` and `setSelectionRange()`. */\n get inputElement(): HTMLInputElement {\n return this.element;\n }\n\n writeValue(value: string | null | undefined) {\n const clean = this.sanitize(value ?? '').value;\n this.element.value = clean;\n this.mirror.set(clean);\n this.reportCompletion();\n }\n\n registerOnChange(fn: (value: string) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n pressAt(index: number) {\n const at = Math.min(index, this.element.value.length);\n this.element.focus();\n const end = at < this.element.value.length ? at + 1 : at;\n this.previousSelection = null;\n this.element.setSelectionRange(at, end);\n this.syncSelection();\n }\n\n protected onInput(event: Event) {\n const element = this.element;\n const { rejected, value: next } = this.sanitize(element.value);\n if (rejected !== '') this.rejected.emit({ text: rejected, source: event });\n if (next !== element.value) {\n /* What the filter dropped is taken out of the element, and the cursor\n goes where the accepted characters end. */\n const caret = Math.min(element.selectionStart ?? next.length, next.length);\n element.value = next;\n element.setSelectionRange(caret, caret);\n }\n /* After an edit the cursor is inserting: the next selection reads as one\n that came from a caret, not from a selected character. */\n const caret = element.selectionStart ?? next.length;\n this.previousSelection = { start: caret, end: caret };\n\n if (this.request(next, 'keyboard', event)) {\n this.mirror.set(next);\n this.onChangeFn(next);\n this.reportCompletion();\n } else {\n /* Refused: the element goes back to what the copy holds. */\n element.value = this.mirror();\n }\n this.syncSelection();\n }\n\n protected onFocus() {\n this.ownFocused.set(true);\n /* Focus lands after the last character, or on it when the code is full. */\n const at = this.element.value.length;\n this.element.setSelectionRange(Math.min(at, this.frame.resolvedLength() - 1), at);\n this.previousSelection = null;\n this.syncSelection();\n }\n\n protected onBlur() {\n this.ownFocused.set(false);\n this.ownSelection.set(null);\n this.previousSelection = null;\n this.onTouchedFn();\n }\n\n private sanitize(text: string) {\n return sanitize(text, {\n length: this.frame.resolvedLength(),\n pattern: this.pattern(),\n transform: this.transform(),\n type: this.codeType(),\n });\n }\n\n /** Reads the element's selection, corrects it, and paints the current box. */\n private syncSelection() {\n const element = this.element;\n const start = element.selectionStart ?? element.value.length;\n const end = element.selectionEnd ?? start;\n const corrected = normalizeSelection({\n start,\n end,\n valueLength: element.value.length,\n length: this.frame.resolvedLength(),\n previous: this.previousSelection ?? undefined,\n });\n if (corrected !== null) {\n element.setSelectionRange(corrected.start, corrected.end, corrected.direction);\n }\n const final: OtpSelection = corrected ?? { start, end };\n this.previousSelection = final;\n this.ownSelection.set(final);\n }\n\n /**\n * Completion is a fact about the value, reported once per value: a full\n * code edited into another full code reports again, and a code emptied and\n * retyped reports again.\n */\n private reportCompletion() {\n const code = this.mirror();\n if (code.length !== this.frame.resolvedLength()) {\n this.reported = null;\n return;\n }\n if (this.reported === code) return;\n this.reported = code;\n this.complete.emit(code);\n if (this.autoSubmit()) this.element.form?.requestSubmit();\n }\n\n /**\n * The WebOTP API: where it exists, the platform hands over the code the\n * moment the SMS arrives. Abandoned when the form submits on its own or the\n * directive is destroyed, which is the shape MDN's example takes.\n */\n private requestWebOtp() {\n if (typeof window === 'undefined' || !('OTPCredential' in window)) return;\n const controller = new AbortController();\n const form = this.element.form;\n const abort = () => controller.abort();\n form?.addEventListener('submit', abort);\n this.destroyRef.onDestroy(() => {\n form?.removeEventListener('submit', abort);\n controller.abort();\n });\n navigator.credentials\n .get({ otp: { transport: ['sms'] }, signal: controller.signal } as CredentialRequestOptions)\n .then((credential) => {\n const code = (credential as { code?: string } | null)?.code;\n if (code === undefined) return;\n const next = this.sanitize(code).value;\n if (!this.request(next, 'programmatic', credential)) return;\n this.element.value = next;\n this.mirror.set(next);\n this.onChangeFn(next);\n this.reportCompletion();\n })\n .catch(() => undefined);\n }\n\n /** Emits the request and says whether anything may commit. */\n private request(next: string, reason: ChangeReason, source: unknown): boolean {\n if (next === this.mirror()) return false;\n\n let cancelled = false;\n const state = createControllable<string>({\n controlled: undefined,\n initial: this.mirror(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n state.request(next, reason, source);\n return !cancelled;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,QAAQ,GAAqB;AACjC,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,OAAO,EAAE,SAAS;CACnB;MAEY,kBAAkB,GAAG,IAAI,cAAc,CAClD,4BAA4B,EAC5B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;AAOG;AACG,SAAU,uBAAuB,CAAC,QAAmC,EAAA;IACzE,OAAO;AACL,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,UAAU,EAAE,OAAyB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KACnE;AACH;AAEA;SACgB,sBAAsB,GAAA;AACpC,IAAA,OAAO,MAAM,CAAC,kBAAkB,CAAC;AACnC;AAEA;;;;;;;AAOG;MACmB,eAAe,CAAA;AAWpC;;AC3DD;AACA,MAAM,IAAI,GAAG,GAAG;AAShB;;;;AAIG;AACH,SAAS,SAAS,CAAC,MAAc,EAAE,MAAqC,EAAA;IACtE,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,CAAC,MAAM,CAAC;AACzC,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC;AAC3D,IAAA,OAAO,GAAG,KAAK,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC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AC,EAAE,KAAK,EAAE,IAAI,EAAE;AAC9F,qBAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,OAAO;AACpB,wBAAA,iBAAiB,EAAE,EAAE;AACrB,wBAAA,WAAW,EAAE,aAAa;AAC1B,wBAAA,aAAa,EAAE,gBAAgB;AAC/B,wBAAA,qBAAqB,EAAE,wBAAwB;AAC/C,wBAAA,kBAAkB,EAAE,qBAAqB;AACzC,wBAAA,kBAAkB,EAAE,wBAAwB;AAC5C,wBAAA,mBAAmB,EAAE,sBAAsB;AAC3C,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,qBAAqB,EAAE,eAAe;AACtC,wBAAA,sBAAsB,EAAE,gBAAgB;AACxC,wBAAA,iBAAiB,EAAE,qBAAqB;AACxC,wBAAA,iBAAiB,EAAE,qBAAqB;AACxC,wBAAA,SAAS,EAAE,iBAAiB;AAC5B,wBAAA,aAAa,EAAE,yBAAyB;AACxC,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,QAAQ,EAAE,UAAU;AACrB,qBAAA;AACF,iBAAA;;;AClFD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-otp-input.mjs","sources":["../../otp-input/src/otp-input-defaults.ts","../../otp-input/src/otp-input.ts","../../otp-input/src/otp-input-control.ts","../../otp-input/src/slotted-angular-otp-input.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { Signal } from '@angular/core';\nimport type { OtpSelection, OtpType } from '@slotted/core/otp';\n\n/** The type step the control sits at, matching the field around it. */\nexport type OtpInputSize = 'sm' | 'md' | 'lg';\n\n/**\n * How much frame each box shows. `outline` takes the ground it is placed on\n * and `subtle` sinks into the page — the two steps `text-field` draws. There\n * is no `plain`: a code is never a cell.\n */\nexport type OtpInputVariant = 'outline' | 'subtle';\n\nexport type { OtpType as OtpInputType };\n\nexport interface OtpInputDefaults {\n attached: boolean;\n length: number;\n placeholder: string;\n size: OtpInputSize;\n type: OtpType;\n variant: OtpInputVariant;\n}\n\nconst FALLBACK: OtpInputDefaults = {\n attached: false,\n length: 6,\n placeholder: '',\n size: 'md',\n type: 'numeric',\n variant: 'outline',\n};\n\nexport const OTP_INPUT_DEFAULTS = new InjectionToken<OtpInputDefaults>(\n 'slotted otp input defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its code fields look like — and how long\n * its codes are — rather than repeating the same inputs on every verification\n * screen. A control that states any of them itself still wins.\n *\n * `size` is the one the field outranks: a control inside a field takes the\n * field's step and this token answers only outside one.\n */\nexport function provideOtpInputDefaults(defaults: Partial<OtpInputDefaults>) {\n return {\n provide: OTP_INPUT_DEFAULTS,\n useFactory: (): OtpInputDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a code field renders as here, before it states anything of its own. */\nexport function injectOtpInputDefaults(): OtpInputDefaults {\n return inject(OTP_INPUT_DEFAULTS);\n}\n\n/**\n * What the frame needs to know about the control inside it, and what the\n * control needs the frame to call.\n *\n * It is an abstract class rather than an import so the two directives can\n * depend on each other without a cycle — the shape `text-field` already has.\n * The control provides itself as this, and the frame queries for it.\n */\nexport abstract class SlOtpInputState {\n /** The characters the element holds, cut to the code. */\n abstract readonly code: Signal<string>;\n /** Where the cursor or the selection is, while the control has focus. */\n abstract readonly selection: Signal<OtpSelection | null>;\n abstract readonly focused: Signal<boolean>;\n abstract readonly resolvedDisabled: Signal<boolean | undefined>;\n abstract readonly resolvedReadOnly: Signal<boolean | undefined>;\n abstract readonly resolvedInvalid: Signal<boolean | undefined>;\n /** Puts the cursor in the box at `index`, clamped to the value. */\n abstract pressAt(index: number): void;\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n ViewEncapsulation,\n} from '@angular/core';\nimport { currentSlots, spreadPlaceholder } from '@slotted/core/otp';\nimport { SlField } from '@slotted/angular/field';\n\nimport { injectOtpInputDefaults, SlOtpInputState } from './otp-input-defaults';\nimport type { OtpInputSize, OtpInputVariant } from './otp-input-defaults';\n\nexport type { OtpInputSize, OtpInputType, OtpInputVariant } from './otp-input-defaults';\n\n/** The character a masked box shows, which is the one a password field shows. */\nconst MASK = '•';\n\ninterface Slot {\n readonly index: number;\n readonly shown: string;\n readonly placeholder: string;\n readonly current: boolean;\n}\n\n/**\n * `groups` has to add up to `length`; a partition that does not is one group.\n * A silent fallback rather than a throw, because a code field that renders\n * nothing on a verification screen locks the reader out of the product.\n */\nfunction partition(length: number, groups: readonly number[] | undefined): number[] {\n if (groups === undefined) return [length];\n const sum = groups.reduce((total, size) => total + size, 0);\n return sum === length && groups.every((size) => size > 0) ? [...groups] : [length];\n}\n\n/**\n * The frame: N painted boxes around one real input.\n *\n * **It is not the control.** The element carrying `data-ui` is the consumer's\n * own box with no role; the `input` inside it holds the value, the identifier\n * and every native attribute, and lies over the boxes, transparent. The boxes\n * are drawn here from what the control reports, and are hidden from assistive\n * technology.\n *\n * **Angular pays one element for that frame, and React pays none.** React can\n * render a wrapper from inside a component; an Angular directive cannot create\n * a box around its own host. `slOtpInputControl` injects this class, so a\n * control written without the frame is a compile-time failure rather than a\n * silent one.\n */\n@Component({\n selector: '[slOtpInput]',\n standalone: true,\n exportAs: 'slOtpInput',\n /**\n * The character is bound as `textContent` rather than interpolated: an\n * interpolation on its own line leaves a whitespace text node either side of\n * it, and a box that holds \" \" is not `:empty`, which is what the caret and\n * the placeholder select on.\n */\n template: `<ng-content />\n @for (group of groups(); track $index; let first = $first) {\n @if (!first) {\n <div data-part=\"separator\" data-part-separator=\"\" aria-hidden=\"true\"></div>\n }\n <div data-part=\"group\" data-part-group=\"\" aria-hidden=\"true\">\n @for (slot of group; track slot.index) {\n <div\n data-part=\"slot\"\n data-part-slot=\"\"\n [attr.data-index]=\"slot.index\"\n [attr.data-current]=\"slot.current ? '' : null\"\n [attr.data-placeholder]=\"\n slot.shown === '' && slot.placeholder !== '' ? slot.placeholder : null\n \"\n [textContent]=\"slot.shown\"\n ></div>\n }\n </div>\n }`,\n styleUrl: '../../../styles/src/otp-input/otp-input.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'otp-input',\n 'data-ui-otp-input': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-attached]': \"resolvedAttached() ? '' : null\",\n '[attr.data-mask]': \"mask() ? '' : null\",\n '[attr.data-complete]': \"complete() ? '' : null\",\n '[attr.data-disabled]': \"control()?.resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"control()?.resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"control()?.resolvedReadOnly() === true ? '' : null\",\n '(pointerdown)': 'onPointerDown($event)',\n },\n})\nexport class SlOtpInput {\n /** Defaults to the field, then to the token, then to `md`. */\n readonly size = input<OtpInputSize | undefined>(undefined);\n /** Defaults to the token, then to `outline`. */\n readonly variant = input<OtpInputVariant | undefined>(undefined);\n /** Joins the boxes of a group along one seam. Defaults to the token's. */\n readonly attached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** How many characters the code has. Defaults to the token's, then 6. */\n readonly length = input<number | undefined, unknown>(undefined, {\n transform: (value) =>\n value === undefined || value === null ? undefined : numberAttribute(value),\n });\n /**\n * How the boxes are partitioned: `[3, 3]` draws two groups of three with a\n * separator between them. The sum has to be `length`; a partition that does\n * not add up draws one group.\n */\n readonly groupsInput = input<readonly number[] | undefined>(undefined, { alias: 'groups' });\n /**\n * What an empty box shows: one character repeats over every box, and a\n * string as long as the code distributes. Defaults to the token's.\n */\n readonly placeholder = input<string | undefined>(undefined);\n /**\n * Hides the characters: the control becomes `type=\"password\"`, so the\n * platform treats the value as a secret, and each filled box shows a bullet.\n */\n readonly mask = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectOtpInputDefaults();\n private readonly field = inject(SlField, { optional: true });\n\n /**\n * The control inside. It provides itself as `SlOtpInputState`, so the frame\n * can paint the value and the cursor without either directive importing the\n * other.\n */\n readonly control = contentChild(SlOtpInputState, { descendants: true });\n\n readonly resolvedSize = computed(\n () => this.size() ?? this.field?.resolvedSize() ?? this.defaults.size,\n );\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedAttached = computed(() => this.attached() ?? this.defaults.attached);\n readonly resolvedLength = computed(() => this.length() ?? this.defaults.length);\n readonly resolvedPlaceholder = computed(() => this.placeholder() ?? this.defaults.placeholder);\n\n readonly complete = computed(() => {\n const control = this.control();\n return control !== undefined && control.code().length === this.resolvedLength();\n });\n\n protected readonly groups = computed<Slot[][]>(() => {\n const length = this.resolvedLength();\n const control = this.control();\n const code = control?.code() ?? '';\n const selection = control?.focused() === true ? control.selection() : null;\n const active = new Set(\n selection === null ? [] : currentSlots({ ...selection, length, valueLength: code.length }),\n );\n const placeholders = spreadPlaceholder(this.resolvedPlaceholder(), length);\n const mask = this.mask();\n\n let index = 0;\n return partition(length, this.groupsInput()).map((count) =>\n Array.from({ length: count }, () => {\n const character = code[index] ?? '';\n const slot: Slot = {\n index,\n shown: character === '' ? '' : mask ? MASK : character,\n placeholder: placeholders[index] ?? '',\n current: active.has(index),\n };\n index += 1;\n return slot;\n }),\n );\n });\n\n /**\n * A press on a box puts the cursor in that box. The input lies over the\n * boxes and would otherwise place its caret by the x of transparent text;\n * the box under the pointer is what the reader meant, so it is found from\n * the point and handed to the control.\n */\n protected onPointerDown(event: PointerEvent) {\n const control = this.control();\n if (control === undefined || control.resolvedDisabled() === true) return;\n if (typeof document.elementsFromPoint !== 'function') return;\n const host = event.currentTarget as HTMLElement;\n const slot = document\n .elementsFromPoint(event.clientX, event.clientY)\n .find(\n (candidate): candidate is HTMLElement =>\n candidate instanceof HTMLElement &&\n candidate.dataset['part'] === 'slot' &&\n candidate.closest(\"[data-ui='otp-input']\") === host,\n );\n if (slot === undefined) return;\n event.preventDefault();\n control.pressAt(Number(slot.dataset['index'] ?? 0));\n }\n}\n","import { normalizeSelection, sanitize } from '@slotted/core/otp';\nimport type { OtpSelection, OtpType } from '@slotted/core/otp';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { SlField } from '@slotted/angular/field';\n\nimport { injectOtpInputDefaults, SlOtpInputState } from './otp-input-defaults';\nimport { SlOtpInput } from './otp-input';\n\n/** What an edit lost to the filter, and the event that carried it. */\nexport interface OtpInputRejection {\n readonly text: string;\n readonly source: Event;\n}\n\n/**\n * The control itself: the value, the identifier, and everything the field\n * around it says. `dragstart` is refused: a press on a selected character\n * would otherwise drag that text, with a ghost of the character floating\n * under the pointer, and in a full code a character is selected at every\n * press.\n *\n * **The element owns the characters, and the directive keeps a copy.** The\n * frame paints every character, so unlike `text-field` this mirror is the\n * value and not only its length. `writeValue` from a form and a `[value]`\n * binding both write the element; typing writes it directly, and the copy\n * follows — which is what Angular's own `DefaultValueAccessor` does.\n *\n * **The selection is normalized, not the keys.** Every key is the browser's.\n * After each change the directive makes sure a cursor inside the value has\n * one character selected, so typing replaces it instead of being refused by\n * `maxlength` — the rule `@slotted/core/otp` holds.\n *\n * **Unset means ask the field.** `disabled`, `readOnly` and `invalid` default\n * to `undefined` rather than `false`. A value the consumer wrote as a static\n * attribute is read before the host binding computes, so the binding never\n * writes over it.\n */\n@Directive({\n selector: 'input[slOtpInputControl]',\n standalone: true,\n exportAs: 'slOtpInputControl',\n providers: [\n { provide: SlOtpInputState, useExisting: forwardRef(() => SlOtpInputControl) },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlOtpInputControl), multi: true },\n ],\n host: {\n 'data-part': 'input',\n 'data-part-input': '',\n '[attr.id]': 'controlId()',\n '[attr.type]': 'resolvedType()',\n '[attr.autocomplete]': 'resolvedAutocomplete()',\n '[attr.inputmode]': 'resolvedInputMode()',\n '[attr.maxlength]': 'frame.resolvedLength()',\n '[attr.spellcheck]': 'resolvedSpellcheck()',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.disabled]': 'disabledAttribute()',\n '[attr.readonly]': 'readonlyAttribute()',\n '(input)': 'onInput($event)',\n '(dragstart)': '$event.preventDefault()',\n '(focus)': 'onFocus()',\n '(blur)': 'onBlur()',\n },\n})\nexport class SlOtpInputControl implements ControlValueAccessor, OnInit, SlOtpInputState {\n /** Present means the consumer owns the value. */\n readonly value = input<string | undefined>(undefined);\n /** The value the control starts from when nobody else writes one. */\n readonly defaultValue = input<string | undefined>(undefined);\n /** Which characters the code takes. Defaults to the token's, then `numeric`. */\n readonly type = input<OtpType | undefined>(undefined);\n /** Tested against each character; outranks `type` in what is accepted. */\n readonly pattern = input<RegExp | undefined>(undefined);\n /**\n * Run over every edit before the filter: strip a `G-` prefix, uppercase a\n * code the reader typed in lowercase.\n */\n readonly transform = input<((text: string) => string) | undefined>(undefined);\n /** Unstated rather than `false`, so the control defers to the field. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`. Reaches the element as the native `readonly`. */\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`. Reaches the element as `aria-invalid`. */\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Submits the owning form when the code is complete. */\n readonly autoSubmit = input(false, { transform: booleanAttribute });\n /**\n * Asks the platform for the code the moment an SMS arrives, where the\n * WebOTP API exists. The request is abandoned when the form submits or the\n * control is destroyed.\n */\n readonly webOtp = input(false, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(value)]`,\n * because a two-way binding has one slot and can carry none of those; a form\n * gets the same movement through `ControlValueAccessor`.\n */\n readonly valueChange = output<ChangeRequest<string>>();\n /** The value, the moment it reaches `length` characters. */\n readonly complete = output<string>();\n /** What an edit lost to the filter, before the value moves. */\n readonly rejected = output<OtpInputRejection>();\n\n private readonly element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n /**\n * The frame around the control. Injected without `optional`, so an `input`\n * written without it fails at construction rather than silently losing its\n * boxes. It is public because the host bindings read its length and mask.\n */\n readonly frame = inject(SlOtpInput);\n private readonly field = inject(SlField, { optional: true });\n private readonly defaults = injectOtpInputDefaults();\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenType = inject(new HostAttributeToken('type'), { optional: true });\n private readonly writtenAutocomplete = inject(new HostAttributeToken('autocomplete'), {\n optional: true,\n });\n private readonly writtenInputMode = inject(new HostAttributeToken('inputmode'), {\n optional: true,\n });\n private readonly writtenSpellcheck = inject(new HostAttributeToken('spellcheck'), {\n optional: true,\n });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenInvalid = inject(new HostAttributeToken('aria-invalid'), {\n optional: true,\n });\n private readonly writtenRequired = inject(new HostAttributeToken('aria-required'), {\n optional: true,\n });\n private readonly writtenReadonly = inject(new HostAttributeToken('readonly'), { optional: true });\n\n /** What the element is showing, cut to the code. */\n private readonly mirror = signal('');\n readonly code = this.mirror.asReadonly();\n private readonly ownSelection = signal<OtpSelection | null>(null);\n readonly selection = this.ownSelection.asReadonly();\n private readonly ownFocused = signal(false);\n readonly focused = this.ownFocused.asReadonly();\n private previousSelection: OtpSelection | null = null;\n private reported: string | null = null;\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly resolvedType = computed(() =>\n this.frame.mask() ? 'password' : (this.writtenType ?? 'text'),\n );\n /** Which characters the code takes, stated here or by the token. */\n readonly codeType = computed<OtpType>(() => this.type() ?? this.defaults.type);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(\n () =>\n this.readOnly() ??\n (this.writtenReadonly === null ? undefined : true) ??\n this.field?.resolvedReadOnly(),\n );\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n\n protected readonly controlId = computed(\n () => this.writtenId ?? this.field?.ids().control ?? null,\n );\n protected readonly resolvedAutocomplete = computed(\n () => this.writtenAutocomplete ?? 'one-time-code',\n );\n protected readonly resolvedInputMode = computed(\n () => this.writtenInputMode ?? (this.codeType() === 'numeric' ? 'numeric' : 'text'),\n );\n protected readonly resolvedSpellcheck = computed(() => this.writtenSpellcheck ?? 'false');\n /** Merged after the consumer's own, so a tour step is read before the help. */\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(\n () => this.writtenInvalid ?? (this.resolvedInvalid() === true ? 'true' : null),\n );\n protected readonly ariaRequired = computed(\n () => this.writtenRequired ?? (this.field?.required() === true ? 'true' : null),\n );\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n protected readonly readonlyAttribute = computed(() =>\n this.resolvedReadOnly() === true ? '' : null,\n );\n\n constructor() {\n /* A consumer's own value writes the element, the way a form's does. */\n effect(() => {\n const next = this.value();\n if (next === undefined) return;\n const clean = this.sanitize(next).value;\n if (clean === this.element.value) return;\n this.element.value = clean;\n this.mirror.set(clean);\n this.reportCompletion();\n });\n\n /**\n * The browser fires `selectionchange` on the document, for every control\n * at once; it is read only while this one holds focus. `capture` because\n * the event does not bubble in every engine.\n */\n const onSelectionChange = () => {\n if (this.ownFocused() && document.activeElement === this.element) this.syncSelection();\n };\n document.addEventListener('selectionchange', onSelectionChange, { capture: true });\n this.destroyRef.onDestroy(() =>\n document.removeEventListener('selectionchange', onSelectionChange, { capture: true }),\n );\n }\n\n /**\n * Angular creates every directive in a template before it binds any input,\n * so the starting value is read here rather than in the constructor.\n */\n ngOnInit() {\n const initial = this.sanitize(this.defaultValue() ?? this.element.value).value;\n if (initial !== this.element.value) this.element.value = initial;\n this.mirror.set(initial);\n this.reportCompletion();\n\n /**\n * A native reset restores the element's own value and tells nothing, so\n * the copy would keep painting the last thing typed.\n */\n const form = this.element.form;\n if (form !== null) {\n const onReset = () => {\n /* The element is restored after the event; the copy follows it. */\n queueMicrotask(() => this.mirror.set(this.sanitize(this.element.value).value));\n };\n form.addEventListener('reset', onReset);\n this.destroyRef.onDestroy(() => form.removeEventListener('reset', onReset));\n }\n\n if (this.webOtp()) this.requestWebOtp();\n }\n\n /** The native element, for `focus()`, `select()` and `setSelectionRange()`. */\n get inputElement(): HTMLInputElement {\n return this.element;\n }\n\n writeValue(value: string | null | undefined) {\n const clean = this.sanitize(value ?? '').value;\n this.element.value = clean;\n this.mirror.set(clean);\n this.reportCompletion();\n }\n\n registerOnChange(fn: (value: string) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n pressAt(index: number) {\n const at = Math.min(index, this.element.value.length);\n this.element.focus();\n const end = at < this.element.value.length ? at + 1 : at;\n this.previousSelection = null;\n this.element.setSelectionRange(at, end);\n this.syncSelection();\n }\n\n protected onInput(event: Event) {\n const element = this.element;\n const { rejected, value: next } = this.sanitize(element.value);\n if (rejected !== '') this.rejected.emit({ text: rejected, source: event });\n if (next !== element.value) {\n /* What the filter dropped is taken out of the element, and the cursor\n goes where the accepted characters end. */\n const caret = Math.min(element.selectionStart ?? next.length, next.length);\n element.value = next;\n element.setSelectionRange(caret, caret);\n }\n /* After an edit the cursor is inserting: the next selection reads as one\n that came from a caret, not from a selected character. */\n const caret = element.selectionStart ?? next.length;\n this.previousSelection = { start: caret, end: caret };\n\n if (this.request(next, 'keyboard', event)) {\n this.mirror.set(next);\n this.onChangeFn(next);\n this.reportCompletion();\n } else {\n /* Refused: the element goes back to what the copy holds. */\n element.value = this.mirror();\n }\n this.syncSelection();\n }\n\n protected onFocus() {\n this.ownFocused.set(true);\n /* Focus lands after the last character, or on it when the code is full. */\n const at = this.element.value.length;\n this.element.setSelectionRange(Math.min(at, this.frame.resolvedLength() - 1), at);\n this.previousSelection = null;\n this.syncSelection();\n }\n\n protected onBlur() {\n this.ownFocused.set(false);\n this.ownSelection.set(null);\n this.previousSelection = null;\n this.onTouchedFn();\n }\n\n private sanitize(text: string) {\n return sanitize(text, {\n length: this.frame.resolvedLength(),\n pattern: this.pattern(),\n transform: this.transform(),\n type: this.codeType(),\n });\n }\n\n /** Reads the element's selection, corrects it, and paints the current box. */\n private syncSelection() {\n const element = this.element;\n const start = element.selectionStart ?? element.value.length;\n const end = element.selectionEnd ?? start;\n const corrected = normalizeSelection({\n start,\n end,\n valueLength: element.value.length,\n length: this.frame.resolvedLength(),\n previous: this.previousSelection ?? undefined,\n });\n if (corrected !== null) {\n element.setSelectionRange(corrected.start, corrected.end, corrected.direction);\n }\n const final: OtpSelection = corrected ?? { start, end };\n this.previousSelection = final;\n this.ownSelection.set(final);\n }\n\n /**\n * Completion is a fact about the value, reported once per value: a full\n * code edited into another full code reports again, and a code emptied and\n * retyped reports again.\n */\n private reportCompletion() {\n const code = this.mirror();\n if (code.length !== this.frame.resolvedLength()) {\n this.reported = null;\n return;\n }\n if (this.reported === code) return;\n this.reported = code;\n this.complete.emit(code);\n if (this.autoSubmit()) this.element.form?.requestSubmit();\n }\n\n /**\n * The WebOTP API: where it exists, the platform hands over the code the\n * moment the SMS arrives. Abandoned when the form submits on its own or the\n * directive is destroyed, which is the shape MDN's example takes.\n */\n private requestWebOtp() {\n if (typeof window === 'undefined' || !('OTPCredential' in window)) return;\n const controller = new AbortController();\n const form = this.element.form;\n const abort = () => controller.abort();\n form?.addEventListener('submit', abort);\n this.destroyRef.onDestroy(() => {\n form?.removeEventListener('submit', abort);\n controller.abort();\n });\n navigator.credentials\n .get({ otp: { transport: ['sms'] }, signal: controller.signal } as CredentialRequestOptions)\n .then((credential) => {\n const code = (credential as { code?: string } | null)?.code;\n if (code === undefined) return;\n const next = this.sanitize(code).value;\n if (!this.request(next, 'programmatic', credential)) return;\n this.element.value = next;\n this.mirror.set(next);\n this.onChangeFn(next);\n this.reportCompletion();\n })\n .catch(() => undefined);\n }\n\n /** Emits the request and says whether anything may commit. */\n private request(next: string, reason: ChangeReason, source: unknown): boolean {\n if (next === this.mirror()) return false;\n\n let cancelled = false;\n const state = createControllable<string>({\n controlled: undefined,\n initial: this.mirror(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n state.request(next, reason, source);\n return !cancelled;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,QAAQ,GAAqB;AACjC,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,OAAO,EAAE,SAAS;CACnB;MAEY,kBAAkB,GAAG,IAAI,cAAc,CAClD,4BAA4B,EAC5B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;AAOG;AACG,SAAU,uB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AAE,qBAAqB;AACxC,wBAAA,SAAS,EAAE,iBAAiB;AAC5B,wBAAA,aAAa,EAAE,yBAAyB;AACxC,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,QAAQ,EAAE,UAAU;AACrB,qBAAA;AACF,iBAAA;;;AClFD;;AAEG;;"}
|
|
@@ -270,8 +270,8 @@ function resolveFocus(target, scope) {
|
|
|
270
270
|
* How far the layer moves along its alignment axis so the panel's edge, not
|
|
271
271
|
* the layer's, meets the anchor's. The layer's padding is the gap around the
|
|
272
272
|
* panel, the same on every side, so a layer aligned to the anchor's start edge
|
|
273
|
-
* leaves the panel one gap inside it. A
|
|
274
|
-
* neither does one as wide as its anchor, which the positioner
|
|
273
|
+
* leaves the panel one gap inside it. A centerd layer needs nothing, and
|
|
274
|
+
* neither does one as wide as its anchor, which the positioner centers.
|
|
275
275
|
*/
|
|
276
276
|
function alignInset(layer, side, align, width) {
|
|
277
277
|
if (align === 'center')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-popover.mjs","sources":["../../popover/src/popover-defaults.ts","../../popover/src/popover.ts","../../popover/src/popover-parts.ts","../../popover/src/slotted-angular-popover.ts"],"sourcesContent":["import type { ChangeRequest } from '@slotted/core/state';\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport type { Provider } from '@angular/core';\n\n/** The width and type step the panel sits at. */\nexport type PopoverSize = 'sm' | 'md' | 'lg';\n\n/**\n * How wide the panel is. `anchor` makes it exactly as wide as the element it\n * hangs from, which is what a filter panel under a search field wants.\n */\nexport type PopoverWidth = 'auto' | 'anchor';\n\n/** The edge of the anchor the layer prefers. The two logical values mirror. */\nexport type PopoverSide = 'top' | 'bottom' | 'inline-start' | 'inline-end' | 'left' | 'right';\n\n/** Where the layer sits along the side it took. */\nexport type PopoverAlign = 'start' | 'center' | 'end';\n\n/** When the layer exists. `lazy` is what a panel holding an expensive form wants. */\nexport type PopoverMount = 'active' | 'lazy' | 'eager';\n\n/** `fixed` for a layer inside `overflow: hidden`, `absolute` for one inside a transform. */\nexport type PopoverStrategy = 'absolute' | 'fixed';\n\n/** Why the panel opened or closed. */\nexport type PopoverOpenReason = Extract<\n ChangeRequest<boolean>['reason'],\n 'pointer' | 'keyboard' | 'escape' | 'outsidePress' | 'dismiss' | 'programmatic'\n>;\n\n/** The request `openChangeRequest` emits before the panel moves, as React's `PopoverChangeRequest`. */\nexport type PopoverChangeRequest = ChangeRequest<boolean>;\n\n/** Somewhere to put the focus: an element, or a selector read inside the panel. */\nexport type PopoverFocusTarget = Element | string;\n\n/** What an application sets once for every popover under it. */\nexport interface PopoverDefaults {\n align: PopoverAlign;\n alignOffset: number;\n arrow: boolean;\n arrowPadding: number;\n autoFocus: boolean;\n closeOnEscape: boolean;\n closeOnOutsidePress: boolean;\n collisionPadding: number;\n flip: boolean;\n hideWhenDetached: boolean;\n mount: PopoverMount;\n portal: boolean;\n shift: boolean;\n side: PopoverSide;\n sideOffset: number;\n size: PopoverSize;\n strategy: PopoverStrategy;\n width: PopoverWidth;\n}\n\n/**\n * `arrowPadding` is larger than the tooltip's because the panel's corner radius\n * is larger. `hideWhenDetached` is off: a task the reader is halfway through\n * must not blink because the row behind it scrolled.\n */\nexport const POPOVER_FALLBACK: PopoverDefaults = {\n align: 'center',\n alignOffset: 0,\n arrow: true,\n arrowPadding: 12,\n autoFocus: true,\n closeOnEscape: true,\n closeOnOutsidePress: true,\n collisionPadding: 8,\n flip: true,\n hideWhenDetached: false,\n mount: 'active',\n portal: true,\n shift: true,\n side: 'bottom',\n sideOffset: 0,\n size: 'md',\n strategy: 'absolute',\n width: 'auto',\n};\n\nexport const POPOVER_DEFAULTS = new InjectionToken<PopoverDefaults>('slotted popover defaults', {\n providedIn: 'root',\n factory: () => POPOVER_FALLBACK,\n});\n\n/**\n * An application decides once how its popovers behave and look. The close\n * control's accessible name comes from the language in force\n * (`provideSlotted`).\n *\n * What is stated here is written over the defaults already in force rather than\n * over the fallback, which is what React's provider does: a section that sets\n * `width` for itself keeps the application's `size`.\n */\nexport function providePopoverDefaults(defaults: Partial<PopoverDefaults>): Provider {\n return {\n provide: POPOVER_DEFAULTS,\n useFactory: (): PopoverDefaults => ({\n ...(inject(POPOVER_DEFAULTS, { optional: true, skipSelf: true }) ?? POPOVER_FALLBACK),\n ...defaults,\n }),\n };\n}\n\n/** What a popover renders as here, before it states anything of its own. */\nexport function injectPopoverDefaults(): PopoverDefaults {\n return inject(POPOVER_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the two sequences have to match for\n * hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlPopoverIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-popover-${this.count}`;\n }\n}\n","import { type PartialMessages, popoverMessages, type PopoverMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n model,\n numberAttribute,\n type OnInit,\n output,\n signal,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\n\nimport { injectPopoverDefaults, SlPopoverIdFactory } from './popover-defaults';\nimport type {\n PopoverAlign,\n PopoverChangeRequest,\n PopoverFocusTarget,\n PopoverMount,\n PopoverOpenReason,\n PopoverSide,\n PopoverSize,\n PopoverStrategy,\n PopoverWidth,\n} from './popover-defaults';\n\nexport type {\n PopoverAlign,\n PopoverChangeRequest,\n PopoverDefaults,\n PopoverFocusTarget,\n PopoverMount,\n PopoverOpenReason,\n PopoverSide,\n PopoverSize,\n PopoverStrategy,\n PopoverWidth,\n} from './popover-defaults';\n\nconst optionalBoolean = (state: boolean | string | undefined) =>\n state === undefined ? undefined : booleanAttribute(state);\n\nconst optionalNumber = (value: number | string | undefined) =>\n value === undefined ? undefined : numberAttribute(value);\n\n/**\n * Interactive, non-modal content anchored to the control that opened it.\n *\n * It is the APG's non-modal dialog — the pattern the tooltip page names for a\n * surface that holds focusable elements — and it is deliberately **not** modal.\n * Nothing behind it becomes `inert`, the page keeps scrolling, `aria-modal` is\n * never written and focus is not contained. The modal surface is `slDialog`.\n *\n * Written on an `ng-container`, because it renders nothing: the trigger stays\n * where the consumer wrote it and the layer is portalled.\n */\n@Directive({\n selector: '[slPopover]',\n standalone: true,\n exportAs: 'slPopover',\n})\nexport class SlPopover implements OnInit {\n /** Whether the panel is showing. Two-way, so a template may bind it directly. */\n readonly open = model<boolean>(false);\n /** The state an uncontrolled popover starts in, read once in `ngOnInit`. */\n readonly defaultOpen = input(false, { transform: booleanAttribute });\n /** The popover never opens. The trigger's own `disabled` is the consumer's. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly size = input<PopoverSize | undefined>(undefined);\n readonly width = input<PopoverWidth | undefined>(undefined);\n readonly side = input<PopoverSide | undefined>(undefined);\n readonly align = input<PopoverAlign | undefined>(undefined);\n readonly mount = input<PopoverMount | undefined>(undefined);\n readonly strategy = input<PopoverStrategy | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * close control's accessible name (`close`).\n */\n readonly messages = input<PartialMessages<PopoverMessages> | undefined>(undefined);\n\n /** What takes focus on open instead of the panel — a search field, usually. */\n readonly initialFocus = input<PopoverFocusTarget | undefined>(undefined);\n /** Where focus lands after it closes, for a trigger that is gone by then. */\n readonly finalFocus = input<PopoverFocusTarget | undefined>(undefined);\n\n readonly arrow = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly autoFocus = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnEscape = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnOutsidePress = input<boolean | undefined, boolean | string | undefined>(\n undefined,\n { transform: optionalBoolean },\n );\n readonly flip = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly shift = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hideWhenDetached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly portal = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly sideOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly alignOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly collisionPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly arrowPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly openChangeRequest = output<PopoverChangeRequest>();\n\n private readonly defaults = injectPopoverDefaults();\n /** The family's words in the language in force, with this popover's `messages` laid over them. */\n readonly t = injectMessages(popoverMessages, this.messages);\n private readonly base = inject(SlPopoverIdFactory).next();\n\n readonly contentId = `${this.base}-panel`;\n readonly titleId = `${this.base}-title`;\n readonly descriptionId = `${this.base}-description`;\n\n /** The elements the parts register, which the layer measures and focuses. */\n readonly triggerNode = signal<HTMLElement | null>(null);\n readonly anchorNode = signal<HTMLElement | null>(null);\n readonly arrowNode = signal<HTMLElement | null>(null);\n readonly contentNode = signal<HTMLElement | null>(null);\n readonly hasTitle = signal(false);\n readonly hasDescription = signal(false);\n\n readonly isOpen = computed(() => this.open() && !this.disabled());\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedSide = computed(() => this.side() ?? this.defaults.side);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedStrategy = computed(() => this.strategy() ?? this.defaults.strategy);\n readonly resolvedArrow = computed(() => (this.arrow() ?? this.defaults.arrow) === true);\n readonly resolvedAutoFocus = computed(\n () => (this.autoFocus() ?? this.defaults.autoFocus) === true,\n );\n /**\n * The role the panel carries when the consumer wrote none. A family that\n * provides itself as this one — `slHoverCard` — decides it here: a card\n * nothing can enter is `presentation`, not a dialog nobody is told about.\n */\n readonly contentRole = computed<string>(() => 'dialog');\n readonly resolvedCloseOnEscape = computed(\n () => (this.closeOnEscape() ?? this.defaults.closeOnEscape) === true,\n );\n readonly resolvedCloseOnOutsidePress = computed(\n () => (this.closeOnOutsidePress() ?? this.defaults.closeOnOutsidePress) === true,\n );\n readonly resolvedFlip = computed(() => (this.flip() ?? this.defaults.flip) === true);\n readonly resolvedShift = computed(() => (this.shift() ?? this.defaults.shift) === true);\n readonly resolvedHideWhenDetached = computed(\n () => (this.hideWhenDetached() ?? this.defaults.hideWhenDetached) === true,\n );\n readonly resolvedPortal = computed(() => (this.portal() ?? this.defaults.portal) === true);\n readonly resolvedSideOffset = computed(() => this.sideOffset() ?? this.defaults.sideOffset);\n readonly resolvedAlignOffset = computed(() => this.alignOffset() ?? this.defaults.alignOffset);\n readonly resolvedCollisionPadding = computed(\n () => this.collisionPadding() ?? this.defaults.collisionPadding,\n );\n readonly resolvedArrowPadding = computed(() => this.arrowPadding() ?? this.defaults.arrowPadding);\n\n private readonly everOpened = signal(false);\n readonly seen = computed(() => this.everOpened() || this.isOpen());\n\n /**\n * Read here rather than in the constructor, because inputs are not set yet\n * there, and once: a later change to it is not new state.\n */\n ngOnInit() {\n if (this.defaultOpen() && !this.open()) {\n this.everOpened.set(true);\n this.open.set(true);\n }\n }\n\n /** Opens now. One of the two imperative actions a template cannot express. */\n show() {\n this.toggle(true, 'programmatic');\n }\n\n /** Closes now. */\n hide() {\n this.toggle(false, 'programmatic');\n }\n\n toggle(next: boolean, reason: PopoverOpenReason, source?: Event) {\n if (next === this.isOpen()) return;\n\n let cancelled = false;\n const state = createControllable<boolean>({\n initial: this.isOpen(),\n onRequest: (request) => {\n this.openChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled) return;\n\n if (next) this.everOpened.set(true);\n if (moved) this.open.set(next);\n }\n}\n","import { writeSelectorKey } from '@slotted/core/selector-key';\nimport { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPositioner } from '@slotted/core/positioner';\nimport type { PositionerHandle } from '@slotted/core/positioner';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport {\n afterEveryRender,\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n signal,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { EmbeddedViewRef } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlPopover } from './popover';\nimport type {\n PopoverAlign,\n PopoverFocusTarget,\n PopoverSide,\n PopoverWidth,\n} from './popover-defaults';\n\n/** An element, or a selector read inside the panel. */\nfunction resolveFocus(\n target: PopoverFocusTarget | undefined,\n scope: HTMLElement | null,\n): HTMLElement | null {\n if (target === undefined) return null;\n if (typeof target === 'string') return scope?.querySelector<HTMLElement>(target) ?? null;\n return target as HTMLElement;\n}\n\n/**\n * How far the layer moves along its alignment axis so the panel's edge, not\n * the layer's, meets the anchor's. The layer's padding is the gap around the\n * panel, the same on every side, so a layer aligned to the anchor's start edge\n * leaves the panel one gap inside it. A centred layer needs nothing, and\n * neither does one as wide as its anchor, which the positioner centres.\n */\nfunction alignInset(\n layer: HTMLElement,\n side: PopoverSide,\n align: PopoverAlign,\n width: PopoverWidth,\n): number {\n if (align === 'center') return 0;\n if (width === 'anchor' && (side === 'top' || side === 'bottom')) return 0;\n const style = layer.ownerDocument.defaultView?.getComputedStyle(layer);\n const gap = Number.parseFloat(style?.paddingTop ?? '') || 0;\n return align === 'start' ? -gap : gap;\n}\n\n/**\n * The control that opens the panel.\n *\n * The directive goes on the consumer's own control — a `button`, which is what\n * gives `Enter` and `Space` for free. It carries the wiring and `data-open`,\n * and **no `data-part`**: a trigger is very often another family's root, and\n * claiming it would unstyle that family.\n */\n@Directive({\n selector: '[slPopoverTrigger]',\n standalone: true,\n exportAs: 'slPopoverTrigger',\n host: {\n '[attr.aria-controls]': 'popover.contentNode() !== null ? popover.contentId : null',\n '[attr.aria-expanded]': 'popover.isOpen()',\n 'aria-haspopup': 'dialog',\n '[attr.data-open]': \"popover.isOpen() ? '' : null\",\n },\n})\nexport class SlPopoverTrigger implements AfterViewInit {\n protected readonly popover = inject(SlPopover);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n this.popover.triggerNode.set(this.native);\n this.destroyRef.onDestroy(() => this.popover.triggerNode.set(null));\n }\n\n /**\n * After the view, not as a host listener. A `(click)` the consumer wrote on\n * the same element is bound when the view is created, so a listener bound any\n * earlier runs first and reads `defaultPrevented` before the consumer has had\n * the chance to set it — the order `slIconButton` records.\n */\n ngAfterViewInit() {\n const onClick = (event: MouseEvent) => {\n if (event.defaultPrevented) return;\n const reason = event.detail === 0 ? 'keyboard' : 'pointer';\n this.popover.toggle(!this.popover.isOpen(), reason, event);\n };\n this.native.addEventListener('click', onClick);\n this.destroyRef.onDestroy(() => this.native.removeEventListener('click', onClick));\n }\n}\n\n/**\n * What the panel points at, when that is not the button that opened it — a row\n * whose action menu hangs off the row rather than off its own control. It\n * carries no attributes: it is only measured.\n */\n@Directive({\n selector: '[slPopoverAnchor]',\n standalone: true,\n exportAs: 'slPopoverAnchor',\n})\nexport class SlPopoverAnchor {\n constructor() {\n const popover = inject(SlPopover);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n popover.anchorNode.set(native);\n inject(DestroyRef).onDestroy(() => popover.anchorNode.set(null));\n }\n}\n\n/**\n * The positioned layer, built from a template rather than from an element, for\n * the reason `slTooltipLayer` sets out: `mount=\"active\"` means the layer exists\n * only while it is open, and a component cannot remove its own host.\n *\n * It also builds the two focus guards. Focus reaching one arrived by `Tab` at\n * the edge of a layer that lives at the end of the document, so the family\n * closes and puts focus back on the trigger, from which the reader's next `Tab`\n * continues down the page. It is the only answer that keeps the reading order\n * intact without trapping focus in a layer that is not modal.\n */\n@Directive({\n selector: 'ng-template[slPopoverLayer]',\n standalone: true,\n exportAs: 'slPopoverLayer',\n})\nexport class SlPopoverLayer {\n private readonly popover = inject(SlPopover);\n private readonly template = inject(TemplateRef<unknown>);\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly comment: Comment = this.viewContainer.element.nativeElement;\n private readonly arrowPlaceholder: Comment =\n this.comment.ownerDocument.createComment('slPopoverArrow');\n\n /** A signal, so every effect that reads it re-runs when the layer arrives. */\n private readonly layerNode = signal<HTMLElement | null>(null);\n private view: EmbeddedViewRef<unknown> | null = null;\n private portal: PortalRootHandle | null = null;\n private positioner: PositionerHandle | null = null;\n private dismissable: DismissableLayerHandle | null = null;\n\n private readonly status = signal<PresenceStatus>('unmounted');\n private readonly positioned = signal(false);\n private wasOpen = false;\n private readonly presence = createPresence({\n present: false,\n onStatusChange: (next) => this.status.set(next),\n });\n\n readonly mounted = computed(() => {\n const mount = this.popover.resolvedMount();\n if (mount === 'eager') return true;\n if (mount === 'lazy') return this.popover.seen();\n return this.status() !== 'unmounted';\n });\n\n constructor() {\n effect(() => this.presence.sync(this.popover.isOpen()));\n effect(() => (this.mounted() ? this.build() : this.teardown()));\n effect(() => this.place());\n effect(() => this.stack());\n effect(() => this.paint());\n effect(() => this.showArrow());\n effect(() => this.moveFocus());\n\n inject(DestroyRef).onDestroy(() => {\n this.presence.destroy();\n this.teardown();\n });\n }\n\n /** Measures and places the layer again. */\n reposition() {\n void this.positioner?.update();\n }\n\n private build() {\n if (this.layerNode() !== null) return;\n\n const document = this.comment.ownerDocument;\n const layer = document.createElement('div');\n writeSelectorKey(layer, 'ui', 'popover');\n writeSelectorKey(layer, 'part', 'root');\n\n const view = this.viewContainer.createEmbeddedView(this.template);\n view.detectChanges();\n\n layer.appendChild(this.guard(document));\n for (const node of view.rootNodes as Node[]) layer.appendChild(node);\n layer.appendChild(this.guard(document));\n\n const portal = createPortalRoot({\n origin: this.popover.anchorNode() ?? this.popover.triggerNode(),\n disabled: !this.popover.resolvedPortal(),\n });\n const container = portal.container ?? this.comment.parentNode;\n if (container === this.comment.parentNode) container?.insertBefore(layer, this.comment);\n else container?.appendChild(layer);\n\n this.view = view;\n this.portal = portal;\n this.presence.setNode(layer);\n this.layerNode.set(layer);\n }\n\n private guard(document: Document): HTMLElement {\n const guard = document.createElement('span');\n writeSelectorKey(guard, 'part', 'focus-guard');\n guard.setAttribute('aria-hidden', 'true');\n guard.tabIndex = 0;\n guard.addEventListener('focus', () => {\n this.popover.toggle(false, 'keyboard');\n this.popover.triggerNode()?.focus();\n });\n return guard;\n }\n\n private teardown() {\n this.positioner?.destroy();\n this.positioner = null;\n this.dismissable?.destroy();\n this.dismissable = null;\n this.presence.setNode(null);\n this.layerNode()?.remove();\n this.layerNode.set(null);\n this.view?.destroy();\n this.view = null;\n this.portal?.release();\n this.portal = null;\n this.positioned.set(false);\n }\n\n private place() {\n const layer = this.layerNode();\n const anchor = this.popover.anchorNode() ?? this.popover.triggerNode();\n const align = this.popover.resolvedAlign();\n const side = this.popover.resolvedSide();\n const width = this.popover.resolvedWidth();\n const options = {\n align,\n alignOffset:\n this.popover.resolvedAlignOffset() +\n (layer === null ? 0 : alignInset(layer, side, align, width)),\n boundaryPadding: this.popover.resolvedCollisionPadding(),\n flip: this.popover.resolvedFlip(),\n hideWhenDetached: this.popover.resolvedHideWhenDetached(),\n matchWidth: width === 'anchor',\n shift: this.popover.resolvedShift(),\n side,\n sideOffset: this.popover.resolvedSideOffset(),\n strategy: this.popover.resolvedStrategy(),\n };\n const arrow = this.popover.resolvedArrow() ? this.popover.arrowNode() : null;\n\n this.positioner?.destroy();\n this.positioner = null;\n if (layer === null || anchor === null) return;\n\n this.positioner = createPositioner(anchor, layer, {\n ...options,\n ...(arrow ? { arrow, arrowPadding: this.popover.resolvedArrowPadding() } : {}),\n });\n /* `data-open` is written on the element in the task that opened the panel,\n with the position, rather than by the effect on the next check. */\n void this.positioner.update().then(() => {\n if (this.popover.isOpen()) layer.setAttribute('data-open', '');\n this.positioned.set(true);\n });\n }\n\n /**\n * One layer in the single stack, and only while it is open. It is not modal:\n * nothing outside becomes `inert` and the page keeps scrolling. The trigger\n * and the anchor are branches, so pressing either is inside the layer.\n */\n private stack() {\n const layer = this.layerNode();\n const open = this.popover.isOpen();\n const branches = [this.popover.triggerNode(), this.popover.anchorNode()].filter(\n (element): element is HTMLElement => element !== null,\n );\n\n this.dismissable?.destroy();\n this.dismissable = null;\n if (layer === null || !open) return;\n\n this.dismissable = createDismissableLayer(layer, {\n escape: this.popover.resolvedCloseOnEscape(),\n focusOutside: false,\n modal: false,\n outsidePress: this.popover.resolvedCloseOnOutsidePress(),\n scrollLock: false,\n ...(branches.length > 0 ? { branches } : {}),\n onDismiss: (request) => {\n this.popover.toggle(\n false,\n request.reason === 'escape' ? 'escape' : 'outsidePress',\n request.source,\n );\n },\n });\n }\n\n private paint() {\n const layer = this.layerNode();\n if (layer === null) return;\n\n layer.setAttribute('data-align', this.popover.resolvedAlign());\n layer.setAttribute('data-size', this.popover.resolvedSize());\n layer.setAttribute('data-width', this.popover.resolvedWidth());\n if (this.popover.isOpen() && this.positioned()) layer.setAttribute('data-open', '');\n else layer.removeAttribute('data-open');\n }\n\n /**\n * The arrow the consumer wrote leaves the layer while `arrow` resolves to\n * false, and a comment holds its place, so the layer holds no arrow — as\n * React's `PopoverArrow` renders none — and the positioner measures none.\n */\n private showArrow() {\n const layer = this.layerNode();\n const arrow = this.popover.arrowNode();\n if (layer === null || arrow === null) return;\n\n if (this.popover.resolvedArrow()) {\n if (this.arrowPlaceholder.parentNode === layer) this.arrowPlaceholder.replaceWith(arrow);\n } else if (arrow.parentNode === layer) {\n arrow.replaceWith(this.arrowPlaceholder);\n }\n }\n\n /**\n * Focus goes to the panel itself rather than to its first control, so a\n * reader hears the panel's name before its contents. It waits for the first\n * measurement, because focusing a layer still at the origin scrolls the page\n * to it.\n */\n private moveFocus() {\n const open = this.popover.isOpen();\n const layer = this.layerNode();\n const content = this.popover.contentNode();\n const positioned = this.positioned();\n\n if (open && positioned && !this.wasOpen) {\n this.wasOpen = true;\n if (!this.popover.resolvedAutoFocus()) return;\n (resolveFocus(this.popover.initialFocus(), content) ?? content)?.focus();\n return;\n }\n\n if (!open && this.wasOpen) {\n this.wasOpen = false;\n /**\n * Only while the focus is still inside the layer. A reader who closed the\n * popover by pressing something else on the page keeps the focus they\n * moved to; taking it back would undo their own move.\n */\n const active = layer?.ownerDocument.activeElement ?? null;\n if (layer !== null && active !== null && !layer.contains(active)) return;\n (resolveFocus(this.popover.finalFocus(), content) ?? this.popover.triggerNode())?.focus();\n }\n }\n}\n\n/**\n * The panel. `role=\"dialog\"`, named by its title and described by its\n * description when those parts are present, and `aria-modal` is never written —\n * saying it would tell a reader the rest of the page is gone while it is not.\n *\n * A popover with no title gets no `aria-labelledby`; the family invents no\n * name, and a consumer writes `aria-label` here instead — which is why the\n * host attribute they wrote is read before the binding is computed.\n *\n * It is the one part written as a component, because a component is what can\n * carry `styleUrl`: this is where the family's authored stylesheet enters an\n * Angular application.\n */\n@Component({\n selector: '[slPopoverContent]',\n standalone: true,\n exportAs: 'slPopoverContent',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/popover/popover.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n tabindex: '-1',\n '[attr.role]': 'role()',\n '[attr.id]': 'popover.contentId',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class SlPopoverContent {\n protected readonly popover = inject(SlPopover);\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n /* The consumer's own `role` wins; the popover decides the rest. */\n protected readonly role = computed(() => this.writtenRole ?? this.popover.contentRole());\n protected readonly labelledBy = computed(() =>\n this.popover.hasTitle() && this.writtenLabel === null ? this.popover.titleId : null,\n );\n protected readonly describedBy = computed(() =>\n this.popover.hasDescription() ? this.popover.descriptionId : null,\n );\n\n constructor() {\n const native: HTMLElement = inject(ElementRef).nativeElement;\n this.popover.contentNode.set(native);\n inject(DestroyRef).onDestroy(() => this.popover.contentNode.set(null));\n }\n}\n\n/** The title, the description and the close control, on the row that stays put. */\n@Directive({\n selector: '[slPopoverHeader]',\n standalone: true,\n exportAs: 'slPopoverHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlPopoverHeader {}\n\n/**\n * The panel's accessible name. The consumer writes the element, so a heading\n * that belongs in the document outline is theirs to choose — the reason\n * `result-state` records for the same decision.\n */\n@Directive({\n selector: '[slPopoverTitle]',\n standalone: true,\n exportAs: 'slPopoverTitle',\n host: { 'data-part': 'title', 'data-part-title': '', '[attr.id]': 'popover.titleId' },\n})\nexport class SlPopoverTitle {\n protected readonly popover = inject(SlPopover);\n\n constructor() {\n this.popover.hasTitle.set(true);\n inject(DestroyRef).onDestroy(() => this.popover.hasTitle.set(false));\n }\n}\n\n/** One line under the title, referenced by the panel rather than announced. */\n@Directive({\n selector: '[slPopoverDescription]',\n standalone: true,\n exportAs: 'slPopoverDescription',\n host: {\n 'data-part': 'description',\n 'data-part-description': '',\n '[attr.id]': 'popover.descriptionId',\n },\n})\nexport class SlPopoverDescription {\n protected readonly popover = inject(SlPopover);\n\n constructor() {\n this.popover.hasDescription.set(true);\n inject(DestroyRef).onDestroy(() => this.popover.hasDescription.set(false));\n }\n}\n\n/**\n * The only part that scrolls, bounded by the height the engine says is left.\n * Bounding the whole panel would scroll the title out of sight, which is how a\n * reader loses track of what they are in.\n */\n@Directive({\n selector: '[slPopoverBody]',\n standalone: true,\n exportAs: 'slPopoverBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlPopoverBody {}\n\n/** The actions row, which keeps its height while the body scrolls under it. */\n@Directive({\n selector: '[slPopoverFooter]',\n standalone: true,\n exportAs: 'slPopoverFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlPopoverFooter {}\n\n/**\n * The pointer's way out. The keyboard has Escape, and a reader on a touch\n * device has no Escape key at all. A close control with no text of its own —\n * the drawn cross, or the consumer's icon — is named by the catalog's `close`;\n * one that shows words, such as \"Done\", is named by them, and a name the\n * consumer wrote on the element wins over both.\n */\n@Component({\n selector: 'button[slPopoverClose]',\n standalone: true,\n exportAs: 'slPopoverClose',\n imports: [SlGlyph, SlIcon],\n /* The cross is drawn unless the consumer wrote content of their own. */\n template: `<ng-content\n ><span slIcon size=\"sm\"><svg slGlyph name=\"x\"></svg></span\n ></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'data-part': 'close',\n 'data-part-close': '',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '(click)': 'popover.toggle(false, \"dismiss\", $event)',\n },\n})\nexport class SlPopoverClose {\n protected readonly popover = inject(SlPopover);\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n /** Whether the content shows text, read after every render because it may change. */\n private readonly hasText = signal(false);\n\n protected readonly label = computed(\n () => this.written ?? (this.hasText() ? null : this.popover.t('close')),\n );\n\n constructor() {\n afterEveryRender(() => this.hasText.set((this.native.textContent ?? '').trim() !== ''));\n }\n}\n\n/**\n * The mark that points at the anchor. The family draws it; the positioner\n * measures it and says where it goes. It is hidden from assistive technology.\n * While `arrow` resolves to false the layer takes it out (`slPopoverLayer`).\n */\n@Directive({\n selector: '[slPopoverArrow]',\n standalone: true,\n exportAs: 'slPopoverArrow',\n host: { 'data-part': 'arrow', 'data-part-arrow': '', 'aria-hidden': 'true' },\n})\nexport class SlPopoverArrow {\n constructor() {\n const popover = inject(SlPopover);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n popover.arrowNode.set(native);\n inject(DestroyRef).onDestroy(() => popover.arrowNode.set(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2DA;;;;AAIG;AACI,MAAM,gBAAgB,GAAoB;AAC/C,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,mBAAmB,EAAE,IAAI;AACzB,IAAA,gBAAgB,EAAE,CAAC;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,UAAU,EAAE,CAAC;AACb,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,KAAK,EAAE,MAAM;;MAGF,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,gBAAgB;AAChC,CAAA;AAED;;;;;;;;AAQG;AACG,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB;AAClC,YAAA,IAAI,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,gBAAgB,CAAC;AACrF,YAAA,GAAG,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;;AAIG;MAOU,cAAc,CAAA;AACzB,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;QACjC,MAAM,MAAM,GAAgB,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa;AAC5D,QAAA,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC;AAC7B,QAAA,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjE;uGANW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;AAC7E,iBAAA;;;AChjBD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-popover.mjs","sources":["../../popover/src/popover-defaults.ts","../../popover/src/popover.ts","../../popover/src/popover-parts.ts","../../popover/src/slotted-angular-popover.ts"],"sourcesContent":["import type { ChangeRequest } from '@slotted/core/state';\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport type { Provider } from '@angular/core';\n\n/** The width and type step the panel sits at. */\nexport type PopoverSize = 'sm' | 'md' | 'lg';\n\n/**\n * How wide the panel is. `anchor` makes it exactly as wide as the element it\n * hangs from, which is what a filter panel under a search field wants.\n */\nexport type PopoverWidth = 'auto' | 'anchor';\n\n/** The edge of the anchor the layer prefers. The two logical values mirror. */\nexport type PopoverSide = 'top' | 'bottom' | 'inline-start' | 'inline-end' | 'left' | 'right';\n\n/** Where the layer sits along the side it took. */\nexport type PopoverAlign = 'start' | 'center' | 'end';\n\n/** When the layer exists. `lazy` is what a panel holding an expensive form wants. */\nexport type PopoverMount = 'active' | 'lazy' | 'eager';\n\n/** `fixed` for a layer inside `overflow: hidden`, `absolute` for one inside a transform. */\nexport type PopoverStrategy = 'absolute' | 'fixed';\n\n/** Why the panel opened or closed. */\nexport type PopoverOpenReason = Extract<\n ChangeRequest<boolean>['reason'],\n 'pointer' | 'keyboard' | 'escape' | 'outsidePress' | 'dismiss' | 'programmatic'\n>;\n\n/** The request `openChangeRequest` emits before the panel moves, as React's `PopoverChangeRequest`. */\nexport type PopoverChangeRequest = ChangeRequest<boolean>;\n\n/** Somewhere to put the focus: an element, or a selector read inside the panel. */\nexport type PopoverFocusTarget = Element | string;\n\n/** What an application sets once for every popover under it. */\nexport interface PopoverDefaults {\n align: PopoverAlign;\n alignOffset: number;\n arrow: boolean;\n arrowPadding: number;\n autoFocus: boolean;\n closeOnEscape: boolean;\n closeOnOutsidePress: boolean;\n collisionPadding: number;\n flip: boolean;\n hideWhenDetached: boolean;\n mount: PopoverMount;\n portal: boolean;\n shift: boolean;\n side: PopoverSide;\n sideOffset: number;\n size: PopoverSize;\n strategy: PopoverStrategy;\n width: PopoverWidth;\n}\n\n/**\n * `arrowPadding` is larger than the tooltip's because the panel's corner radius\n * is larger. `hideWhenDetached` is off: a task the reader is halfway through\n * must not blink because the row behind it scrolled.\n */\nexport const POPOVER_FALLBACK: PopoverDefaults = {\n align: 'center',\n alignOffset: 0,\n arrow: true,\n arrowPadding: 12,\n autoFocus: true,\n closeOnEscape: true,\n closeOnOutsidePress: true,\n collisionPadding: 8,\n flip: true,\n hideWhenDetached: false,\n mount: 'active',\n portal: true,\n shift: true,\n side: 'bottom',\n sideOffset: 0,\n size: 'md',\n strategy: 'absolute',\n width: 'auto',\n};\n\nexport const POPOVER_DEFAULTS = new InjectionToken<PopoverDefaults>('slotted popover defaults', {\n providedIn: 'root',\n factory: () => POPOVER_FALLBACK,\n});\n\n/**\n * An application decides once how its popovers behave and look. The close\n * control's accessible name comes from the language in force\n * (`provideSlotted`).\n *\n * What is stated here is written over the defaults already in force rather than\n * over the fallback, which is what React's provider does: a section that sets\n * `width` for itself keeps the application's `size`.\n */\nexport function providePopoverDefaults(defaults: Partial<PopoverDefaults>): Provider {\n return {\n provide: POPOVER_DEFAULTS,\n useFactory: (): PopoverDefaults => ({\n ...(inject(POPOVER_DEFAULTS, { optional: true, skipSelf: true }) ?? POPOVER_FALLBACK),\n ...defaults,\n }),\n };\n}\n\n/** What a popover renders as here, before it states anything of its own. */\nexport function injectPopoverDefaults(): PopoverDefaults {\n return inject(POPOVER_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the two sequences have to match for\n * hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlPopoverIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-popover-${this.count}`;\n }\n}\n","import { type PartialMessages, popoverMessages, type PopoverMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n model,\n numberAttribute,\n type OnInit,\n output,\n signal,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\n\nimport { injectPopoverDefaults, SlPopoverIdFactory } from './popover-defaults';\nimport type {\n PopoverAlign,\n PopoverChangeRequest,\n PopoverFocusTarget,\n PopoverMount,\n PopoverOpenReason,\n PopoverSide,\n PopoverSize,\n PopoverStrategy,\n PopoverWidth,\n} from './popover-defaults';\n\nexport type {\n PopoverAlign,\n PopoverChangeRequest,\n PopoverDefaults,\n PopoverFocusTarget,\n PopoverMount,\n PopoverOpenReason,\n PopoverSide,\n PopoverSize,\n PopoverStrategy,\n PopoverWidth,\n} from './popover-defaults';\n\nconst optionalBoolean = (state: boolean | string | undefined) =>\n state === undefined ? undefined : booleanAttribute(state);\n\nconst optionalNumber = (value: number | string | undefined) =>\n value === undefined ? undefined : numberAttribute(value);\n\n/**\n * Interactive, non-modal content anchored to the control that opened it.\n *\n * It is the APG's non-modal dialog — the pattern the tooltip page names for a\n * surface that holds focusable elements — and it is deliberately **not** modal.\n * Nothing behind it becomes `inert`, the page keeps scrolling, `aria-modal` is\n * never written and focus is not contained. The modal surface is `slDialog`.\n *\n * Written on an `ng-container`, because it renders nothing: the trigger stays\n * where the consumer wrote it and the layer is portalled.\n */\n@Directive({\n selector: '[slPopover]',\n standalone: true,\n exportAs: 'slPopover',\n})\nexport class SlPopover implements OnInit {\n /** Whether the panel is showing. Two-way, so a template may bind it directly. */\n readonly open = model<boolean>(false);\n /** The state an uncontrolled popover starts in, read once in `ngOnInit`. */\n readonly defaultOpen = input(false, { transform: booleanAttribute });\n /** The popover never opens. The trigger's own `disabled` is the consumer's. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly size = input<PopoverSize | undefined>(undefined);\n readonly width = input<PopoverWidth | undefined>(undefined);\n readonly side = input<PopoverSide | undefined>(undefined);\n readonly align = input<PopoverAlign | undefined>(undefined);\n readonly mount = input<PopoverMount | undefined>(undefined);\n readonly strategy = input<PopoverStrategy | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * close control's accessible name (`close`).\n */\n readonly messages = input<PartialMessages<PopoverMessages> | undefined>(undefined);\n\n /** What takes focus on open instead of the panel — a search field, usually. */\n readonly initialFocus = input<PopoverFocusTarget | undefined>(undefined);\n /** Where focus lands after it closes, for a trigger that is gone by then. */\n readonly finalFocus = input<PopoverFocusTarget | undefined>(undefined);\n\n readonly arrow = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly autoFocus = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnEscape = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnOutsidePress = input<boolean | undefined, boolean | string | undefined>(\n undefined,\n { transform: optionalBoolean },\n );\n readonly flip = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly shift = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hideWhenDetached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly portal = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly sideOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly alignOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly collisionPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly arrowPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly openChangeRequest = output<PopoverChangeRequest>();\n\n private readonly defaults = injectPopoverDefaults();\n /** The family's words in the language in force, with this popover's `messages` laid over them. */\n readonly t = injectMessages(popoverMessages, this.messages);\n private readonly base = inject(SlPopoverIdFactory).next();\n\n readonly contentId = `${this.base}-panel`;\n readonly titleId = `${this.base}-title`;\n readonly descriptionId = `${this.base}-description`;\n\n /** The elements the parts register, which the layer measures and focuses. */\n readonly triggerNode = signal<HTMLElement | null>(null);\n readonly anchorNode = signal<HTMLElement | null>(null);\n readonly arrowNode = signal<HTMLElement | null>(null);\n readonly contentNode = signal<HTMLElement | null>(null);\n readonly hasTitle = signal(false);\n readonly hasDescription = signal(false);\n\n readonly isOpen = computed(() => this.open() && !this.disabled());\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedSide = computed(() => this.side() ?? this.defaults.side);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedStrategy = computed(() => this.strategy() ?? this.defaults.strategy);\n readonly resolvedArrow = computed(() => (this.arrow() ?? this.defaults.arrow) === true);\n readonly resolvedAutoFocus = computed(\n () => (this.autoFocus() ?? this.defaults.autoFocus) === true,\n );\n /**\n * The role the panel carries when the consumer wrote none. A family that\n * provides itself as this one — `slHoverCard` — decides it here: a card\n * nothing can enter is `presentation`, not a dialog nobody is told about.\n */\n readonly contentRole = computed<string>(() => 'dialog');\n readonly resolvedCloseOnEscape = computed(\n () => (this.closeOnEscape() ?? this.defaults.closeOnEscape) === true,\n );\n readonly resolvedCloseOnOutsidePress = computed(\n () => (this.closeOnOutsidePress() ?? this.defaults.closeOnOutsidePress) === true,\n );\n readonly resolvedFlip = computed(() => (this.flip() ?? this.defaults.flip) === true);\n readonly resolvedShift = computed(() => (this.shift() ?? this.defaults.shift) === true);\n readonly resolvedHideWhenDetached = computed(\n () => (this.hideWhenDetached() ?? this.defaults.hideWhenDetached) === true,\n );\n readonly resolvedPortal = computed(() => (this.portal() ?? this.defaults.portal) === true);\n readonly resolvedSideOffset = computed(() => this.sideOffset() ?? this.defaults.sideOffset);\n readonly resolvedAlignOffset = computed(() => this.alignOffset() ?? this.defaults.alignOffset);\n readonly resolvedCollisionPadding = computed(\n () => this.collisionPadding() ?? this.defaults.collisionPadding,\n );\n readonly resolvedArrowPadding = computed(() => this.arrowPadding() ?? this.defaults.arrowPadding);\n\n private readonly everOpened = signal(false);\n readonly seen = computed(() => this.everOpened() || this.isOpen());\n\n /**\n * Read here rather than in the constructor, because inputs are not set yet\n * there, and once: a later change to it is not new state.\n */\n ngOnInit() {\n if (this.defaultOpen() && !this.open()) {\n this.everOpened.set(true);\n this.open.set(true);\n }\n }\n\n /** Opens now. One of the two imperative actions a template cannot express. */\n show() {\n this.toggle(true, 'programmatic');\n }\n\n /** Closes now. */\n hide() {\n this.toggle(false, 'programmatic');\n }\n\n toggle(next: boolean, reason: PopoverOpenReason, source?: Event) {\n if (next === this.isOpen()) return;\n\n let cancelled = false;\n const state = createControllable<boolean>({\n initial: this.isOpen(),\n onRequest: (request) => {\n this.openChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled) return;\n\n if (next) this.everOpened.set(true);\n if (moved) this.open.set(next);\n }\n}\n","import { writeSelectorKey } from '@slotted/core/selector-key';\nimport { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPositioner } from '@slotted/core/positioner';\nimport type { PositionerHandle } from '@slotted/core/positioner';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport {\n afterEveryRender,\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n signal,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { EmbeddedViewRef } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlPopover } from './popover';\nimport type {\n PopoverAlign,\n PopoverFocusTarget,\n PopoverSide,\n PopoverWidth,\n} from './popover-defaults';\n\n/** An element, or a selector read inside the panel. */\nfunction resolveFocus(\n target: PopoverFocusTarget | undefined,\n scope: HTMLElement | null,\n): HTMLElement | null {\n if (target === undefined) return null;\n if (typeof target === 'string') return scope?.querySelector<HTMLElement>(target) ?? null;\n return target as HTMLElement;\n}\n\n/**\n * How far the layer moves along its alignment axis so the panel's edge, not\n * the layer's, meets the anchor's. The layer's padding is the gap around the\n * panel, the same on every side, so a layer aligned to the anchor's start edge\n * leaves the panel one gap inside it. A centerd layer needs nothing, and\n * neither does one as wide as its anchor, which the positioner centers.\n */\nfunction alignInset(\n layer: HTMLElement,\n side: PopoverSide,\n align: PopoverAlign,\n width: PopoverWidth,\n): number {\n if (align === 'center') return 0;\n if (width === 'anchor' && (side === 'top' || side === 'bottom')) return 0;\n const style = layer.ownerDocument.defaultView?.getComputedStyle(layer);\n const gap = Number.parseFloat(style?.paddingTop ?? '') || 0;\n return align === 'start' ? -gap : gap;\n}\n\n/**\n * The control that opens the panel.\n *\n * The directive goes on the consumer's own control — a `button`, which is what\n * gives `Enter` and `Space` for free. It carries the wiring and `data-open`,\n * and **no `data-part`**: a trigger is very often another family's root, and\n * claiming it would unstyle that family.\n */\n@Directive({\n selector: '[slPopoverTrigger]',\n standalone: true,\n exportAs: 'slPopoverTrigger',\n host: {\n '[attr.aria-controls]': 'popover.contentNode() !== null ? popover.contentId : null',\n '[attr.aria-expanded]': 'popover.isOpen()',\n 'aria-haspopup': 'dialog',\n '[attr.data-open]': \"popover.isOpen() ? '' : null\",\n },\n})\nexport class SlPopoverTrigger implements AfterViewInit {\n protected readonly popover = inject(SlPopover);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n this.popover.triggerNode.set(this.native);\n this.destroyRef.onDestroy(() => this.popover.triggerNode.set(null));\n }\n\n /**\n * After the view, not as a host listener. A `(click)` the consumer wrote on\n * the same element is bound when the view is created, so a listener bound any\n * earlier runs first and reads `defaultPrevented` before the consumer has had\n * the chance to set it — the order `slIconButton` records.\n */\n ngAfterViewInit() {\n const onClick = (event: MouseEvent) => {\n if (event.defaultPrevented) return;\n const reason = event.detail === 0 ? 'keyboard' : 'pointer';\n this.popover.toggle(!this.popover.isOpen(), reason, event);\n };\n this.native.addEventListener('click', onClick);\n this.destroyRef.onDestroy(() => this.native.removeEventListener('click', onClick));\n }\n}\n\n/**\n * What the panel points at, when that is not the button that opened it — a row\n * whose action menu hangs off the row rather than off its own control. It\n * carries no attributes: it is only measured.\n */\n@Directive({\n selector: '[slPopoverAnchor]',\n standalone: true,\n exportAs: 'slPopoverAnchor',\n})\nexport class SlPopoverAnchor {\n constructor() {\n const popover = inject(SlPopover);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n popover.anchorNode.set(native);\n inject(DestroyRef).onDestroy(() => popover.anchorNode.set(null));\n }\n}\n\n/**\n * The positioned layer, built from a template rather than from an element, for\n * the reason `slTooltipLayer` sets out: `mount=\"active\"` means the layer exists\n * only while it is open, and a component cannot remove its own host.\n *\n * It also builds the two focus guards. Focus reaching one arrived by `Tab` at\n * the edge of a layer that lives at the end of the document, so the family\n * closes and puts focus back on the trigger, from which the reader's next `Tab`\n * continues down the page. It is the only answer that keeps the reading order\n * intact without trapping focus in a layer that is not modal.\n */\n@Directive({\n selector: 'ng-template[slPopoverLayer]',\n standalone: true,\n exportAs: 'slPopoverLayer',\n})\nexport class SlPopoverLayer {\n private readonly popover = inject(SlPopover);\n private readonly template = inject(TemplateRef<unknown>);\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly comment: Comment = this.viewContainer.element.nativeElement;\n private readonly arrowPlaceholder: Comment =\n this.comment.ownerDocument.createComment('slPopoverArrow');\n\n /** A signal, so every effect that reads it re-runs when the layer arrives. */\n private readonly layerNode = signal<HTMLElement | null>(null);\n private view: EmbeddedViewRef<unknown> | null = null;\n private portal: PortalRootHandle | null = null;\n private positioner: PositionerHandle | null = null;\n private dismissable: DismissableLayerHandle | null = null;\n\n private readonly status = signal<PresenceStatus>('unmounted');\n private readonly positioned = signal(false);\n private wasOpen = false;\n private readonly presence = createPresence({\n present: false,\n onStatusChange: (next) => this.status.set(next),\n });\n\n readonly mounted = computed(() => {\n const mount = this.popover.resolvedMount();\n if (mount === 'eager') return true;\n if (mount === 'lazy') return this.popover.seen();\n return this.status() !== 'unmounted';\n });\n\n constructor() {\n effect(() => this.presence.sync(this.popover.isOpen()));\n effect(() => (this.mounted() ? this.build() : this.teardown()));\n effect(() => this.place());\n effect(() => this.stack());\n effect(() => this.paint());\n effect(() => this.showArrow());\n effect(() => this.moveFocus());\n\n inject(DestroyRef).onDestroy(() => {\n this.presence.destroy();\n this.teardown();\n });\n }\n\n /** Measures and places the layer again. */\n reposition() {\n void this.positioner?.update();\n }\n\n private build() {\n if (this.layerNode() !== null) return;\n\n const document = this.comment.ownerDocument;\n const layer = document.createElement('div');\n writeSelectorKey(layer, 'ui', 'popover');\n writeSelectorKey(layer, 'part', 'root');\n\n const view = this.viewContainer.createEmbeddedView(this.template);\n view.detectChanges();\n\n layer.appendChild(this.guard(document));\n for (const node of view.rootNodes as Node[]) layer.appendChild(node);\n layer.appendChild(this.guard(document));\n\n const portal = createPortalRoot({\n origin: this.popover.anchorNode() ?? this.popover.triggerNode(),\n disabled: !this.popover.resolvedPortal(),\n });\n const container = portal.container ?? this.comment.parentNode;\n if (container === this.comment.parentNode) container?.insertBefore(layer, this.comment);\n else container?.appendChild(layer);\n\n this.view = view;\n this.portal = portal;\n this.presence.setNode(layer);\n this.layerNode.set(layer);\n }\n\n private guard(document: Document): HTMLElement {\n const guard = document.createElement('span');\n writeSelectorKey(guard, 'part', 'focus-guard');\n guard.setAttribute('aria-hidden', 'true');\n guard.tabIndex = 0;\n guard.addEventListener('focus', () => {\n this.popover.toggle(false, 'keyboard');\n this.popover.triggerNode()?.focus();\n });\n return guard;\n }\n\n private teardown() {\n this.positioner?.destroy();\n this.positioner = null;\n this.dismissable?.destroy();\n this.dismissable = null;\n this.presence.setNode(null);\n this.layerNode()?.remove();\n this.layerNode.set(null);\n this.view?.destroy();\n this.view = null;\n this.portal?.release();\n this.portal = null;\n this.positioned.set(false);\n }\n\n private place() {\n const layer = this.layerNode();\n const anchor = this.popover.anchorNode() ?? this.popover.triggerNode();\n const align = this.popover.resolvedAlign();\n const side = this.popover.resolvedSide();\n const width = this.popover.resolvedWidth();\n const options = {\n align,\n alignOffset:\n this.popover.resolvedAlignOffset() +\n (layer === null ? 0 : alignInset(layer, side, align, width)),\n boundaryPadding: this.popover.resolvedCollisionPadding(),\n flip: this.popover.resolvedFlip(),\n hideWhenDetached: this.popover.resolvedHideWhenDetached(),\n matchWidth: width === 'anchor',\n shift: this.popover.resolvedShift(),\n side,\n sideOffset: this.popover.resolvedSideOffset(),\n strategy: this.popover.resolvedStrategy(),\n };\n const arrow = this.popover.resolvedArrow() ? this.popover.arrowNode() : null;\n\n this.positioner?.destroy();\n this.positioner = null;\n if (layer === null || anchor === null) return;\n\n this.positioner = createPositioner(anchor, layer, {\n ...options,\n ...(arrow ? { arrow, arrowPadding: this.popover.resolvedArrowPadding() } : {}),\n });\n /* `data-open` is written on the element in the task that opened the panel,\n with the position, rather than by the effect on the next check. */\n void this.positioner.update().then(() => {\n if (this.popover.isOpen()) layer.setAttribute('data-open', '');\n this.positioned.set(true);\n });\n }\n\n /**\n * One layer in the single stack, and only while it is open. It is not modal:\n * nothing outside becomes `inert` and the page keeps scrolling. The trigger\n * and the anchor are branches, so pressing either is inside the layer.\n */\n private stack() {\n const layer = this.layerNode();\n const open = this.popover.isOpen();\n const branches = [this.popover.triggerNode(), this.popover.anchorNode()].filter(\n (element): element is HTMLElement => element !== null,\n );\n\n this.dismissable?.destroy();\n this.dismissable = null;\n if (layer === null || !open) return;\n\n this.dismissable = createDismissableLayer(layer, {\n escape: this.popover.resolvedCloseOnEscape(),\n focusOutside: false,\n modal: false,\n outsidePress: this.popover.resolvedCloseOnOutsidePress(),\n scrollLock: false,\n ...(branches.length > 0 ? { branches } : {}),\n onDismiss: (request) => {\n this.popover.toggle(\n false,\n request.reason === 'escape' ? 'escape' : 'outsidePress',\n request.source,\n );\n },\n });\n }\n\n private paint() {\n const layer = this.layerNode();\n if (layer === null) return;\n\n layer.setAttribute('data-align', this.popover.resolvedAlign());\n layer.setAttribute('data-size', this.popover.resolvedSize());\n layer.setAttribute('data-width', this.popover.resolvedWidth());\n if (this.popover.isOpen() && this.positioned()) layer.setAttribute('data-open', '');\n else layer.removeAttribute('data-open');\n }\n\n /**\n * The arrow the consumer wrote leaves the layer while `arrow` resolves to\n * false, and a comment holds its place, so the layer holds no arrow — as\n * React's `PopoverArrow` renders none — and the positioner measures none.\n */\n private showArrow() {\n const layer = this.layerNode();\n const arrow = this.popover.arrowNode();\n if (layer === null || arrow === null) return;\n\n if (this.popover.resolvedArrow()) {\n if (this.arrowPlaceholder.parentNode === layer) this.arrowPlaceholder.replaceWith(arrow);\n } else if (arrow.parentNode === layer) {\n arrow.replaceWith(this.arrowPlaceholder);\n }\n }\n\n /**\n * Focus goes to the panel itself rather than to its first control, so a\n * reader hears the panel's name before its contents. It waits for the first\n * measurement, because focusing a layer still at the origin scrolls the page\n * to it.\n */\n private moveFocus() {\n const open = this.popover.isOpen();\n const layer = this.layerNode();\n const content = this.popover.contentNode();\n const positioned = this.positioned();\n\n if (open && positioned && !this.wasOpen) {\n this.wasOpen = true;\n if (!this.popover.resolvedAutoFocus()) return;\n (resolveFocus(this.popover.initialFocus(), content) ?? content)?.focus();\n return;\n }\n\n if (!open && this.wasOpen) {\n this.wasOpen = false;\n /**\n * Only while the focus is still inside the layer. A reader who closed the\n * popover by pressing something else on the page keeps the focus they\n * moved to; taking it back would undo their own move.\n */\n const active = layer?.ownerDocument.activeElement ?? null;\n if (layer !== null && active !== null && !layer.contains(active)) return;\n (resolveFocus(this.popover.finalFocus(), content) ?? this.popover.triggerNode())?.focus();\n }\n }\n}\n\n/**\n * The panel. `role=\"dialog\"`, named by its title and described by its\n * description when those parts are present, and `aria-modal` is never written —\n * saying it would tell a reader the rest of the page is gone while it is not.\n *\n * A popover with no title gets no `aria-labelledby`; the family invents no\n * name, and a consumer writes `aria-label` here instead — which is why the\n * host attribute they wrote is read before the binding is computed.\n *\n * It is the one part written as a component, because a component is what can\n * carry `styleUrl`: this is where the family's authored stylesheet enters an\n * Angular application.\n */\n@Component({\n selector: '[slPopoverContent]',\n standalone: true,\n exportAs: 'slPopoverContent',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/popover/popover.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n tabindex: '-1',\n '[attr.role]': 'role()',\n '[attr.id]': 'popover.contentId',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class SlPopoverContent {\n protected readonly popover = inject(SlPopover);\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n /* The consumer's own `role` wins; the popover decides the rest. */\n protected readonly role = computed(() => this.writtenRole ?? this.popover.contentRole());\n protected readonly labelledBy = computed(() =>\n this.popover.hasTitle() && this.writtenLabel === null ? this.popover.titleId : null,\n );\n protected readonly describedBy = computed(() =>\n this.popover.hasDescription() ? this.popover.descriptionId : null,\n );\n\n constructor() {\n const native: HTMLElement = inject(ElementRef).nativeElement;\n this.popover.contentNode.set(native);\n inject(DestroyRef).onDestroy(() => this.popover.contentNode.set(null));\n }\n}\n\n/** The title, the description and the close control, on the row that stays put. */\n@Directive({\n selector: '[slPopoverHeader]',\n standalone: true,\n exportAs: 'slPopoverHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlPopoverHeader {}\n\n/**\n * The panel's accessible name. The consumer writes the element, so a heading\n * that belongs in the document outline is theirs to choose — the reason\n * `result-state` records for the same decision.\n */\n@Directive({\n selector: '[slPopoverTitle]',\n standalone: true,\n exportAs: 'slPopoverTitle',\n host: { 'data-part': 'title', 'data-part-title': '', '[attr.id]': 'popover.titleId' },\n})\nexport class SlPopoverTitle {\n protected readonly popover = inject(SlPopover);\n\n constructor() {\n this.popover.hasTitle.set(true);\n inject(DestroyRef).onDestroy(() => this.popover.hasTitle.set(false));\n }\n}\n\n/** One line under the title, referenced by the panel rather than announced. */\n@Directive({\n selector: '[slPopoverDescription]',\n standalone: true,\n exportAs: 'slPopoverDescription',\n host: {\n 'data-part': 'description',\n 'data-part-description': '',\n '[attr.id]': 'popover.descriptionId',\n },\n})\nexport class SlPopoverDescription {\n protected readonly popover = inject(SlPopover);\n\n constructor() {\n this.popover.hasDescription.set(true);\n inject(DestroyRef).onDestroy(() => this.popover.hasDescription.set(false));\n }\n}\n\n/**\n * The only part that scrolls, bounded by the height the engine says is left.\n * Bounding the whole panel would scroll the title out of sight, which is how a\n * reader loses track of what they are in.\n */\n@Directive({\n selector: '[slPopoverBody]',\n standalone: true,\n exportAs: 'slPopoverBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlPopoverBody {}\n\n/** The actions row, which keeps its height while the body scrolls under it. */\n@Directive({\n selector: '[slPopoverFooter]',\n standalone: true,\n exportAs: 'slPopoverFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlPopoverFooter {}\n\n/**\n * The pointer's way out. The keyboard has Escape, and a reader on a touch\n * device has no Escape key at all. A close control with no text of its own —\n * the drawn cross, or the consumer's icon — is named by the catalog's `close`;\n * one that shows words, such as \"Done\", is named by them, and a name the\n * consumer wrote on the element wins over both.\n */\n@Component({\n selector: 'button[slPopoverClose]',\n standalone: true,\n exportAs: 'slPopoverClose',\n imports: [SlGlyph, SlIcon],\n /* The cross is drawn unless the consumer wrote content of their own. */\n template: `<ng-content\n ><span slIcon size=\"sm\"><svg slGlyph name=\"x\"></svg></span\n ></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'data-part': 'close',\n 'data-part-close': '',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '(click)': 'popover.toggle(false, \"dismiss\", $event)',\n },\n})\nexport class SlPopoverClose {\n protected readonly popover = inject(SlPopover);\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n /** Whether the content shows text, read after every render because it may change. */\n private readonly hasText = signal(false);\n\n protected readonly label = computed(\n () => this.written ?? (this.hasText() ? null : this.popover.t('close')),\n );\n\n constructor() {\n afterEveryRender(() => this.hasText.set((this.native.textContent ?? '').trim() !== ''));\n }\n}\n\n/**\n * The mark that points at the anchor. The family draws it; the positioner\n * measures it and says where it goes. It is hidden from assistive technology.\n * While `arrow` resolves to false the layer takes it out (`slPopoverLayer`).\n */\n@Directive({\n selector: '[slPopoverArrow]',\n standalone: true,\n exportAs: 'slPopoverArrow',\n host: { 'data-part': 'arrow', 'data-part-arrow': '', 'aria-hidden': 'true' },\n})\nexport class SlPopoverArrow {\n constructor() {\n const popover = inject(SlPopover);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n popover.arrowNode.set(native);\n inject(DestroyRef).onDestroy(() => popover.arrowNode.set(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2DA;;;;AAIG;AACI,MAAM,gBAAgB,GAAoB;AAC/C,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,mBAAmB,EAAE,IAAI;AACzB,IAAA,gBAAgB,EAAE,CAAC;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,UAAU,EAAE,CAAC;AACb,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,KAAK,EAAE,MAA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kB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;AAC7E,iBAAA;;;AChjBD;;AAEG;;"}
|
|
@@ -275,7 +275,7 @@ function measurableNumber(value) {
|
|
|
275
275
|
* has two shapes that report a number.
|
|
276
276
|
*
|
|
277
277
|
* `contained` draws M3's fully rounded container behind the shape, at M3's own
|
|
278
|
-
* 38:48 ratio. It is the form to reach for on a photograph or a
|
|
278
|
+
* 38:48 ratio. It is the form to reach for on a photograph or a colored
|
|
279
279
|
* surface, where a bare shape has no ground to be seen against.
|
|
280
280
|
*
|
|
281
281
|
* Content after the label is projected, so a loader can stand in a sentence
|
|
@@ -557,7 +557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
557
557
|
*
|
|
558
558
|
* The number sits beside the ring rather than inside it: the largest ring this
|
|
559
559
|
* family draws is 38 pixels across with a 4.75-pixel stroke, which leaves 28
|
|
560
|
-
* pixels of hole, and a percentage
|
|
560
|
+
* pixels of hole, and a percentage centerd in it would be four-pixel type.
|
|
561
561
|
*
|
|
562
562
|
* With `wave` the indicator is M3's wavy ring from `@slotted/core/progress`
|
|
563
563
|
* and the track stays a circle, which is what `CircularWavyProgressModifiers`
|